文档介绍:河南工业职业技术学院
Henan Polytechnic Institute
毕业设计(论文)
题目学习型红外线遥控器
班级机电 0906
姓名修丘淇
指导教师张国同
摘要
学习型红外线遥控器,通过自学习而拥有对多台电器的遥控功能。该遥控器有两种状态:学习状态和控制状态。处于学习状态时,使用者每按一个控制键红外接收电路就开始接收外来红外信号,并将其转换为电信号,然后经过检波、整形、放大,再由单片机定时对其采样,将每个采样点的二进制数据以8位为一个单位,分别存放到指定的存储单元中去,供以后对该设备控制使用;处于控制状态时,使用者每按一个控制键单片机从指定的存储单元中读取二进制数据,串行输出(位和位之间的时间间隔等于采样的时间间隔)给信号保持电路,同时由调制电路进行信号调制,将调制信号经放大后,由红外线发射二极管进行发射,从而实现对该键对应设备功能的控制。
关键词:学习型,红外线遥控器,学习状态,控制状态,AT89S52
Abstract
Learning type infrared remote control, by self learning and have multiple electrical appliances remote control function. The remote controller has two states: learning state and control state. In the learning state, every user according to a control key and infrared receiving circuit began to receive foreign infrared signal, and converts it to an electrical signal, and then after demodulation, shaping, amplification, and then by the timing of the sampling, every sampling point binary data in 8 as a unit, respectively, to store the specified storage unit, for later on the equipment to control the use of; in the control mode, the user each press of a control key chip from the designated memory unit reading binary data, serial output ( and between the time interval is equal to the sampling time interval ) to the signal holding circuit, at the same time by modulation circuit signal modulation, the modulation signal is amplified by the infrared emitting diode, transmitting, thus realizes to the keys corresponding to device function control.
Key words: learning, infrared remote control,learning control, AT89S52
目录
1 课题综述 1
课题来源及意义 1
课题研究背景 1
1
预期目标 1
面对的问题 2
需解决的关键技术 2
2 系统分析 3
涉及的基础知识 3
解决问题的基本思路 3
AT89S52单片机的基本知识 3
单片机的发展趋势 4
对于抗干扰能力的解决 5
总体方案 9
功能模块框图 10
3 系统设计 11
11
12
详细流程图 12
4 代码编写 13
AT89S52单片机与各模块电路的连接端口分配 13
复位电路的设计 13
按键电路设计的实现 14
中断程序的实现 15
15
外中断0的服务程序 16
主函数的实现 17
5 系统