RL78/F13, F14 CHAPTER 15 SERIAL ARRAY UNIT
R01UH0368EJ0210 Rev.2.10 997
Dec 10, 2015
(2) Operation procedure
Figure 15-144. Initial Setting Procedure for Address Field Transmission
Remark m: Unit number (m = 0, 1), n: Channel number (n = 0, 1), mn = 00, 01, 10, 11
Starting initial setting
Setting the PER0 register
Setting the SPSm register
Setting the SMRmn register
Setting the SCRmn register
Setting the SDRmn register
Setting the SOm register
Setting port
Setting the SOm register
Starting communication
Release the serial array unit from the
reset status and start clock supply.
Set the operation clock.
Set an operation mode, etc.
Set a communication format.
Set a transfer baud rate (setting the
transfer clock by dividing the operation
clock
fMCK
.
Set the initial output level of the serial data
(SOmn) and serial clock (CKOmn).
Enable data output, clock output, and N-ch
open-drain output (EV
DD0 tolerance) mode of the
target channel by setting the port register, port
mode register, and port output mode register.
Clear the SOmn bit to 0 to generate the
start condition.
Set address and R/W to the SDRmn
register and start communication.
Writing to the SSm register
Set the SSmn bit of the target channel to 1 and set
the SEmn bit to 1 (to enable operation).
Setting the SOm register
Clear the CKOmn bit to 0 to lower the
clock output level.
Changing setting of the SOEm
register
Set the SOEmn bit to 1 and enable data
out
ut of the tar
et channel.
Secure a wait time so that the specifications of
I
2
C on the slave side are satisfied.
Wait