Functional Description (Continued)
the chip is unlocked, but only after another 30 ms min
x
63 ms max debounce time. The system designer must ensure that his system is stable when power has returned.
The power fail circuitry contains active linear circuitry that
draws supply current from V
CC
. In some cases this may be
undesirable, so this circuit can be disabled by masking the
power fail interrupt. The power fail input can perform all
lock-out functions previously mentioned, except that no external interrupt will be issued. Note that the linear power fail
circuitry is switched off automatically when using V
BB
in
standby mode.
LOW BATTERY, INITIAL POWER ON DETECT, AND
POWER FAIL TIME SAVE
There are three other functions provided on the LV8572A to
ease power supply control. These are an initial Power On
detect circuit, which also can be used as a time keeping
failure detect, a low battery detect circuit, and a time save
on power failure.
On initial power up the Oscillator Fail Flag will be set to a
one and the real time clock start bit reset to a zero. This
indicates that an oscillator fail event has occurred, and time
keeping has failed.
The Oscillator Fail flag will not be reset until the real-time
clock is started. This allows the system to discriminate between an initial power-up and recovery from a power failure.
If the battery backed mode is selected, then bit D6 of the
Periodic Flag Register must be written low. This will not affect the contents of the Oscillator Fail Flag.
Another status bit is the low battery detect. This bit is set
only when the clock is operating under the V
CC
pin, and
when the battery voltage is determined to be less than 2.1V
(typical). When the power fail interrupt enable bit is low, it
disables the power fail circuit and will also shut off the low
battery voltage detection circuit as well.
To relieve CPU overhead for saving time upon power failure,
the Time Save Enable bit is provided to do this automatically. (See also Reading the Clock: Latched Read.) The Time
Save Enable bit, when set, causes the Time Save RAM to
follow the contents of the clock. This bit can be reset by
software, but if set before a power failure occurs, it will automatically be reset when the clock switches to the battery
supply (not when a power failure is detected by the PFAIL
pin). Thus, writing a one to the Time Save bit enables both a
software write or power fail write.
SINGLE POWER SUPPLY APPLICATIONS
The LV8572A can be used in a single power supply application. To achieve this, the V
BB
pin must be connected to
ground, and the power connected to V
CC
and PFAIL pins.
The Oscillator Failed/Single Supply bit in the Periodic Flag
Register should be set to a logic 1, which will disable the
oscillator battery reference circuit. The power fail interrupt
should also be disabled. This will turn off the linear power
fail detection circuits, and will eliminate any quiescent power
drawn through these circuits. Until the crystal select bits are
initialized, the LV8572A may consume about 50 mA due to
arbitrary oscillator selection at power on.
(This extra 50 mA is not consumed if the battery backed
mode is selected).
DETAILED REGISTER DESCRIPTION
There are 5 external address bits: Thus, the host microprocessor has access to 28 locations at one time. An internal
switching scheme provides a total of 61 locations.
This complete address space is organized into two pages.
Page 0 contains two blocks of control registers, timers, real
time clock counters, and special purpose RAM, while page
1 contains general purpose RAM. Using two blocks enables
the 9 control registers to be mapped into 5 locations. The
only register that does not get switched is the Main Status
Register. It contains the page select bit and the register
select bit as well as status information.
A memory map is shown in
Figure 2
and register addressing
in Table III. They show the name, address and page locations for the LV8572A.
TABLE III. Register/Counter/RAM
Addressing for LV8572A
A0-4
PS RS
Description
(Note 1) (Note 2)
CONTROL REGISTERS
00 X X Main Status Register
03 0 0 Periodic Flag Register
04 0 0 Time Save Control Register
01 0 1 Real Time Mode Register
02 0 1 Output Mode Register
03 0 1 Interrupt Control Register 0
04 0 1 Interrupt Control Register 1
COUNTERS (CLOCK CALENDAR)
05 0 X 1/100, 1/10 Seconds (0 –99)
06 0 X Seconds (0–59)
07 0 X Minutes (0 –59)
08 0 X Hours (1– 12, 0– 23)
09 0 X Days of
Month (1 – 28/29/30/31)
0A 0 X Months (1– 12)
0B 0 X Years (0– 99)
0C 0 X Julian Date (LSB) (1– 99)
0D 0 X Julian Date (0 –3)
0E 0 X Day of Week (1 –7)
TIME COMPARE RAM
13 0 X Sec Compare RAM (0 –59)
14 0 X Min Compare RAM (0– 59)
15 0 X Hours Compare
RAM (1 –12, 0 –23)
16 0 X DOM Compare
RAM (1– 28/29/30/31)
17 0 X Months Compare
RAM (1 –12)
18 0 X DOW Compare RAM (1 –7)
TIME SAVE RAM
19 0 X Seconds Time Save RAM
1A 0 X Minutes Time Save RAM
1B 0 X Hours Time Save RAM
1C 0 X Day of Month Time Save RAM
1D 0 X Months Time Save RAM
1E 0 1 RAM
1F 0 X RAM/Test Mode Register
01– 1F 1 X 2nd Page General Purpose RAM
1 PSÐPage Select (Bit D7 of Main Status Register)
2 RSÐRegister Select (Bit D6 of Main Status Register)
12