This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PLL Configuration

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

Parents
  • 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.

Reply
  • 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.

Children