Datasheet
2015 Microchip Technology Inc. Preliminary DS60001320B-page 393
PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family
25.0 REAL-TIME CLOCK AND
CALENDAR (RTCC)
The RTCC module is intended for applications in which
accurate time must be maintained for extended periods
of time with minimal or no CPU intervention. Low-
power optimization provides extended battery lifetime
while keeping track of time.
Key features of the RTCC module include:
• Time: hours, minutes and seconds
• 24-hour format (military time)
• Visibility of one-half second period
• Provides calendar: Weekday, date, month and year
• Alarm intervals are configurable for half of a second,
one second, 10 seconds, one minute, 10 minutes,
one hour, one day, one week, one month, and one
year
• Alarm repeat with decrementing counter
• Alarm with indefinite repeat: Chime
• Year range: 2000 to 2099
• Leap year correction
• BCD format for smaller firmware overhead
• Optimized for long-term battery operation
• Fractional second synchronization
• User calibration of the clock crystal frequency with
auto-adjust
• Calibration range: 0.66 seconds error per month
• Calibrates up to 260 ppm of crystal error
• Uses external 32.768 kHz crystal or 32 kHz
internal oscillator
• Alarm pulse, seconds clock, or internal clock output
on RTCC pin
FIGURE 25-1: RTCC BLOCK DIAGRAM
Note: This data sheet summarizes the
features of the PIC32MZ EF family of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to Section 29. “Real-Time
Clock and Calendar (RTCC)”
(DS60001125) in the “PIC32 Family Ref
-
erence Manual”, which is available from
the Microchip web site (www.micro-
chip.com/PIC32).
RTCC Prescalers
RTCC Timer
Comparator
Compare Registers
Repeat Counter
YEAR, MTH, DAY
WKDAY
HR, MIN, SEC
MTH, DAY
WKDAY
HR, MIN, SEC
with Masks
RTCC Interrupt Logic
Alarm
Event
32.768 kHz Input from
Secondary Oscillator (S
OSC)
0.5 seconds
RTCC Interrupt
RTCVAL
ALRMVAL
RTCC Pin
RTCOE
32 kHz Input from
Internal Oscillator (LPRC)
RTCCLKSEL<1:0>
TRTC
Seconds Pulse
T
RTC
Alarm Pulse
RTCOUTSEL<1:0>