CPU clock not visible on CLKOUT pin of LPC4088

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

CPU clock not visible on CLKOUT pin of LPC4088

2,270 Views
sunilsawant
Contributor I

I am developing my application on LPC4088 MCU.

I want to operate the CPU at 96 MHz.

I have programmed the Clock and System Control block to generate the CPU clock frequency at 96 MHz.

However, CPU clock is not visible on clkout pin.

How can I view cpu clock on clkout pin of LPC4088.

I have attached clock initialization code for clock and system control block.

Please suggest suitable solution to the problem.

Original Attachment has been moved to: drv_clock.c.zip

Labels (1)
0 Kudos
Reply
4 Replies

1,752 Views
jbr
Contributor I

You need to configure the pin using IOCONx.

You probably don't need to wait for PLL0STAT to become 0x509, just feed in the new dividers and wait for it to stabilize.

CLKOUT is limited to about 50MHz... so you should set a divider in CLKOUTCFG.  Just divide it by 8 for a nice 12MHz output.  Easy to feed into a counter or check with a passive scope probe.

0 Kudos
Reply

1,752 Views
sunilsawant
Contributor I

Clkout example in LPCOpen code uses LPCOpen libraries. I want to write code using registers without using libraries.

0 Kudos
Reply

1,752 Views
vicentegomez
NXP TechSupport
NXP TechSupport

I believe that you have missing to set the PINSEL3 for the CLKOUT function

pastedImage_1.png

Regards

Vicente Gomez

0 Kudos
Reply

1,752 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi

You can check the LPCOpen code for the 4088 "periph_clkout"

Normally this code is install on the LPCXpresso folder

C:\NXP\LPCXpresso_8.2.0_647\lpcxpresso\Examples\LPCOpen\lpcopen_2_10_lpcxpresso_ea_devkit_4088.zip

I hope this will help you.

0 Kudos
Reply