Is it possible to use a 12MHz crystal on the CLKIN/CLKOUT pins ?

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

Is it possible to use a 12MHz crystal on the CLKIN/CLKOUT pins ?

Jump to solution
711 Views
eft_flo
Contributor I

Hello,

I have a 12 MHz crystal plugged on the LPC5410x that way :

pastedImage_2.pngBut I am not able to start it and it no resonate. I tried to use the BOARD_USECLKINSRC=1 and BOARD_EXTCLKINRATE=12000000 flags from the LPCXpresso54102 BSP, but the crystal doesn't start.

I also tried to set the IRC first, and then enable the crystal by set the parameters to use the crystal (including set CLKOUT as an output and inverse the out pin to have a negative feedback loop). But no oscillation.

Does anyone succeed to use a crystal on these pin ? Do you have any example code working ?

Thanks for help.

Labels (3)
Tags (1)
0 Kudos
1 Solution
528 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi elf_flo,

   You can't connect the board like that.

  pastedImage_1.png

 CLKIN should input the external clock directly, not the external crystal, this pin don't have the internal OSC module.

CLKOUT is used to monitor the internal clock:Main clock, clkin, IRC osciallator or watchdog oscillator frequency.

 So, if you want to use the 12Mhz, please input the 12Mhz frequency directly to the CLKIN pin.

Wish it helps you!


Have a great day,
Kerry

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

View solution in original post

0 Kudos
1 Reply
529 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi elf_flo,

   You can't connect the board like that.

  pastedImage_1.png

 CLKIN should input the external clock directly, not the external crystal, this pin don't have the internal OSC module.

CLKOUT is used to monitor the internal clock:Main clock, clkin, IRC osciallator or watchdog oscillator frequency.

 So, if you want to use the 12Mhz, please input the 12Mhz frequency directly to the CLKIN pin.

Wish it helps you!


Have a great day,
Kerry

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

0 Kudos