User`s manual
Applilet EZ for HCD Controller
APPENDIX B SERIAL COMMAND MODE COMMUNICATION COMMANDS
R20UT0435EJ1200 Rev. 12.00 48
Jul 31, 2014
B.3 Transmission/Reception Timing According to Communication Method
The method and timing of transmission and reception differ according to the communication method. The differences
of each communication method are as follows.
<UARTx (ASCII/BINARY)>
In communication using a UART, transmission and reception are performed completely asynchronously. A
transmission operation of the target device uses basic format 1 or 3, and occurs only when the host device has requested
information acquisition (during reception) to the target device.
UART communication example
Calibration data
D6 D7
Host device transmission
100 [ms]
00H
STbit D0
SPbit
Basic format 1 or 3
Note 2
D6 D7
STbit D0
SPbit
Basic format 2 or 4
Note 2
Target device transmission
Calibration
Notes 3, 4
Host transmission pin (TxD
Note 1
)
Target reception
Host reception pin (RxD
Note 1
)
Target transmission
Calibration data
D6 D7
Host device transmission
100 [ms]
00H
STbit D0
SPbit
Basic format 1 or 3
Note 2
D6 D7
STbit D0
SPbit
Basic format 2 or 4
Note 2
Target device transmission
Calibration
Notes 3, 4
Host transmission pin (TxD
Note 1
)
Target reception
Host reception pin (RxD
Note 1
)
Target transmission
Notes 1. Name of the signal line on the host side
2. This is a waveform of when parity has been set to “None”.
3. Calibration will be required when using the internal high-speed oscillation for the EV-K0-HCD board.
Transmit 00H data after 100 [ms] have elapsed since having started the target device.
4. To perform calibration with UART0, short the RxD0 and P00/TI000 pins.
<SPI/CSI>
During transmission and reception with the SPI or CSI, the host device is the master device. For information
acquisition (during reception) of the target device, dummy data is transmitted.
SPI communication example
D7 D6 D5
Basic format 1 (4 bytes)
Un-
defined
D7 D6 D5 D4 D3 D2 D1 D0
Dummy data (1 byte)
Note 4
Basic format 2 (1 byte)
D7 D6 D5 D4 D3 D2 D1 D0
Host device transmission
Target device transmission
Note 5
D2 D1 D0D3
Maximum 52 [clocks]
Host transmission pin (SI10
Note 3
)
Target reception
Host reception pin (SO10
Note 3
)
Target transmission
Host clock pin
(SCK10
Note 3
)
Slave select pin
(SS
Notes 1, 2
)
Un-
defined
Un-
defined
Un-
defined
Un-
defined
Un-
defined
Un-
defined
D7 D6 D5
Basic format 1 (4 bytes)
Un-
defined
D7 D6 D5 D4 D3 D2 D1 D0
Dummy data (1 byte)
Note 4
Basic format 2 (1 byte)
D7 D6 D5 D4 D3 D2 D1 D0
Host device transmission
Target device transmission
Note 5
D2 D1 D0D3
Maximum 52 [clocks]
Host transmission pin (SI10
Note 3
)
Target reception
Host reception pin (SO10
Note 3
)
Target transmission
Host clock pin
(SCK10
Note 3
)
Slave select pin
(SS
Notes 1, 2
)
Un-
defined
Un-
defined
Un-
defined
Un-
defined
Un-
defined
Un-
defined
Notes 1. Select whether to use an SS pin and which pin to use for the SS pin in [CSI Property] dialog box. Because,
for the EV-K0-HCD board, the SS pin is controlled using software, up to 52 cycles of the target system CPU
clock are required for the signal status of the SS pin to be recognized and transfer to be enabled.
2. This waveform is an example of when the SS pin is set to LowActive.
3. Name of the signal line on the host side
4. To acquire information by using basic format 2, transmit dummy data of one byte from the host device.
5. In target device transmission, only information acquisition (during reception) occurs for transmission from
the host device.