




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、V西南科技大學(xué)城市學(xué)院課程設(shè)計(jì)實(shí)訓(xùn)論文課題:基于單片機(jī)的點(diǎn)陣滾動(dòng)顯示院系:工程技術(shù)學(xué)院學(xué)號:201541485學(xué)生姓名:黃如意,專業(yè)班級:建智1501VI西南科技大學(xué)城市學(xué)院課程設(shè)計(jì)LED點(diǎn)陣屏設(shè)計(jì)摘要:單片機(jī)是計(jì)算機(jī)技術(shù),大規(guī)模集成電路技術(shù)和控制技術(shù)的綜合產(chǎn)物,經(jīng)過30多年的發(fā)展歷程,單片機(jī)應(yīng)用已十分廣泛和深入,所以可以毫不夸張的說,任何設(shè)備和產(chǎn)品的自動(dòng)化,數(shù)字化和智能化都離不開單片機(jī)。如果說微型計(jì)算機(jī)的出現(xiàn)使現(xiàn)代科學(xué)研究得到了質(zhì)的飛躍,那么可以毫不夸張他說,單片機(jī)技術(shù)的出現(xiàn)則是給現(xiàn)代工業(yè)測控領(lǐng)域帶來了一次新的技術(shù)革命。 由于單片機(jī)技術(shù)在各個(gè)領(lǐng)域正得到越來越廣泛的應(yīng)用,世界上許多集成電路生產(chǎn)
2、廠家相繼推出了各種類型的單片機(jī),在單片機(jī)家族的眾多成員中,MCS-51系列單片機(jī)以其優(yōu)越的性能、成熟的技術(shù)及高可靠性和高性能價(jià)格比,迅速占領(lǐng)了工業(yè)測控和自動(dòng)化工程應(yīng)用的主要市場,成為國內(nèi)單片機(jī)應(yīng)用領(lǐng)域中的主流。半導(dǎo)體發(fā)光二極管(LED),是指在半導(dǎo)體PN結(jié)通以正向電流時(shí)能發(fā)光的半導(dǎo)體顯示器件。它具有壽命長、功耗低、體積小、多色顯示、工作溫度穩(wěn)定性好,響應(yīng)時(shí)間快等優(yōu)點(diǎn),已廣泛用于各種儀器儀表、計(jì)算機(jī)、家用電器等領(lǐng)域,也可用于光纖通信、信息處理和自動(dòng)控制。 隨著技術(shù)的發(fā)展,LED顯示得到了日益廣泛的應(yīng)用,將單色或彩色發(fā)光二極管排列成矩陣板即構(gòu)成LED顯示屏,利用單片機(jī)或微機(jī)來進(jìn)行控制,使顯示內(nèi)容變
3、得豐富多彩。LED點(diǎn)陣顯示系統(tǒng)中各模塊的顯示方式有靜態(tài)和動(dòng)態(tài)顯示兩種。靜態(tài)顯示原理簡單、控制方便,但硬件接線復(fù)雜,在實(shí)際應(yīng)用中一般采用動(dòng)態(tài)顯示方式,動(dòng)態(tài)顯示采用掃描的方式工作,由峰值較大的窄脈沖驅(qū)動(dòng),從上到下逐次不斷地對顯示屏的各行進(jìn)行選通,同時(shí)又向各列送出表示圖形或文字信息的脈沖信號,反復(fù)循環(huán)以上操作,就可顯示各種圖形或文字信息。本文將介紹一種采用單片機(jī)AT89C52進(jìn)行控制的8*8LED點(diǎn)陣顯示。該點(diǎn)陣可實(shí)現(xiàn)動(dòng)態(tài)顯示數(shù)字09及字符AZ以及簡單字體和圖形的功能。 關(guān)鍵詞:單片機(jī),點(diǎn)陣屏 VIII西南科技大學(xué)城市學(xué)院課程設(shè)計(jì)Building intelligence practice pape
4、rsAbstract:Single chip computer technology, integrated product of large scale integrated circuit technology and control technology, after 30 years of development, SCM application has been very extensive and in-depth, so it is no exaggeration to say that any automation equipment and products, digital
5、 and intelligent all cannot do without scm. If the emergence of micro computers makes modern scientific research get a qualitative leap, it can be no exaggeration, he said, the emergence of single-chip technology is to the modern industrial measurement and control field has brought a new technologic
6、al revolution. Due to the application of SCM technology in various fields is becoming more and more widely, many of the worlds integrated circuit manufacturers have introduced various types of SCM, SCM in many members of the family, the MCS-51 series single chip with its superior performance, mature
7、 technology and high reliability and high performance price ratio, and quickly occupied the main market industry control and automation engineering application, become the mainstream of the domestic application in the field of. Semiconductor light emitting diode (LED) is a semiconductor display devi
8、ce that can emit light when the semiconductor pn junction is connected with a positive current. It has many advantages, such as long life, low power consumption, small size, multicolor display, good working temperature stability, fast response time, etc. it has been widely used in various instrument
9、s, computers, household appliances and other fields, and can also be used in optical fiber communication, information processing and automatic control. With the development of technology, LED display has been increasingly widely used, the monochrome or color light-emitting diode array as a matrix bo
10、ard that constitute the LED display, the use of single chip microcomputer or microcomputer to control, so that the display content becomes rich and colorful. The display mode of each module in LED dot matrix display system has two kinds of static and dynamic display. The static display principle is
11、simple, easy to control, but the hardware wiring complex, in the practical application of commonly used in dynamic display, dynamic display by scanning mode, the peak of narrow pulse large drive, to the next successive constantly on the screen line from strobe and pulse signal, said the graphics or
12、text information to each column is sent, repeating the above operation, you can display a variety of graphics or text information. This paper introduces a 8*8LED dot matrix display controlled by single-chip microcomputer AT89C52. The dot matrix can realize the dynamic display of digital 09 and chara
13、cter AZ, and the functions of simple fonts and graphics.Key words:Microcontroller,Matrix ScreenV西南科技大學(xué)城市學(xué)院課程設(shè)計(jì)目錄第一章緒論.1第二章硬件設(shè)計(jì).2第三章軟件設(shè)計(jì).4第四章插圖清單和表格清單.5第五章單片機(jī)程序.7第六章總結(jié).9第七章致謝.9西南科技大學(xué)城市學(xué)院課程設(shè)計(jì)第一章緒論一、課程設(shè)計(jì)目的利用單片機(jī)控制一塊最簡單的88LED點(diǎn)陣式電子廣告牌,將一些特定的文字或圖形以特定的方式顯示出來.二、課程設(shè)計(jì)要求設(shè)計(jì)一個(gè)室內(nèi)用點(diǎn)陣LED漢字顯示屏,要求在目測條件下LED顯示屏各點(diǎn)亮度均勻,充足
14、,顯示文字應(yīng)穩(wěn)定,清晰無串?dāng)_。文字顯示有靜止,移入移出等顯示方式。依據(jù)單片機(jī)技術(shù)原理,通過硬件電路設(shè)計(jì)以及軟件編譯和開發(fā)板進(jìn)行設(shè)計(jì)。顯示的具體內(nèi)容等,可自行設(shè)計(jì)。9西南科技大學(xué)城市學(xué)院課程設(shè)計(jì)第二章 硬件設(shè)計(jì)1:把“單片機(jī)系統(tǒng)”區(qū)域中的P0.0P0.7端口分別通過八個(gè)電阻連接到“點(diǎn)陣模塊”區(qū)域中的“L1L8”行控制端口上見下圖;2:把“單片機(jī)系統(tǒng)”區(qū)域中的P2.0P2.7端口通過與寄存芯片74HC573串聯(lián),接到陣模塊”區(qū)域中的“S1S8”列控制端口上;見下圖:3:復(fù)位電路設(shè)計(jì): 開機(jī)復(fù)位與按鍵復(fù)位連在一起,使用一個(gè)電極電容與按鍵并聯(lián)再串聯(lián)電阻,如下圖:說明:開機(jī)瞬間10uf電容C5兩端產(chǎn)生高
15、電平,RST為單片機(jī)復(fù)位端,在運(yùn)行任意時(shí)刻按下按鍵S 電路復(fù)位初始化。4:時(shí)鐘電路: X1為12mHz晶振,C1、C2為30pf電容,見下圖:說明:所有單片都必須接有時(shí)鐘電路才能正常運(yùn)行第三章 軟件分析1:主程序流程系統(tǒng)主程序開始以后首先是對系統(tǒng)環(huán)境初始化,包括設(shè)置串口、定時(shí)器、中斷和端口。2、顯示驅(qū)動(dòng)程序查詢當(dāng)前點(diǎn)亮的行號,從顯示緩存區(qū)內(nèi)讀取下一行的顯示數(shù)據(jù),并通過串口發(fā)送給移位寄存器。為消除在切換行顯示數(shù)據(jù)的時(shí)候產(chǎn)生拖尾現(xiàn)象,在中斷程序中,驅(qū)動(dòng)程序先要關(guān)閉顯示屏,等顯示數(shù)據(jù)打入輸出鎖存器并鎖存后,然后再輸出新的行選通信號,重新打開顯示。第四章 插圖清單和表格清單1、88LED點(diǎn)陣等效電路圖
16、2、仿真電路圖3、元器件清單元器件名稱型號數(shù)量萬能版12CM*18CM1晶振11.0592HZ2瓷片電容30pF2點(diǎn)解電容25V22UF1LED點(diǎn)陣8*8 共陽1單片機(jī)AT89C521緊鎖座40P1USB插頭-1彈性按鍵-1電阻1K8排阻A102J1漆包線5米1第五章 單片機(jī)程序# include # define uint unsigned int # define uchar unsigned char char code led= 0x00,0x7E,0x08,0x10,0x20,0x5E,0x92,0x1E,0x00,/石0x00,0x10,0xFE,0x92,0x92,0xFE,0x
17、10,0x10,0x10,0x00,/中0x00,0x10,0xfe,0x92,0xfe,0x92,0xfe,0x11,0x1f,0x00,/電 0x00,0x08,0x08,0x08,0x08,0x48,0x48,0x30,0x00,/J0x00,0x00,0x7E,0x04,0x08,0x10,0x20,0x7E,0x00,/Z0x00,0x18,0x38,0x38,0x18,0x18,0x18,0x3c,0x3c,0x00,/1 0x00,0x00,0x7C,0x40,0x40,0x7C,0x04,0x04,0x7C,0x00,/5 0x00,0x18,0x24,0x24,0x24,0x
18、24,0x24,0x18,0x00,0x00,/0 0x00,0x18,0x38,0x38,0x18,0x18,0x18,0x3c,0x3c,0x00,/1 0x00,0x18,0x38,0x38,0x18,0x18,0x18,0x3c,0x3c,0x00,/1 0x00,0x38,0x6c,0x6c,0x0c,0x18,0x64,0x7c,0x7c,0x00,/2 0x00,0x3c,0x6e,0x6c,0x18,0x1c,0x6e,0x6c,0x38,0x00,/3 0x00,0x00,0x00,0x22,0x55,0x00,0x14,0x08,0x00,0x00,/笑 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; void delay(uint a) uint x,y; for(x=0;xa;x+) for(y=0;y0;j-) w=0x01; for(i=0;i10;i+) P0=w; P2=ledk+i; delay(5); w=1; k+; if(k=120) k=0; / P0=0x00; / delay(10000); 程序中可按照顯示需要更改顯示內(nèi)容。第六章 總結(jié)在完成單片機(jī)課程設(shè)計(jì)后,我們發(fā)現(xiàn)我們還有許多不足,所學(xué)到的知識還遠(yuǎn)遠(yuǎn)不夠,以至于還有一些功能不能被動(dòng)完成。但通過學(xué)習(xí)多次實(shí)
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 旅游類自媒體賬號定制化運(yùn)營及推廣補(bǔ)償協(xié)議
- 裝修安裝免責(zé)協(xié)議書
- 道路損壞補(bǔ)償協(xié)議書
- 車輛洗車承包協(xié)議書
- 貸款展期還款協(xié)議書
- 車禍出院賠償協(xié)議書
- 車輛協(xié)助解壓協(xié)議書
- 車輛損傷賠付協(xié)議書
- 餐飲物業(yè)轉(zhuǎn)讓協(xié)議書
- 人才引進(jìn)安家費(fèi)協(xié)議書
- 2024審計(jì)常用法規(guī)定性表述及適用
- 作文寫作(解析版)-2025年上海中考語文專項(xiàng)復(fù)習(xí)
- 2025-2030年中國電力勘察設(shè)計(jì)行業(yè)現(xiàn)狀分析規(guī)劃研究報(bào)告新版
- 2025年中國廣東省內(nèi)裝配式建筑行業(yè)市場發(fā)展監(jiān)測及投資戰(zhàn)略咨詢報(bào)告
- 2025福建省晉江水務(wù)集團(tuán)限公司招聘17人高頻重點(diǎn)提升(共500題)附帶答案詳解
- 亞文化認(rèn)同與身份建構(gòu)-洞察分析
- 深度學(xué)習(xí)完整版本
- AI培訓(xùn)課件教學(xué)課件
- 【培訓(xùn)課件】管理溝通
- 2024-2030年中亞五國水泥行業(yè)發(fā)展規(guī)模及需求前景預(yù)測報(bào)告
- DB31-T 1385-2022 科技成果分類評價(jià)和價(jià)值潛力評價(jià)規(guī)范
評論
0/150
提交評論