DS1318
Parallel-Interface Elapsed Time Counter
_____________________________________________________________________
7
BYTE-WIDE RAM
INTERFACE
V
CC
LEVEL DETECT,
POWER SWITCH,
AND WRITE PROTECT
32,768Hz CRYSTAL OSCILLATOR
AND PRESCALER COUNTER
DQ7–DQ0
WE
A3–A0
X2
OE
V
CC
V
BAT
X1
CE
PF/ALMF MUX
EXT
CLOCK CONTROL CIRCUITRY
SUBSECONDS0
4,096Hz
IRQ
SQW
SUBSECONDS1
SECONDS0
SECONDS1
SECONDS2
SECONDS3
ALARM0
ALARM1
ALARM2
ALARM3
CONTROL A
CONTROL B
STATUS
SUBSECONDS0
SUBSECONDS1
SECONDS0
SECONDS1
SECONDS2
SECONDS3
4,096Hz
INTERNAL DIVIDERS
AND COUNTERS
TRANSFER ENABLE (TE)
BUFFERED COUNTER REGISTERS,
CONTROL AND STATUS REGISTERS
32,768Hz
SQUARE-WAVE
RATE SELECTOR
AND PRESCALER
DS1318
Functional Diagram
DS1318
Parallel-Interface Elapsed Time Counter
8 _____________________________________________________________________
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. V
SO
is the battery switchover voltage and is the
lesser of V
BAT
and V
PF
. While the device is operating
from the battery with the oscillator running, the battery
Table 1. Operation Modes for Power-Supply Conditions
Pin Description
PIN NAME FUNCTION
1 X1
2 X2
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 (C
L
). 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.
3, 12 GND Ground. This pin must be connected to ground for proper operation.
4 EXT External Counter-Enable Input
5–8 A3–A0 Address Bus Inputs
9, 10, 11,
1317
DQ0–DQ7 Bidirectional Data Pins
18 CE Chip-Enable Input, Active Low
19 OE Output-Enable Input, Active Low
20 WE Write-Enable Input, Active Low
21 SQW Square-Wave Output
22 IRQ Interrupt Output. This active-low open-drain pin requires a pullup resistor.
23 V
BAT
Battery/Backup Power-Supply Input
24 V
CC
DC Power for Primary Power Supply
V
CC
CE OE WE DQ0–DQ7 A0–A4 MODE POWER
V
IH
X X High-Z X Deselect Standby
V
IL
XV
IL
D
IN
A
IN
Write Active
V
IL
V
IL
V
IH
D
OUT
A
IN
Read Active
V
CC
> V
PF
V
IL
V
IH
V
IH
High-Z A
IN
Read Active
V
SO
< V
CC
< V
PF
X X X High-Z X Deselect CMOS Standby
V
CC
< V
SO
< V
PF
X X X High-Z X
Data
Battery Current
DS1318
Parallel-Interface Elapsed Time Counter
_____________________________________________________________________ 9
input current is I
BAT
. The oscillator consumes most of
the current. If the oscillator is disabled, the data in the
registers remain static, and the battery input current is
I
BATDR
, which is primarily due to the leakage of the sta-
tic memory cells.
The DS1318 uses a standard parallel byte-wide interface
to access the register map. Table 1 summarizes the
modes of operation at various power-supply conditions.
Oscillator Circuit
The DS1318 uses an external 32.768kHz crystal. The
oscillator circuit does not require any external resistors
or capacitors to operate. Table 2 specifies several crys-
tal parameters for the external crystal, and Figure 1
shows a functional schematic of the oscillator circuit.
An enable bit in the control register controls the oscilla-
tor. Oscillator startup times are highly dependent upon
crystal characteristics, PC board leakage, and layout.
High ESR and excessive capacitive loads are the major
contributors to long startup times. A circuit using a
crystal with the recommended characteristics and
proper layout usually starts within one second.
An external 32.768kHz oscillator can also drive the
DS1318. In this configuration, the X1 pin is connected
to the external oscillator signal and the X2 pin is left
unconnected.
Clock Accuracy
The accuracy of the clock is dependent upon the accu-
racy of the crystal and the accuracy of the match
between the capacitive load of the oscillator circuit and
the capacitive load for which the crystal was trimmed.
Additional error is added by crystal frequency drift
caused by temperature shifts. External circuit noise
coupled into the oscillator circuit can result in the clock
running fast. Figure 2 shows a typical PC board layout
for isolation of the crystal and oscillator from noise. Refer
to
Application Note 58: Crystal Considerations with
Dallas Real-Time Clocks
for more detailed information.
PARAMETER SYMBOL MIN TYP MAX UNITS
Nominal Frequency f
O
32.768 kHz
Series Resistance ESR 50 kΩ
Load Capacitance C
L
12.5 pF
Table 2. Crystal Specifications*
*
The crystal, traces, and crystal input pins should be isolated from RF generating signals. Refer to
Application Note 58: Crystal
Considerations for Dallas Real-Time Clocks
for additional specifications.
COUNTDOWN CHAIN
RTC
X1
X2
CRYSTAL
C
L
1C
L
2
RTC REGISTERS
LOCAL GROUND PLANE (LAYER 2)
CRYSTAL
GND
X2
X1
NOTE: AVOID ROUTING SIGNAL LINES
IN THE CROSSHATCHED AREA
(UPPER LEFT QUADRANT) OF
THE PACKAGE UNLESS THERE IS
A GROUND PLANE BETWEEN THE
SIGNAL LINE AND THE DEVICE PACKAGE.
Figure 1. Oscillator Circuit Showing Internal Bias Network
Figure 2. Layout Example

DS1318E+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Real Time Clock Parallel-Interface Elapsed Time Cntr
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet