Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Sleep and timer T0

2005-06-17 by Francisco Silva

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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.