User`s manual
RX62N Group, RX621 Group 4. Library Reference
Description (2/2)
[data4]
The alarm day of the week and time in hours, minutes and seconds. BCD format is used.
If not required, specify PDL_NO_DATA.
b31 – b24
b23 – b16
b15 – b8
b7 – b0
Day of week
Valid from 0 to 6. 0 = Sunday. Specify 0xFF for
automatic calculation using the values in data5.
Hours
Valid from 0
to 23.
Minutes
Valid from 0
to 59.
Seconds
Valid from 0
to 59.
[data5]
The alarm year, month and day. BCD format is used. If not required, specify PDL_NO_DATA.
b31 – b16
b15 – b8
b7 – b0
Year
Valid from 0 to 9999.
Month
Valid from 1 to 12.
Day
Valid from 1 to the number of days in the month.
[func1]
The function to be called when an alarm occurs. Specify PDL_NO_FUNC if not required.
[data6]
The alarm interrupt priority level. Select between 1 (lowest priority) and 15 (highest priority).
This parameter will be ignored if PDL_NO_FUNC is specified for parameter func1.
[func2]
The function to be called at the periodic interval. Specify PDL_NO_FUNC if not required.
[data7]
The periodic interrupt priority level. Select between 1 (lowest priority) and 15 (highest priority).
This parameter will be ignored if PDL_NO_FUNC is specified for parameter func2.
Return value
True if all parameters are valid and exclusive; otherwise false.
Category
Real-time clock
Reference
R_CGC_Set, R_CGC_Control
Remarks
•
Before use, use function R_CGC_Set or R_CGC_Control to enable the sub-clock oscillator.
•
The sub-clock oscillator should be allowed to settle before starting the real-time clock.
Please refer to section 40.3.1 of the hardware manual for the settling time.
•
If the sub-clock oscillator is not running, this function will lock up.
•
The check for days in the month allows for leap years.
R20UT0084EE0112 Rev.1.12 Page 4-156
July. 16, 2014