[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-chat] Power save mode in ATtiny85 vs avr-libc
From: |
Chris Kuethe |
Subject: |
[avr-chat] Power save mode in ATtiny85 vs avr-libc |
Date: |
Sat, 2 Jan 2010 22:01:55 -0800 |
At least in avr-libc 1.6.7 the following sleep modes are defined for
the ATtiny85:
#define SLEEP_MODE_IDLE 0
#define SLEEP_MODE_ADC _BV(SM0)
#define SLEEP_MODE_PWR_DOWN _BV(SM1)
#define SLEEP_MODE_PWR_SAVE (_BV(SM0) | _BV(SM1))
The latest revision of datasheet (rev K, Jan 08) says that there are
only three sleep modes:
SM1 SM0 Sleep Mode
0 0 Idle
0 1 ADC Noise Reduction
1 0 Power-down
1 1 Reserved
Is this a bug in avr-libc or do some of the newer hardware revisions
also have power save mode? FYI, the parts I'm currently working with
are ATtiny85V-10PU, date code 0939.
CK
--
GDB has a 'break' feature; why doesn't it have 'fix' too?
- [avr-chat] Power save mode in ATtiny85 vs avr-libc,
Chris Kuethe <=