KL05 Clock

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
801件の閲覧回数
danreltek
Contributor III

I have a FRDM-KL05Z board and I noticed something peculiar that's bothering me.

The fastest crystal on the board 8.0 MHz.

Yet one of the LED blink projects (in Keil uVision, I think) uses a delay loop that simply increments a local variable. I doesn't use any system timer or interrupt.

The trouble is that given the numbers it is counting to, there is no way it should be able to do this in the time it actually takes. It seems like it is actually running at its max speed of 48Mhz.

 

Is there a clock multiplier on chip or some other internal reference?

 

Thanks

Dan

ラベル(1)
0 件の賞賛
1 解決策
577件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Dan,

Yes, you can calculate it according the clocking diagram above and check the Reference Manual ,

Check whether 4MHz can meet your need, if yes , you need not to use external crystal .

Best Regards,

Alice

------------------------------------------------------------------------------------------

If this post answers your question, please click the Correct Answer button.

-----------------------------------------------------------------------------------

If this post help your question, please click the helpful Answer button.

元の投稿で解決策を見る

0 件の賞賛
5 返答(返信)
577件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Dan,

There are not only one multiplier on the chip,

The selection and multiplexing of system clock sources is controlled and programmed via

the MCG module. The setting of clock dividers and module clock gating for the system

are programmed via the SIM module.

I suggest you firstly see the Clocking diagram(see screenshot below)(KL05RM->p106).

pastedImage_0.png

And we can choose clock source from these :

pastedImage_3.png

Hope it helps

Alice

0 件の賞賛
577件の閲覧回数
danreltek
Contributor III

Thanks Alice,

So this seems to suggest that when I come to designing a purpose built PCB, I do not have to use any external crystal if I use the 4MHz IRC.

Is that true? If so, I like it a lot!

Regards

Dan

0 件の賞賛
578件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Dan,

Yes, you can calculate it according the clocking diagram above and check the Reference Manual ,

Check whether 4MHz can meet your need, if yes , you need not to use external crystal .

Best Regards,

Alice

------------------------------------------------------------------------------------------

If this post answers your question, please click the Correct Answer button.

-----------------------------------------------------------------------------------

If this post help your question, please click the helpful Answer button.

0 件の賞賛
577件の閲覧回数
danreltek
Contributor III

Great!

Thanks Alice

0 件の賞賛
577件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

You are welcome !

0 件の賞賛