During a write, if the address bit associated with that data bit is set to 1, the value of the GPIODATA
register is altered. If it is cleared to 0, it is left unchanged.
For example, writing a value of 0xEB to the address GPIODATA + 0x098 would yield as shown in
Figure 8-2 on page 151, where u is data unchanged by the write.
Figure 8-2. GPIODATA Write Example
0 10 0 1 10 0 0
u 1u u 0 1u u
9 8 7 6 5 4 3 2 1 0
1 11 0 0 11 1
7 6 5 4 3 2 1 0
GPIODATA
0xEB
0x098
ADDR[9:2]
0
During a read, if the address bit associated with the data bit is set to 1, the value is read. If the
address bit associated with the data bit is set to 0, it is read as a zero, regardless of its actual value.
For example, reading address GPIODATA + 0x0C4 yields as shown in Figure 8-3 on page 151.
Figure 8-3. GPIODATA Read Example
0 10 1 0 00 1 0 0
0 10 1 0 00 0
9 8 7 6 5 4 3 2 1 0
0 11 1 1 11 0
7 6 5 4 3 2 1 0
Returned Value
GPIODATA
0x0C4
ADDR[9:2]
8.1.2 Interrupt Control
The interrupt capabilities of each GPIO port are controlled by a set of seven registers. With these
registers, it is possible to select the source of the interrupt, its polarity, and the edge properties.
When one or more GPIO inputs cause an interrupt, a single interrupt output is sent to the interrupt
controller for the entire GPIO port. For edge-triggered interrupts, software must clear the interrupt
to enable any further interrupts. For a level-sensitive interrupt, it is assumed that the external source
holds the level constant for the interrupt to be recognized by the controller.
Three registers are required to define the edge or sense that causes interrupts:
■ GPIO Interrupt Sense (GPIOIS) register (see page 158)
■ GPIO Interrupt Both Edges (GPIOIBE) register (see page 159)
■ GPIO Interrupt Event (GPIOIEV) register (see page 160)
Interrupts are enabled/disabled via the GPIO Interrupt Mask (GPIOIM) register (see page 161).
When an interrupt condition occurs, the state of the interrupt signal can be viewed in two locations:
the GPIO Raw Interrupt Status (GPIORIS) and GPIO Masked Interrupt Status (GPIOMIS) registers
(see page 162 and page 163). As the name implies, the GPIOMIS register only shows interrupt
151June 22, 2010
Texas Instruments-Production Data
Stellaris® LM3S8530 Microcontroller