LPC4357 Can I use a timer during changing clock.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC4357 Can I use a timer during changing clock.

1,001件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 返信

877件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------