background image

4

VT82885

Real Time Clock

VIA Technologies, Inc.

X1, X2 

 These pins connect to a standard

32.768 kHz quartz crystal. The internal os-
cillator circuitry is designed for operation with
a crystal having a specified load capa-
citance (CL) of 6 pF. Each of the pins (X1
and X2) require the installation of an ex-
ternal 10 pF capacitor.

RCLR# 

 The RCLR# pin is used to clear

(set to logic 1) all 114 bytes of general pur-
pose RAM but does not affect the RAM as-
sociated with the real time clock. In order to
clear the RAM, RCLR# must be forced to an
input logic of 0 (-0.3 to +0.8 volts) during
battery back-up mode when V

CC

 is not ap-

plied. The RCLR# function is designed to be
used via human interface (shorting to ground
manually or by switch) and not to be driven
with external buffers. This pin is internally
pulled up.

AD0-AD7 (Multiplexed Bidirectional
Address/Data Bus)
 

 Multiplexed buses

save pins because address information and
data information time share the same signal
paths. The addresses are present during the
first portion of the bus cycle and the same
pins and cycle paths are used for data in the
second portion of the cycle. Address/data
multiplexing does not slow the access time
of the VT82885 since the bus change from
address to data occurs during the internal
RAM access time. Addresses must be valid
prior to the falling edge of AS, at which time
the VT82885 latches the address from AD0
to AD6. Valid data must be present and held
stable during the latter portion of the RD# or
WR# pulses. In a read cycle the VT82885
outputs 8 bits of data during the latter portion
of the RD# or RD# pulses. The read cycle is
terminated and the bus returns to a high
impedence state as RD# transistions high as
in Intel timing.

AS (Adress Strobe Input) 

 A positive

going address strobe pulse serves to
demultiplex the bus. The falling edge of AS
causes the address to be latched within the
VT82885.

RD# (Read Strobe) 

 The RD# pin identifies

the time period when the VT82885 drives the
bus with read data. The RD# signal is the
same definition as the Output Enable (OE#)
signal on a typical memory.

WR# (Write Strobe) 

 The WR# pin is used

to indicate a write cycle.

CS# (Chip Select Input) 

 The Chip Select

signal must be asserted low for a bus cycle
in the VT82885 to be accessed. CS# must
be kept in the active state during RD# and
WR#. Bus cycles which take place without
asserting CS# will latch addresses but no
access will occur. When V

CC

 is below 4.25

volts, the VT82885 internally inhibits access
cycles by internally disabling the CS# input.
This action protects both the real time clock
data and RAM data during power outages.

IRQ# (Interrupt Request Output) 

 The

IRQ# pin is an active low output of the
VT82885 that can be used as an interrupt
input to a processor. The IRQ# output
remains low as long as the status bit causing
the interrupt is present and the
corresponding interrupt-enable bit is set. To
clear the IRQ# pin the processor program
normally reads the C register. The RESET#
pin also clears pending interrupts.

When no interrupt condition is present, the
IRQ# level is in the high impedence state.
Multiple interrupting devices can be
connected to an IRQ# bus. The IRQ# bus is
an open drain output and requires an
external pull-up resistor.

RESET# (Reset Input) 

 The RESET# pin

has no effect on the clock, calendar, or
RAM. On power-up the RESET# pin can be
held low for a time in order to allow the
power supply to stabilize. The amount of
time that RESET# is held low is dependent
on the application. However, if RESET# is
used on power-up, the time RESET# is low
should exceed 200 ms to make sure that the
internal timer that controls the VT82885 on
power-up has timed out. When RESET# is
low and V

CC

 is above 4.25 volts, the

following occurs:

A. Periodic Interrupt Enable (PEI) bit is

cleared to zero.

B. Alarm Interrupt Flag (AIE) bit is cleared

to zero.

C. Update Ended Interrupt Flag (UF) bit is

cleared to zero.

D. Interrupt Request Status Flag (IRQF) bit

is cleared to zero.

Summary of Contents for VT82885

Page 1: ...SCRIPTION The VT82885 Real Time Clock is designed to be a direct replacement for the DS12885 The VT82885 is identical in form fit and function to the DS12885 It has 114 bytes of general purpose RAM Access to this RAM space is determined by the logic level presented on AD6 during the address portion of an access cycle An external crystal and battery are the only components required to maintain time...

Page 2: ...ion will continue to operate and all of the RAM time calen dar and alarm memory locations remain nonvolatile regardless of the level of the VCC input When VCC is applied to the VT82885 and reaches a level of greater than 4 25 volts the device becomes ac cessible after 100 ms provided that the oscillator is running and the oscillator countdown chain is not in reset see Register A This time period a...

Page 3: ...ut on the VCC pin VBAT Battery input for any standard 3 volt lithium cell or energy source Battery vol tage must be held between 2 5 and 3 4 volts for proper operation A maximum load of 5 µA at 25 C in the absence of VCC power should be used to size the external energy source SQW Square Wave Output The SQW pin can output a signal from one of 13 taps provided by the internal divider stages of the R...

Page 4: ...ithin the VT82885 RD Read Strobe The RD pin identifies the time period when the VT82885 drives the bus with read data The RD signal is the same definition as the Output Enable OE signal on a typical memory WR Write Strobe The WR pin is used to indicate a write cycle CS Chip Select Input The Chip Select signal must be asserted low for a bus cycle in the VT82885 to be accessed CS must be kept in the...

Page 5: ... read except the following 1 Registers C and D are read only 2 Bit 7 of Register A is read only 3 The high order bit of the seconds byte is read only The contents of four registers A B C and D are described in the Register section FIGURE 2 ADDRESS MAP VT82885 TIME CALENDAR AND ALARM LOCATIONS The time and calendar information is obtained by reading the appropriate memory bytes The time calendar an...

Page 6: ...r data is low Sev eral methods of avoiding any possible incor rect time and calendar reads are covered later in this text The three alarm bytes can be used in two ways First when the alarm time is written in the appropriate hours minutes and seconds alarm locations the alarm interrupt is initi ated at the specified time each day if the alarm enable bit is high The second use condition is to insert...

Page 7: ...which are set remain stable throughout the read cycle All bits which are set high are cleared when read and new interrupts which are pending during the read cycle are held until after the cycle is completed One two or three bits can be set when reading Register C Each utilized flag bit should be examined when read to ensure that no interrupts are lost The second flag bit usage method is with fully...

Page 8: ...al time clock that avoid any possibility of accessing inconsistent time and calendar data The first method uses the update ended interrupt If enabled an interrupt occurs after every up date cycle that indicates that over 999 ms are available to read valid time and date information If this interrupt is used the IRQF bit in Regis ter C should be cleared before leaving the interrupt routine A second ...

Page 9: ...IE SQWE DM 24 12 DSE SET When the SET bit is a zero the update transfer functions normally by advancing the counts once per second When the SET bit is written to a one any update transfer is inhibited and the program can initialize the time and calendar bytes without an update occurring in the midst of initializing SET is a read write bit that is not modified by RE SET or internal functions of the...

Page 10: ...ts are cleared after Register C is read by the program or when the RESET pin is low PF The Periodic Interrupt Flag PF is a read only bit whcih is set to a one when an edge is detected on the selected tap of the divider chain The RS3 through RS0 bits establish the periodic rate PF is set to a one independent of the state of the PIE bit When both PF and PIE are ones the IRQ signal is active and will...

Page 11: ...TER SYMBOL MIN TYP MAX UNITS NOTES Power Supply Voltage VCC 4 5 5 0 5 5 V 1 Input Logic 1 VIH 2 2 VCC 0 3 V 1 Input Logic 0 VIL 0 3 0 8 V 1 DC ELECTRICAL CHARACTERISTICS 0 C TO 70 C VCC 4 5 TO 5 5V PARAMETER SYMBOL MIN TYP MAX UNITS NOTES Power Supply Current ICC1 5 10 mA 2 Input Leakage IIL 1 0 1 0 µA 3 I O Leakage ILO 1 0 1 0 µA 4 Input Current IMOT 1 0 500 µA 3 Output 2 4V IOH 1 0 mA 1 5 Output...

Page 12: ...Rise tASD 25 ns Pulse Width AS ALE High PWASH 60 ns Delay Time AS alE to DS E Rise tASED 40 ns Output Data Delay Time from DS E or RD tDDR 20 120 ns DataSetup Time tDSW 100 ns Reset Pulse Width tRWL 5 µs IRQ Release from DS tIRDS 2 µs IRQ Release from RESET tIRR 2 µs Delay Time before Update Cycle tBUC 244 µs Periodic Interrupt Time Interval tPI See Table 1 Time of Update Cycle tUC 1708 µs NOTES 1...

Page 13: ...13 VT82885 Real Time Clock VIA Technologies Inc D U T 5 VOLTS 1 1 KΩ 50 pF 680Ω VT82885 BUS TIMING FOR WRITE CYCLE ...

Page 14: ...14 VT82885 Real Time Clock VIA Technologies Inc AS RD WR CS AD0 AD7 PWEL tASD tASD PWASH tCYC tCS tASED PWEH tDSW tAHL tASL tCH tDHW VT82885 BUS TIMING FOR READ CYCLE ...

Page 15: ...5 Real Time Clock VIA Technologies Inc AS RD WR CS AD0 AD7 PWEL tASD tASD PWASH tCYC tCS tASED PWEH tDDR tAHL tASL tDHR tCH VT82885 IRQ RELEASE DELAY TIMING RD RESET IRQ tRDS tIRR tRWL POWER DOWN POWER UP TIMING ...

Page 16: ...CC slew from 4 5V to 0V CS at VIH tF 300 µs VCC slew from 0V to 4 5V CS at VIH tR 100 µs CS at VIH after Power Up tREC 20 200 ms tA 25 C PARAMETER SYMBOL MIN TYP MAX UNITS NOTES Expected Data Retention tDR 10 years NOTE The real time clock will keep time to an accuracy of 1 minute per month during data retention time for the period of tDR WARNING Under no circumstances are negative undershots of a...

Reviews: