BS_General purpose input/output (GPIO)
RM0082
328/844
Doc ID 018672 Rev 1
Figure 31.
GPIO interrupt triggering logic
Note:
1
For level detection case, it is assumed that an external source holds the level constant for
the interrupt to be recognized by the processor.
2
Interrupt control registers must be programmed when corresponding interrupts are not
enabled, in order to avoid spurious interrupts to be generated.
18.5 Programming
model
18.5.1 Register
map
The GPIO can be fully configured by programming its 6 bit wide registers which can be
accessed through the APB slave interface at the base address 0xFC98_0000.
GPIO registers can be logically arranged:
●
Data direction register
(listed in
), for pins configuration as input or output
●
Data register
(listed in
), used to read value on those GPIO lines configured
as inputs, or to write a value on those GPIO lines configured as outputs.
Start
GPIOIE
Masked?
Interrupt
masked
GPIOIS
Edge/level?
GPIOIBE
both edges?
GPIOIEV
Rising/falling?
GPIOIEV
HIGH/LOW?
Yes
No
No
Yes
Yes
No
No
Yes
Yes
No