Go Down

Topic: Can I use an Arduino (like an Uno) to program a Microchip PIC16xxx chip? (Read 631 times) previous topic - next topic

b3jh24

I have a PIC16F (Microchip) SOIC chip that I need to put some memory on. I don't have any of the Microchip programmers available to me and so I was wondering if I could use an Arduino to write a simple hex file to flash memory on the PIC chip. Is this possible? If so, how would I go about doing so?

Thanks!

PerryBebbington

I've never seen any post from anyone suggesting this is possible. Well, OK, I think it must be possible, but whether anyone has written the software needed is another question. Try Google. Better still buy a PICkit 

Budvar10

Yes, it should work. I cannot find 16F right now but here is for 18F:
https://sites.google.com/site/thehighspark/arduino-pic18f

Just google for it. There are also discussions here on the forum.

@PerryBebbington: Yes, maybe better to have PICkit, but with Arduino it would be more fun and he can learn something. ;)

Some another links:
https://forum.arduino.cc/index.php/topic,92929.0.html
https://hackaday.com/2012/05/02/arduino-can-program-pic-too/
https://github.com/rweather/ardpicprog
Arduino clone with ATmega1284P   http://forum.arduino.cc/index.php?topic=277260.0

PerryBebbington


Quote
Yes, maybe better to have PICkit, but with Arduino it would be more fun and he can learn something.
True of course :)
I am spoiled, I have both :o
Am I allowed to say I prefer MPLABX with XC8 over the Arduino IDE? No? OK, I won't :smiley-confuse:


Budvar10

Wait a minute, you cannot compare MPLAB with Arduino IDE. Take more equal rival, AVR Studio. Although, they are not rivals anymore.
@b3jh24: Sorry, we are off topic a bit.  :smiley-confuse:
Arduino clone with ATmega1284P   http://forum.arduino.cc/index.php?topic=277260.0

PerryBebbington


Quote
Wait a minute, you cannot compare MPLAB with Arduino IDE.
Clearly I can as I just have done so!
@b3jh24: Sorry too!

To be fair they are different tools for different purposes.

westfw

Quote
I have a PIC16F (Microchip) SOIC chip
which PIC16F, exactly?  Older 16F chips used a high voltage programming algorithm that would probably be annoying to set up (about as bad as HVSP for a tiny85), but the newer chips mostly come with low voltage serial programming enabled. which OUGHT to be pretty easy.  Whether you can get a tool comparable to avrdude to TALK to the programmer is a separate problem.  There's a long legacy of PIC programmers (and software tools) that were pretty "weird", and I don't know that there has been as much standardization and documentation of communications protocols as there has been in the AVR world.


Probably better to spend $20 for a "Microchip SNAP" programer/debugger (it won't do HV either, though.)

b3jh24

which PIC16F, exactly?  Older 16F chips used a high voltage programming algorithm that would probably be annoying to set up (about as bad as HVSP for a tiny85), but the newer chips mostly come with low voltage serial programming enabled. which OUGHT to be pretty easy.  Whether you can get a tool comparable to avrdude to TALK to the programmer is a separate problem.  There's a long legacy of PIC programmers (and software tools) that were pretty "weird", and I don't know that there has been as much standardization and documentation of communications protocols as there has been in the AVR world.


Probably better to spend $20 for a "Microchip SNAP" programer/debugger (it won't do HV either, though.)

It's a PIC16F15324 so it's capable of low voltage programming.

Go Up