登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 通信工程 > 正文

基于单片机的红外遥控器的设计毕业论文

 2022-05-16 08:05  

论文总字数:22938字

摘 要

红外线遥控目前已经是一种被广泛使用的通信和遥控手段,红外线遥控器是它最具代表性的应用之一。红外线遥控器具有结构简单、功耗低、工作可靠性高等优点,适用于室内短距离遥控,因此多应用于生活中电器设备的遥控,典型代表便是电视遥控。但是由于不同厂家生产的遥控器使用不同的芯片,使用的编码方式也不同,不同的红外线遥控器之间不能相互兼容,应用范围受到限制,在我们的生活中往往需要同时使用多个遥控器,给我们生活带来诸多不便。

基于以上的问题,本文设计了一种学习型红外线遥控器,其采用STC89C54RD 单片机为核心代替专用的遥控芯片来进行红外线遥控系统的设计,其特点是能够把多个红外信号学习在一个遥控器中,从而来控制各类不同的家电,有效避免了频繁更换遥控器的尴尬情况。

关键词:单片机 红外遥控 红外解码 NEC协议

The Design of Infrared Remote Control Based on the Microcontrollers

Abstract

Infrared remote control technology is a kind of widely used means of communication, the infrared remote controller is one of the most representative application. It has a simple structure, low power consumption, high working reliability, etc. It is suitable for indoor and short distance, so they often used for remote control of electrical equipment, TV remote controller is a representative of them. However, different manufacturers use different remote control chips and encodings, so infrared remote controllers cannot be compatible with each other, and their application scope is limited. In our life, we often need to use multiple remote controller at the same time, it bring so much inconveniences.

Based on the these problems, this paper designs a learning infrared remote controller, it adopts STC89C54RD as the core instead of the dedicated remote control chip for the design of infrared remote control system. Its characteristic is to be able to learn more other infrared signals, it aims to control most of electrical appliances, so frequent replacement of the remote controllers is effectively avoided.

Key Words: Microcontroller; Infrared Remote Control; Infrared Protocol Decoding; NEC Protocol

目 录

摘 要 I

Abstract II

第一章 概述 1

1.1 单片机的产生与发展 1

1.2 红外遥控的发展 2

1.2.1 红外遥控概述 2

1.2.2 学习型红外遥控器概述 3

1.3 本文的研究内容及结构 3

1.3.1 本文的研究内容 3

1.3.2 本文结构 4

第二章 红外遥控原理 5

2.1 红外遥控原理 5

2.2 红外编码格式 5

2.3 NEC协议 6

2.4 本章小结 7

第三章 系统硬件设计 8

3.1 系统总体设计方案 8

3.2 单片机STC89C54RD 8

3.2.1 简介 8

3.2.2 引脚介绍 9

3.3 时钟电路 10

3.4 矩阵键盘电路 11

3.5 液晶显示屏 12

3.6 存储器 13

3.7 红外发射电路 14

3.8 红外接收电路 15

3.8.1 一体化红外接收头NB1838 15

3.8.2 红外接收电路 15

3.9 蜂鸣器电路 16

3.10 本章小结 17

第四章 软件部分设计 18

4.1 主程序流程图 18

4.2 红外接收学习程序 18

4.3 键号判别程序 20

4.4 红外发射程序 22

4.5 红外解码程序 23

4.6 本章小结 25

第五章 系统调试 26

5.1 软件调试 26

5.1.1 Keil C51软件介绍 26

5.1.2 程序编译和烧录 27

5.2 硬件调试 28

5.2.1 硬件调试的主要步骤 28

5.2.2 静态检测与调试 28

5.2.3 动态检测与调试 28

5.2.4 硬件调试中的注意事项 29

5.3 本章小结 29

第六章 总结与展望 30

参考文献 31

致谢 32

第一章 概述

1.1 单片机的产生与发展

随着时代的发展,微型计算机的市场需求快速增长,新产品层出不穷。近些年来,单片微型计算机发展迅速,被广泛应用于控制领域。

单片微型计算机简称为单片机。它集成了中央处理器、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、定时/计数器和I/O口电路等诸多部件[1]。它有着高性能、体积小、价格低、可靠性高等优点,因此被广泛应用。单片机的发展大体上经历了四个阶段:

第一阶段(1970-1974年):为4位单片机阶段。这阶段单片机的特点是:价格便宜而且控制功能强。此阶段单片机片内有多个I/O接口,A/D转换电路、D/A转换电路、声音合成电路等也被集成在里面。由于有丰富的I/O口,被广泛应用于电视机、电冰箱等电器产品中。

第二阶段(1974-1978年):为中低性能8位单片机阶段。在发展初期,最具代表性的便是MCS-48系列,由Intel公司出品。这类单片机内集成了8位微处理器,拥有并行I/O口、8位的定时/计数器,当然ROM和RAM也必不可少,只是其容量还都比较小。8位单片机相较于前一阶段的优点是比较容易进行中断的处理。

请支付后下载全文,论文总字数:22938字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图