II-64
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (Clock Timer)
(2) Operating interrupt mask register by separate bits
This program enables the timer 8 Hz interrupt only, and
then masks the timer 32 Hz interrupt.
DI
;
LD
X,78H
;
OR
MX,0010B
;
AND
MX,1110B
;
EI
;
Disable interrupt
Enable timer 8 Hz interrupt
Mask timer 32 Hz interrupt
Enable interrupt
Program
Specifications
(3) Processing after timer interrupt generated
This program stores the register when an interrupt is gener-
ated, and when the interrupt processing is completed it
recovers the register data and returns to the main routine.
The order of priority for the interrupts is set as shown in the
table below, interrupt nesting is disabled, and processing
proceeds in descending order of priority. The interrupt
processing routine is called with CALL instruction and
processed.
Order of Priority
Interrupt Factor
1
Clock timer 32 Hz
2
Clock timer 8 Hz
3
Clock timer 2 Hz
Specifications
ORG
104H
;
;
JP
INTI
;
;
;
YTIB
EQU
● ■
● ■
H
;
;
;
Interrupt vector address of timer interrupt
Go to "INTI" if timer interrupt is generated
Buffer address of timer interrupt factor flags
Program
Table 5.6.3
Order of priority of interrupts
in program example
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......