|
7220 Datasheet, PDF (185/303 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
5.1 Example of multi-line display
(4) VSYNC interrupt processing routine when setting multiple interrupts
Figure 5.1.11 shows the flowchart of VSYNC interrupt processing routine when setting multiple interrupts.
Aâ and Bâ are the setting routines for multiple interrupts.
Aâ
Set routine for
multiple
interrupts
Enable state of
multiple interrupts
(Timer 1)
ICON1, ICON2: Interrupt control registers 1, 2
V_ICON1, V_ICON2 : Back up RAM for interrupt control
registers 1, 2 during V SYNC interrupt
VSYNC interrupt processing routine
A : Accumulator
X : Index register X
Y : Index register Y
T
ââ0â
D
ââ0â
T : X modified operation mode flag
D : Decimal operation mode flag
V_ICON1
âICON1
V_ICON2
âICON2
ICON1 (address 00FE 16)ââ000000012â
ICON2 (address 00FF 16)ââ000000002â
I
ââ0â
Push registers X, Y, A
VSYNC interrupt processing
âEnable Timer 1 interrupt to
take priority than V SYNC interrupt.
And also, be sure to disable the following interrupts:
-VSYNC interrupt
-all interrupts with lower priority than V SYNC
interrupt.
Pop the registers X, Y, A
Bâ
Disable
multiple interrupts
I
ICON1
ICON2
ââ1â
âV_ICON1
âV_ICON2
RETURN
âDisable all interrupts
âPop ICON 1 and 2 contents
during VSYNC interrupt
Fig. 5.1.11 Flowchart of VSYNC interrupt processing routine (when setting multiple interrupts)
5-12
7220 Group Userâs Manual
|
▷ |