Other Parts Discussed in Thread: ADS1241
Hi, I am using the ADS1241 to read two thermcouples.
I am having some timing issues. What I am doing is setting the mux to amplify between channels 4 and 5, then reading the output value, then I am changing the mux to read between channels 6 and 7 and then reading the output value.
First I wait until the DRDY bit goes low. Then I wait 100 uS, then write to the MUX register. Then wait another 100 uS. Then I wait until DRDY bit goes high. Then I wait until DRDY goes back low again. Then I have to wait 100 milliseconds or more before I read the RDATA register to get the output value. If I don't wait 100 mS or more here, then it outputs the value of the wrong thermocouple. And I am just looping over and over to keep reading both thermocouples all the time. The problem is that 100 mS delay is pretty long and is messing up my keypad presses (keypad won't recognize button press during this 100 mS delay).
My question is, am I doing this right, is there a way to speed up that delay that seems to be required after a MUX change and before an RDATA read?
I have the data rate (DR) set to 15 Hz, by the way.