Companding (Compressing and Expanding) Data
McBSP Operation
2-6
SPRU592E
-
The McBSP is enabled in digital loopback mode with companding
appropriately enabled by RCOMPAND and XCOMPAND. Receive and
transmit interrupts (RINT when RINTM = 00b and XINT when
XINTM = 00b) or synchronization events (REVT and XEVT) allow
synchronization of the CPU or the DMA controller to these conversions,
respectively. Here, the time for this companding depends on the serial bit
rate selected. This method is indicated as (2) in Figure 2
Figure 2
−
5. Two Methods by Which the McBSP Can Compand Internal Data
(1)
(2) (DLB)
From CPU or DMA controller
DXR1
To CPU or DMA controller
DRR1
DX
XSR1
Compress
Expand
DR
RBR1
RSR1
2.2.3 Reversing Bit Order: Option to Transfer LSB First
Normally, the McBSP transmits or receives all data with the most significant
bit (MSB) first. However, certain 8-bit data protocols (that do not use
companded data) require the least significant bit (LSB) to be transferred first.
If you set XCOMPAND = 01b in XCR2, the bit ordering of 8-bit words is
reversed (LSB first) before being sent from the serial port. If you set
RCOMPAND = 01b in RCR2, the bit ordering of 8-bit words is reversed during
reception. Similar to companding, this feature is enabled only if the appropriate
word length bits are set to 0, indicating that 8-bit words are to be transferred
serially. If either phase of the frame does not have an 8-bit word length, the
McBSP assumes the word length is eight bits, and LSB-first ordering is done.
Содержание 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 ...