EVAL-ADP5588
Rev. 0 | Page 8 of 20
Keypad Configuration
To program a GPIO pin as a keypad in the GPIO tab:
1.
Set the bits for the columns and rows that need to be
configured as keypads in Register 0x1D, Register 0x1E,
and Register 0x1F and click
Program 0xXX
for each
register that needs to be programmed (XX represent the
register address to be programmed).
The ADP5588 has eighteen GPIOs that can be programmed as
keypad lines to make up a 10 × 8 keypad matrix (80 keys). If a
smaller size matrix is needed, the unused GPIOs can be used for
other functions (other functions include GPIs, GPOs, and light
sensor comparator inputs).
2.
Enable KE interrupt for key presses and releases, if needed,
by setting Bit 0 in Register 0x01. Register 0x04 through
Register 0x0D make up the FIFO registers for the key event
table. For more details on the keypad operations, see the
data sheet.
Motherboard Jumper J1 through Motherboard Jumper J8 and
Motherboard Jumper J13 through Motherboard Jumper J22
must be set in the KP position in any row or column that will be
used as part of the keypad matrix.
For more information, see Figure 32.
For more information, see Figure 23.
08102
-02
4
Figure 23. Keypad Configuration Tab