English
Language : 

GMS81C1404 Datasheet, PDF (59/93 Pages) Hynix Semiconductor – 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C1404/GMS81C1408
17. INTERRUPTS
The GMS81C1404 and GMS81C1408 interrupt circuits
consist of Interrupt enable register (IENH, IENL), Inter-
rupt request flags of IRQH, IRQL, Interrupt Edge Selec-
tion Register (IEDS), priority circuit and Master enable
flag(“I” flag of PSW). The configuration of interrupt cir-
cuit is shown in Figure 17-1 and Interrupt priority is shown
in Table 17-1 .
The External Interrupts INT0, INT1, INT2 and INT3 can
each be transition-activated (1-to-0, 0-to-1 and both transi-
tion).
The flags that actually generate these interrupts are bit
INT0IF, INT1IF, INT2IF and INT3IF in Register IRQH.
When an external interrupt is generated, the flag that gen-
erated it is cleared by the hardware when the service rou-
tine is vectored to only if the interrupt was transition-
activated.
The Timer 0, Timer 1, Timer 2 and Timer 3 Interrupts are
generated by T0IF, T1IF, T2IF and T3IF, which are set by
a match in their respective timer/counter register. The AD
converter Interrupt is generated by ADIF which is set by
finishing the analog to digital conversion. The Watch dog
timer Interrupt is generated by WDTIF which set by a
match in Watch dog timer register (when the bit WDTON
is set to “0”). The Basic Interval Timer Interrupt is gener-
ated by BITIF which is set by a overflowing of the Basic
Interval Timer Register(BITR).
Internal bus line
External Int. 0
External Int. 1
IEDS
Timer 0
Timer 1
External Int. 2
External Int. 3
IEDS
Timer 2
Timer 3
IRQH
7
INT0IF
INT1IF 6
T0IF 5
T1IF 4
3
INT2IF
INT3IF 2
T2IF 1
T3IF 0
IENH
Interrupt Enable
Register (Higher byte)
A/D Converter
WDT
BIT
SPI
ADIF 7
6
WDTIF
5
BITIF
5
SPIF
IRQL
IENL
Interrupt Enable
Register (Lower byte)
I-flag is in PSW, it is cleared by “DI”, set by
“EI” instruction.When it goes interrupt service,
I-flag is cleared by hardware, thus any other
interrupt are inhibited. When interrupt service is
completed by “RETI” instruction, I-flag is set to
“1” by hardware.
Release STOP
I Flag
Interrupt Master
Enable Flag
Interrupt
Vector
Address
Generator
To CPU
Internal bus line
Figure 17-1 Block Diagram of Interrupt Function
June. 2001 Ver 1.2
57