avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Interrupts from assync timer in sleepmode


From: Bjarne Laursen
Subject: Re: [avr-chat] Interrupts from assync timer in sleepmode
Date: Thu, 22 Sep 2005 13:55:22 +0200
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Nils Springob wrote:

Yes, that is how I did it first. When the sleepmode is idle, it works fine. But when sleepmode is power-save, and the output-compare-match happens in the interrupt-disabled part just before sleep.


Perhaps this is the problem:
Timer 0 will not work in power-save mode, the datasheet states(ATmega128 p. 43, 44): "... contents of the registers in the asynchronous timer should be considered undefined after wake-up in Power-save mode if AS0 is 0."

AS0 is 1, that is what make it an ansyncrone timer. The timer runs from the 32768 Hz crystal as it should.

-Bjarne Laursen, RoseTechnology A/S




reply via email to

[Prev in Thread] Current Thread [Next in Thread]