LPC4357 Can I use a timer during changing clock.

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

LPC4357 Can I use a timer during changing clock.

584 Views
iwaomizota
Contributor I

Hi all,

 Could please tell me whether I can use time on STEP5 of below sequence on LPC4357.

There are 9 STEP on chapter 13.2.2.1 of UM10503

STEP5: wait for the PLL1 to lock.

I would like to make a code to detect when it is long time to lock PLL1.

And system go back to work on internal clock.

Bet Regards.

Iwao Mizota.

Labels (1)
0 Kudos
Reply
1 Reply

460 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Iwao Mizota,

    Yes, if you like, you can use the timer to wait the PLL1 to lock instead of using the while to wait.

    But one point you should take care, the chapter you mentioned, is using the IRC as the BASE_M4_CLK source, and this BASE_M4_CLK also the timer's(Timer0/1/2/3) base clock.

   You should make sure when the timer is working, the BASE_M4_CLK is not changed. You should disable the timer before you select the PLL1 as the BASE_M4_CLK source.

Wish it helps you!

Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------