Pages: [1]   Go Down
Author Topic: Sleep mode?  (Read 535 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 102
Where's the Kaboom?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Was just thinking about about when the Arduino is in sleep mode - what happens to the output pins?

Do they remain in the state they were (possibly still sinking/sourcing current, or do they go into a tristate?

Cheers
Logged

CT, USA
Offline Offline
Sr. Member
****
Karma: 2
Posts: 446
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Marvin,

You might want to check the product manual (look for power management and sleep modes section) as there are six different sleep modes for ATmega328p. Among the six modes, I believe the pins will continue to work (i.e. hold the value) in Idle and ADC Noise Reduction modes.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12285
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Do they remain in the state they were (possibly still sinking/sourcing current,
Yes.

Quote
or do they go into a tristate?
No.

The more complex the I/O function, the more likely it will be turned off.  For example: for most sleep modes PWM stops.  Simple I/O always remains functional.
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 102
Where's the Kaboom?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Cheers for the clarifications!  smiley
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12285
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


You are welcome.

If your application will be battery powered, this may help...
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1243213127/all

Basically, floating digital inputs will consume power even if the processor is sleeping.
Logged

Pages: [1]   Go Up
Jump to: