Renesas RL78/G1P Hardware User Manual page 470

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
11.7.3 SNOOZE mode function
SNOOZE mode makes UART operate reception by RxDq pin input detection while the STOP mode. Normally UART
stops communication in the STOP mode. But, using the SNOOZE mode makes reception UART operate unless the CPU
operation by detecting RxDq pin input.
When using UARTq in the SNOOZE mode, make the following settings before entering the STOP mode. See Figure
11-116 Flowchart of SNOOZE Mode Operation (Normal Operation/Abnormal Operation <1>) and Figure 11-118
Flowchart of SNOOZE Mode Operation (Abnormal Operation <2>).
 In the SNOOZE mode, the baud rate setting for UART reception needs to be changed to a value different from that in
normal operation. Set the SPSm register and bits 15 to 9 of the SDRmn register with reference to Table 11-4.
 Set the EOCmn and SSECmn bits. This is for enabling or stopping generation of an error interrupt (INTSRE0) when
a communication error occurs.
 When using the SNOOZE mode function, set the SWCm bit of serial standby control register m (SSCm) to 1 just
before switching to the STOP mode. After the initial setting has completed, set the SSm1 bit of serial channel start
register m (SSm) to 1.
 A UARTq starts reception in SNOOZE mode on detecting input of the start bit on the RxDq pin following a transition
of the CPU to the STOP mode.
Cautions 1. The SNOOZE mode can only be used when the high-speed on-chip oscillator clock (f
for f
.
CLK
2. The transfer rate in the SNOOZE mode is only 4800 bps.
3. When SWCm = 1, UARTq can be used only when the reception operation is started in the STOP
mode.
reception operation is started in a state other than the STOP mode, such as those given below,
data may not be received correctly and a framing error or parity error may be generated.
 When after the SWCm bit has been set to 1, the reception operation is started before the STOP
mode is entered
 When the reception operation is started while another function is in the SNOOZE mode
 When after returning from the STOP mode to normal operation due to an interrupt or other
cause, the reception operation is started before the SWCm bit is returned to 0
4. If a parity error, framing error, or overrun error occurs while the SSECm bit is set to 1, the PEFmn,
FEFmn, or OVFmn flag is not set and an error interrupt (INTSREq) is not generated. Therefore,
when the setting of SSECm = 1 is made, clear the PEFmn, FEFmn, or OVFmn flag before setting
the SWC0 bit to 1 and read the value in bits 7 to 0 (RxDq register) of the SDRm1 register.
5. The CPU shifts from the STOP mode to the SNOOZE mode on detecting the valid edge of the RxDq
signal. Note, however, that transfer through the UART channel may not start and the CPU may
remain in the SNOOZE mode if an input pulse on the RxDq pin is too short to be detected as a
start bit. In such cases, data may not be received correctly, and this may lead to a framing error or
parity error in the next UART transfer.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
When used simultaneously with another SNOOZE mode function or interrupt, if the
CHAPTER 11 SERIAL ARRAY UNIT
) is selected
IH
451

Advertisement

Table of Contents
loading

Table of Contents