Internal
CLKR
DR
B7
B6
Data setup
Data hold
Preliminary
www.ti.com
Architecture
11.2.8.5.16 Set the Receive Frame-Sync Polarity
The FSRP bit (PCR_REG[2]) determines whether frame–synchronization pulses are active high or
active low on the McBSP.FSR pin.
Receive frame–synchronization pulses can be generated internally by the sample rate generator or
driven by an external source. The source of frame synchronization is selected by programming the
PCR_REG[10] register FSRM mode bit. FSR is also affected by the SRGR2_REG[15] register GSYNC
bit. For information about the effects of FSRM and GSYNC, see the Frame Sync Generation in the
Sample Rate Generator section. Similarly, receive clocks can be selected to be inputs or outputs by
programming the PCR_REG[8] register CLKRM mode bit (see the Clock Generation in the Sample
Rate Generator section).
When FSR and FSX are inputs (FSXM = FSRM= 0, external frame–synchronization pulses), the
McBSP detects them on the internal falling edge of clock, internal CLKR, and internal CLKX,
respectively. The receive data arriving at the McBSP.DR pin is also sampled on the falling edge of
internal CLKR. These internal clock signals are either derived from an external source via CLK(R/X)
pins or driven by the sample rate generator clock (CLKG) internal to the McBSP.
When FSR and FSX are outputs, implying that they are driven by the sample rate generator, they are
generated (transition to their active state) on the rising edge of the internal clock, CLK(R/X). Similarly,
data on the McBSP.DX pin is output on the rising edge of internal CLKX.
FSRP, FSXP, CLKRP, and CLKXP bits in the pin control register (PCR_REG) configure the polarities of
the FSR, FSX, CLKR, and CLKX signals, respectively. All frame–synchronization signals (internal FSR,
internal FSX) that are internal to the serial port are active high. If the serial port is configured for
external frame synchronization (FSR/FSX are inputs to McBSP), and FSRP = FSXP = 1, the external
active–low frame–synchronization signals are inverted before being sent to the receiver (internal FSR)
and transmitter (internal FSX). Similarly, if internal synchronization (FSR/FSX are output pins and
GSYNC = 0) is selected, the internal active–high frame–synchronization signals are inverted, if the
polarity bit FS(R/X)P = 1, before being sent to the FS(R/X) pin.
On the transmit side, the transmit clock polarity bit, CLKXP, sets the edge used to shift and clock out
transmit data. Data is always transmitted on the rising edge of internal CLKX. If CLKXP = 1 and
external clocking is selected (CLKXM = 0 and CLKX is an input), the external falling–edge triggered
input clock on CLKX is inverted to a rising–edge triggered clock before being sent to the transmitter. If
CLKXP = 1, and internal clocking selected (CLKXM = 1 and CLKX is an output pin), the internal
(rising–edge triggered) clock, internal CLKX, is inverted before being sent out on the McBSP.CLKX pin.
Similarly, the receiver can reliably sample data that is clocked with a rising edge clock (by the
transmitter). The receive clock polarity bit, CLKRP, sets the edge used to sample received data. The
receive data is always sampled on the falling edge of internal CLKR. Therefore, if CLKRP = 1 and
external clocking is selected (CLKRM = 0 and CLKR is an input pin), the external rising–edge triggered
input clock on CLKR is inverted to a falling–edge triggered clock before being sent to the receiver. If
CLKRP = 1 and internal clocking is selected (CLKRM = 1), the internal falling–edge triggered clock is
inverted to a rising–edge triggered clock before being sent out on the McBSP.CLKR pin.
Note that CLKRP = CLKXP in a system where the same clock (internal or external) is used to clock the
receiver and transmitter. The receiver uses the opposite edge as the transmitter to ensure valid setup
and hold of data around this edge.
shows how data clocked by an external serial device
using a rising edge can be sampled by the McBSP receiver on the falling edge of the same clock.
Figure 11-28. Data Externally Clocked on a Rising Edge and Sampled on a Falling Edge
1163
SPRUGX9 – 15 April 2011
Multichannel Buffered Serial Port (McBSP)
© 2011, Texas Instruments Incorporated
Содержание TMS320C6A816 Series
Страница 2: ...Preliminary 2 SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 92: ...92 Read This First SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1122: ...1122 Multichannel Audio Serial Port McASP SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1562: ...1562 Real Time Clock RTC SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1658: ...1658 Timers SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1750: ...1750 UART IrDA CIR Module SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...
Страница 1984: ...1984 Universal Serial Bus USB SPRUGX9 15 April 2011 Submit Documentation Feedback 2011 Texas Instruments Incorporated...