
PICkit 2 is a Microchip programmer/debugger designed primarily for PIC chips. The fun part is that AVRDUDE can also use it as an ISP programmer for supported AVR microcontrollers, including the ATmega328P I was working with here. That AVR support comes from AVRDUDE rather than Microchip’s PICkit 2 application.
At the time, Atmel was a separate competitor, and I thought Microchip might have stopped supporting PICkit 2 because people were using it to program Atmel chips. After all, you wouldn’t want your open-source hardware funding sales of your biggest competitor! That explanation was speculation, though; I don’t have evidence for the connection.
What I used:
- PICkit 2
- the programmer / adapter hardware linked from obddiag.net in the original post
- PIC12F508, useful for checking that the PICkit 2 setup was functioning
- ATmega328P as the AVR target
- AVRDUDE on the Mac
Compiling all of this was particularly entertaining because I had very little idea what I was doing! 😅 More to come when I find the time…
Update 2023: I’ll probably never find the time. However, it’s worth mentioning that this was all done for the Lunchbeat project. More of that hot mess can be found in the Projects folder in the photo gallery. Enjoy! 🙃