22
Interrupt Functions
Section 1-4
Countermeasure for Above Problem
Interrupting Writing
Multiple Words of Data
Flow of Processing
Processing was interrupted for BSET when #1234 was not yet written to
DM 0010. Therefore, in the comparison at point *1, the contents of DM 0000
and DM 0001 are not equal and processing stops with A in the OFF state. As
a result, although the contents of DM 0000 and DM 0010 agree at the value
I N T
1 0 0
0 0 0
0 0 0
A D D
D M 0 0 0 0
# 0 0 0 1
D M 0 0 0 0
I N T
2 0 0
0 0 0
0 0 0
Main Program
Interrupts disabled.
Interrupts enabled.
B S E T
# 1 2 3 4
D M 0 0 0 0
D M 0 0 1 0
C M P
D M 0 0 0 0
D M 0 0 1 0
Interrupt Subroutine
Main Program
25506 (=)
A
#1234 moved to DM 0000.
1234
DM0000
1234
#1234 moved to DM 0001.
DM 0000 read.
DM 0010 read.
DM 0000 compared to DM 0010.
Comparison result output.
Processing interrupted.
#1234 moved to DM 0002.
#1234 moved to DM 0010.
Processing restarted.
Interrupt processing completed.
Processing
of BSET
003E
1234
DM0001
0502
DM0002
1234
0502
ABCD
DM0010
ABCD
ABCD
OFF
A
OFF
1234
OFF
Processing of CMP
(*2)
(*1)
1234 1234 1234
Interrupt occurs
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......