“A real-time clock (RTC) is an IC that keeps an updated track of the current time”
- Low power consumption
- Continue to run when the main system is powered off
- Usually powered by a battery that can keep it running for a long time
- Usually interfaces with a microprocessor through SPI or I2C
How does it work?
To keep time, an RTC keeps count of the cycles of an oscillator (usually a 32.768kHz crystal oscillator circuit). Crystals have a specified operating temperature range, usually between -10oC and 60oC. Outside of this range, the accuracy of the crystal deteriorates.
An example wiring for the DS1307 RTC IC can be found here: http://www.learningaboutelectronics.com/Articles/DS1307-real-time-clock-RTC-circuit.php
The IC is powered by a supply voltage VCC. However, if VCC falls below a threshold (Vbat), then the IC switches to being powered by the battery. Thus, the operating life of the RTC is maximized by using battery power only when necessary.
Power Supply for the RTC
RTCs can derive their power from a dedicated battery, a charged supercapacitor, or a separate power supply from the main system.
Applications
- Can be used in a GPS receiver to shorten its startup time: if the last received signal was less than a few hours ago, then it can still be used. Received GPS signals can be time-stamped with an RTC.
- Integrated in motherboards to keep time.
SAM-M8Q Chip
- Uses a 32kHz crystal oscillator for its RTC. Can save data in backup RAM if the main voltage supply fails and the RTC is connected to a backup battery.
Sources
https://www.electronics-tutorials.ws/connectivity/real-time-clocks.html
https://en.wikipedia.org/wiki/Real-time_clock
https://www.u-blox.com/sites/default/files/SAM-M8Q_DataSheet_%28UBX-16012619%29.pdf