Hello,
I sample a differential voltage using the ADS1262(AIN0-1),I short the two channels and ground,But the voltage I get is not close to zero(About 3.67mv).And,I divided the reference voltage in half and then sampled,the result is 1.237V(The voltmeter value is 1.246V).
I use the pulse mode,here my code:
SPI_SendByte(ADS1262_CMD_START);
ADS_CS_LOW();
while(ADS_DRDY);
SPI_SendByte(ADS1262_CMD_RDATA);
for(i=0;i<5;i++)
ADC_Bytes[i] = SPI_SendByte(0);
sum = (ADC_Bytes[1] << 24) | //Data MSB
(ADC_Bytes[2] << 16) |
(ADC_Bytes[3] << 8) |
(ADC_Bytes[4] << 0); //Data LSB
My output data field is 5 bytes long,first is STATUS.
The converted voltage value is obtained by the following code:
Voltage_x=(double)Result_x*2.5/(double)2^31;