[an error occurred while processing this directive]
|
Убрал обработчик прерываний! Что добавил что убрал: CLI(); //disable all interrupts Все равно CKOUT генерирует частоту!
Тем более что процедуру выключени всех прерываний делаю в:
<<
//call this routine to initialize all peripherals
void init_devices(void)
{
//stop errant interrupts until set up
CLI(); //disable all interrupts
port_init();
comparator_init();
watchdog_off();
timer0_init();
timer1_init();
MCUCR =0x03; // 0x00 // áûëî 0x08; // Íàñòðîéêà SLEEP mode è ïðåðûâàíèÿ
GIMSK = 0x80; // Ðàçðåøèëè ïðåðûâàíèå INT1
TIMSK = 0x00;
SEI(); //re-enable interrupts
//all peripherals are now initialized
} >> так что не было бы проблемы не спрашивал бы!