微機(jī)原理課程設(shè)計(jì)點(diǎn)陣屏_第1頁
微機(jī)原理課程設(shè)計(jì)點(diǎn)陣屏_第2頁
微機(jī)原理課程設(shè)計(jì)點(diǎn)陣屏_第3頁
微機(jī)原理課程設(shè)計(jì)點(diǎn)陣屏_第4頁
微機(jī)原理課程設(shè)計(jì)點(diǎn)陣屏_第5頁
已閱讀5頁,還剩13頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、 南通大學(xué)電氣工程學(xué)院 微機(jī)原理課程設(shè)計(jì) 報(bào)告書課 題 名: 點(diǎn)陣屏顯示屏 班 級(jí):自113 組 長(zhǎng): 孫帥 1112011079 組 員: 衛(wèi)軍會(huì) 1112011078 王錫霖 1112011080王棟偉1112011076指導(dǎo)教師:陳越 目錄1. 設(shè)計(jì)目的22. 設(shè)計(jì)內(nèi)容23. 設(shè)計(jì)要求24. 設(shè)計(jì)原理及流圖35. 硬件電路圖46. 程序代碼47. 程序級(jí)系統(tǒng)硬件調(diào)試情況108. 設(shè)計(jì)總結(jié)與體會(huì)119. 參考文獻(xiàn)11一、 設(shè)計(jì)目的課程設(shè)計(jì)是培養(yǎng)和鍛煉學(xué)生在學(xué)習(xí)完本門課后綜合應(yīng)用所學(xué)理論知識(shí),解決實(shí)際工程設(shè)計(jì)和應(yīng)用問題的能力的重要教學(xué)環(huán)節(jié)。它具有動(dòng)手、動(dòng)腦和理論聯(lián)系實(shí)際的特點(diǎn),是培養(yǎng)在校工科

2、大學(xué)生理論聯(lián)系實(shí)際、敢于動(dòng)手、善于動(dòng)手和獨(dú)立自主解決設(shè)計(jì)實(shí)踐中遇到的各種問題能力的一個(gè)重要教學(xué)環(huán)節(jié)。通過課程設(shè)計(jì),要求學(xué)生熟悉和掌握微機(jī)系統(tǒng)的軟件、硬件設(shè)計(jì)的方法、設(shè)計(jì)步驟,使學(xué)生得到微機(jī)開發(fā)應(yīng)用方面的初步訓(xùn)練。讓學(xué)生獨(dú)立或集體討論設(shè)計(jì)題目的總體設(shè)計(jì)方案、編程、軟件硬件調(diào)試、編寫設(shè)計(jì)報(bào)告等問題,真正做到理論聯(lián)系實(shí)際,提高動(dòng)手能力和分析問題、解決問題的能力,實(shí)現(xiàn)由學(xué)習(xí)知識(shí)到應(yīng)用知識(shí)的初步過渡。通過本次課程設(shè)計(jì)使學(xué)生熟練掌握微機(jī)系統(tǒng)與接口擴(kuò)展電路的設(shè)計(jì)方法,熟練應(yīng)用8086匯編語言編寫應(yīng)用程序和實(shí)際設(shè)計(jì)中的硬軟件調(diào)試方法和步驟,熟悉微機(jī)系統(tǒng)的硬軟件開發(fā)工具的使用方法。通過課程設(shè)計(jì)實(shí)踐,不僅要培養(yǎng)學(xué)

3、生事實(shí)求是和嚴(yán)肅認(rèn)真的工作態(tài)度,培養(yǎng)學(xué)生的實(shí)際動(dòng)手能力,檢驗(yàn)學(xué)生對(duì)本門課學(xué)習(xí)的情況,更要培養(yǎng)學(xué)生在實(shí)際的工程設(shè)計(jì)中查閱資料,撰寫設(shè)計(jì)報(bào)告表達(dá)設(shè)計(jì)思想和結(jié)果的能力。二、 設(shè)計(jì)內(nèi)容利用點(diǎn)陣屏顯示漢字三、 設(shè)計(jì)要求(1) 通過四個(gè)8*8點(diǎn)陣組成16*16點(diǎn)陣屏(2) 一個(gè)16*16點(diǎn)陣顯示多個(gè)漢字(3) 多個(gè)漢字循環(huán)在點(diǎn)陣屏上顯示 四、 設(shè)計(jì)原理LED陣列的顯示方式是按顯示編碼的順序,一列一列地顯示。每一列的顯示時(shí),由于人類的視覺暫留現(xiàn)象,將感覺到一列LED是在同時(shí)顯示的。若顯示的時(shí)間太短,則亮度不夠,若顯示的時(shí)間太長(zhǎng),將會(huì)感覺到閃爍。本文采用低電平逐列掃描,高電平輸出顯示信號(hào)。即輪流給列信號(hào)輸出低

4、電平,在任意時(shí)刻只有一列發(fā)光二極管是處于可以被點(diǎn)亮的狀態(tài) ,其它行都處于熄滅狀態(tài)。為了方便調(diào)試本文把4塊8*8組成的16*16的點(diǎn)陣屏的行信號(hào)輸出管腳連接到兩個(gè)74HC574的輸出端,列信號(hào)掃描輸出管腳連接到另外兩個(gè)&¥HC574的輸出端。程序流程圖:開始初始化將行取低電平將列取高電平行掃描列數(shù)據(jù)取數(shù)據(jù)區(qū)數(shù)據(jù)延時(shí)N是否顯示完漢字Y結(jié)束8*8點(diǎn)陣1) 8X8點(diǎn)陣LED工作原理說明8X8點(diǎn)陣LED結(jié)構(gòu)如下圖所示從圖上中可以看出,8X8點(diǎn)陣共需要64個(gè)發(fā)光二極管組成,且每個(gè)發(fā)光二極管是放置在行線和列線的交*點(diǎn)上,當(dāng)對(duì)應(yīng)的某一列置1電平,某一行置0電平,則相應(yīng)的二極管就亮;因此要實(shí)現(xiàn)一根柱形的

5、亮法,如圖49所示,對(duì)應(yīng)的一列為一根豎柱,或者對(duì)應(yīng)的一行為一根橫柱,因此實(shí)現(xiàn)柱的亮的方法如下所述:一根豎柱:對(duì)應(yīng)的列置1,而行則采用掃描的方法來實(shí)現(xiàn)。一根橫柱:對(duì)應(yīng)的行置0,而列則采用掃描的方法來實(shí)現(xiàn)。五、 硬件電路圖 原理圖: 六、 程序代碼XL EQU 9004H; 行低八XH EQU 9006H; 行高八YL EQU 9000H; 列低八YH EQU 9002H; 列高八DATA SEGMENTFont:DB 004H,000H,0E4H,0FFH,0E4H,0FFH,024H,008HDB 064H,009H,0E4H,009H,0A4H,009H,03FH,07FHDB 03FH,0

6、7FH,0A4H,009H,0E4H,009H,064H,049HDB 024H,0C8H,0E4H,0FFH,0E4H,07FH,004H,000H;南0DB 040H,080H,042H,0C0H,0CEH,07FH,0CCH,07FHDB 000H,0C0H,0E2H,0FFH,0E2H,0FFH,02AH,089HDB 02AH,089H,0FAH,0BFH,0FAH,0BFH,02EH,0A9HDB 026H,0E9H,0E2H,0FFH,0E0H,0BFH,000H,080H;通1DB 020H,080H,020H,080H,020H,0C0H,020H,060HDB 020H,0

7、30H,020H,01CH,020H,00FH,0FFH,003HDB 0FFH,003H,020H,00FH,020H,01CH,020H,030HDB 020H,060H,020H,0C0H,020H,080H,020H,080H;大2DB 040H,004H,070H,004H,031H,004H,097H,004HDB 096H,004H,090H,044H,091H,0C4H,097H,0FEHDB 096H,07EH,090H,007H,098H,005H,09CH,004HDB 017H,004H,053H,004H,070H,004H,030H,004H;學(xué)3DB 000H,0

8、00H,000H,000H,0F8H,01FH,0F8H,01FHDB 088H,008H,088H,008H,088H,008H,0FFH,07FHDB 0FFH,0FFH,088H,088H,088H,088H,088H,088HDB 0F8H,09FH,0F8H,09FH,000H,0F0H,000H,0F0H;電4DB 020H,000H,030H,000H,05CH,000H,04FH,000HDB 057H,000H,054H,000H,054H,000H,054H,000HDB 054H,000H,054H,000H,054H,000H,0D4H,00FHDB 0D4H,03FH

9、,004H,070H,004H,0F0H,000H,0F0H;氣5DB 000H,020H,004H,020H,004H,020H,004H,020HDB 004H,020H,004H,020H,004H,020H,0FCH,03FHDB 0FCH,03FH,004H,020H,004H,020H,004H,020HDB 004H,020H,004H,020H,004H,020H,000H,020H;工6DB 024H,008H,024H,00EH,0A4H,007H,0FEH,0FFHDB 0FFH,0FFH,023H,007H,022H,046H,03EH,049HDB 03EH,049H

10、,022H,049H,022H,07FH,022H,07FHDB 022H,049H,03EH,049H,03EH,049H,000H,041H;程7DB 040H,004H,070H,004H,031H,004H,097H,004HDB 096H,004H,090H,044H,091H,0C4H,097H,0FEHDB 096H,07EH,090H,007H,098H,005H,09CH,004HDB 017H,004H,053H,004H,070H,004H,030H,004H;學(xué)8DB 000H,000H,0FEH,0FFH,0FEH,0FFH,07AH,00CHDB 0DEH,00FH

11、,096H,087H,01CH,0C1H,02CH,071HDB 024H,03FH,025H,00FH,027H,001H,026H,03FHDB 024H,07FH,034H,041H,01CH,071H,00CH,071H;院9DB 000H,000H,000H,000H,000H,000H,0F8H,0FFHDB 0F8H,0FFH,08CH,044H,08EH,044H,08BH,044HDB 089H,044H,088H,044H,088H,044H,0F8H,0FFHDB 0F8H,0FFH,000H,000H,000H,000H,000H,000H;自10DB 040H,010

12、H,044H,03CH,0C4H,03FH,0C4H,013HDB 044H,014H,044H,0BCH,044H,0F8H,050H,070HDB 010H,03EH,0FFH,00FH,0FFH,041H,010H,0C0HDB 010H,0C0H,0F0H,07FH,0F0H,03FH,000H,000H;動(dòng)11DB 000H,001H,080H,001H,0E0H,000H,0F8H,0FFHDB 0FFH,0FFH,007H,004H,000H,006H,000H,003HDB 0FFH,03FH,0FFH,07FH,060H,040H,030H,040HDB 018H,040H,

13、00CH,040H,004H,078H,000H,078H;化12DB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000H;一13DB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000HDB 080H,000

14、H,080H,000H,080H,000H,080H,000HDB 080H,000H,080H,000H,080H,000H,080H,000H;一14DB 000H,020H,004H,020H,084H,020H,084H,020HDB 084H,020H,084H,020H,084H,020H,084H,020HDB 084H,020H,084H,020H,084H,020H,084H,020HDB 084H,020H,084H,020H,004H,020H,000H,020H;三15DB 084H,010H,084H,030H,0FCH,03FH,0FCH,01FHDB 084H,0

15、88H,084H,0CAH,0F8H,063H,0F8H,039HDB 0FFH,01FH,0FFH,007H,084H,020H,084H,020HDB 0FCH,03FH,0FCH,03FH,084H,020H,084H,020H;班16DB 000H,002H,002H,002H,002H,043H,002H,0C1HDB 0F2H,0FFH,0FAH,07FH,0CEH,004H,046H,007HDB 0E0H,043H,0E0H,0C0H,0FFH,0FFH,0FFH,07FHDB 020H,000H,0E0H,000H,0C0H,007H,000H,007H;孫17DB 000H

16、,000H,0FCH,087H,0FCH,0C7H,000H,070HDB 0FFH,03FH,0FFH,00FH,000H,000H,0F0H,01FHDB 0F0H,01FH,010H,000H,0FFH,0FFH,0FFH,0FFHDB 010H,018H,0F0H,01FH,0F0H,00FH,000H,000H;帥18DB 000H,040H,002H,040H,082H,040H,082H,040HDB 082H,040H,082H,040H,082H,040H,0FEH,07FHDB 0FEH,07FH,082H,040H,082H,040H,082H,040HDB 082H,0

17、40H,082H,040H,002H,040H,000H,040H;王19DB 020H,001H,030H,001H,03CH,001H,0EFH,07FHDB 0E7H,07FH,024H,031H,024H,035H,0FEH,0B6HDB 0FEH,0DBH,092H,06FH,092H,036H,092H,05EHDB 0FEH,0CEH,0FEH,0FEH,000H,07EH,000H,000H;錫20DB 010H,020H,01CH,022H,00DH,032H,055H,01AHDB 0D5H,0FFH,0D5H,0FFH,055H,01AH,07FH,032HDB 07FH

18、,032H,055H,01AH,0D5H,0FFH,0D5H,0FFHDB 055H,00EH,015H,01AH,01CH,032H,00CH,020H;霖21DB 000H,040H,002H,040H,002H,040H,002H,040HDB 002H,040H,002H,040H,0FEH,07FH,0FEH,07FHDB 002H,040H,002H,040H,002H,041H,002H,043HDB 0FEH,043H,0FEH,041H,000H,040H,000H,040H;衛(wèi)22DB 008H,010H,00EH,010H,026H,012H,022H,013HDB 0A

19、2H,013H,0E2H,012H,07AH,012H,0BAH,0FFHDB 0A2H,0FFH,022H,012H,022H,012H,022H,012HDB 022H,012H,02AH,012H,00EH,010H,006H,010H;軍23DB 040H,000H,040H,002H,060H,042H,020H,0E2HDB 070H,0F2H,058H,05AH,04CH,04EH,047H,046HDB 047H,042H,04CH,042H,058H,052H,070H,072HDB 020H,0E2H,060H,0C2H,040H,002H,040H,000H;會(huì)24DB

20、000H,040H,002H,040H,082H,040H,082H,040HDB 082H,040H,082H,040H,082H,040H,0FEH,07FHDB 0FEH,07FH,082H,040H,082H,040H,082H,040HDB 082H,040H,082H,040H,002H,040H,000H,040H;王25DB 010H,004H,010H,007H,0D0H,003H,0FFH,0FFHDB 0FFH,0FFH,098H,021H,088H,031H,0E8H,01DHDB 078H,04DH,01FH,0C1H,0EFH,0FFH,0E8H,07FHDB 00

21、8H,005H,008H,00DH,008H,039H,008H,030H;棟26DB 000H,001H,080H,001H,0E0H,000H,0F8H,0FFHDB 0FFH,0FFH,00FH,002H,048H,002H,048H,002HDB 048H,002H,0FFH,0FFH,0FFH,0FFH,048H,002HDB 048H,012H,048H,032H,048H,03EH,008H,01EH;偉27DB 004H,010H,024H,018H,064H,00EH,0C4H,007HDB 0E4H,083H,0FCH,0CEH,0DCH,06CH,070H,038HDB

22、03FH,01EH,0CFH,007H,0C8H,007H,008H,01EHDB 028H,038H,038H,060H,018H,0C0H,000H,080H;歡28DB 040H,000H,040H,040H,042H,060H,0CEH,03FHDB 0CCH,03FH,000H,060H,0FCH,04FH,0FCH,04FHDB 006H,046H,002H,042H,0FCH,07FH,0FCH,07FHDB 004H,046H,0FCH,047H,0FCH,043H,000H,040H;迎29DB 020H,040H,030H,070H,018H,030H,0FCH,077HD

23、B 0FFH,0F7H,033H,081H,098H,089H,0EFH,0BAHDB 067H,0B6H,0F4H,087H,0F4H,083H,024H,0E0HDB 074H,0E0H,0DCH,011H,08CH,071H,000H,060H;您30RUN DW 1 ;行掃描charcount DW 1;漢字個(gè)數(shù)delaycount DW 1;延時(shí)時(shí)間ROROL DW 1;循環(huán)DATA ENDSSTACK SEGMENTSTA DB 100 DUP (?)TOP EQU LENGTH STASTACK ENDSCODE SEGMENTASSUME CS:CODE,DS:DATA,SS:

24、STACKSTART: MOV AX, DATAMOV DS, AXMOV AX, STACKMOV SS, AXMOV AX, TOPMOV SP, AXMOV SI, oFFset Fontmain:MOV AL, 0MOV DX, XLOUT DX, ALMOV DX, XHOUT DX, AL;將行取低電平MOV AL, 0FFhMOV DX, YLOUT DX, ALMOV DX, YHOUT DX, AL;將列取高電平next: MOV charcount, 0nextchar:MOV delaycount, 500LOOP1: MOV RUN, 1MOV ROROL, 16MOV

25、 BX, charcountMOV AX, 32mul BXMOV BX, AXnextrow: MOV AL, 0FFHMOV DX, XLOUT DX, ALMOV DX, XHOUT DX, AL;將行取高電平MOV AX, SI+BXMOV DX, YLOUT DX, ALMOV DX, YHMOV AL, ahOUT DX, AL;將列取數(shù)據(jù)區(qū)的數(shù)據(jù)INC BXINC BXMOV AX, RUNMOV DX, XLNOT ALOUT DX, ALMOV DX, XHMOV AL, ahNOT ALOUT DX, ALMOV AX, RUNROL AX, 1MOV RUN, AX;將行最低位取高電平NOPDEC ROROLJNZ nextrow ;如果小于漢字?jǐn)?shù)的話繼續(xù)掃描下一個(gè)字DEC delaycount;延時(shí)JNZ LOOP1INC charcount ;漢字?jǐn)?shù)加一MOV AX, charco

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論