ATSAMHA0G16AB RTC registers

The 28 registers of RTC (Real-Time Counter), from 0x40001400, with their reset value and every field. The ATSAMHA0G16AB has 990 registers in 36 peripherals, one page each.

RTC Real-Time Counter

MODE0.CTRLMODE0 Control

Address
0x40001400
Reset
0x0000
Access
read/write
Size
16-bit
5 fields
FieldBitsWhat it does
PRESCALER11:8Prescaler
  • 0 CLK_RTC_CNT = GCLK_RTC/1
  • 1 CLK_RTC_CNT = GCLK_RTC/2
  • 2 CLK_RTC_CNT = GCLK_RTC/4
  • 3 CLK_RTC_CNT = GCLK_RTC/8
  • 4 CLK_RTC_CNT = GCLK_RTC/16
  • 5 CLK_RTC_CNT = GCLK_RTC/32
  • 6 CLK_RTC_CNT = GCLK_RTC/64
  • 7 CLK_RTC_CNT = GCLK_RTC/128
  • 8 CLK_RTC_CNT = GCLK_RTC/256
  • 9 CLK_RTC_CNT = GCLK_RTC/512
  • 10 CLK_RTC_CNT = GCLK_RTC/1024
MATCHCLR7Clear on Match
MODE3:2Operating Mode
  • 0 Mode 0: 32-bit Counter
  • 1 Mode 1: 16-bit Counter
  • 2 Mode 2: Clock/Calendar
ENABLE1Enable
SWRST0Software Reset

MODE1.CTRLMODE1 Control

Address
0x40001400
Reset
0x0000
Access
read/write
Size
16-bit
4 fields
FieldBitsWhat it does
PRESCALER11:8Prescaler
  • 0 CLK_RTC_CNT = GCLK_RTC/1
  • 1 CLK_RTC_CNT = GCLK_RTC/2
  • 2 CLK_RTC_CNT = GCLK_RTC/4
  • 3 CLK_RTC_CNT = GCLK_RTC/8
  • 4 CLK_RTC_CNT = GCLK_RTC/16
  • 5 CLK_RTC_CNT = GCLK_RTC/32
  • 6 CLK_RTC_CNT = GCLK_RTC/64
  • 7 CLK_RTC_CNT = GCLK_RTC/128
  • 8 CLK_RTC_CNT = GCLK_RTC/256
  • 9 CLK_RTC_CNT = GCLK_RTC/512
  • 10 CLK_RTC_CNT = GCLK_RTC/1024
MODE3:2Operating Mode
  • 0 Mode 0: 32-bit Counter
  • 1 Mode 1: 16-bit Counter
  • 2 Mode 2: Clock/Calendar
ENABLE1Enable
SWRST0Software Reset

MODE2.CTRLMODE2 Control

Address
0x40001400
Reset
0x0000
Access
read/write
Size
16-bit
6 fields
FieldBitsWhat it does
PRESCALER11:8Prescaler
  • 0 CLK_RTC_CNT = GCLK_RTC/1
  • 1 CLK_RTC_CNT = GCLK_RTC/2
  • 2 CLK_RTC_CNT = GCLK_RTC/4
  • 3 CLK_RTC_CNT = GCLK_RTC/8
  • 4 CLK_RTC_CNT = GCLK_RTC/16
  • 5 CLK_RTC_CNT = GCLK_RTC/32
  • 6 CLK_RTC_CNT = GCLK_RTC/64
  • 7 CLK_RTC_CNT = GCLK_RTC/128
  • 8 CLK_RTC_CNT = GCLK_RTC/256
  • 9 CLK_RTC_CNT = GCLK_RTC/512
  • 10 CLK_RTC_CNT = GCLK_RTC/1024
MATCHCLR7Clear on Match
CLKREP6Clock Representation
MODE3:2Operating Mode
  • 0 Mode 0: 32-bit Counter
  • 1 Mode 1: 16-bit Counter
  • 2 Mode 2: Clock/Calendar
ENABLE1Enable
SWRST0Software Reset

READREQRead Request

Address
0x40001402
Reset
0x0010
Access
read/write
Size
16-bit
3 fields
FieldBitsWhat it does
RREQ15Read Request
RCONT14Read Continuously
ADDR5:0Address

MODE0.EVCTRLMODE0 Event Control

Address
0x40001404
Reset
0x0000
Access
read/write
Size
16-bit
10 fields
FieldBitsWhat it does
OVFEO15Overflow Event Output Enable
CMPEO08Compare 0 Event Output Enable
PEREO77Periodic Interval 7 Event Output Enable
PEREO66Periodic Interval 6 Event Output Enable
PEREO55Periodic Interval 5 Event Output Enable
PEREO44Periodic Interval 4 Event Output Enable
PEREO33Periodic Interval 3 Event Output Enable
PEREO22Periodic Interval 2 Event Output Enable
PEREO11Periodic Interval 1 Event Output Enable
PEREO00Periodic Interval 0 Event Output Enable

MODE1.EVCTRLMODE1 Event Control

Address
0x40001404
Reset
0x0000
Access
read/write
Size
16-bit
11 fields
FieldBitsWhat it does
OVFEO15Overflow Event Output Enable
CMPEO19Compare 1 Event Output Enable
CMPEO08Compare 0 Event Output Enable
PEREO77Periodic Interval 7 Event Output Enable
PEREO66Periodic Interval 6 Event Output Enable
PEREO55Periodic Interval 5 Event Output Enable
PEREO44Periodic Interval 4 Event Output Enable
PEREO33Periodic Interval 3 Event Output Enable
PEREO22Periodic Interval 2 Event Output Enable
PEREO11Periodic Interval 1 Event Output Enable
PEREO00Periodic Interval 0 Event Output Enable

MODE2.EVCTRLMODE2 Event Control

Address
0x40001404
Reset
0x0000
Access
read/write
Size
16-bit
10 fields
FieldBitsWhat it does
OVFEO15Overflow Event Output Enable
ALARMEO08Alarm 0 Event Output Enable
PEREO77Periodic Interval 7 Event Output Enable
PEREO66Periodic Interval 6 Event Output Enable
PEREO55Periodic Interval 5 Event Output Enable
PEREO44Periodic Interval 4 Event Output Enable
PEREO33Periodic Interval 3 Event Output Enable
PEREO22Periodic Interval 2 Event Output Enable
PEREO11Periodic Interval 1 Event Output Enable
PEREO00Periodic Interval 0 Event Output Enable

MODE0.INTENCLRMODE0 Interrupt Enable Clear

Address
0x40001406
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0CMP0
3 fields
FieldBitsWhat it does
OVF7Overflow Interrupt Enable
SYNCRDY6Synchronization Ready Interrupt Enable
CMP00Compare 0 Interrupt Enable

MODE1.INTENCLRMODE1 Interrupt Enable Clear

Address
0x40001406
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1CMP1
  8. 0CMP0
4 fields
FieldBitsWhat it does
OVF7Overflow Interrupt Enable
SYNCRDY6Synchronization Ready Interrupt Enable
CMP11Compare 1 Interrupt Enable
CMP00Compare 0 Interrupt Enable

MODE2.INTENCLRMODE2 Interrupt Enable Clear

Address
0x40001406
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0ALARM0
3 fields
FieldBitsWhat it does
OVF7Overflow Interrupt Enable
SYNCRDY6Synchronization Ready Interrupt Enable
ALARM00Alarm 0 Interrupt Enable

MODE0.INTENSETMODE0 Interrupt Enable Set

Address
0x40001407
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0CMP0
3 fields
FieldBitsWhat it does
OVF7Overflow Interrupt Enable
SYNCRDY6Synchronization Ready Interrupt Enable
CMP00Compare 0 Interrupt Enable

MODE1.INTENSETMODE1 Interrupt Enable Set

Address
0x40001407
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1CMP1
  8. 0CMP0
4 fields
FieldBitsWhat it does
OVF7Overflow Interrupt Enable
SYNCRDY6Synchronization Ready Interrupt Enable
CMP11Compare 1 Interrupt Enable
CMP00Compare 0 Interrupt Enable

MODE2.INTENSETMODE2 Interrupt Enable Set

Address
0x40001407
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0ALARM0
3 fields
FieldBitsWhat it does
OVF7Overflow Interrupt Enable
SYNCRDY6Synchronization Ready Interrupt Enable
ALARM00Alarm 0 Interrupt Enable

MODE0.INTFLAGMODE0 Interrupt Flag Status and Clear

Address
0x40001408
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0CMP0
3 fields
FieldBitsWhat it does
OVF7Overflow
SYNCRDY6Synchronization Ready
CMP00Compare 0

MODE1.INTFLAGMODE1 Interrupt Flag Status and Clear

Address
0x40001408
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1CMP1
  8. 0CMP0
4 fields
FieldBitsWhat it does
OVF7Overflow
SYNCRDY6Synchronization Ready
CMP11Compare 1
CMP00Compare 0

MODE2.INTFLAGMODE2 Interrupt Flag Status and Clear

Address
0x40001408
Reset
0x00
Access
read/write
  1. 7OVF
  2. 6SYNCRDY
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0ALARM0
3 fields
FieldBitsWhat it does
OVF7Overflow
SYNCRDY6Synchronization Ready
ALARM00Alarm 0

STATUSStatus

Address
0x4000140A
Reset
0x00
Access
read/write
  1. 7SYNCBUSY
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0–
1 field
FieldBitsWhat it does
SYNCBUSY7Synchronization Busy

DBGCTRLDebug Control

Address
0x4000140B
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0DBGRUN
1 field
FieldBitsWhat it does
DBGRUN0Run During Debug

FREQCORRFrequency Correction

Address
0x4000140C
Reset
0x00
Access
read/write
  1. 7SIGN
  2. 6VALUE6
  3. 5VALUE5
  4. 4VALUE4
  5. 3VALUE3
  6. 2VALUE2
  7. 1VALUE1
  8. 0VALUE0
2 fields
FieldBitsWhat it does
SIGN7Correction Sign
VALUE6:0Correction Value

MODE0.COUNTMODE0 Counter Value

Address
0x40001410
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
COUNT31:0Counter Value

MODE1.COUNTMODE1 Counter Value

Address
0x40001410
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
COUNT15:0Counter Value

MODE2.CLOCKMODE2 Clock Value

Address
0x40001410
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
FieldBitsWhat it does
MONTH25:22Month
DAY21:17Day
HOUR16:12Hour
  • 0 AM when CLKREP in 12-hour
  • 16 PM when CLKREP in 12-hour
MINUTE11:6Minute
SECOND5:0Second
YEAR31:26Year

MODE1.PERMODE1 Counter Period

Address
0x40001414
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
PER15:0Counter Period

MODE0.COMPMODE0 Compare n Value

Address
0x40001418
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
FieldBitsWhat it does
COMP31:0Compare Value

MODE1.COMP0MODE1 Compare n Value

Address
0x40001418
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
COMP15:0Compare Value

MODE2.ALARMMODE2_ALARM Alarm n Value

Address
0x40001418
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
FieldBitsWhat it does
MONTH25:22Month
DAY21:17Day
HOUR16:12Hour
  • 0 Morning hour
  • 16 Afternoon hour
MINUTE11:6Minute
SECOND5:0Second
YEAR31:26Year

MODE1.COMP1MODE1 Compare n Value

Address
0x4000141A
Reset
0x0000
Access
read/write
Size
16-bit
1 field
FieldBitsWhat it does
COMP15:0Compare Value

MODE2.MASKMODE2_ALARM Alarm n Mask

Address
0x4000141C
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2SEL2
  7. 1SEL1
  8. 0SEL0
1 field
FieldBitsWhat it does
SEL2:0Alarm Mask Selection
  • 0 Alarm Disabled
  • 1 Match seconds only
  • 2 Match seconds and minutes only
  • 3 Match seconds, minutes, and hours only
  • 4 Match seconds, minutes, hours, and days only
  • 5 Match seconds, minutes, hours, days, and months only
  • 6 Match seconds, minutes, hours, days, months, and years