2020-09-28 04:05 PM
Thank you for helping.
How do I back up the registers when the power is turned off without the VBAT pin?
Thank you.
2020-09-28 05:20 PM
You should have 128 bytes of data EEPROM, use that.
2020-09-29 09:50 PM
Hi clive1
Does that mean that the backup register written in the data sheet cannot be used?
2020-09-29 10:03 PM
>>Does that mean that the backup register written in the data sheet cannot be used?
Those are RAM cells, they'd need to draw power from somewhere. Perhaps I misunderstood your scenario..
EEPROM would be appropriate for situation where power is entirely absent.
https://www.st.com/en/microcontrollers-microprocessors/stm32l010f4.html
2020-09-30 12:03 AM
Try to describe your problem in more details, using names of registers used in the Manuals.
JW
2020-10-01 12:00 AM
Thank you for your reply.
RTC backup registers (RTC_BKPxR)
I understand that the backup register of a microcomputer with a VBAT terminal retains its value even if the power is turned off if there is a voltage in VBAT.
However, this microcomputer does not have a VBAT terminal. Therefore, I think that the value cannot be retained when the power is turned off.
Why is it named backup?
I do not understand.
2020-10-01 12:04 AM
I want to confirm one more thing.
I think that the RTC of a microcomputer without a VBAT terminal is useless.
Is the time set every time the power is turned off and then on again?
I have never seen such a device.
2020-10-01 03:53 AM
Ok, so the L series devices are designed to be powered by a battery, you use software to put them in STANDBY and they draw the current of an RTC.
You need to design an external circuit to maintain power if you have multiple power sources like two batteries, or a primary/secondary supply. You recognize your primary supply, say USB charger, vanishes and you go into STANDBY ASAP.
2020-10-01 04:20 PM
Mr. clive1 Thank you for your reply.
With that in mind, the backup register itself becomes meaningless.
This is because things other than the backup register are also backed up.
What do you think?
2020-10-01 08:26 PM
What do I think about what?
That you've got an RTC with 20-bytes of backup registers to hold state, and restart in the future. That if you need to hold more the 20 bytes upto 128, and across a total loss of power (battery change) there is EEPROM, and beyond that FLASH.
With a low cost, mass market, general purpose low power MCU, you get to live with other people's priorities and compromises. You can find alternatives that suit you better, or you can create your own perfect custom design, with all the costs, time, frustrations and disappointments that come with that.