Hi Atul,
Have you ensured that your software is not initializing the RTC registers (so, stored values are overwritten)?
Additionally, you could take a look at the following links:
https://www.embeddedrelated.com/showthread/lpc2000/38240-1.php
https://www.lpcware.com/content/forum/rtc-battery-backup
You could also take a look at section 18.5 “RTC usage notes” of the LPC2148 User Manual.
Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------