EVAL-ADP5588
Rev. 0 | Page 9 of 20
0
8102-
025
Figure 24. GPIOs Configuration
GPIOs Configuration
The ADP5588 allows the user to configure any of the eighteen
GPIOs as GPIs or GPOs (see Figure 24).
Motherboard Jumpers J1 through Motherboard Jumpers J8 and
Motherboard Jumpers J13 through Motherboard Jumpers J22
must be set in the GPI or GPO position for any row or column
that is to be used as GPI or GPO.
GPI Configuration
To configure a row or column to GPI, do the following:
1. Clear the bit for the row or column to be configured as GPI
in Register 0x1D, Register 0x1E, and Register 0x1F.
2. Clear the bit for the row or column to be configured as GPI
in Register 0x23, Register 0x24, and Register 0x25.
3. If interrupt triggering is needed, set the GPIO interrupt
enable bit for the rows and columns in Register 0x1A,
Register 0x1B, and Register 0x1C.
4. Define the trigger level for any of the rows or columns for
which interrupt is enabled (Register 0x26 through
Register 0x28).
5. Enable
GPIO DEBOUNCE
, if needed, for the rows or
columns that are configured as GPIs (Register 0x29
through Register 0x2B).
6. Configure
GPIO PULLUP
, if needed, for the rows or
columns that are configured as GPIs (Register 0x2C
through Register 0x2E).
Read Register 0x14, Register 0x15, and Register 0x16 to see
the
GPIO DATA STATUS
; read Register 0x11, Register 0x12,
and Register 0x13 for the
GPIO INTERRUPT STATUS
. Green
LEDs at the right side of the GPIOs configuration tab light up to
indicate the status of the pins or interrupts.
GPIs can be programmed as part of the event FIFO/key event
table, see the
data sheet for more details.