SPI Interrupts
10-32
ADSP-2126x SHARC Processor Hardware Reference
Transmitter packing example:
The value
0xXXLMXXJK
(where
XX
is any random value and
JK
and
LM
are
the data words to be transmitted out of the SPI port) is written to the
TXSPI
register. The processor transmits
0xJK
first and then transmits
0xLM
.
Receiver packing example:
The receiver unpacks the value and two words are received,
0xJK
and then
0xLM
. They appear in the
RXSPI
register as:
0x00LM00JK
=> if
SGN
is configured to 0
0xFFLMFFJK
=> if
SGN
is configured to 1 and
L
,
J
> 7.
SPI Interrupts
The SPI port can generate an interrupt in five different situations. During
core-driven transfers, an SPI interrupt is triggered in these instances:
1. When the
TXSPI
buffer has the capacity to accept another word
from the core
2. When the
RXSPI
buffer contains a valid word to be retrieved by the
core
The
TIMOD
(Transfer Initiation and Interrupt) register determines whether
the interrupt is based on the
TXSPI
or
RXSPI
buffer status. For more infor-
mation, refer to the
TIMOD
bit descriptions in the
SPICTL
register in
.
Summary of Contents for ADSP-21261 SHARC
Page 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Page 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Page 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Page 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Page 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Page 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Page 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Page 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Page 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Page 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Page 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Page 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Page 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Page 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...