English
Language : 

DS1318 Datasheet, PDF (8/15 Pages) Dallas Semiconductor – Parallel-Interface Elapsed Time Counter
Parallel-Interface Elapsed Time Counter
PIN
1
2
3, 12
4
5–8
9, 10, 11,
13–17
18
19
20
21
22
23
24
Pin Description
NAME
X1
X2
GND
EXT
A3–A0
FUNCTION
Connections for Standard 32.768kHz Quartz Crystal. The internal oscillator circuitry is designed for
operation with a crystal having a 12.5pF specified load capacitance (CL). X1 is the input to the
oscillator and can optionally be connected to an external 32.768kHz oscillator. The output of the
internal oscillator, X2, is left unconnected if an external oscillator is connected to X1.
Ground. This pin must be connected to ground for proper operation.
External Counter-Enable Input
Address Bus Inputs
DQ0–DQ7 Bidirectional Data Pins
CE
OE
WE
SQW
IRQ
VBAT
VCC
Chip-Enable Input, Active Low
Output-Enable Input, Active Low
Write-Enable Input, Active Low
Square-Wave Output
Interrupt Output. This active-low open-drain pin requires a pullup resistor.
Battery/Backup Power-Supply Input
DC Power for Primary Power Supply
Table 1. Operation Modes for Power-Supply Conditions
VCC
CE
OE
WE
DQ0–DQ7 A0–A4
VIH
X
X
High-Z
X
VCC > VPF
VIL
X
VIL
DIN
AIN
VIL
VIL
VIH
DOUT
AIN
VIL
VIH
VIH
High-Z
AIN
VSO < VCC < VPF
X
X
X
High-Z
X
VCC < VSO < VPF
X
X
X
High-Z
X
MODE
Deselect
Write
Read
Read
Deselect
Data
POWER
Standby
Active
Active
Active
CMOS Standby
Battery Current
Detailed Description
The parallel-interface ETC contains a 44-bit up counter
that maintains the amount of time the counter is
enabled. The resolution of the timer is 244µs. A control
register selects which events enable and disable the
counter. The counter is double-buffered into two regis-
ter sets, and the TE bit controls the updating of the
user-readable copy.
The counter can be used to maintain the cumulative
amount of time the primary power source or the battery
powers the device. In this mode, the counter starts
when the internal power-switching circuit enables the
selected power source and stops when the circuit
enables the other source.
The counter can also be used as an external event timer.
In this mode, the counter starts when the signal EXT tog-
gles to the active sate and stops when it toggles to the
inactive state. The active state of the EXT signal is con-
figurable as high or low. EXT is ignored and the counter
is disabled while the device is in power fail.
The interrupt output pin provides two maskable inter-
rupt sources. A 32-bit alarm register allows an interrupt
to be generated whenever the upper 32 bits of the
counter match the alarm register. A periodic interrupt
can also be generated from once every 244µs to once
every 1/12,097,152Hz (24.27 days). The alarm and
interrupt output operate when the device is operating
from either supply.
Table 1 shows the factors that control the device oper-
ation. VSO is the battery switchover voltage and is the
lesser of VBAT and VPF. While the device is operating
from the battery with the oscillator running, the battery
8 _____________________________________________________________________