Forced to Run Core Clock at Half Speed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Forced to Run Core Clock at Half Speed

跳至解决方案
1,668 次查看
derekschumacher
Contributor II

Using processor expert, I am trying to set up the microcontroller to run off of an external clock source. I think we have the processor expert settings mostly figured out, but for reasons that are unclear to me, we can't run the core clock at the MCG output frequency.

We are using the MK22F256VLL12. Here is the working configuration (note core clock speed of 56 MHz):
Capture.PNG

And here is the non-working configuration (note core clock speed of 112 MHz):
Capture2.PNG

According to this image from the manual, it really seems like we should be able to run the core clock at the MCGOUTCLK frequency.

Capture.PNG

Is this an error in processor expert? Or have I neglected to do something important with the configuration? Or am I  just misunderstanding how the MCG works?

标签 (1)
0 项奖励
回复
1 解答
1,386 次查看
mjbcswitzerland
Specialist V

Derek

If you are using the K22FN256 you may need to configure the high speed run mode (maybe at a different location in the tool?).

In the normal RUN mode the maximum specified core/system speeds are 80MHz and the bus clock needs to be <= 50MHz.

Flash can be <= 26.667 MHz.

If you configure high speed mode of operation you can then work at the full 120MHz core/system speed but you won't be able to program or erase flash in this mode.

Below are the optimal configurations for the K22FN256 in the two modes as shown by the FRDM-K22F running in the uTasker simulator:

pastedImage_0.png

RUN mode

pastedImage_1.png

High-Speed RUN mode.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

K22: http://www.utasker.com/kinetis/FRDM-K22F.html / http://www.utasker.com/kinetis/TWR-K22F120M.html

For the complete "out-of-the-box" Kinetis experience and faster time to market

:smileyinfo: Out-of-the-box support for 46 Kinetis boards and 10 IDEs (460 combinations from a single code source with no porting required)

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,387 次查看
mjbcswitzerland
Specialist V

Derek

If you are using the K22FN256 you may need to configure the high speed run mode (maybe at a different location in the tool?).

In the normal RUN mode the maximum specified core/system speeds are 80MHz and the bus clock needs to be <= 50MHz.

Flash can be <= 26.667 MHz.

If you configure high speed mode of operation you can then work at the full 120MHz core/system speed but you won't be able to program or erase flash in this mode.

Below are the optimal configurations for the K22FN256 in the two modes as shown by the FRDM-K22F running in the uTasker simulator:

pastedImage_0.png

RUN mode

pastedImage_1.png

High-Speed RUN mode.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

K22: http://www.utasker.com/kinetis/FRDM-K22F.html / http://www.utasker.com/kinetis/TWR-K22F120M.html

For the complete "out-of-the-box" Kinetis experience and faster time to market

:smileyinfo: Out-of-the-box support for 46 Kinetis boards and 10 IDEs (460 combinations from a single code source with no porting required)

0 项奖励
回复
1,386 次查看
derekschumacher
Contributor II

I'm surprised I was able to run with the 56 MHz bus speed since that violates the <= 50 MHz rule in normal run mode. Anywho you are absolutely correct, I needed to allow high speed run modes from the CPU component:

pastedImage_0.png

0 项奖励
回复
1,386 次查看
mjbcswitzerland
Specialist V

Derek

Actually I have had no problems (in the lab) running the K22FNxxx at 120MHz core and 60MHz bus, and programming Flash (in normal RUN mode).

In HS-RUN Flash operations will return errors (and there are a few other chip restrictions).

It is however not recommended to use these settings out-of-spec. in (real) products, although they probably will work (under normal conditions).

I have seen various 'products' based on the Teensy 3.2 (72MHz K20) using 96MHz core clock. Some people obviously don't really care and find it exciting to live dangerously and over-clock their products....

Regards

Mark

0 项奖励
回复
1,386 次查看
derekschumacher
Contributor II

Just to clarify, am I ok to run in high speed mode during operation, as long as I am within the spec for high-speed operation?

You're recommendation is just to program in normal-speed operation yes?

0 项奖励
回复
1,386 次查看
mjbcswitzerland
Specialist V

Derek

These are the HSRUN mode restritions. Otherwise you can use stay in that mode and use the full speed of the device.

pastedImage_0.png

Regards

Mark

0 项奖励
回复