Microchip PIC programming advice

The magic smoke.

Moderators: phlip, Moderators General, Prelates

Posts: 1
Joined: Mon Jun 26, 2017 10:16 am UTC

Microchip PIC programming advice

Postby nanawhite107 » Mon Jun 26, 2017 10:18 am UTC

I need some advice, I have a bunch of little boards that I am using for home automation and I keep making changes and having to re-flash to boards. I added the ICSP header to all my boards so it is easy to flash them.

Here is the date sheet of lm7805

here is my question I am a huge gadget freak and want to build a push button programmer that i can load a hex file on and go to my different devices and flash them. I just need a nudge in the right direction as far as the code goes, say some example or something. I know that there are pickit3 and 3rd party tools for this but that doesn't help me learn lol.

thanks again

Posts: 5494
Joined: Sun Dec 26, 2010 1:58 pm UTC

Re: Microchip PIC programming advice

Postby KnightExemplar » Mon Jun 26, 2017 3:19 pm UTC

You want to write a bootloader, basically.

Kinda like how Arduino works. On bootup, Arduino talks to the UART to see if there's any new code. If there's new code, then it self-erases itself, copies the new code over, and then starts executing it. The only difference is that your code will be activated by a button. Otherwise, you still need a mechanism to transfer the data over somehow.
First Strike +1/+1 and Indestructible.

Return to “Hardware”

Who is online

Users browsing this forum: No registered users and 2 guests