I would like to NAP or SLEEP to save power but need to wake up precisely after a random delay. (Yes, that's rather contrary.) I am computing the delay no problem and storing it in a 8Bit variable "Xwait" which is between 67mS to 200mS. I would like to feed the equivalent of NAP or SLEEP with this variable. All I/O is disabled during this period and the uC is a 16F684 using it's 4MHz internal oscillator. 1mS resolution would be great, but as much as 10mS would be acceptable. Setting a timer would be ok as well if NAP or SLEEP are unworkable.(This pseudo random repeat wake-up delay is used to avoid collisions between multiple transmitters.)
Bookmarks