Код: Выделить всё
#include <avr/io.h>
#define F_CPU 4000000UL
#include <avr/interrupt.h>
White()
{
TCNT0=0;
while(TCNT0<250){}
}
int main(void)
{
TIMSK=0b01000001;
SREG=0b10000000;
DDRD=0xff;
TCCR0=5;
while(1)
{
PORTD |= _BV(PD0);
White();
PORTD &=~_BV(PD0);
White();
}
}


