毕业设计论文 - 基于51单片机 下载本文

南京信息职业技术学院

毕业设计论文

作者 薛 亮 学号 20722T32

系部 电子信息学院

专业 无线电技术 题目 基于单片机的家用电器远程遥控装置

的设计与制作

指导教师 李光明 评阅教师 完成时间: 2010年 2月 11日

1

毕业设计(论文)中文摘要

题目: 基于单片机的家用电器远程遥控装置的设计与制作 摘要:随着电子、计算机科学的发展,我们的生活和工作中都会接触很多的电子产品,而这些电子产品大多都是被称作单片机的微型计算机所控制,本文主要介绍以单片机AT89C51为核心,充分利用单片机的片内外资源,配合使用双音多频接收器MT8870实现远程电话遥控家电开关等功能的仪器。设计中使用了EEROMX25045来存储密码;采用语音芯片实现操作步骤提示、操作成功反馈提示等功能,操作简单、可靠;为了不额外占用资源,在软件中设计有一段时间内无人操作自动挂机的功能;在设计时为了解决单片机I/O口资源有限的问题,我们选用了CPLD可编程逻辑器件来扩展单片机的I/O口,从而实现电路的逻辑功能。 本次设计基于完备的软硬件系统,很好的实现了自动摘机、语音提示、密码核对、操作提示、状态显示及超时自动挂机等功能。 关键词:AT89C51 MT8870 EEROM 单片机 CPLD 2

毕业设计(论文)外文摘要

Title : Based on the SCM home electrical equipment remote control device design and production of Abstract: With the electronics, Such as electronics, computer science development, we will be living and working in contact with a lot of electronic products, electronic products which are mostly known as a micro-computer controlled by the microcontroller, this article focuses on the single-chip microcomputer AT89C51 the core, make full use of on-chip microcontroller internal and external resources to support the use of dual-tone multi-frequency receiver MT8870 remote telephone switch features such as remote control home appliances instruments. Used in the design of EEROMX25045 to store passwords; use of voice-chip steps suggest that the successful operation of features such as feedback tips, simple operation, reliable; in order not to occupy the additional resources in the design of software for some time to hang up the unmanned automatic function; in the design in order to solve the MCU I / O port resources are limited, we use a CPLD programmable logic device to expand the MCU I / O port, in order to achieve circuit logic functions. The design is based on a complete hardware and software systems, a good implementation of the automatic picking, voice prompts, password checking, operating tips, status display and automatic hang out functions. keywords: AT89C51 MT8870 EEROM MCU CPLD

3

目 录

第1章 绪论 ................................................................................................................. 5

1.1 概述 ................................................................................................................................... 5 1.2 设计要求及主要功能介绍 ................................................................................................ 5 1.3 MCS-51系列单片机简介 .................................................................................................. 7

第2章 系统总体设计 ................................................................................................. 9

2.1 系统功能模块的划分 ........................................................................................................ 9 2.2 系统原理框图 .................................................................................................................... 9 2.3 系统软件主要特色 .......................................................................................................... 10

第3章 各模块详细设计 ........................................................................................... 12

3.1 振铃检测模块的设计 ...................................................................................................... 12 3.2 双音多频模块的设计 ................................................................................................... 13 3.3 自动摘机及超时挂机模块的设计 .................................................................................. 16 3.4 语音提示模块的设计 ...................................................................................................... 17 3.5 密码设置模块的设计 ...................................................................................................... 21 3.6 EEPROM及看门狗模块的设计 .................................................................................. 23 3.7 继电器驱动模块的设计 .............................................................................................. 27 3.8 系统总程序的设计 ....................................................................................................... 28

第4章 系统的组装、调试和测试 ........................................................................... 30

4.1 系统的组装、调试 .......................................................................................................... 30 4.2 振铃检测及自动摘机功能的测试 .................................................................................. 30 4.3 语音及双音多频功能的测试 .......................................................................................... 30 4.4 密码设置功能的测试 ...................................................................................................... 30 4.5 EEPROM密码存储功能的测试 ..................................................................................... 31 4.6 继电器驱动、电器状态显示及语音提示功能的测试 .................................................. 31 4.7 超时自动挂机功能的测试 .............................................................................................. 31

第5章 系统方案总评 ............................................................................................... 32 结论 ............................................................................................................................. 33 致谢 ............................................................................................................................. 33 参考文献 ..................................................................................................................... 33 附录A 家用电器远程遥控装置的功能及使用 ........................................................ 35

1 家用电器远程遥控装置的功能 ......................................................................................... 35 2 家用电器远程遥控装置的使用方法 ................................................................................. 36

图1 家用电器远程遥控装置原理图 ........................................................................ 38 图2 家用电器远程遥控装置印制板图 .................................................................... 39 图3 家用电器远程遥控装置CPLD内部电气图 .................................................... 40 表1 家用电器远程遥控装置元器件清单 ................................................................ 41

4