I am trying to implement some Sample and Hold circuit on teensy 4.1. Maximum ADC speed that teensy 4.1 supports is 1Msps (thats a shame keeping in mind 600 Mhz core clock ). But what if I want to increase the time one sample is being taken? Ideally I would like to make it around 1 us for single sample. How do I change the conversion speed?
There are some huge ADC libararies for teensy on the github, but those are really difficult to understand as they account for any ADC module modification... I just want to change the conversion speed and keep using good old analogRead() function. I thank you in advance.
P.S. 1 us sample time might be unreal at 1Msps. So I am ready to lower the ADC sample speed, only if you hint/tell me how (not even sure what is the default sample speed.)
What do you mean by that? An ADC ideally provides a sample of the instantaneous voltage at its input. The extent to which it does, is typically viewed as a figure of merit. What are you trying to do?
Regardless, have you tried looking in the datasheet for the T4.1's processor?
You know that there is a very small internal capacitor at each adc pin. That capacitor works like a voltage buffer. If you did not understand conversion time term, maybe you can understand the time, that small internal capacitor is exposed to the measured voltage. The time mcu gives to charge that small capacitor before further proccessing. Maybe sample&hold is more recognizable for you.
Proccessor datasheet does not provide programming guide, I am searching for easy built in functions (or at least something like that).