Realtime clock (RTC)
Below is a list of API functions output by the Code Generator for realtime clock use.
Table 3.22 API Functions: [Realtime Clock]
| 
       API Function Name  | 
    
       Function  | 
| 
       Performs initialization necessary to control the realtime clock.  | |
| 
       Performs user-defined initialization relating to the realtime clock.  | |
| 
       Performs processing in response to the alarm interrupt (ALM).  | |
| 
       Performs processing in response to the periodic interrupt (PRD).  | |
| 
       Performs processing in response to the carry interrupt (CUP).  | |
| 
       Sets the condition for the alarm interrupt (ALM) and allows detection of ALM (calendar count mode).  | |
| 
       Sets the condition for the alarm interrupt (ALM) and allows detection of ALM (binary count mode).  | |
| 
       Sets the period of the periodic interrupt (PRD) and allows detection of PRD.  | |
| 
       Prohibits detection of the periodic interrupt (PRD).  | |
| 
       Allows detection of the carry interrupt (CUP).  | |
| 
       Prohibits detection of the carry interrupt (CUP).  | |
| 
       Set the RTCOUT output period and starts RTCOUT output.  | |
| 
       Ends the RTCOUT output.  | |
| 
       Starts counting.  | |
| 
       Ends counting.  | |
| 
       Initializes the counter then starts counting.  | |
| 
       Sets the values of the calendar and time counters.  | |
| 
       Gets the values of the calendar and time counters.  | |
| 
       Sets the value of the binary counter.  | |
| 
       Gets the value of the binary counter.  | |
| 
       Gets the captured calendar time value.  | |
| 
       Gets the captured binary time value.  |