Getting Started with Atmega32

Updated: Jan 15

This is first in the series of AVR tutorials on kitflix. I am going to share series of videos through blog posts along with the code’s to understand it better. The tutorials are less about reading and more about watching the videos to understand better.

This First tutorial is about AVR microcontrollers and getting started into it. To follow this tutorial, you’ll need to install atmel studio and simulIDE in your computer

iot online course


/*
* LEDBlink.c
*
* Created: 08-10-2020 09:44:14
* Author : Amit Rana
*/
#define F_CPU 8000000L
#include <avr/io.h>
#include<util/delay.h>
int main(void)
{
/* Replace with your application code */
DDRB = 0xff;
while (1)
{
PORTB = 0x00;
_delay_ms(1000);
PORTB = 0xff;
_delay_ms(1000);
}
}

37 views0 comments