MKW24D512 OSC_CR Register

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

MKW24D512 OSC_CR Register

884件の閲覧回数
leeyong
Contributor I

About OSC_CR register,confiruged in mcg.c line 268, I want to add load capacitance for external crystals, I modfied

OSC_CR = OSC_CR_ERCLKEN_MASK | OSC_CR_EREFSTEN_MASK | OSC_CR_SC2P_MASK;

but no effect to external crystals, and modfied OSC_CR=0x00 or OSCR=0xFF, The program can also run,why?

How to add load capacitance for external crystals?

0 件の賞賛
返信
1 返信

792件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Lee yong,

First off, the MCG mode setup determine whether the MCU can run well or not.

So it's easily to understand that the modification of OSC_CR register setting without cause any effects on the program working.

And I'd highly recommend you to refer to the demo of MKW24 in the KSDK 1.2 about adding load capacitance for external crystals.

Please download the KSDK 1.2 through the link as below.

Software Development Kit for Kinetis MCUs|Freescale
Have a great day,
Ping

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

0 件の賞賛
返信