© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
86
Philips Semiconductors
UM10139
Volume 1
Chapter 8: GPIO
Aside from the 32-bit long and word only accessible FIOMASK 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 FIOMASK
register, these additional registers allow easier and faster access to the physical port pins.
8.4.3 GPIO port Pin value register (IOPIN, Port 0: IO0PIN - 0xE002 8000 and
Port 1: IO1PIN - 0xE002 8010; FIOPIN, Port 0: FIO0PIN - 0x3FFF C014
and Port 1: FIO1PIN - 0x3FFF C034)
This register provides the value of port pins that are configured to perform only digital
functions. The register will give the logic value of the pin regardless of whether the pin is
configured for input or output, or as GPIO or an alternate digital function. As an example,
a particular port pin may have GPIO input, GPIO output, UART receive, and PWM output
as selectable functions. Any configuration of that pin will allow its current logic state to be
read from the IOPIN register.
Table 75:
Fast GPIO port 0 Mask byte and half-word accessible register description
Register
name
Register
length (bits)
& access
Address
Description
Reset
value
FIO0MASK0 8 (byte)
0x3FFF C010
Fast GPIO Port 0 Mask register 0. Bit 0 in FIO0MASK0 register
corresponds to P0.0 ... bit 7 to P0.7.
0x00
FIO0MASK1 8 (byte)
0x3FFF C011
Fast GPIO Port 0 Mask register 1. Bit 0 in FIO0MASK1 register
corresponds to P0.8 ... bit 7 to P0.15.
0x00
FIO0MASK2 8 (byte)
0x3FFF C012
Fast GPIO Port 0 Mask register 2. Bit 0 in FIO0MASK2 register
corresponds to P0.16 ... bit 7 to P0.23.
0x00
FIO0MASK3 8 (byte)
0x3FFF C013
Fast GPIO Port 0 Mask register 3. Bit 0 in FIO0MASK3 register
corresponds to P0.24 ... bit 7 to P0.31.
0x00
FIO0MASKL 16
(half-word)
0x3FFF C001
Fast GPIO Port 0 Mask Lower half-word register. Bit 0 in
FIO0MASKL register corresponds to P0.0 ... bit 15 to P0.15.
0x0000
FIO0MASKU 16
(half-word)
0x3FFF C012
Fast GPIO Port 0 Mask Upper half-word register. Bit 0 in
FIO0MASKU register corresponds to P0.16 ... bit 15 to P0.31.
0x0000
Table 76:
Fast GPIO port 1 Mask byte and half-word accessible register description
Register
name
Register
length (bits)
& access
Address
Description
Reset
value
FIO1MASK0 8 (byte)
0x3FFF C010
Fast GPIO Port 1 Mask register 0. Bit 0 in FIO1MASK0 register
corresponds to P1.0 ... bit 7 to P1.7.
0x00
FIO1MASK1 8 (byte)
0x3FFF C011
Fast GPIO Port 1 Mask register 1. Bit 0 in FIO1MASK1 register
corresponds to P1.8 ... bit 7 to P1.15.
0x00
FIO1MASK2 8 (byte)
0x3FFF C012
Fast GPIO Port 1 Mask register 2. Bit 0 in FIO1MASK2 register
corresponds to P1.16 ... bit 7 to P1.23.
0x00
FIO1MASK3 8 (byte)
0x3FFF C013
Fast GPIO Port 1 Mask register 3. Bit 0 in FIO1MASK3 register
corresponds to P1.24 ... bit 7 to P1.31.
0x00
FIO1MASKL 16
(half-word)
0x3FFF C001
Fast GPIO Port 1 Mask Lower half-word register. Bit 0 in
FIO1MASKL register corresponds to P1.0 ... bit 15 to P1.15.
0x0000
FIO1MASKU 16
(half-word)
0x3FFF C012
Fast GPIO Port 1 Mask Upper half-word register. Bit 0 in
FIO1MASKU register corresponds to P1.16 ... bit 15 to P1.31.
0x0000