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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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-58. Initial Setting Procedure for Slave Reception<br />

Starting initial settings<br />

Setting PER0 register<br />

Setting SPSm register<br />

Setting SMRmn register<br />

Setting SCRmn register<br />

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

Enable data input and clock input of the<br />

target channel by setting a port register<br />

and a port mode register.<br />

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

1 to set SEmn = 1.<br />

Wait for a clock from the master.<br />

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

have elapsed.<br />

Figure 12-59. Procedure for Stopping Slave Reception<br />

Starting setting to stop<br />

Setting STm register<br />

Stopping communication<br />

Write 1 to the STmn bit of the target<br />

channel.<br />

Stop communication in midway.<br />

R01UH0317EJ0004 Rev. 0.04 632<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!