English
Language : 

PIC18F47J53 Datasheet, PDF (237/586 Pages) Microchip Technology – 28/44-Pin, High-Performance USB Microcontrollers with nanoWatt XLP Technology
PIC18F47J53 FAMILY
17.0 REAL-TIME CLOCK AND
CALENDAR (RTCC)
The key features of the Real-Time Clock and Calendar
(RTCC) module are:
• Time: hours, minutes and seconds
• 24-hour format (military time)
• Calendar: weekday, date, month and year
• Alarm configurable
• Year range: 2000 to 2099
• Leap year correction
• BCD format for compact firmware
• Optimized for low-power operation
• User calibration with auto-adjust
• Calibration range: 2.64 seconds error per month
• Requirements: external 32.768 kHz clock crystal
• Alarm pulse or seconds clock output on RTCC pin
The RTCC module is intended for applications where
accurate time must be maintained for an extended
period with minimum to no intervention from the CPU.
The module is optimized for low-power usage in order
to provide extended battery life while keeping track of
time.
The module is a 100-year clock and calendar with auto-
matic leap year detection. The range of the clock is
from 00:00:00 (midnight) on January 1, 2000 to
23:59:59 on December 31, 2099. Hours are measured
in 24-hour (military time) format. The clock provides a
granularity of one second with half-second visibility to
the user.
FIGURE 17-1:
RTCC BLOCK DIAGRAM
32.768 kHz Input
from Timer1 Oscillator
Internal RC
RTCC Clock Domain
RTCC Prescalers
0.5s
Alarm
Event
RTCC Timer
Comparator
Compare Registers
with Masks
Repeat Counter
CPU Clock Domain
RTCCFG
ALRMRPT
RTCVAL
ALRMVAL
YEAR
MTHDY
WKDYHR
MINSEC
ALMTHDY
ALWDHR
ALMINSEC
RTCC Interrupt Logic
RTCC Interrupt
Alarm Pulse
RTCC Pin
RTCOE
 2010 Microchip Technology Inc.
Preliminary
DS39964B-page 237