首页> 中文期刊> 《电子测试》 >数字温度传感器DS18B20的关键时序研究

数字温度传感器DS18B20的关键时序研究

             

摘要

时序是影响数字温度传感器DS18B20正常工作的重要因素,由于各单片机执行速度不同,测温系统出现了在晶振频率相同的情况下,同一段程序在AT89C2051单片机中运行工作正常,而在其兼容单片机STC12C2052中运行却无法得到正确的结果.因此,本文采用Keil软件里的性能分析器计算程序段的延时时间,研究了DS18B20的关键时序,结合指令代码的执行时间分析,通过对其中关键代码的修改,使程序在STC12C2052中运行时也能达到DS18B20的时序要求,正确读出温度值.此方法对于具有时序要求的可编程器件的使用具有一定的借鉴价值.%This paper uses the performance analyzer in Keil software program section of the delay time on the key timing of DS18B20, analysis of instruction execution time of the code with the modified key code, the program can achieve timing DS18B20 running in the STC12C2052 request when the correct temperature read out. This method has a certain reference value for the use of programmable devices with timing requirements.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号