Hi All,
We are in a Process of evaluating TCA6424 chip. We have connected 8 push button switches to TCA6424 Input Port.
When going through the data sheet i came across :
8.4.3 Interrupt Output (INT)
An interrupt is generated by any rising or falling edge of the port inputs in the input mode. After time tiv, the signal
INT is valid. Resetting the interrupt circuit is achieved when data on the port is changed to the original setting or
when data is read from the port that generated the interrupt. Resetting occurs in the read mode at the
acknowledge (ACK) or not acknowledge (NACK) bit after the rising edge of the SCL signal. Interrupts that occur
during the ACK or NACK clock pulse can be lost (or be very short) due to the resetting of the interrupt during this
pulse. Each change of the I/Os after resetting is detected and is transmitted as INT.
Reading from or writing to another device does not affect the interrupt circuit, and a pin configured as an output
cannot cause an interrupt. Changing an I/O from an output to an input may cause a false interrupt to occur, if the
state of the pin does not match the contents of the Input Port register.
The INT output has an open-drain structure and requires pullup resistor to VCCP or VCCI depending on the
application. If the INT signal is connected back to the processor that provides the SCL signal to the TCA6424A
then the INT pin has to be connected to VCCI. If not, the INT pin can be connected to VCCP.
We have a query to TI team as we need to confirm this chip (Expecting a quick response ):
Considering a push button connected to Port 0.0 . when Pressed will generate interrupt and can be detected.
Similarly can we differentiate long Press or short Press for the same.
We are asking this question as after getting an interrupt & reading the respective port, the interrupt circuit will be resetted and the port will switch back to original setting. As per datasheet.
So holding a key for long time will generate an interrupt and once the port register is read the state of the pin will go back to original setting & hence releasing of key might not generate an interrupt.
Can someone Please review the above understanding for the chip with respect to Push button connected.