Datasheet

302
SAM4S Series [DATASHEET]
11100F–ATARM–29-Jan-14
16.6.7 RTC Status Register
Name: RTC_SR
Address: 0x400E1478
Access: Read-only
ACKUPD: Acknowledge for Update
0 (FREERUN): Time and calendar registers cannot be updated.
1 (UPDATE): Time and calendar registers can be updated.
ALARM: Alarm Flag
0 (NO_ALARMEVENT): No alarm matching condition occurred.
1 (ALARMEVENT): An alarm matching condition has occurred.
SEC: Second Event
0 (NO_SECEVENT): No second event has occurred since the last clear.
1 (SECEVENT): At least one second event has occurred since the last clear.
TIMEV: Time Event
0 (NO_TIMEVENT): No time event has occurred since the last clear.
1 (TIMEVENT): At least one time event has occurred since the last clear.
The time event is selected in the TIMEVSEL field in the Control Register (RTC_CR) and can be any one of the following events:
minute change, hour change, noon, midnight (day change).
CALEV: Calendar Event
0 (NO_CALEVENT): No calendar event has occurred since the last clear.
1 (CALEVENT): At least one calendar event has occurred since the last clear.
The calendar event is selected in the CALEVSEL field in the Control Register (RTC_CR) and can be any one of the following
events: week change, month change and year change.
TDERR: Time and/or Date Free Running Error
0 (CORRECT): The internal free running counters are carrying valid values since the last read of the Status Register (RTC_SR).
1 (ERR_TIMEDATE): The internal free running counters have been corrupted (invalid date or time, non-BCD values) since the
last read and/or they are still invalid.
31 30 29 28 27 26 25 24
––––––––
23 22 21 20 19 18 17 16
––––––––
15 14 13 12 11 10 9 8
––––––––
76543210
TDERR CALEV TIMEV SEC ALARM ACKUPD