I have connect the ads1247 as the following picture.
The AIN0 and AIN1 node is connected,but when I read the result.8 bit of the result is unstable.
Result:000022 000015 FFFFFD 00004B 00002F 00004A 00006C 00000B 00002B 00004B 000061 000037 000008 00000D 000012 FFFFF9 FFFFF7 00001F 000038 FFFFFE 000053 00004E 000032 000030 00003B 00001B 000059 00001B 000027 00002A 00003B.
And I have connect the AIN0 and AIN1 to standard signal generation,the result is almost correct.But 8 bit of result is unstable too.By the way,I use the internal reference voltage of ADS1247.
void TI_CC_RDATAC(void)
{
// Set SSN to active low
P0_4 = 0;
while(P1_4); //wait for the ADS1247 ready signal
U0DBUF = 0x12;
while(!(U0CSR & U0CSR_TX_BYTE));
// Clear transmit byte status
U0CSR &= ~U0CSR_TX_BYTE;
int i;
for (i = 0; i< 3; i++)
{
// Write dummy byte to USART0 buffer (transmit data)
U0DBUF = dummyByte;
// Check if byte is transmitted (and a byte is recieved)
while(!(U0CSR & U0CSR_TX_BYTE)) { asm("NOP");}
// Clear transmit byte status
U0CSR &= ~U0CSR_TX_BYTE;
// Write received byte to buffer
data[i] = U0DBUF;
}
}
Somebody can help me?
Thanks!