AVR C Runtime Library - Bugs: bug #12496, about set_sleep_mode() and...
You are not allowed to post comments on this tracker with your current authentication level.
bug #12496: about set_sleep_mode() and tiny26/tiny2313
Submitter: | akibow <akibow> | ||
Submitted: | Mon 28 Mar 2005 10:47:15 PM UTC | ||
Category: | Header | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | Fixed | Assigned to: | joerg_wunsch |
Percent Complete: | 0% | Open/Closed: | Closed |
Release: | None | Fixed Release: | None |
Attached Files
file #2803: sleep_type.html added by akibow (6KiB - text/html - sleep-mode of each avr device - check me!)
file #2802: sleep2.h added by akibow (7KiB - application/octet-stream - test : sleep2.h - added tiny26 and tiny2313 type.)
Depends on the following items: None found
Items that depend on this one: None found
CC list is empty
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2005-09-07 | joerg_wunsch | Status | None | Fixed | |
Assigned to | None | joerg_wunsch | |||
Open/Closed | Open | Closed | |||
2005-03-29 | akibow | Attached File | - | Added sleep_type.html, #2363 | |
2005-03-29 | akibow | Attached File | - | Added sleep2.h, #2362 |
Powered by Savane 3.13-d3ae.
Corresponding source code
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.
(another user found it at the first time.)
_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.
------------
AVR-LibC document(1.2.3) do not explain about definition for argment of set_sleep_mode().(SLEEP_MODE_IDLE etc.)
Why? Is there any reason to omit these?(1.0.4 documentation contain these explanation.)