DSPRelated.com
Forums

AD73322 Dual AFE communicates with ADSP-2189m?

Started by tylu May 8, 2003
I am using 2189m EZ-kit which has a dual Analog Front End AD73322. It
is used as a 2 channel ADC and DAC.
Does anyone has any experience handling the program that communicate
between AD73322 and DSP through SPORT?
I tried the Talkthrough.asm demo program but it was only for 1
channel. And I can't rewrite the program to 2 channel.
And in datasheet, it only defined the LSB 8 bit in control register.
So I am not sure what does every bit means....
thx~



Tylu wrote:

> And I can't rewrite the program to 2 channel.


I had the same problem. You need to make a "channel sorter" routine. You need
5 variables: Channel, "Chan1in, Chan2in, Chan1out, Chan2out. Be sure to set the
initial state of the "Channel" variable. Use TSTBIT and then branch on = zero
(or not = zero). After the branch, set the variable to the opposite state - if
it was 0, set it to 1 - if it was 1, set it to 0. In one of the branches, RX0
into "Chan1in" and "Chan1out" to TX0. In the other, RX0 into "Chan2in" and
"Chan2out" to TX0. This separates the 2 channels. At the end one of the 2
branches, put the code you want to run/process. Use RTI at the end of both
branches.

Dave

David Tiefenbrunn N1WWY
Essential Telecommunications Corp. - http://www.essentialtel.com
David Tiefenbrunn - http://users.abac.com/dandatief