We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
Cheers Weston - I missed it because I was searching for the register bit name i.e. ADCEN - I can't quite get my head around using trivial functions to set bits in registers rather than just writing to the registers directly.
"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.
:-) :-)