Hi,
We are using ADS 1256 to convert the thermistor input into temperature readings. The ADC settings during initialization are as shown below
- send Reset
- send SDATAC
- set STATUS = 0x02
- set MUX = 0x01
- set ADCON = 0x05( gain = 32)
- set DATA RATE = 0x23 (10 sps)
- ADS1256 Master clock = 6.25MHz
- SPI clock = ADS1256 master clock/4 = 1.56MHz
DRDY pin is tied to External IRQ. In the ISR, Read Data is used to read 24 bit raw temperature reading.
The issue that we are facing is that in the ISR after Read Data cmd(0x01) is sent out , the 3 bytes we are reading are not in the correct order. It looks like the LSB comes first, followed by MSB and then center byte.
Below is the scope trace for your reference.
The expected data is: 0xFFF53A instead of 0x3AFFF5.
What am I missing? Need help.
Thanks - Sushma