
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
92 of 808
NXP Semiconductors
UM10360
Chapter 9: LPC17xx General Purpose Input/Output (GPIO)
•
Registers provide a software view of pending rising edge interrupts, pending falling
edge interrupts, and overall pending GPIO interrupts.
•
GPIO0 and GPIO2 interrupts share the same position in the NVIC with External
Interrupt 3.
3.
Applications
•
General purpose I/O
•
Driving LEDs or other indicators
•
Controlling off-chip devices
•
Sensing digital inputs, detecting edges
•
Bringing the part out of Power-down mode
4.
Pin description
[1]
P0[14:12] are not available.
[2]
P1[2], P1[3], P1[7:5], P1[13:11] are not available.
5.
Register description
Due to compatibility requirements with the LPC2300 series ARM7-based products, the
LPC17xx implements portions of five 32-bit General Purpose I/O ports. Details on a
specific GPIO port usage can be found in
.
The registers in
represent the enhanced GPIO features available on all of the
GPIO ports. These registers are located on an AHB bus for fast read and write timing.
They can all be accessed in byte, half-word, and word sizes. A mask register allows
access to a group of bits in a single GPIO port independently from other bits in the same
port.
Table 78.
GPIO pin description
Pin Name
Type
Description
P0[30:0]
;
P1[31:0]
;
P2[13:0];
P3[26:25];
P4[29:28]
Input/
Output
General purpose input/output. These are typically shared with other
peripherals functions and will therefore not all be available in an
application. Packaging options may affect the number of GPIOs
available in a particular device.
Some pins may be limited by requirements of the alternate functions of
the pin. For example, the pins containing the I
2
C0 functions are
open-drain for any function selected on that pin. Details may be found
in