R8C/3MK Group
USB-to-Serial Communication Conversion Demo Board
R0K5R8C3MDU30BR Instruction Manual
R01AN1051EJ0100 Rev.1.00
Page 31 of 38
Mar 21, 2012
10.2.2
Protocol Conversion of Write Access
When you write data to the SSU device, you send the “Write Access” command packet to the virtual COM
port, and send data packet continuously. Figure 34 shows the protocol conversion of Write Access. If the
data packet length is short (less than 59bytes), you can combined command packet and data packet to
“combined packet”.
USB Packet
Control
0x00
Dummy
0x00
Instruction
0x??
Len(Lower)
0x64
Len(Upper)
0x00
Data(D001)
0x01
SSU Packet
Instruction
0x??
Data(D001)
0x01
Protocol Conversion of Write Access (Transmit 100 Bytes Data)
First Packet:
Send Command Packet
Second Packet:
Send Data Packet
(64 bytes)
First Packet:
Send C Data
・・・・・・・・
Data(D064)
0x40
・・・・・・・・
Data(D064)
0x40
Data(D065)
0x41
Data(D100)
0x64
・・・・・・・・
Data(D065)
0x41
Data(D100)
0x64
・・・・・・・・
Third Packet:
Send Data Packet
(36bytes)
SSU transmission
SSU Reception
USB Packet
SSU Packet
Data(D001)
0x01
Protocol Conversion of Write Access( Using Combined Packet)
First Packet:
Send Combined Packet
First Packet:
Send C Data
Data(D002)
0x40
Control
0x00
Dummy
0x00
Instruction
0x??
Len(Lower)
0x02
Len(Upper)
0x00
Data(D001)
0x01
Data(D002)
0x40
O
U
T
A
C
K
Instruction
0x??
O
U
T
O
U
T
O
U
T
A
C
K
A
C
K
A
C
K
Figure 34 Protocol Conversion of Write Access
10.2.3
Protocol Conversion of Memory Read
When you indicate address and read data from SSU device, you enter the “Memory Read” command to the
virtual COM port, and receive data packet from the virtual COM port. Figure 35 shows the protocol
conversion of the Memory Read.
USB Packet
Control
0x21
Dummy
0x00
Instruction
0x03
Len(Lower)
0x02
Len(Upper)
0x00
Data(D001)
0x01
SSU Packet
Instruction
0x03
Data(D001)
0x01
Protocol Conversion of Memory Read(Receive 2 bytes Data)
First Packet:
Send Command
Packet
Second Packet:
Receive Data Packet
First Packet:
Send C
Receive Data
Data(D002)
0x02
Data(D002)
0x02
SSU Transimssion
SSU Reception
Address(Lower)
0x00
Address(Upper)
0x00
Address(Lower)
0x00
Address(Upper)
0x00
O
U
T
I
N
A
C
K
A
C
K
Figure 35 Protocol Conversion of Memory Read Memory
10.2.4
Protocol Conversion of memory Write