Two startSingleRead() in parallel in Teensy 3.6?

Status
Not open for further replies.

ithinu

New member
Hello,
Given that Teensy 3.6 is told to have two independent ADCs, I wonder if I could call two startSingleRead() one for a pin measured by ADC0, one measured by ADC1, then call some rewritten versions of readSingle(DAC number)?
 
Yes - What I have done in the past with the my Well monitor code as to have an IntervalTimer, read the previous reading and start a new reading.

That is you can call for each ADC, you can do something like: adc->startSingleRead(_pin, _adc_num)
You can then see if the conversion is done: adc->isComplete(_adc_num)
and if so call: uint16_t cur_value = adc->readSingle(_adc_num)
 
Status
Not open for further replies.
Back
Top