© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
80
Philips Semiconductors
UM10139
Volume 1
Chapter 7: Pin Connect Block
7.4.4 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.
The direction control bit in the IO0DIR/IO1DIR register is effective only when the GPIO
function is selected for a pin. For other functions, direction is controlled automatically.
Each derivative typically has a different pinout and therefore a different set of functions
possible for each pin. Details for a specific derivative may be found in the appropriate data
sheet.
Table 62:
Pin function Select register 2 (PINSEL2 - 0xE002 C014) bit description
Bit
Symbol
Value Function
Reset value
1:0
-
-
Reserved, user software should not write ones
to reserved bits. The value read from a reserved
bit is not defined.
NA
2
GPIO/DEBUG 0
Pins P1.36-26 are used as GPIO pins.
P1.26/RTCK
1
Pins P1.36-26 are used as a Debug port.
3
GPIO/TRACE
0
Pins P1.25-16 are used as GPIO pins.
P1.20/
TRACESYNC
1
Pins P1.25-16 are used as a Trace port.
31:4 -
-
Reserved, user software should not write ones
to reserved bits. The value read from a reserved
bit is not defined.
NA
Table 63:
Pin function select register bits
PINSEL0 and PINSEL1 Values Function
Value after Reset
00
Primary (default) function, typically GPIO
port
00
01
First alternate function
10
Second alternate function
11
Reserved