【正文】
紅外通信 串行接口 ABSTRACT Among a lot of application system based on single chip microprocessor, the system needs realize remote control function, infrared munication is frequdntly adopted as one method. This text explains the basic operation principle of infrared munication, designs infrared munication scheme which suits to single chip microprocessor system, and designs expand infrared concrete of single chip microprocessor serial port circuit, prove its operation principle .it provides the procedure graphic apply to infrared munication, and points out some questions that should be paid attention to in the course of implementing. Shaking the accusing of device agreement on the general market is simple, privacy is not strong, antiinterference ability is relatively weak. What we introduced is a kind of infrared remote control circuit system based on byte transmission circuit here can suit various kinds of plicated application occasion, and can be very much extensive to apply to various kinds of actual productions Key words: Single chip microprocessor, infrared munication, serial interface 目 錄 第一章 緒論 ...................................................................................... 1 第二章 方案設(shè)計 ............................................................................. 6 紅外通信的基本原理 ................................................................ 6 設(shè)計要求及總體方案 ................................................................ 6 第三章 紅外發(fā)射系統(tǒng) ..................................................................... 8 紅外發(fā)射系統(tǒng)的基本工作原理 ............................................... 8 AT89C51 單片機最小系統(tǒng) ........................................................ 8 顯示器接口電路 ...................................................................... 12 鍵盤接口電路 ......................................................................... 13 電源電路 ................................................................................. 14 38KKHZ振蕩器 ....................................................................... 15 調(diào)制及驅(qū)動電路 ..................................................................... 15 第四章 紅外接收系統(tǒng) ................................................................... 18 紅外接收系統(tǒng)的基本原理 ..................................................... 18 紅外 接收前置放大電路 ......................................................... 18 頻率解調(diào)電路 ......................................................................... 19 第五章 系統(tǒng)軟件設(shè)計 ................................................................... 23 鍵盤程序設(shè)計 ......................................................................... 23 顯示程序設(shè)計 ......................................................................... 24 串行口波特率發(fā)生器設(shè)置 ..................................................... 26 系統(tǒng)總程序設(shè)計 ..................................................................... 29 結(jié) 論 ............................................................................................ 31 參考文獻(xiàn) ............................................................................................ 32 致 謝 ............................................................................................ 33 第一章 緒論 科學(xué)技術(shù)的發(fā)展已經(jīng)使紅外通信深入到各 行各業(yè),應(yīng)用領(lǐng)域不斷擴(kuò)大。本文闡述紅外通信的基本工作原理 ,設(shè)計適合單片機系統(tǒng)的紅外通信方案,以及具體的單片機串行口擴(kuò)展紅外接口電路,并說明其工作原理。給出應(yīng)用于紅外通信的程序流程圖,并指出在實施過程中應(yīng)注意的一些問