Data Transfers
10-42
ADSP-214xx SHARC Processor Hardware Reference
If the SPORTs are configured as transmitters, programs should not
write to the inactive
TXSPxA
and
TXSPxB
buffers. If the core keeps
writing to the inactive buffer, the transmit buffer status becomes
full. This causes the core to hang indefinitely since data is never
transmitted to the output shift register.
If the SPORTs are configured as receivers, programs should not
read from the inactive
RXSPxA
and
RXSPxB
buffers. If the core keeps
reading from to the inactive buffer, the receive buffer status
becomes empty. This causes the core to hang indefinitely since new
data is never received via the input shift register.
The status bits in
SPCTLx
are updated during reads and writes from
the core processor even when the serial port is disabled. Disable the
serial port when writing to the receive buffer or reading from the
transmit buffer.
Data Buffer Packing
Received data words of 16 bits or less may be packed into 32-bit words,
and 32-bit words being transmitted may be unpacked into 16-bit words.
Word packing and unpacking is selected by the
PACK
bit in the
SPCTLx
control registers.
When
PACK
= 1 in the control register, two successive words received are
packed into a single 32-bit word, and each 32-bit word is unpacked and
transmitted as two 16-bit words. The first 16-bit (or smaller) word is
right-justified in bits 15–0 of the packed word, and the second 16-bit (or
smaller) word is right-justified in bits 31–16. This applies to both receive
(packing) and transmit (unpacking) operations. Companding can be used
with word packing or unpacking.
When serial port data packing is enabled, the transmit and receive inter-
rupts are generated for the 32-bit packed words, not for each 16-bit word.
www.BDTIC.com/ADI
Содержание SHARC ADSP-214 Series
Страница 60: ...Contents lx ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 72: ...Notation Conventions lxxii ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 130: ...Programming Model 2 52 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 264: ...Programming Models 3 134 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 290: ...Programming Model 4 26 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 296: ...Programming Model 5 6 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 396: ...Effect Latency 7 28 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 520: ...Programming Model 10 62 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 616: ...Debug Features 14 22 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 656: ...Programming Model 15 40 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 714: ...Programming Model 19 10 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1132: ...Register Listing A 306 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1192: ...Index I 34 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...