DRAFT
DRAFT DRAFT DR
DRAFT DRAFT DRAFT
D
RAF
DRAFT DRAFT DRA
FT D
RAFT DR
AFT D
DRA
FT DRAFT DRAFT
D
RAFT
DRAFT
D
RAFT
DRA
UM10601
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
Preliminary user manual
Rev. 1.0 — 7 November 2012
79 of 313
NXP Semiconductors
UM10601
Chapter 7: LPC800 GPIO port
7.6.6 GPIO masked port pin registers
These registers are similar to the PIN 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
7.6.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.
7.6.8 GPIO port clear registers
Output bits can be cleared by writing ones to these write-only registers, regardless of
MASK registers.
Table 73.
GPIO port 0 pin register (PIN0, address 0xA000 2100) bit description
Bit
Symbol Description
Reset
value
Access
17:0
PORT0
Reads pin states or loads output bits (bit 0 = PIO0_0, bit 1 =
PIO0_1, ..., bit 17 = PIO0_17).
0 = Read: pin is low; write: clear output bit.
1 = Read: pin is high; write: set output bit.
ext
R/W
31:18 -
Reserved.
0
-
Table 74.
GPIO masked port 0 pin register (MPIN0, address 0xA000 2180) bit description
Bit
Symbol
Description
Reset
value
Access
17:0
MPORTP0 Masked port register (bit 0 = PIO0_0, bit 1 = PIO0_1, ..., bit
17 = PIO0_17).
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
31:18 -
Reserved.
0
-
Table 75.
GPIO set port 0 register (SET0, address 0xA000 2200) bit description
Bit
Symbol
Description
Reset
value
Access
17:0
SETP0
Read or set output bits.
0 = Read: output bit: write: no operation.
1 = Read: output bit; write: set output bit.
0
R/W
31:18
-
Reserved.
0
-