I'm using the Teensy ADC library, continuous mode. For instance my setup might look like:
Is there an easy way to figure out the actual sampling speed? I can do an oscilloscopy on it, but a programmatic way would be preferable. It's just to hang a time axis on the conversions.
Code:
adc->adc0->setResolution(12);
adc->adc0->setSamplingSpeed(ADC_SAMPLING_SPEED::VERY_HIGH_SPEED);
adc->adc0->setConversionSpeed(ADC_CONVERSION_SPEED::HIGH_SPEED);
adc->adc0->setAveraging(1);
adc->adc0->enableInterrupts(isr);
adc->adc0->startContinuous(VID);
Is there an easy way to figure out the actual sampling speed? I can do an oscilloscopy on it, but a programmatic way would be preferable. It's just to hang a time axis on the conversions.