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-73. Initial Setting Procedure for Address Field Transmission<br />

Starting initial setting<br />

Setting PER01 and PER1<br />

registers<br />

Setting SPSm register<br />

Setting SMRmn register<br />

Setting SCRmn register<br />

Setting SDRmn register<br />

Setting SOm register<br />

Setting port<br />

Setting SOm register<br />

Wait<br />

Setting SOm register<br />

Changing setting of SOEm register<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 CKO0mn bits<br />

and set an initial output level.<br />

Enable data output, clock output, and the N-ch<br />

open-drain output (VDD tolerance) mode of the<br />

target channel by setting a port register, a port<br />

mode register, and a port output mode register.<br />

Clear the SOmn bit to 0 to generate the<br />

start condition.<br />

Secure a wait time so that the specifications of<br />

I 2 C on the slave side are satisfied.<br />

Clear the CKOmn bit to 0 to lower the<br />

clock output level.<br />

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

output of the target channel.<br />

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

1 to set SEmn = 1.<br />

Set address and R/W to the SDRmn<br />

register and start communication.<br />

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

have elapsed.<br />

Remark m: Unit number (m = 1), n: Channel number (n = 1), r: IIC number (r = 11)<br />

R01UH0317EJ0004 Rev. 0.04 653<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!