-
sleep with pic
Hi Guys/Ladies
What is the best way to put and wake my pic to sleep
i am designing a data logger that would be battery operated
and would date stamp my readings and store to a serial eeprom.
Some people might want to take readings only once an hour
and the reading only take a minute max .
How can put the pic 18F452 to sleep then wake it up just before the user reading time.
Would i need to use a RTC that can trigger an interupt on RB0 ?
Just a few pointers in the right direction
__________________
( Santana )
( )
( **** )
-
You may need an RTC with Alarm if you want once an hour wake-up, as most will give you a 1Hz pulse at best.
But then again, if you wake up every second (with a 1Hz pulse), increment a counter and if an hour hasn't elapsed fall asleep again, you still will be asleep 99.999% of the time out of every second. Sounds good to me.