
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
76 of 808
1.
How to read this chapter
shows the functions of the PINSEL registers in the LPC17xx.
2.
Description
The pin connect block allows most pins of the microcontroller to have more than one
potential function. Configuration registers control the multiplexers to allow connection
between the pin and the on chip peripherals.
Peripherals should be connected to the appropriate pins prior to being activated and prior
to any related interrupt(s) being enabled. Activity of any enabled peripheral function that is
not mapped to a related pin should be considered undefined.
Selection of a single function on a port pin excludes other peripheral functions available
on the same pin. However, the GPIO input stays connected and may be read by software
or used to contribute to the GPIO interrupt feature.
3.
Pin function select register values
The PINSEL registers control the functions of device pins as shown below. Pairs of bits in
these registers correspond to specific device pins.
UM10360
Chapter 8: LPC17xx Pin connect block
Rev. 00.06 — 5 June 2009
User manual
Table 52.
Summary of PINSEL registers
Register
Controls
Table
PINSEL0
P0[15:0]
PINSEL1
P0 [31:16]
PINSEL2
P1 [15:0] (Ethernet)
PINSEL3
P1 [31:16]
PINSEL4
P2 [15:0]
PINSEL5
P2 [31:16]
not used
PINSEL6
P3 [15:0]
not used
PINSEL7
P3 [31:16]
PINSEL8
P4 [15:0]
not used
PINSEL9
P4 [31:16]
PINSEL10
Trace port enable
Table 53.
Pin function select register bits
PINSEL0 to
PINSEL9 Values
Function
Value after Reset
00
Primary (default) function, typically GPIO port
00
01
First alternate function
10
Second alternate function
11
Third alternate function