Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

PLL Setup problems

2005-05-09 by jase_ko

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
}

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.