MC80F0304/08/16
November 4, 2011 Ver 2.12
95
The UART receive or transmit interrupts are generated by UAR-
TRIF or UARTTIF are set by completion of UART data recep-
tion or transmission.
The SIO interrupt is generated by SIOIF which is set by comple-
tion of SIO data reception or transmission.
The interrupts are controlled by the interrupt master enable flag
I-flag (bit 2 of PSW on Figure 8-3 ), the interrupt enable register
(IENH, IENL), and the interrupt request flags (in IRQH and
IRQL) except Power-on reset and software BRK interrupt. The
Table 18-1 shows the Interrupt priority.
Vector addresses are shown in Figure 8-6 . Interrupt enable reg-
isters are shown in Figure 18-2 . These registers are composed of
interrupt enable flags of each interrupt source and these flags de-
termines whether an interrupt will be accepted or not. When en-
able 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.
Figure 18-2 Interrupt Enable Flag Register
Reset/Interrupt
Symbol
Priority
Hardware Reset
External Interrupt 0
External Interrupt 1
External Interrupt 2
External Interrupt 3
UART Rx Interrupt
UART Tx Interrupt
Serial Input/Output
Timer/Counter 0
Timer/Counter 1
Timer/Counter 2
Timer/Counter 3
ADC Interrupt
Watchdog Timer
Basic Interval Timer
RESET
INT0
INT1
INT2
INT3
INT_RX
INT_TX
SIO
Timer 0
Timer 1
Timer 2
Timer 3
ADC
WDT
BIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Table 18-1 Interrupt Priority
INT3E
R/W
INT0E
Timer/Counter 0 interrupt enable flag
INITIAL VALUE: 0000 0000
B
ADDRESS: 0EA
H
IENH
INT1E
MSB
LSB
SIOE
T0E
UARTRE
INT2E
R/W
R/W
Serial Communication interrupt enable flag
UART Tx interrupt enable flag
External interrupt 3 enable flag
UART Rx interrupt enable flag
R/W R/W
R/W R/W
R/W
External interrupt 2 enable flag
External interrupt 1 enable flag
External interrupt 0 enable flag
R/W
T1E
INITIAL VALUE: 000- 00-0
B
ADDRESS: 0EB
H
IENL
T2E
MSB
R/W
Timer/Counter 3 interrupt enable flag
R/W R/W
Timer/Counter 2 interrupt enable flag
Timer/Counter 1 interrupt enable flag
LSB
R/W
ADCE WDTE
R/W
R/W R/W
T3E
-
-
BITE
Basic Interval Timer interrupt enable flag
Watchdog timer interrupt enable flag
A/D Converter interrupt enable flag
UARTTE