TA600032-EN0/0
- 67 -
6.2.2
Monitor operation mode (local information monitor)
When "RADD.MONI = 1" is set, "Monitor operation mode" is selected.
In the "Monitor operation mode", unlike other "Local LSI" products, there is no "Device number".
"Port data" of all "Local LSI" connected to "Motionnet
®
" can be monitored by "Local CPU".
"G9006" can save "Port data" of 64 "Local LSIs".
For example, "Local CPU" can read "Port data" of "Local LSI" connected to "Motionnet
®
" via "G9006" in the following procedure:
Step 1)
After resetting "Center LSI", connect to the "Local LSI".
Step 2)
After resetting "G9006", prepare for "Monitor operation mode".
1.
The "Local CPU" writes the "Operation mode" to "G9006".
(Write "RADD = 0080h" from the "Local CPU".)
2.
The "Local CPU" writes the monitored target to "Port change interrupt setting memory" of "G9006".
(In order to monitor the all ports of a "Local LSI", in which the "Device number" is "1", write "ADDR (0) = F0h" from the
"Local CPU".)
3.
The "Local CPU" instructs "G9006" to connect with "Motionnet
®
".
(Write "CDVON" (10h) operation command from the "Local CPU".)
Step 3)
When "Operation mode" is ready , go to the next step.
4.
The "Local CPU" recognizes "INT = L level" of "G9006".
(When a "Port change event" (MSTS.IPTC) interrupt in the "Local LSI" to be monitored is generated, "INT = L level" is
output.)
5.
The "Local CPU" reads "Status" (MSTS) from "G9006".
(The "Local CPU" can recognize the generation of the "Port change event" interrupt.)
6.
The "Local CPU" checks "Port change interrupt flag" of "G9006".
(Read "Port change interrupt flag memory" to be monitored.)
7.
The "Local CPU" clears the "Port change interrupt flag" of "G9006".
(Write "1" to the "Port change interrupt flag memory" to be cleared.)
8.
The "Local CPU" reads the "Port data" that generated the "Port change event" interrupt.
(The "Local CPU" can also read a "Port data" for which the "Port change event" interrupt has not been generated.)
9.
The "Local CPU" can repeat the operation from the procedure "4" described above.
(Procedures "6", "7" and "8" can be replaced by the control command of "Port change interrupt information reading".)