Content originally posted in LPCWare by piperazine on Sun Apr 10 02:27:20 MST 2011
Hello,
Ive got a LPCXpresso1769 board, and a little curious about values PLL0CFG_Val. I noticed that in system_LPC17xx.c the value is set to 0x00050063 with a clock divide of 4 (CCLKCFG_Val 0x00000003):
Fcco = (2*12*100)/6 = 400
400/clock divide(4) = 100Mhz
and the manual says:
Quote:
"A smaller value for the PLL pre-divide (N) as well as a smaller value of the multiplier (M),
both result in better PLL operational stability and lower output jitter. Lower values of FCCO
also save power."
Is there a reason for setting the M and N values so high there? Wouldn't setting PLL0CFG_Val to 0x00010018 and clock divide to 3 (CCLKCFG_Val 0x00000002) be better?
Fcco = (2*12*25)/2 = 300
300/clock divide(3) = 100Mhz
I know the LPC1769 can run at 120Mhz, but I was wondering why these values were chosen for 100Mhz operation? For a 120Mhz clock I was going to set PLL0CFG_Val to 0x0000000E and CCLKCFG_Val to 0x00000002:
Fcco = (2*12*15)/1 = 360
360/clock divide(3) = 120Mhz
Do these values seem correct?