I used MCF52233 and mcf52235 CPU for 2 years before.
MCF52233 system clock is 60MHz but new product is 50MHz.
For new product MCF52232/MCF52236 ,how to revise old source code in this change?
(the source code is based on AN3455 ).
void
mcf5223_pll_init(void)
{
/* The PLL pre-divider affects this!!! no change!
* Multiply 25Mhz reference crystal /CCHR by 12 to acheive system clock of 60Mhz
*/
MCF_CLOCK_SYNCR = MCF_CLOCK_SYNCR_MFD(4) | MCF_CLOCK_SYNCR_CLKSRC| MCF_CLOCK_SYNCR_PLLMODE | MCF_CLOCK_SYNCR_PLLEN ;
while (!(MCF_CLOCK_SYNSR & MCF_CLOCK_SYNSR_LOCK))
{
}
}
ADD:
MCF_CLOCK_CCHR=0x05; //// 25MHz*12/6=50MHz
Whether need I do more thing except there?
Message Edited by gxd on 2008-10-13 08:25 AM