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-51. Initial Setting Procedure for Slave 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 bits 15 to 9 to any value for setting<br />

the baud rate.<br />

Manipulate the SOmn bit and set an<br />

initial output level.<br />

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

output of the target channel.<br />

Enable data output of the target channel<br />

by setting a port register and a port mode<br />

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 wait for a clock from the master.<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 622<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!