Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.33k
stars
7.2k
forks
source link
ESP32s3 Interrupt ADC1_DONE_INT in Continuous ADC mode have fixed frequency regardless on the sample rate of the ADC (Is it a hardware bug ?)) (IDFGH-10365) #11623
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
I am working with the ADC_continous Example from ESP-IDF 5.0 with some modification.
I saw many issues with Continuous ADC sample rate #11604 ,
#10612
I tried to to test myself the sample rate of the ADC and The issue I am facing is that changing .sample_freq_hz doesn't have an effect on the ADC1_DONE_INT Interrupt (check ESP32s3 TRM Register 39.72. APB_SARADC_INT_ENA_REG (0x005C) .
I am checking the sampling rate by toggling a GPIO15 at APB_ADC_INT interrupt. but the Interrupt frequency does not seem to change when I change .sample_freq_hz
This is what I get. the GPIO is toggled inside the interrupt, so the expected behavior's is that the GPIO is toggled at the same frequency I set for the ADC sample rate. But it is always fixed at around 1.4MHZ
Here is my source code and the picture from the scope.
Answers checklist.
General issue report
I am working with the ADC_continous Example from ESP-IDF 5.0 with some modification.
I saw many issues with Continuous ADC sample rate #11604 , #10612
I tried to to test myself the sample rate of the ADC and The issue I am facing is that changing .sample_freq_hz doesn't have an effect on the ADC1_DONE_INT Interrupt (check ESP32s3 TRM Register 39.72. APB_SARADC_INT_ENA_REG (0x005C) .
I am checking the sampling rate by toggling a GPIO15 at APB_ADC_INT interrupt. but the Interrupt frequency does not seem to change when I change .sample_freq_hz
This is what I get. the GPIO is toggled inside the interrupt, so the expected behavior's is that the GPIO is toggled at the same frequency I set for the ADC sample rate. But it is always fixed at around 1.4MHZ
Here is my source code and the picture from the scope.