Other Parts Discussed in Thread: ADS1248
We are experiencing an SPI communication problem when talking to the ADS1248.
So far I have seen that I am getting incorrect data in the direction from the ADS1248 to the CPU (eg 0x00 when I am supposed to get non zero, or non zero when I am expecting 0x00) .
But it is not easy to tell what is causing this, eg it could be that it did not understood correctly the request the CPU send to it in the first place.
The problem is reproducable after a few minutes of communication.
In the zip file in attachment the screen en scope plots of such a scenario + a detailed description is (see the readme file).
1651.WrongADS1248SPIResponse.zip
The piece of code that is in the attachment
is a small part of a bigger scenario that is executed continuously (so it is more than just these few lines that are ran repeatedly) The scenario consists out of:
- configuration of the parameters for the new measurement (channel selection, ...)
- wait till the measurement finishes
- run this piece of code to make sure we managed to correctly set up the measurement parameters
- read out the measurement results
Every 5 to 10 (don't remember exactly) normal measurements we also do
- a vref measurement
- a measurement using the burnout current sources because we need to monitor the integrity of the cabling to the sensors.