Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction specifications
5-115
Item number Transfer command-1 Name General purpose port communication command
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
TRNS 0 (d, s, t)
DER ERR SD V C
zzzz
Command format Number of steps
Condition Steps
TRNS 0 (d, s, t)
-5
80 2,078
Bit Word Double word
Usable I/O
XY
R,
L,
M
TD, SS,
CU, CT WX WY
WR,
WM
TC DX DY
DR,
DM
Others
d Dummy {
s Parameter area {
s to s+14
t Communication control {
t to t+11
Function
(1) This is a command to send data via general purpose port. It is also possible to receive data after data sending.
(2) Parameter "d" is dummy. Assign WY10. (Actual data in Y100 to Y115 is not influenced.)
(3) Parameter "s" is starting address of parameter table for communication setting.
(4) Parameter "t" is starting address of bit table for communication control.
(5) "s" parameter
[0] Return code
s
s+1
s+4
s+6
s+7
s+9
s+A
s+B
s+C
s+D
s+E
[1] System area
(Do not use this area.)
[2] Timeout
[3] Address of sending area
[4] Reserve area for data sending (word)
[5] Address of receiving area
[6] Reserve area for data receiving (word)
[7] Receiving data length (byte)
[8] Start code
[9] End code
[10] Communication speed
[11] Communication format
: Access forbidden
: User settin
g
area
s+3
[0] Return code : Result of TRNS 0 command is set in
lower 8 bits.
Completed 0
Error 0
[1] System area : This area is used by system (CPU) while
TRNS 0 operation. It is not allowed for
users to use this area.
[2] Timeout : Timeout setting from command executed
to completed.
=0 : Timeout disabled
0 : Timeout enabled [×10ms]
Max. HFFFF
TRNS 0 (d, s, t)
!
If this area is written, CPU might stop operation due to
system error.
Constant