Do you guys use the:
a) Timer1 Gate Interrupt (triggered by the overflow of the timebase timer )
or
b) Timebase timer Interrupt (overflow)
...and when one of those interrupts is serviced checking the counts on the timer1
(microchip AN1171 http://www.google.com/url?sa=t&sourc...eJmWE1g8kxdKZg say to use a).... why????)
Thank You
Last edited by bogdan; - 13th May 2011 at 01:39. Reason: spelling
b) - I use timer2 interrupt (via DT's interrupts) as the timebase... & in the interrupt routine, I check the actual timer1 counts (ie as received from the cap sense module).
When I put the PIC to sleep, because timer2 can't be used while it's sleeping, I use the WDT as the necessary timebase.
Im also using the Pic16f1824 and would liek to capsense working for a SLEEP/ WAKEUP button. I understand the flow of how yo uare using the WDT to do this however I am having trouble getting the capsense to work in general. Would you be able to give light on config bits for using timer1 and capsense channel 2?
Thanks for all the help.
Bookmarks