Overrun In The Mcbsp Receiver - Texas Instruments Concerto F28M35 Series Technical Reference Manual

Table of Contents

Advertisement

www.ti.com
1. DRR1 has not been read since the last RBR-to-DRR copy (RRDY = 1).
2. RBR1 is full and an RBR-to-DRR copy has not occurred.
3. RSR1 is full and an RSR1-to-RBR copy has not occurred.
As described in the
RSR1 (for word length of 16 bits or smaller) or RSR2 and RSR1 (for word length larger than 16 bits).
Once a complete word is shifted into the RSR(s), an RSR-to-RBR copy can occur only if the previous data
in RBR1 has been copied to DRR1. The RRDY bit is set when new data arrives in DRR1 and is cleared
when that data is read from DRR1. Until RRDY = 0, the next RBR-to-DRR copy does not take place, and
the data is held in the RSR(s). New data arriving on the DR pin is shifted into RSR(s), and the previous
content of the RSR(s) is lost.
You can prevent the loss of data if DRR1 is read no later than 2.5 cycles before the end of the third word
is shifted into the RSR1.
NOTE: If both DRRs are needed (word length larger than 16 bits), the CPU or the DMA controller
must read from DRR2 first and then from DRR1. As soon as DRR1 is read, the next RBR-to-
DRR copy is initiated. If DRR2 is not read first, the data in DRR2 is lost.
After the receiver starts running from reset, a minimum of three words must be received before RFULL is
set. Either of the following events clears the RFULL bit and allows subsequent transfers to be read
properly:
The CPU or DMA controller reads DRR1.
The receiver is reset individually (RRST = 0) or as part of a device reset.
Another frame-synchronization pulse is required to restart the receiver.
15.5.2.1 Example of Overrun Condition
Figure 15-21
shows the receive overrun condition. Because serial word A is not read from DRR1 before
serial word B arrives in RBR1, B is not transferred to DRR1 yet. Another new word ©) arrives and RSR1 is
full with this data. DRR1 is finally read, but not earlier than 2.5 cycles before the end of word C. Therefore,
new data (D) overwrites word C in RSR1. If DRR1 is not read in time, the next word can overwrite D.
CLKR
FSR
A1
A0
DR
RRDY
RFULL
15.5.2.2 Example of Preventing Overrun Condition
Figure 15-22
shows the case where RFULL is set, but the overrun condition is prevented by a read from
DRR1 at least 2.5 cycles before the next serial word ©) is completely shifted into RSR1. This ensures that
an RBR1-to-DRR1 copy of word B occurs before receiver attempts to transfer word C from RSR1 to
RBR1.
SPRUH22I – April 2012 – Revised November 2019
Submit Documentation Feedback
Section
15.3.5, McBSP Reception, data arriving on DR is continuously shifted into
Figure 15-21. Overrun in the McBSP Receiver
B7
B6
B5
B4
B3
B2
RBR1 to DRR1 copy(A)
No read from DRR1(A)
Copyright © 2012–2019, Texas Instruments Incorporated
B1
B0
C7
C6
C5
C4
No RSR1 to RBR1 copy(C)
No RBR1 to DRR1 copy(B)
C28 Multichannel Buffered Serial Port (McBSP)
McBSP Exception/Error Conditions
C3
C2
C1
C0
D7
No read from DRR1(A)
1057

Advertisement

Table of Contents
loading

Table of Contents