Datasheet

© 2011 Microchip Technology Inc. DS61143H-page 121
PIC32MX3XX/4XX
21.0 REAL-TIME CLOCK AND
CALENDAR (RTCC)
The PIC32MX RTCC module is intended for applica-
tions in which accurate time must be maintained for
extended periods of time with minimal or no CPU inter-
vention. Low-power optimization provides extended
battery lifetime while keeping track of time.
The following are some of the key features of this
module:
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
Requirements: External 32.768 kHz Clock Crystal
Alarm Pulse or Seconds Clock Output on RTCC
pin
FIGURE 21-1: RTCC BLOCK DIAGRAM
Note 1: This data sheet summarizes the features
of the PIC32MX3XX/4XX family of
devices. It is not intended to be a compre-
hensive reference source. To comple-
ment the information in this data sheet,
refer to Section 29. “Real-Time Clock
and Calendar (RTCC)” (DS61125) of the
“PIC32 Family Reference Manual”, which
is available from the Microchip web site
(www.microchip.com/PIC32).
2: Some registers and associated bits
described in this section may not be
available on all devices. Refer to
Section 4.0 “Memory Organization” in
this data sheet for device-specific register
and bit information.
Seconds Pulse
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
0.5s
Alarm Pulse
RTCC Interrupt
RTCVAL
ALRMVAL
RTCC Pin
RTCOE
Oscillator (S
OSC)