外部时钟出错时,系统自动切换到内部HSI为Cortex-M3提供时钟,同时系统仍在不停地检测外部时钟是否处于稳定状态,一旦检测到外部时钟稳定后,此时如果你的HSERDYIE位使能,将产生中断,用户可在对应的中断处理函数中再次使能HSE,并且重新配置PLL。
这个流程一般属于用户的程序开发思路,在ST的软件库里的例程中有这样一个例子,你可以去看看。
RCC Example Configure the system clock source, AHB, APB2 and APB1 prescaler. It demonstrates also the Clock Security System (CSS) which handles the High Speed External clock (HSE) failure detection and system clock back-up.
|