English
Language : 

PIC32MX320F032H_11 Datasheet, PDF (121/214 Pages) Microchip Technology – High-Performance, General Purpose and USB, 32-bit Flash Microcontrollers
PIC32MX3XX/4XX
21.0 REAL-TIME CLOCK AND
CALENDAR (RTCC)
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.
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.
FIGURE 21-1:
RTCC BLOCK DIAGRAM
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
32.768 kHz Input
from Secondary
Oscillator (SOSC)
RTCC Prescalers
0.5s
Alarm
Event
RTCC Timer
Comparator
Compare Registers
with Masks
Repeat Counter
RTCVAL
ALRMVAL
RTCC Interrupt Logic
YEAR, MTH, DAY
WKDAY
HR, MIN, SEC
MTH, DAY
WKDAY
HR, MIN, SEC
RTCC Interrupt
Alarm Pulse
Seconds Pulse
RTCOE
RTCC Pin
© 2011 Microchip Technology Inc.
DS61143H-page 121