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.

ADS7952-Q1: Not able to select Range2 (0-2*Vref) in manual mode

Part Number: ADS7952-Q1
Other Parts Discussed in Thread: ADS7952

Hi,

I am using ADS7952 in manual programming mode, with analog and digital supply of 5V and separate AGND and DGND connected at one point, Vref=2.5V. In manual mode, I am not able to select range 2 (0- 2*Vref), 2.5V input to CH0 reads 4095 instead of ~2045.

I am writing SDI=0x1840 to select CH0 and range 2. Here is a code snippet.

sdata=0x1840;

for(;;)
   {
     
     spi_xmit(sdata); //transmiting 0x1840
     // Wait until data is received
     while(SpiaRegs.SPIFFRX.bit.RXFFST !=1) { }
     // Check against sent data
     rdata = SpiaRegs.SPIRXBUF;
   
   }

Thanks