Tool/software:
Does the TCA9555 have automatic button debouncing built in? If it does, then is that true for both polled and interrupt?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Does the TCA9555 have automatic button debouncing built in? If it does, then is that true for both polled and interrupt?
Hi Tyrique,
TCA9555 does not have automatic debouncing built in. If debounce is needed, an external cap would be needed.
Regards,
Tyler
Hi Tyrique,
Thank you. You too. Glad I could help.
If you have any additional questions feel free to start a new thread.
regards,
Tyler
Do you have a reference schematic or part of the data sheet that could be referenced for the capacitor design?
Hi Tyrique,
You can search for debounce circuitry examples on the web if you need more ideas.
I believe a simple debounce can be as simple as a pull-up resistor, switch to GND, and capacitor.
See my drawing snippet:
The example in purple is without the capacitor. I think debounce is simply a lowpass filter.
IF you need a keypad scanner that has built in debounce with a clocking mechanism, you could consider using the TCA8418E keypad scanner. IT has built in registers to enable debouncing for keystroke inputs. The debounce works by clocking the input twice. It clocks once every 50us. If on the 2nd clock cycle the input is the same logic, only then will an interrupt occur.
Regards,
Tyler