c语言单片机温度调节系统设计,基于单片机温度控制系统的设计(附原理图、源代码).doc...

第 PAGE 4 页 共 NUMPAGES 48 页

基于单片机温度控制系统的设计

中文摘要

随着微机测量和控制技术的迅速发展与广泛应用,以单片机为核心的温度采集与控制系统的研发与应用在很大程度上提高了生产生活中对温度的控制水平。本设计论述了一种以STC89C52单片机为主控制单元,以DS18B20为温度传感器的温度控制系统。该控制系统可以实时存储相关的温度数据并记录当前的时间。系统设计了相关的硬件电路和相关应用程序。硬件电路主要包括STC89C52单片机最小系统,测温电路、实时时钟电路、LCD液晶显示电路以及通讯模块电路等。系统程序主要包括主程序,读出温度子程序,计算温度子程序、按键处理程序、LCD显示程序以及数据存储程序等。

[关键词] STC89C52单片机;DS18B20;显示电路

Based on single chip microcomputer temperature control system design

Abstract

Along with the computer measurement and control technology of the rapid development and wide application, based on singlechip temperature gathering and control system development and application greatly improve the production of temperature in life level of control. This design STC89C52 describes a kind of mainly by MCU control unit, for temperature sensor DS18B20 temperature control system. The control system can real-time storage temperature data and record related to the current time. System design related hardware circuit and related applications. STC89C52 microcontroller hardware circuit include temperature detection circuit smallest system, and real-time clock circuit, LCD display circuit, communication module circuit, etc. System programming mainly include main program, read temperature subroutine, the calculation of temperature subroutines, key processing procedures, LCD display procedures and data storage procedures, etc.

[Keywords] STC89C52 microcontroller;DS18B20;display circuit

目 录

TOC \o "1-3" \h \z \u 一、引言 4

(一)课题研究的背景 4

(二)课题研究的目的和意义 4

二、硬件电路的设计 4

(一)系统设计的框架 4

(二)单片机最小系统电路 5

(三)单片机的选型 6

1.STC89C52单片机简介 6

2.STC89C52单片机时序 6

3.STC89C52单片机引脚介绍 7

(四)温度传感器电路 9

(五)系统电源电路的设计 10

(六)LCD显示电路 11

(七)串口通讯电路 11

(八)按键接口电路 12

(九)DS1302时钟电路 13

(十)存储器接口电路 13

三、系统软件设计 13

(一)计算温度子程序 14

(二)按键处理子程序 15

(三)计算温度子程序 16

(四)显示数据刷新子程序 17

四、结束语 18

参考文献 19

致谢 20

附件1:系统原理图 21

附件2:系统相关程序 22

一、DS18B20底层驱动程序 22

二、DS1302时钟底层驱动程序 27

三、数据存储底层驱动程序 33

一、引言

(一)课题研究的背景

工业控制是计算机的一个

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值