LPC18xx RTC Clocking From External Crystal

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

LPC18xx RTC Clocking From External Crystal

Jump to solution
1,119 Views
workalot
Contributor II

Workalot is taking in UM10430 looking for what register bits need to be set to have an the LPC1837 RTC clocked by an external crystal. And I suppose I would need to know where the bypass register bits are if the external clock is an oscillator.

Oh well, maybe I'll have another look tomorrow, maybe a guru is about.

thank you, Workalot

0 Kudos
1 Solution
1,056 Views
workalot
Contributor II

There you go - such a simple answer - thank you.

If only your...

'If RTC uses external clock, we need bit 0 in CREG0. Otherwise LPC18xx will use internal clock as RTC clock source.'

... appeared in UM10430.

regards

Workalot

View solution in original post

0 Kudos
6 Replies
1,110 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi 

If you use oscillator, Both crystal (XTAL) and the capacitances CRTCX1 and CRTCX2 need to be connected externally.

If you use external clock, only RTCX1 needs to be connected, and leave RTCX2 open.

The 1 kHz output of the 32 kHz oscillator must be enabled in the CREG0 register in the CREG block. No other bypass settings.

Best Regards

Jun Zhang

0 Kudos
1,107 Views
workalot
Contributor II

Thank you Jun,

I'm wondering then (and I will check), if the bit in CREG0 is not set does the RTC run from the internal clock.

regards,

0 Kudos
1,095 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

 

 

If bit 0 doesn't set, the default value is 0 which disable 1kHz output.

So we need to enable it in code.

ZhangJennie_0-1657850814938.png

 

0 Kudos
1,069 Views
workalot
Contributor II

Bit rude of Workalot not to respond sooner, apologies. Other work takes my focus at the moment.

I was trying to understand how the RTC could be clocked by an external source or by an internal source. For platforms not having an external 32768Hz, the RTC needs a clock source.

regards, Workalot. 

0 Kudos
1,062 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

 

If RTC uses external clock, we need bit 0 in CREG0. Otherwise LPC18xx will use internal clock as RTC clock source.

0 Kudos
1,057 Views
workalot
Contributor II

There you go - such a simple answer - thank you.

If only your...

'If RTC uses external clock, we need bit 0 in CREG0. Otherwise LPC18xx will use internal clock as RTC clock source.'

... appeared in UM10430.

regards

Workalot

0 Kudos