Hitachi HIDIC MICRO-EH Applications Manual page 167

Table of Contents

Advertisement

*1
Received data is defined by either of following 4 ways depending on setting in [7] s+A to [9] s+C.
(a)
Start code and data size
s+A : Data length (Byte)
s+B : H80
s+C : H0000
(b) Start and end code
s+A : H0000
s+B : H80
s+C : H80
(c)
End code
s+A : H0000
s+B : H0000
s+C : H80
(d) Data length
s+A : Data length (Byte)
s+B:H0000
s+C:H0000
*2
In case of start code used, CPU can fail to receive due to buffer size full if data with wrong start code is sent.
(6) "t" parameter
t+B
[B]
[0] Execution bit:
Set "1" by user program to send data. This bit is reset after communication completed.
[1] Communication completed :
This bit is set "1" when communication completed without error, and reset at communication starting.
[2] Communication failed :
This bit is set "1" when communication fails, and reset at communication starting.
[3] Initialize :
Set "1" by user program to initialize TRNS 0 command. If this bit is on while communication, the communication
is forced to be stopped.
[4] Initialize completed :
This bit is set "1" when initializing completed without error. Initialize bit [3] is reset at this timing.
[5] Receive enabled :
Set "1" by user program if CPU needs to receive data after data sending. This bit is reset after communication
completed.
[6] Parity error flag :
This bit is set "1" when parity error detected.
[7] Framing error :
This bit is set "1" when framing error detected.
[8] Overrun error :
This bit is set "1" when overrun error detected.
*2
(
=Start code)
*2
(
=Start code)
(
=End code)
(
=End code)
[A]
[9]
[8]
[7]
[6]
[5]
[4]
[3]
5-117
Chapter 5 Instruction specifications
Data length
Start code
Start code
Data length
t
[2]
[1]
[0]
: Set by user
End code
End code

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents