DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST72P623 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ST72P623 Datasheet PDF : 139 Pages
First Prev 71 72 73 74 75 76 77 78 79 80 Next Last
ST7262xxx
SERIAL COMMUNICATIONS INTERFACE (Cont’d)
10.5.4.3 Receiver
RDR register as long as the RDRF bit is not
The SCI can receive data words of either 8 or 9 cleared.
bits. When the M bit is set, word length is 9 bits When an overrun error occurs:
and the MSB is stored in the R8 bit in the SCICR1
register.
Character reception
During a SCI reception, data shifts in least signifi-
cant bit first through the RDI pin. In this mode, the
SCIDR register consists or a buffer (RDR) be-
– The OR bit is set.
– The RDR content is not lost.
– The shift register is overwritten.
– An interrupt is generated if the RIE bit is set and
the I bit is cleared in the CC register.
tween the internal bus and the received shift regis-
ter (see Figure 46).
) Procedure
t(s – Select the M bit to define the word length.
c – Select the desired baud rate using the SCIBRR
u and the SCIERPR registers.
rod – Set the RE bit, this enables the receiver which
begins searching for a start bit.
P When a character is received:
te – The RDRF bit is set. It indicates that the content
le of the shift register is transferred to the RDR.
so – An interrupt is generated if the RIE bit is set and
b the I bit is cleared in the CC register.
O – The error flags can be set if a frame error, noise
- or an overrun error has been detected during re-
) ception.
t(s Clearing the RDRF bit is performed by the following
c software sequence done by:
u 1. An access to the SCISR register
rod 2. A read to the SCIDR register.
The RDRF bit must be cleared before the end of the
P reception of the next character to avoid an overrun
te error.
le Break Character
o When a break character is received, the SCI han-
s dles it as a framing error.
Ob Idle Character
The OR bit is reset by an access to the SCISR reg-
ister followed by a SCIDR register read operation.
Noise Error
Oversampling techniques are used for data recov-
ery by discriminating between valid incoming data
and noise. Normal data bits are considered valid if
three consecutive samples (8th, 9th, 10th) have
the same bit value, otherwise the NF flag is set. In
the case of start bit detection, the NF flag is set on
the basis of an algorithm combining both valid
edge detection and three samples (8th, 9th, 10th).
Therefore, to prevent the NF flag getting set during
start bit reception, there should be a valid edge de-
tection as well as three valid samples.
When noise is detected in a frame:
– The NF flag is set at the rising edge of the RDRF
bit.
– Data is transferred from the Shift register to the
SCIDR register.
– No interrupt is generated. However this bit rises
at the same time as the RDRF bit which itself
generates an interrupt.
The NF flag is reset by a SCISR register read op-
eration followed by a SCIDR register read opera-
tion.
During reception, if a false start bit is detected (e.g.
8th, 9th, 10th samples are 011,101,110), the
frame is discarded and the receiving sequence is
not started for this frame. There is no RDRF bit set
for this frame and the NF flag is set internally (not
When a idle frame is detected, there is the same accessible to the user). This NF flag is accessible
procedure as a data received character plus an in- along with the RDRF bit when a next valid frame is
terrupt if the ILIE bit is set and the I bit is cleared in received.
the CC register.
Note: If the application Start Bit is not long enough
Overrun Error
to match the above requirements, then the NF
An overrun error occurs when a character is re- Flag may get set due to the short Start Bit. In this
ceived when RDRF has not been reset. Data can
not be transferred from the shift register to the
case, the NF flag may be ignored by the applica-
tion software when the first valid byte is received.
See also Section 10.5.4.10.
Doc ID 6996 Rev 5
71/139

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]