DS1616K-000

DS1616K-000 Datasheet


DS1616

Part Datasheet
DS1616K-000 DS1616K-000 DS1616K-000 (pdf)
PDF Datasheet Preview
§ Measures four channels of data - Integrated 8-bit temperature sensor - Integrated 8-bit analog-to-digital converter ADC with a three-input mux
§ Digital thermometer measures temperature -40°C to +85°C in +0.5°C increments with ±2°C accuracy
§ Real-time clock/calendar RTC in BCD format counts seconds, minutes, hours, date, month, day of the week, and year with leapyear compensation fully Y2K-compliant
§ Automatically wakes up and measures temperature and/or ADC data at userprogrammable intervals from 1 to 255 minutes
§ 2048-byte datalog memory § Records long-term temperature histogram in
63 bins with +2.0°C resolution § Records long-term ADC data histogram in 64
bins with 4-bit resolution/bin 32 mV/bin for ADC Channel 1 § Programmable temperature-high and -low alarm trip points § Programmable ADC data-high and -low alarm trip points § Records time stamp and duration when temperature or ADC Channel 1 Data leaves the interval specified by the trip points § Two serial interface options - 3-wire synchronous serial interface - Asynchronous serial interface compatible
with standard UARTs § Memory partitioned into 32-byte pages for
packetizing data § On-chip 16-bit CRC generator to safeguard
data read operations in asynchronous communications mode § Unique, factory lasered 64-bit serial number

DS1616

Temperature and Three-Input Muxed 8-Bit Data Recorder

PIN ASSIGNMENT Top View

VBAT

N.C.

COMSEL

INSPEC

OUTSPEC

N.C.

SCLK

AGND

AIN3

AIN2

AIN1

N.C.

DS1616 24 DIP 600mil DS1616S 24 SO 300mil

Package Dimension Information

PIN DESCRIPTION

VBAT
- Battery Supply
- Crystal Input
- Crystal Output

AINx
- Analog in

INSPEC
- In-Specification Output

OUTSPEC - Out-of-Specification Output

GND AGND
- Interrupt Output - Digital Ground - Analog Ground
- Start/Status Input

I/O SCLK Tx Rx COMSEL VCC
ORDERING INFORMATION

PART

DS1616 DS1616S

PIN-PACKAGE
24 DIP 24 SO

TEMP RANGE
-40°C to +85°C 0°C to +70°C

DS1616

The DS1616 is an integrated temperature/data recorder. It combines a real-time clock RTC , temperature sensor, and a three input muxed 8-bit Analog-to-Digital Converter ADC . Data logging is supported for all four data channels and the and histogram functionality is supported for the temperature sensor and ADC Channel 1 only. A programmable sample rate feature makes the device ideal for applications requiring datalogging over short or long time frames.

The RTC provides seconds, minutes, hours, day, date, month, and year information with leap year compensation, Year 2000 compliance, and also provides an alarm interrupt. Temperature measurement is provided via integrated thermal technology which can measure temperatures from -40°C to +85°C in 0.5°C increments. An integrated three input muxed 8-bit ADC allows the device to record data from other types of sensors.

The datalog function samples data at a user-defined sample rate and writes the data to the Datalog memory. A total of 2048 bytes of data may be recorded. If only one data channel is selected, a total of 2048 samples can be recorded for that channel. If two channels are enabled, each channel can record 1024 samples. If three or four channels are enabled, each channel can record 512 samples. In the case of only three channels enabled, the location corresponding to the disabled channel will be 0 to allow the rollover function to work smoothly.

Histogram functionality is provided for the Thermal Sensor and ADC Channel 1, and is implemented by sampling the data and then incrementing the count value in a data bin associated with that value. The DS1616 provides 63 2-byte data bins in 2°C increments for the temperature channel and 64 2-byte data bins in 4-bit resolution steps 32mV/bin for the ADC Data Channel The sampling rate can be programmed at intervals ranging from once per minute to once every 255 minutes.

The DS1616 provides programmable high- and low-temperature alarm trip points that allow the device to monitor whether the temperature stays within desired limits. Likewise, high- and low- trip points can be programmed for the ADC data. The device can drive an interrupt or status pin if the ADC data falls outside of the programmable limits. The Temperature Sensor and Channel 1 of the ADC can also have any event that falls outside of the programmed limits recorded with a time and date stamp and the duration of the out-of-limits condition for additional analysis in the Alarm Memory. The DS1616 can be programmed to begin sampling data via a pushbutton input or via a command sent over the serial interface by a host machine.

A 64-bit serial number is available for unique product identification and tracking.

OVERVIEW

The block diagram in Figure 1 shows the relationship between the major control and memory sections of the DS1616. The device has six major data components 1 RTC and control blocks, 2 32-byte User NV RAM with 64-bit lasered serial number, 3 96 bytes of alarm event/duration memory, 4 128 bytes of temperature histogram RAM, 5 128 bytes of ADC Channel 1 data histogram RAM, and 6 2048 bytes of datalog memory. All memory is arranged in a single linear address space.
2 of 28

DS1616 Block Diagram Figure 1

SCLK RST I/O

COMSEL Tx Rx

SERIAL INTERFACE

MEMORY FU N C T ION CONTROL

X1 OSCILLATOR AND DIVIDER

ST INSPEC OUTSPEC

INTERNAL RTC AND CONTROL

REGISTERS

CONTROL LOGIC
3 TO 1

CONVERTER

TEMPERATURE SENSOR

RTC AND CONTROL REGISTERS

USER NVRAM OPTIONAL

SERIAL NUMBER

ALARM TIME STAMP AND DURATION

LOGGING MEMORY HISTOGRAM MEMORY

DATALOG MEMORY

DS1616

SIGNAL DESCRIPTIONS

The following paragraphs describe the function of each pin.

VCC - VCC is a +5-volt input supply. Communication with the DS1616 can take place only when VCC is connected to a +5-volt supply.

Vbat - Battery input for standard lithium cell or other energy source. All functions of the DS1616 with the exception of the serial interface circuitry are powered by Vbat when VCC < Vbat. All functions are powered by VCC when VCC > Vbat. If a battery or other energy source is not used, Vbat should be connected directly to GND.
The DS1616 is manufactured such that no two devices will contain an identical serial number. Blocks of numbers can be reserved by the customer. Contact Dallas Semiconductor for special ordering information for devices with reserved blocks of serial numbers.

SECURITY

The DS1616 provides several measures to insure data integrity for the end user. These security measures are intended to prevent third party intermediaries from tampering with the data that has been stored in the Datalog and Histogram memory.

As a first security measure, the Datalog and Histogram memory are read-only from the perspective of the end user. The DS1616 can write sampled data into these memory banks, but the end user cannot write data to individual registers. This prevents an unscrupulous intermediary from writing false data to the DS1616. The end user, however, can clear the contents of the Datalog and Histogram memory. This is accomplished by enabling and issuing the Clear Memory command.

A second security feature lies in the fact that once the sample rate has been selected by writing to the Sample Rate register, it cannot be changed to another value without resetting the recorded data. This prevents gathering many data samples at a fast sample rate and then lowering the sample rate to give the appearance that the data was recorded over a longer period of time. The Sample Rate register can only be written to a new value if the MEM CLR bit is set to

A third security feature lies in the two integrated sample counters, the Current Samples Counter and the Total Samples Counter. These two counters can be used to guarantee that the DS1616 data has not been cleared at any time during a given period of time. The Current Samples Counter counts the number of samples that have occurred since the most recent data acquisition operation was started i.e., the number
19 of 28

DS1616
of samples since the Sample Rate register was written to a non-0 value . The Total Samples Counter counts the total number of samples that have been recorded in the life of the device assuming the lithium energy source has not been removed during that time . If the end user knows the value in the Total Samples Counter before the data acquisition operation is started, he can guarantee that the DS1616 has not been cleared. If the Current Samples count equals the difference between the ending value and beginning value of the Total Samples Counter, then the DS1616 data has not been cleared during that time frame.

As a fourth security measure, changing any value in the RTC and Control registers with the exception of the Status registers will stop datalogging and clear the Mission-in-Progress MIP bit.

SERIAL INTERFACE

The DS1616 provides two different serial communications options asynchronous and synchronous. Both communications options transmit the data LSb First/MSb last.

The mode of communication is selected via the COMSEL pin. When this pin is pulled high, the DS1616 operates in synchronous mode. In this mode, communication with the DS1616 is facilitated by the

SCLK, I/O, and RST pins. When COMSEL is pulled low or floated, asynchronous communications is selected and communication with the device occurs over the TX and RX pins. The operation of each mode is discussed in further detail below.

Asynchronous Communication

In asynchronous mode, the DS1616 operates as a slave peripheral device which is read and written over a half duplex asynchronous data interface at the fixed rate of 9,600 bits per second. Data is received and transmitted in 8-bit bytes using a standard asynchronous serial communications format as shown in Figure This format is easily generated by the UART in most systems. The DS1616 data format implements 10-bit words including 1 start bit, 8 data bits, and 1 stop bit. Data is received by the DS1616 on the RX pin and transmitted by the TX pin.

COMMUNICATION WORD FORMAT Figure 3

START BIT

DATA BITS

STOP BIT

D0 D1 D2 D3 D4 D5 D6 D7

Synchronous Communication

Synchronous communication is accomplished over the 3-wire bus which is composed of three signals. These are the RST reset , the SCLK serial clock , and I/O data I/O pins. The 3-wire bus operates at a maximum data rate of 2 Mbps. All data transfers are initiated by driving the RST input high and are terminated by driving RST low. See Figures 7 and A clock cycle is a sequence of a falling edge followed by a rising edge. For data inputs, the data must be valid during the rising edge. Data bits are output on the falling edge of the clock and remain valid through the rising edge.

When reading data from the DS1616, the I/O pin goes to a high impedance state when the clock is high. Taking RST low will terminate any communication and cause the I/O pin to go to a high impedance state.
20 of 28

DS1616

General Communications Format

Communication with the DS1616 in both synchronous and asynchronous modes is accomplished by first writing a command to the device. The command is then followed by the parameters and/or data required by the command. The command set for the DS1616 can be seen in Table Reads and writes to the DS1616 differ in that writes are performed one byte at a time while reads are performed in page long up to 32-byte bursts. Writing 1 byte at a time means that a write command has to be issued before each byte of data that is written. For example, writing to the user NV RAM requires that the Write User NV RAM command be written followed by the address to be written and then the actual data byte. Writing a second data byte would require the same procedure with a new address specified. Reads, however, are accomplished in bursts. For example, if an end user wants to read data from a specific page he would first issue the Read Page command, followed by the address to begin reading. After the DS1616 receives the command and starting address, it will immediately transmit the data that resides at the given address location. However, rather than stop with that single byte of data, the DS1616 will continue transmitting the next byte of data and will continue transmitting data until the page boundary is reached. A page read can begin at any address, but will always end at the page boundary. Thus, a page read can range from 1 to 32 bytes. It should be noted that a read can be terminated at any time when communicating in synchronous mode by pulling RST to ground. However, in asynchronous mode, the DS1616 will not stop transmitting data until the page boundary is reached.

Cyclical Redundancy Check CRC

When communicating in the asynchronous mode, a 16-bit CRC is transmitted by the DS1616 following the transmission of all data. When communicating in synchronous mode, no CRC is transmitted.

The 16-bit CRC Cyclical Redundancy Check is used to insure the accuracy of the data that is read from the DS1616. The CRC is generated according to the standardized CRC16-polynomial function X16 + X15 + X2 + Figure 4 illustrates the function of the generator. The CRC is generated by clearing the CRC generator and then shifting in data from the register set being read. A 16-bit CRC is transmitted by the DS1616 after the last register of any page of memory is read. In other words, a CRC is generated at the end boundary of every page that is read. The CRC is transmitted starting with bit 15 and ending with bit

CRC HARDWARE DESCRIPTION AND POLYNOMIAL Figure 4

Polynomial = X16 + X15 + X2 + 1

BIT0 X0

BIT1 X1

BIT2 X2

BIT3 X3

BIT4 X4

BIT5 X5

BIT6 X6

BIT7 X7
More datasheets: CT-94X-202 | CT-94W-203 | CT-94X-501 | CT-94X-101 | CT-94X-500 | CT-94X-200 | CT-94W-205 | CT-94W-105 | CT-94X-100 | CT-94X-102


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DS1616K-000 Datasheet file may be downloaded here without warranties.

Datasheet ID: DS1616K-000 508387