04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 12 SERIAL ARRAY UNIT<br />

Figure 12-42. Example of Contents of Registers for Master Transmission/Reception of 3-Wire Serial I/O<br />

(CSI00, CSI01, CSI10) (2/2)<br />

(ii) During operation (SEmn = 1) (lower 8 bits: SDRpL)<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

SDRmn<br />

Transmit data setting/receive data register<br />

Remark m: Unit number (m = 0, 1), n: Channel number (n = 0, 1), p: CSI number (p = 00, 01, 10)<br />

: Setting is fixed in the CSI master transmission mode, : Setting disabled (set to the initial value)<br />

0/1: Set to 0 or 1 depending on the usage of the user<br />

(2) Operation procedure<br />

Figure 12-43. Initial Setting Procedure for Master Transmission/Reception<br />

Starting initial setting<br />

Setting PER0 register<br />

Setting SPSm register<br />

Setting SMRmn register<br />

Setting SCRmn register<br />

Setting SDRmn register<br />

Setting SOm register<br />

Changing setting of SOEm register<br />

Setting port<br />

Writing to SSm register<br />

Starting communication<br />

Release the serial array unit from the<br />

reset status and start clock supply.<br />

Set the operation clock.<br />

Set an operation mode, etc.<br />

Set a communication format.<br />

Set a transfer baud rate.<br />

SDRpL<br />

Manipulate the SOmn and CKOmn bits<br />

and set an initial output level.<br />

Set the SOEmn bit to 1 and enable data<br />

output of the target channel.<br />

Enable data output and clock output of<br />

the target channel by setting a port<br />

register and a port mode register.<br />

Set the SSmn bit of the target channel to<br />

1 to set SEmn = 1.<br />

Set transmit data to the SDRmn register<br />

and start communication.<br />

Caution After setting the PER0 register to 1, be sure to set the SPSm register after 4 or more clocks have<br />

elapsed.<br />

R01UH0317EJ0004 Rev. 0.04 612<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!