About Project
Atmega32 is a very popular high performance 8 bit AVR Microcontroller. For this example project we need to use two registers DDR and PORT. DDR stands for Data Direction Register, it determines the direction (Input/Output) of each pins on the microcontroller.
Blinking LED is the first step you would like to take to get started with electronics. In this tutorial we are going to connect an LED with ATmega32, which is an AVR series microcontroller. We are going to blink the LED.
Software Required :
Atmel studio tutorial link:
https://www.youtube.com/watch?v=4AlUZNadbKw&list=PLe0M4xo7Fm3m5j72BevMSS0N5vWU9YCxo&index=5
Proteus Simulation
Circuit Design :
You tube link for Full Tutorial:
Hindi Tutorial:
https://www.youtube.com/watch?v=2P5-YVpwAAs&list=PLe0M4xo7Fm3m5j72BevMSS0N5vWU9YCxo&index=6
English Tutorial:
Software Code:
#define F_CPU 1000000UL
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRA =0b11111111;
while(1)
{
PORTA =0b11111111;
_delay_ms(10000);
PORTA =0b00000000;
_delay_ms(10000);
}
}
For more project and code : please comment and suggest us.
Comments
Post a Comment