18b20

所属分类:单片机开发
开发工具:WORD
文件大小:358KB
下载次数:8
上传日期:2011-04-11 17:06:49
上 传 者T0213-ZH
说明:  查阅18B20手册,LSB的最低四位代表小数,MSB的最高5位为符号位,其余的7位为整数部分,其分辨率为0.0625°,根据此规律,整数就是两字节凑在一起,而小数部分则是最低四位的值,乘以0.0625,看你取几位小数,再取整即可。上述的对照表是取1位小数的结果,取四舍五入。比如现在LSB的最低四位是0111,那么小数部分就是0.0625*7=0.4375
(Search 18B20 manual, LSB representative of a minimum of four decimal places, MSB is sign the top five bits, the remaining 7 bits are integer part, with a resolution of 0.0625 °, according to this law, the two-byte integer that get together, and fraction is the lowest four values, multiplied by 0.0625, to see you take a few decimal places, and then take the whole can. The above table is to take a fraction of the results, take rounding. Such as the minimum four LSB is now 0111, so the fractional part is 0.0625* 7 = 0.4375)

文件列表:
18b20.pdf (396700, 2009-11-27)

近期下载者

相关文件


收藏者