简体   繁体   English

程序执行期间更改CPU时钟速度

[英]changing CPU clock speed during program exuction

Main applicataion on our micro (RH850) were developed to work with clock speed X Mhz. 我们的微型计算机(RH850)的主要应用开发为以时钟速度X Mhz工作。 Bootloader which is alwyas executed first, initializes clock speed to X/3 MHz. 首先被alwyas执行的Bootloader将时钟速度初始化为X / 3 MHz。 We cant change speed in bootloader to X Mhz, due to some limiations within libaraires which are used by the bootloader. 由于引导加载程序使用的libaraire中存在一些限制,因此我们无法将引导加载程序中的速度更改为X Mhz。

Is there any possiblity to reinitialize clock speed in bootloader from X/3 Mhz to X MHz, lets say, just before bootloader does jump to application? 是否有可能在Bootloader跳入应用程序之前将Bootloader中的时钟速度从X / 3 Mhz重新初始化为X MHz?

What is the common practice of such a clock handling embedded systems? 这种时钟处理嵌入式系统的普遍做法是什么? Is there any general way, or is this rather micro specific? 有什么通用的方法,或者说这是微观的?

regards J. 问候J.

So it worked in following way: 因此它以以下方式工作:

  1. switch back to main oscillator 切换回主振荡器
  2. disable PLLs 禁用PLL
  3. reconfigure PLLs 重新配置PLL
  4. enable PLLs 使能PLL
  5. change CPU source to PLL you just reconfigured 将CPU源更改为刚刚重新配置的PLL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM