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
111 of 464
NXP Semiconductors
UM10850
Chapter 9: LPC5410x General Purpose I/O (GPIO)
9.5.6 GPIO masked port pin registers
These registers are similar to the PORT registers, except that the value read is masked by
ANDing with the inverted contents of the corresponding MASK register, and writing to one
of these registers only affects output register bits that are enabled by zeros in the
corresponding MASK register
9.5.7 GPIO port set registers
Output bits can be set by writing ones to these registers, regardless of MASK registers.
Reading from these register returns the port’s output bits, regardless of pin directions.
9.5.8 GPIO port clear registers
Output bits can be cleared by writing ones to these write-only registers, regardless of
MASK registers.
Table 145. Address map MPIN[0:1] registers
Peripheral
Base address
Offset
Increment
Dimension
GPIO
0x1C00 0000
[0x2180:0x2184]
0x4
2
Table 146. GPIO masked port pin register (MPIN[0:1], address offset [0x2180:0x2184]) bit description
Bit
Symbol
Description
Reset
value
Access
31:0
MPORTP
Masked port register. Supported pins depends on the specific device and package.
0 = Read: pin is LOW and/or the corresponding bit in the MASK register is 1; write:
clear output bit if the corresponding bit in the MASK register is 0.
1 = Read: pin is HIGH and the corresponding bit in the MASK register is 0; write: set
output bit if the corresponding bit in the MASK register is 0.
ext
R/W
Table 147. Address map SET[0:1] registers
Peripheral
Base address
Offset
Increment
Dimension
GPIO
0x1C00 0000
[0x2200:0x2204]
0x4
2
Table 148. GPIO set port register (SET[0:1], address offset [0x2200:0x2204]) bit description
Bit
Symbol
Description
Reset value
Access
31:0
SETP
Read or set output bits. Supported pins depends on the specific device and
package.
0 = Read: output bit: write: no operation.
1 = Read: output bit; write: set output bit.
0
R/W
Table 149. Address map CLR[0:1] registers
Peripheral
Base address
Offset
Increment
Dimension
GPIO
0x1C00 0000
[0x2280:0x2284]
0x4
2