Author Topic: STM32F030F4P6 ADC usage  (Read 2950 times)

0 Members and 1 Guest are viewing this topic.

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
STM32F030F4P6 ADC usage
« on: March 12, 2018, 10:48:11 pm »
Hi All,

Does anyone have any good information / sample code with the STM32F030F4P6 chip's ADCs?

ADC's are one specific area I'm somewhat weak on. I could really do with something / reference to help guide me through setting one up. (e.g. to read a potentiometer)

I'm a bit lost as where to start using the HAL, what needs to be configured and so on....
« Last Edit: March 13, 2018, 08:15:13 am by CM800 »
 

Offline archnemesis

  • Contributor
  • Posts: 19
  • Country: us
Re: STM32F4030F4 ADC usage
« Reply #1 on: March 12, 2018, 11:46:17 pm »
Pretty good little tutorial here: https://visualgdb.com/tutorials/arm/stm32/adc/

Not the most detailed but enough to at least get you going.
 

Offline MT

  • Super Contributor
  • ***
  • Posts: 1616
  • Country: aq
Re: STM32F4030F4 ADC usage
« Reply #2 on: March 13, 2018, 12:21:22 am »
Hi All,

Does anyone have any good information / sample code with the STM32F4030 chip's ADCs?

ADC's are one specific area I'm somewhat weak on. I could really do with something / reference to help guide me through setting one up. (e.g. to read a potentiometer)

I'm a bit lost as where to start using the HAL, what needs to be configured and so on....

Remeber F4 series ADC are incredible noisy.
 

Offline emeb

  • Newbie
  • Posts: 7
  • Country: us
Re: STM32F4030F4 ADC usage
« Reply #3 on: March 13, 2018, 06:03:39 am »
STM32F4030F4 doesn't correlate to any existing part. Is it an STM32F4xx or an STM32F0xx?

In general, HAL examples are a good place to start - grab the library zipfile for the series part you're using and look in the Projects/<board>/Examples/ADC directory - you'll find some basic examples that show how to set it up. CubeMX may be helpful too.
 

Offline CM800Topic starter

  • Frequent Contributor
  • **
  • Posts: 882
  • Country: 00
Re: STM32F4030F4 ADC usage
« Reply #4 on: March 13, 2018, 08:14:31 am »
STM32F4030F4 doesn't correlate to any existing part. Is it an STM32F4xx or an STM32F0xx?

In general, HAL examples are a good place to start - grab the library zipfile for the series part you're using and look in the Projects/<board>/Examples/ADC directory - you'll find some basic examples that show how to set it up. CubeMX may be helpful too.

That's what I get from doing it from memory  :palm:

STM32F030F4P6
 

Offline llkiwi2006

  • Regular Contributor
  • *
  • Posts: 105
  • Country: nz
Re: STM32F030F4P6 ADC usage
« Reply #5 on: March 13, 2018, 09:05:59 am »
Also read the reference manual's section on ADC.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf