Datasheet

Table Of Contents
133
SAM9N12/SAM9CN11/SAM9CN12 [DATASHEET]
11063K–ATARM–05-Nov-13
15.6.6 RTC Calendar Alarm Register
Name: RTC_CALALR
Address: 0xFFFFFEC4
Access: Read-write
Note: To change one of the DATE, MONTH fields, it is recommended to disable the field before changing the value and
then re-enable it after the change has been made. This requires up to 3 accesses to the RTC_CALALR register. The
first access clears the enable corresponding to the field to change (DATEEN,MTHEN). If the field is already cleared,
this access is not required. The second access performs the change of the value (DATE,MONTH). The third access is
required to re-enable the field by writing 1 in DATEEN, MTHEN fields.
MONTH: Month Alarm
This field is the alarm field corresponding to the BCD-coded month counter.
MTHEN: Month Alarm Enable
0: The month-matching alarm is disabled.
1: The month-matching alarm is enabled.
•DATE: Date Alarm
This field is the alarm field corresponding to the BCD-coded date counter.
DATEEN: Date Alarm Enable
0: The date-matching alarm is disabled.
1: The date-matching alarm is enabled.
31 30 29 28 27 26 25 24
DATEEN DATE
23 22 21 20 19 18 17 16
MTHEN MONTH
15 14 13 12 11 10 9 8
––––––––
76543210
––––––––