Skip to main content
Patrick Morwald
Associate III
Aug 28, 2018 9:46 AM UTC
Question

Are the RTC backup registers guaranteed to be zero?

Hi,

when the backup power domain gets reset, are the RTC backup registers guaranteed to be zero or can they be any arbitrary value?

This topic has been closed for replies.

3 replies

T J
Senior III
Aug 28, 2018 10:45 AM UTC

Generally the whole point of a battery backed ram is to save the ram contents.

Usually there is no "Zero" hardware functionality, only a program solution you would create.

for a known stable state, use the last two bytes as a checksum of the entire backupRam-2 bytes

then you will know if your array has been cleared and initialised or else it needs clearing, and add checksum.

Patrick Morwald
Associate III
Aug 28, 2018 11:47 AM UTC

Ok thanks for the idea with the checksum. Maybe i did formulate my question not right, i meant the condition of the backup registers after there was no power at all to the whole Chip, including no backup power.

Thanks anyways!

T J
Senior III
Aug 28, 2018 7:17 PM UTC

I believe the data will be randomly set on a virgin power up.