This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1282: data conversion for ADS1282

Part Number: ADS1282

Hello,

I am using ADS1282 for converting milliVolt signals. It is used in the default config, with REFs as +2.5V and -2.5V and is in the continuous mode, at 1000Sps data rate.

I need help with two issues--

(i) I gave a 20 mV input signal and got a dataset which has EBB34817.. as output and with zeroes in between.

(ii) When I gave 200 mV signal, in addition to the zeroes coming in between, I got two sets of different values at the output. (9636E191, 1B458580 )

I tried giving other signal values also, but one of the above patterns result.

As I am new to this, any help would be greatly appreciated.

The sample data files are attached

Request help

Thanks in advance

Regards

  • Hi Sreelatha,

    Welcome to the TI E2E forums!

    Unfortunately, I don't see your data files. Would you mind trying to send them again?
    (You might need to go into the advanced editor and click the "Insert File" button to attach the files - I haven't had the best luck with dragging and dropping files into the E2E textbox).

    You're results indeed don't seem to correlative to the input voltages that you are providing. There are many reasons why that might be the case, including:
    - If you read data before the /DRDY signal goes low, the output result maybe invalid.
    - If the reference voltage is not enabled or is not provided the results won't make any sense.
    - If the input voltages violate the PGA's common-mode voltage requirements, you may see a large gain error.
    - SPI communication errors, or post-processing errors when combining data bytes into a single signed integer result.

    To help me determine what might be the problem, which PGA gain are you using? Also, are you correctly reading from and writing to the device registers?

    Even if you're SPI communication appears to be working, I might still recommend using an oscilloscope or logic analyzer just to double check that the results you're seeing from your processor are the same conversion results that are being transmitted via SPI.

    Best regards,
    Chris
  • Hello Christopher,
    Thanks for the fast reply.
    Let me restate the issues and give clarifications wrt the circuit.

    -Data is read on /DRDY going low only.
    -Reference voltages of +2.5 and -2.5 are also provided with power on itself.
    -As the input voltage is low, I expect no common-mode violation.
    -Regarding the SPI communication errors/post-processing errors when combining data bytes into a single signed integer result, which you have indicated-- I am not sure how to look for it. Request some more help in this regard.
    -The device register read/write also seem to be ok. Is there anything specific that I can look for?

    The circuit has a front end sensor followed by an opamp, the output of which is connected to the ADS1282. Only DC signals are given for the tests. The AINN1 and AINN2 inputs are grounded. The incoming signal is fed to AINP1. The ADS1282 is configured for PGA gain of 1.

    Will try to attach the data files once again.
    Thanks in advance
    Warm regards
    sreelatha
  • EBB34817
    EBB3A6C1
    EBB5454F
    EBB8751D
    EBBC631F
    EBC034ED
    EBC3CE87
    EBC6E3BD
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    EBC6A919
    EBC38311
    EBBF7AC1
    EBBB4169
    EBB7C73D
    EBB5A28B
    EBB4773D
    EBB3A0B3
    EBB37BF7
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    EBC5DE49
    EBC9B099
    EBCC1A2D
    EBCD02C9
    EBCC8305
    EBCB0A71
    EBC8C6F7
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    01000000
    01000000
    01000000
    D76B053E
    D765BD6E
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    EBB71E27
    EBBABE9F
    EBBF3809
    EBC3F863
    EBC81477
    EBCB8673
    EBCE0F63
    EBCE7FCB
    EBCCD37B
    EBCA2311
    EBC6C5F5
    EBC29877
    EBBDCC89
    EBB8F8AB
    EBB4D377
    EBB196FD
    EBAF228D
    EBADF9E9
    EBAEE907
    EBB1C011
    EBB5859D
    EBB99F1F
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    EBCDDB01
    EBCE2233
    EBCD18E3
    EBCAC8C3
    EBC7D7A1
    EBC486A1
    EBC0940B
    EBBC73F7
    EBB8B631
    EBB55E8B
    EBB2D50D
    EBB1CBEB
    EBB25D31
    EBB47175
    EBB7CCD3
    EBBBB0D5
    EBBF9F39
    EBC3889B
    EBC6FCC5
    EBC93EBF
    EBCA119B
    EBC972CF
    EBC7666D
    EBC4A491
    EBC1C3C1
    EBBE9803
    EBBB11C7
    EBB7AE87
    EBB4E6E5
    EBB3023F
    EBB2782F
    EBB365A5
    EBB5AFBD
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    EBC75847
    EBC99531
    EBCB2671
    EBCB8E1D
    EBCA00B5
    EBC70161
    EBC3B253
    EBC09933
    EBBD5DA7
    EBB93001
    EBB46ACB
    EBB0959D
    EBAEA40D
    EBAE893F
    EBB043D1
    EBB3D4A3
    EBB88189
    EBBD7133
    EBC1F2D5
    EBC58D63
    EBC8B055
    EBCBA4D1
    EBCD7ECF
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    EBC2C543
    EBBDAE65
    EBB8B5C3
    EBB4E73B
    EBB21517
    EBB007FF
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    
    9636E191
    1B458580
    1B3F7180
    1B320180
    1B5C7180
    1BE8FB80
    1C96CB80
    1D2E6680
    1DA44F80
    963BCC11
    1E1D0480
    1E9D1380
    1F116980
    963E07AD
    1EAB3980
    963C8BF3
    1DB7AA80
    1D010980
    9638BC7F
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    96361543
    1B243E80
    1B6BDF80
    1C221C80
    1D162380
    1D9CF280
    963B5B41
    1DDD6580
    1E44CC80
    1E8D3480
    1EAF2580
    1EA13B80
    1E426F80
    1DBB0480
    963A56C7
    1C92E380
    9637EC69
    9636BC2B
    9635F9C3
    1B063980
    9636CF17
    1BECE980
    1C6FA080
    9639BF0B
    1D1EF680
    963A8485
    1DA56B80
    1E359580
    1E8F2180
    1E95C480
    1E698780
    963C3D77
    1DCD9E80
    1D677280
    1C909280
    1B984480
    1B240680
    1B1BCE80
    1B276D80
    1B2F9980
    9636B8DD
    1BD84980
    1C9ACE80
    1D564D80
    1DB03280
    1DCD7780
    963C40D1
    1EA40280
    1EF79780
    1F067380
    1EB2AA80
    1DFB3E80
    1D587880
    9639ACA1
    1C2FAD80
    1B80C580
    9636278F
    1AF60780
    1AF82B80
    1B0BA980
    1B58D280
    1BF3FD80
    1C9C9380
    1D0A4E80
    1D467480
    1D998F80
    1E093180
    1E5A8D80
    1EA3DE80
    1ECEBC80
    1EA12780
    1E436980
    1DCD0B80
    963A6627
    1C778D80
    1BB61280
    9636260D
    1ABACD80
    1AED6D80
    1B69C980
    96378AB5
    1C2C7980
    963963CB
    1D3B2A80
    963B9427
    1E2B6680
    1E5D6480
    1E940A80
    1EC5CD80
    1EB7A780
    1E4CF980
    963B5775
    1CF71480
    9638AF9D
    1BE49C80
    1B7AE580
    1B2C9480
    1B2A5980
    1B4EAA80
    1B661580
    1BA71D80
    1C5F6A80
    1D526C80
    963C1B8F
    1E6ACE80
    1E65EC80
    963CAEB1
    1E8DD980
    963D4745
    1E585880
    963BD50B
    1D601180
    1C9F4F80
    1BE34D80
    1B6B2480
    1B251080
    9635F381
    1AF41880
    1B25A880
    1B9AF180
    1C2F5380
    1C9F1180
    1CE41780
    1D420A80
    1DD62A80
    1E623480
    1EC81A80
    1EF34E80
    1ED58680
    1E9AA280
    1E265580
    1D61FE80
    96393425
    1C0CD280
    963745AF
    1B4F3D80
    96367135
    9636612D
    1B2D0380
    9636FF35
    1C181A80
    1CC1F580
    1D67D580
    1DDE2F80
    1E217B80
    1E5C4B80
    1E8B2C80
    963CFB69
    1E3BEF80
    1DFB8A80
    1DA9DB80
    963A4425
    1C701080
    1BACA880
    1B11A480
    1AF3E180
    1B437780
    96370769
    1BAC9C80
    1C1FBF80
    1CCCB980
    1D532C80
    1DAE8680
    1DFFF380
    1E44ED80
    963CFC5B
    1E7DAC80
    1E548480
    1E379180
    1DCAC680
    9639E037
    1C2E8D80
    1BD0A580
    1B9C2580
    9636C91F
    1B360380
    1B15D980
    1B2C2580
    1B90DB80
    1C1C6980
    1CB6FA80
    1D56A480
    1DEDD680
    1E5F8280
    1E9B0F80
    1EA3D480
    1E90C280
    1E95F680
    963D0225
    1DF3DD80
    963A32A5
    9638D1C9
    1BEF0980
    9636D427
    9635F665
    1AD57180
    1AF2A080
    1B3D6380
    1BA13880
    96384C2F
    1CC09980
    1D567C80
    1DD8DE80
    1E3F9A80
    1E84E280
    963D085D
    1E439980
    1E141080
    1DE58B80
    1D713E80
    1CE41C80
    9638AD3F
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    96369ECF
    1B6E6A80
    1BCF0B80
    1C7A9480
    1D1D6080
    1D743680
    963B7D87
    1E211380
    1E6E0680
    1E91F280
    1E919980
    1E5B5C80
    1DEFAA80
    1D7ADC80
    1CE6B880
    1C0C2280
    1B47D880
    1AF33780
    1AE7B080
    1B032880
    1B472780
    96376301
    1C5FE680
    1D240A80
    1DA08280
    963BDC03
    963CAB41
    1EC39480
    1EE1B180
    1EC4E780
    1EA82780
    1E5A3480
    1DCF0580
    963A55D7
    1C6D3E80
    963750B3
    96361F93
    1AD17B80
    1AF2FA80
    1B484280
    1B8A8180
    1BC81A80
    1C471D80
    1CD57480
    1D381E80
    963B46F5
    963C5D43
    963D21C9
    1EAB6A80
    963D50ED
    963CEB3F
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    1BDB6D80
    1B637E80
    1B28AB80
    96363573
    1B1A5080
    1B340480
    1BAA4380
    9638B9F5
    1CE6E980
    1D36B780
    1D8E6E80
    1E0C2780
    1E878080
    963D84FD
    1E95F980
    1E462D80
    1E0C0A80
    1D9B7A80
    1CD76A80
    1C0DF080
    96370A1D
    96369EDB
    1B65DC80
    1B8E4280
    1B993180
    1BDF8180
    1C7EFB80
    1D140380
    1D76A380
    1DB7A580
    1DFCFA80
    1E523380
    963D1F31
    963D2CA1
    1E707280
    1E383480
    963B7A19
    1CFC2E80
    1C573580
    1BC33A80
    1B25BA80
    1AD2B580
    963602B3
    1B68A480
    1BB01E80
    1BE3F980
    96384171
    963932AF
    1D553A80
    1DF27080
    1E56E280
    963D5A3B
    1EDB5C80
    1EB60080
    1E686180
    1E1C4380
    963B5B49
    1D11F580
    9638D357
    1BCAEA80
    1B553980
    1B1A6B80
    1B035F80
    1B06FF80
    1B594A80
    1C010B80
    1C9A1080
    1D14A680
    1D919480
    1DEC1980
    1E329B80
    1E7E1E80
    963D71B1
    1EBCD680
    1E71B880
    1DDCC480
    1D327980
    1CC23D80
    96387727
    1B62B480
    1AE49480
    1B1D5E80
    1B91FF80
    96379BEF
    1BE94180
    1C2D3F80
    1CBE3280
    963AC535
    1DC03680
    1E0D1E80
    

  • Hi Sreelatha,

    Do you know what your command sequence is for reading data?...Do you use RDATAC mode when reading data or do you send the RDATA command? Also what is you SCLK frequency?

    Please see the data conversions attached...

    Are the 200mV and 20mV signals voltages applied to the ADC, or are these the input voltages prior to the op-amp?
    According to the voltages calculated in the attached Excel file, the ADS1282 is measuring approximately 0.5 and -0.39V in most cases; however, I did observe some other behaviors...

    • There are several conversion results that appear to be outliers. Perhaps the SPI data is getting out of alignment. Make sure when you send command bytes you ignore the returned data (read it but throw it away) since the ADS1282 doesn't utilize the full-duplex capabilities of SPI

    • In the 20mV data file, there are sequences of 62 conversion results that return all zeros. This behavior is typical for the ADS1282 when ADC conversions are resynchronized and the FIR filter is settling (new data is available on the 63rd conversion cycle).

    • Finally, in the 20mV data file, there were also a few conversion results that show duplicated data outputs from conversion to conversion. Statistically, this is unlikely and might indicate that you are reading the same conversion result multiple times. In those cases you might want to check to see if perhaps the /DRDY interrupt is incorrectly triggering.

    My best recommendation would be to get an oscilloscope or logic analyzer capture of the SPI communication. If you able to do this, please feel free to share it with us and we can help you interpret it and troubleshoot any issues we see.

    Best regards,
    Chris

  • Hello Christopher,
    Thanks for the details.
    I will probe and send the results soon.
    I am sorry that I could not open the attached excel file, which I understand gives the calculation. Request to please resend the same.
    Thanks in advance
    Warm regards
    sreelatha
  • Dear Christopher,
    Further to my earlier reply, I would like to state the following.
    1. The ADS1282 is used in power ON default mode. 1000SPS, Channel1, PGA gain 1 and continuous conversion mode.
    2. The fclock to ADS1282 is a 2 MHz CMOS crystal oscillator, instead of 4MHz. So we get 500SPS rate on Power ON instead of 1000SPS.
    3. The ADS1282 DOUT is read when the DRDY goes low. This is done by giving the DRDY to a low going trigger interrupt. As soon as the DSP SMV320C6701 gets the interrupt, it sends 32 clocks at 320KHz rate. (SCLK rate), in SPI mode of the McBSP0 port. So we read the DRR register input for the 32 c;locks sent. We have correlated the oscilloscope wave form and the DRR value several times. They are same.
    4. But the ADS1282 input voltage and the output code do not match. The 20mV and the 200mV in the files that I have sent are measured wrt to GND at OP Amp output. From the OP AMP out put the signal is fed to the ADS1282 input AINP1 and AINP2 through a 100Ohm resistor. The AINN1 and AINN2 of the ADS1282 are grounded. So we expect the same voltage at the input of ADS1282 also.
    We are still clue less about the DOUT code mismatch.
    Thanks and Regards,
  • Hi Sreelatha,

    Try this link to see if this works better.../cfs-file/__key/communityserver-discussions-components-files/73/ADS1282-data-conversions.xlsx

    Since you are directly clocking out the ADC data, have you made sure to send the RDATAC command before attempting to read data? If you haven't, then you will need to send the RDATA command each time you want to read data.

    Best regards,
    Chris