can i use a pickit-2 to program the ATMEGA328P-PU IC ?

This forum is dedicated to the author Joe Pardue as he teaches you about AVR C Programming in his workshop series.

Moderator: joepardue

Post Reply
User avatar
dacflyer
Posts: 4295
Joined: Fri Feb 08, 2002 1:01 am
Location: USA / North Carolina / Fayetteville
Contact:

can i use a pickit-2 to program the ATMEGA328P-PU IC ?

Post by dacflyer » Wed Feb 26, 2014 9:24 am

i was wondering if i can i use a pickit-2 to program the ATMEGA328P-PU IC ?
this is the same IC used on the Arduino Uno
i am curious if it is possible in case i want to use the IC in a stand alone project rather than having to leave the Uno inside the project for ever.

or is it better to program the IC with the Uno, than transfer the IC to my project ?

User avatar
joepardue
Posts: 51
Joined: Sun Jul 31, 2011 6:44 am
Contact:

Re: can i use a pickit-2 to program the ATMEGA328P-PU IC ?

Post by joepardue » Wed Feb 26, 2014 10:12 am

I've never used a pickit-2, but a little Googling seems to indicate that it is possible. However I'd remind you that the Arduino has a bootloader so you don't need an external programmer. You might want one if you are going to add a bootloader to and ATmega328 or if for some reason you don't want to use a bootloader. And you can also use an Arduino to program an ATmega328 via ISP on a breadboard - there are instructions on the Arduino website - look for Arduino ISP programmer.

Joe

User avatar
dacflyer
Posts: 4295
Joined: Fri Feb 08, 2002 1:01 am
Location: USA / North Carolina / Fayetteville
Contact:

Re: can i use a pickit-2 to program the ATMEGA328P-PU IC ?

Post by dacflyer » Fri Feb 28, 2014 12:53 pm

is the "bootloader" actually programmed onto the atmega chip or is it on the arduino board itself ?

User avatar
joepardue
Posts: 51
Joined: Sun Jul 31, 2011 6:44 am
Contact:

Re: can i use a pickit-2 to program the ATMEGA328P-PU IC ?

Post by joepardue » Fri Feb 28, 2014 1:26 pm

It is programmed into the atmega chip.

You open the Arduino IDE (Integrated Development Environment) on your PC and plug your Arduino board into the USB. You can select a serial port (COM port) from a list and then the IDE will talk to the Arduino atmega using the bootloader. After you upload your program from the IDE the bootloader causes the Arduino to reset and run the program you uploaded.

User avatar
dacflyer
Posts: 4295
Joined: Fri Feb 08, 2002 1:01 am
Location: USA / North Carolina / Fayetteville
Contact:

Re: can i use a pickit-2 to program the ATMEGA328P-PU IC ?

Post by dacflyer » Sat Mar 01, 2014 6:32 am

thanks, i do have the arduino already. i am using it for the led cube, i have a choice of 2 files to load into it.
i am still trying to learn how to combine the 2 codes into 1 large code..:)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest