LPC55XX some beginner questions

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

LPC55XX some beginner questions

1,042 Views
jc
Contributor II

Hello,

It is my first post on this forum, so hello to everyone.

I'm starting the adventure with LPC55xx processors and have some beginner questions.

I analyze one example (SDK project lpcxpresso55s28_dev_audio_speaker_bm) and found such  sequence:

    CLOCK_SetClkDiv(kCLOCK_DivPll0Clk, 0U, true);
    CLOCK_SetClkDiv(kCLOCK_DivPll0Clk, 1U, false);

Why divider is set to 1 and reset, and then set to 2 but without reset?

Why is it not set to 2 at once?

In SDK API Reference Manual I don't  find an explanation.

Regards,
JarekC

Labels (2)
0 Kudos
Reply
1 Reply

980 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jaroslaw Czula,Jaroslaw Czula

It seems when config PLL  divider , we'd better first reset the divider counter.

Others can directly config divider.

BR

Alice

0 Kudos
Reply