[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #12496] about set_sleep_mode() and tiny26/tiny2313
From: |
Fumiaki Toguchi |
Subject: |
[avr-libc-dev] [bug #12496] about set_sleep_mode() and tiny26/tiny2313 |
Date: |
Mon, 28 Mar 2005 22:47:16 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) |
URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12496>
Summary: about set_sleep_mode() and tiny26/tiny2313
Project: AVR C Runtime Library
Submitted by: akibow
Submitted on: Mon 03/28/05 at 22:47
Category: Header
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
_______________________________________________________
Details:
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.)
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12496>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #12496] about set_sleep_mode() and tiny26/tiny2313,
Fumiaki Toguchi <=