PIC32CX1025MTSH128 RTC registers

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
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
  • 0 No effect or, if UPDCAL has been previously written to 1, stops the update procedure.
  • 1 Stops the RTC calendar counting.
UPDTIM0Update 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
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
  • 0 Lower range ppm correction with accurate correction (below 30ppm correction).
  • 1 Higher range ppm correction with accurate correction (higher than 30ppm correction).
CORRECTION14:8Slow Clock Correction
NEGPPM4NEGative PPM Correction
  • 0 Positive correction (the divider will be slightly higher than 32768).
  • 1 Negative correction (the divider will be slightly lower than 32768).
UTC2UTC Time Format
  • 0 Gregorian or Persian calendar.
  • 1 UTC format.
PERSIAN1PERSIAN Calendar
  • 0 Gregorian calendar.
  • 1 Persian calendar.
HRMOD012-/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
FieldBitsWhat it does
AMPM22Ante Meridiem Post Meridiem Indicator
  • 0 AM.
  • 1 PM.
HOUR21:16Current Hour
MIN14:8Current Minute
SEC6:0Current Second
UTC_TIME31:0Current UTC Time

RTC_CALRCalendar Register

Address
0x4005310C
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
0x40053110
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
HOUREN23Hour Alarm Enable
  • 0 The hour-matching alarm is disabled.
  • 1 The hour-matching alarm is enabled.
AMPM22AM/PM Indicator
HOUR21:16Hour Alarm
MINEN15Minute Alarm Enable
  • 0 The minute-matching alarm is disabled.
  • 1 The minute-matching alarm is enabled.
MIN14:8Minute Alarm
SECEN7Second Alarm Enable
  • 0 The second-matching alarm is disabled.
  • 1 The second-matching alarm is enabled.
SEC6:0Second Alarm
UTC_TIME31:0UTC_TIME Alarm

RTC_CALALRCalendar Alarm Register

Address
0x40053114
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
FieldBitsWhat it does
DATE29:24Date Alarm
MTHEN23Month Alarm Enable
  • 0 The month-matching alarm is disabled.
  • 1 The month-matching alarm is enabled.
MONTH20:16Month Alarm
UTCEN0UTC Alarm Enable
  • 0 The UTC-matching alarm is disabled.
  • 1 The UTC-matching alarm is enabled.
DATEEN31Date 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
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
0x4005311C
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
0x40053120
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
0x40053124
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
0x40053128
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
0x4005312C
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

RTC_TCRTamper Control Register

Address
0x40053134
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
FGPBRCLR17Full 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.
TAMPCLR16Tamper 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.
TAMPEN44Timestamping on TMPx input is enabled
  • 0 Tamper event on TMPx input is not timestamped.
  • 1 Tamper event on TMPx input is timestamped.
TAMPEN33Timestamping on TMPx input is enabled
  • 0 Tamper event on TMPx input is not timestamped.
  • 1 Tamper event on TMPx input is timestamped.
TAMPEN22Timestamping on TMPx input is enabled
  • 0 Tamper event on TMPx input is not timestamped.
  • 1 Tamper event on TMPx input is timestamped.
TAMPEN11Timestamping on TMPx input is enabled
  • 0 Tamper event on TMPx input is not timestamped.
  • 1 Tamper event on TMPx input is timestamped.
TAMPEN00Timestamping 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
FieldBitsWhat it does
TISR44TMPx Input Status Register
TISR33TMPx Input Status Register
TISR22TMPx Input Status Register
TISR11TMPx Input Status Register
TISR00TMPx 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
FieldBitsWhat it does
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared by reading RTC_LSDRx)
DAY23:21Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH20:16Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR14:8Year of the Tamper (cleared by reading RTC_LSDRx)
CENT6:0Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME31:0Time 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
FieldBitsWhat it does
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared on read)
DAY23:21Day of the Tamper (cleared on read)
MONTH20:16Month of the Tamper (cleared on read)
YEAR14:8Year of the Tamper (cleared on read)
CENT6:0Century of the Tamper (cleared on read)
UTC_TIME31:0Time 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
FieldBitsWhat it does
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared by reading RTC_LSDRx)
DAY23:21Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH20:16Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR14:8Year of the Tamper (cleared by reading RTC_LSDRx)
CENT6:0Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME31:0Time 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
FieldBitsWhat it does
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared on read)
DAY23:21Day of the Tamper (cleared on read)
MONTH20:16Month of the Tamper (cleared on read)
YEAR14:8Year of the Tamper (cleared on read)
CENT6:0Century of the Tamper (cleared on read)
UTC_TIME31:0Time 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
FieldBitsWhat it does
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared by reading RTC_LSDRx)
DAY23:21Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH20:16Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR14:8Year of the Tamper (cleared by reading RTC_LSDRx)
CENT6:0Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME31:0Time 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
FieldBitsWhat it does
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared on read)
DAY23:21Day of the Tamper (cleared on read)
MONTH20:16Month of the Tamper (cleared on read)
YEAR14:8Year of the Tamper (cleared on read)
CENT6:0Century of the Tamper (cleared on read)
UTC_TIME31:0Time 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
FieldBitsWhat it does
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared by reading RTC_LSDRx)
DAY23:21Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH20:16Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR14:8Year of the Tamper (cleared by reading RTC_LSDRx)
CENT6:0Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME31:0Time 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
FieldBitsWhat it does
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared on read)
DAY23:21Day of the Tamper (cleared on read)
MONTH20:16Month of the Tamper (cleared on read)
YEAR14:8Year of the Tamper (cleared on read)
CENT6:0Century of the Tamper (cleared on read)
UTC_TIME31:0Time 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
FieldBitsWhat it does
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
TEVCNT27:24Tamper Events Counter (cleared by reading RTC_LSDRx)
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System 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
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared by reading RTC_LSDRx)
DAY23:21Day of the Tamper (cleared by reading RTC_LSDRx)
MONTH20:16Month of the Tamper (cleared by reading RTC_LSDRx)
YEAR14:8Year of the Tamper (cleared by reading RTC_LSDRx)
CENT6:0Century of the Tamper (cleared by reading RTC_LSDRx)
UTC_TIME31:0Time 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
FieldBitsWhat it does
AMPM22AM/PM Indicator of the Tamper (cleared by reading RTC_LSDRx)
HOUR21:16Hours of the Tamper (cleared by reading RTC_LSDRx)
MIN14:8Minutes of the Tamper (cleared by reading RTC_LSDRx)
SEC6:0Seconds of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)
BACKUP31System Mode of the Tamper (cleared by reading RTC_LSDRx)

RTC_SUB04.RTC_LSDRLast Stamping Date Register of Source 0

Address
0x4005318C
Reset
0x00000000
Access
read only
Size
32-bit
6 fields
FieldBitsWhat it does
DATE29:24Date of the Tamper (cleared on read)
DAY23:21Day of the Tamper (cleared on read)
MONTH20:16Month of the Tamper (cleared on read)
YEAR14:8Year of the Tamper (cleared on read)
CENT6:0Century of the Tamper (cleared on read)
UTC_TIME31:0Time of the Tamper (cleared on read)