The main point is that you MUST wait at least one timer clock cycle before *re-entering* sleep mode. The easyest way to do this is changing some register and waiting on ASSR. 2005/6/17, Dave VanHorn <dvanhorn@dvanhorn.org>: > > > > >In assynchronous mode you must wait for the registers update (up to 2 > >32kHz cycles). I use the following code on a atmega8. > > I thought the read of the ASSR register was supposed to return me > ones in the low three bits, if those updates were not yet complete. > It said that I could write all three at once, but then I had to loop > waiting for the three bits in the ASSR to zero, before proceeding. > It does int ONCE though, so obviously something's hosed. > > > Yahoo! Groups Links > > > > > -- Francisco
Message
Re: [AVR-Chat] Sleep and timer T0
2005-06-17 by Francisco Silva
Attachments
- No local attachments were found for this message.