show how transmission occurs in the McBSP.
path for the data.
is a timing diagram showing signal activity for one possible transmission
scenario. A description of the process follows the figures.
ÁÁÁÁ
ÁÁÁÁ
ÁÁÁÁ
DX
XSR[1,2]
ÁÁÁÁ
ÁÁÁÁ
ÁÁÁÁ
DXR[1,2]
From CPU or
DMA controller
Compress
do not modify
or
A.
XSR[1,2]: Transmit shift registers 1 and 2
B.
DXR[1,2]: Data transmit registers 1 and 2
Figure 15-15. McBSP Transmission Physical Data Path
Write to DXR1
DXR1 to XSR1 copy(C)
Write to DXR1(C)
DXR1 to XSR1 copy(B)
XRDY
DX
FSX
CLKX
C5
C6
C7
B0
B1
B2
B3
B4
B5
B6
B7
A0
A1
Á
Á
Á
Á
Á
Á
Á
Á
ÁÁ
ÁÁ
ÁÁ
ÁÁ
Á
Á
Á
Á
A.
CLKX: Internal transmit clock
B.
FSX: Internal transmit frame-synchronization signal
C.
DX: Data on DX pin
D.
XRDY: Status of transmitter ready bit (high is 1)
Figure 15-16. McBSP Transmission Signal Activity
1. The CPU or the DMA controller writes data to the data transmit register(s). When DXR1 is loaded, the
transmitter ready bit (XRDY) is cleared in SPCR2 to indicate that the transmitter is not ready for new data.
If the word length is 16 bits or smaller, only DXR1 is used. If the word length is larger than 16 bits, DXR2
and DXR1 are used and DXR2 contains the most significant bits. For details on choosing a word length, see
Note
If both DXRs are needed (word length larger than 16 bits), the CPU or the DMA controller must
load DXR2 first and then load DXR1. As soon as DXR1 is loaded, the contents of both DXRs are
copied to the transmit shift registers (XSRs), as described in the next step. If DXR2 is not loaded
first, the previous content of DXR2 is passed to the XSR2.
2. When new data arrives in DXR1, the McBSP copies the content of the data transmit register(s) to the
transmit shift register(s). In addition, the transmit ready bit (XRDY) is set. This indicates that the transmitter
is ready to accept new data from the CPU or the DMA controller.
If the word length is 16 bits or smaller, only XSR1 is used. If the word length is larger than 16 bits, XSR2 and
XSR1 are used and XSR2 contains the most significant bits.
If companding is used during the transfer (XCOMPAND = 10b or 11b in XCR2), the McBSP compresses
the 16-bit data in DXR1 to 8-bit data in the μ-law or A-law format in XSR1. If companding is disabled, the
McBSP passes data from the DXR(s) to the XSR(s) without modification.
3. The McBSP waits for a transmit frame-synchronization pulse on internal FSX.
4. When the pulse arrives, the McBSP inserts the appropriate data delay that is selected with the XDATDLY
bits of XCR2.
In the preceding timing diagram (
), a 1-bit data delay is selected.
5. The McBSP shifts data bits from the transmit shift register(s) to the DX pin.
When activity is not properly timed, errors can occur. See the following topics for more details:
•
Overwrite in the Transmitter
)
•
Underflow in the Transmitter
(
)
Multichannel Buffered Serial Port (McBSP)
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
TMS320x2806x Microcontrollers
889
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......