Setting Core clock frequency of MK02FN128VFM10 = 100 MHz

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

Setting Core clock frequency of MK02FN128VFM10 = 100 MHz

跳至解决方案
615 次查看
shrutikharwandi
Contributor I

Hello,

I'm using Kinetis Design Studio 3.0.0 for the controller MK02FN128VFM10 with 8 MHz external crystal. I want to set core clock of this controller to its maximum value, i.e. 100 MHz.

Right now, MCG_C4[DMX32] = 1 and MCG_C4[DRST_DRS] = 11 (High Range). In this case, default value 80 MHz as core clock frequency is being set. How to set it for 100 MHz?

Please help.

Want to get the solution to this as soon as possible.

Thanks!

标签 (1)
0 项奖励
1 解答
534 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Shruti,

   8Mhz external crystal can't get 100Mhz core clock.

   If you want to get 100Mhz core clock, please choose 10Mhz external crystal.

Let me tell you why 8Mhz crystal can't get 100Mhz core clock.

 If you want to get 100Mhz, from reference manual:

  pastedImage_2.png

You can get that the input frequency should be 39.0625Khz.

If you use the 8Mhz external crystal choose FEE mode, you will find the you need FRDIV = 8000/39.0625=204.5.

Did the FRDIV have 204.5 data? No, please see this picture:

pastedImage_3.png

But if you choose 10Mhz external crystal, you can get FRDIV= 10000/39.0625=256, from the above picture, you can find FRDIV=0b011 meet the demand.

Actually, from the KDS PE configuration, you also can get that:

pastedImage_1.png

Wish it helps you!

If you still have question, please let me know!


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
2 回复数
535 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Shruti,

   8Mhz external crystal can't get 100Mhz core clock.

   If you want to get 100Mhz core clock, please choose 10Mhz external crystal.

Let me tell you why 8Mhz crystal can't get 100Mhz core clock.

 If you want to get 100Mhz, from reference manual:

  pastedImage_2.png

You can get that the input frequency should be 39.0625Khz.

If you use the 8Mhz external crystal choose FEE mode, you will find the you need FRDIV = 8000/39.0625=204.5.

Did the FRDIV have 204.5 data? No, please see this picture:

pastedImage_3.png

But if you choose 10Mhz external crystal, you can get FRDIV= 10000/39.0625=256, from the above picture, you can find FRDIV=0b011 meet the demand.

Actually, from the KDS PE configuration, you also can get that:

pastedImage_1.png

Wish it helps you!

If you still have question, please let me know!


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
534 次查看
shrutikharwandi
Contributor I

Thanks a lot!

Though in the current scenario I cannot use 10 MHz external crystal, this information was extremely helpful :smileyhappy:

0 项奖励