Hi, when I try to set up my PLL config with the following code, the
program crashes. Is this the correct use of the registers?
thanks.
void InitPLL(void)
{
PLLCFG = 0x00000024; // set multiplier and divider of PLL
to give 60Mhz
PLLCON = 0x00000001; // Enable the PLL
PLLFEED = 0x000000AA; // update PLL registers with feed
sequence
PLLFEED = 0x00000055;
while(!(PLLSTAT & 0x00000400)); // test lock bit
PLLCON = 0x00000003; // connect the PLL
PLLFEED = 0x000000AA; // update PLL registers with feed
sequence
PLLFEED = 0x00000055;
VPBDIV = 0x00000002; // set the VLSI peripheral bus to 30Mhz
}Message
PLL Setup problems
2005-05-09 by jase_ko
Attachments
- No local attachments were found for this message.