SOLUTION PROVIDER OF ANY SORT OF PROBLEMS RELATED TO ELECTRONICS AND TELECOMMUNICATION
Tuesday, March 1, 2011
LED Blinking Using ATMEGA-16 Microcontroller
#include
#include
main ()
{
DDRB=0xFF;
while(1)
{PORTB=0xFF;
_delay_ms(2000); //on for 2 seconds or 2000ms
PORTB=0x00;
_delay_ms(2000); //off for 2 seconds or 2000ms
}
}
No comments:
Post a Comment