Frame Phases
2-11
McBSP Operation
SPRU592E
2.4 Frame Phases
The McBSP allows you to configure each frame to contain one or two phases.
The number of words per frame, and the number of bits per word, can be
specified differently for each of the two phases of a frame, allowing greater
flexibility in structuring data transfers. For example, a user might define a
frame as consisting of one phase containing two words of 16 bits each,
followed by a second phase consisting of 10 words of 8 bits each. This
configuration permits the user to compose frames for custom applications, or
in general, to maximize the efficiency of data transfers.
2.4.1 Number of Phases, Words, and Bits Per Frame
1 shows which bit fields in the receive control registers (RCR1 and
RCR2) and in the transmit control registers (XCR1 and XCR2) determine the
number of phases per frame, the number of words per frame, and number of
bits per word for each phase, for the receiver and transmitter. The maximum
number of words per frame is 128 for a single-phase frame and 256 for a
dual-phase frame. The number of bits per word can be 8, 12, 16, 20, 24, or 32
bits. The maximum number of bits (serial port clock cycles) per frame is 4096.
Table 2
−
1. McBSP Register Bits That Determine the Number of Phases, Words, and
Bits Per Frame
Operation
Number of Phases
Words Per Frame
Set With ...
Bits Per Word
Set With ...
Reception
1 (RPHASE = 0)
RFRLEN1
RWDLEN1
Reception
2 (RPHASE = 1)
RFRLEN1 and
RFRLEN2
RWDLEN1 for phase 1
RWDLEN2 for phase 2
Transmission
1 (XPHASE = 0)
XFRLEN1
XWDLEN1
Transmission
2 (XPHASE = 1)
XFRLEN1 and
XFRLEN2
XWDLEN1 for phase 1
XWDLEN2 for phase 2
2.4.2 Single-Phase Frame Example
7 shows an example of a single-phase data frame comprising one
8-bit word. Since the transfer is configured for one data bit delay, the data on
the DX and DR pins are available one clock cycle after FS(R/X) goes active.
The figure makes the following assumptions:
-
(R/X)PHASE = 0: Single-phase frame
-
(R/X)FRLEN1 = 0b: 1 word per frame
Содержание TMS320VC5509
Страница 5: ...vi This page is intentionally left blank ...
Страница 43: ...McBSP Operation 2 20 SPRU592E This page is intentionally left blank ...
Страница 105: ...SPI Operation Using the Clock Stop Mode 6 16 SPRU592E This page is intentionally left blank ...
Страница 187: ...Transmitter Configuration 8 40 SPRU592E This page is intentionally left blank ...
Страница 191: ...General Purpose I O on the McBSP Pins 9 4 SPRU592E This page is intentionally left blank ...
Страница 201: ...Emulation Power and Reset Considerations 10 10 SPRU592E ...
Страница 207: ...Data Packing Examples 11 6 SPRU592E This page is intentionally left blank ...
Страница 273: ...McBSP Register Worksheet 13 14 SPRU592E This page is intentionally left blank ...