DSPRelated.com
Forums

Switching lines in ADSP-2181 EZ-KIT lite

Started by Unknown April 9, 2001
I'm trying to switch between 2 lines of the codec on
ADSP-2181 EZ-KIT lite after the initialization was done.
In order to do this I need to change values of the index registers.
So does anyone have an idea how to do it practically?



Sure. Write whatever you want to change to the command variable that is shipped
out with each DAC output in your ISR. The state of the CODEC will be changed
prior to the next interrupt. In the ADI 2181 Ezkit
software, the command buffer location is tx_buf, so... Assign the left input to Line 1 source/22.5dB gain - dm(tx_buf)=0x800f
Assign the left input to Line 2 source/22.5dB gain - dm(tx_buf)=0x808f
Assign the right input to Line 1 source/22.5dB gain - dm(tx_buf)=0x810f
Assign the right input to Line 2 source/0dB gain - dm(tx_buf)=0x8180
and so on.

Check the AD1847 datasheet for the gory details. Also, keep in mind that a
sigma-delta converter takes an eternity to settle after switching.

Cheers,
Dan
wrote:

> I'm trying to switch between 2 lines of the codec on
> ADSP-2181 EZ-KIT lite after the initialization was done.
> In order to do this I need to change values of the index registers.
> So does anyone have an idea how to do it practically?
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://groups.yahoo.com/group/adsp
>
> Other Groups: http://www.dsprelated.com/groups.php3 > ">http://docs.yahoo.com/info/terms/