AnsweredAssumed Answered

MKM34 Clock Intialization

Question asked by DHRUV A on Feb 6, 2017
Latest reply on Mar 3, 2017 by DHRUV A

Hi All,

 

I have designed a custom board with MKM device. I have to use external 32KHz Oscillator for RTC and System Clock. I am unable to run the ADC and UART with External 32.768 KHz Clock. Could someone please suggest the configuration and initialization sequence for this issue. 

 

I am able to run the peripherals with Internal Clock & when I enable the external Clock Macro. The program is not running. I have connected the 32.768 KHz Xtal on XTAL32 & EXTAL32.

 

Please suggest the solution to resolve this issue. Here I am giving the initialization sequence with the external clock source.

 

SIM_SelClkout (CLKOUT_SRC2);
PORT_Init (PORTF,PORT_MODULE_ALT3_MODE,PIN7);

/* clock mode 1:1:1, 24MHz */
SIM_SetClkMode (SYSCLK_MODE0);
SIM_SetClkDiv (SYSCLK_DIV1);
FLL_Init (FLL_MODULE_FEE_24MHZ_CONFIG);

/* UART1 init 9600bd */
PORT_Init (PORTI, PORT_MODULE_ALT2_MODE, PIN0|PIN1);
UART_Init (UART1, UART_MODULE_INTRMODE_CONFIG(9600,24e6));

 

Regards,

Druv

Outcomes