Event logging, Figure 3. event input timing, Device setup – Rainbow Electronics DS1682 User Manual
Page 5

DS1682
5 of 15
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 t
ES
, the ETC increments. An event greater than t
G
but less than t
ES
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
EW
.
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
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.