This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F0 ADC clock enable

I'm trying to configure the ADC in a STM32F0 device. I notice in the RCC_APB2ENR register there is an ADCEN bit which seems to enable the peripheral clock. In all ADC example code I have not seen this bit being written to. My question is do I need to set this bit when I am using the ADC clocked from it's own 14MHz asynchronous clock and basically what is this bit for?

Parents
  • "I can't quite get my head around using trivial functions to set bits in registers rather than just writing to the registers directly."

    Someone noticed that C/C++ programs are much too compact, and felt a need to introduce much more code text to get things done. It might have been Logitech or some other keyboard manufacturer, who wanted to increase the keyboard wear so they can sell more keyboards.

Reply
  • "I can't quite get my head around using trivial functions to set bits in registers rather than just writing to the registers directly."

    Someone noticed that C/C++ programs are much too compact, and felt a need to introduce much more code text to get things done. It might have been Logitech or some other keyboard manufacturer, who wanted to increase the keyboard wear so they can sell more keyboards.

Children