LPC18xx RTC Clocking From External Crystal

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC18xx RTC Clocking From External Crystal

跳至解决方案
2,384 次查看
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 项奖励
回复
1 解答
2,321 次查看
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 项奖励
回复
6 回复数
2,375 次查看
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 项奖励
回复
2,372 次查看
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 项奖励
回复
2,360 次查看
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 项奖励
回复
2,334 次查看
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 项奖励
回复
2,327 次查看
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 项奖励
回复
2,322 次查看
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 项奖励
回复