
57
CHAPTER 2 APPLICATION OF PROGRAMMING
2
2.
7
I
n
te
rrupt
P
rogram
(5) Precautions
(a) When the same device is used
During execution of an instruction in a main routine program, an interrupt program may be executed,
suspending the processing of the instruction being executed, resulting in a device data inconsistency. Take the
following measures to prevent device data inconsistency.
• Do not directly specify the device where the data are written by the interrupt program in the main routine
program. Use the data in another device by moving the data with the transfer instruction.
• Disable interrupts with the DI instruction if instructions that may cause inconvenience for the main routine
program are used. Note that interrupts do not occur during accessing the device of the corresponding
argument of the instruction. For this reason, data inconsistency does not occur in units of arguments.
Summary of Contents for L02CPU
Page 1: ......
Page 2: ......
Page 13: ...11 Memo ...
Page 78: ...76 Memo ...
Page 226: ...224 Memo ...
Page 318: ...316 To the next page ...
Page 320: ...318 To the next page ...
Page 322: ...320 To the next page ...
Page 324: ...322 To the next page ...
Page 326: ...324 To the next page ...
Page 335: ...333 Memo ...
Page 339: ......