Blinky with Starter AVR
After setting up starter AVR board, we will start with simple LED blinking experiment. Two user LED's are provided on starter AVR board, we will use same for this experiment.
Basic
On starter AVR board LED's are connected to PD4 and PD5. We are using one connected to PB5 in this example. I am using Atmel Studio to write the code. To know about how to do setting and create a project in Atmel Studio, look at our AVR Hardware and Software Setup tutorial. After generating the hex file, look at our Setting Up Starter AVR tutorial to flash the hex file to the board.
Hookup
Code
#include <avr/io.h> | |
#include <util/delay.h> | |
#define LED 5 | |
int main() | |
{ | |
DDRD = (1<<LED); // Configure PORTD5 as output | |
while(1) | |
{ | |
PORTD = (1<<LED); // Turn ON Led connected to PORTD5 | |
_delay_ms(1000); // Wait for some time | |
PORTD = (0<<LED); // Turn OFF Led connected to PORTD5 | |
_delay_ms(1000); // Wait for some time | |
} | |
return 0; | |
} |
Demo
Downloads
Download the complete project folder from the below link:
https://github.com/ExploreEmbedded/ATmega32_ExploreStarterAvr/archive/master.zip
Have a opinion, suggestion , question or feedback about the article let it out here!
Setting Up Starter AVR
In this tutorial we will look at setting up the starter AVR board. Once you have done with this basic set up, you can use on board peripherals as well as many other peripherals which can be connected...

Blinky with Starter AVR
After setting up starter AVR board, we will start with simple LED blinking experiment. Two user LED's are provided on starter AVR board, we will use same for this experiment. Basic ...
Interfacing LCD with Starter AVR
In this tutorial we'll look at how to interface different types of character LCD's to the starter AVR board. Basic Starter AVR board has female connector on board to connect LCD's...

Interfacing Seven Segment Display with Starter AVR
Now we will go further and will interface more complex peripherals. In this tutorial we will interface common anode 7 segment display to the starter AVR board. To get idea about basics of 7 segment...