bugAVR C Runtime Library - Bugs: bug #12496, about set_sleep_mode() and...


bug #12496: about set_sleep_mode() and tiny26/tiny2313

Submitted by:  akibow <akibow>
Submitted on:  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 <joerg_wunsch>
Percent Complete:  0% Open/Closed:  Closed
Release:  None Fixed Release:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 28 Mar 2005 10:47:15 PM UTC, original submission:  

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_ADC  ===> SM1:SM0 = 01

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.)

akibow <akibow>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

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 StatusNone => Fixed
    Assigned toNone => joerg_wunsch
    Open/ClosedOpen => Closed
2005-03-29 akibow Attached File- => Added sleep_type.html, #2363
2005-03-29 akibow Attached File- => Added sleep2.h, #2362

Back to the top

Powered by Savane 3.5