LPC2388 RTC with external crystal

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

LPC2388 RTC with external crystal

728件の閲覧回数
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 返答(返信)

556件の閲覧回数
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 件の賞賛

556件の閲覧回数
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 件の賞賛