单片机数字温度计课程设计分析方案.pdf

上传人:H****o 文档编号:56684671 上传时间:2022-11-02 格式:PDF 页数:24 大小:554.54KB
返回 下载 相关 举报
单片机数字温度计课程设计分析方案.pdf_第1页
第1页 / 共24页
单片机数字温度计课程设计分析方案.pdf_第2页
第2页 / 共24页
点击查看更多>>
资源描述

《单片机数字温度计课程设计分析方案.pdf》由会员分享,可在线阅读,更多相关《单片机数字温度计课程设计分析方案.pdf(24页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、0/24 目录1.设计任务.1 1.1 设计目的.1 1.2 设计指标.1 1.3 设计要求.1 2.设计思路与总体框图.1 3.系统硬件电路的设计.23.1 主控电路.23.2 液晶显示电路.33.3 按键电路.3 3.4 报警电路.44.系统仿真设计.44.1 仿真原理图.44.2 各功能元件的分析.5 5.系统软件设计.10 5.1 主程序.11 5.2 读出温度子程序.11 5.3 温度转换命令子程序.12 5.4 设计温度子程序.12 5.5 1602的温度显示.13 6.总结与体会.136 1 总结.136.2体会.147.参考文献.15 8.附录.16 1.设计任务1/24 1.

2、1 设计目的1.了解数数字温度计及工作原理。2.进一步掌握数字温度计设计方法。3.进一步掌握各芯片的逻辑功能及使用方法。4.进一步掌握 keil和仿真软件的应用。5.进一步熟悉集成电路的引脚安排.。1.2 设计指标1.显示温度。2.可以显示大于零度的温度也可以显示小于零度的温度。3.具有显示相应环境温度的功能,并且具有超出设定范围内温度时可以报警的功能,相应环境可以人为选择。1.3 设计要求1.画出总体设计框图,以说明数字温度计由哪些相对独立的功能模块组成,标出各个模块之间互相联系。并以文字对原理作辅助说明。2.设计各个功能模块的电路图,加上原理说明。3.选择合适的元器件,在面包板上接线验证、

3、调试各个功能模块的电路,在接线验证时设计、选择合适的输入信号和输出方式,在确定电路充分正确性同时,输入信号和输出方式要便于电路的测试和故障排除。4.在验证各个功能模块基础上,对整个电路的元器件和布线进行合理布局,进行整个数字温度电路的接线调试。2.设计思路与总体框图.数字温度计由主控制器 、显示器(LCD1602、独立按键和报警电路组成,温度传感器所感应的温度信号经过其数据传输引脚传送给单片机,单片机将所接收到的温度信号经过处理,将其送至显示器 LCD1602 显示,并且能够通过独立按键设置温度报警值,若温度处于报警上限和下限之外,报警电路工作。图1 所示为数字温度计的一般结构框图:报 警 温

4、 度 调整键STC90C51 主控制器 LCD1602 显示文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y

5、2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5

6、A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R

7、8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W

8、4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2

9、O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM

10、6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X62/24 图1 数字温度计结构框图3.系统硬件电路的设计3.1 主控电路单片机 STC90C51 具有低电压供电和体积小等特点,四个端口同时使用以满足电路系统的设计需要,很适合便携手持式产品的设计使用系统

11、可用二节电池供电。晶振采用12MHZ。图2 主控电路 DS18B20 传感器蜂鸣器,指示灯单片机时钟振荡文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档

12、编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9

13、X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W

14、3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6

15、文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10

16、A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z

17、6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X63/24 图3 晶振电路3.2 温度显示电路采用液晶显示屏 LCD1602显示,第一行显示“18B20 OK TL”和报警下限值,第二行显示实时温度以及报警上限

18、值,并且能够显示负温度值。用P0口进行 LCD1602 的数据写操作,P2.5P2.7 口进行 LCD1602的命令控制端口。电路图如下:图4 温度显示电路3.3 按键电路本系统一共设置了四个按键,k1 键设置温度下限加,k2 键设置温度下限减k3 键设置温度上限加,k4 键设置温度上限减。文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 Z

19、X8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编

20、码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X

21、2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3

22、 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文

23、档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A

24、9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6

25、W3 ZX8N2O5A4X64/24 图5 按键电路3.4 报警电路本设计采用蜂鸣器和LED灯组成报警电路,电路图如下:图6 报警电路4系统设计仿真4.1 仿真原理图根据数字温度计的一般结构框图,我们通过查阅资料书和上网查询,了解不同元件的功能和实用性,考虑性价比后,制作出的数字温度计的仿真电路原理图,如图 7 所示。文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2

26、 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3

27、ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档

28、编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9

29、X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W

30、3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6

31、文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10

32、A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X65/24 图 7 数字温度计仿真电路原理图4.2 各功能元件的分析2设计原理图中各功能元件的引脚图的分析如下所示:1DS18B20:DS18B20温度传感器是美国DALLAS半导体公司最新推出的一种改进型智能温度传感器,与传统的热敏电阻等测温元件相比,它能直接读出被测温度,并且可根据实际要求通过简单的编程实现9-12 位的数字值读数方式。DS18B20的性能特点如下:1)独特的单线接口仅需要一个端口引脚进行通信,DS18B20 在与微处理器连接时仅需要一条口线即可实现微处理器与DS18B20 的双向通讯。2)DS18B20 支持多点组网功

33、能,多个DS18B20 可以并联在惟一的三线上,实现多点组网测温;3)无须外部器件,全部传感元件及转换电路集成在形如一只三极管的集成电路内;文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2

34、Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A

35、4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8

36、E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4

37、Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O

38、5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6

39、R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X66/24 4)可通过数据线供电,电压范围为3.0-5.5;5)零待机功耗;6)温度以 9或12位数字,对应的可分辨温度分别为

40、0.5、0.25、0.125 和0.0625,可实现高精度测温;7)用户可定义报警设置;8)报警搜索命令识别并标志超过程序限定温度温度报警条件)的器件;9)负电压特性,电源极性接反时,温度计不会因发热而烧毁,但不能正常工作;10)测量结果直接输出数字温度信号,以 一线总线 串行传送给 CPU,同时可传送 CRC 校验码,具有极强的抗干扰纠错能力DS18B20采用3脚PR35封装或8脚SOIC封装,其引脚排列及内部结构框:图 8DS18B20 引脚排列图图 9 内部结构框图文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9

41、W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N

42、2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:C

43、M6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 H

44、Q9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX

45、8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码

46、:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2

47、 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X67/24 图 10 DS18B20测温原理图64 位 ROM 的结构开始 8 位是产品类型的编号,接着是每个器件的惟一的序号,共有 48 位,最后 8 位是前面 56 位的 CRC 检验码,这也是多个DS18B20可以采用一线进行通信的原因。温度报警触发器TH 和 TL,可通过软件写入户报警上下限。DS18B20 温度传感器的内部存储器还包括一个高速暂存RAM 和一个非易失性的可电擦除

48、的EERAM。高速暂存 RAM 的结构为 8 字节的存储器,结构如图4 所示。头 2 个字节包含测得的温度信息,第3 和第 4 字节 TH和 TL 的拷贝,是易失的,每次上电复位时被刷新。第5 个字节,为配置寄存器,它的内容用于确定温度值的数字转换分辨率。DS18B20工作时寄存器中的分辨率转换为相应精度的温度数值。该字节各位的定义如图5 所示。低 5 位一直为 1,TM是工作模式位,用于设置DS18B20在工作模式还是在测试模式,DS18B20出厂时该位被设置为0,用户不要去改动,R1 和 R0 决定温度转换的精度位数,来设置分辨率。温度 LSB 温度 MSB TH用户字节 1 TL用户字节

49、 2 配置寄存器预置斜率累加器比较低 温 度 系 数 振 荡计数器 1 温度寄存器Tx 预置=0 高 温 度 系 数 振 荡-0 计数器T1加 1 停止T2文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2

50、 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3 ZX8N2O5A4X6文档编码:CM6R8E10A9X2 HQ9W4Y2Z6W3

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 高考资料

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

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