【正文】
單元的內(nèi)容均為 FFH),用戶隨時可對其進行編程。低電壓編程模式,適用與用戶在線編程系統(tǒng)。 方法如下 入的數(shù)據(jù)字節(jié)。 ,將 EA/vpp 端加上 +1V 編程電壓。 AT89C51 控制信號 RST/VPD 復(fù)位信號時鐘電路工作后,在引腳上出現(xiàn)兩個機器周期的高電平,芯片內(nèi)部進行初始復(fù)位,復(fù)位后片內(nèi)存儲器的狀態(tài)如表所示, P1— P3 口輸出高電平,初始值 07H 寫入堆棧指針 SP、清 0 程序計數(shù)器 PC 和其余特殊功能寄存器,但始終不影響片內(nèi) RAM 狀態(tài),只要該引腳保持高電平, 89C51 將循環(huán)復(fù)位, RAT/VPD 從高電平到低電 平單片機將從 0 號單元開始執(zhí)行程序,另外該引腳還具有復(fù)用功能,只要將 VPD 接 +5V 備用電源,一旦 VCC 電位突然降低或斷電,能保護片內(nèi) RAM 中的信息不丟失,恢復(fù)電后能正常工作。 開鎖示意圖 通過單片機送給開鎖執(zhí)行機構(gòu),電路驅(qū)動電磁鎖吸合,從而達到開鎖的目的。電路圖如下圖 23 所示。由 DR T10 組成驅(qū)動電路,其中 T10 可以選擇普通的小功率三極管如 901 9018 都可以滿足要求。其中 D C24 是為了消除電磁鎖可能產(chǎn)生的反向高電壓以及可能產(chǎn)生的電磁干擾。注:在設(shè)計中,暫時用發(fā)光二極管代替電磁鎖,發(fā)光管亮,表示開鎖;滅,表示沒有開鎖。其原理如下圖所示 : 單片機微控制器 密碼正確 開鎖驅(qū)動電路 返回 電磁瑣 每一條水平(行線)與垂直線(列線)的交叉處不相通,而是通過一個按鍵來連通,利用這種行列式矩陣結(jié)構(gòu)只需要 N 條行線和 M 條列線,即可組成具有 N M 按鍵的鍵盤。方法是:向行線輸出全掃描字 00H,把全部線列設(shè)置為低 電平,然后將線列的電平狀態(tài)讀入累加器 A 中。判斷鍵盤中哪一個鍵被按下是通過列線依次被置為低電平后檢查行輸入狀態(tài)來實現(xiàn)的。 按鍵的操作面板如下圖所示。上鎖和開鎖 的過程在前面已經(jīng)詳細介紹 ,在此不再多說。 顯示電路 本系統(tǒng)設(shè)計的顯示電路為了節(jié)約單片機的接口資源而采用串行顯示的方式,只使用單片機的兩個串行口,就可以完成單片機的顯示功能,顯示電路的電路原理圖如下圖所示。這個功能使用程序來實現(xiàn)的,一旦沒有按鍵動作就啟動一個定時器,檢測在 5 分鐘內(nèi)沒有按 鍵動作的時候,啟動一個程序,關(guān)閉顯示,這樣可以達到節(jié)省電能的目的。移位寄存器 74HC164 還兼作數(shù)碼管的驅(qū)動。 電源穩(wěn)壓模塊 本著節(jié)省原材料的原則,選擇的是 7805 穩(wěn)壓模塊作為本電路的電源,為了讓電流更平穩(wěn)更可靠,后面加入了整流模塊 7805,電路相當簡單, 1 腳是電源的進線, 2 腳是公共端, 3 腳就是 5V 直流電的輸出了, C4 和 C5 是濾除高頻率的雜波干擾的,發(fā)光二極管 D1 可以作為電源電路的直接顯示,如果發(fā)光則說明電路得到了穩(wěn)定的 5V 電源。 3 軟件設(shè)計 設(shè)計思路 程序分為主程序 、 密碼判斷子程序 、 數(shù)碼管顯示子程序 、 鍵盤掃描中斷服務(wù)程序及待機中斷服務(wù)程序等 。 密碼的判斷 :有數(shù)字鍵按下后 ,則進行計數(shù) ,若有 6 個數(shù)字鍵按下 ,表示已輸入 6 個密碼 !則將已輸入的 6個密碼與初始密碼核對 ,如果密碼輸入正確 ,則輸 出密碼正確標志 ,若密碼輸入錯誤 ,則輸出密碼錯誤標志 。!若 10 秒內(nèi)沒有輸入內(nèi)容則清除已輸入的內(nèi)容 。本次設(shè)計采用的是模塊化的思想,將整個設(shè)計分為硬件和軟件兩部分,硬件部分主要完成系統(tǒng)外圍硬件電路的設(shè)計,構(gòu)建電路原理圖;軟件部分主要完成系統(tǒng)程序的編寫,以便于系統(tǒng)進行仿真,驗證設(shè)計方案的可行性。軟件部分也可分為主程序,鍵盤掃描子程序,顯示子程序,掉電服務(wù)子程序。但是在軟件程序及仿真中還是花費了大量的時間來學(xué)習(xí)相關(guān)軟件。對所學(xué)的課程有了進一步的深入了解,能達到學(xué)以致用。 受時間和經(jīng)驗限制,本系統(tǒng)有不足和需改進的地方: 1.由于以前專業(yè)知識的疏漏及畢業(yè)實習(xí)的要求,所以在時間上安排的有些倉促,設(shè)計雖然基本完成了設(shè)計要求,但只是基本軟件平臺的仿真,在 PCB 原理圖的布線和封裝上沒有完成任務(wù),如要是制作產(chǎn)品的話會帶來很大的麻煩。這對事情的完成效率是一個重要保證。本設(shè)計原理圖布局上有待改進。 5 參考文獻 [1] 何立民 , MCS51 系列單片機應(yīng)用系統(tǒng)設(shè)計 ,北京:北京航空航天大學(xué)出版社 1999年 [2] 楊振江等 , 流行單片機實用子程序及應(yīng)用實例 [M],西安電子科技大學(xué)出版社 2022 年 [3] 張福學(xué) , 傳感器應(yīng)用及其電路精選 [M],北京:電子 工業(yè)出版社 1993 年 [4] 沈新群等 , MCS5l 系列單片機系統(tǒng)及其應(yīng)用 [M],高等教育出版社 2022 年 [5] 李朝青 , 單片機原理及接口技術(shù) [M],北京:北京航空航天出版社 2022 年 [8] 馮建華、趙亮 , 單片機應(yīng)用系統(tǒng)與產(chǎn)品開發(fā) [M], 人民郵電出版社 2022 年 [9] 李華 , MCS51 系列單片機使用接口技術(shù) [M] 北京航空航天大學(xué)出版社 1993 年 [10] 劉瑞新、趙全利 , 單片機原理及應(yīng)用教程 [M],北京:機械工業(yè)出版社 2022 年 [11] 李軍 , 51 系列單 片機高級實例開發(fā)指南 [M],北京:北京航空航天大學(xué)出版社 2022 年 [12] Steven System[M].北京:電子工業(yè)出版社, 2022年 [13] V. Yu. Teplov,A. V. Anisimov. Thermostatting System Using a SingleChip Microputer and Thermoelectric Modules Based on the Peltier Effect[J] ,2022年 [14] The Intel Microprocessors Architecture,Programming,and Interfacing .高等教育出版社 (影印版 ),2022 年 [15] Keil Software .Macro Assembler and Utilities User’ S Guide .Keil Software,2022 年 [16] Keil Complier User’ S Guide .Keil Software. 2022 年 6 附錄 為你提供優(yōu)秀的畢業(yè)論文參考資料,請您刪除以下內(nèi)容, O(∩_∩)O 謝謝?。?! 2 Many people have the same mixed feelings when planning a trip during Golden Week. With heaps of time, the sevenday Chinese 為你提供優(yōu)秀的畢業(yè)論文設(shè)計參考資料,請您刪除一下內(nèi)容, O(∩_∩)O 謝謝?。?! National Day holiday could be the best occasion to enjoy a destination. However, it can also be the easiest way to ruin how you feel about a place and you may bee more fatigued after the holiday, due to battling the large crowds. During peak season, a dream about a place can turn to nightmare without careful planning, especially if you travel with children and older people. As most Chinese people will take the holiday to visit domestic tourist destinations, crowds and busy traffic are inevitable at most places. Also to be expected are increasing transport and acmodation prices, with the possibility that there will be no rooms available. It is also mon that you39。s largest virgin forest, and known for its spring and ecological environment, Arxan is marveled at by many tourists as the purest land on earth. You cannot miss out the Autumn of Arxan. It is definitely the best with brightlycolored scenery full of emotions. Autumn in the northern part of the country es earlier than the South. A September rain followed by the footprints of Autumn brings more colors to the once emerald green mountain and blooming grassland. Shutterbugs flock to see for themselves the marvel of splendid colors around the mountains and waters, many of whom have travel a long distance and even camp here only to capture a moment of the nature wonder. The silver birch turns golden, while the larch is still proudly green. You will find yourself drowned in the intoxicating red of the wild fruits as well as the glamour of flowers in full blown. And your heart will be lingering on the woods as it39。s misery, the cow told him to turn its hide into a pair of shoes after it died. The magic shoes whisked Niulang, who carried his two children in baskets strung from a shoulder pole, off on a chase after the empress. The pursuit enraged the empress, who took her hairpin and slashed it across the sky creating the Milky Way which separated husband from wife. But all was not lost as magpies, moved by their love and devotion, formed a bridge across the Milky Way to reunite the family. Even the Jade Emperor was touched, and allowed Niulang and Zhinu to meet once a year on the seventh night of the seventh month. This is how Qixi came to be. The festival can be traced back to the Han Dynasty (206 BCAD 220). Traditionally, people would look up at the sky and find a bright star in the constellation Aquila as well as the star Vega, which are identified as Niulang and Zhinu. The two stars shine on opposite sides of the Milky Way.