基于低功耗单片机温度计设计(电路图+原理图+
流程
快递问题件怎么处理流程河南自建厂房流程下载关于规范招聘需求审批流程制作流程表下载邮件下载流程设计
图)-论文
基于低功耗单片机温度计设计(电路图+原理图+流程图)
ABSTRACT
The paper introduced a kind of a new digital thermometer which take the Micro Controller Unit as the primary control component and take DS18B20 as the temperature sensor.
The paper is mainly consist of the design of the hardware electric circuit and the design of the system program. The hardware electric circuit mainly include the master controller, the temperature measured electric circuit and the display circuit and so on, the system take Microcontroller Unit AT89C52 as its master controller, and DS18B20 as the its temperature sensor, which is produced by the American DALLAS company, and anodes LED numerical code tube is mainly part of the display circuit .The system program mainly included the master routine, the read-out temperature subroutine, the temperature transformation order subroutine, the calculated temperature subroutine, demonstrated the data renovates subroutine and so on. In addition, the system debugging and the performance analysis is also involved in this paper.
Keywords: temperature sensor, DS18B20, AT89C52, display circuit, digital thermometer摘 要
本设计介绍了一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。主要包括硬件电路的设计和系统程序的设计。硬件电路主要包括主控
制器,测温电路和显示电路等,主控制器采用单片机AT89S52,温度传感器采用美国DALLAS半导体公司生产的DS18B20,显示电路采用4位共阳极LED数码管以动态扫描法直读显示。系统程序主要包括主程序,读出温度子程序,温度转换
命令子程序,计算温度子程序,显示数据刷新子程序等。此外,还介绍了系统的
调试和性能
分析
定性数据统计分析pdf销售业绩分析模板建筑结构震害分析销售进度分析表京东商城竞争战略分析
。
关键词: 温度传感器,DS18B20,AT89S52,显示电路,数字温度计 目录
插图清
单……………………………………………………………………………………1 表格清
单……………………………………………………………………………………2 引
言………………………………………………………………………………………
…3
第1章 系统方案的论证与比
较……………………………………………………………4 第2章 硬件电路的设
计……………………………………………………………………6 2.1 向通道的设
计…………………………………………………………………………6
2.2 片机的选择及其接口电路的设
计……………………………………………………10
2.2.1 片机的选
择…………………………………………………………………………10 2.2.2显示电路的设
计……………………………………………………………………20 2.2.3 按键及报警电路的设
计……………………………………………………………23 2.3后向通道的设
计………………………………………………………………………25 第3章 系统软件的设
计…………………………………………………………………27 3.1系统主程序的设
计……………………………………………………………………28 3.2 温度子程
序……………………………………………………………………………29 3.3按键处理子程
序………………………………………………………………………29 3.4 计算温度子程
序………………………………………………………………………30 3.5 显示数据刷新子程
序…………………………………………………………………31
第4章 结论与展
望………………………………………………………………………32 致
谢………………………………………………………………………………………
…33
参考文
献……………………………………………………………………………………34
附录A 原程
序………………………………………………………………………………35 附录B 设计电气原理
图……………………………………………………………………45 插图清单
图1-1 控制器设计总体框
图……………………………………………………………4 图2-1 DS18B20的内部结构
图…………………………………………………………7 图2-2 DS18B20字节定
义………………………………………………………………7 图2-3 DS18B20实物
图…………………………………………………………………9 图2-4 DS18B20与单片机的连接
图……………………………………………………10
图2-5 AT89S52引角
图…………………………………………………………………13 图2-6 AT89S52内部结构框
图…………………………………………………………14 图2-7 内部振荡电路连接
图……………………………………………………………19 图2-8 外部振荡电路
图…………………………………………………………………20 图2-9 段LED显示器结构原理他
图……………………………………………………20 图2-10 LED显示
器………………………………………………………………………21 图2-11 8段LED段选码原理
图…………………………………………………………22 图2-12 动态循环扫描显示电路
图………………………………………………………23 图2-13 按键设计电路
图…………………………………………………………………24 图2-14 报警电路设计电路
图……………………………………………………………25 图2-15 MOCS041内部结构和外部引
角…………………………………………………25
图2-16 过零触发双向可控硅电
路………………………………………………………26 图3-1 主程序流程
图……………………………………………………………………27 图3-2 读温度流程
图……………………………………………………………………28 图3-3 温度转换流程
图…………………………………………………………………29 图3-4 计算子程序流程
图………………………………………………………………30 图3-5 数据刷新子程序流程
图…………………………………………………………31 格清单
表2-1 DS18B20温度转换时间
表………………………………………………………8 表2-2 部分温度对应值
表………………………………………………………………9 表2-3 P1口第二功
能……………………………………………………………………11 表2-4 P3口第二功
能……………………………………………………………………12
表2-5 AT89S52特殊寄存器映像及复位
植……………………………………………15
表2-6 T2CON:定时器/计数器2控制寄
器………………………………………………16 表2-7 定时器2工作模
式………………………………………………………………18 表2-8 M2MOD-定时器2寄存
器…………………………………………………………18 表2-9 中断允许控制寄存
器……………………………………………………………1082
>>