Real-time clock, Ation on this interrupt can be found in section – Maxim Integrated High-Speed Microcontroller User Manual
Page 156
High-Speed Microcontroller User’s Guide
Rev: 062210
156 of 176
14. REAL-TIME CLOCK
The DS87C530 incorporates a real-time clock (RTC) onto the high-speed microcontroller family core.
This allows the device to perform real-time related functions such as data logging and timestamping
without an external timer. In addition, the RTC includes an alarm function that can execute a software
interrupt or resume operation from Stop mode at a specified time. The RTC features are controlled by 12
new SFRs. These registers as well as two new interrupt control bits are shown in
Table 14-A. Real-Time Clock Control and Status Bit Summary
NAME
LOCATION
FUNCTION
RANGE
RESET
READ/WRITE ACCESS
ERTCI
.5 RTC
Interrupt
Enable
0
Unrestricted
PRTCI
.5 RTC
Interrupt
Priority
0
Unrestricted
RTASS.7–0
RTC Alarm Subsecond
0–FFh
Unchanged
Unrestricted
RTAS.5–0
RTC Alarm Second
0–3Bh
Unchanged
Unrestricted
RTAM.5–0
RTC Alarm Minute
0–3Bh
Unchanged
Unrestricted
RTAH.4–0
RTC Alarm Hour
0–17H
Unchanged
Unrestricted
RTCSS.7–0
RTC Subsecond
0–FFh
Unchanged
Read: only if RTCRE = 1.
Cannot be written. Cleared when
RTCWE 1 ≥ 0.
RTCS.5–0
RTC Second
0–3Bh
Unchanged
RTCM.5–0
RTC Minute
0–3Bh
Unchanged
RTCH.4–0
.4–0 RTC
Hour
0–17h
Unchanged
DOW.2–0
.7–5
RTC Day of Week
0–7h
Unchanged
RTCD1.7–0
RTCD0.7–0
, (MSB)
, (LSB)
RTC Day
0–FFFFh
Unchanged
Read: only if RTCRE = 1.
Write: only if RTCWE = 1.
1.95ms Read/Write window
SRCE
RTC Subsecond
Compare Enable
Unchanged
Unrestricted
SCE
RTC Second Compare
Enable
Unchanged
Unrestricted
MCE
RTC Minute Compare
Enable
Unchanged
Unrestricted
HCE
RTC Hour Compare
Enable
Unchanged
Unrestricted
RTCRE
RTC Read Enable
0
Unrestricted
RTCWE
Write
Enable
0
Read: Unrestricted
Write: Timed Access
RTCIF
.1 RTC
Interrupt
Flag
Unchanged
Unrestricted
RTCE
.0 RTC
Enable
Unchanged
E4K
.7
External 4096Hz RTC
Signal Enable
0
X12/6
.6
RTC Crystal
Capacitance Select
Unchanged
Read: Unrestricted
Write: Timed Access
TRM2–0
.5
.3
.1
RTC Trim Bit 2–0
Unchanged
Read: Unrestricted
Write: Timed Access
The RTC control and status registers can be subdivided into four groups: RTC time registers
(
;FBh,
;FCh,
;FDh,
;FFh), RTC alarm registers
(
;F5h), RTC calibration (
;96h), and RTC control
(
;F9h).