
MC80F0104/0204
Preliminary
80
Mar. 2005 Ver 0.2
18. INTERRUPTS
TheMC80F0104/0204 interrupt circuits consist of Inter-
rupt enable register (IENH, IENL), Interrupt request flags
of IRQH, IRQL, Priority circuit, and Master enable flag
(“I” flag of PSW). Fifteen interrupt sources are provided.
The configuration of interrupt circuit is shown in Figure
18-1 and interrupt priority is shown in Table 18-1.
The External Interrupts INT0 ~ INT3 each can be transi-
tion-activated (1-to-0 or 0-to-1 transition) by selection
IEDS register.
The flags that actually generate these interrupts are bit
INT0IF, INT1IF, INT2IF and INT3IF in register IRQH.
When an external interrupt is generated, the generated flag
is cleared by the hardware when the service routine is vec-
tored to only if the interrupt was transition-activated.
The Timer 0 ~ Timer 3 Interrupts are generated by T0IF,
T1IF, T2IF and T3IF which is set by a match in their re-
spective timer/counter register.
The Basic Interval Timer Interrupt is generated by BITIF
which is set by an overflow in the timer register.
The AD converter Interrupt is generated by ADCIF which
is set by finishing the analog to digital conversion.
The Watchdog timer is generated by WDTIF and WTIF
which is set by a match in Watchdog timer register.
Figure 18-1 Block Diagram of Interrupt
UART Rx
INT2
INT1
INT0
INT0IF
IENH
Interrupt Enable
Interrupt Enable
IRQH
IRQL
Internal bus line
Register (Lower byte)
Internal bus line
Register (Higher byte)
Release STOP/SLEEP
To CPU
Interrupt Master
Enable Flag
I-flag
IENL
Prio
rity Cont
rol
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.
[0EA
H
]
[0EC
H
]
[0ED
H
]
INT1IF
INT2IF
INT3IF
UARTRIF
T0IF
SIOIF
INT3
UART Tx
Timer 0
Serial
UARTTIF
Timer 1
T1IF
T3IF
Timer 2
Timer 3
T2IF
A/D Converter
ADCIF
BITIF
Watchdog Timer
BIT
WDTIF
[0EB
H
]
Communication
Interrupt
Vector
Address
Generator
Содержание MC80F0104
Страница 108: ...MC80F0104 0204 Preliminary 104 Mar 2005 Ver 0 2 25 Emulator EVA Board Setting...
Страница 115: ...APPENDIX...
Страница 116: ......
Страница 124: ...viii Mar 2005 Ver 0 2 MC80F0104 0204 Preliminary...