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.

TCA8418: Writing to KEY_EVENT_A register to simulate keypresses

Part Number: TCA8418

Hello,  I am attempting to write values into register 0x04 KEY_EVENT_A register to simulate physical keypresses for lab automation validation.  Per the datasheet I should be able to read/write to any register.  However, when I attempt to write to registers 0x02 through 0x04 nothing is stored in these registers, only zeros.  

Is there a method or process to write these registers?  Is there another method which could be used to trigger the Interrupt and send the desired values to the controller from this IC?

thank you.

  • Hey Jason,

    The event registers are meant to be a read only register, you shouldn't be able to write data to it and have the data actually be held in that register. 

    If you wanted to simulate a key press, you could hold a col pin (assumed to be in KP mode) and row pin (assumed to be in KP mode)  low by connecting them to GND with a blue wire. 

    -Bobby

  • Is the datasheet incorrect in saying "ALL REGISTERS CAN BE READ AND WRITTEN TO BY THE SYSTEM MASTER" ?   Or do I need to change the configuration to allow these writes? 

    The physical connection for the row/col would be impractical.  I'm looking to press any of the 32 keys remotely on over 100 installations.  I have access to the I2C bus remotely.

  • That sentence means that the I²C master can do successful writes, i.e., that the TCA8418 will acknowledge all writes. It does not imply that the internal state of the TCA8418 will be affected.

    There is no method to simulate key presses only through I²C. You have to inject the events before the software that accesses the I²C bus.

  • Thank you Bobby and Clemens for your input, I appreciate it.