User`s manual
Applilet EZ for HCD Controller
APPENDIX B SERIAL COMMAND MODE COMMUNICATION COMMANDS
R20UT0435EJ1200 Rev. 12.00 46
Jul 31, 2014
B.2.1 Details of basic format 3 (host target)
ch block
1 [byte] data. It specifies the channel to be controlled
Note 1
.
Specifiable values: “1”, “2”, “3”, “4”
cmd block
2 [byte] data. It can be used to specify for the duty and status of each channel of the target device, status acquisition
(during reception) or setting (during transmission). The following four items can be specified.
Specifiable items: “wd” Set Duty
Note 2
···········This sets the duty of the channel specified with the “ch” block.
“rd” Read Duty
Note 2
········This requests the setting of duty of the channel specified with the “ch”
block.
“ws” Set Status
Notes 2, 3
·····This sets the status of the target device
Note 1
.
“rs” Read Status
Notes 2, 3
··This requests the status of the target device
Note 1
.
When requesting to the target device has been specified, the target device returns the current status. Refer to B.2.2
for details.
Notes 1. When “status” has been selected for an item of the cmd block, specification of the ch block has no
meaning, but it cannot be omitted. Specify fixing to “1”.
2. All items of the cmd block must be expressed by using lowercase characters. Uppercase characters
cannot be specified.
3. Do not use the status command for EZ-0005, which does not use a constant-current driver IC, because no
status acquisition or status specification command is provided in EZ-0005.
data block
3 [byte] data. It has the following meanings according to the items specified with the cmd block.
cmd = “wd”
Note 1
: This specifies as 3 digits in decimal format the value of the duty to be set. (“000” to “255”)
cmd = “ws”: This specifies as 3 digits in decimal format the value of the status to be set. Two values can be
specified.
“128”: Shutdown status (sets the EN pin to low level)
“000”: Enable status (sets the EN pin to high level)
cmd = “rd” and “rs”
Note 1
: This specifies “000” with a duty or status request to the target device
Note 2
.
Notes 1. Do not use the status command for EZ-0005, which does not use a constant-current driver IC, because no
status acquisition or status specification command is provided in EZ-0005.
2. When cmd is “rd” and “rs”, the data block has no meaning, but it cannot be omitted.