85Views6Replies

Author Options:

Sleep Mode Answered

If using sleep mode with the external interrupt to wake it. Does it always  go into sleep mode after a preset time or can it go into sleep mode after inactivity also?

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
steveastrouk
steveastrouk

Best Answer 8 years ago

You push it into sleep mode, by tickling certain registers in the chip. So the timing of it is down to you. Use a watchdog timer, where any activity resets the timer, but when it times out, the chip's forced to sleep.

0
WWC
WWC

Answer 8 years ago

Yes i saw that one. It is good. What i was confirming is they all work on timers. They all sleep after some period of time? I am actually not working with a watch dog reoccurring but an external interrupt.

0
steveastrouk
steveastrouk

Answer 8 years ago

They only sleep when you tell 'em to.

0
WWC
WWC

Answer 8 years ago

That's what i wanted to know.
Thanks for answering Steve.

W

0
WWC
WWC

Answer 8 years ago

Ah gotcha!

0
steveastrouk
steveastrouk

8 years ago

There's a very good, and explanatory sketch called "Nightingale" which shows sleep mode well