【正文】
。輸入輸出顯示數字符號: LT(——) RBI(——) A3 A2 A1 A0 BI(—)/RBO(———) a(—) b(—) c(—) d(—) e(—) f(—) g(—) 1 1 0 0 0 0 1 0 0 0 0 0 0 1 0 1 X 0 0 0 1 1 1 0 0 1 1 1 1 1 1 X 0 0 1 0 1 0 0 1 0 0 1 0 2 1 X 0 0 1 1 1 0 0 0 0 1 1 0 3 1 X 0 1 0 0 1 1 0 0 1 1 0 0 4 1 X 0 1 0 1 1 0 1 0 0 1 0 0 5 1 X 0 1 1 0 1 1 1 0 0 0 0 0 6 1 X 0 1 1 1 1 0 0 0 1 1 1 1 7 1 X 1 0 0 0 1 0 0 0 0 0 0 0 8 1 X 1 0 0 1 1 0 0 0 1 1 0 0 9 X X X X X X 0 1 1 1 1 1 1 1 熄滅 1 0 0 0 0 0 0 1 1 1 1 1 1 1 熄滅 0 X X X X X 1 0 0 0 0 0 0 0 8 ⑴LT(——):試燈輸入,是為了檢查數碼管各段是否能正常發(fā)光而設置的。 ⑵BI(—):滅燈輸入,是為控制多位數碼顯示的滅燈所設置的。 不論LT(——)和輸入A3 ,A2 ,A1,A0為何種狀態(tài),譯碼器輸出均為高電平,使共陽極7段數碼管熄滅。 設計方法軟件部分設計是畢業(yè)設計中最集中難點所在,所謂軟件設計就是把硬件具體功能需求變換成軟件的具體設計方案(即模塊結構)的過程。這樣的設計方法,使得系統(tǒng)的整體功能和各部分的具體功能趨于明朗化。另外,在整個設計過程中,軟件設計必須與硬件設計緊密地結合在一起。一個完整的系統(tǒng)在開始著手設計的時候往往要考慮很多的環(huán)節(jié),假如我們直接把所有硬件焊接起來,倘若系統(tǒng)不能正常工作,那么檢查起來將非常麻煩,所以,該系統(tǒng)在進行調試的時候,采用模塊化,分步驟進行的方式,把一塊一塊的功能實現了,再組裝起來進行聯合調試,可以取得事半功倍的效果。因為那樣出錯了,也不知道是哪部分出錯了,找錯誤是一個難題,還得一個一個模塊的找。它的實質是將復雜的問題簡單化,把一個大的整體分解細化為若干獨立的,比較容易解決的問題,從而使問題得到更高更快的解決,在最短的時間內解決更復雜的難題,從而提高時間效率。對于此次設計的程序來說也就是先把每個模塊的程序現編出來,然后對每一個程序進行驗證和調試,經確認無誤后,再把各個模塊進行合并。但在前面的分析中,并沒有包含顯示小數點的內容。⑵特征位式:每位二進制數控制一個小數點的亮暗情況,一個字節(jié)同時控制8個。如:5表示第5位小數點亮,其它暗。當對應位為1時,小數點亮;當對應位為0時,小數點暗。原理說明:當顯示第一位數據時,判斷dispdot的D7是否為1,如果為1點亮第一位小數點,為0熄滅第一位小數點。開始 動態(tài)數碼管初始化顯示緩沖區(qū)首地址傳送位碼傳送段碼顯示計數返回圖42數碼管流程圖第5章 結論與展望 結論畢業(yè)設計期間,我所設計的是小區(qū)停車場車位自動顯示系統(tǒng),經過多次調試基本上可以滿足設計要求,這個畢業(yè)設計是對小區(qū)停車場車位自動顯示系統(tǒng)的簡單模擬,可以實現車輛的檢測、管理等功能。通過對小區(qū)停車場車位自動顯示系統(tǒng)設計,我了解到了更多的相關知識。還有就是在書面上見到的,也就是一點理論知識,沒有和實踐相結合的,例如52系列單片機,這次可算是理論和實踐相結合了。從這次的畢業(yè)設計,讓我進一步學習了以前的東西,不理解的也理解了,理解的現在更加深刻了。俗話說?。呵f不能眼高手低。一看就懂,操作的時候卻無從下手。常言道:坐而言不如立而行。從這次的畢業(yè)設計當中,我真真正正的意識到,在以后的學習當中,要理論聯系實際,把我們學習到的理論知識應用到實踐當中。這次的畢業(yè)設計讓我受益匪淺。不僅了解了單片機的硬件結構和軟件編程方法,還對單片機的工作方式有了很大的認識。小區(qū)停車場車位自動顯示系統(tǒng)的展示步驟如下:⑴連接電源,打開開關,電源燈、二極管、紅外線對管等一切正常。(如果數碼管的顯示內容顯示不完全,請按刷新鍵)⑶用手指輕輕的穩(wěn)定地擋住一個紅外線對管,與此同時報警器會報警,與紅外線對管相對應的單個數碼管會顯示B車位,而顯示車輛數量的數碼管也會自動加一。 圖5 1 打開開關 圖5 2 擋住一個停車位 圖5 3 擋住兩個停車位 圖5 4 擋住三個停車位 展望這次單片機最小系統(tǒng)及外圍電路的設計,我查閱了大量的資料,每設計一個模塊,我都弄懂了其工作原理,雖然我之前也用過Altium Designer 畫過原理圖和PCB板,但是對這個軟件的使用還不是很熟練,在布線的時候遇到了很多困難,剛開始畫完原理圖經過編譯之后出現了很多錯誤和警告,在生成PCB的時候封裝和原理圖又對不上號,布線的時候很多線走不過來,通過不斷的調試,最后終于順利完成了設計。參考文獻[1] 譚浩強. 新世紀計算機教育叢書。.電子工業(yè)出版社,2009。[4] ,清華大學出版社,2010。[6] 肖景和,、熱釋與超聲波遙控電路,人民郵電出版社,2003。[8] 周潤景,張麗娜. Protel99SE原理圖與印制電路板設計[M].電子工業(yè)出版社,2008。[10] 電路設計與制版:Protel99se入門與提高,趙建玲,電子工業(yè)出版社,2011。[12] 單片機c語言程序100實訓,彭偉,電子工業(yè)出版社,2009。[14] ANALOG technology of AT89C51[EB/OL].White Paper,。首先,我要衷心感謝我的導師孫秀婷老師,感謝她給予我學習和生活上的關心及幫助;在我畢業(yè)設計期間對我的督促與指導。同時,導師求實的治學態(tài)度,廣博的學識也給我終生的啟迪,導師的師者風范和科研思想將成為我一生中享不盡的財富,借此向孫老師致以深深的謝意。同時,我要感謝寢室的兄弟們,每到遇到問題時,我們總是齊心協力、共同探討,我會記住那屬于我們的美好時光。 附 錄附錄A 外文資料Intelligent parking lotIntelligent parking management system uses advanced technology and highly automated mechanical and electrical equipment, mechanical, and electronic putercontrolled equipment, and intelligent IC card technology bine management can be achieved through the puter management of vehicle access, automatic data storage function, the realization of de machine operation and provide efficient management of the system. Smart new car park will be living concepts and architecture, information technology, puter electronics technology, such as the perfect bination of modern hightech to provide a simple, easytouse, advanced system of human nature. It relies on hightech, peopleoriented, graphical manmachine interface operation, providing a more safe, fortable, convenient, fast and open intelligent, informationbased living space, promoting the healthy development of human environment. 1 parking lot at home and abroad mainly in the following several types mechanical parking Mechanical parking car park is mainly a kind of mechanical means parking the car park pletely by mechanical parking equipment such as tractor driving machine, driven wheels, car panels, sliding device, control cabinet, called the operation site, Rotary lift devices, handling devices, etc.. Lifting and transferring is divided into categories, vertical circulation category, the level of cycletype, multicycletype, flat type of mobile, vertical categories, such as the type of simple movements. Because of its unique and diverse way of parking, has a strong application. It covers an area of the main advantages of small, diverse selection can be bined with site specific characteristics of the design, but also with other means to implement a bination of a high degree of automation, easy operation, management and maintenance is also easier with quantitative parking characteristics. Plane parking system Intelligent parking system parking systems for their plane to take the main inductive way IC card readers, so the car park is also called inductive system. At present, China is still in the car park car park is mainly flat, generally built in the basement of buildings, there are a number of public areas such as the Plaza, the road side as the car park, followed by the hotel, enterprises, factories, and other units of their own planning and design of the car park. Smart parking Intelligent parking system is also called the vertical lift or elevatortype parking system parking systems. It is a set of equipment, operation, security, monitoring, maintenance, management of the intelligent system as a whole, the touchscreen humanmachine interface, operation and use is also very convenient, with intelligent management and charges of the system. Its high degree of intelligence testing and perfecting the service system can be impaired also run zero. It is characterized by the largest original time control functions, the realization of subperiods, stratified parking control, effectively improve the utilization of parking