Power-On Reset
Enable GIO through PCR (Check device
datasheet for the peripheral select)
Both rising and falling edge / single edge trigger interrupt?
Set corresponding bits in
to 1
GIOINTDET
Clear corresponding bits in
to 0
GIOINTDET
Rising/Falling edge?
Enable the FIQ/IRQ interrupt in CPU (Check CPU User Guide)
Bring GIO out of reset (See register
)
GIOGCR0
Enable the FIQ/IRQ interrupt in
VIM (Check VIM User Guide)
Configure as high /low level interrupt?
Write 1 to corresponding bits in
GIOLVLSET
Write 1 to corresponding bits in
GIOLVLCLR
Low level
High level
Write 1 to corresponding bits in
to enable interrupt
GIOENASET
Write 0xFF to clean the GIO interrupt flag register
GIOFLG
Enable Peripherals by setting PENA bit in Clock Control Register (0xFFFFFFD0)
Initialize vector interrupt table - Map GIO low level interrupt and / or high level
interrupt service routine to pre-defined device specific interrupt channel.
(Check device datasheet)
Both edge
Single edge
Rising
Falling
Set corresponding bits in
to 1
GIOPOL
Clear corresponding bits in
to 0
GIOPOL
Quick Start Guide
1020
SPNU503C – March 2018
Copyright © 2018, Texas Instruments Incorporated
General-Purpose Input/Output (GIO) Module
Figure 22-2. Interrupt Generation Function Quick Start Flow Chart