I am using LPC 4370.
I would like to detect that the RTC battery has been replaced, please answer the following questions.
Turn OFF the power supply of VDD(REG) and VBAT.
(ii) Supply power to them again.
(iii) RESET processing to RTC is not performed.
In other words, reset processing to "CTCRST" and "CCALEN bit" of "Clock Control Register (CCR - address 0x4004 6008)" is not performed.
(iv) Access to "Time Counter Group" and "Alarm register group".
- Time Counter Group
Seconds register (SEC - address 0x4004 6020) ==> value: 0
Minutes register (MIN - address 0x4004 6024) ==> value: 0
Hours register (HRS - address 0x4004 6028) ==> value: 0
Day of month register (DOM - address 0x4004 602C) ==> value: 1
Day of week register (DOW - address 0x4004 6030) ==> value: 0
Day of year register (DOY - address 0x4004 6034) ==> value: 1
Month register (MONTH - address 0x4004 6038) ==> value: 1
Year register (YEAR - address 0x4004 603C) ==> value: 0
- Alarm register group
Alarm Seconds register (ASEC - address 0x4004 6060) ==> value: 0
Alarm Minutes register (AMIN - address 0x4004 6064) ==> value: 0
Alarm Hours register (AHRS - address 0x4004 6068) ==> value: 0
Alarm Day of month register (ADOM - address 0x4004 606C) ==> value: 0
Alarm Day of week register (ADOW - address 0x4004 6070) ==> value: 0
Alarm Day of year register (ADOY - address 0x4004 6074) ==> value: 0
Alarm Month register (AMON - address 0x4004 6078) ==> value: 0
Alarm Year register (AYRS - address 0x4004 607C) ==> value: 0
When executing the above [Verification procedure] procedure, that is, not resetting to RTC, will the default values of A and B always become the value of [Result] above?
Would it be recommended to check the above [Verification procedure] and [Results] for the purpose of detection of power shutdown to RTC?