【正文】
3 ................................................................................................................. 3 AT89C51的芯片引腳 ....................................................................................................... 4 使用 I/O口的注意事項(xiàng) .................................................................................................. 6 AT89C51中斷系統(tǒng) .......................................................................................................... 6 時(shí) /計(jì)數(shù)器的使用 .............................................................................................. 8 第三章 遙控電風(fēng)扇控制系統(tǒng)設(shè)計(jì) ........................................................................................................... 9 ........................................................................................................................ 9 ................................................................................................ 9 ............................................................................................................... 10 ......................................................................................................11 ...........................................................................................................................11 ................................................................................................................11 收控制板 .........................................................................................................11 ................................................................................................................................. 12 ...................................................................................................................... 12 ............................................................................................................... 14 ................................................................................................................................. 19 ................................................................................................. 19 接收控制部分軟件設(shè)計(jì) ................................................................................................ 21 第四章 仿真與調(diào)試 .............................................................................................................................. 23 ........................................................................................................ 23 ...................................................................................................................... 24 系統(tǒng)安裝與調(diào)試 ..................................................................................................................... 26 結(jié) 論 ................................................................................................................................................. 27 致 謝 ................................................................................................................................................. 28 參考文獻(xiàn) .............................................................................................................................................. 29 附 錄 ................................................................................................................................................. 30 附錄一:遙控發(fā)射部分源程序 ....................................................................................................... 30 附錄二:接收控制部分源程序 ....................................................................................................... 33 附錄三:在 PROTEL99畫的原理圖 .................................................................................................. 40 附錄四:元件清單 ......................................................................................................................... 43 1 第一章 引 言 課題研究的意義與作用 風(fēng)扇已是日常生活中常用到的電器,電風(fēng)扇是通過通風(fēng)換氣來驅(qū)熱的。 infrared receiver module, keyboard, liquid crystal display module, a mon indicator achieve humanputer interaction function。接收部分主要以 AT89C51為主控中心,配以鍵盤,紅外接收模塊,電機(jī)驅(qū)動(dòng)模塊,液晶顯示模塊,及相應(yīng)指示燈;紅外接收模塊,鍵盤,液晶顯示模塊,指示燈共同完成人機(jī)交互功能;單片機(jī)主控中心接收各種輸入,驅(qū)動(dòng)液晶,指示燈,控制電機(jī)驅(qū)動(dòng)模塊來調(diào)節(jié) 電機(jī)轉(zhuǎn)速。 紅外線遙控是目前使用最廣泛的一種通信和遙控手段,而紅外遙控風(fēng)扇已經(jīng)過市場(chǎng)反響很好,并有專門的芯片作為主控芯片,加以擴(kuò)展實(shí)現(xiàn)紅外遙控電風(fēng)扇系統(tǒng),并以指示燈顯示檔位,具有開關(guān)及多檔位等功能。人們希望電風(fēng)扇在體積小,使用方便等的基礎(chǔ)上,能夠擁有更多的功能,而紅外遙控的廣泛應(yīng)用及單片機(jī)技術(shù)的成熟則使得紅外遙控系統(tǒng)成為了電風(fēng)扇的發(fā)展趨勢(shì)。遙控發(fā)射模塊主要以 AT89C2051單片機(jī)核心,外加鍵盤,和紅外信號(hào)整形與發(fā)射電路一起組成遙控器,鍵盤作入,單片機(jī)主要完成信號(hào)的編碼及信號(hào)與載波的調(diào)制,調(diào)制信號(hào)經(jīng)發(fā)射末端整形放大發(fā)射出。 II Abstract As a traditional household electrical appliances, with the popularity of air conditioning, electric fan market position by the huge impact, the traditional switch, speed control function cannot meet the demand of the market. People want to fan in small volume, convenient use, etc, on the basis of to have more features, and the wide application of infrared remote control and single chip microputer technology maturity makes the infrared remote control system bee the development trend of the electric remote control is currently the most widely used a munication and remote control means, and the infrared remote control fan has been the market reaction is very good, and have special chip as the main control chip, extending to realize infrared remote control electric fan system, and with indicator light shows gear, with functions of switch and multiposition. After a lot of testing and adjusting circuit, the system functions are implemented properly. The system is of 51 series singlechip microputer as the core, to develop a new type of remote control electric control system, the system fired by remote control module, the fan control module receiving the position, the system can be remote or manually controlled. Remote Control Transmitter Module AT89C2051 mainly singlechip core, plus a keyboard, and infrared signals with the launch of plastic ponents with a re