Post Go back to editing

AD7091 return wrong value

Category: Hardware
Product Number: AD7091

Hi.

I apologize in advance for the bad english.

I'm developing with AD7091.

My problem is ADC gives wrong value.

And If I get data more often, peak points appears.

VDD is 5V.

When input voltage is 500mV, expected value is around 0x19A(410). But I get around 0x334(820). 

And input voltage is 1V, expected value is around 0x334(820). But I get around 0x668(1640). 

Working like 2.5V input range.

Also, there is one more problem.

If I get data more faster, peak point appears.

2 kHz data acquisition rate with around 500mV input.

10 kHz data acquisition rate with around 500mV input.

Here's logic analyzer capture (10kHz acquisition, input voltage around 500mV)

I did software reset before main loop.

I have no clue about this.

Parents
  • Hi,  .

    I think you are getting the correct values. You have stated that when 500 mV is the input, you are getting a decimal value of 820, right? But that is how it should be. AD7091 uses a straight binary conversion. I am assuming you are using its internal reference, 2.5V, right? Then, this is how it was calculated.

    [Vin/Vref] x [2^N]

    [500 mV/ Vref] x [2^12] = 819.2 or 820.

    On the other hand, on your scope shot, it seems that SCLK lacks 4 pulses. I am seeing 12 SCLK pulses. It should be 16 SCLK cycle.  Are you using a custom eval board and controller board? If yes, would you mind sharing your schematic and the flow of your code from your bin file?

    Regards,
    Jo

Reply
  • Hi,  .

    I think you are getting the correct values. You have stated that when 500 mV is the input, you are getting a decimal value of 820, right? But that is how it should be. AD7091 uses a straight binary conversion. I am assuming you are using its internal reference, 2.5V, right? Then, this is how it was calculated.

    [Vin/Vref] x [2^N]

    [500 mV/ Vref] x [2^12] = 819.2 or 820.

    On the other hand, on your scope shot, it seems that SCLK lacks 4 pulses. I am seeing 12 SCLK pulses. It should be 16 SCLK cycle.  Are you using a custom eval board and controller board? If yes, would you mind sharing your schematic and the flow of your code from your bin file?

    Regards,
    Jo

Children

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.