We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
We are using LPC2366 controller
When we configure the Internal RC oscillator(4 MHZ) for the PLL as shown below
Main OScillator = disabled PLL source = Internal RC oscillator(4 MHZ ) M = 35 N = 1 so FCCO = 280MHZ
and Cpu clock frequency is 56MHZ When we enter into the debug mode the execution is not coming out of the PLL Lock sequence
; Wait until PLL Locked PLL_Loop LDR R3, [R0, #PLLSTAT_OFS] ANDS R3, R3, #PLLSTAT_PLOCK BEQ PLL_Loop
Could you please guide us
OK. So you are using live hardware, and not the simulator.
Are you using the Configuration Wizard to set up these parameters?
Have you remembered to set a clock divider of 5? (280/5 = 56MHz)
Have you double-checked that you have selected the internal oscillator, so there really is a 4MHz signal for the PLL to use?
Hi We have verified the clock configuration value it is set to 5. Here are our observation on doing some experiments
Observation 1: When we force the value of PLOCK(force R3 to 0x04000022 at line ANDS R3, R3, #PLLSTAT_PLOCK) so that it comes out of loop and the code is working fine.
Observation 2: we created a small project with the above settings for the PLL and only a while loop within the main function The Execution will not struk up it will come to main on entering to the debug mode.
Could you please guide us what may the problem.
Have you seen this thread, which is also about your problem: http://www.keil.com/forum/docs/thread13625.asp