当前位置:首页 > 用ADC0808设计的调温报警器
专业综合课程设计及实验
题 目 用ADC0808设计的调温报警器 学 院 专 业 电子信息工程 班 级 信工(2)班 学 号 姓 名 指导老师 张 副教授
2011 年 10 月
1
摘 要
目前单片机渗透到我们生活的各个领域,几乎很难寻找到哪个领域没有单片机的踪迹。温度是一个十分重要的物理量,对它的测量和控制有十分重要的意义。本课程设计借助电路仿真软件Protues对基于AT89C51单片机的温度报警器的设计,设计的内容是由单片机、ADC0808作为温度调节器、并由数码管显示的温度报警器。当调节温度小于60摄氏度或者高于160摄氏度,系统将产生不同频率的声音,并且对应的LED等闪烁。本次设计的温度报警器在日常生活和工业应用非常广泛,程序内部设定有报警上下限,在生活在具有使用价值和广泛的前景。
关键词:单片机;数码管;ADC0808
Abstract
Currently microcontroller penetrated into every aspect of our lives, almost difficult to find which areas no traces of single-chip microcomputer. The temperature is a very important physical quantities, for its measurement and control is very important. This course is designed by means of circuit simulation software Protues based on AT89C51 single-chip temperature alarm design, design content is composed of a single chip computer, the ADC0808 temperature regulator, and a digital display of temperature alarm. When adjusting the temperature less than 60 degrees or above 160
degrees Celsius, the system will produce different frequencies of sound, and the corresponding LED scintillation. The design of the temperature alarm in daily life and industrial application is very extensive, the internal procedures of setting alarm limits, in has the use value and a broad prospect.
Key words: single chip microcomputer; digital tube; ADC0808
2
目录
摘 要 .................................................... 2 前言 ..................................................... 4 1.设计任务 .............................................. 4
1.要求 .......................................................................................................................................... 4
2.硬件设计 .................................................................................................................................. 4
2.芯片 .................................................. 8
1.ADC0808 .................................................................................................................................. 8
2.引脚功能(外部特性) .................................................................................................... 8 3.ADC0808工作时序 ............................................................................................................... 11
3.软件设计 ............................................. 12
.流程设计 ............................................................................................................................... 12 1. 报警子程序框图 ............................................................................................................... 12 2. 扬声器发声子程序流程图 ............................................................................................... 12 3. 主程序流程图 ................................................................................................................... 12
4.电路原理图 ........................................... 13
1. 元器件: ........................................................................................................................... 14
2模块设计说明 ........................................................................................................................ 14 3.仿真 ..................................................................................................................................... 16
结束语 .................................................. 17 参考文献 ................................................ 17 附录 .................................................... 18
程序 ........................................................................................................................................... 18
3
前言
基于AT89C51单片机设计的调温报警器,可以及时调节温度,根据外部温度作出相应的调节,可添加DS18B20读取的温度超过上下限时系统报警,在生活的许多方面都有着对温度进行杆子和控制的需要,所以也就使得其应用范围不断扩大。
1.设计任务
1.要求
1 根据读取的温度进行调节温度。
2 温度显示功能 利用 LED 数码管显示温度
3 报警功能 当温度超过设定的上下限温度 报警灯闪烁 且发出不同频率的声音报警
4本例ADC0808仅作为外部调温器,由单片机读入温度数值后,转换成两位10进制表示的温度值,输出到数码管显示,并与预设的警报温度对比,在不高于警报温度时,LED灯成流水灯闪烁,当高于警报温度后,单片机控制LED进行警报闪烁提示并控制蜂鸣器发出声音警报,从而达到温控警报功能。
2.硬件设计
4
共分享92篇相关文档