Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
|
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? > > _____________________________________ > /groups.php3 |