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();
}
}