ESP32C3 ADC DMA Circular mode
Posted: Mon Aug 01, 2022 1:45 pm
Hi ESP32 Team,
I need to sample two analog channels using ADC with DMA in circular mode, but i'm not able to find any example to do that. I've found an example where it's used the ADC with the DMA but after each EOF DMA interrupt the ADC and the DMA are restarted. I don't want to do that, but I need which the DMA tranfers the ADC data from register to a buffer and trigger an interrupt without stopping. I usually divide the buffer into two peaces. While the DMA is trasferring the data into the first half buffer I can analyse the data that is present into the second half buffer.
Is there anyone that who has done something similar?
Thanks a lot,
Giulio
I need to sample two analog channels using ADC with DMA in circular mode, but i'm not able to find any example to do that. I've found an example where it's used the ADC with the DMA but after each EOF DMA interrupt the ADC and the DMA are restarted. I don't want to do that, but I need which the DMA tranfers the ADC data from register to a buffer and trigger an interrupt without stopping. I usually divide the buffer into two peaces. While the DMA is trasferring the data into the first half buffer I can analyse the data that is present into the second half buffer.
Is there anyone that who has done something similar?
Thanks a lot,
Giulio