II-18
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 4: INTERRUPT AND HALT
Example of Interrupt Vector Processing
When interrupts having different vectors occur simultane-
ously, they are processed in the specified order of priority.
Because of this, it is convenient to process all interrupts
with the one interrupt routine "IN".
Table 4.5.1 lists the order of priority for processing inter-
rupts.
Values of registers X, Y, A, B and F are retained in stack.
Priority
Interrupt Factor
1
Stopwatch
10 Hz
2
Stopwatch
1 Hz
3
K00–K03 input ports
4
K10 input port
5
Clock timer
32 Hz
6
Clock timer
8 Hz
7
Clock timer
2 Hz
ORG
101H
;
Vector leading address
;
JP
IN
;
Generation of K10 input interrupt (INTK1)
JP
IN
;
Generation of K00–K03 input interrupt (INTK0)
JP
IN
;
Generation of of INTK1 and INTK0
JP
IN
;
Generation of timer interrupt (TINT)
JP
IN
;
Generation of INTK1 and TINT
JP
IN
;
Generation of INTK0 and TINT
JP
IN
;
Generation of INTK1, INTK0 and TINT
JP
IN
;
Generation of stopwatch interrupt (SWINTT)
JP
IN
;
Generation of INTK1 and SWINTT
JP
IN
;
Generation of INTK0 and SWINTT
JP
IN
;
Generation of INTK1, INTK0 and SWINTT
JP
IN
;
Generation of TINT and SWINTT
JP
IN
;
Generation of INTK1, TINT and SWINTT
JP
IN
;
Generation of INTK0, TINT and SWINTT
JP
IN
;
Generation of all interrupts
4.5
Interrupt routine
Interrupt vectors
Specifications
Table 4.5.1
Order of interrupt priority in
program example
Summary of Contents for S1C6S3N2
Page 4: ......
Page 6: ......
Page 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Page 8: ......
Page 141: ...Software Software S1C6S3N2 II Technical Software ...
Page 142: ......
Page 146: ......