Other Parts Discussed in Thread: ADS1220
Hello,
We are trying to use the ADS1220 to read from two sets of channels, and have some issues working out the right timing and set of commands to achieve the sampling rates required:
AIN0/AIN1 are a differential input using the PGA at 16x gain. Must sample at least 200sps, cannot process more than 300sps.
AIN2/AIN3 are a single ended measurement (AIN3 at GND), bypassing the PGA at 1x. Must sample at least 1Hz.
Presently, we are doing the following:
- ADS1220 is configured to 1000sps from AIN0/AIN1
- MCU reads every 4th sample
- Once per second, MCU stops ADC, switches all settings to the second set of inputs, and sets a single shot reading.
- MCU reads the result of the single shot, sets the registers back to the first configuration, and starts it in continuous mode.
- MCU reads the next sample.
The last three steps work out fitting within the 4msec window for sampling the first input at 250sps.
My concern is that, by using a sampling rate of 1000sps and throwing out 3 of 4 samples, we are not filtering as well as we could if the ADC were configured to 220sps. However, switching to 220sps leaves us with the question: how to make that second channel sample while not disturbing the first channel's even sampling rate?
Please let me know if further clarification is needed - the above may not be clear.
Thanks for your time.