DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
244 of 571
NXP Semiconductors
UM10316
Chapter 16: LPC29xx General Purpose Input/Output (GPIO)
3.2 GPIO port output register
The port output register is used to define the output level on each I/O pin individually if this
pin has been configured as an output by the port direction register. If the port input register
is written to the port output register is written to as well.
shows the bit assignment of the OR register. Bits for for unavailable ports
), do not modify, and read as logic 0.
3.3 GPIO port direction register
The port direction register is used to individually control each I/O pin output-driver enable.
If the port is configured as input, see
to configure the appropriate pad type.
shows the bit assignment of the DR register. Bits for for unavailable ports
), do not modify, and read as logic 0.
Table 201. PINS register bit description (PINS0 to 5, addresses 0xE004 A000 (GPIO0), 0xE004
B000 (GPIO1), 0xE004 C000 (GPIO2), 0xE004 D000 (GPIO3), 0xE004 E000 (GPIO4),
0xE004 F000 (GPIO5))
Bit
Symbol
Access
Value
Description
31
PINS[31]
R/W
1
Pn[31] input pin is HIGH
0
Pn[31] input pin is LOW
:
:
:
:
:
0
PINS[0]
R/W
1
Pn[0] input pin is HIGH
0
Pn[0] input pin is LOW
Table 202. OR register bit description (OR0 to 5, addresses 0xE004 A004 (GPIO0), 0xE004
B004 (GPIO1), 0xE004 C004 (GPIO2), 0xE004 D004 (GPIO3), 0xE004 E004 (GPIO4),
0xE004 F004 (GPIO5))
* = reset value
Bit
Symbol
Access
Value
Description
31
OR[31]
R/W
1
If configured as an output, pin Pn[31] is driven
HIGH
0*
If configured as an output, pin Pn[31] is driven
LOW
:
:
:
:
:
0
OR[0]
R/W
1
If configured as an output, pin Pn[0] is driven
HIGH
0*
If configured as an output, pin Pn[0] is driven
LOW