Hi,
The datasheet does not specify how to acquire two channels consecutively.
We need to convert calibrated data from 2 channels in high resolution mode as fast as possible.
So the sequence we need to achieve is to have a cycle with Calbration + AIN1 + AIN2.
We are unsure when the conversion does occur, so we do not know when the conversion starts after calibration and when swap the mux input.
What timing shall we follow for input mux to be sure to convert the right channel?
Currently we are planning to have a cycle with 4 read times:
- Mux is set to channel 1 when data is ready
- 1 read with 26 sclk to perform calibration with start maintained high
- 1 read with 25 sclk to get data from channel 1 with start set to 0 after data ready
- 1 read with 25 sclk to get data from channel 1 with start pulse
- Mux is set to channel 2 when data is ready
- 1 read with 25 sclk to get data from channel 2 with start pulse
The reason we read data from channel 1 three times is that we do not know we exit the continuous conversion mode and we do not want to swap mux during a conversion.
Is there a chance to improve this?
Thank you.