Page 1 of 1

Understanding ADC Continuous Mode Configuration

Posted: Wed Apr 17, 2024 8:38 pm
by SSSSSteven
It said in the document of ADC Continuous Mode (https://docs.espressif.com/projects/esp ... nuous.html), to use ADC Continuous Mode, we need to set the ADC channels, sampling frequency, conversion frame size and max buffer size.

But the question is, how big should the conversion frame size be set? How many conversion results are included in a single conversion frame?

In my understanding, 1 conversion result = 4 bytes (SOC_ADC_DIGI_RESULT_BYTES), so if I set a 128 bytes conversion frame size, there will be 128/4 = 32 conversion results in one conversion frame, and, if I use 2 ADC channels with a 1KHz sampling frequency, there will be 2 conversion result per millisecond, so generate 1 conversion frame will cost 32/2 = 16ms. Is this correct?