Example-10: STM32f407 Single channel ADC example (Some of it's different modes)

a) Single-channel, single conversion mode example:

 Library dependencies

  • STM32F4xx_StdPeriph_Driver
    • stm32f4xx_rcc
    • stm32f4xx_adc
    • stm32f4xx_gpio
  • Code

b) using "Single-channel, single conversion mode" for conversion continuously by start ADC again and again...

  change example in part a)

  to:

c) Single-channel continuous conversion mode

  change example in part a):

and then change the main function to:

THE END.

Sharif University of Technology, Tehran, Iran