Access
PORT0
R/W
0xE002 8000
IO0PIN
PORT1
0xE002 8010
IO1PIN
IODIR
Description
To read the current state of
the PIN regardless of pin
direction
Controls the direction of pin
R/W
IOSET
R/W
IOCLR
R/W
0xE002 8018
IO1DIR
0xE002 8014
IO1SET
0xE002 801C
IO1CLR
0xE002 8008
IO0DIR
0xE002 8004
IO0SET
0xE002 800C
IO0CLR
Enhanced / Fast GPIO mode is the new feature available in LPC214x family
controllers. FIODIR, FIOMASK, FIOPIN, FIOSET, FIOCLR and FIODIR.
All of these registers are located directly on the local bus of the CPU for
the fastest possible read and write timing.
A mask register allows treating groups of bits in a single GPIO port separately from other
bits on the same port.
Writing 0 on MASK register gives access to that bit.