Sample Rate Generator Registers (Srgr1 And Srgr2); Frame Length Formula For Transmit Control 2 Register (Xcr2) - Texas Instruments Concerto F28M35 Series Technical Reference Manual

Table of Contents

Advertisement

www.ti.com
Table 15-80. Transmit Control 2 Register (XCR2) Field Descriptions (continued)
Bit
Field
Value
2
XFIG
0
1
1-0
XDATDLY
0-3h
0
1h
2h
3h
Table 15-81. Frame Length Formula for Transmit Control 2 Register (XCR2)
XPHASE
0 ≤ XFRLEN1 ≤ 127
0
1
0 ≤ XFRLEN1 ≤ 127

15.12.7 Sample Rate Generator Registers (SRGR1 and SRGR2)

Each McBSP has two sample rate generator registers, SRGR1
The sample rate generator can generate a clock signal (CLKG) and a frame-synchronization signal (FSG).
The registers, SRGR1 and SRGR2, enable you to:
Select the input clock source for the sample rate generator (CLKSM, in conjunction with the SCLKME
bit of PCR)
Divide down the frequency of CLKG (CLKGDV)
Select whether internally-generated transmit frame-synchronization pulses are driven by FSG or by
activity in the transmitter (FSGM).
Specify the width of frame-synchronization pulses on FSG (FWID) and specify the period between
those pulses (FPER)
When an external source (via the MCLKR or MCLKX pin) provides the input clock source for the sample
rate generator:
If the CLKX/MCLKR pin is used, the polarity of the input clock is selected with CLKXP/CLKRP of PCR.
The GSYNC bit of SRGR2 allows you to make CLKG synchronized to an external frame-
synchronization signal on the FSR pin, so that CLKG is kept in phase with the input clock.
15.12.7.1 Sample Rate Generator 1 Register (SRGR1)
The sample rate generator 1 register is shown in
SPRUH22I – April 2012 – Revised November 2019
Submit Documentation Feedback
Description
Transmit frame-synchronization ignore bit. If a frame-synchronization pulse starts the transfer of a new
frame before the current frame is fully transmitted, this pulse is treated as an unexpected frame-
synchronization pulse. For more details about the frame-synchronization error condition, see
Section
15.5.5.
Setting XFIG causes the serial port to ignore unexpected frame-synchronization pulses during
transmission. For more details on the effects of XFIG, see
Frame-synchronization detect. An unexpected FSX pulse causes the transmitter to discard the content
of XSR[1,2]. The transmitter:
1. Aborts the present transmission
2. Sets XSYNCERR in SPCR2
3. Begins a new transmission from DXR[1,2]. If new data was written to DXR[1,2] since the last
DXR[1,2]-to-XSR[1,2] copy, the current value in XSR[1,2] is lost. Otherwise, the same data is
transmitted.
Frame-synchronization ignore. An unexpected FSX pulse is ignored. Transmission continues
uninterrupted.
Transmit data delay bits. XDATDLY specifies a data delay of 0, 1, or 2 transmit clock cycles after frame
synchronization and before the transmission of the first bit of the frame. For more details, see
Section
15.9.12.
0-bit data delay
1-bit data delay
2-bit data delay
Reserved (do not use)
XFRLEN1
XFRLEN2
Not used
0 ≤ XFRLEN2 ≤ 127
Copyright © 2012–2019, Texas Instruments Incorporated
Section
Frame Length
(XFRLEN1 + 1) words
(XFRLEN1 + 1) + (XFRLEN2 + 1) words
(Table
15-82) and SRGR2
Figure 15-73
and described in
C28 Multichannel Buffered Serial Port (McBSP)
McBSP Registers
15.9.10.
(Table
15-83).
Table
15-82.
1131

Advertisement

Table of Contents
loading

Table of Contents