Renesas rl78 User Manual

Page of 1004
 
RL78/G1A 
 
CHAPTER  12   SERIAL  ARRAY  UNIT 
R01UH0305EJ0200  Rev.2.00 
 
 
550  
Jul 04, 2013 
(2) Operation procedure 
 
Figure 12-104.  Initial Setting Procedure for Address Field Transmission 
 
 
Notes 1. 
25 to 48-pin products 
 2. 
64-pin products 
 
Remark  m: Unit number (m = 0, 1), n: Channel number (n = 0 to 3), mn = 00 to 03, 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 
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 (f
MCK
)).
Set the initial output level (1) of the serial 
data (SOmn) and serial clock (CKOmn). 
 
Enable data output, clock output, and N-ch open-
drain output (V
DD
 tolerance
Note 1
/EV
DD
 tolerance
Note 2
mode of the target channel by setting the port 
register, port mode register, and port output mode 
register.
Starting communication