Hi,
Q1) Is connecting battery to VBAT only while VDD goes to 0V sufficient to retain RTC count with Ibat < 1uA as listed in the spec sheet (assuming the RESET pin is left floating)? To achieve this, is there any particular BOD code needed to enter deep-powerdown level before VDD disappears?
>>>>The RTC and RTC oscillator circuit are driven by VBAT, the RTC will continue to count 1Hz tick if VBAT power supply exists ,even if VDD power supply voltage disappears. In the case, Ibat is less than 1uA, based on data sheet, typical is 340nA.
Q2) If on the other hand the battery must be connected to both VBAT and VDD for RTC count after disappearance of external supply, then some kind of circuit detecting this disappearance of external VDD is needed in order to trigger deep-powerdown level. Furthermore, at restoration of external supply some mechanism is needed to generate a reset pulse at RESET pin (since this is the only way to come out of deep-powerdown level), all the while leaving the RESET pin floating while in battery mode. Do you have examples of such circuit / code?
>>>>The RTC and related clock circuit are driven by only VBAT, you can use the battery to VBAT and use the other power to the VDD, in the case, you can initiailize the RTC. After initialization is over, the RTC run. In the case, even if VDD disappears, the RTC can continue to run.
Pls download SDK package:
https://mcuxpresso.nxp.com/en/welcome
https://community.nxp.com/t5/LPC-Microcontrollers/RTC-Operation-in-power-down-mode-in-LPC546xx-Micro...
Hope it can help you
BR
XiangJun Rong