Setting Core clock frequency of MK02FN128VFM10 = 100 MHz

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Setting Core clock frequency of MK02FN128VFM10 = 100 MHz

ソリューションへジャンプ
1,351件の閲覧回数
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 解決策
1,270件の閲覧回数
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 返答(返信)
1,271件の閲覧回数
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 件の賞賛
返信
1,270件の閲覧回数
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 件の賞賛
返信