【正文】
北方民族大學 學士學位論文 論文題目 : 基于單片機 控制的電子胸牌設計 院 (部 )名 稱 : 電氣信息工程學院 學 生 姓 名 : 邱立新 專 業(yè) : 通信工程 學 號 : 20xx0365 指導教師姓名 : 黃現(xiàn)蓮 論文提交時間 : 20xx 年 5 月 19 日 論文答辯 時間 : 20xx 年 5 月 25 日 學位授予時間 : 北方民族大學教務處制 摘 要 現(xiàn)代經(jīng)濟社會的越來越發(fā)展進步,作為在信息傳播領域里的一種重要傳播手段, LED 顯示屏在現(xiàn)代化信息社會越來越重要,尤其是它在信息服務領域里,其會更加廣泛應用。注重小型化的 LED 顯示屏的種類將越來越多,并且其實用性會更強。本人采用單片機技術設計了一套 LED 電子胸牌,其實用性強,性價比高,應用價值會更強。 本 設計的 硬件電路 包括 三部分 : P89LPC922 設計部分 、電子屏 顯示 部分、 紅外串行 技術部分。 P89LPC922 設計部分 主要 是對電子屏顯示出來的效果及其方式進行控制 ,電子屏 顯示 部分主要的工作是用 不 一樣 方式顯示 漢字 ,而 紅外串行 技術的功能是對上、下位機進行連接,并 接收 發(fā)來的 指令 。 本設計軟件部分包括兩部分:上位機軟件設計部分和下位機軟件設計部分。 上位機部分以 VB 為開發(fā)平臺,完成 對漢字字模的提取 及其 傳輸 、串行通信和發(fā)送數(shù)據(jù),并對顯示的內(nèi)容和方式進行控制;下位機是以 P89LPC922 為主導,設計出兩大程序:主程序、中 斷服務程序。前者的工作是讀取數(shù)據(jù)、發(fā)送控制信號以及對顯示方式進行變化;后者經(jīng)紅外串行技術接收 PC機發(fā)來的點陣信息。 關鍵 字 P89LPC922 單片機 紅外 串行 電子屏 漢字字模 ABSTRACT WIth the increasingly development of modern economic and social progress, the LED display screen is an important spread means in the field of information transmission and it is more and more important in the modern information society, and especially in the field of information service, it will be more widely used. Paying attention to the miniaturization of the kinds of LED display will be more and more, and its usefulness will be stronger. adopting microcontroller technology,I design a set of LED electronic badges and it has strong practicability,high cost performance and better application value. This design of the hardware circuit consists of three parts: P89LPC922 design parts, electronic screen, infrared serial technical part. P89LPC922 design part’ s job is mainly to control the electronic screen display’ s effect and its display part’ s work is mainly to use different way to display Chinese the function of infrared serial technology is carrying out on the upper and lower place machine connection, and receiving from the instructions. This design of software part includes two parts: PC software design part and the lower position machine software design the VB as development platform,upper machine part pletes the extraction and transmission of Chinese font , serial munication, and sending data, and to control showing content and means 。 Lower machine’ s center is P89LPC922, and it includes two process: main program, interrupt service routine. The former job is to read data, send control signals, and change display mode。 By the infrared serial technology the latter receives the lattice information from PC. KEY WORDS。 P89LPC922 microcontroller Infrared serial Electronic screen Chinese font 目 錄 第 1 章 前 言 ................................................... 1 LED 電子顯示屏概述 ........................................... 1 設計內(nèi)容 .................................................... 1 第 2 章 論文的總體方案 ........................................... 3 技術應用原理 ................................................ 3 提取漢字點陣 ........................................... 3 串行通信技術 ........................................... 4 電子胸牌工作原理 ....................................... 4 第 3 章 設計的硬件電路 ........................................... 6 單片機設計部分 .............................................. 6 電子屏顯示部分設計 .......................................... 8 掃描驅(qū)動技術 ........................................... 8 電子顯示屏的驅(qū)動電路 ................................... 9 紅外串行技術 ............................................... 10 第 4 章 系統(tǒng)軟件設計部分 ........................................ 11 PC 機軟件設計部分 ........................................... 12 VB 軟件介紹 ........................................... 12 PC 機控制界面 ......................................... 13 顯示數(shù)據(jù)提取 .......................................... 14 下位機軟件部分設計與實現(xiàn) ................................... 15 主程序設計 ............................................ 15 LED 顯示程序設計 ...................................... 16 PC 機與單片機串行通信程序設計 .............................. 17 單片機串行通信特點 .................................... 18 P89LPC922 串行通信 ................................... 18 VB 串口通信 ........................................... 19 通信協(xié)議 .............................................. 20 第 5 章 系統(tǒng)分析 ................................................ 22 總 結(jié) ............................................................. 23 致 謝 ............................................................. 24 參考文獻 ........................................................... 24 附錄一 系統(tǒng)程序 .................................................... 26 系統(tǒng)主程序 ......................................................... 26 附錄二 系統(tǒng)整體電路圖 ............................................. 32 附錄三 英文原文 .................................................... 34 附錄四 中文譯文 .................................................... 38 1 第 1 章 前 言 LED 電子顯示 屏概述 LED 是發(fā)光二極管英文 Light Emitting Diode 的簡稱,是六十年代末發(fā)展起來的一種半導體顯示器件,七十年代,隨著半導體合成材料技術、單晶制作技術和 PN 結(jié)形成技術的研究發(fā)展,發(fā)光二極管在發(fā)光顏色、亮度等性能得以提高并迅速進入批量化和實用化 [1]。進入八十年代,二極管在發(fā)光波長范圍及性能方面取得突破性進展,平板顯示產(chǎn)品( LED顯示屏)開始出現(xiàn),它的出現(xiàn)適應了信息化社會的需要,并被大眾傳媒所青睞。 LED 電子顯示屏充分利用了微電子技術、信息處理技術和微電子技術。它因為具有一系列的獨特的 的畫面顯示的優(yōu)點,成為現(xiàn)代世界上,在信息傳播時代具有重大意義。它被普遍應用于各個行業(yè),作為顯示技術在現(xiàn)在比較先進。目前LED 顯示屏的應用已經(jīng)十分廣泛,在體育場館,大屏幕顯示系統(tǒng)可以顯示比賽實況及比賽比分、時間、精彩回放等;在交通運輸行業(yè),可以顯示道路運行情況;在金融行業(yè),可以實時顯示金融信息,如股票、匯率、利率等;在商業(yè)郵電系統(tǒng),可以向廣大顧客顯示通知、消息、廣告等內(nèi)容 [2]。顯示技術還應用于工業(yè)生產(chǎn)、軍事、醫(yī)療衛(wèi)生、公安系統(tǒng)乃至宇航事業(yè)等國民經(jīng)濟、社會生活和軍事領域中,并起著重要作用。顯示技術已經(jīng)成為現(xiàn)代 人類社會生活中的一項不可缺少的技術[3]。 LED 電子胸牌是一種新潮的電子產(chǎn)品,因其體積小、顯示的信息量不是很大、制作成本低而廣泛應用于產(chǎn)品展銷會、商場、 KTV等工作人員的佩帶。它可用來顯示姓名、工作部門以及公司需要