LPC18xx RTC Clocking From External Crystal

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC18xx RTC Clocking From External Crystal

ソリューションへジャンプ
2,380件の閲覧回数
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,317件の閲覧回数
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,371件の閲覧回数
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,368件の閲覧回数
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,356件の閲覧回数
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,330件の閲覧回数
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,323件の閲覧回数
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,318件の閲覧回数
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 件の賞賛
返信