ATSAMS70N21B RTC registers

The 12 registers of RTC (Real-time Clock), from 0x400E1860, with their reset value and every field. The ATSAMS70N21B has 2500 registers in 59 peripherals, one page each.

RTC Real-time Clock

RTC_CRControl Register

Address
0x400E1860
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
CALEVSEL17:16Calendar Event Selection
  • 0 Week change (every Monday at time 00:00:00)
  • 1 Month change (every 01 of each month at time 00:00:00)
  • 2 Year change (every January 1 at time 00:00:00)
TIMEVSEL9:8Time Event Selection
  • 0 Minute change
  • 1 Hour change
  • 2 Every day at midnight
  • 3 Every day at noon
UPDCAL1Update Request Calendar Register
UPDTIM0Update Request Time Register

RTC_MRMode Register

Address
0x400E1864
Reset
0x00000000
Access
read/write
Size
32-bit
9 fields
FieldBitsWhat it does
TPERIOD29:28Period of the Output Pulse
  • 0 1 second
  • 1 500 ms
  • 2 250 ms
  • 3 125 ms
THIGH26:24High Duration of the Output Pulse
  • 0 31.2 ms
  • 1 15.6 ms
  • 2 3.91 ms
  • 3 976 us
  • 4 488 us
  • 5 122 us
  • 6 30.5 us
  • 7 15.2 us
OUT122:20RTCOUT1 Output Source Selection
  • 0 No waveform, stuck at '0'
  • 1 1 Hz square wave
  • 2 32 Hz square wave
  • 3 64 Hz square wave
  • 4 512 Hz square wave
  • 5 Output toggles when alarm flag rises
  • 6 Output is a copy of the alarm flag
  • 7 Duty cycle programmable pulse
OUT018:16RTCOUT0 OutputSource Selection
  • 0 No waveform, stuck at '0'
  • 1 1 Hz square wave
  • 2 32 Hz square wave
  • 3 64 Hz square wave
  • 4 512 Hz square wave
  • 5 Output toggles when alarm flag rises
  • 6 Output is a copy of the alarm flag
  • 7 Duty cycle programmable pulse
HIGHPPM15HIGH PPM Correction
CORRECTION14:8Slow Clock Correction
NEGPPM4NEGative PPM Correction
PERSIAN1PERSIAN Calendar
HRMOD012-/24-hour Mode

RTC_TIMRTime Register

Address
0x400E1868
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
AMPM22Ante Meridiem Post Meridiem Indicator
HOUR21:16Current Hour
MIN14:8Current Minute
SEC6:0Current Second

RTC_CALRCalendar Register

Address
0x400E186C
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
FieldBitsWhat it does
DATE29:24Current Day in Current Month
DAY23:21Current Day in Current Week
MONTH20:16Current Month
YEAR15:8Current Year
CENT6:0Current Century

RTC_TIMALRTime Alarm Register

Address
0x400E1870
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
HOUREN23Hour Alarm Enable
AMPM22AM/PM Indicator
HOUR21:16Hour Alarm
MINEN15Minute Alarm Enable
MIN14:8Minute Alarm
SECEN7Second Alarm Enable
SEC6:0Second Alarm

RTC_CALALRCalendar Alarm Register

Address
0x400E1874
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
DATE29:24Date Alarm
MTHEN23Month Alarm Enable
MONTH20:16Month Alarm
DATEEN31Date Alarm Enable

RTC_SRStatus Register

Address
0x400E1878
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
FieldBitsWhat it does
TDERR5Time and/or Date Free Running Error
  • 0 The internal free running counters are carrying valid values since the last read of the Status Register (RTC_SR).
  • 1 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.
CALEV4Calendar Event
  • 0 No calendar event has occurred since the last clear.
  • 1 At least one calendar event has occurred since the last clear.
TIMEV3Time Event
  • 0 No time event has occurred since the last clear.
  • 1 At least one time event has occurred since the last clear.
SEC2Second Event
  • 0 No second event has occurred since the last clear.
  • 1 At least one second event has occurred since the last clear.
ALARM1Alarm Flag
  • 0 No alarm matching condition occurred.
  • 1 An alarm matching condition has occurred.
ACKUPD0Acknowledge for Update
  • 0 Time and calendar registers cannot be updated.
  • 1 Time and calendar registers can be updated.

RTC_SCCRStatus Clear Command Register

Address
0x400E187C
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
FieldBitsWhat it does
TDERRCLR5Time and/or Date Free Running Error Clear
CALCLR4Calendar Clear
TIMCLR3Time Clear
SECCLR2Second Clear
ALRCLR1Alarm Clear
ACKCLR0Acknowledge Clear

RTC_IERInterrupt Enable Register

Address
0x400E1880
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
FieldBitsWhat it does
TDERREN5Time and/or Date Error Interrupt Enable
CALEN4Calendar Event Interrupt Enable
TIMEN3Time Event Interrupt Enable
SECEN2Second Event Interrupt Enable
ALREN1Alarm Interrupt Enable
ACKEN0Acknowledge Update Interrupt Enable

RTC_IDRInterrupt Disable Register

Address
0x400E1884
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
FieldBitsWhat it does
TDERRDIS5Time and/or Date Error Interrupt Disable
CALDIS4Calendar Event Interrupt Disable
TIMDIS3Time Event Interrupt Disable
SECDIS2Second Event Interrupt Disable
ALRDIS1Alarm Interrupt Disable
ACKDIS0Acknowledge Update Interrupt Disable

RTC_IMRInterrupt Mask Register

Address
0x400E1888
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
FieldBitsWhat it does
TDERR5Time and/or Date Error Mask
CAL4Calendar Event Interrupt Mask
TIM3Time Event Interrupt Mask
SEC2Second Event Interrupt Mask
ALR1Alarm Interrupt Mask
ACK0Acknowledge Update Interrupt Mask

RTC_VERValid Entry Register

Address
0x400E188C
Reset
0x00000000
Access
read only
Size
32-bit
4 fields
FieldBitsWhat it does
NVCALALR3Non-valid Calendar Alarm
NVTIMALR2Non-valid Time Alarm
NVCAL1Non-valid Calendar
NVTIM0Non-valid Time