參數(shù)資料
型號: DS18S20Z/T&R
廠商: MAXIM INTEGRATED PRODUCTS INC
元件分類: Switch/Digital Output Temperature Sensor
英文描述: DIGITAL TEMP SENSOR-SERIAL, 9BIT(s), 0.50Cel, RECTANGULAR, SURFACE MOUNT
封裝: SOP-8
文件頁數(shù): 22/23頁
文件大小: 252K
代理商: DS18S20Z/T&R
DS18S20
8 of 23
CRC GENERATION
CRC bytes are provided as part of the DS18S20’s 64-bit ROM code and in the 9th byte of the scratchpad
memory. The ROM code CRC is calculated from the first 56 bits of the ROM code and is contained in the
most significant byte of the ROM. The scratchpad CRC is calculated from the data stored in the
scratchpad, and therefore it changes when the data in the scratchpad changes. The CRCs provide the bus
master with a method of data validation when data is read from the DS18S20. To verify that data has been
read correctly, the bus master must re-calculate the CRC from the received data and then compare this
value to either the ROM code CRC (for ROM reads) or to the scratchpad CRC (for scratchpad reads). If
the calculated CRC matches the read CRC, the data has been received error free. The comparison of CRC
values and the decision to continue with an operation are determined entirely by the bus master. There is
no circuitry inside the DS18S20 that prevents a command sequence from proceeding if the DS18S20
CRC (ROM or scratchpad) does not match the value generated by the bus master.
The equivalent polynomial function of the CRC (ROM or scratchpad) is:
CRC = X
8 + X5 + X4 + 1
The bus master can re-calculate the CRC and compare it to the CRC values from the DS18S20 using the
polynomial generator shown in Figure 8. This circuit consists of a shift register and XOR gates, and the
shift register bits are initialized to 0. Starting with the least significant bit of the ROM code or the least
significant bit of byte 0 in the scratchpad, one bit at a time should shifted into the shift register. After
shifting in the 56th bit from the ROM or the most significant bit of byte 7 from the scratchpad, the
polynomial generator will contain the re-calculated CRC. Next, the 8-bit ROM code or scratchpad CRC
from the DS18S20 must be shifted into the circuit. At this point, if the re-calculated CRC was correct, the
shift register will contain all 0s. Additional information about the Maxim 1-Wire cyclic redundancy check
is available in Application Note 27: Understanding and Using Cyclic Redundancy Checks with Maxim
iButton Products.
Figure 8. CRC Generator
(MSB)
(LSB)
XOR
INPUT
相關PDF資料
PDF描述
DS1963L-F5 SPECIALTY MEMORY CIRCUIT, MEDB2
DS1963S SPECIALTY MEMORY CIRCUIT, MEDB2
DS1985-F3 2K X 8 EEPROM 3V, RDB2
DS1986-F3 64K X 1 OTPROM, MEDB2
DS1986-F5 64K X 1 OTPROM, MADB2
相關代理商/技術參數(shù)
參數(shù)描述
DS18VN6LPQ 制造商:Banner Engineering 功能描述:SENSOR, PHOTOELECTRIC, DS18VN6LPQ PICO QP NPN POL RET
DS18VP6FF50Q8 制造商:Banner Engineering 功能描述:DS18VP6FF50Q8 EURO QD PNP 50MM FIXED FIELD
DS18VP6LP-29537 制造商:Banner Engineering 功能描述:DS18 Series: Polarized Retro, Range: 3.5 m, Input: 10-30V dc, Output: Complement
DS18VP6LPQ8 制造商:Banner Engineering 功能描述:SENSOR, PHOTOELECTRIC, DS18VP6LPQ8 EURO QD PNP POL RETRO
DS1904 制造商:MAXIM 制造商全稱:Maxim Integrated Products 功能描述:Real-Time Clock/calendar in binary format RTC iButton Over 10 years of operation