MKW24D512 OSC_CR Register

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MKW24D512 OSC_CR Register

482 Views
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 Kudos
1 Reply

390 Views
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 Kudos