AnsweredAssumed Answered

FRDM-KL46Z Internal Reference clock to 48 MHz?

Question asked by Ishmeet S on Jun 17, 2014
Latest reply on Jun 17, 2014 by Dragos GALALAE

I am working on IAR compiler for FRDM-KL46Z Platform.

I want to use Internal clock and set it to 48 MHz (or as maximum as possible).

Till now I have done the following steps in the example sysinit.c file and function sysinit() provided.


#define NO_PLL_INIT


#if defined(NO_PLL_INIT)

mcg_clk_hz = 48000000;     // It only works on 21000000 Hz, otherwise I get garbage prints on UART0.


uart0_clk_khz = (mcg_clk_hz) / 1000;




In FEI mode, if I do FBI mode or BLPI mode, I get very less mcu clock.

I want the mcu clk to be as high as possible, in internal clock. (According to datasheet I think it is supported, but I don't know how?)


Can anyone please explain or any code reference, much obliged.