NXP Comm,
Controller I am using is, MC9S08PT16, Like in some of the controllers I've used, the controller port itself is checked for 1 when touched. In HC08, there is an interrupt associated with it, which is great, but I want to know what should be read for when there has been a touch. In the datasheet it says the CNT register stores the accumulation but my understanding is that its only a counter time, I dont get what it accumulates, most importantly, my question being, how will I know when there's a touch ?
Process being, controller starts a scan, waits for EOSF register to be set which means it ended the scan, goes into the interrupt for "post processing". So.. I don't know what I should be reading when there is a touch for further operation. @YK, sorry YK I am tagging you out of no where, but my friend mentioned to me about you and how you helped him with Zigbee development, maybe you could help me out too (:
Hey Vicente,
Thanks so much for replying. I have posted another question which may clear things up a bit: https://community.nxp.com/t5/CodeWarrior-for-MCU/Capacitive-touch-sensing-on-HC08/m-p/1312828
In the reference manual, it says I should be reading the CNT for any touch accumulations, but the count always goes from 0 to FFFF from start to stop of scan. Post scan its coming to the ISR and CNT is ofcourse Zero even after a couple of touches, I am not quite sure if I have my code setup right. Posted code in the above link. Sorry I was being unclear earlier, but I basically am curious to know, post touch what register stores the touch count or is there a register that is being set to 1 when touched ?
I am not sure that I got properly your question
But you can check the following application note for more reference for the TSI module or using the TSS library
https://www.nxp.com/docs/en/application-note/AN4431.pdf
https://www.nxp.com/docs/en/application-note/AN4578.pdf
regards
Vicente