As I understand it you will miss it, unless you are using an interrupt to wake the device when the pin is toggled.
As I understand it you will miss it, unless you are using an interrupt to wake the device when the pin is toggled.
Shawn
Hi,
With TMR3 configured as a counter I would think you should 'get' the count. However the datasheet isn't really clear on this as far as I can see. It does say that, when entering sleep, all peripherals are shut down so perhaps it'll stop working even if configured as a counter. If configured as a timer it'll definitely stop since the main oscillator is shut down when in sleep.
If it turns out that TMR3 stops counting when in sleep you could try OSCON.7 = 1 which, when the SLEEP instruction is executed puts the processor in Idle mode instead of sleep. In idle mode the CPU is shut down but the peripherals are kept ON. Draws a bit more current obviously but what are going to do.... Make sure you read up on the various idle-modes available. But again, I think you should be fine when configured as a counter.
/Henrik.
Hi,
probably you could do something interesting with comparators that can wake up your device ... as you stated toggling happens @ a very very very low rate ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks