Step 6Program the AVR Tiny Microcontroller
#include<avr/io.h>
volatile uint8_t i=0;
int main(void)
{
DDRB=0b00001000;
PORTB=0b00000000;
while(1)
{
PORTB=0b00000000;
for(i=0;i<254;i++);
PORTB=0b00001000;
for(i=0;i<254;i++);
}
return 0;
}
| « Previous Step | Download PDFView All Steps | Next Step » |
1
comment
|
Add Comment
|
![]() |
Add Comment
|














































