© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
79
Philips Semiconductors
UM10139
Volume 1
Chapter 7: Pin Connect Block
[1]
Available on LPC2141.
[2]
Available on LPC2142.
[3]
Available on LPC2144/6/8.
7.4.3 Pin function Select register 2 (PINSEL2 - 0xE002 C014)
The PINSEL2 register controls the functions of the pins as per the settings listed in
. The direction control bit in the IO1DIR register is effective only when the GPIO
function is selected for a pin. For other functions direction is controlled automatically.
Warning: use read-modify-write operation when accessing PINSEL2 register. Accidental
write of 0 to bit 2 and/or bit 3 results in loss of debug and/or trace functionality! Changing
of either bit 4 or bit 5 from 1 to 0 may cause an incorrect code execution!
21:20
P0.26
00
Reserved
0
01
Reserved
10
Reserved
11
Reserved
23:22
P0.27
00
Reserved
0
01
Reserved
10
Reserved
11
Reserved
25:24
P0.28
00
GPIO Port 0.28
0
01
AD0.1
10
Capture 0.2 (Timer 0)
11
Match 0.2 (Timer 0)
27:26
P0.29
00
GPIO Port 0.29
0
01
AD0.2
10
Capture 0.3 (Timer 0)
11
Match 0.3 (Timer 0)
29:28
P0.30
00
GPIO Port 0.30
0
01
AD0.3
10
EINT3
11
Capture 0.0 (Timer 0)
31:30
P0.31
00
GPO Port only
0
01
UP_LED
10
CONNECT
11
Reserved
Table 61:
Pin function Select register 1 (PINSEL1 - address 0xE002 C004) bit description
Bit
Symbol
Value
Function
Reset value