【正文】
于第四代計(jì)算機(jī),而單片機(jī)是微型計(jì)算機(jī)發(fā)展的一個(gè)重要分支 ,使其各種功能集成智能化,使 現(xiàn)在的電子產(chǎn)品更加微型化 。t patible with each other, make life more and more remote control number, when used, often confuse. In addition if lost remote control, find supporting the remote control is very difficult also, so now this situation, a type of remote control everything is imperative. Has the function of intelligent remote control study is mon low cost microcontroller as the core, can decode and memory remote control code, and simulated launch, make a remote control can take the place of the more remote control more electric appliances, is a kind of intelligent control tool, and because it is more convenient than the previous remote control so research a universal remote control type of electronic manufacturers now is the necessary way to control electronics market. On the market at present is most mon intelligent remote control only to be a few products control, is not a true \universal\. This paper introduces the multifunction infrared AT89C52 single chip microputer as the whole system of the main controlling parts, has the multifunction adaptability, two working condition of learning state and control state. That is different to the household appliances, such as television, air conditioning, the refrigerator, VCD, remote control robot, the aircraft can realize the wireless remote control function. 【 Key Words】 infrared remote control, AT89C52 single chip microputer ... 目 錄 摘 要 ............................................................ I Abstract .......................................................... II 緒 論 ............................................................. 1 1 課題背景 .......................................................... 2 紅外遙控電路設(shè)計(jì)的目的 ........................................ 2 單片機(jī)的發(fā)展和應(yīng)用 ............................................ 2 單片機(jī)的發(fā)展概況及趨勢(shì) ................................... 2 紅外遙控器原理 ............................................... 3 2 系統(tǒng)設(shè)計(jì)方案論證 .................................................. 6 設(shè)計(jì)該系統(tǒng)的功能要求 .......................................... 6 設(shè)計(jì)思路分析與方案論證 ........................................ 6 設(shè)計(jì)思路分析 ............................................ 6 方案論證 ................................................ 6 3 系統(tǒng)硬件電路的設(shè)計(jì) ................................................ 8 AT89C52 單片機(jī)簡(jiǎn)介 ........................................... 8 遙控發(fā)射器的電路設(shè)計(jì) ......................................... 14 紅外線(xiàn)發(fā)射電路 ......................................... 14 遙控器信息碼 ........................................... 15 遙控接收器的電路設(shè)計(jì) ......................................... 16 紅外遙控接收器的接收過(guò)程為圖 所示 ..................... 16 接收電路 ............................................... 17 4 系統(tǒng)程序的設(shè)計(jì) ................................................... 18 初始化程序 .................................................. 18 遙控碼讀入處理程序 ........................................... 18 遙控碼發(fā)射處理程序 ........................................... 20 主程序 ...................................................... 21 延時(shí)程序 .................................................... 21 5 調(diào)試及性能分析 ................................................... 22 ... 程序調(diào)試 .................................................... 22 調(diào)試步驟 .................................................... 22 調(diào)試注意事項(xiàng) ................................................ 22 ................................................ 23 結(jié) 論 ............................................................ 24 參 考 文 獻(xiàn) ........................................................ 25 附 錄 ............................................................. 26 致 謝 ............................................................ 33 ... 緒 論 為適應(yīng)社會(huì)發(fā)展的需要 ,微型計(jì)算機(jī)不斷的更新?lián)Q代 ,新產(chǎn)品層出不窮。即對(duì)不同的家用電器 ,如電視、空調(diào)、冰箱、 VCD、遙控機(jī)器人、無(wú)人飛機(jī) 等都能實(shí)現(xiàn) 無(wú)線(xiàn) 遙控功能。目前市面上常見(jiàn)的智能遙控器大多只能對(duì)某幾種產(chǎn)品進(jìn)行控制,不是真正的 “ 萬(wàn)能 ” 。另外若遙控器丟失,找到配套的遙控器也很困難 ,所以就現(xiàn)在這種狀況,研究一種萬(wàn)能型的遙控器 勢(shì)在必行 。作為家電的重要部件之一,遙控器的競(jìng)爭(zhēng)也是可想而知的。論文內(nèi)容未包含法律意義上已屬于他人的任何形式的研究成果,也不包含本人已用于其他學(xué)位申請(qǐng)的論文或成果。 ... 單 位 計(jì)算機(jī) 091 班 學(xué) 號(hào) 09202134 江西農(nóng)業(yè)大學(xué)南昌商學(xué)院本科畢業(yè)論文 (電子信息工程專(zhuān)業(yè)) 基于單片機(jī) 的 紅外線(xiàn)遙控器 設(shè)計(jì)與仿真 姓 名 李衛(wèi)民 專(zhuān) 業(yè) 電子信息工程 指導(dǎo)教師 衷裕水 江西農(nóng)業(yè)大 學(xué)南昌商學(xué)院 二 0 一二年十一 月 ... 論文獨(dú)創(chuàng)性 聲明 本人聲明,所呈交的學(xué)位論文系在導(dǎo)師指導(dǎo)下獨(dú)立完成的研究成果。文中合法應(yīng)用他人的成果,均已做出明確標(biāo)注或得到許可。 本文如違反上述聲明,愿意承擔(dān)以下責(zé)任和后果: 1.交回學(xué)校授予的學(xué)士學(xué)位; 2.學(xué)??稍谙嚓P(guān)媒體上對(duì)本人的行為進(jìn)行通報(bào); 3.本文按照學(xué)校規(guī)定的方式,對(duì)因不當(dāng)取得學(xué)位給學(xué)校造成的名譽(yù)損害,進(jìn)行公開(kāi)道歉; 4.本人負(fù)責(zé)因論文成果不實(shí)產(chǎn)生的法律糾紛; 論文作者簽名: 日期: 年 月 日 ... 摘 要 隨著家電行業(yè)的不斷發(fā)展,如今家電市場(chǎng)的競(jìng)爭(zhēng)越來(lái)越激烈。紅外遙控器是一種用戶(hù)可以在幾米甚至十幾米外就能對(duì)各種電器進(jìn)行操作控制的裝置, 而且他有控制功能強(qiáng)、結(jié)構(gòu)簡(jiǎn)單、體積小、功耗低、擴(kuò)展靈活、可靠性高、易于掌握、價(jià)格低廉等特點(diǎn),所以在 家電產(chǎn)品中有廣泛應(yīng)用,但各產(chǎn)品的遙控器不能相互兼容,使得生活中遙控器數(shù)目也越來(lái)越多,使用時(shí) 常?;煜? 具有學(xué)習(xí)功能的智能遙控器 是 以普通的低成本單片機(jī)為核心,能解碼與記憶遙控器編碼,并模擬發(fā)射,使一個(gè)遙控器可以代替多個(gè)遙控器控制多個(gè)電器,是一種智能化的控制工具 ,由于它比以前的遙控器更加方便 , 所以研究一個(gè)萬(wàn)能型的遙控器是現(xiàn)在電子廠商掌控電子市場(chǎng)的必要途徑 。 本文介紹的多功能紅外遙控器利用 AT89C52 單片機(jī)作為整個(gè)系統(tǒng)的主控部件, 具有多功能自適應(yīng)性 , 兩種工作狀態(tài):即學(xué)習(xí)狀態(tài)和控制狀態(tài)。 【 關(guān)鍵詞 】 紅外線(xiàn)遙控器 ,AT89C52 單片機(jī) ... Abstract Along with the development of the household electrical appliance industry, now the home appliance market more and more petition. As one of important ponent of home appliance, the remote control petition is palpable. Infrared remote control is a user can in a few meters or more than ten meters away to all sorts of electric equipment can operate control device, and he has the control function of strong, simple structure, small volume, low power consumption, expand flexibility, high reliability, and is easy to grasp, low prices and other characteristics, so in the home appliance product is widely applied, but the product of the remote control can39。在微型計(jì)算機(jī)的大家族中, 近幾年來(lái) 單片微型計(jì)算機(jī) 極為突出 ,發(fā)展極