Skip to main content
voyvoda .
Senior
September 13, 2018
Question

STM32F7 ADC Sampling Calculation

  • September 13, 2018
  • 2 replies
  • 682 views

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.

This topic has been closed for replies.

2 replies

Tomas DRESLER
Associate II
September 13, 2018

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
Senior III
September 13, 2018

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 ...