How to use DS1678 real-time event recording-How to Use th

Abstract: This note demonstrates an applicaTIon using the DS1678 real-TIme event recorder. The software example includes basic operaTIng rouTInes. A schematic of the application circuit is included.

DS1678 Pin Assignment
DS1678 Pin Assignment

DescriptionThis application note demonstrates how to use the DS1678 real-time event recorder which logs events—level transitions on the INT input pin—into a 1024-word datalog memory array. The first event is recorded as a time stamp; subsequent events are recorded as elapsed time from the previous event. The time stamp and 1024-word datalog memory accommodate up to 1025 recorded events.

This example code includes functions for initiating a datalogging "mission." The user-selectable options are event resolution, trigger selection, and rollover (handling missions of more than 1025 events). The software also includes routines for ending a mission, for displaying the event datalog information, and for writing and reading the user RAM.

OperationThe program uses two general-purpose port pins (GPIOs) on a microcontroller to communicate with the DS1678 through the DS1678's I²C serial interface. An additional port pin is used to toggle the DS1678's INT input to drive events. In a typical application, the INT input would be connected to circuitry that conditions the signals from the event source, eg, a thermostat in a HVAC system. This connection allows the DS1678 to record, for example, the start time and duration of each cooling or heating cycle.

This example uses an 8051-compatible microcontroller, the DS2250. User inputs and data outputs from the program are passed through an RS-232 interface from a terminal emulator program on a PC to a UART on the microcontroller. The Microcontroller Tool Kit software utility can be used to program the DS2250 microcontroller.

The software is shown in Figure 1. A schematic of the circuit is shown in Figure 2.

Figure 1. Program listing for interfacing a microcontroller to the DS1678.
Download
Figure 1. Program listing for interfacing a microcontroller to the DS1678.

Figure 2. Schematic for the DS1678 demonstration board.
For Larger Image
Figure 2. Schematic for the DS1678 demonstration board.

Mini Cool Mist Usb Air Humidifier 

    Mini Humidifier is a vase shaped humidifier with lightweight and compact design. With ultrasonic technology, it envelops your surroundings effectively by producing cool mist to add moisture and relieve stress. Suitable for your car, office, bedroom, study room, dining room, children's room and more.

Features

  • Mini Cool Mist Humidifier: Designed with high-frequency atomizer plate. It adopts ultrasonic technology to oscillate and decompose water into fine nano-class cool mist molecules, which can quickly penetrate the underlying skin and relieve dry skin.
  • User-friendly Design: Lightweight and compact, this Mini Air Humidifier can hold up to 80ml of water and produce up to 25ml of moisture per hour. Both the main engine and water cup are detachable, easy to clean and use.
  • Whisper-quiet: Ultra-stable atomizer plate provides gentle and stable mist, creating a quiet and relaxing environment (less than 35dB). Low consumption and low noise make it perfect for sleeping or reading time. Work quietly without producing any bothering noises.
  • Safe and Reliable: With the built-in water level sensor, Mini Usb Humidifier will automatically power off when the water level is lower than the safe water level. Compatible with any USB power source (AC power adapters, car chargers, laptops/computers, or power banks), universal and convenient. Safe with a 5V low voltage input. 

Mini Humidifier

Mini Humidifier,Mini Usb Humidifier,Mini Air Humidifier,Mini Cool Mist Humidifier

Shenzhen Dituo Electronic Co.,Ltd. , https://www.sz-dituo.com

Posted on