this is what i wrote:
LPC_SC->SCS=0x30; //enable main oscillator and its range
LPC_SC->PLL0CON=0;//disable pll & disconnect it
LPC_SC->PLL0FEED=0xaa;
LPC_SC->PLL0FEED=0x55;
while(!(LPC_SC->SCS & 0x40)); //until main oscillator becomes stable
LPC_SC->CLKSRCSEL=1; //select MO for PLL input source
LPC_SC->PLL0CFG=0X000F; //M=15,N=0
LPC_SC->PLL0CON=1; //enables PLL and disconnects it
LPC_SC->CCLKCFG=3; //CPU clock=(2*12*16/1)/(3+1)=96MHz
LPC_SC->USBCLKCFG=0x07; //usb clock=48MHz
LPC_SC->PCLKSEL0 |= 0x03c0; //clk UART0,1=12MHz
LPC_SC->PCLKSEL1 |= 0x00000001; //GPIO default CK=96/1=96
while((LPC_SC->PLL0STAT & 0x04000000)==0);//PLL0 unlocked
LPC_SC->PLL0CON |= 2; //connect PLL0 unit
but evidently it does not change the speed and things happen at the original default speed.
what could be wrong here? what is the code to set it up to the maximum possible speed (even over clocked)?