Mitsubishi Q00JCPU User Manual page 922

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

APPENDICES
App
- 133
Appendix 5 Method of replacing High Performance model QCPU with Universal model QCPU
3) Interrupt program
The following processing is added to a fixed scan interrupt program (10ms).
The fixed scan interrupt program outputs ASCII codes from the output module
and controls the strobe signal.
Figure App.10 Sample program
The following signals are
all turned OFF when all
strings are output.
Yn0 to Yn7 (ASCII code)
Yn8 (strobe signal)
Yn9 (in-execution flag)
Status 0:
One character is extracted
from the output string using
the MIDR instruction and
output to the Y module.The
strobe signal is turned
OFF for 10ms.
Status 1:
The strobe signal is turned ON
for 10ms.
Status 2:
The strobe signal is turned OFF
for 10ms.
The status value is incremented
by one.
Status 3:
The status value is returned
to 0 since the output
processing of one character
is completed. The next
character is extracted.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents