Led blinking program with ATmega128, AVR Studio 6 and ISIS Proteus

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)

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

Side Note, check my Youtube Channel


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s