The 34 registers of RTC (Real-time Clock), from 0x40053100, with their reset value and every field. The PIC32CX1025MTSH128 has 2920 registers in 63 peripherals, one page each.
RTC Real-time Clock
RTC_CRControl Register
Address
0x40053100
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
Field
Bits
What it does
CALEVSEL
17:16
Calendar 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)
TIMEVSEL
9:8
Time Event Selection
0 Minute change
1 Hour change
2 Every day at midnight
3 Every day at noon
UPDCAL
1
Update Request Calendar Register
0 No effect or, if UPDCAL has been previously written to 1, stops the update procedure.
1 Stops the RTC calendar counting.
UPDTIM
0
Update Request Time Register
0 No effect or, if UPDTIM has been previously written to 1, stops the update procedure.
1 Stops the RTC time counting. Second, minute and hour counters can be programmed once this bit is set and acknowledged by the bit ACKUPD of the RTC_SR.
RTC_MRMode Register
Address
0x40053104
Reset
0x00000000
Access
read/write
Size
32-bit
10 fields
Field
Bits
What it does
TPERIOD
29:28
Period of the Output Pulse
0 1 second
1 500 ms
2 250 ms
3 125 ms
THIGH
26:24
High 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
OUT1
22:20
RTCOUT1 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
OUT0
18:16
RTCOUT0 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
HIGHPPM
15
HIGH PPM Correction
0 Lower range ppm correction with accurate correction (below 30ppm correction).
1 Higher range ppm correction with accurate correction (higher than 30ppm correction).
CORRECTION
14:8
Slow Clock Correction
NEGPPM
4
NEGative PPM Correction
0 Positive correction (the divider will be slightly higher than 32768).
1 Negative correction (the divider will be slightly lower than 32768).
UTC
2
UTC Time Format
0 Gregorian or Persian calendar.
1 UTC format.
PERSIAN
1
PERSIAN Calendar
0 Gregorian calendar.
1 Persian calendar.
HRMOD
0
12-/24-hour Mode
0 24-hour mode is selected.
1 12-hour mode is selected.
RTC_TIMRTime Register
Address
0x40053108
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
Field
Bits
What it does
AMPM
22
Ante Meridiem Post Meridiem Indicator
0 AM.
1 PM.
HOUR
21:16
Current Hour
MIN
14:8
Current Minute
SEC
6:0
Current Second
UTC_TIME
31:0
Current UTC Time
RTC_CALRCalendar Register
Address
0x4005310C
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
Field
Bits
What it does
DATE
29:24
Current Day in Current Month
DAY
23:21
Current Day in Current Week
MONTH
20:16
Current Month
YEAR
15:8
Current Year
CENT
6:0
Current Century
RTC_TIMALRTime Alarm Register
Address
0x40053110
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
Field
Bits
What it does
HOUREN
23
Hour Alarm Enable
0 The hour-matching alarm is disabled.
1 The hour-matching alarm is enabled.
AMPM
22
AM/PM Indicator
HOUR
21:16
Hour Alarm
MINEN
15
Minute Alarm Enable
0 The minute-matching alarm is disabled.
1 The minute-matching alarm is enabled.
MIN
14:8
Minute Alarm
SECEN
7
Second Alarm Enable
0 The second-matching alarm is disabled.
1 The second-matching alarm is enabled.
SEC
6:0
Second Alarm
UTC_TIME
31:0
UTC_TIME Alarm
RTC_CALALRCalendar Alarm Register
Address
0x40053114
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
Field
Bits
What it does
DATE
29:24
Date Alarm
MTHEN
23
Month Alarm Enable
0 The month-matching alarm is disabled.
1 The month-matching alarm is enabled.
MONTH
20:16
Month Alarm
UTCEN
0
UTC Alarm Enable
0 The UTC-matching alarm is disabled.
1 The UTC-matching alarm is enabled.
DATEEN
31
Date Alarm Enable
0 The date-matching alarm is disabled.
1 The date-matching alarm is enabled.
RTC_SRStatus Register
Address
0x40053118
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
TDERR
5
Time 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.
CALEV
4
Calendar Event
0 No calendar event has occurred since the last clear.
1 At least one calendar event has occurred since the last clear.
TIMEV
3
Time Event
0 No time event has occurred since the last clear.
1 At least one time event has occurred since the last clear.
SEC
2
Second Event
0 No second event has occurred since the last clear.
1 At least one second event has occurred since the last clear.
ALARM
1
Alarm Flag
0 No alarm matching condition occurred.
1 An alarm matching condition has occurred.
ACKUPD
0
Acknowledge for Update
0 Time and calendar registers cannot be updated.
1 Time and calendar registers can be updated.
RTC_SCCRStatus Clear Command Register
Address
0x4005311C
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
Field
Bits
What it does
TDERRCLR
5
Time and/or Date Free Running Error Clear
CALCLR
4
Calendar Clear
TIMCLR
3
Time Clear
SECCLR
2
Second Clear
ALRCLR
1
Alarm Clear
ACKCLR
0
Acknowledge Clear
RTC_IERInterrupt Enable Register
Address
0x40053120
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
Field
Bits
What it does
TDERREN
5
Time and/or Date Error Interrupt Enable
CALEN
4
Calendar Event Interrupt Enable
TIMEN
3
Time Event Interrupt Enable
SECEN
2
Second Event Interrupt Enable
ALREN
1
Alarm Interrupt Enable
ACKEN
0
Acknowledge Update Interrupt Enable
RTC_IDRInterrupt Disable Register
Address
0x40053124
Reset
0x00000000
Access
write only
Size
32-bit
6 fields
Field
Bits
What it does
TDERRDIS
5
Time and/or Date Error Interrupt Disable
CALDIS
4
Calendar Event Interrupt Disable
TIMDIS
3
Time Event Interrupt Disable
SECDIS
2
Second Event Interrupt Disable
ALRDIS
1
Alarm Interrupt Disable
ACKDIS
0
Acknowledge Update Interrupt Disable
RTC_IMRInterrupt Mask Register
Address
0x40053128
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
TDERR
5
Time and/or Date Error Mask
CAL
4
Calendar Event Interrupt Mask
TIM
3
Time Event Interrupt Mask
SEC
2
Second Event Interrupt Mask
ALR
1
Alarm Interrupt Mask
ACK
0
Acknowledge Update Interrupt Mask
RTC_VERValid Entry Register
Address
0x4005312C
Reset
0x00000000
Access
read only
Size
32-bit
4 fields
Field
Bits
What it does
NVCALALR
3
Non-valid Calendar Alarm
NVTIMALR
2
Non-valid Time Alarm
NVCAL
1
Non-valid Calendar
NVTIM
0
Non-valid Time
RTC_TCRTamper Control Register
Address
0x40053134
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
Field
Bits
What it does
FGPBRCLR
17
Full GPBR Clear
0 If TAMPCLR is set to '1', a tamper event immediately clears GPBR0 to GPBR11.
1 If TAMPCLR is set to '1', a tamper event immediately clears all GPBRs.
TAMPCLR
16
Tamper Clear
0 A Tamper event does not create an immediate clear on GPBR registers.
1 Tamper event on TMP0 or TMP4 generates an immediate clear on GPBR registers. The number of cleared GPBR registers depends on the value of FGPBRCLR.
TAMPEN4
4
Timestamping on TMPx input is enabled
0 Tamper event on TMPx input is not timestamped.
1 Tamper event on TMPx input is timestamped.
TAMPEN3
3
Timestamping on TMPx input is enabled
0 Tamper event on TMPx input is not timestamped.
1 Tamper event on TMPx input is timestamped.
TAMPEN2
2
Timestamping on TMPx input is enabled
0 Tamper event on TMPx input is not timestamped.
1 Tamper event on TMPx input is timestamped.
TAMPEN1
1
Timestamping on TMPx input is enabled
0 Tamper event on TMPx input is not timestamped.
1 Tamper event on TMPx input is timestamped.
TAMPEN0
0
Timestamping on TMPx input is enabled
0 Tamper event on TMPx input is not timestamped.
1 Tamper event on TMPx input is timestamped.
RTC_TISRTamper Input Status Register
Address
0x40053138
Reset
0x00000000
Access
read only
Size
32-bit
5 fields
Field
Bits
What it does
TISR4
4
TMPx Input Status Register
TISR3
3
TMPx Input Status Register
TISR2
2
TMPx Input Status Register
TISR1
1
TMPx Input Status Register
TISR0
0
TMPx Input Status Register
RTC_SUB00.RTC_FSTRFirst Stamping Time Register of Source 0
Address
0x40053140
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
Field
Bits
What it does
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB00.RTC_FSDRFirst Stamping Date Register of Source 0
Address
0x40053144
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared by reading RTC_LSDRx)
DAY
23:21
Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH
20:16
Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR
14:8
Year of the Tamper (cleared by reading RTC_LSDRx)
CENT
6:0
Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME
31:0
Time of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB00.RTC_LSTRLast Stamping Time Register of Source 0
Address
0x40053148
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB00.RTC_LSDRLast Stamping Date Register of Source 0
Address
0x4005314C
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared on read)
DAY
23:21
Day of the Tamper (cleared on read)
MONTH
20:16
Month of the Tamper (cleared on read)
YEAR
14:8
Year of the Tamper (cleared on read)
CENT
6:0
Century of the Tamper (cleared on read)
UTC_TIME
31:0
Time of the Tamper (cleared on read)
RTC_SUB01.RTC_FSTRFirst Stamping Time Register of Source 0
Address
0x40053150
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
Field
Bits
What it does
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB01.RTC_FSDRFirst Stamping Date Register of Source 0
Address
0x40053154
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared by reading RTC_LSDRx)
DAY
23:21
Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH
20:16
Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR
14:8
Year of the Tamper (cleared by reading RTC_LSDRx)
CENT
6:0
Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME
31:0
Time of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB01.RTC_LSTRLast Stamping Time Register of Source 0
Address
0x40053158
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB01.RTC_LSDRLast Stamping Date Register of Source 0
Address
0x4005315C
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared on read)
DAY
23:21
Day of the Tamper (cleared on read)
MONTH
20:16
Month of the Tamper (cleared on read)
YEAR
14:8
Year of the Tamper (cleared on read)
CENT
6:0
Century of the Tamper (cleared on read)
UTC_TIME
31:0
Time of the Tamper (cleared on read)
RTC_SUB02.RTC_FSTRFirst Stamping Time Register of Source 0
Address
0x40053160
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
Field
Bits
What it does
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB02.RTC_FSDRFirst Stamping Date Register of Source 0
Address
0x40053164
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared by reading RTC_LSDRx)
DAY
23:21
Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH
20:16
Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR
14:8
Year of the Tamper (cleared by reading RTC_LSDRx)
CENT
6:0
Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME
31:0
Time of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB02.RTC_LSTRLast Stamping Time Register of Source 0
Address
0x40053168
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB02.RTC_LSDRLast Stamping Date Register of Source 0
Address
0x4005316C
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared on read)
DAY
23:21
Day of the Tamper (cleared on read)
MONTH
20:16
Month of the Tamper (cleared on read)
YEAR
14:8
Year of the Tamper (cleared on read)
CENT
6:0
Century of the Tamper (cleared on read)
UTC_TIME
31:0
Time of the Tamper (cleared on read)
RTC_SUB03.RTC_FSTRFirst Stamping Time Register of Source 0
Address
0x40053170
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
Field
Bits
What it does
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB03.RTC_FSDRFirst Stamping Date Register of Source 0
Address
0x40053174
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared by reading RTC_LSDRx)
DAY
23:21
Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH
20:16
Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR
14:8
Year of the Tamper (cleared by reading RTC_LSDRx)
CENT
6:0
Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME
31:0
Time of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB03.RTC_LSTRLast Stamping Time Register of Source 0
Address
0x40053178
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB03.RTC_LSDRLast Stamping Date Register of Source 0
Address
0x4005317C
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared on read)
DAY
23:21
Day of the Tamper (cleared on read)
MONTH
20:16
Month of the Tamper (cleared on read)
YEAR
14:8
Year of the Tamper (cleared on read)
CENT
6:0
Century of the Tamper (cleared on read)
UTC_TIME
31:0
Time of the Tamper (cleared on read)
RTC_SUB04.RTC_FSTRFirst Stamping Time Register of Source 0
Address
0x40053180
Reset
0x00000000
Access
read only
Size
32-bit
8 fields
Field
Bits
What it does
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT
27:24
Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB04.RTC_FSDRFirst Stamping Date Register of Source 0
Address
0x40053184
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
DATE
29:24
Date of the Tamper (cleared by reading RTC_LSDRx)
DAY
23:21
Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH
20:16
Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR
14:8
Year of the Tamper (cleared by reading RTC_LSDRx)
CENT
6:0
Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME
31:0
Time of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB04.RTC_LSTRLast Stamping Time Register of Source 0
Address
0x40053188
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
Field
Bits
What it does
AMPM
22
AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR
21:16
Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN
14:8
Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC
6:0
Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP
31
System Mode of the Tamper (cleared by reading RTC_LSDRx)
RTC_SUB04.RTC_LSDRLast Stamping Date Register of Source 0