English
Language : 

GMS81C7216 Datasheet, PDF (63/121 Pages) List of Unclassifed Manufacturers – 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C7208/7216
17. INTERRUPTS
The GMS81C7208/16 interrupt circuits consist of interrupt en-
able register (IENH, IENL), interrupt request flags of IRQH,
IRQL, priority circuit, and master enable flag (“I” flag of PSW).
twelve interrupt sources are provided. The configuration of inter-
rupt circuit is shown in Figure 17-2.
The basic interval timer interrupt is generated by BITIF which is
set by an overflow in the timer register.
The watchdog timer interrupt is generated by WDTIF which set
by a match in watchdog timer register.
The external interrupts INT0 ~ INT2 each can be transition-acti-
vated (1-to-0 or 0-to-1 transition) by selection IEDS.
The flags that actually generate these interrupts are bit INT0IF,
INT1IF and INT2IF in register IRQH and IRQL. When an exter-
nal interrupt is generated, the flag that generated it is cleared by
the hardware when the service routine is vectored to only if the
interrupt was transition-activated.
The timer 0 ~ timer 3 interrupts are generated by T0IF~T3IF
which are set by a match in their respective Timer/Counter regis-
ter.
The serial communication interrupts are generated by SIOIF
which is set by 8-bit serial data transmitting or receiving through
SCK, SIN, SOUT pin.
The AD converter interrupt is generated by ADIF which is set by
finishing the analog to digital conversion.
The watch timer interrupt is generated by WTIF which is set by
an 14-bit binary counter overflow.
The interrupts are controlled by the interrupt master enable flag
I-flag (bit 2 of PSW on page 18), the interrupt enable register
(IENH, IENL), and the interrupt request flags (in IRQH and
IRQL) except power-on reset and software BRK interrupt. Below
table shows the Interrupt priority.
Reset/Interrupt
Hardware Reset
Reserved
Basic Interval Timer
Watchdog Timer
External Interrupt 0
External Interrupt 1
Timer/Counter 0
Timer/Counter 1
External Interrupt 2
Serial Communication
ADC Interrupt
Watch Timer Interrupt
Timer/Counter 2
Timer/Counter 3
Symbol
RESET
-
BIT
WDT
INT0
INT1
Timer 0
Timer 1
INT2
SCI
ADC
WT
Timer 2
Timer 3
Priority
-
1
2
3
4
5
6
7
8
9
10
11
12
13
Vector addresses are shown in Figure 8-6 on page 20. Interrupt
enable registers are shown in Figure 17-3. These registers are
composed of interrupt enable flags of each interrupt source and
these flags determines whether an interrupt will be accepted or
not. When enable flag is “0”, a corresponding interrupt source is
prohibited. Note that PSW contains also a master enable bit, I-
flag, which disables all interrupts at once.
R/W -
-
IRQL INT2IF -
-
MSB
External Interrupt 2
Serial Communication
R/W R/W R/W R/W R/W
SIOIF ADIF WTIF T2IF T3IF
LSB
ADDRESS: 0DCH
INITIAL VALUE: 0--0 0000B
Timer/Counter 3
Timer/Counter 2
Watch Timer
A/D Converter
-
IRQH
-
MSB
Basic Interval Timer
Watchdog Timer
R/W
-
R/W R/W R/W R/W R/W
BITIF WDTIF INT0IF INT1IF T0IF
R/W
T1IF
LSB
ADDRESS: 0DDH
INITIAL VALUE: -000 0000B
Timer/Counter 1 Interrupt Request Flag
Timer/Counter 0
External Interrupt 1
External Interrupt 0
Figure 17-1 Interrupt Request Flag
FEB. 2005 Ver 1.04
59