Content originally posted in LPCWare by CodeRedSupport on Wed Mar 17 02:52:57 MST 2010
Barry,
The link from brucesegal is a red herring. As per the post from kendwyer, the clock speed that the MCU runs your code at is set by the initialisation code contained within the CMSISv1p30_LPC13xx library project (assuming of course that you are linking with CMSIS).
Thus if you want to change from the default setting of 72MHz, you need to look at the #define's and the SystemInit() code in system_LPC13xx.c together with the LPC13 user manual, and modfiy as appropriate.
You should note that changing the code within the CMSIS library project will cause all projects in that workspace to use the modified code. If this is problem for you, then you may want to create a copy of the CMSIS project and modify the copy [making sure you update the links from your application project], or to copy the CMSIS files into the application project you want to use the modified clock speed in.
Regards,
CodeRedSupport