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