Increasing ADC reading speed

Dsolberg8132

New member
I am working on porting an application from an Arduino Mega to a Teensy 4.1. One of the most important requirments is to monitor several ADC inputs and react as fast as possible if one of them exceeds a preset level.

When I did the Arduino Mega sketch I found some information in Simon Monk's book on increasing the ADC speed. This is what he recommended:

ADCSRA &= ~PS_128;//remove prescale of 128
ADCSRA |= PS_16;// add prescale of 16 (1MHZ)

This software has been in use for several years and has provided the protection that I needed, I have not measured the reaction time but from my experience it is fast enough. I see that the ADC read speed is natively faster in the Teensy 4.1 when compared to an Arduino Mega but I don't know how much Monk's recommendation increased the default speed.

Will the Teensy 4.1 still be faster or are their comparable settings to increase the speed?

Thanks for your help,

Don
 
Back
Top