# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# PIC24FJ64GA004

- 1
- 2
…
- 175
- 176
- 177
- 178
- 179
…
- 277
- 278

 2010-2013 Microchip Technology Inc. DS39881E-page 177
PIC24FJ64GA004 FAMILY
19.0 REAL-TIME CLOCK AND
CALENDAR (RTCC)
The Real-Time Clock and Calendar (RTCC) provides
on-chip, hardware-based clock and calendar function-
ality with little or no CPU overhead. It is intended for
applications where accurate time must be maintained
for extended periods, with minimal CPU activity and
with limited power resources, such as battery-powered
applications.
Key features include:
 Time data in hours, minutes and seconds, with a
granularity of one-half second
 24-hour format (military time) display option
 Calendar data as date, month and year
 Automatic, hardware-based day of week and leap
year calculations for dates from 2000 through
2099
 Time and calendar data in BCD format for
compact firmware
 Highly configurable alarm function
 External output pin with selectable alarm signal or
seconds tick signal output
 Time base input from Secondary Oscillator (SOSC)
or the T1CK digital clock input (32.768 kHz)
 User calibration feature with auto-adjust
A simplified block diagram of the module is shown in
Figure 19-1.The SOSC and RTCC will both remain
running while the device is held in Reset with MCLR,
and will continue running after MCLR
is released.
FIGURE 19-1: RTCC BLOCK DIAGRAM
Note: This data sheet summarizes the features of
this group of PIC24F devices. It is not
intended to be a comprehensive reference
source. For more information, refer to the
“PIC24F Family Reference Manual”,
“Real-Time Clock and Calendar
(RTCC)” (DS39696).
RTCC Prescalers
Repeat Counter
YEAR
MTHDY
WKDYHR
MINSEC
ALMTHDY
ALWDHR
ALMINSEC
RTCC Interrupt Logic
RCFGCAL
ALCFGRPT
Alarm
Event
32.768 kHz Input
(SOSC or T1CK)
0.5s
RTCC Clock Domain
Alarm Pulse
RTCC Interrupt
CPU Clock Domain
RTCVAL
ALRMVAL
RTCC Pin
RTCOE
RTCC Timer
Compare Registers
with Masks
Comparator

- 1
- 2
…
- 175
- 176
- 177
- 178
- 179
…
- 277
- 278