Real-time clock
Below is a list of API functions output by the Code Generator for real-time clock use.
Table 3.13 API Functions: [Real-time Clock] (1)
API Function Name |
Function |
Performs initialization necessary to control the real-time clock. | |
Performs user-defined initialization relating to the real-time clock. | |
Performs processing in response to the real-time clock interrupt INTRTC. | |
Starts the count of the real-time clock (year, month, weekday, day, hour, minute, second). | |
Ends the count of the real-time clock (year, month, weekday, day, hour, minute, second). | |
Halts the clock supplied to the real-time clock. | |
Sets the clock type (12-hour or 24-hour clock) of the real-time clock. | |
Sets the counter value of the real-time clock. | |
Sets the counter value of the real-time clock.(in the case of the calendar mode setting) | |
Sets the counter value of the real-time clock.(in the case of the binary mode setting) | |
Reads the counter value of the real-time clock. | |
Reads the counter value of the real-time clock.(in the case of the calendar mode setting) | |
Reads the counter value of the real-time clock.(in the case of the binary mode setting) | |
Sets the cycle of the interrupts INTRTC, then starts the cyclic interrupt function. | |
Ends the cyclic interrupt function. | |
Performs processing in response to the cyclic interrupt INTRTC. | |
Starts the alarm interrupt function. | |
Starts the alarm interrupt function.(in the case of the calendar mode setting) | |
Starts the alarm interrupt function.(in the case of the binary mode setting) | |
Ends the alarm interrupt function. | |
Sets the alarm conditions (weekday, hour, minute). | |
Sets the alarm conditions (year, month, weekday, day, hour, minute, second).(in the case of the calendar mode setting) | |
Sets the alarm conditions.(in the case of the binary mode setting) | |
Reads the alarm conditions (weekday, hour, minute). |
Table 3.14 API Functions: [Real-time Clock] (2)
API Function Name |
Function |
Reads the alarm conditions (year, month, weekday, day, hour, minute, second).(in the case of the calendar mode setting) | |
Reads the alarm conditions.(in the case of the binary mode setting) | |
Performs processing in response to the alarm interrupt INTRTC. | |
Enables output of the correction clock (1 Hz) to the RTC1HZ pin. | |
Disables output of the correction clock (1 Hz) to the RTC1HZ pin. | |
Enables output of the RTCOUT. | |
Disables output of the RTCOUT. | |
Performs processing in response to the alarm interrupt INTRTCALM. | |
Performs processing in response to the periodic interrupt INTRTCPRD. | |
Performs processing in response to the cyclic interrupt INTRTC. |