Adminhs пишет:
Можно через readADC_ADS_ALL() в переменную ADSDATA[x] запрашивать все ацп или только один через val=readADC_ADS(0)
Но нужно учитывать, что это i2c ацп и он не быстрый.
Макс, в даташите по ADS111x сказано что есть два режима работы:
The ADS111x have two available conversion modes:
single-shot and continuous-conversion. In single-shot
mode, the ADC performs one conversion of the input signal upon request, stores the conversion value to an
internal conversion register, and then enters a power-down state. This mode is intended to provide significant
power savings in systems that only require periodic conversions or when there are long idle periods between
conversions. In continuous-conversion mode, the ADC automatically begins a conversion of the input signal as
soon as the previous conversion is completed. The rate of continuous conversion is equal to the programmed
data rate. Data can be read at any time and always reflect the most recent completed conversion.
вопрос - у тебя в коде это как работает? каждый раз при вызове фунции чтения я получаю актуальную информацию по входу, или просто считываю что он в continuous-conversion mode последнее прочитал.