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 />

(2) Operation procedure<br />

Figure 12-27. Initial Setting Procedure for Master Transmission<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 />

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 />

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

R01UH0317EJ0004 Rev. 0.04 594<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!