Enable pull?
Power-On Reset
Configure as input/output?
Clear corresponding bits in GIODIR to 0
Set corresponding bits in GIODIR to 1
Open drain?
Pull up/down?
Down
Output 1 or 0?
Release Peripheral Reset by setting PENA bit in
Clock Control Register (0xFFFFFFD0)
Enable clock to GIO through PCR
(Check device datasheet for the peripheral select)
Bring GIO out of reset by writing 1 to GIOGCR0
Input
Output
No
Yes
No
Yes
Set corresponding bits in
to 1
GIOPULDIS
Clear corresponding bits in
to 0
GIOPULDIS
Set corresponding bits in
to 1
GIOPDR
Clear corresponding bits in
to 0
GIOPDR
1
0
Clear corresponding
bits in GIOPSL to 0
Set corresponding bits
in to GIOPSL to 1
Read corresponding bits in GIODIN, getting input value
Write 1 to corresponding bits
in
GIODSET
Write 1 to corresponding bits
in
GIODCLR
Quick Start Guide
1019
SPNU503C – March 2018
Copyright © 2018, Texas Instruments Incorporated
General-Purpose Input/Output (GIO) Module
22.2 Quick Start Guide
The GIO module comprises two separate components: an input/output (I/O) block and an interrupt
generation block.
and
show what you should do after reset to configure the GIO
module as I/O or for generating interrupts.
In GIO interrupt service routine, you shall read the GIO offset register (GIOOFF1 or GIOOFF2, depending
on high-/low-level interrupt) to clear the flag and find the pending interrupt GIO channel.
Figure 22-1. I/O Function Quick Start Flow Chart