LPC2210/2220
NXP Semiconductors
16/32-bit ARM microcontrollers
6.5 Pin connect block
The pin connect block allows selected pins of the microcontroller to have more than one
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.
The pin control module contains three registers as shown in Table 6.
Table 6.
Pin control module registers
Address
Name
Description
Access
0xE002 C000
0xE002 C004
0xE002 C014
PINSEL0
PINSEL1
PINSEL2
pin function select register 0
pin function select register 1
pin function select register 2
read/write
read/write
read/write
6.6 Pin function select register 0 (PINSEL0 - 0xE002 C000)
The PINSEL0 register controls the functions of the pins as per the settings listed in
Table 7. The direction control bit in the IODIR register is effective only when the GPIO
function is selected for a pin. For other functions, direction is controlled automatically.
Settings other than those shown in Table 7 are reserved, and should not be used
Table 7.
PINSEL0
1:0
Pin function select register 0 (PINSEL0 - 0xE002 C000)
Pin name
Value
Function
Value after reset
P0.0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
GPIO Port 0.0
TXD0 (UART0)
PWM1
0
reserved
3:2
5:4
7:6
9:8
P0.1
P0.2
P0.3
P0.4
GPIO Port 0.1
RXD0 (UART0)
PWM3
0
0
0
0
EINT0
GPIO Port 0.2
SCL (I2C-bus)
Capture 0.0 (Timer 0)
reserved
GPIO Port 0.3
SDA (I2C-bus)
Match 0.0 (Timer 0)
EINT1
GPIO Port 0.4
SCK (SPI0)
Capture 0.1 (Timer 0)
reserved
LPC2210_2220_6
© NXP B.V. 2008. All rights reserved.
Product data sheet
Rev. 06 — 11 December 2008
18 of 50