Backup register of STM32L010F4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-28 4: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.
- Labels:
-
Power
-
RTC
-
STM32L0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-28 5:20 PM
You should have 128 bytes of data EEPROM, use that.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-29 9:50 PM
Hi clive1
Does that mean that the backup register written in the data sheet cannot be used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-30 12:03 AM
Try to describe your problem in more details, using names of registers used in the Manuals.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-01 3: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-01 4: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-01 8: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.
Up vote any posts that you find helpful, it shows what's working..
