UM10208_2
© NXP B.V. 2007. All rights reserved.
User manual
Rev. 02 — 1 June 2007
334 of 362
NXP Semiconductors
UM10208
Chapter 26: LPC2800 GPIO
Registers are provided to allow software to set or clear bits of the MODE1 or MODE0
registers, write a value to an entire MODE1 or MODE0 register, as well as to read the
state of all GPIO pins. Except for switching between the values 10 and 11 to control GP
outputs, configuration of m1:0 is typically done shortly after Reset.
Fig 47. GPIO configuration control
1
0
1
0
GPIO Output Enable (M1)
GPIO Data In
Peripheral Data Out
Peripheral Output Enable
Peripheral Data In
GPIO Data Out (M0)
I/O Pin
Table 368. I/O configuration register descriptions
Names
Description
Access Reset
value
Addresses
MODE1[0:7]
MODE1 Registers.
All of the m1 bits in a GPIO pin
group (port) can be loaded by writing these registers,
and the state of the m1 bits can be read from them.
R/W
0
0x8000 3020, 0x8000 3060,
0x8000 30A0, 0x8000 30E0,
0x8000 3120, 0x8000 3160,
0x8000 31A0, 0x8000 31E0
MODE0[0:7]
MODE0 Registers.
All of the m0 bits in a GPIO pin
group (port) can be loaded by writing these registers,
and the state of the m0 bits can be read from them.
R/W
all 1s
(within
used bits)
0x8000 3010, 0x8000 3050,
0x8000 3090, 0x8000 30D0,
0x8000 3110, 0x8000 3150,
0x8000 3190, 0x8000 31D0
MODE1S[0:7]
MODE1 Set Registers.
Writing 1s to these registers
sets the corresponding bits in the MODE1 register. 0s
written to these registers have no effect. The state of
the m1 bits can be read from this register.
R/W
0
0x8000 3024, 0x8000 3064,
0x8000 30A4, 0x8000 30E4,
0x8000 3124, 0x8000 3164,
0x8000 31A4, 0x8000 31E4
MODE0S[0:7]
MODE0 Set Registers.
Writing 1s to these registers
sets the corresponding bits in the MODE0 register. 0s
written to these registers have no effect. The state of
the m0 bits can be read from this register.
R/W
all 1s
(within
used bits)
0x8000 3014, 0x8000 3054,
0x8000 3094, 0x8000 30D4,
0x8000 3114, 0x8000 3154,
0x8000 3194, 0x8000 31D4