Status Flag; Parity Error; Framing Error; Overrun Error - Toshiba TLCS-870/C Series Manual

8 bit microcontroller
Hide thumbs Also See for TLCS-870/C Series:
Table of Contents

Advertisement

11.9 Status Flag

11.9.1 Parity Error

When parity determined using the receive data bits differs from the received parity bit, the parity error flag
UARTSR<PERR> is set to "1". The UARTSR<PERR> is cleared to "0" when the RDBUF is read after read-
ing the UARTSR.
RXD pin
Shift register
UARTSR<PERR>
INTRXD interrupt

11.9.2 Framing Error

When "0" is sampled as the stop bit in the receive data, framing error flag UARTSR<FERR> is set to "1".
The UARTSR<FERR> is cleared to "0" when the RDBUF is read after reading the UARTSR.
RXD pin
Shift register
UARTSR<FERR>
INTRXD interrupt

11.9.3 Overrun Error

When all bits in the next data are received while unread data are still in RDBUF, overrun error flag
UARTSR<OERR> is set to "1". In this case, the receive data is discarded; data in RDBUF are not affected.
The UARTSR<OERR> is cleared to "0" when the RDBUF is read after reading the UARTSR.
Parity
xxxx0 **
Figure 11-5 Generation of Parity Error
Final bit
xxx0 **
Figure 11-6 Generation of Framing Error
Page 127
Stop
pxxxx0
1pxxxx0
*
After reading UARTSR then
RDBUF clears PERR.
Stop
xxxx0
0xxxx0
*
After reading UARTSR then
RDBUF clears FERR.
TMP86PM29BUG

Advertisement

Table of Contents
loading

Table of Contents