Maker Pro
Maker Pro

ATTINY uC Sleep-Mode Functionality

Hey,
I am working on a project that involves an ATTINY45 microcontroller.

I want it to be in SLEEP MODE most of the time and every 2-3 minutes check specific GPIO pin (HIGH or LOW). If it is HIGH add 1 to a counter otherwise Reset a counter.

- Is it possible functionality? Or maybe there is a better way of using interrupts?
- For how long should a CR2032 BATTERY LIFE SPAN hold with that REGIME?

Glad if you could assist and let me think what problems may also occur.
Thank you very much
 
Last edited by a moderator:
Yes it is possible.
For lowest power consumption use the μC in power-down mode.
Wake it up on interrupt from one of the sources: watch-dog timer or pin change.

See chapter 7 in the datasheet

About the battery life:
Here is a nice and free calculator for that.
Enter your parameters and find out.
 
Last edited:
Yes it is possible.
For lowest power consumption use the μC in power-down mode.
Wake it up on interrupt from one of the sources: watch-dog timer or pin change.

See chapter 7 in the datasheet

About the battery life:
Here is a nice and free calculator for that.
Enter your parameters and find out.

Thank you very much!
 
Top