October 2017
Intermediate to advanced
586 pages
14h 8m
English
Real Time Clocks (RTCs) are devices used to track the absolute time in nonvolatile memory, which can be internal to the processor or externally connected through the I2C or SPI bus.
You can use an RTC to do the following:
RTCs and the system clock have different purposes. The former is a hardware clock that maintains the absolute time and date in a nonvolatile manner, whereas the latter is a software clock maintained by the kernel and used to implement the gettimeofday(2) and time(2 system calls, set the timestamps on files, and so on. The system clock reports seconds and microseconds from a starting point, defined ...