Datasheet

LPC122X All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet Rev. 2 — 26 August 2011 8 of 61
NXP Semiconductors
LPC122x
32-bit ARM Cortex-M0 microcontroller
6.2 Pin description
All pins except the supply pins can have more than one function as shown in Table 3. The
pin function is selected through the pin’s IOCON register in the IOCONFIG block. The
multiplexed functions (see Table 4
) include the counter/timer inputs and outputs, the
UART receive, transmit, and control functions, and the serial wire debug functions.
For each pin, the default function is listed first together with the pin’s reset state.
Table 3. LPC122x pin description
Symbol
Pin LQFP48
Pin LQFP64
Start
logic
input
Type Reset
state
[1]
Description
PIO0_0 to PIO0_31 I/O Port 0 — Port 0 is a 32-bit I/O port with individual direction and
function controls for each bit. The operation of port 0 pins
depends on the function selected through the IOCONFIG
register block.
PIO0_0/RTS0
15 19
[2]
[3]
yes I/O I; PU PIO0_0 — General purpose digital input/output pin.
O- RTS0
Request To Send output for UART0.
PIO0_1/RXD0/
CT32B0_CAP0/
CT32B0_MAT0
16 20
[2]
[3]
yes I/O I; PU PIO0_1 — General purpose digital input/output pin.
I- RXD0 — Receiver input for UART0.
I- CT32B0_CAP0 — Capture input, channel 0 for 32-bit timer 0.
O- CT32B0_MAT0 — Match output, channel 0 for 32-bit timer 0.
PIO0_2/TXD0/
CT32B0_CAP1/
CT32B0_MAT1
17 21
[2]
[3]
yes I/O I; PU PIO0_2 — General purpose digital input/output pin.
O- TXD0 — Transmitter output for UART0.
I- CT32B0_CAP1 — Capture input, channel 1 for 32-bit timer 0.
O- CT32B0_MAT1 — Match output, channel 1 for 32-bit timer 0.
PIO0_3/DTR0
/
CT32B0_CAP2/
CT32B0_MAT2
18 22
[2]
[3]
yes I/O I; PU PIO0_3 — General purpose digital input/output pin.
O- DTR0
Data Terminal Ready output for UART0.
I- CT32B0_CAP2 — Capture input, channel 2 for 32-bit timer 0.
O- CT32B0_MAT2 — Match output, channel 2 for 32-bit timer 0.
PIO0_4/DSR0
/
CT32B0_CAP3/
CT32B0_MAT3
19 23
[2]
[3]
yes I/O I; PU PIO0_4 — General purpose digital input/output pin.
I- DSR0
Data Set Ready input for UART0.
I- CT32B0_CAP3 — Capture input, channel 3 for 32-bit timer 0.
O- CT32B0_MAT3 — Match output, channel 3 for 32-bit timer 0.
PIO0_5/DCD0
20 24
[2]
[3]
yes I/O I; PU PIO0_5 — General purpose digital input/output pin.
I- DCD0
Data Carrier Detect input for UART0.
PIO0_6/RI0
/
CT32B1_CAP0/
CT32B1_MAT0
21 25
[2]
[3]
yes I/O I; PU PIO0_6 — General purpose digital input/output pin.
I- RI0
Ring Indicator input for UART0.
I- CT32B1_CAP0 — Capture input, channel 0 for 32-bit timer 1.
O- CT32B1_MAT0 — Match output, channel 0 for 32-bit timer 1.