How does STM32 ADC affect sampling rate?

How does STM32 ADC affect sampling rate?

STM32 ADC (dual simultaneous) scan mode feature affecting sampling rate? I am using an STM32G431 in dual mode, attempting to capture a 10kHz wave. I have been having a hard time getting control of the sampling rate via the HAL library interface/prescalers. I noticed I can achieve the rates and control over said rates if I have the scan feature on.

Is the stm32f3 discovery board interleaved mode?

I am sampling a signal on the STM32F3 Discovery board (stm32f303vct6) with two ADCs working in interleaved mode. It works great with a 200kHz 1V sine wave. But when I apply 10kHz 100mV sine wave, I see some interesting patterns.

Can you use ADC with DMA on circular mode?

Try using ADC with DMA on in circular mode and continuous conversation on as serge said. You can also follow MyaqoobEmbedded tutorial on multiple adc with stm 32 on YouTube. Thanks for contributing an answer to Stack Overflow!

How are ADCs like sampling in lower resolution?

ADCs seem to convert all the voltage levels in a specific gap into a single number. It is like sampling in lower resolution. When you see the images below it will be clear. I have also tried to run ADCs in independent mode and triggered them with 2 synchronized timers but still, the pattern is there.

When does the ADC start in single conversion mode?

In Single Conversion mode, the ADC does one conversion. This mode is started either by setting the ADON bit in the ADC_CR2 register (for a regular channel only) or by an external trigger (for a regular or injected channel), while the CONT bit is 0. Once the conversion of the selected channel is complete: If a regular channel was converted:

How to read from multiple channels of the ADC?

Suggestion: You can start ADC conversion using DMA, provide RAM location and number of data to be transferred. You can collect converted data when DMA transfer complete callback invokes. HAL library provides APIs to start ADC conversion using DMA and a weak implementation of callback.

How is the total ADC conversion time calculated?

The Total ADC Conversion Time is calculated as follows: Tconv = Sampling time + 12.5 cycles

When to use dual Fast interleaved ADC mode?

The dual fast interleaved ADC mode is intended for the conversion of one channel. ADC1 and ADC2 convert the selected channel alternately with a period of 7 ADC clock cycles. This means that the channel is converted every 7 clock cycles. Each ADC converts the channel every 14 ADC clock cycles. With a 14 MHz ADC clock, it is thus possible to reach

When do you use dual regular simultaneous mode?

The dual regular simultaneous mode can be used in applications where two signals should be sampled and converted at the same time. For example, to measure and plot the single-phase or three-phase instantaneous electrical power: pn(t) = un(t) × in(t).

What does it mean to convert adc1 to ADC2?

Another problem, the conversion starts like this (after initializing the two ADC) : ADC_SoftwareStartConv (ADC1); ADC_SoftwareStartConv (ADC2); Does-it mean that ADC2 starts to convert one cycle after ADC1, thus first both samples are not converted simultaneously ? Thks.