About clock setting in LPC18xx.

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

About clock setting in LPC18xx.

859 Views
kalpeshramani
Contributor I

Hi,

I am using LPC1857 device kit.

And there are 4 pins named CLK0, CLK1, CLK2, CLK3 on board.

In software i am using CMISIS and based on that i am getting default frequency 12MHZ. PLL range is from 0 - 15, so i can say that i can get frequency from 12 MHZ, 24MHz, 36MHz, ... , 180MHz.

PROBLEM : By default i am getting 12MHz from CLK1 pin by writing this below code.

"LPC_SCU_CLK(1) = 1 + CLK_OUT;"

And I want 6MHz from LPC18xx, Can you help me to set 6MHz on CLKOUT pin?

Thanks,

Kalpesh Ramani.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

364 Views
soledad
NXP Employee
NXP Employee

Hi,

Please check the below threads and let me know if this helps,

Using CLKOUT for Diagnostic Purposes | www.LPCware.com 

Modify Clock with PLL0 in operation | www.LPCware.com 


Have a great day,
Sol

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

0 Kudos
Reply