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?
Understanding ADC Continuous Mode Configuration
- SSSSSteven
- Posts: 11
- Joined: Tue Dec 05, 2023 1:53 pm
- Location: Shanghai, China
- Contact:
Who is online
Users browsing this forum: Bing [Bot], cdollar and 96 guests