II-94
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (Stopwatch Counter)
(2) Setting stopwatch interrupts
In the interrupt disabled status, this program enables
stopwatch 1 Hz interrupt only, and then enables interrupts.
DI
;
LD
X,76H
;
LD
MX,0010B
;
EI
;
Disable interrupts
Enable stopwatch 1 Hz interrupt
and mask 10 Hz interrupt
Enable interrupts
This program example avoids using arithmetic instructions
to write to the interrupt mask flag (EISWIT), and assumes
that BLS is fixed at "0".
Program
Note
Specifications
(3) Processing after interrupt is generated
This routine stores the register data when an interrupt
occurs, recovers the register data when the interrupt proc-
essing completes, and returns to the main routine. The
order of priority for setting the interrupts is shown in the
table below. Nesting of interrupts cannot be done. Process-
ing proceeds in descending order of priority. Further, the
interrupt processing routine is called with CALL instruction
and processed.
Order of Priority
Interrupt Factor
1
Stopwatch 10 Hz
2
Stopwatch 1 Hz
Table 5.9.6
Order of priority in program
example
Specifications
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......