Re: Cap Sense ...getting a drowsy PIC to wake out of sleep!!

Originally Posted by
HankMcSpank
in a DT interrupt routine I compare the timer1 'count' vs the last timer1 'count'
The CSM app notes recommend to compare the last count vs an average instead of comparing to the previous count.
I don't see how you can use CSM in sleep mode. If you use the WDT to make the pulses anyways, you need an interrupt to see how many pulses you have in a fixed amount of time. So, you really need two timers. Also, you need to make some calculation to know if the button was touched.
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks