#asm // here interrupt enter !!!
NOP //window for interrupt entry
NOP //window for interrupt entry
NOP //window for interrupt entry
NOP //window for interrupt entry
#endasm
disable_interrupts (GLOBAL);
//--------------------------------
// enter sleep mode
//--------------------------------
Study the data sheet.
Section 14.6.1.
Then the second list of numbered items. Number 1. Note the _limitation_ about Timer1. _Is_ your timer operating as an asynchronous counter?....
(Internal clock _stops_ when you sleep)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum