© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
84
Philips Semiconductors
UM10139
Volume 1
Chapter 8: GPIO
Aside from the 32-bit long and word only accessible FIODIR register, every fast GPIO port
can also be controlled via several byte and half-word accessible registers listed in
and
, too. Next to providing the same functions as the FIODIR register,
these additional registers allow easier and faster access to the physical port pins.
Table 68:
GPIO port 1 Direction register (IO1DIR - address 0xE002 8018) bit description
Bit
Symbol
Value Description
Reset value
31:0
P1xDIR
0
Slow GPIO Direction control bits. Bit 0 in IO1DIR controls P1.0 ... Bit 30 in
IO1DIR controls P1.30.
Controlled pin is input.
0x0000 0000
1
Controlled pin is output.
Table 69:
Fast GPIO port 0 Direction register (FIO0DIR - address 0x3FFF C000) bit description
Bit
Symbol
Value Description
Reset value
31:0
FP0xDIR
0
Fast GPIO Direction control bits. Bit 0 in FIO0DIR controls P0.0 ... Bit 30 in
FIO0DIR controls P0.30.
Controlled pin is input.
0x0000 0000
1
Controlled pin is output.
Table 70:
Fast GPIO port 1 Direction register (FIO1DIR - address 0x3FFF C020) bit description
Bit
Symbol
Value Description
Reset value
31:0
FP1xDIR
0
Fast GPIO Direction control bits. Bit 0 in FIO1DIR controls P1.0 ... Bit 30 in
FIO1DIR controls P1.30.
Controlled pin is input.
0x0000 0000
1
Controlled pin is output.
Table 71:
Fast GPIO port 0 Direction control byte and half-word accessible register description
Register
name
Register
length (bits)
& access
Address
Description
Reset
value
FIO0DIR0
8 (byte)
0x3FFF C000
Fast GPIO Port 0 Direction control register 0. Bit 0 in FIO0DIR0
register corresponds to P0.0 ... bit 7 to P0.7.
0x00
FIO0DIR1
8 (byte)
0x3FFF C001
Fast GPIO Port 0 Direction control register 1. Bit 0 in FIO0DIR1
register corresponds to P0.8 ... bit 7 to P0.15.
0x00
FIO0DIR2
8 (byte)
0x3FFF C002
Fast GPIO Port 0 Direction control register 2. Bit 0 in FIO0DIR2
register corresponds to P0.16 ... bit 7 to P0.23.
0x00
FIO0DIR3
8 (byte)
0x3FFF C003
Fast GPIO Port 0 Direction control register 3. Bit 0 in FIO0DIR3
register corresponds to P0.24 ... bit 7 to P0.31.
0x00
FIO0DIRL
16
(half-word)
0x3FFF C000
Fast GPIO Port 0 Direction control Lower half-word register. Bit 0 in
FIO0DIRL register corresponds to P0.0 ... bit 15 to P0.15.
0x0000
FIO0DIRU
16
(half-word)
0x3FFF C002
Fast GPIO Port 0 Direction control Upper half-word register. Bit 0 in
FIO0DIRU register corresponds to P0.16 ... bit 15 to P0.31.
0x0000