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

circuit

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

program

 

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:

#include

int main(void)
{
DDRD = 0xff;
while(1)
{
PORTD = 0b11100110;
}
}

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

Leave a Comment

You must be logged in to post a comment.

Recent Posts

I2C Bus for ATtiny and ATmega

I2C Bus for ATtiny and ATmega

I love the Atmel AVR microcontrollers! Since building the Ghetto Development System described in thi[...]
Interfacing GY 26 with atmega640

Interfacing GY 26 with atmega640

Hello friend once again with new instructable in this I will show you how to interface GY 26 with UA[...]
Using Atmega32 with Arduino IDE

Using Atmega32 with Arduino IDE

Over time I have used all kinds of Atmel microcontrollers in various projects. One of the mos[...]
Standalone Arduino / ATMega chip on breadboard

Standalone Arduino / ATMega chip on breadboard

Step 1: Parts needed I bought my parts from Digikey and Sparkfun Electronics - they're 2 of my favo[...]
Burning atmega328-pu and atmega328p-pu bootloader

Burning atmega328-pu and atmega328p-pu bootloader

Burning the boot loader in an atmega328 could be somewhat tricky but if u follow these steps correct[...]

Read more:
Experts defend operational earthquake forecasting, counter critiques
Close