This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
I am working on a platform based on a TIVA TM4C1233D5PMI. In the application I need the MCU to keep the time (RTC) when the main power (VCC) is "arbitrarily" removed. Basically I just want the RTC to keep running on the battery when power is removed, such that the time can be used when the power comes back.
According to the TIVA datasheet (and this forum) this seems to be very easy to accomplish using the TIVA hibernation module, the RTC and an external battery.
I have created the below schematic for the hibernation module (basically directly from the datasheet):
I have some questions, for which I have not been able to find clear answers (not clear to me atleast):
I really appreciate any help that you can provide.
Thanks.
Best regards
Christian
Hi again
I have one follow-up question to this thread. I hope it is okay that I post it here (even though it has been marked as answered).
I would like to be able to detect if the PCB has been populated with the hibernation module crystal and the hibernation module battery (assuming that they are always added together).
I have been investigating several solutions. Here comes the two I find most reasonable:
1. In software, enable the RTC and check if it works. if the RTC counter registers are counting, then assume that he RTC crystal is available. If they are not counting, assume that the hibernation module circuitry has not been added.
2. Measure the battery voltage using an additional input pin. If a voltage is detected, assume that the hibernation module circuitry has been added.
In 1. I am not sure that it will be possible to detect this in software - what happens if the hibernation module is enabled without and crystal? Will the MCU crash and reboot or will it gracefully return an “error”.
In 2. I am worried that the I/O pin used for detection of the battery will consume too much current - in the datasheet the leakage current of an input gpio is given to 1uA, which is in the same range as the hibernation module itself. Also, how much will this connection affect the battery when the main MCU is off.
Please note that I do not need to detect the presents of both the battery and the crystal, I assume that they are always both added or not added to the PCB.
I hope that it is clean and appreciate any help that you can provide.
Best regards
Christian