Content originally posted in LPCWare by NXP_Paul on Wed Oct 22 11:44:04 MST 2014
Hello
I confirmed your findings, and am now investigating why a 30MHz system clock cannot be obtained using the set_pll() ROM-API function. While I investigate this, you can obtain the 30 MHz clock by using the following values in system_LPC8xx.c:
#define CLOCK_SETUP 1
#define SYSOSCCTRL_Val 0x00000000 // Reset: 0x000
#define WDTOSCCTRL_Val 0x00000000 // Reset: 0x000
#define SYSPLLCTRL_Val 0x00000024 // Reset: 0x000
#define SYSPLLCLKSEL_Val 0x00000000 // Reset: 0x000
#define MAINCLKSEL_Val 0x00000003 // Reset: 0x000
#define SYSAHBCLKDIV_Val 0x00000002 // Reset: 0x001
Regards
Paul