EasyManua.ls Logo

Analog Devices SHARC ADSP-21368 - Using the SRU() Macro to Configure the DAI

Analog Devices SHARC ADSP-21368
894 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Using the SRU() Macro to Configure the DAI
4-76 ADSP-21368 SHARC Processor Hardware Reference
SRU2(DPI_PB12_O, TWI_CLK_I) /* Clock signal from DPI pin 12
is connected to the TWI slave
clock input */
SRU2(LOW,DPI_PBEN12_I) ) /* Disables DPI pin 12 as input as
the clock is not generated by
the slave
*/
Using the SRU() Macro to Configure
the DAI
As discussed in the previous sections, the signal routing unit (SRU) is con-
trolled by writing values that correspond to signal sources into bit fields
that further correspond to signal inputs. The SRU is arranged into func-
tional groups such that 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 header file sru.h is included with
the VisualDSP++ tools. This file implements a macro that automates most
of the work of signal assignments and functions. The macro has identical
syntax in C/C++ and assembly, and makes a single connection from an
output to an input:
SRU(Output Signal, Input Signal);
The names passed to the macro are the names given in Table 4-4 through
Table 4-9 and in the DAI registers section in “DAI/SRU1 Connection
Groups” on page 4-18. To use this macro, add the code shown in
Listing 4-5 to your source code.

Table of Contents

Related product manuals