Technosum Training Program 2012: Technosum Solutions Pvt. LTD
Technosum Training Program 2012: Technosum Solutions Pvt. LTD
TechnoSUM Training
Program 2012
By
Topic:
LED INTERFACING WITH AVR KIT
Page 1
TechnoSUM
Page 2
TechnoSUM
Sample Code :
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRC=255;
while(1){
PORTC=2;_delay_ms(100);
PORTC=4;_delay_ms(100);
PORTC=8;_delay_ms(100);
PORTC=16;_delay_ms(100);
PORTC=32;_delay_ms(100);
PORTC=64;_delay_ms(100);
PORTC=128;_delay_ms(100);
}
return 0;
}
* Try some other codes from your own or according to your mentor.
Page 3
TechnoSUM
http://technosum.com
Page 4