LPC2388 RTC with external crystal

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

LPC2388 RTC with external crystal

726 次查看
mohammadfaizan
Contributor III

Hi, 

I was observing the behavior of RTC from several days, first I run the clock by power supply for 72 hours and the time variation is negligible. When I run the RTC on 3 volt battery (VBat), I am getting a difference of 3 sec, of every (24 hours), RTC time is leading by 3 seconds. I want to fix this error of 3 sec, is their a best way instead of using a calibration method. Please suggest

thanks & regards

Mohammad Faizan

标签 (3)
0 项奖励
2 回复数

554 次查看
jamesbone
NXP TechSupport
NXP TechSupport

Hello Mohamad,

The LPC2388 has two erratas related to the power supply of VBAT,  as you can see in the following document

https://www.nxp.com/docs/en/errata/ES_LPC2378_88.pdf 

This is way it is afecting the RTC with a huge leakege in the VBAT pin. 


Have a great day,
TIC

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

0 项奖励

554 次查看
mohammadfaizan
Contributor III

Thanks Jamesbone,

I think their is no room to make changes in hardware,  only I have to manage it through a software. Today I observe that 3 sec error occur when Date changes, so I try reset or shift the time 3 second,

            if(RTC_HOUR >= 23)
                  {
                     if(RTC_MIN >=59)
                        {
                          if(RTC_SEC == 59)
                                {
                                  RTC_SEC = 56;
                                }

                       }

                 }

But I got stuck here, executing same statement again and again. can you suggest a smart way to calibrate the RTC clock time. 

0 项奖励