红外线遥控逻辑分析仪的设计 精品 联系客服

发布时间 : 星期日 文章红外线遥控逻辑分析仪的设计 精品更新完毕开始阅读9ab00955fd4ffe4733687e21af45b307e971f977

毕业设计(论文)

课题

红外线逻辑分析仪的设计

类 别 系 科

毕业设计论文

?应用电子技术?应用电子技术/应用英语 专 业 ?电气自动化技术?电气自动化技术/市场营销 ?计算机应用技术?计算机应用技术/广告设计与策划

班 级 姓 名 完成日期 指导教师

红外线遥控逻辑分析仪的设计

摘 要

在高新技术飞速发展的今天,随着信息技术的普及,红外技术得到了迅猛发展。本设计采用用途广泛的红外线通信技术设计了一款基于计算机串口的红外逻辑分析仪,本课题由SM0038红外接收头、STC89C52单片机、MAX232电平转换器、DB9构成硬件部分,由下位机程序和上位机程序构成软件部分。设计的逻辑分析仪可对各种电器的红外遥控器所发射的控制信号进行识别、存贮和再现。还可通过红外硬件接口识别出红外信号并送入单片机处理,然后利用VB开发的虚拟软件在电脑屏幕上实时显示采集到的红外信号波形便于设计人员对各种调制方式的红外信号进行“可视化”的分析与研究。

关键词:串口 红外通信 红外逻辑分析仪

I

Infrared Remote Control Logic Analyzer

Abstract

The rapid development of high-tech today, with the spread of information technology, infrared technology has been developing rapidly. This design uses a wide range of uses infrared communication technology designed a computer-based logic analyzer infrared serial port, this project was supported by SM0038 infrared receiver head, STC89C52 microcontroller, MAX232 level converter, DB9 constitute the hardware part, by the next crew procedures and upper Machine procedures constitute software. Design logic analyzer can be a variety of electrical infrared remote control signal emitted by the identification, storage and reproduction. Hardware interface can be identified by infrared infrared signal and sent to MCU processing, then use the VB development of virtualization software on a computer screen real-time display of the infrared signal waveforms collected to facilitate the designer of various modulation infrared signals \Key words:Serial Infrared communication Infrared logic analyze.

II

目 录

摘 要 ............................................................................................................................................................... I Abstract ........................................................................................................................................................... II 引言 ................................................................................................................................................................ 1 1 红外线介绍 ................................................................................................................................................ 1 2 串口通信原理 ............................................................................................................................................ 1

2.1 波特率选择 ................................................................. 1 2.2通信协议的使用 .............................................................. 2 2.3 硬件连接 ................................................................... 2 3 硬件设计 .................................................................................................................................................... 3

3.1 STC89C52芯片 ............................................................... 3

3.1.1主要性能.............................................................................................................................. 4 3.1.2 STC89C52单片机芯片引脚介绍 ......................................................................................... 4 3.2 SM0038芯片 ................................................................. 4

3.2.1 SM0038引脚接法 ................................................................................................................ 4 3.2.2 SM0038与单片机接口电路 ................................................................................................ 5 3.3 MAX232芯片 ................................................................. 5

3.3.1 MAX232芯片引脚 ................................................................................................................ 5 3.3.2 MAX232芯片功能 ................................................................................................................ 6 3.4 电源电路及其说明 ............................................................ 6 3.5 总原理图及其说明 ............................................................ 7 4 软件设计 .................................................................................................................................................... 7

4.1 红外编码格式................................................................ 7 4.2 单片机的软件编程 ............................................................ 8

4.2.1下位软件编程思路 .............................................................................................................. 8 4.2.2 下位机程序 ......................................................................................................................... 8 4.3 上位机软件设计............................................................. 11

4.3.1上位机软件编程思路 .........................................................................................................11 4.3.2 上位机程序 ........................................................................................................................11

5 系统调试 .................................................................................................................................................. 24

5.1硬件调试 ................................................................... 24 5.2 软件调试 .................................................................. 25 5.3 软硬件联调 ................................................................ 25

5.3.1 调试的方法 ....................................................................................................................... 25 5.3.2 调试中出现的故障及解决方案 ....................................................................................... 25

总结 .............................................................................................................................................................. 26 参考文献 .................................................................................................................................................... - 1 - 致谢 ............................................................................................................................................................ - 2 - 附录 ............................................................................................................................................................ - 3 -

III