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: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed
Release: NoneFixed 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_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.)

akibow <akibow>

 

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

Attach File(s):
   
   
Comment:
   

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

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 07 Sep 2005 09:50:33 PM UTCjoerg_wunschStatusNone=>Fixed
  Assigned toNone=>joerg_wunsch
  Open/ClosedOpen=>Closed
Tue 29 Mar 2005 11:26:49 PM UTCakibowAttached File-=>Added sleep_type.html, #2363
Tue 29 Mar 2005 11:25:01 PM UTCakibowAttached File-=>Added sleep2.h, #2362

Back to the top


Powered by Savane 3.1-cleanup1