Optimization of Addressing Code of Digital Temperature Sensor Bass the 1-wire Bus at Measuring Multiple Temperatures

It is critical technology to encode the digital sensor DS18X20,while measure multiple temperatures with the 1-wire bus.It is easy to practice for project engineering that addressing code is used decimal code instead of 48-bit serial number.By the structure of DS18X20 and the table of addressing code with serial number,introduce three modes to realize it.These are manual mode table,successive approximation mode table and embedded inteligence table.A comparison between the three modes in the performability and availability is also drawn.As focal point,analyze the third mode.It is because that is efficiency.In the mode,make two or three BCD instead of the 6 bytes of serial number on DS18X20 and write the BCD into register TH/TL.Then,describe the design of encoder and application method,which have simple interface,good reliability and practical value.