
www.national.com
142
Revision1.2
P
8.0
Real-Time Clock (RTC)
8.1
The RTC provides timekeeping and calendar management capabilities. It uses a 32.768 KHz signal as the basic clock for
timekeeping. The RTC also includes 242 bytes of battery-backed RAM for general-purpose use.
The RTC provides the following functions:
OVERVIEW
G
Accurate timekeeping and calendar management.
G
Alarm at a predetermined time and/or date.
G
Three programmable interrupt sources.
G
Valid timekeeping during power-down by utilizing external battery backup.
G
242 bytes of battery-backed RAM.
G
RAM lock schemes to protect its content.
G
Internal oscillator circuit (the crystal itself is off-chip) or external clock supply for the 32.768 KHz clock.
G
A century counter.
G
PnP support:
—
Relocatable index and data registers
—
Module access enable/disable option
—
Host interrupt enable/disable option
G
Additional low-power features such as:
—
Automatic switching from V
BAT
to V
SB
—
Internal power monitoring on the VRT bit
—
Oscillator disabling to conserve battery power during storage
G
Software compatible with the DS1287 and MC146818.
8.2
FUNCTIONAL DESCRIPTION
8.2.1
The RTC function is initially mapped to the default ServerI/O locations at indexes 70h to 73h (two Index/Data pairs). These
locations may be reassigned in compliance with Plug and Play requirements.
Bus Interface
8.2.2
The RTC uses a 32.768 KHz clock signal as the basic clock for timekeeping. The 32.768 KHz clock is supplied by either the
internal oscillator circuit or by an external oscillator (see Sections 8.2.3 and 8.2.4).
RTC Clock Generation
8.2.3
The internal oscillator employs an external crystal connected to the on-chip amplifier. The on-chip amplifier is accessible on
the 32KX1 input pin and 32KX2 output pin. See Figure 39 for the recommended external circuit; see Table 35 on page 143
for a listing of the circuit components. The oscillator may be disabled in certain conditions. See Section 8.2.12 on page 147
for more details.
Internal Oscillator
Figure 39. Recommended Oscillator External Circuitry
V
BAT
CF
Internal
External
R
2
32KX1 /
32KCLKIN
32KX2
C1
C2
R
1
Y
To other
modules
Battery
B1
CF = 0.1
μ
F