UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
66 of 268
NXP Semiconductors
UM10413
MPT612 User manual
12.4.3 Pin function select register values
The PINSEL registers control the functions of device pins as shown
. Pairs of bits
in these registers correspond to specific device pins.
The direction control bit in register IO0DIR 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 can be found in the appropriate data sheet.
13. General-Purpose Input/Output (GPIO) ports
13.1 Features
•
Every physical GPIO pin is accessible through two independent sets of registers. One
set provides enhanced features and higher speed GPIO pin access. The other
register set provides slow speed GPIO pin access.
•
Enhanced GPIO functions:
–
GPIO registers are relocated to the ARM local bus to achieve the fastest possible
I/O timing
–
Mask registers allow sets of port bits to be treated as a group, leaving other bits
unchanged
–
All registers are byte and half-word addressable
–
An entire port value can be written in one instruction
•
Bit-level set and clear registers allow a single instruction set, or clear any number of
bits
29:28
PIO30
00
GPIO pin 30
0
01
TDI (JTAG)
10
MAT3.3 (Timer 3)
11
reserved
31:30
PIO31
00
GPIO pin 31
0
01
TDO (JTAG)
10
reserved
11
reserved
Table 62.
Pin function select register 1 (PINSEL1 - address 0xE002 C004)
…continued
PINSEL1
Pin Name
Value
Function
Value after reset
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
third alternate function