![]() |
rtcpsu
Xilinx SDK Drivers API Documentation
|
The Xilinx RTC driver component. This component supports the Xilinx RTC Controller. RTC Core and RTC controller are the two main important sub- components for this RTC module. RTC core can run even in the battery powered domain when the power from auxiliary source is down. Because of this, RTC core latches the calibration,programmed time. This core interfaces with the crystal oscillator and maintains current time in seconds.Calibration circuitry calculates a second with maximum 1 PPM inaccuracy using a crystal oscillator with arbitrary static inaccuracy. Core also responsible to maintain control value used by the oscillator and power switching circuitry.
RTC controller includes an APB interface responsible for register access with in controller and core. It contains alarm generation logic including the alarm register to hold alarm time in seconds.Interrupt management using Interrupt status, Interrupt mask, Interrupt enable, Interrupt disable registers are included to manage alarm and seconds interrupts. Address Slave error interrupts are not being handled by this driver component.
This driver supports the following features:
Initialization & Configuration
The XRtcPsu_Config structure is used by the driver to configure itself. Fields inside this structure are properties of XRtcPsu based on its hardware build.
To support multiple runtime loading and initialization strategies employed by various operating systems, the driver instance can be initialized in the following way:
Interrupts
The driver defaults to no interrupts at initialization such that interrupts must be enabled if desired. An interrupt is generated for one of the following conditions.
The application can control which interrupts are enabled using the XRtcPsu_SetInterruptMask() function.
In order to use interrupts, it is necessary for the user to connect the driver interrupt handler, XRtcPsu_InterruptHandler(), to the interrupt system of the application. A separate handler should be provided by the application to communicate with the interrupt system, and conduct application specific interrupt handling. An application registers its own handler through the XRtcPsu_SetHandler() function.
MODIFICATION HISTORY:
Ver Who Date Changes ----- ----- -------- ----------------------------------------------- 1.00 kvn 04/21/15 First release 1.1 kvn 09/25/15 Modify control register to enable battery switching when vcc_psaux is not available.