UM10237_2 © NXP B.V. 2008. All rights reserved.
User manual Rev. 02 — 19 December 2008 193 o f 792
1. How to read this chapter
The number of GPIO pins on each port is different for LPC2458 and LPC2460/68/70/78
parts. The available pins are listed in Table10–156 for each part. Bits corresponding to
unavailable pins are reserved in all GPIO related registers.
2. Basic configuration
GPIOs are configured using the following registers:
1. Power: always enabled.
2. Clocks: See Section 4–3.3.1 for fast GPIO ports and the PCLKSEL1 register
(Table4–57) for legacy GPIO ports.
3. Pins: Select GPIO pins and their modes in PINSEL0 to PINSEL10 and PINMODE0 to
PINMODE10 (Section 9–5).
4. Wakeup: Use the INTWAKE register (Table4–62) to configure GPIO ports 0 and 2 for
wakeup if needed.
5. Interrupts: Enable GPIO interrupts in IO0/2IntEnR (Table 10–176) or IO0/2IntEnF
(Table10–177). Interrupts are enabled in the VIC using the VICIntEnable register
(Table7–106).
3. Features

3.1 Digital I/O ports

GPIO PORT0 and PORT1 are ports accessible via either the group of registers
providing enhanced features and accelerated port access or the legacy group of
registers. PORT2/3/4 are accessed as fast ports only.
Accelerated GPIO functions:
GPIO registers are relocated to the ARM local bus so that the fastest possible I/O
timing can be achieved.
UM10237
Chapter 10: LPC24XX General Purpose Input/Output (GPIO)
Rev. 02 — 19 December 2008 User manual
Table 156. LPC2400 available port pins
Port0 Port1 Port2 Port3 Port4
Features Fast/Legacy
selectable
Interrupt
enabled
Fast/Legacy
selectable Fast only
Interrupt
enabled
Fast only Fast only
LPC2458 P0[31:0] P1[31:0] P2[1 3:0]
P2[21:16]
P2[25:24]
P2[29:28]
P3[15:0]
P3[26:23]
P4[19:0]
P4[31:24]
LPC2420/60/68/70/78 P0[31:0] P1[31:0] P2[31:0] P3[31:0] P4[31:0]