English
Language : 

PIC18F87K22 Datasheet, PDF (225/548 Pages) Microchip Technology – 64/80-Pin, High-Performance, 1-Mbit Enhanced Flash Microcontrollers with 12-Bit A/D and nanoWatt XLP Technology
PIC18F87K22 FAMILY
18.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
• Twenty-four 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
FIGURE 18-1:
RTCC BLOCK DIAGRAM
The RTCC module is intended for applications where
accurate time must be maintained for 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.
32.768 kHz Input
from SOSC Oscillator
Internal RC
(LF-INTOSC)
RTCC Clock Domain
RTCC Prescalers
0.5s
Alarm
Event
RTCC Timer
Comparator
Compare Registers
with Masks
Repeat Counter
CPU Clock Domain
RTCCFG
ALRMRPT
RTCVALx
ALRMVALx
YEAR
MTHDY
WKDYHR
MINSEC
ALMTHDY
ALWDHR
ALMINSEC
RTCC Interrupt Logic
RTCC Interrupt
Alarm Pulse
RTCC Pin
RTCOE
 2010 Microchip Technology Inc.
Preliminary
DS39960B-page 225