LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use AD1836 VIs?

hi,  everybody.
    glad to post my problem here. i hope somebody would help me .
    I am going to design an audio system on Blackfin533 Ez-kit. but i cannot know  how to use the BF AD1836 wait on data ready flag.vi  .
     where can i get the tutorial for the VIs (ad1836) ?
thanks for your help.
0 Kudos
Message 1 of 8
(8,364 Views)
Hello!

You can find more information about this VI in the shipping help in LabVIEW, as well as with the Blackfin shipping examples included with the software.  The example that I recommend starting with is the Line In-Out example that shows a simple audio passthrough application using the 1836 functions.  The Wait on Data Ready Flag VI acts as a loop timer that blocks until the audio sub-buffer has enough data to be read.  This ensures that you only operate on valid data, and that all data is ready before a read attempt is made.

You can find the example by selecting Help»Find Examples in LabVIEW, then navigating to Toolkits and Modules»Blackfin»Audio.

If you run into more questions, just ask and we'll point you to the right resources.

Message Edited by MattP on 08-23-2007 10:17 AM

Cheers,

Matt Pollock
National Instruments
Message 2 of 8
(8,361 Views)
hi, MattP, thanks for your help.
Exactly, I have find this vi(Line In-Out) for BF533 ez-kit.But,this VI do not work. when i debug this VI, I cannot hear the audio which is input to the ez-kit.
i examine the explanation for the vi carefully, i find the sentence : "This example demonstrates using the AD1836A Codec on the BF533 EZ-Kit" . After check my ez-kit, I find "AD1836AAS" on the chip.
what is wrong?  AD1836A and AD1836AAS is the same thing?
0 Kudos
Message 3 of 8
(8,344 Views)
Hello,

The AD1836AAS is just a particular model of the AD1836A.  For details on the differences between the models, take a look at the 1836's product page at http://www.analog.com/en/prod/0%2C2877%2CAD1836A%2C00.html  The 1836AAS is fully compatible with the example, and worked quite well with my 533 EZ-Kit.

To help you further with the example, first I'll need to know which version of the LabVIEW Embedded for Blackfin Module that you are using, as the steps to troubleshoot are a little different for each version.

I'm also curious to know if you can hear any part of your audio signal being passed through, or if the original signal you send into the board comes out garbled, if it stutters, or if all you hear is noise or silence.  Additionally, I recommend trying to rebuild the example with Build Configuration "Release" and Debug Mode "None".  This will disable all debug options and allow the code to run more efficiently on the chip.

If the above still does not work after compiling, downloading and running the application, I would next check the switch settings and connectors on your EZ-Kit to ensure that they match the requirements listed on the front panel of the VI:

Set SW9 switch 5-On, 6-On

Connect an audio source to audio in (ADC1)

Connect speakers to audio out (DAC1)
Let me know what version you're using, the details above, and what the results of the above suggestions was and we can take it from there.
Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 4 of 8
(8,332 Views)
Hi MattP!I want to use all of 4 channels ADC for my application. But actually audio initialize for BF533 Vi just active ADC1 only. How can i active ADC2 and get data from ADC2( two channels remaining)?. I have read AD1836A datasheet from ADI that indicating we should write to ADC control register 3, so i've written like datasheet, but i cannot open and operate ADC2. Are there any way to solve my problem? please suggest to me. I've spent along time without successfully. Thank in advance  Do Van Lam
0 Kudos
Message 5 of 8
(7,622 Views)
Hi MattP!I want to use all of 4 channels ADC for my application. But actually audio initialize for BF533 Vi just active ADC1 only. How can i active ADC2 and get data from ADC2( two channels remaining)?. I have read AD1836A datasheet from ADI that indicating we should write to ADC control register 3, so i've written like datasheet, but i cannot open and operate ADC2. Are there any way to solve my problem? please suggest to me. I've spent along time without successfully. Thank in advance  Do Van Lam
0 Kudos
Message 6 of 8
(7,621 Views)

Hi Do,

 

Are you still using one of our example programs for this?

 

Thanks,

Karunya

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 7 of 8
(7,591 Views)

Hi Karunya R!

Yes. I've just used an example of Labview embedded module. And then i modified codes to control ADC registers but it was not sucessful. Could you suguest me any way to open ADC1 and ADC2?

Thank you!

Kind regards

Do Van Lam

0 Kudos
Message 8 of 8
(7,579 Views)