UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
207 of 515
NXP Semiconductors
UM11029
Chapter 12: LPC84x General Purpose I/O (GPIO)
12.5.1 GPIO port byte pin registers
Each GPIO pin has a byte register in this address range. Software typically reads and
writes bytes to access individual pins, but can read or write halfwords to sense or set the
state of two pins, and read or write words to sense or set the state of four pins.
Table 254. Register overview: GPIO port (base address 0xA000 0000)
Name
Access Address
offset
Description
Reset
value
Width
Reference
B0 to B31
R/W
0x0000 to 0x001F
Byte pin registers port 0
ext
byte (8 bit)
B32 to B53
R/W
0x0020 to 0x0035
Byte pin registers port1; PIO1_0 to
PIO1_21
ext
byte (8 bit)
-
-
0x0036 to 0x003F
Reserved
-
-
-
W0 to W31
R/W
0x1000 to 0x107C
Word pin registers port 0
ext
word (32 bit)
W32 to W53 R/W
0x1080 to 0x10D4
Word pin registers port 1; PIO1_0 to
PIO1_21
ext
word (32 bit)
DIR0
R/W
0x2000
Direction registers port 0
0
word (32 bit)
DIR1
R/W
0x2004
Direction registers port 1
0
word (32 bit)
MASK0
R/W
0x2080
Mask register port 0
0
word (32 bit)
MASK1
R/W
0x2084
Mask register port 1
0
word (32 bit)
PIN0
R/W
0x2100
Port pin register port 0
ext
word (32 bit)
PIN1
R/W
0x2104
Port pin register port 1
ext
word (32 bit)
MPIN0
R/W
0x2180
Masked port register port 0
ext
word (32 bit)
SET0
R/W
0x2200
Write: Set register for port 0
Read: output bits for port 0
0
word (32 bit)
SET1
R/W
0x2204
Write: Set register for port 1
Read: output bits for port 1
0
word (32 bit)
CLR0
WO
0x2280
Clear port 0
-
word (32 bit)
CLR1
WO
0x2284
Clear port 1
-
word (32 bit)
NOT0
WO
0x2300
Toggle port 0
-
word (32 bit)
NOT1
WO
0x2304
Toggle port 1
-
word (32 bit)
DIRSET0
WO
0x2380
Set pin direction bits for port 0.
0
word (32 bit)
DIRSET1
WO
0x2384
Set pin direction bits for port 1.
0
word (32 bit)
DIRCLR0
WO
0x2400
Clear pin direction bits for port 0.
-
word (32 bit)
DIRCLR1
WO
0x2404
Clear pin direction bits for port 1.
-
word (32 bit)
DIRNOT0
WO
0x2480
Toggle pin direction bits for port 0.
-
word (32 bit)
DIRNOT1
WO
0x2484
Toggle pin direction bits for port 1.
-
word (32 bit)