cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7 ADC Sampling Calculation

voyvoda .
Senior

Hello,

I'm using ADC with DMA of STM32F7 MCU. I want to calculate the ADC Sampling Rate. Is there a formula that I can use ?

With 12Bit resolution, Is it possible to reach 2.4MSPS ?

I'm using CubeMX for code generation.

2 REPLIES 2
Tomas DRESLER
Senior II

The ADCCLK is derived from APB bus by prescaler /2, ... The conversion takes n bits + sample time as a simple sum, calculated in ADCCLKs. The resolution can be reduced from 12 to 10, 8 and 6 bits, reducing conversion time. Sampling time needs to be adjusted according to the source impedance (see datasheet).

Simple example is in RM, chapter 15.5.

AvaTar
Lead

The Reference Manual used to give a nice timing diagram in the ADC section, and the available timing values in the respective config register description.

The datasheet gives max. timing limits.

I don't mess with Cube, not sure what you can make there ...