Dsp Programming Of The Ad1819 Indexed Control Registers; Emafe Programming - Analog Devices ADSP-21065L EZ-KIT Lite Manual

Evaluation system
Table of Contents

Advertisement

21065L EZ-KIT Lite C and assembly programs, the user can inspect the source files for the
EZ-KIT Lite audio demos.

3.3.4 DSP Programming of the AD1819 Indexed Control Registers

The monitor program provides a setup routine for the AD1819. Table 3-7 shows the registers used
by the DSP and their state after reset. The user can use the monitor buffers contained in the demo
programs or write their own code to use the AD1819 codec. The code must initialize these registers
when using the AD1819.
For example programs and further documentation on AD1819 programming with the ADSP-
21065L, you can visit our web site at www.analog.com/dsp.
Table 3-7 DSP Programming of the AD1819 Indexed Control Registers
Address
Index Register Name
0x06
Master Volume Mono
0x0E
Microphone Volume
0x10
Line Volume
0x1C
Record Gain
0x20
General Purpose
0x78
Sample Rate 0
0x7A
Sample Rate 1

3.3.5 EMAFE Programming

Communicating with the EMAFE is done through either of the SPORTs, or through indexed
addressing. To read or write memory on the EMAFE, the memory should be written to address
0x0100 0000. After writing the address, the data can be read from or written to address 0x0100
0001. Multiple reads, or writes, are executed without rewriting the address.
Because of the bus timings of the ADSP-21065L, an address hold cycle must be added to the bus
cycles of MS1 to communicate with the EMAFE.
This is done in the WAIT register of the ADSP-21065L and guarantees that the data remains valid
when the WR line goes high (invalid). If this is not done, the data and or address written to the
EMAFE may not be stored correctly.
As stated in the previous section, JP3 must be connected to +3.3V
used on the EMAFE or the AD1819 will contend with the EMAFE's operation.
www.BDTIC.com/ADI
#define Label in 2106x program
MASTER_VOLUME_MONO
MIC_VOLUME
LINE_IN_VOLUME
RECORD_GAIN
GENERAL_PURPOSE
SAMPLE_RATE_GENERATE_0
SAMPLE_RATE_GENERATE_1
State
0x8000
0x8008
0x8808
0x0F0F
0x8000
0xBB80
0xBB80
if SPORT1 is
CC
32

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADSP-21065L EZ-KIT Lite and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents