Renesas RL78 Series User Manual page 518

16-bit single-chip microcontrollers
Hide thumbs Also See for RL78 Series:
Table of Contents

Advertisement

RL78/G1D
13.6.5 Procedure for processing errors that occurred during UART (UART0 and UART1) communication
The procedure for processing errors that occurred during UART (UART0 and UART1) communication is described in
Figures 13-94 and 13-95.
Figure 13-95. Processing Procedure in Case of Parity Error or Overrun Error
Software Manipulation
Reads serial data register mn
(SDRmn).
Reads serial status register mn
(SSRmn).
Writes 1 to serial flag clear trigger
register mn (SIRmn).
Software Manipulation
Reads serial data register mn
(SDRmn).
Reads serial status register mn
(SSRmn).
Writes serial flag clear trigger register mn
(SIRmn).
Sets the STmn bit of serial channel stop
register m (STm) to 1.
Synchronization with other party of
communication
Sets the SSmn bit of serial channel start
register m (SSm) to 1.
Remark
m: Unit number (m = 0), n: Channel number (n = 0 to 3), mn = 00 to 03
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
Hardware Status
The BFFmn bit of the SSRmn register
is set to 0 and channel n is enabled to
receive data.
Error flag is cleared.
Figure 13-96. Processing Procedure in Case of Framing Error
Hardware Status
The BFFmn bit of the SSRmn register
is set to 0 and channel n is enabled to
receive data.
Error flag is cleared.
The SEmn bit of serial channel enable
status register m (SEm) is set to 0 and
channel n stops operating.
The SEmn bit of serial channel enable
status register m (SEm) is set to 1 and
channel n is enabled to operate.
CHAPTER 13 SERIAL ARRAY UNIT
Remark
This is to prevent an overrun error if the
next reception is completed during error
processing.
Error type is identified and the read
value is used to clear error flag.
Error can be cleared only during
reading, by writing the value read from
the SSRmn register to the SIRmn
register without modification.
Remark
This is to prevent an overrun error if the
next reception is completed during error
processing.
Error type is identified and the read
value is used to clear error flag.
Error can be cleared only during
reading, by writing the value read from
the SSRmn register to the SIRmn
register without modification.
Synchronization with the other party of
communication is re-established and
communication is resumed because it is
considered that a framing error has
occurred because the start bit has been
shifted.
497

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents