AnsweredAssumed Answered

Need help setting up MCG on K70

Question asked by crezyoz on Oct 23, 2012
Latest reply on Dec 18, 2012 by crezyoz

I want to run a K70 at 120Mhz using a 12 Mhz xtal connected to EXTAL1/XTAL1(ext osc 1). Nothing connected to Ext Osc 0.

 

How do I setup the MCG to do that? I can't seem to figure that out. PE's cpu.c init_hardware code hangs here:

 

 

  while((MCG_S & MCG_S_IREFST_MASK) != 0x00U) { /* Check that the source of the FLL reference clock is the external reference clock. */

  }

  while((MCG_S & 0x0CU) != 0x08U) {    /* Wait until external reference clock is selected as MCG output */

  }

 

 

But FLL is disabled.   Please advise.



Outcomes