16.08.2013 Views

Programming ATMEL AVR series microcontrollers - DAIICT Intranet

Programming ATMEL AVR series microcontrollers - DAIICT Intranet

Programming ATMEL AVR series microcontrollers - DAIICT Intranet

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

led = 0;<br />

for (;;) {<br />

do /* this while-loop checks the<br />

overflow bit in the TIFR register */<br />

state = TIFR & 0x01;<br />

while (state != 0x01);<br />

PORTC=~led;<br />

led++;<br />

if (led==255) led=0;<br />

TIFR=(1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!