Norm,

There are many ways to do it. You can also use the interrupt TMR1 to detect changes in the output frequency due to a pad being touched by a finger. This is explained in AN1101 "Introduction to Capacitive Sensing".

http://ww1.microchip.com/downloads/e...tes/01101a.pdf


Quote Originally Posted by Normnet View Post
The following code is derived almost directly from AN1286:
I see that you are using AN1286 "Water-Resistant Capacitive Sensing". If you are using your touch sensors in a wet environment, then you might want to consider using inductive sensors. Take a look at the table I attached to this post.

http://www.microchip.com/stellent/id...param=en538303

Name:  Inductive.JPG
Views: 7819
Size:  38.5 KB

Robert