110 / 342 page

General-Purpose Input/Outputs (GPIOs)
110
October 6, 2006
Preliminary
8.4
Register Map
Table 8-2 lists the GPIO registers. The offset listed is a hexadecimal increment to the register’s
address, relative to that GPIO port’s base address:
GPIO Port A: 0x40004000
GPIO Port B: 0x40005000
GPIO Port C: 0x40006000
GPIO Port D: 0x40007000
GPIO Port E: 0x40024000
Important: The GPIO registers in this chapter are duplicated in each GPIO block, however,
depending on the block, all eight bits may not be connected to a GPIO pad (see
Figure 8-1 on page 105). In those cases, writing to those unconnected bits has no
effect and reading those unconnected bits returns no meaningful data.
Table 8-3.
GPIO Register Map
Offset
Name
Reset
Type
Description
See
page
0x000
GPIODATA
0x00000000
R/W
Data
112
0x400
GPIODIR
0x00000000
R/W
Data direction
113
0x404
GPIOIS
0x00000000
R/W
Interrupt sense
114
0x408
GPIOIBE
0x00000000
R/W
Interrupt both edges
115
0x40C
GPIOIEV
0x00000000
R/W
Interrupt event
116
0x410
GPIOIM
0x00000000
R/W
Interrupt mask enable
117
0x414
GPIORIS
0x00000000
RO
Raw interrupt status
118
0x418
GPIOMIS
0x00000000
RO
Masked interrupt status
119
0x41C
GPIOICR
0x00000000
W1C
Interrupt clear
120
0x420
GPIOAFSEL
see notea
R/W
Alternate function select
121
0x500
GPIODR2R
0x000000FF
R/W
2-mA drive select
122
0x504
GPIODR4R
0x00000000
R/W
4-mA drive select
123
0x508
GPIODR8R
0x00000000
R/W
8-mA drive select
124
0x50C
GPIOODR
0x00000000
R/W
Open drain select
125
0x510
GPIOPUR
0x000000FF
R/W
Pull-up select
126
0x514
GPIOPDR
0x00000000
R/W
Pull-down select
127
0x518
GPIOSLR
0x00000000
R/W
Slew rate control select
128
0x51C
GPIODEN
0x000000FF
R/W
Digital input enable
129
0xFD0
GPIOPeriphID4
0x00000000
RO
Peripheral identification 4
130