Chapter 8 Register Structure
8.3.1
Command processing summary and usage
In this section, we explain the processing summary and usage of these commands with FUN201. (similar
about SCRW)
[Operation condition]
-
FUN201 command is in function box without execute condition and in normal scan.
-
When you write a data to Control Register in EH-ETH2, set control type "H0003".
-
When you read a data from Status Register in EH-ETH2, set control type "H0001(handshake valid)"
or "H0002(handshake invalid)".
[Basic operation 1]
To write Control Register (Control type "H0003")
Wait execute
instruction
Command execute
(00001)
R7E3
WR003 = H3
WR004 = H0
ADRIO ( WR005, R100 )
ADRIO ( WR006, WM100 )
WR007 = 10
(00002)
R7E4
R100 = 1
(00003)
FUN201 ( WR000 )
END
:
:
:
(0000n)
1
st
scan
2
nd
scan
(00001)
R7E3
WR003 = H3
WR004 = H0
ADRIO ( WR005, R100 )
ADRIO ( WR006, WM100 )
WR007 = 10
(00002)
R7E4
R100 = 1
(00003)
FUN201 ( WR000 )
END
:
:
:
(0000n)
FUN201 is in execution. so this instruction is
not executed.
Namely, data is not written to Control Register
from 2nd scan to 3rd scan.
FUN201 command
- execute flag clear 0
- set normal complete flag or abnormal
complete flag depend on the result of
execution
(00001)
R7E3
WR003 = H3
WR004 = H0
ADRIO ( WR005, R100 )
ADRIO ( WR006, WM100 )
WR007 = 10
(00002)
R7E4
R100 = 1
(00003)
FUN201 ( WR000 )
END
:
:
:
(0000n)
3
rd
scan
Command execute
FUN201 command
- Keep Execute flag R100=1
- Clear normal complete flag and abnormal
complete flag
FUN201 command
- Keep Execute flag R100=1
- Clear normal complete flag and abnormal
complete flag
Wait execute
instruction
8-15