基于51單片機的led點陣顯示屏系統(tǒng)的設(shè)計與實現(xiàn).doc
約50頁DOC格式手機打開展開
基于51單片機的led點陣顯示屏系統(tǒng)的設(shè)計與實現(xiàn),50頁字數(shù) 19000多字摘要:本文介紹了一款以單片機at89s51為控制器的led點陣顯示屏系統(tǒng)的設(shè)計。該系統(tǒng)可實現(xiàn)中英文字符的顯示和動態(tài)特效顯示。并且可以通過級連的方式來擴大顯示屏幕的尺寸以達到增加顯示內(nèi)容的目的。系統(tǒng)采用pc機作為上位機,上位機向單片機發(fā)送控制命令和上位機所存儲的顯示代碼,at89s51單片機接收...


內(nèi)容介紹
此文檔由會員 研究生 發(fā)布
50頁
字數(shù) 19000多字
摘要:本文介紹了一款以單片機AT89S51為控制器的LED點陣顯示屏系統(tǒng)的設(shè)計。該系統(tǒng)可實現(xiàn)中英文字符的顯示和動態(tài)特效顯示。并且可以通過級連的方式來擴大顯示屏幕的尺寸以達到增加顯示內(nèi)容的目的。系統(tǒng)采用PC機作為上位機,上位機向單片機發(fā)送控制命令和上位機所存儲的顯示代碼,AT89S51單片機接收并處理PC機的控制命令以及顯示代碼,由顯示驅(qū)動模塊驅(qū)動一個16×16分辨率的LED點陣顯示屏的掃描顯示。PC機與單片機之間的通信采用RS—232C通信標準來實現(xiàn)。所選用的AT89S51單片機具有價格低廉程序?qū)懭敕奖愕奶攸c使得整個系統(tǒng)方便維護和檢修。除此之外,該系統(tǒng)只占用了單片機少量的I /O口和內(nèi)存,為系統(tǒng)留下了功能擴展的空間。
關(guān)鍵字:AT89S51;LED點陣顯示;串行通信
Desigen and Realization of the Lattice Screen of LED Based on MCS-51
Abstract: This paper introduces a design of the LED lattice display system base on MCU AT89S51. The system can display in both Chinese and English characters of the show and from top to bottom and move around the magic show. And can be cascaded to expand the screen size to achieve increased content purposes. The PC sends control commands and displays code to microcontroller, AT89S51 receives control commands from PC and shows the code, Driver module drives a 16×16-resolution LED lattice LED’s panel display scan showed. Communication between PC and the microcontroller using RS-232C communications standards. the characteristics that AT89S51 microcontroller is cheap and could be coded conveniently makes the whole system Convenient to Maintenance and Repair. In addition, the system will take up only a small amount of the MCU I/O and memory,so that the system has functional space for expansion.
Key words: AT89S51, lattice LED’s panel display, serial communication
目 錄
第1章 緒 論 1
1.1 課題背景 1
1.1.1 選題背景 1
1.1.2 研究現(xiàn)狀及發(fā)展趨勢 1
1.2 論文主要內(nèi)容 3
第2章 方案論證與選擇 4
2.1 系統(tǒng)硬件方案 4
2.1.1 顯示屏主控制器 4
2.1.2 通信系統(tǒng) 6
2.1.3 LED點陣顯示屏 6
2.1.4 硬件設(shè)計方案 7
2.2 系統(tǒng)軟件方案 8
2.2.1 單片機編程語言 8
2.2.2 系統(tǒng)軟件編譯器介紹 9
2.2.3 上位機控制傳輸軟件 9
第3章 系統(tǒng)硬件設(shè)計 11
3.1 硬件整體設(shè)計概述及功能分析 11
3.2 控制單元設(shè)計 12
3.2.1 AT89S51簡介 12
3.2.2 控制系統(tǒng)設(shè)計 13
3.3 譯碼電路設(shè)計 15
3.3.1 串并轉(zhuǎn)換器74LS164 15
3.3.2 鎖存器74L373 16
3.4 驅(qū)動電路設(shè)計 17
3.4.1 行驅(qū)動電路設(shè)計 17
3.4.2 列驅(qū)動電路設(shè)計 18
3.5 通信系統(tǒng)硬件設(shè)計 18
3.6 電源設(shè)計 19
3.7 級連大屏幕LED顯示屏 20
第4章 系統(tǒng)軟件設(shè)計 22
4.1 程序設(shè)計 22
4.2 顯示程序的設(shè)計 23
4.2.1 LED顯示屏的顯示方式 23
4.2.2 點陣數(shù)據(jù)表達方式 24
4.2.3 顯示程序的設(shè)計 25
4.3 通信程序的設(shè)計 27
第5章 系統(tǒng)調(diào)試 29
5.1 系統(tǒng)硬件部分調(diào)試方法 29
5.1.1 短路與虛焊檢測 30
5.1.2 上電測試 30
5.1.3 串口調(diào)試 30
5.2 系統(tǒng)軟件調(diào)試方法 31
5.3 系統(tǒng)聯(lián)合調(diào)試及結(jié)果 32
5.4 調(diào)試結(jié)果分析 32
結(jié)論 34
致謝 35
參考文獻 36
附錄1 系統(tǒng)硬件原理圖 37
附錄2 設(shè)計程序 38
附錄3 系統(tǒng)PCB圖 46
[1] 關(guān)積珍.LED.顯示屏發(fā)展狀況及趨勢[J].世界電子元器件,2000, (02):277-301.
[2] 關(guān)積珍,陸家和. 我國LED顯示屏技術(shù)和產(chǎn)業(yè)發(fā)展及展望.現(xiàn)代顯示,2004, (02):34-37.
[3] Jeyamkondan S,Jayas D S,Holly R A.16x16 dot matrix LED has 4mm profile. Electronics Weekly,11/26/2003 Issue 2125,36-36,1/9p,1c;(AN 11842012).
[4] 繆思恩. LED大屏幕顯示電路設(shè)計[J].電子技術(shù)應(yīng)用,1996,(08):56-77.
[5] Dave Jackson. 關(guān)于DSP芯片的問與答.今日電子 ,1998,(12):1-7.
[6] 盧彌堅.主從分布式LED大屏幕顯示系統(tǒng)[J].電腦與信息技術(shù),1997,(04):6-13.
[7] 高勝東,梁采,張宏富.一種LED大屏幕顯示系統(tǒng)[J].成都氣象學院學報,1998,(03):108-120.
[8] 張全福.匯編語言程序設(shè)計實驗教學改革與探索.教學研究,2005,(06):3-5.
[9] 文哲雄.用單片機控制LED顯示屏[D].佛山:佛山科學技術(shù)學院,1995.
[10] 彭寧,只佩華.單片機對LED大屏幕顯示的控制系統(tǒng)[J].河北大學學報(自然科學版),1993,13(3):86-89.
[ 11] 陳玉華,王銘霞. LED大屏幕顯示電路的設(shè)計[J].大連海事大學學報,1997,(03):55-56.
[12] 鄭剛,李宇成.LED大屏幕顯示系統(tǒng)的設(shè)計[J].北方工業(yè)大學學報,2001,(03):43-47.
[13] 李元生. LED光柱專用驅(qū)動器[J]. 家庭電子,2005,(04):1-7.
[14] 王亭,李瑞濤,宋召清.在Windows下PC機和單片機的串行通信[J].微型機與應(yīng)用,2000(1):25-27.
[15] 陳新忠.基于RS232總線的單片機多機通信軟件設(shè)計[J].現(xiàn)代電子技術(shù),2002,(03) :56-78.
[16] 喬世杰.小波圖像編碼中的對稱邊界延拓法[J].中國圖像圖形學報,2000,5(9):725-729.
[17] 李桂平.LED屏幕顯示器的設(shè)計[J].零陵師范學院學報,2002,(9):367-380.
[18] David F Rogers.Computer graphics algorithm[M].Beijing:China Machine Press,2002:97-99.
[19] Marston, R.. Radio-Electronics, Working with LED display drivers[J]. Mar1992, Vol. 63 Issue 3, 65, 8p, 3 charts, 23 diagrams; (AN 9206290756).
[20] Regenold, Stephen. LEDs Are Still Popular (and Improving) after All These Years[Z].Sep2004, Vol. 18 Issue 9, 44-44, 1/7p,1c; (AN 14525210).
字數(shù) 19000多字
摘要:本文介紹了一款以單片機AT89S51為控制器的LED點陣顯示屏系統(tǒng)的設(shè)計。該系統(tǒng)可實現(xiàn)中英文字符的顯示和動態(tài)特效顯示。并且可以通過級連的方式來擴大顯示屏幕的尺寸以達到增加顯示內(nèi)容的目的。系統(tǒng)采用PC機作為上位機,上位機向單片機發(fā)送控制命令和上位機所存儲的顯示代碼,AT89S51單片機接收并處理PC機的控制命令以及顯示代碼,由顯示驅(qū)動模塊驅(qū)動一個16×16分辨率的LED點陣顯示屏的掃描顯示。PC機與單片機之間的通信采用RS—232C通信標準來實現(xiàn)。所選用的AT89S51單片機具有價格低廉程序?qū)懭敕奖愕奶攸c使得整個系統(tǒng)方便維護和檢修。除此之外,該系統(tǒng)只占用了單片機少量的I /O口和內(nèi)存,為系統(tǒng)留下了功能擴展的空間。
關(guān)鍵字:AT89S51;LED點陣顯示;串行通信
Desigen and Realization of the Lattice Screen of LED Based on MCS-51
Abstract: This paper introduces a design of the LED lattice display system base on MCU AT89S51. The system can display in both Chinese and English characters of the show and from top to bottom and move around the magic show. And can be cascaded to expand the screen size to achieve increased content purposes. The PC sends control commands and displays code to microcontroller, AT89S51 receives control commands from PC and shows the code, Driver module drives a 16×16-resolution LED lattice LED’s panel display scan showed. Communication between PC and the microcontroller using RS-232C communications standards. the characteristics that AT89S51 microcontroller is cheap and could be coded conveniently makes the whole system Convenient to Maintenance and Repair. In addition, the system will take up only a small amount of the MCU I/O and memory,so that the system has functional space for expansion.
Key words: AT89S51, lattice LED’s panel display, serial communication
目 錄
第1章 緒 論 1
1.1 課題背景 1
1.1.1 選題背景 1
1.1.2 研究現(xiàn)狀及發(fā)展趨勢 1
1.2 論文主要內(nèi)容 3
第2章 方案論證與選擇 4
2.1 系統(tǒng)硬件方案 4
2.1.1 顯示屏主控制器 4
2.1.2 通信系統(tǒng) 6
2.1.3 LED點陣顯示屏 6
2.1.4 硬件設(shè)計方案 7
2.2 系統(tǒng)軟件方案 8
2.2.1 單片機編程語言 8
2.2.2 系統(tǒng)軟件編譯器介紹 9
2.2.3 上位機控制傳輸軟件 9
第3章 系統(tǒng)硬件設(shè)計 11
3.1 硬件整體設(shè)計概述及功能分析 11
3.2 控制單元設(shè)計 12
3.2.1 AT89S51簡介 12
3.2.2 控制系統(tǒng)設(shè)計 13
3.3 譯碼電路設(shè)計 15
3.3.1 串并轉(zhuǎn)換器74LS164 15
3.3.2 鎖存器74L373 16
3.4 驅(qū)動電路設(shè)計 17
3.4.1 行驅(qū)動電路設(shè)計 17
3.4.2 列驅(qū)動電路設(shè)計 18
3.5 通信系統(tǒng)硬件設(shè)計 18
3.6 電源設(shè)計 19
3.7 級連大屏幕LED顯示屏 20
第4章 系統(tǒng)軟件設(shè)計 22
4.1 程序設(shè)計 22
4.2 顯示程序的設(shè)計 23
4.2.1 LED顯示屏的顯示方式 23
4.2.2 點陣數(shù)據(jù)表達方式 24
4.2.3 顯示程序的設(shè)計 25
4.3 通信程序的設(shè)計 27
第5章 系統(tǒng)調(diào)試 29
5.1 系統(tǒng)硬件部分調(diào)試方法 29
5.1.1 短路與虛焊檢測 30
5.1.2 上電測試 30
5.1.3 串口調(diào)試 30
5.2 系統(tǒng)軟件調(diào)試方法 31
5.3 系統(tǒng)聯(lián)合調(diào)試及結(jié)果 32
5.4 調(diào)試結(jié)果分析 32
結(jié)論 34
致謝 35
參考文獻 36
附錄1 系統(tǒng)硬件原理圖 37
附錄2 設(shè)計程序 38
附錄3 系統(tǒng)PCB圖 46
[1] 關(guān)積珍.LED.顯示屏發(fā)展狀況及趨勢[J].世界電子元器件,2000, (02):277-301.
[2] 關(guān)積珍,陸家和. 我國LED顯示屏技術(shù)和產(chǎn)業(yè)發(fā)展及展望.現(xiàn)代顯示,2004, (02):34-37.
[3] Jeyamkondan S,Jayas D S,Holly R A.16x16 dot matrix LED has 4mm profile. Electronics Weekly,11/26/2003 Issue 2125,36-36,1/9p,1c;(AN 11842012).
[4] 繆思恩. LED大屏幕顯示電路設(shè)計[J].電子技術(shù)應(yīng)用,1996,(08):56-77.
[5] Dave Jackson. 關(guān)于DSP芯片的問與答.今日電子 ,1998,(12):1-7.
[6] 盧彌堅.主從分布式LED大屏幕顯示系統(tǒng)[J].電腦與信息技術(shù),1997,(04):6-13.
[7] 高勝東,梁采,張宏富.一種LED大屏幕顯示系統(tǒng)[J].成都氣象學院學報,1998,(03):108-120.
[8] 張全福.匯編語言程序設(shè)計實驗教學改革與探索.教學研究,2005,(06):3-5.
[9] 文哲雄.用單片機控制LED顯示屏[D].佛山:佛山科學技術(shù)學院,1995.
[10] 彭寧,只佩華.單片機對LED大屏幕顯示的控制系統(tǒng)[J].河北大學學報(自然科學版),1993,13(3):86-89.
[ 11] 陳玉華,王銘霞. LED大屏幕顯示電路的設(shè)計[J].大連海事大學學報,1997,(03):55-56.
[12] 鄭剛,李宇成.LED大屏幕顯示系統(tǒng)的設(shè)計[J].北方工業(yè)大學學報,2001,(03):43-47.
[13] 李元生. LED光柱專用驅(qū)動器[J]. 家庭電子,2005,(04):1-7.
[14] 王亭,李瑞濤,宋召清.在Windows下PC機和單片機的串行通信[J].微型機與應(yīng)用,2000(1):25-27.
[15] 陳新忠.基于RS232總線的單片機多機通信軟件設(shè)計[J].現(xiàn)代電子技術(shù),2002,(03) :56-78.
[16] 喬世杰.小波圖像編碼中的對稱邊界延拓法[J].中國圖像圖形學報,2000,5(9):725-729.
[17] 李桂平.LED屏幕顯示器的設(shè)計[J].零陵師范學院學報,2002,(9):367-380.
[18] David F Rogers.Computer graphics algorithm[M].Beijing:China Machine Press,2002:97-99.
[19] Marston, R.. Radio-Electronics, Working with LED display drivers[J]. Mar1992, Vol. 63 Issue 3, 65, 8p, 3 charts, 23 diagrams; (AN 9206290756).
[20] Regenold, Stephen. LEDs Are Still Popular (and Improving) after All These Years[Z].Sep2004, Vol. 18 Issue 9, 44-44, 1/7p,1c; (AN 14525210).