RAM power in Tiny85 in power-down mode

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The ATTiny85 datasheet has this to say about the SRAM while in the various sleep modes:

Quote:
Idle mode stops the CPU while allowing the SRAM, Timer/Counter, ADC, Analog Comparator, and Interrupt system to continue functioning. Power-down mode saves the register contents, disabling all chip functions until the next Interrupt or Hardware Reset. ADC Noise Reduction mode stops the CPU and all I/O modules except ADC, to minimize switching noise during ADC conversions.

Now, it doesn't explicitly say that SRAM is preserved in power-down mode, but elsewhere it does say:
Quote:
The contents of the Register File and SRAM are unaltered when the device wakes up from sleep.

Can I assume then that SRAM is preserved (and drawing power), preserving all my variables, even in power-down mode? Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From the datasheet:

Quote:
The contents of the Register File and SRAM are unaltered when the device wakes up from sleep.
That sound pretty conclusive to me.

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

lautman wrote:
Can I assume then that SRAM is preserved (and drawing power), preserving all my variables, even in power-down mode? Thanks.
Think about it, it would be a worthless piece of sand if it didn't.

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

valusoft wrote:
Think about it, it would be a worthless piece of sand if it didn't.

Well, not necessarily, but, as I said, I was pretty sure it worked the way we'd all expect. What caught me was the omission of SRAM when describing power-down mode when they make a point of mentioning it in idle mode. Just wanted to double-check.