Hi
12MHz crystal can be used for 180MHz operation (in HSRUN mode).
http://www.utasker.com/kinetis/MCG.html
See below (simulation of K66 board) with the following settings:
#define CRYSTAL_FREQUENCY 12000000 // 12 MHz crystal
#define CLOCK_DIV 1 // input must be divided to 8MHz..16MHz range (/1 to /8)
#define CLOCK_MUL 30 // the PLL multiplication factor to achieve operating frequency of 180MHz (x16 to x47 possible) [PLL output range 90..180MHz - VCO is PLL * 2]
#define BUS_CLOCK_DIVIDE 3 // 180/3 to give 60MHz (max. 60MHz)
#define FLEX_CLOCK_DIVIDE 3 // 180/3 to give 60MHz (max. 60MHz)
#define FLASH_CLOCK_DIVIDE 7 // 180/7 to give 25.714MHz (max. 28MHz)
Beware of restrictions in HSRUN mode - for example flash programming is not possible.
Regards
Mark
