GIO Control Registers
1201
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
General-Purpose Input/Output (GIO) Module
25.5.7 GIO Offset Register 1 (GIOOFF1)
The GIOOFF1 register provides a numerical offset value that represents the pending external interrupt
with high priority. The offset value can be used to locate the position of the interrupt routine in a vector
table in application software.
and
describe this register.
NOTE:
Reading this register clears it, GIOEMU1 and the corresponding flag bit in the GIOFLG
register. However, in emulation mode, a read to this register does not clear any register or
flag. If more than one GIO interrupts are pending, then reading the GIOOFF1 register will
change the contents of GIOOFF1 and GIOEMU1 to show the offset value for the next
highest-priority pending interrupt. The application can choose to service all GIO interrupts
from the same service routine by continuing to read the GIOOFF1 register until it reads
zeros.
Figure 25-13. GIO Offset 1 Register (GIOOFF1) [offset = 24h]
31
16
Reserved
R-0
15
6
5
0
Reserved
GIOOFF1
R-0
R-0
LEGEND: R = Read only; -
n
= value after reset
Table 25-10. GIO Offset 1 Register (GIOOFF1) Field Descriptions
Bit
Field
Value
Description
31-6
Reserved
0
Reads return 0. Writes have no effect.
5-0
GIOOFF1
GIO offset 1. These bits index the currently pending high-priority interrupt. This register and the
flag bit (in the GIOFLG register) are also cleared when this register is read, except in emulation
mode.
0
No interrupt is pending.
1h
Interrupt 0 (corresponding to GIOA0) is pending with a high priority.
:
:
8h
Interrupt 7 (corresponding to GIOA7) is pending with a high priority.
9h
Interrupt 8 (corresponding to GIOB0) is pending with a high priority.
:
:
10h
Interrupt 16 (corresponding to GIOB7) is pending with a high priority.
:
:
20h
Interrupt 32 (corresponding to GIOD7) is pending with a high priority.
21h-3Fh
Reserved