The DS1682 is an integrated elapsed time recorder containing a factory-calibrated, temperaturecompensated RC time base that eliminates the need for an external crystal. Using EEPROM technology
to maintain data in the absence of power, the DS1682 requires no backup power source. The DS1682
detects and records the number of events on the EVENT pin and the total cumulative event time since the
DS1682 was last reset to 0. The
user-programmed alarm value. The polarity of the open-drain
drive low or to become high impedance upon an alarm condition. The DS1682 is ideal for applications
that monitor the total amount of time that a device has been in operation and/or the number of uses since
inception of service, repair, or the last calibration.
pin alerts the user when the total time accumulated equals the
pin can be programmed to either
revisions of any device may be simultaneously available through various sales
errata, click here: http://dbserv.maxim-ic.com/errata.cfm.
1 of 15 041202
DS1682
A
OPERATION
The block diagram in Figure 1 shows the relationship between the major functional blocks, the serial
interface, and the EEPROM memory section of the DS1682. Upon power-up, the DS1682 transfers the
contents of the EEPROM into the counters and memory registers where the data can be read and written
through the serial interface. The content of the counters and memory registers are written into the
EEPROM memory when the EVENT pin transitions from a logic high to a logic low.
Figure 1. BLOCK DIAGRAM
SCL
SDA
OSCILLATOR
AND
DIVIDER
V
CC
LARM
EVENT
CONTROL
LOGIC
AND
EVENT
GLITCH
FILTER
The DS1682 uses a calibrated, temperature-compensated RC time base to increment an elapsed time
counter (ETC) while an event is active. When the event becomes active, the contents of the nonvolatile
EEPROM are transferred to the ETC and event counter and the oscillator starts. As the event continues,
the ETC is incremented in quarter-second increments. When the event becomes inactive, the event
counter is incremented and the contents of the ETC and event counter are written to the nonvolatile
EEPROM.
ALARM output can be used to indicate when the ETC has matched the value in the alarm register.
The
The DS1682 can be configured to prevent clearing the alarm and the elapsed time and event counters.
The user memory can be separately write-protected.
SERIAL
INTERFACE
USER, CONTROL, AND
CONFIGURATION
REGISTERS
ELAPSED TIME
COUNTER (ETC)
ALARM REGS
AND
COMPARE LOGIC
EVENT COUNTER
EEPROM ARRAY
2 of 15
SIGNAL DESCRIPTIONS
V
– VCC is a +2.5V to +5.5V input supply.
CC
DS1682
GND – Ground.
SCL (2-Wire Serial-Clock Input) – The SCL pin is the serial-clock input for the 2-wire synchronous
communications channel. The SCL pin is an input that requires an external pullup resistor.
SDA (2-Wire Input/Output) – The SDA pin is the data input/output signal for the 2-wire synchronous
communications channel. The SDA pin is an open-drain I/O, which requires an external pullup resistor.
EVENT (Event Input) – The EVENT pin is the input the DS1682 monitors to determine when an event
occurs. When the pin is pulled high, the contents of the EEPROM are transferred to the ETC and the
oscillator starts. The ETC will begin to count in quarter-second increments. When the EVENT pin falls to
a logic 0, the event counter increments and the event counter, ETC, and user-memory data are stored in
the EEPROM array. When the EVENT pin changes states, the 2-wire bus is unavailable for
communications for tEW. The EVENT input is also deglitched (tG) to prevent short noise spikes from
triggering an event.
ALARM (Alarm Output) – The DS1682 monitors the values in the ETC for the programmed value in the
alarm register. When the ETC matches the alarm value, the alarm flag (AF) is set. Once set, the alarm
flag cannot be reset. See the operating descriptions for the AOS and AP bits for details about the
operation of the ALARM pin.
N/C (No Connect) – This pin is not connected internally.
3 of 15
Figure 2. MEMORY MAP
DS1682
ADDR BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1BIT 0 FUNCTION
User-modified data are not stored in EEPROM until an event becomes inactive.
4 of 15
DS1682
EVENT LOGGING
When the DS1682 is powered up, the event time and count values recorded in the EEPROM are
transferred to the ETC and event counter and the device waits for an event. When an event triggers the
input by transitioning the EVENT pin from a low to a high level, the following occurs:
1) The RC oscillator starts.
2) The alarm, ETC, and event counter are transferred from EEPROM to RAM.
Note: Reading the RAM during the transfer will result in invalid data.
3) After tES, the ETC increments. An event greater than tG but less than tES increments the event counter
but not the ETC (zero-length event).
4) The ETC increments every TEI. The ETC holds time in quarter-second resolution.
5) When the EVENT pin goes low, the event counter increments, the oscillator stops, and the ETC and
event counter are transferred to EEPROM. The 2-wire bus is not available for t
See Figure 3 for timing.
The ETC stops counting and does not roll over once FFFFFFFFh, or approximately 34 years, is reached.
Figure 3. EVENT INPUT TIMING
EW
.
DEVICE SETUP
Once installed in a system, the DS1682 can be programmed to record events as required by the
application, and can be tested by generating events and monitoring the results. Afterwards, it can be
“locked” to prevent alteration of the event and alarm registers and the alarm condition.
The following is a typical sequence:
1) Write the configuration register, alarm registers, and user memory to the desired values.
2) Write-protect the alarm, ETC, and event counter registers with the write disable command if needed.
3) Write-protect the user memory with the write-memory disable command, if needed.
4) Issue a reset (described in the Reset Command section).
The alarm, ETC and event counter registers, and user memory, once locked, cannot be changed.
Upon reset, the ETC and event counter registers are cleared. The RE bit is cleared by the device, and the
configuration register becomes read-only. Additional resets are ignored.
5 of 15
Loading...
+ 10 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.