NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Microcontroller Programming » AVRISP v2 programmer
October 13, 2012 by Robotnik |
I have been trying to program the ATMEGA 328p with an AVRISP v2 programmer, and avrdude loads the program onto the microcontroller without any problems, but it won't turn on an led.
Does anyone know what i'm doing wrong? |
---|---|
October 13, 2012 by pcbolt |
Robotnik - The 328p needs a special "io.h" file. If you go to the Members/Downloads section of this site, you'll find an "Upgrade 328 Nano Guide" . On page 7 they provide a link for the correct file called "io_328p.h". If you want to check if this is the problem before you download anything, try replacing lines 5 and 6 above with;
|
October 14, 2012 by Robotnik |
Ah okay, that fixed it thanks. Interesting, i'm just getting back into programming the ATMEGA328p, and I don't remember ever having to do that. |
Please log in to post a reply.
Did you know that one NerdKits customer controlled a laser pointer with his computer using a microcontroller? Learn more...
|