PIC32MM0064GPM028 RTCC registers

The 7 registers of RTCC (Real-time clock and calendar), from 0xBF800000, with their reset value and every field. The PIC32MM0064GPM028 has 419 registers in 52 peripherals, one page each.

Most PIC32 SFRs have three more registers right after them: CLR at +4, SET at +8 and INV at +C (T1CONCLR, T1CONSET, T1CONINV), which clear, set or flip just the bits written as 1, in one write.

RTCC Real-time clock and calendar

RTCCON1

Address
0xBF800000
Reset
0x00000000
Access
read/write
Size
32-bit
8 fields
FieldBitsWhat it does
CHIME30
AMASK27:24Alarm Mask Configuration bits
  • 0 Every half-second
  • 1 Every second
  • 2 Every 10 seconds
  • 3 Every minute
  • 4 Every 10 minutes
  • 5 Every hour
  • 6 Once a day
  • 7 Once a week
  • 8 Once a month
  • 9 Once a year (or once every four years when configured for February 29th)
  • 10 Reserved
ALMRPT23:16Alarm Repeat Counter Value bits
ON15RTCC On bit
  • 0 RTCC module is disabled
  • 1 RTCC module is enabled
WRLOCK11
RTCOE7RTCC Output Enable bit
  • 0 RTCC clock output is disabled
  • 1 RTCC clock output is enabled; signal selected by OUTSEL[2:0] is presented on the RTCC pin
OUTSEL6:4RTCC Signal Output Select bits
  • 0 Alarm Pulse is presented on the RTCC pin when the alarm interrupt is triggered
  • 1 Seconds Clock is presented on the RTCC pin
  • 2 RTCC input clock source (based on the combination of the RTCCON2 bits, DIV[15:0] and PS[1:0])
  • 3 Reserved
ALRMEN31

RTCCON2

Address
0xBF800010
Reset
0x3FFF0000
Access
read/write
Size
32-bit
3 fields
FieldBitsWhat it does
FDIV15:11
CLKSEL1:0RTCC Clock Select bits
  • 0 RTCC uses the external 32.768 kHz Secondary Oscillator (SOSC)
  • 1 RTCC uses the internal 32 kHz oscillator (LPRC)
  • 2 RTCC uses the clock on PWRLCLK pin
  • 3 RTCC uses peripheral clock
DIV31:16

RTCSTAT

Address
0xBF800030
Reset
0x00000000
Access
read/write
Size
32-bit
4 fields
FieldBitsWhat it does
ALMEVT5
SYNC2
ALMSYNC1
HALFSEC0

RTCTIME

Address
0xBF800040
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
FieldBitsWhat it does
HRTEN30:28
HRONE27:24
MINTEN22:20
MINONE19:16
SECTEN14:12
SECONE11:8

RTCDATE

Address
0xBF800050
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
FieldBitsWhat it does
YRONE27:24
MTHTEN20
MTHONE19:16
DAYTEN13:12
DAYONE11:8
WDAY2:0
YRTEN31:28

ALMTIME

Address
0xBF800060
Reset
0x00000000
Access
read/write
Size
32-bit
6 fields
FieldBitsWhat it does
HRTEN30:28
HRONE27:24
MINTEN22:20
MINONE19:16
SECTEN14:12
SECONE11:8

ALMDATE

Address
0xBF800070
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
FieldBitsWhat it does
MTHTEN20
MTHONE19:16
DAYTEN13:12
DAYONE11:8
WDAY2:0