Part Number: TCA6418E
Dear Team,
This is my configuration.
GPIO 0 - 5 want to use as keypad inputs which have a pull up connected of 10K on the outside, pin goes low when keypad input is pressed and when released high, GPIO 6 - 7 directly connected to ground.
Below is the sequence of the register setting
On Init
IO_Write(0x1A,0xFF) // GPIO 0-7 INT ENABLE
IO_Write(0x2C,0x00) // GPIO 0-7 PULLDOWN
IO_Write(0x17,0x00) // GPIO 0-7 OUTPUTS ALL LOW
IO_Write(0x23,0x00) // GPIO 0-7 DIRECTION
IO_Write(0x29,0x00) // GPIO 0-7 DEBOUNCE
IO_Write(0x26,0x03) // GPIO 0-7 INTERRUPT WHEN HIGH TO LOW TRANSITION
During operation
When INT is received, to detect which GPIO goes from high to low
IO_Write(0x14) // read twice to clear INT
We are not getting correct value also system hangs sometimes after keypad press. Do you see something wrong from our side.