ATMega32 Tutorial Series 2- (configuring USBasp with atmel studio)

To proceed with this article, you need to haveconfigured atmel studio and USBasp drivers correctly . This tutorial is based onthis article .

Step 1: Compilation Tool Chain

Figure 1:

Step 2 : Adding USBasp as a shortcut

In this step we’re setting up an external tool so that we won’t need to type in the command line window everytime we want to load the hex file to the MCU.

avrdude -c usbasp -p atmega32 -U flash:w:$(ProjectDir)Debug\$(TargetName).hex:i

if you’re using a different MCU (say atmega328p) then you need to change the above code to the relevant MCU name.

Figure 2:

Step 3: Testing a sample code

Note : If you don’t have the AVR Minimum System board fro ATMega32, this picture shows how the connections needed to be done, in order to program it on a breadboard.

Figure 3: