LPC2131/32/34/36/38
NXP Semiconductors
Single-chip 16/32-bit microcontrollers
5.2 Pin description
Table 3.
Symbol
Pin description
Pin
Type
Description
P0.0 to P0.31
I/O
Port 0: Port 0 is a 32-bit I/O port with individual direction controls for each bit. Total of
31 pins of the Port 0 can be used as a general purpose bidirectional digital I/Os while
P0.31 is output only pin. The operation of port 0 pins depends upon the pin function
selected via the pin connect block.
Pin P0.24 is not available.
P0.0/TXD0/
PWM1
19[1]
21[2]
O
O
I
TXD0 — Transmitter output for UART0.
PWM1 — Pulse Width Modulator output 1.
P0.1/RXD0/
RXD0 — Receiver input for UART0.
PWM3/EINT0
O
I
PWM3 — Pulse Width Modulator output 3.
EINT0 — External interrupt 0 input.
P0.2/SCL0/
CAP0.0
22[3]
26[3]
I/O
I
SCL0 — I2C0 clock input/output. Open drain output (for I2C-bus compliance).
CAP0.0 — Capture input for Timer 0, channel 0.
SDA0 — I2C0 data input/output. Open drain output (for I2C-bus compliance).
MAT0.0 — Match output for Timer 0, channel 0.
EINT1 — External interrupt 1 input.
P0.3/SDA0/
MAT0.0/EINT1
I/O
O
I
P0.4/SCK0/
CAP0.1/AD0.6
27[4]
29[4]
I/O
I
SCK0 — Serial clock for SPI0. SPI clock output from master or input to slave.
CAP0.1 — Capture input for Timer 0, channel 1.
AD0.6 — ADC 0, input 6. This analog input is always connected to its pin.
I
P0.5/MISO0/
I/O
MISO0 — Master In Slave VDD = 3.6 V for SPI0. Data input to SPI master or data
MAT0.1/AD0.7
output from SPI slave.
O
I
MAT0.1 — Match output for Timer 0, channel 1.
AD0.7 — ADC 0, input 7. This analog input is always connected to its pin.
P0.6/MOSI0/
30[4]
I/O
MOSI0 — Master Out Slave In for SPI0. Data output from SPI master or data input to
CAP0.2/AD1.0
SPI slave.
I
I
CAP0.2 — Capture input for Timer 0, channel 2.
AD1.0 — ADC 1, input 0. This analog input is always connected to its pin. Available in
LPC2134/36/38 only.
P0.7/SSEL0/
PWM2/EINT2
31[2]
33[4]
I
SSEL0 — Slave Select for SPI0. Selects the SPI interface as a slave.
PWM2 — Pulse Width Modulator output 2.
EINT2 — External interrupt 2 input.
O
I
P0.8/TXD1/
PWM4/AD1.1
O
O
I
TXD1 — Transmitter output for UART1.
PWM4 — Pulse Width Modulator output 4.
AD1.1 — ADC 1, input 1. This analog input is always connected to its pin. Available in
LPC2134/36/38 only.
P0.9/RXD1/
PWM6/EINT3
34[2]
35[4]
I
RXD1 — Receiver input for UART1.
O
I
PWM6 — Pulse Width Modulator output 6.
EINT3 — External interrupt 3 input.
P0.10/RTS1/
CAP1.0/AD1.2
O
I
RTS1 — Request to Send output for UART1. Available in LPC2134/36/38.
CAP1.0 — Capture input for Timer 1, channel 0.
I
AD1.2 — ADC 1, input 2. This analog input is always connected to its pin. Available in
LPC2134/36/38 only.
LPC2131_32_34_36_38
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
Product data sheet
Rev. 5.1 — 29 July 2011
9 of 45