Saturday, 19 September 2015

LED Blinking in ATMEGA32


#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
   int i;
   DDRD=0XFF;  
    while(1)
    {
        PORTD=0XFF;
        _delay_ms(500);
PORTD=0XFF;
        _delay_ms(500);
    }
}

No comments:

Post a Comment