Hi,
I build this circuit to work with two 3-wires PT100:
Well, now I wanna read AVDD (or DVDD) value, then 1st PT100 (RJ11_1) and then the 2nd PT100 (RJ11_2).
Let's start from the beginning: AVDD measurement!
I did:
WriteSPI1(0x40); // WREG command
WriteSPI1(0x03); // 4 registers - 1 = 0x03
WriteSPI1(0x01); // MUX0
WriteSPI1(0x00); // Vbias
WriteSPI1(0x26); // MUX1 -- AVDD operation
WriteSPI1(0x08); // SYS0
//Send command WREG (0x40) to write the regs and IDAC0 IDAC1 (+0Ah)
WriteSPI1(0x4A);
WriteSPI1(0x01);
WriteSPI1(0x06); //IDAC0
WriteSPI1(0x01); //IDAC1 (AIN0 AIN1)
Then, to read:
WriteSPI1(0x12); // Command RDATA ==> Read data once
for(x=0;x<3,x++)
{
WriteSPI1(0xFF); // Command NOP ==> Wait
data[x] = ReadSPI1();
}
The ADS1247 always answers me 0x7F-0xFF-0xFF. :(
Thanks,
Daniel