
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
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
95 of 808
NXP Semiconductors
UM10360
Chapter 9: LPC17xx General Purpose Input/Output (GPIO)
5.2 GPIO port output Set register FIOxSET (FIO0SET to FIO7SET - 0x2009
C018 to 0x2009 C098)
This register is used to produce a HIGH level output at the port pins configured as GPIO in
an OUTPUT mode. Writing 1 produces a HIGH level at the corresponding port pins.
Writing 0 has no effect. If any pin is configured as an input or a secondary function, writing
1 to the corresponding bit in the FIOxSET has no effect.
Reading the FIOxSET register returns the value of this register, as determined by
previous writes to FIOxSET and FIOxCLR (or FIOxPIN as noted above). This value does
not reflect the effect of any outside world influence on the I/O pins.
Access to a port pin via the FIOxSET register is conditioned by the corresponding bit of
the FIOxMASK register (see
).
Table 82.
Fast GPIO port Direction control byte and half-word accessible register
description
Generic
Register
name
Description
Register
length (bits)
& access
Reset
value
PORTn Register
Address & Name
FIOxDIR0
Fast GPIO Port x Direction
control register 0. Bit 0 in
FIOxDIR0 register corresponds
to pin Px.0
…
bit 7 to pin Px.7.
8 (byte)
R/W
0x00
FIO0DIR0 - 0x2009 C000
FIO1DIR0 - 0x2009 C020
FIO2DIR0 - 0x2009 C040
FIO3DIR0 - 0x2009 C060
FIO4DIR0 - 0x2009 C080
FIOxDIR1
Fast GPIO Port x Direction
control register 1. Bit 0 in
FIOxDIR1 register corresponds
to pin Px.8 … bit 7 to pin Px.15.
8 (byte)
R/W
0x00
FIO0DIR1 - 0x2009 C001
FIO1DIR1 - 0x2009 C021
FIO2DIR1 - 0x2009 C041
FIO3DIR1 - 0x2009 C061
FIO4DIR1 - 0x2009 C081
FIO0DIR2
Fast GPIO Port x Direction
control register 2. Bit 0 in
FIOxDIR2 register corresponds
to pin Px.16 … bit 7 to pin
Px.23.
8 (byte)
R/W
0x00
FIO0DIR2 - 0x2009 C002
FIO1DIR2 - 0x2009 C022
FIO2DIR2 - 0x2009 C042
FIO3DIR2 - 0x2009 C062
FIO4DIR2 - 0x2009 C082
FIOxDIR3
Fast GPIO Port x Direction
control register 3. Bit 0 in
FIOxDIR3 register corresponds
to pin Px.24 … bit 7 to pin
Px.31.
8 (byte)
R/W
0x00
FIO0DIR3 - 0x2009 C003
FIO1DIR3 - 0x2009 C023
FIO2DIR3 - 0x2009 C043
FIO3DIR3 - 0x2009 C063
FIO4DIR3 - 0x2009 C083
FIOxDIRL
Fast GPIO Port x Direction
control Lower half-word
register. Bit 0 in FIOxDIRL
register corresponds to pin
Px.0 … bit 15 to pin Px.15.
16 (half-word)
R/W
0x0000 FIO0DIRL - 0x2009 C000
FIO1DIRL - 0x2009 C020
FIO2DIRL - 0x2009 C040
FIO3DIRL - 0x2009 C060
FIO4DIRL - 0x2009 C080
FIOxDIRU
Fast GPIO Port x Direction
control Upper half-word
register. Bit 0 in FIOxDIRU
register corresponds to Px.16
… bit 15 to Px.31.
16 (half-word)
R/W
0x0000 FIO0DIRU - 0x2009 C002
FIO1DIRU - 0x2009 C022
FIO2DIRU - 0x2009 C042
FIO3DIRU - 0x2009 C062
FIO4DIRU - 0x2009 C082