Pll not locked

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pll not locked

385 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by boris on Tue Jul 17 05:53:00 MST 2012
Hi All .

I have problem with PLL.

my code:
[SIZE=2][COLOR=#3f7f5f]*/[/COLOR][/SIZE]
[SIZE=2][COLOR=#3f7f5f] [/COLOR][/SIZE]Input Freaq = 12 MHz, System will - 24MHz
[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]*/[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]

[SIZE=2]LPC_SYSCON->
[/SIZE][LEFT][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SYSPLLCTRL[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] = 0b01000001;[/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]// 24MHZ [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f]
[LEFT][/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] (!(LPC_SYSCON->[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]SYSPLLSTAT[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] & 0x01)); [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]//Wait Until PLL Locked[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]

[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]But PLL not LOCKED .:confused:[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]

[LEFT]Maybe someone knows, when could be the problem ?[/LEFT]

[LEFT]Thanks.[/LEFT]


[/LEFT]
0 Kudos
1 Reply

291 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Tue Jul 17 11:54:35 MST 2012
#1 I'm not sure which LPC we are talking about :confused:

#2 Your
SYSPLLCTRL = 0b01000001;// 24MHZ
is a valid setting (0x41 in my world)

#3 So I'm not sure if you've forgotten to reset PDRCONFIG or something else essential
 LPC_SYSCON->SYSPLLCTRL    = SYSPLLCTRL_Val;
 LPC_SYSCON->PDRUNCFG     &= ~(1 << 7);          /* Power-up SYSPLL          */
 while (!(LPC_SYSCON->SYSPLLSTAT & 0x01));          /* Wait Until PLL Locked    */
#4 Therefore I would strongly suggest to use a working CMSIS project and just change SYSPLLCTRL_Val in system_LPC1xxx.c to
#define SYSPLLCTRL_Val        0x00000041    //24 MHz
0 Kudos