the CTMU interesting part of the 18f chips , with timed delay triggering and pulse control for touch switch applications input and few features i would love to play with , and mastering will open some great features
for those interested in converting a working C version of touch switch using an ISR into PBP , here it is , and is good to uses as a base for conversion if you feel like it ( i am now starting to learn C again)
I think ill stick to the manual trigger , which is called from the ISR every 10ms for touch switch reading for the moment , will post working code for that when its done
it helps when you get a stable reading from the a/d port when not touched , which is where i was getting some issues
touch switch CTMU EXAMPLE - C CODE.txt
Bookmarks