ADSP-2126x SHARC Processor Hardware Reference
12-31
Digital Audio Interface
Programs can manage responses to signals by configuring registers. In a
sample audio application, for example, upon detection of a change of pro-
tocol, the output can be muted. This change of output and the resulting
behavior (causing the sound to be muted) results in an alert signal (an
interrupt) being introduced in response (if the detection of a protocol
change is a high priority interrupt).
The
DAI_IRPTL_FE
register can only be used for latching interrupts
on the falling edge.
Use of the
DAI_IRPT_RE
or
DAI_IRPT_FE
registers allows programs to notice
and respond to rising edges, falling edges, both rising and falling edges, or
neither rising nor falling edges so they can be masked separately.
Enabling responses to changes in condition signals (including changes in
DMA state, introduction of error conditions, and so on) can only be
enabled using the
DAI_IRPT_RE
register.
Using the SRU() Macro
As discussed above, the Signal Routing Unit is controlled by writing val-
ues that correspond to signal sources into bit fields that further correspond
to signal inputs. The SRU is arranged into functional groups such that the
registers that are made up of these bit fields accept a common set of source
signal values.
In order to ease the coding process, the include file
sru2126x.h
, is
included with the CrossCore or Vi+ tools. This file implements
a macro that abstracts away most of the work of signal assignments and
functions.
The macro has identical syntax in C/C++ and assembly, and makes a sin-
gle connection from an output to an input:
SRU(OutputSignal,InputSignal);
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 ...