Hi,
I am trying to implement capacitive touch with nrf52832.In our application we require three events to be generated.
1)On holding for 3sec(Device Turn ON)
2)On holding for 8sec(Start advertising/Pair-up)
3)On Tap(Current status of modules involved depending on number of taps)
Initially device is considered to be in System OFF mode, Inorder to wake up device from system OFF mode it is mentioned that use ANADETECT signal generated from LPCOMP. As of my knowledge I thought that I could consider reference voltage to differntiate between Turn On and Pair up conditions i.e VIN+<VIN-(Down Event),on triggering Down Event 'Turn on' condition to be executed and if VIN+>VIN-(Up Event),on triggering Up Event 'Pair Up' condition to be executed according to defined handler.
I think Up Event is generated when upward crossing occurs i.e VIN+ may excceed VIN- and genetare 'pair up' event.But,How about downward crossing it should get decreased from some higher value n cross VIN-. It seems like any one event can be triggered.
Is this the right way of implementing capacitive touch for our requirement?
Do I need to involve RTC compare events to calibrate 3sec and 8sec and generate handler events?or
On holding capacitive touch 3sec/8sec,obtained VIN+ itself is sufficient?
As softdevice is also involved please let me know right way to approach for implementation.
Thank You.