Hello, I am new to the LPC2400 family so please bare in mind that I might be wrong! When configuring my PLL, I noticed that the data sheet for the LPC2478 states, when describing the layout of the CCLKCFG register, that:
7:0 CCLKSEL Selects the divide value for creating the CPU clock (CCLK) from the PLL output. Only 0 and odd values (1, 3, 5, ..., 255) are supported and can be used when programming the CCLKSEL bits. Warning: Using an even value (2, 4, 6, ..., 254) when setting the CCLKSEL bits may result in incorrect operation of the device.
But the default startup file provided by Keil sets the value of CCLKCFG_Val to 4.
The Configuration Wizard is not wrong. It shows the actual divider value rather then the value which is written into the CCLKSEL filed. When divider value 4 is displayed then the actual value written into CCLKSEL is 3.
In some LPC2400.s files the default value of CCLKSEL was 4 (see bellow) and this was wrong. It is fixed now.
CCLKCFG_Val EQU 0x00000004