ADSP-2126x SHARC Processor Hardware Reference
9-21
Serial Ports
• DMA enable (
SDEN_A
and
SDEN_B
)
• DMA chaining enable (
SCHEN_A
and
SCHEN_B
)
Setting Word Length (SLEN)
SPORTs handle data words containing 8 to 32 bits in I
2
S Mode. Pro-
grams need to set the bit length for transmitting and receiving data words.
For details, see
.
The transmitter sends the MSB of the next word one clock cycle after the
word select (
TFS
) signal changes.
In I
2
S mode, load the
FSDIV
register with the same value as
SLEN
to trans-
mit or receive words continuously. For example, for 8-bit data words
(
SLEN
= 7), set
FSDIV
= 7.
Enabling SPORT Master Mode (MSTR)
The SPORTs transmit and receive channels can be configured for Master
or Slave mode. In Master mode, the processor generates the word select
and serial clock signals for the transmitter or receiver. In slave mode, an
external source generates the word select and serial clock signals for the
transmitter or receiver. When
MSTR
is cleared (=0), the processor uses an
external word select and clock source. The SPORT transmitter or receiver
is a slave. When
MSTR
is set (=1), the processor uses the processor’s internal
clock for word select and clock source. The SPORT transmitter or receiver
is the master. For more information, see
“Setting the Internal Serial Clock
and Frame Sync Rates” on page 9-15
Selecting Transmit and Receive Channel Order (FRFS)
In Master and Slave modes, it is possible to configure the I
2
S channel to
which each SPORT channel transmits or receives first. The left and right
I
2
S channels are time-duplexed data channels.
Содержание ADSP-21261 SHARC
Страница 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Страница 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Страница 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Страница 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Страница 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...