chen3ten 发表于 2017-8-10 17:32:18

【研究了1天,没搞清STM32F0的ADC的时钟怎么启动的】


如上图,STM32F0的ADC可以选两种时钟,通过ADCx->CFGR2进行选择,复位之后该寄存器是0,也就是选ADCCLK,也就是名字为HSI14的时钟,它通过RCC->CR2初始化,复位之后该寄存器是0xXX00 XX80,也就是HSI14ON是关闭的,官方的库文件里关于ADC的例程,在初始化ADC时也没有对该寄存器进行设置。但ADC确实可以工作。会不会是下面这个原因?

这1位是0,所以HSI14 oscillator可以被ADC自动打开?

另外在文档里找到了这两句话“The ADC interface can automatically switch ON/OFF the 14 MHz internal oscillator to save power.”“The 14 MHz RC oscillator can be configured by software either to be turned on/off (“auto-off mode”) by the ADC interface or to be always enabled. ”

zero99 发表于 2017-8-10 17:49:43

楼主看下这边有帮助没
https://www.stmcu.org.cn/module/foru ... +%E5%90%AF%E5%8A%A8

摩能威 发表于 2017-8-11 10:58:56

zero99 发表于 2017-8-10 17:49
楼主看下这边有帮助没
https://www.stmcu.org.cn/module/forum/search.php?mod=forum&searchid=190&orderby=las ...

这个链接打不开啊

zero99 发表于 2017-8-15 14:48:52

摩能威 发表于 2017-8-11 10:58
这个链接打不开啊

链接改过了,再试试

夕阳武士 发表于 2017-11-16 11:59:36

楼主搞清楚了吗?望指点下

pan200x 发表于 2019-3-30 11:28:53

Bit 0 HSI14ON: HSI14 clock enable,这个怎么解释?
页: [1]
查看完整版本: 【研究了1天,没搞清STM32F0的ADC的时钟怎么启动的】