I 2 C Demo Communication Protocol - Renesas R0K5R8C3MDU30BR Instruction Manual

Usb-to-serial communication conversion demo board
Table of Contents

Advertisement

R8C/3MK Group
2
9.
I
C demo communication protocol
9.1
USB Packet Specification
9.1.1
Structure of Command Packet
The command packet for controlling I
command packet.
The structure of Command Packet
O
U
T
Each field
1) Control : operation type (1 byte in binary format)
0x00: Write Access
0x01: Read Access
For the value other than the above, this product responses the error code (0xFFyy : yy is control field
in the error condition) as a command error.
2) DevAdr: Device address of I
0x00-0x7F
This field consists of 7bits in binary format, this product does Not perform an error judgment.
3) RegAdr: Register / Control / Memory Address of I
0x00-0xFF
This field consists of 7bits in binary format, and this product does not perform an error judgment.
The meaning of this field depends on the connected I
4) Len : Length of Data Packet (2bytes in binary format)
0x0000-0xFFFF
This field consists of 2 bytes in binary format. And this product does not perform an error judgment.
The byte order of this field is little endian (the first is lower byte, and the second is upper byte)
When you enter 0x0000 to this field, you can access 65536 bytes continuously.
R01AN1051EJ0100 Rev.1.00
Mar 21, 2012
USB-to-Serial Communication Conversion Demo Board
2
C device consists of five bytes. Figure 23 shows the structure of
Control
DevAdr
0x01
0x02
Figure 23 Structure of Command Packet
2
C devices (1 byte in binary format)
R0K5R8C3MDU30BR Instruction Manual
RegAdr
Len(Lower)
0x03
0x64
2
C devices (1bytes in binary format)
2
C device.
A
Len(Upper)
C
0x00
K
Page 23 of 38

Advertisement

Table of Contents
loading

Table of Contents