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()inpyadi-iiorx_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:
21000 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×(83886084096)÷0.8=0.88 V
This means the DC voltage in the signal is 2.5 V+0.88 V=3.38 V.

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?