欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    单片机的数字温度计设计方案().pdf

    • 资源ID:56626736       资源大小:263KB        全文页数:9页
    • 资源格式: PDF        下载积分:4.3金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要4.3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    单片机的数字温度计设计方案().pdf

    1/9 基于数字温度传感器的数字温度计1.设计目的与要求以 AT89C51单片机为核心,利用数字温度传感器DS18B20制作一个 LED显示的数字温度计:(1 利用数字温度传感器DS18B20 测量温度信号。(2 以 P3.5 口串口传送数据。(3 温度测量范围为 099,精确到 1。(4 2位共阳极 LED数码管上显示相应的温度值。2.工作原理温度传感器 DS18B20 美国 Dallas 公司生产的单线数字温度传感器,可以把温度模拟信号直接转换成串行数字信号供微机处理,是模/数转换器件,而且读DS18B20信息或写信息仅需单线接口,使用非常方便,新型的单线数字温度传感器体积小,精度高,使用更灵活。DS18B20有三个引脚,GND接地;DQ为数字信号输入输出端;Udd 为外接电源输入端。DS18B20内结构主要由4 部分组成:64 位光刻 ROM、温度传感器、非挥发的温度报警触发器TH、TL和配置寄存器。3.参考电路 附图)本设计由DS18B20温度传感器芯片测量当前的温度并将转换后的结果送入单片机。然后通过A89S51单片机驱动两位共阳极7 段 LED数码管显示测量温度值。如本设计硬件电路图所示,本电路主要有DS18B20温度传感器芯片,两位共阳极数码管,AT89S51单片机及相应外围电路组成。其中DS18B20采用“一线制”与单片机相连。整体硬件接线图2/9 初始化状态显示文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F13/9 4.软件设计 流程图)用汇编语言完成对设计的软件编程,程序开始首先对温度传感器DS18B20进行复位,检测是否正常工作;接着读取温度数据,主机发出CCH指令与在线的 DS18B20联系,接着向 DS18B20发出温度 A/D 转换 44H指令,再发出温度寄存器的温度值BEH指令,并反复调用复位,写入及读取数据子程序,之后再经过数据转换,由数码管显示出来,不断循环。软件编程主要包括以下一些程序段。主程序,读出转换后的温度值,写DS18B20的程序,读 DS18B20的程序,从DS18B20中读出两个字节的温度数据,将从DS18B20中读出的温度数据进行转换,将16进制的温度数据转换成压缩BCD码,DS18B20初始化程序,数码显示程序,延时子程序。5.仿真结果与结论仿真时运行电路则各器件正常运行,并显示出温度值,调节温度传感器度温度值,将显示出不同的温度值。温度显示整体电路文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F14/9 温度显示局部电路文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F15/9 附录:程序语言如下:。DS18B20测温程序,高位存入 35H(TEMPER_H RE00:MOV R2,#8 RE01:CLR C SETB DQ NOP NOP CLR DQ NOP NOP NOP SETB DQ MOV R3,#7 DJNZ R3,$MOV C,DQ MOV R3,#23 DJNZ R3,$RRC A 文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F17/9 DJNZ R2,RE01 MOV R1,A DEC R1 DJNZ R4,RE00 RET 。*。将从 DS18B20中读出的温度数据进行转换。*TEMPER_COV:MOV A,#0F0H ANL A,TEMPER_L。舍去温度低位中小数点后的四位温度数值SWAP A MOV TEMPER_NUM,A。得到低四位MOV A,TEMPER_L JNB ACC.3,TEMPER_COV1。四舍五入去温度值INC TEMPER_NUM TEMPER_COV1:MOV A,TEMPER_H ANL A,#07H SWAP A ORL A,TEMPER_NUM。得到高四位,再与低四位相或得到值MOV TEMPER_NUM,A。保存变换后的温度数据LCALL BIN_BCD RET。*。将16进制的温度数据转换成压缩BCD码。*BIN_BCD:MOV A,TEMPER_NUM MOV B,#10 DIV AB MOV TEMPER_SHI,A MOV TEMPER_GE,B RET。*。DS18B20初始化程序。*INIT_1820:SETB DQ NOP CLR DQ MOV R0,#250 TSR1:DJNZ R0,TSR1。延时520us 文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F18/9 SETB DQ MOV R0,#25H。96US-25H TSR2:DJNZ R0,TSR2 JNB DQ,TSR3。如D0为低则复位成功,DS18B20存在LJMP TSR4。延时TSR3:SETB FLAG1。置标志位,表示DS1820存在LJMP TSR5 TSR4:CLR FLAG1。清标志位,表示DS1820不存在LJMP TSR7 TSR5:MOV R0,#06BH。200US TSR6:DJNZ R0,TSR6。延时TSR7:SETB DQ。拉高总线RET 。*。数码显示程序。*LEDDISP:MOV DPTR,#TAB MOV A,TEMPER_GE MOVC A,A+DPTR MOV P1,A SETB P2.1 ACALL YSH2S CLR P2.1 MOV A,TEMPER_SHI MOVC A,A+DPTR MOV P1,A SETB P2.0 ACALL YSH2S CLR P2.0 RET TAB:DB 0C0H,0F9H,0A4H,0B0H,099H,092H,082H,0F8H,080H,090H。*。延时子程序。*YSH2S:MOV R3,#01H 文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F19/9 LOOP1:MOV R4,#028H LOOP2:MOV R5,#05AH XHD3:DJNZ R5,XHD3 DJNZ R4,LOOP2 DJNZ R3,LOOP1 RET D500us:MOV R6,#250。延时 500us DJNZ R6,$RET DELAY1:MOV R7,#20H DJNZ R7,$RET END 文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M

    注意事项

    本文(单片机的数字温度计设计方案().pdf)为本站会员(H****o)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开