
UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
110 of 464
NXP Semiconductors
UM10850
Chapter 9: LPC5410x General Purpose I/O (GPIO)
9.5.4 GPIO port mask registers
These registers affect writing and reading the MPORT registers. Zeroes in these registers
enable reading and writing; ones disable writing and result in zeros in corresponding
positions when reading.
9.5.5 GPIO port pin registers
Reading these registers returns the current state of the pins read, regardless of direction,
masking, or alternate functions, except that pins configured as analog I/O always read as
0s. Writing these registers loads the output bits of the pins written to, regardless of the
Mask register.
Table 139. Address map DIR[0:1] registers
Peripheral
Base address
Offset
Increment
Dimension
GPIO
0x1C00 0000
[0x2000:0x2004]
0x4
2
Table 140. GPIO direction port register (DIR[0:1], address offset [0x2000:0x2004]) bit description
Bit
Symbol
Description
Reset value
Access
31:0
DIRP
Selects pin direction for pin PIOm_n. Supported pins depends on the specific
device and package.
0 = input.
1 = output.
0
R/W
Table 141. Address map MASK[0:1] registers
Peripheral
Base address
Offset
Increment
Dimension
GPIO
0x1C00 0000
[0x2080:0x2084]
0x4
2
Table 142. GPIO mask port register (MASK[0:1], address offset [0x2080:0x2084]) bit description
Bit
Symbol
Description
Reset value
Access
31:0
MASKP
Controls which bits corresponding to PIOm_n are active in the MPORT register.
Supported pins depends on the specific device and package.
0 = Read MPORT: pin state; write MPORT: load output bit.
1 = Read MPORT: 0; write MPORT: output bit not affected.
0
R/W
Table 143. Address map PIN[0:1] registers
Peripheral
Base address
Offset
Increment
Dimension
GPIO
0x1C00 0000
[0x2100:0x2104]
0x4
2
Table 144. GPIO port pin register (PIN[0:1], address offset [0x2100:0x2104]) bit description
Bit
Symbol
Description
Reset value
Access
31:0
PORT
Reads pin states or loads output bits. Supported pins depends on the specific
device and package.
0 = Read: pin is low; write: clear output bit.
1 = Read: pin is high; write: set output bit.
ext
R/W