Timer and CapSense at BLE | Cypress Semiconductor
Timer and CapSense at BLE
I have to read-out an 8 bit shift register with 50 Hz. For that I have to toggle the clock pin with 6 us for about 20 times, then wait 20 ms. What would be the best way to do so? With BLE I can only use the WDT to wake up, I think, but with 6 us I cannot save power. Perhaps I could do the read-out faster, but how could I prevent the BLE to go in deep sleep (so I could use a normal timer)? I also want to measure the battery, but this could be timed with a software timer based on the WDT.
Another thing what I am not sure about: if I don't use the WDT, would the BLE be kept alive if connected? Or does it stay in deep sleep forever?
When all this works I want to use CapSense buttons to start the BLE advertising (and perhaps other functions when connected). This don't have to be fast, only for wake up. Can I use the WDT to read buttons if BLE is not connected or are there any things I have to consider?
What CapSense module should I use? CapSense v3.10 or CapSense CSD v2.50?