avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] Re: [avr-gcc-list] set_sleep_mode and tiny2313/26


From: E. Weddington
Subject: [avr-libc-dev] Re: [avr-gcc-list] set_sleep_mode and tiny2313/26
Date: Mon, 28 Mar 2005 13:19:05 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

akibow wrote:

Hello. I'm using avrgcc and AVR-LibC.Thanks a lot.
Now I am trying to make Japanese version of AVR-LibC document.

We found error? about <avr/sleep.h>. please check it.
_SLEEP_TYPE of tiny2313 and tiny26 are 2,becouse these have SM0,SM1 but not 
have SM2.
So,set_sleep_mode() setting for _SLEEP_TYPE=2 is defined like below:

SLEEP_MODE_IDLE ===> SM1:SM0 = 00
SLEEP_MODE_ADC  ===> SM1:SM0 = 01
SLEEP_MODE_PWR_DOWN ===> SM1:SM0 = 10
SLEEP_MODE_PWR_SAVE ===> SM1:SM0 = 11

But, by datasheet, tiny26 and tiny2313 do not have PowerSave mode.
Instead,SM1:SM0=11 is for STANDBY mode.

Thanks for catching this. Could you fill out a bug tracker on the avr-libc project on Savannah? That way, this issue won't get lost.

Thanks
Eric




reply via email to

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