Beginner’s Guide – AVR Programming

Jun 25, 2012 by

You will get this done in 30 min.

circuit board

Step 1: Parts

1. 1 X  any type of circuit board
2. 1 X Atmel AVR Atmega16 microcontroller
3. 8 X 330 ohms Resistors
4. 8 X LEDs
5. 1 X AVR Programmer (just use for download the code, i used a STK500)

Step 2: Build the circuit


It’s very simple, just follow the diagram that i attached.



Now you can download the code. I am using the AVR Studio to download the code. You may copy and past this code to AVR studio:


int main(void)
DDRD = 0xff;
PORTD = 0b11100110;

For more details, click: Beginner’s Guide – AVR Programming

Leave a Comment

You must be logged in to post a comment.

Read more:
How to drive 595 shift registers with AVR hardware SPI using ATmega168 microcontroller