LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

adc0804 testing problem

Hello everyone!

I'm sorry for my bad English . I have a few questions about a problem I can't solve.
I have created a program to calculate errors of 8 bit ADC 0804. Program is based on servo-loop method. I write a code from 0 to 255 (Compare_Val) and program is comparing that value with digital output value. Depending on this comparison analog output is incremented or decremented by step value. When compare value and digital input are close enough red dot is plotted on ADC graph. The converter is in free running mode and the program is plotting all voltages from 0 to 255. Converter is working fine until analog output (input) reaches 4.4V (Code 220), after 4.4V converter doesn't work fine (I'm getting quite a big error) until the program reaches code 255 (the last code is plotted properly). The image will make things more easy to understand (lower graph is error plot-plotting Vreal-Videal). Vcc is 5.12 V and I was thinking that the issue could be in fact that voltage measured on pin 9 is 1.48 and it should be 2.56 V.
Does anyone know why I' m getting so big deviation after 4.4 V ?

Thank you!

Download All
0 Kudos
Message 1 of 5
(4,231 Views)

Spend more time with a DMM to see if the input, supply and reference voltages are what you expect. Keep the input fixed while watching the output code and see if the conversion matches with the voltages (try at a Vin of about 3V, then again at about 4.6V).

 

The datasheet shows a Full Scale adjustment method.

0 Kudos
Message 2 of 5
(4,221 Views)

Thank you for your answer Todd.

I spent some time with DMM, and when I use DC Laboratory power supply everything works fine. When I'm using Labview analog output doesn't go above 4.4V. I think Full Scale adjustment wont help much because there is a big error about 24-25 LSB.

0 Kudos
Message 3 of 5
(4,199 Views)

Hi Vex89,

Please clarify the following questions:

  1. Have you contacted TI regarding the discrepancy between what pin9 should be reading and what it is currently reading to see if this is within the acceptable range?
  2. What NI hardware are you using for your DAQmx task?
  3. Please clarify what you mean by using a DC Laboratory power supply. Please provide a model number for this. Do you mean that you replaced the ADC0804 with another power supply and the code went from not functioning to functioning? If this is the case and there was no change to the LabVIEW code or NI hardware, then this is clearly an issue with the ADC0804 hardware.

I look forward to your clarifications and hope that you have a great day!

Regards,

Jackie B

DAQ Product Marketing Engineer
National Instruments
0 Kudos
Message 4 of 5
(4,165 Views)

Thank you Jackie_B, i've solved this problem. It was an issue with reference voltage, program didn't had any mistakes.

0 Kudos
Message 5 of 5
(4,153 Views)