[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] set_sleep_mode and tiny2313/26
From: |
akibow |
Subject: |
[avr-gcc-list] set_sleep_mode and tiny2313/26 |
Date: |
Sun, 27 Mar 2005 17:39:18 +0900 |
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.
-----------
Japanese translation version of AVR-LibC document (now in
progress)
http://www11.ocn.ne.jp/~akibow/AVR-LibC_1.2.3J/
if any error from misunderstanding or transration, write to AVR-Wiki
http://www7a.biglobe.ne.jp/~attlee/avr-jp-wiki/wiki.cgi?page=AVR%2DLibC
- [avr-gcc-list] set_sleep_mode and tiny2313/26,
akibow <=