资 源 简 介
The DS1682 provides a method of counTIng power cycles, total on-TIme, and alarm-on match funcTIonsthat reduce the amount of processor overhead. Total on-TIme information is useful in applications fromHobbs meters to equipment warranty, repair, and maintenance.The DS1682 contains a 32-bit elapsed time counter (ETC), a 17-bit event counter, and a 32-bit alarmregister. In addition, the DS1682 has 10-bytes of user-programmable memory. The counter increments inº seconds. The ETC and event counter data are stored in EEPROM at the end of each event.In this example, the EVENT input is driven by a DS1233-15 EconoReset. A Shottky diode and capacitorprovide the energy necessary to allow the DS1682 to store the data to the internal EEPROM when VCCgoes away. An 8051-type processor is used to read the registers and transmit the information to a displayvia a serial port. An LED is included in case the alarm function is required.A schematic of the circuit is shown in Figure 1. Software for initializing the DS1682 and reading theregisters is show in Figure 2.