Post Go back to editing

CN0540 LSB Range & LSB to Amplitude Peak-to-Peak

Thread Summary

The user is experiencing issues with the AD7768-1 DOUT range appearing as 16-bit instead of 24-bit in raw mode, and with the relationship between the input signal and the LSB peak-to-peak value breaking down at a 7V DC bias. The support engineer confirmed that the 16-bit appearance is due to scaling and suggested using `get_iio_attr` to obtain full 24-bit raw data. The 7V DC bias issue is likely due to the signal exceeding the CN0540's linear input range, causing clipping or saturation, which is not apparent in SI mode due to internal scaling.
AI Generated Content
Category: Software
Product Number: AD7768-1
Software Version: ADI-Kuiper_2021_R2

System setup

  • DAQ: DE10-Nano + CN0540
  • Signal source: Signal generator, 10 kHz sine wave (P10 jumper open)
  • Software/versions: ADI 2021_R2
  • Total_Gain = Level Shifter Inverting Gain × FDA Gain = 0.3 × 2.67 = 0.8
  • Sampling rate: 256,000
  • Sampling length: 16,384
  • Data acquisition methods: IIO Oscilloscope GUI, function rx() in pyadi-iio rx_tx.py (rx_output_type = "raw")

Question 1: About LSB range
The range of raw values from AD7768-1 DOUT is -8,388,608 to +8,388,608 (24-bit).
Therefore, for a 1 Vp-p signal, the expected output data range should be:
1000 mVpp2×0.8÷(40968388608)=±81920021000 mVpp​×0.8÷(83886084096​)=±819200

However, when I input a 1 Vp-p signal, whether using IIO Oscilloscope or rx(), the obtained data range is only within 0 ~ 65,536 (16-bit) fig1-① & fig2. Only the first index of the data output from rx() is in 24-bit format (fig1-②). I believe this represents the deviation of the DC bias in the signal chain relative to Vcom at 2.5 V.
For example:
1441792×(40968388608)÷0.8=0.88 V1441792×(83886084096​)÷0.8=0.88 V
This means the DC voltage in the signal is 2.5 V+0.88 V=3.38 V2.5 V+0.88 V=3.38 V.

fig1

Is this LSB range difference due to scaling? How can I obtain all data as the original 24-bit raw data?


Question 2: Conversion between data amplitude and actual signal amplitude
I used sine wave signals with different DC biases as input to the CN0540, and acquired data with rx_output_type = "raw" (default). The peak-to-peak value of the LSBs (fig2-②) is close to the value of the input signal (fig2-①) , as shown in the figure2 when DC bias = 0 or 5. However, when DC bias = 7, this relationship no longer holds.

A similar question is mentioned in this link, but no conclusion was reached: What are output units IIO oscilloscope CN-0540?

Additionally, the relationship “LSB peak-to-peak × 0.8 ≈ input signal peak-to-peak” seems to hold only when rx_output_type = "SI". How should I interpret this phenomenon?

Parents Reply Children
No Data

Before You Switch


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