
Serial Communications Interface (SCI)
SCI Error Detection
MC68HC11E Family
—
Rev. 4
Technical Data
MOTOROLA
Serial Communications Interface (SCI)
151
there is a loss of efficiency because of the extra bit time for each
character (address bit) required for all characters.
7.7 SCI Error Detection
Three error conditions
–
SCDR overrun, received bit noise, and
framing
–
can occur during generation of SCI system interrupts. Three
bits (OR, NF, and FE) in the serial communications status register
(SCSR) indicate if one of these error conditions exists.
The overrun error (OR) bit is set when the next byte is ready to be
transferred from the receive shift register to the SCDR and the SCDR is
already full (RDRF bit is set). When an overrun error occurs, the data
that caused the overrun is lost and the data that was already in SCDR is
not disturbed. The OR is cleared when the SCSR is read (with OR set),
followed by a read of the SCDR.
The noise flag (NF) bit is set if there is noise on any of the received bits,
including the start and stop bits. The NF bit is not set until the RDRF flag
is set. The NF bit is cleared when the SCSR is read (with FE equal to 1)
followed by a read of the SCDR.
When no stop bit is detected in the received data character, the framing
error (FE) bit is set. FE is set at the same time as the RDRF. If the byte
received causes both framing and overrun errors, the processor only
recognizes the overrun error. The framing error flag inhibits further
transfer of data into the SCDR until it is cleared. The FE bit is cleared
when the SCSR is read (with FE equal to 1) followed by a read of the
SCDR.