文件名称:18b20
介绍说明--下载内容来自于网络,使用问题请自行百度
查阅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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.