Kenneth, The sequence doesn't change much except that for the start of a new conversions, you write a new configuration to select the input channel. Assuming that AIN0/AIN1 is CH1 and AIN2/AIN3 is CH2, you would set the sequence this way: 1. Set /CS1 low, set config register CH1 and start new conversion, set /CS1 high. 2. Set /CS2 low, set config register CH1 and start new conversion, set /CS2 high. 3. Set /CS3 low, set config register CH1 and start new conversion, set /CS3 high. 4. Set /CS4 low, set config register CH1 and start new conversion, set /CS4 high. 5. Wait for 1/(data rate) seconds + 10% for internal oscillation variation. 6. Set /CS1 low, read data CH1 and start new conversion with CH2, set /CS1 high. 7. Set /CS2 low, read data CH1 and start new conversion with CH2, set /CS2 high. 8. Set /CS3 low, read data CH1 and start new conversion with CH2, set /CS3 high. 9. Set /CS4 low, read data CH1 and start new conversion with CH2, set /CS4 high. 10. Wait for 1/(data rate) seconds + 10% for internal oscillation variation. 11. Set /CS1 low, read data CH2 and start new conversion with CH1, set /CS1 high. 12. Set /CS2 low, read data CH2 and start new conversion with CH1, set /CS2 high. 13. Set /CS3 low, read data CH2 and start new conversion with CH1, set /CS3 high. 14. Set /CS4 low, read data CH2 and start new conversion with CH1, set /CS4 high. Then you would repeat starting at 5. This would alternate reads between different channels for each ADS1118 . Again each read/start conversion is done with a single /CS going low, using the 32-bit data transmission. Joseph Wu
↧