BS_General purpose input/output (GPIO)
RM0082
330/844
Doc ID 018672 Rev 1
18.5.2 Register
description
18.5.3 GPIODIR
register
The GPIODIR is the data direction RW register which allows to configure each pin as either
an input or an output. The GPIODIR bit assignments are given in
.
Note:
GPIO 6 & GPIO 7 are dedicated for SPI chipselect & can be configured in O/P mode only.
18.5.4 GPIODATA
register
The GPIODATA is the data RW register which allows to read from and write to GPIO pins
configured as input or output, respectively, when GPIO is in software mode. The GPIODATA
bit assignments are given in
.
In software mode, the GPIODATA content is transferred to the pins which have been
configured as output through the GPIODIR register.
18.5.5 GPIOIS
register
The GPIOIS (Interrupt Sense) is a RW register which allows configuring each pin to detect
either a level or an edge for interrupt triggering. The GPIOIS bit assignments are given in
Table 268.
GPIODIR register bit assignments
Bit
Name
Reset
value
Description
[05:00]
GPIODIR
6’h0
Each bit is associated to a pin.
If a bit is set, the relevant pin is configured to be an
output.
Clearing a bit configures the relevant pin to be input
(default).
Table 269.
GPIODATA register bit assignments
Bit
Name
Reset
value
Description
[07:00]
GPIODATA
8’h0
Input/output data.
Table 270.
GPIOIS register bit assignments
Bit
Name
Reset
value
Description
[05:00]
GPIOIS
6’h0
Each bit is associated to a pin.
If a bit is set, level on the relevant pin is detected.
Clearing a bit, edge on the relevant pin is detected
(default).