English
Language : 

MC68HC711D3_05 Datasheet, PDF (69/138 Pages) Freescale Semiconductor, Inc – Microcontrollers
SCI Error Detection
6.6 SCI Error Detection
Three error conditions can occur during generation of SCI system interrupts:
• Serial communications data register (SCDR) overrun
• Received bit noise
• Framing
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.
6.7 SCI Registers
This subsection describes the five addressable registers in the SCI.
6.7.1 SCI Data Register
The SCI data register (SCDR) is a parallel register that performs two functions. It is the receive data
register when it is read, and the transmit data register when it is written. Reads access the receive data
buffer and writes access the transmit data buffer. Receive and transmit are double buffered.
Address:
Read:
Write:
Reset:
$002F
Bit 7
R7/T7
6
5
4
3
2
R6/T6 R5/T5 R4/T4 R3/T3 R2/T2
Unaffected by reset
Figure 6-3. SCI Data Register (SCDR)
1
R1/T1
Bit 0
R0/T0
MC68HC711D3 Data Sheet, Rev. 2.1
Freescale Semiconductor
69