beautypg.com

Elapsed time counters, Power cycle counter – Rainbow Electronics DDS1693 User Manual

Page 21

background image

DS1689/DS1693

21 of 32

IRQ

and

PWR

will be driven low in response to WF being set to 1. When WIE is cleared to a 0, the WF

bit will have no effect on the

PWR

or IRQ pins.

KSE - Kickstart Interrupt Enable. When V

CC

voltage is absent and KSE is set to a 1, the

PWR

pin will be

driven active low when a kickstart condition occurs (

KS

pulsed low), causing the KF bit to be set to 1.

When V

CC

is then applied, the

IRQ

pin will also be driven low. If KSE is set to 1 while system power is

applied, both

IRQ

and PWR will be driven low in response to KF being set to 1. When KSE is cleared to

a 0, the KF bit will have no effect on the

PWR

or

IRQ

pins.

* Reserved bits. These bits are reserved for future use by Dallas Semiconductor. They can be read and

written, but have no effect on operation.

ELAPSED TIME COUNTERS

The DS1689/DS1693 has two 32-bit elapsed time counters, which reside in bank 1 of the RTC registers.
To access these counters the DV0 bit in register A must first be set to a logical 1.

The V

CC

powered elapsed time counter resides in register 54H through 57H. The LSB of this counter

resides in register 54 and the MSB is in 57H. The V

CC

powered elapsed time counter runs only while the

V

CCI

input is within nominal limits. The elapsed time counter is a binary counter that records the number

of seconds that have elapsed. The counter can be read or written at the user's discretion. The V

BAT

powered elapsed time counter resides in register 58H through 5BH. The LSB of this counter resides in
register 58 and the MSB is in 5BH.

The V

BAT

powered elapsed time counter runs continually as long as the V

BAT

or V

BAUX

pin is within

nominal limits regardless of the condition of V

CCI

. The number of seconds that have elapsed is recorded

in a binary counter and the counter may be read or written at the user’s discretion.

In a typical application the V

BAT

powered elapsed time counter can be used to record the length of time

that has elapsed from which the equipment which contains the device was first put into service. The V

CC

powered counter can then be used to record the length of time that V

CC

power is applied. These functions

can be particularly useful for warranty and maintenance information. In addition, battery life can be
predicted based on known loading factors. However, it is worth noting that a properly selected battery
should power the DS1689/DS1693 and external RAM for the useful life of most equipment.

POWER CYCLE COUNTER

The DS1689/DS1693 has a 16-bit power cycle counter that resides in register 5C and 5D of bank 1. The
LSB of this counter resides in 5C and the MSB is in 5D. This binary counter is incremented by one count
each time V

CCI

power is applied within nominal limits. This counter can be read or written at the user’s

discretion.