My 1st blog attempt

So I have been learning/refreshing Embedded C, my initial project was just a simple program. Blinking an Led

I have attached the source code, and schematic

Source Code: 

#include <avr/io.h>
#include <util/delay.h>

void BlnkLED() // function declaration
{
DDRA = 0xFF; // set up pin direction
PORTA ^= 0x01 ; // toggle the pins
_delay_ms(500); //delay
}

int main (void)
{
while(1){
BlnkLED();
}
}

Schematic:
Image
 
Download Proteus and Atmel Studio 6
Download Files(Code and Proteus simu): Link
 

Side Note, check my Youtube Channel

https://www.youtube.com/channel/UC7AggQB0Pge-w1M3n8_purg