-
Notifications
You must be signed in to change notification settings - Fork 4
USB ISP Programmer
The preferred USB ISP programmer is the SainSmart USB ISP Programmer for ATMEL AVR ATMega ATTiny 51 Board the unit costs only around $9.00 (as of October 30th, 2014) and has free two day shipping with Prime. And the programmer does come with the ribbon cable.
The first thing we need to do to program our microcontroller is to wire it up to our programmer. Using the datasheet of your microcontroller connect the respective pins together following the provided diagram.
Diagram to be provided.
For both Windows and Linux (we have not tested it on Apple devices as of October 30th, 2014) the hex file is uploaded using AVRDUDE in terminal.
sudo avrdude -c USBasp -p [Microcontroller] -U flash:w:[The hex file]:i
Here is an example of the command to upload the compiled code My_Code.hex to an Atmega8 microcontroller.
sudo avrdude -c USBasp -p atmega8 -U flash:w:My_Code.hex:i