Hitachi EH-150 Applications Manual page 102

Ethernet module 2 eh-eth2
Hide thumbs Also See for EH-150:
Table of Contents

Advertisement

Sample program 8
To read Status Register
(for EHV-CPU)
When SCRW is executed at R100=1, the value of Status Register will be putting on WM100 to WM10C.
R7E3
R0
SR read
Request bit
R100
R101 R102
Execute
Normal
Abnormal
flag
End flag
end flag
R100
R101 R102
R101 R102
R104
Normal
end
R105
Abnormal
end
WR003 = H2
WR004 = H22F
DR005 = ADR (WM100)
WR007 = 13
R100
Execute
flag
SCRW (WR000, R100)
R103
During
execution
R104
Normal
end
R105
Abnormal
end
R0 = 0
:
Normal end procedure
:
R0 = 0
:
Abnormal end procedure
:
8-19
Chapter 8 Register Structure
Slot No.
EH-ETH2
To set s parameter area
The request of Status Register getting
(00001)
(without handshake)
To set the target area (Unit 0, slot2)
To configure WM100 as the starting area of
source
To configure 13 words for sending size
(00002)
To set execution bit by setting R0=1
(00003)
SCRW command execution
(00004)
To detect SCRW command status
(00005)
The process is normal completion
SCRW is in status of wait for instruction.
The process is abnormal completion
SCRW is in status of wait for instruction.
(00006)
Normal end procedure
(00007)
Abnormal end procedure
0
1
2
-
-
*

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents