摘 要
本文从硬件和软件两方面介绍了具有语音播报功能的水温控制系统的设计思路,采用AT89C51单片机为检测控制中心,此芯片功能强大,能满足设计要求。采用DS18B20为数据采集芯片,不需要AD转换,与单片机接口简单,编程容易。本设计与一般的水温控制系统不同的是具有语音播报功能,此功能模块的实现主要靠ISD4004语音芯片,ISD芯片采用了“直接模拟量存储”专利技术,信号无需经过模数、数模转换,数字压缩和语音合成等复杂的数字信号处理过程,减少了失真,使其声音存贮效果较以前产品有大幅提高。由于单片机直接输出电流小,所以输出电流经过MOC光耦器件由继电器控制电机工作,从而控制水泵进行水温调节。此系统可以实现设定、播报、控制水温及越限报警等多方面功能。
关键字:水温控制 单片机 语音播报 电机
I
ABSTRACT
This arcticle introduces the design of the water temperature control system with speech function from both hardware and software. SCM AT89C51is used to detect control center. This powerful chip can meet the design requirements. DS18B20 is used for data acquisition chip, which does not require AD conversion, and also has simple interface with SCM and easy programming. The difference between the design and the general temperature control system is the voice broadcast feature with the ability to rely mainly on the realization of modules ISD4004 voice chip. ISD chip applies \analog storage\(DAST) patented technology. It processes signal without going through A / D, D / A converters, digital compression and voice synthesis, and other complex digital signal processing, at the same time decreases distortion to sound effects than before storage products are substantially increased. As a direct output current SCM small, so output current through the device by the MOC Optocoupler relay driven motor, so as to control water pumps for water temperature adjustment. The system can be set, broadcast, temperature control and alarm, and so the more limited function.
Keyword: Water temperature control;SCM;Voice broadcast;Motor
II
目 录
摘 要 ......................................................... I ABSTRACT ...................................................... II 1 绪 论 ........................................................ 1 1.1 系统概述 .................................................. 1 1.2设计任务和主要内容 ......................................... 2
1.2.1 基本要求 .............................................. 2 1.2.2 主要性能指标 .......................................... 2 1.2.3 扩展功能 .............................................. 2 2 系统框图和方案论证 ........................................... 3 2.1总体方案论证 ............................................... 3 2.2系统框图 ................................................... 3 2.3 各部分电路方案论证 ........................................ 4
2.3.1 数据采集部分 .......................................... 4 2.3.2 键盘显示部分 .......................................... 6 3 AT89C51单片机 ................................................ 8 3.1 单片机的基本组成 .......................................... 8
3.1.1 中央处理器 ............................................ 8 3.1.2 存储器 ................................................ 9 3.1.3 外围接口电路 ......................................... 10 3.1.4 时钟震荡电路 ......................................... 10 3.2 引脚排列及功能 ........................................... 10
3.2.1 I/O口线 ............................................. 11 3.2.2 控制信号线 ........................................... 12 3.2.3 电源线 ............................................... 13 3.2.4 外部晶振引线 ......................................... 13 4 单片机外围电路 .............................................. 14 4.1 数据采集电路 ............................................. 14
III