How to use RTC component (RTC_LDD) with internal or external oscillator?

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

How to use RTC component (RTC_LDD) with internal or external oscillator?

3,406 次查看
durgeshtanuku
Contributor II

I have my freedom board(KL25Z128) without any oscillator connected to PTC1 and PTC3. I have found tutorials on "how to use RTC component with ERCLK32K, by connecting oscillator between PTC1 and PTC3". But i don't have crystal with me. So I have tried to take internal oscillator in component inspector settings. I have encountered an error " Not supported by hardware". I am attaching the screen shot of the error i have encountered. Help me in solving this issue.

 

regards,

Durgesh

标签 (1)
标记 (2)
0 项奖励
回复
5 回复数

3,009 次查看
ankur_kala
NXP Employee
NXP Employee

Hi,

The time counter within the RTC is clocked by a 32.768 kHz clock sourced from an external crystal using the oscillator. You can not use internal RC for RTC.

Please go through the functional description of RTC module in the RM for further configuration settings.

If this post helps you, kindly mark it as correct/helpful answer.


Regards,

Ankur

3,009 次查看
durgeshtanuku
Contributor II

Thanks For your reply,

After reading the manual, I think the ERCLK32K can be sourced from OSC32KCLK. And we can use ERCLK32K as input to the RTC clock as source. There is also another souce LPO.

So can i use OSC32KCLK or LPO?

0 项奖励
回复

3,009 次查看
ankur_kala
NXP Employee
NXP Employee

HI Durgesh,

Yes you can use OSC32KCLK or LPO as the clock source for RTC. Please read section 5.7.3 RTC Clocking for more information.


Regards,

Ankur

0 项奖励
回复

3,009 次查看
durgeshtanuku
Contributor II

I have tried to use OSC32KCLK using RTC_LDD(In RTC component settings i have selected ERCLK32K for RTC source and in cpu settings I have selected OSC32KCLK as clock source for ERCLK32k)  component, but it is giving error.

0 项奖励
回复

3,009 次查看
adriancano
NXP Employee
NXP Employee

Hi,

You can refer to this document to use the MCGIRCLK as the source of the RTC in the RTC_CLKIN:

Using RTC module on FRDM-KL25Z

I hope this information can help you.

Regards,

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. It would be nice!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复