SCPS215G September 2009 – June 2018 TCA8418
PRODUCTION DATA.
The next step to design a keypad array for the TCA8418 is to configure the appropriate hardware registers.
The registers that must be modified for the desired features are the following
STEP | REGISTER TO EDIT | VALUE TO WRITE | DESCRIPTION |
---|---|---|---|
Setup keypad array | KP_GPIO1 (0x1D) | 0x0F | Set ROW0-ROW3 to KP Matrix |
KP_GPIO2 (0x1E) | 0x07 | Set COL0-COL2 to KP Matrix | |
KP_GPIO3 (0x1F) | 0x00 | Set COL8-COL9 to GPIO | |
Setup Interrupts | CFG (0x01) | 0x95 | Set the KE_IEN, K_LCK_IEN, INT_CFG, and AI bits |
Setup Unlock Key Combination | UNLOCK1 (0x0F) | 0x21 | Set first unlock key to key 33 |
UNLOCK2 (0x10) | 0x01 | Set second unlock key to key 1 | |
Set Keypad Lock Timers | KP_LCK_TIMER (0x0E) | 0x52 | Lock1 to Lock2 set to 2 seconds. Interrupt mask timer set to 10 seconds |