- Mon Feb 08, 2010 4:08 pm
#93013
I have a Nordic FOB talking to a Transceiver nRF24L01+ Module. I'm using an Atmel Tiny processor with a code fragment from the "Example receiver firmware" refrerence on the SparkFun web page for the FOB.
It is working well, except I frequently get multiple button push detections. So, I want to "debounce" the button push.
I'm wondering about the easiest way to do it, modifying the FOB or receiver firmware.
Currently, the receiver firmware is polling the transceiver in a ISR that fires at most every 256 cycles So, there should be some debouncing inherent in that receiver since the receiver won't respond to a button detection until it's polled. Should I just poll the transceiver less frequently? Or should I change the FOB firmware instead?
Thanks,
Dave Thomas
It is working well, except I frequently get multiple button push detections. So, I want to "debounce" the button push.
I'm wondering about the easiest way to do it, modifying the FOB or receiver firmware.
Currently, the receiver firmware is polling the transceiver in a ISR that fires at most every 256 cycles So, there should be some debouncing inherent in that receiver since the receiver won't respond to a button detection until it's polled. Should I just poll the transceiver less frequently? Or should I change the FOB firmware instead?
Thanks,
Dave Thomas