User`s manual
Applilet EZ for HCD Controller
APPENDIX B SERIAL COMMAND MODE COMMUNICATION COMMANDS
R20UT0435EJ1200 Rev. 12.00 45
Jul 31, 2014
B.1.3 Binary type execution example (EV-K0-HCD)
1. Target device status acquisition
Transmission from the host device
Hexadecimal: 00 00 C0 00
Binary: 0000 0000 0000 0000 1100 0000 0000 0000
Reception from the target device (Enable status)
Hexadecimal: 00
Binary: 0000 0000
2. Setting the duty of channel 1 of the target device to 10
Transmission from the host device
Hexadecimal: 00 00 20 0A
Binary: 0000 0000 0000 0000 0010 0000 0000 1010
Reception from the target device
None
3. Acquiring the duty value of channel 3 of the target device
Transmission from the host device
Hexadecimal: 00 00 A3 00
Binary: 0000 0000 0000 0000 1010 0011 0000 0000
Reception from the target device (duty value = 255)
Hexadecimal: FF
Binary: 1111 1111
4. Setting the status of the target device to Shutdown
Transmission from the host device
Hexadecimal: 00 00 40 80
Binary: 0000 0000 0000 0000 0100 0000 1000 0000
B.2 Overview of ASCII Type
Basic format 3 (host target)
1 byte 1 byte 1 byte 1 byte 1 byte2 bytes 3 bytes
ch cmdComma (0x2C) Comma (0x2C) data LineFeed (0x0D) CarriageReturn (0x0A)
Basic format 4 (target host)
1 byte 1 byte3 bytes
LineFeed (0x0D) CarriageReturn (0x0A)
data
The ASCII-type communication format uses ASCII characters for transmission and reception, and can be selected only
if UART6 or UART0 has been selected as the communication method. Similarly with the binary type, there are two
communication formats of the ASCII type. Basic format 3 is used to transmit data from a host device to a target device,
consists of a ch block, a cmd block, and a data block, and is delimited by commas. Basic format 4 is used to transmit data
from a target device to a host device and consists of only a data block. Furthermore, LineFeed (0x0D) and
CarriageReturn (0x0A) are added to each format.