From the Reference Manual - read "7.2.1 PLL Control Register (PCR)".
Read the note:
Note: The reset values of PFDR and OUTDIV5 depend on the boot configuration mode. When
BOOTMOD[1:0] = 00, 01, or 10, PFDR resets to 0x1E and OUTDIV resets to 0x7. If
BOOTMOD[1:0] = 11, PFDR and OUTDIV5 reset to the value of SBF_RCON[7:0] and
SBF_RCON[9:8], respectively, specified by serial boot.
So how is your board set up? Is it using the "Reset Cofiguration Override" or is it running with the defaults? Read "9.3.1 Chip Configuration Register (CCR)" and the following sections. You're probably using normal "oscillator mode" so that means that PCR takes the default values, documented in "7.2.1 PLL Control Register (PCR)".
The default is PFDR=0x1E and OUTDIV5=7. That means:
Fvco = 16MHz by 30 or 480MHz.
Fusb = 480MHz/(7+1) = 60MHz.
Fsdramc = Fsys = 480MHz/(2 + 1) = 160MHz
Fsys2 = 80MHz
Fsys = 480MHz/(2+1) = 160MHz.
It is very likely that nothing changes the PCR register because it default to the right value for your board and crystal already.
We're using an MCF5329 and it defaults to the same speed as the above - which is NOT the way we want it. We have to fiddle around with the clocking registers to put it into "Limp" mode, switch to 240MHz and then switch back to the PLL.
The other thing to watch out for is that when you're developing software and loading it with the debugger, the first thing the pod does is to run a "startup script" specific to your CPU and board, and it optionally writes to the clock registers, then sets up the chip selects, the SDRAM controller and perhaps a bunch of other things before loading your code. All of this happens "invisibly" and before the startup code. So often what you can find as the "startup code" doesn't do these essential things. When you finally want to burn code to FLASH to run standalone, some startup code has to do everything that the debugger was doing. A good development system provides this code for you. With a "bare bones" system like we're using we had to write all of this ourselves. Often all the "startup" is done be a separate bootstrap which sets up the hardware and then loads the "Application, which is the same as the one you run under the debugger and which doesn't have any (or much) hardware setup code in it.
Your LCDC Clock is generated from the PCD field in the LCD_PCR. This is Fsys2 divided ny (PCD+1). The maximum pixel frequency is Fsys2/3 or 26.66MHz. Don't run at that speed or you won't have any bandwidth left for your CPU to do anything else.
> this is an instrument cluster application with some gauges and dials and numbers
Animating the needles is challenging on this chip, if not "courageous, Minister".
Been there, coded that, but on a 240MHz MCF5329 (50% aster than your one):
http://www.hsv.com.au/e3/edi/
The above is an excellent web-based emulation of the product. Click on "Gauges" and then click on the little left and right arrows on each side of the Gauge Number display to cycle through the 11 gauges. Then click on the "Menu" button at lower left and then select and play with the Stopwatch. Check the G-Force graphics.
Check your "Private Messages" for more details. That's the little envelope near the "Search" button on this page that should be showing Yellow at the moment.
Tom