【正文】
西南科技大學(xué)本科生畢業(yè)論文 Southwest university of science and technology 本科畢業(yè)設(shè)計(論文) 基于單片機的點陣式 時鐘電子顯示屏設(shè)計與實現(xiàn) 西南科技大學(xué)本科生畢業(yè)論文 基于單片機的點陣式 時鐘電子顯示屏設(shè)計與實現(xiàn) 摘要: 電子時鐘,它最大的特點在于走時精確和功能的多樣化,為我們帶來了極大的方便。而 LED 點陣式顯示屏,具有 亮度高、功耗小、壽命長等優(yōu)點。若以 LED點陣來作為電子時鐘的顯示屏,則可實現(xiàn)遠距離、大視角的時鐘顯示。從而非常適合于在公共場所中顯示時間。 本設(shè)計的重點在于對點陣式 顯示屏的顯示研究。從宏觀上來上,顯示屏可分為兩個部份:顯示器件和微控制器。由微控制器控制顯示器件的亮滅、顏色變化,從而組合出所需要的圖相。在此次設(shè)計中,采用了 16 x 64 個單色 LED 作為顯示器件,用 Mega8 作為微控制器,以靜止和左移的方式進行時鐘顯示。由于充分考慮了軟硬件的易擴充性,用本設(shè)計的構(gòu)架思想可很方便地進行點陣擴充和多個漢字或圖形的顯示。 設(shè)計中所涉及的知識點主要有:點陣顯示原理,字模提取,顯示左移算法的實現(xiàn),單片機 Meg8 和編譯器 IAR 的使用。 以及在 軟硬件 設(shè)計調(diào)試過程中的各種 現(xiàn)象及解決方案 。 關(guān)鍵詞 : 電子時鐘;點陣顯示原理 ; LED 點陣;單片機; Mega8; IAR; 74HC154;74HC595; 西南科技大學(xué)本科生畢業(yè)論文 Design and Implementation of Dotmatrix Clock Display Screen Abstract: Electronic clock system, which features that time is very accurate and function are diversity, brought us great ,The LED dot matrix have advantage of high brightness, low power consumption, long lifetime etc. If use LED dot matrix as screen to display electronic clock, can achieve longrange, large angle of the clock display very suitable to display the time in public places. This design focuses on the display of dot matrix .Look from the macro, the design can be divided into two parts: the screen part and microcontroller part. The microcontroller control the Leds off and on. In this design, using 16 x 64 monochrome LED as the display screen, using Mega8 as microcontroller,We can get an effect of static display and leftmove full consideration to the ease Expansion of hardware and software , the framework of ideas can be easily expanded to dispaly a large number of Chinese characters or expanded to more dotmatrix Led screen The knowledge involved in this design are: dot matrix display principle, font data extraction, leftmove showe algorithm, Meg8 and the use of IAR the solutions to problem Encountered in the process of debugging software and hardware. Keywords: electronic clock。 dot matrix display principle。 LED dot matrix。 SCM。 Mega8。 IAR。 74HC154。 74HC595。 西南科技大學(xué)本科生畢業(yè)論文 I 目 錄 摘要 Abstract 引 言 ...............................................................................................................................I 第 1 章 設(shè)計要求與總體方案 ..................................................................................... 2 設(shè)計要求 .......................................................................................................... 2 設(shè)計目的 .......................................................................................................... 2 總體思路 .......................................................................................................... 2 方案 ..................................................................................................................2 第 2 章 單片機的相關(guān)介紹 ...........................................................................................4 單片機的發(fā)展歷史 ..........................................................................................4 單片機的發(fā)展趨勢 .......................................................................................... 4 單片機的特點 ..................................................................................................8 單片機的應(yīng)用 ..................................................................................................9 單片機的基本系統(tǒng)結(jié)構(gòu) ..................................................................................10 第 3 章 硬件設(shè)計 ........................................................................................................... 11 硬件部分總體框架 .......................................................................................... 11 3. 2 單片機 Mega8 簡介 ......................................................................................... 11 3. 2. 1 AVR Mega8 的主要性能參數(shù) ..........................................................錯誤 !未定義書簽。 Mega8 引 腳說明 ...............................................................................12 3. 2. 3 Mega8 最小系統(tǒng)電路計 ...................................................................14 其它芯片簡介 .................................................................................................. 14 3. 3. 1 74HC595 簡介 .................................................................................... 14 西南科技大學(xué)本科生畢業(yè)論文 II 3. 3. 2 74HC154 簡介 ....................................................................................16 3. 4 漢字字模提取 ................................................................................................ 16 3. 4. 1 16*16 點陣漢字的字模提取 ............................................................16 3. 4. 2 16*8 點陣的數(shù)字字模提取 ..............................................................17 3. 5 16*64LED 點陣的結(jié)構(gòu)及顯示原理 ...............................................................18 3. 6 16*64 LED 點陣驅(qū)動原理 ..............................................................................19 第 4 章 軟件設(shè)計 ............................................................................................................20 編程語言選擇 ................................................................................................20 4. 2 程序設(shè)計與流程圖 ........................................................................................20 主程序 .................................................................................................20 中斷處理 程序 .....................................................................................21 按鍵讀取程序 .....................................................................................錯誤 !未定義書簽。 按鍵處理程序 .....................................................................................26