RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
448
Nov 29, 2019
Figure 11-111. Procedure for Resuming UART Reception
Starting setting for resumption
Changing setting of the SPSm register
Changing setting of the SDRmn register
Changing setting of the SMRmn
and SMRmr registers
Changing setting of the SCRmn register
Writing to the SSm register
Re-set the register to change the operation clock
setting.
Re-set the register to change the transfer baud
rate setting (setting the transfer clock by dividing
the operation clock (f
MCK
)).
Re-set the registers to change serial mode
registers mn, mr (SMRmn, SMRmr) setting.
Re-set the register to change serial communication
operation setting register mn (SCRmn) setting.
Set the SSmn bit of the target channel to 1 and set
the Semn bit to 1 (to enable operation).
Become wait for start bit detection.
(Selective)
(Selective)
(Selective)
(Selective)
(Essential)
Completing resumption
setting
Clearing error flag
If the FEF, PEF, and OVF flags remain
set, clear them using serial flag clear trigger
register mn (SIRmn).
(Selective)
Setting port
Enable data input of the target channel by setting a
port register and a port mode register.
(Essential)
Completing communication
target preparations?
No
Stop the target for communication or wait until
completes its communication operation.
Yes
(Essential)
Caution After is set RXEmn bit to 1 of SCRmn register, set the SSmn = 1 from an interval of at least
four clocks of f
MCK
.
Remark
If PER0 is rewritten while stopping the master transmission and the clock supply is stopped, wait
until the transmission target (slave) stops or transmission finishes, and then perform initialization
instead of restarting the transmission.