3874 Group User's Manual
2-20
APPLICATION
2.2 Interrupts
Process 5: Set “0” (no request issued) to the interrupt request bit for each vector to be set.
b7
b0
0 0 0 0 0 0 0 0
Interrupt request register 1
(IREQ1: address 3C16)
When setting INT0 interrupt, no INT0 interrupt request issued.
When setting INT1 interrupt, no INT1 interrupt request issued.
When setting receive bus interrupt, no receive bus interrupt request issued.
When setting transmit bus interrupt, no transmit bus interrupt request issued.
When setting timer X interrupt, no timer X interrupt request issued.
When setting timer Y interrupt, no timer Y interrupt request issued.
When setting timer 2 interrupt, no timer 2 interrupt request issued.
When setting timer 3 interrupt, no timer 3 interrupt request issued.
b7
b0
0 0 0 0 0 0 0
Interrupt request register 2
(IREQ2: address 3D16)
When setting INT2 interrupt, no INT2 interrupt request issued.
When setting CNTR0, serial I/O3 interrupts; no CNTR0, serial I/O3 interrupt requests issued.
When setting CNTR1 interrupt, no CNTR1 interrupt request issued.
When setting timer 1 interrupt, no timer 1 interrupt request issued.
When setting INT3, INT4, INT5 interrupts; no INT3, INT4, INT5 interrupt requests issued.
When setting ADT/A-D converter, serial I/O2 interrupts; no ADT/A-D converter, serial I/O2 interrupt requests issued.
When setting key input, serial I/O1 receive, serial I/O1 transmit interrupts; no key input, serial I/O1 receive,
serial I/O1 transmit interrupt requests issued.
Process 6: In “multiple factors/one vector interrupt”, set “0” (no request issued) to the request bit of
interrupt source to be set.
b7
b0
0 0 0 0 0 0 0 0
Interrupt source discrimination register 1
(IREQD1: address 3816)
When setting INT3 interrupt, no INT3 interrupt request issued.
When setting INT4 interrupt, no INT4 interrupt request issued.
When setting INT5 interrupt, no INT5 interrupt request issued.
When setting serial I/O1 receive interrupt, no serial I/O1 receive interrupt request issued.
When setting serial I/O1 transmit interrupt, no serial I/O1 transmit interrupt request issued.
When setting key input interrupt, no key input interrupt request issued.
When setting serial I/O2 interrupt, no serial I/O2 interrupt request issued.
When setting ADT/A-D converter interrupt, no ADT/A-D converter interrupt request issued.
b7
b0
0 0
Interrupt source discrimination register 2
(IREQD2: address 3616)
When setting CNTR0 interrupt, no CNTR0 interrupt request issued.
When setting serial I/O3 interrupt, no serial I/O3 interrupt request issued.
Process 7: In “multiple factors/one vector interrupt”, enable the acceptance of interrupt source to be set.
b7
b0
1 1 1 1 1 1 1 1
Interrupt source discrimination control register 1
(ICOND1: address 3916)
When setting INT3 interrupt, enable INT3 interrupt.
When setting INT4 interrupt, enable INT4 interrupt.
When setting INT5 interrupt, enable INT5 interrupt.
When setting serial I/O1 receive interrupt, enable serial I/O1 receive interrupt.
When setting serial I/O1 transmit interrupt, enable serial I/O1 transmit interrupt.
When setting key input interrupt, enable key input interrupt.
When setting serial I/O2 interrupt, enable serial I/O2 interrupt.
When setting ADT/A-D converter interrupt, enable ADT/A-D converter interrupt.
b7
b0
1 1
Interrupt source discrimination control register 2
(ICOND2: address 003716)
When setting CNTR0 interrupt, enable CNTR0 interrupt.
When setting serial I/O3 interrupt, enable serial I/O3 interrupt.
Fig. 2.2.12 Interrupt setting method (2)