Lpc12xx pll

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lpc12xx pll

315 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arielcai on Fri Jul 29 08:02:46 MST 2011
I want to run the LPC1226 at 24 Mhz using the rc clock.
I have been trying to do this whitout success.
Please a need a simple code example to do it work.

Thanks
0 Kudos
2 Replies

304 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by arielcai on Fri Jul 29 14:07:25 MST 2011
Thank very much Zero[B][/B]
:)
0 Kudos

304 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jul 29 08:34:26 MST 2011
In cr_startup_lpcxx.c in your source folder System_Init() in system_LPCxxxx.c is called.

There you can find your PLL setting:

1. Change SYSPLLCLKSEL:

#define SYSPLLCLKSEL_Val 0x00000000

Now IRC is selected :)

2. Set 24MHz

#define SYSPLLCTRL_Val 0x00000041

See: Table 54. PLL configuration examples

That's all :eek:
0 Kudos