We are using LTC2400 interfaced with NXP LPC1768 microcontroller and manually controlling SCK and reading SDO lines.
As mentioned in the datasheet, we are following the sequence as shown below,
Check SDO pin value,
if == 1, CS=High , Return
else Clock SCK 32 times , read the pin value of SDO
Remove last 4 bits of SDO data and mask first 4 bits of data , use the remaining
But the converted data is continously flactuating even when analog input line is connected to ground.
Where are we going wrong?