This page gives an overview of the bare-metal driver support for the Real Time Clock(RTC) module.
Table of Contents
Table of Contents | ||
---|---|---|
|
Introduction
The Zynq® UltraScale+™ MPSoC real time clock (RTC) provides the real time even when the device is powered off.When the device is off, the RTC is switched to the battery power supply. A battery-backed RAM (BBRAM) is
provided for when device is operating in the battery mode. However, the RTC controller and user interface are only
...
Directory | Description |
---|---|
src | Driver source files, make and cmakelists file |
examples | Example applications that show how to use the driver features |
doc | Provides the API and data structure details |
data | Driver .tcl , .mdd and .mdd file.yaml files |
Note: The .yaml(in data folder) and CMakeLists.txt(in src folder) files would be used in System Device Tree based flow.
Driver Implementation
For a full list of features supported by this IP, please refer Chapter 7: Real Time Clock in Zynqmp Trm
...
RTC Calibration examples
Expected Output
Code Block |
---|
xrtcpsu_set_calibration_example.c OUTPUT:Enter Crystal oscillator frequency : Enter Internet / Network Time YEAR:MM:DD HR:MM:SS : 2021 6 28 17 39 44 Old Calibration value : 00007FFF Crystal Frequency : 00008000 New Calibration value : FFFEFFFF Crystal Frequency : 00008000 Successfully ran RTC Set Calibration Example Test |
RTC Set timeout examples
Expected Output
Code Block |
---|
xrtcpsu_set_time_example.c OUTPUT: Day Convention : 0-Fri, 1-Sat, 2-Sun, 3-Mon, 4-Tue, 5-Wed, 6-Thur Last set time for RTC is.. YEAR:MM:DD HR:MM:SS 2049:08:31 14:11:07 Day = 4 Current RTC time is.. YEAR:MM:DD HR:MM:SS 2049:09:27 02:48:07 Day = 3 Enter Desired Current Time YEAR:MM:DD HR:MM:SS : 2021 6 28 15 50 45 Successfully ran RTC Set time Example Test |
Example Design Architecture
NA
...