STM32L4 ADC oversampling - What is the total sampling time ?
I using STM32L4 ADC in my project to sample analog acceleration data. The ADC conversion is triggered by 10kHz timer by which i was able to achieve 10kHz sampling rate using DMA.
Now, i wanted to implement oversampling by a factor of 2. Now what is my sampling frequency?
Is each sample still collected at 10kHz and averaged to reach 5kHz? Meaning if want to collect 100 data samples (DMA complete callback), would the total sampling period to complete 100 acquisitions, increased by the oversampling factor of 2?
Example:
With 10kHz, 100 points
Total sampling time = (100/10k) = 0.01 seconds (Time taken for DMA complete callback to trigger)
With oversampling of 2,
Total sampling time = (100/5k) = 0.02 seconds (Time taken for DMA complete callback to trigger)
Is my understanding correct?
