MKW24D512 OSC_CR Register

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

MKW24D512 OSC_CR Register

890 次查看
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 回复

798 次查看
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 项奖励
回复