I have PIC18F87J11 with MPLAB C18. I am trying to limit the consumption of battery by the device by forcing it to go to sleep. I noticed upon entering the sleep mode, timer0 stops counting up any further until awaken. Also the only method I know to wake up the device is when it receives a message from another node since I have a MRF89XA transceiver.
To put my device to sleep I just call it this function which is defined in the Compiler header file.
Sleep();
Q1: How do I wake up the device other than by receiving a message from some node? In the DataSheet it says to EXIT BY INTERRUPT or by EXIT BY RESET but how do you do that if there is no timer?
By reading the DataSheet its stated that Timer1 must be used to be able to monitor the time, is that really the case?
All I really want is to lower battery usage as much as possible and keep the timer working on sleep mode.
Thanks!