Page 1 of 1

RTC not retaining date and time after power cycle

Posted: Wed Jul 27, 2016 4:57 pm
by elphnei
I am using an SAM3U4E device and can successfully program and read back from the RTC whilst power is connected. However, when power is removed from my board, the RTC date and time have reset back to the 'factory default'. I have VDDBU connected to a battery and can measure it's value directly at the device pin (139).

I was expecting the RTC information to be kept current with the VDDBU being present when main power is removed. Am I missing some setup condition? I've studied the user guides and example code and can't see anything that I may be missing.

Thanks for any feedback.

N.

Re: RTC not retaining date and time after power cycle

Posted: Tue Aug 02, 2016 10:35 am
by elphnei
Found the problem. NRSTB needs to be floating. I have it hooked up as a watchdog reset - which works fine, as long as you don't want to retain RTC time!