畢業(yè)設(shè)計 基于液晶顯示的乘法口訣測試儀的設(shè)計.doc
畢業(yè)設(shè)計 基于液晶顯示的乘法口訣測試儀的設(shè)計,基于液晶顯示的乘法口訣測試儀的設(shè)計摘 要用單片機和液晶顯示設(shè)計一個乘法口訣測試儀,能對測試的結(jié)果給出正確的判決。應(yīng)用的范圍可以給我國的基礎(chǔ)小學(xué)教育提供技術(shù)支持。隨著兒童教育電子設(shè)備的快速發(fā)展,市場上需求的學(xué)習(xí)機、電子詞典輔助教學(xué)與測試產(chǎn)品也在增長。通過使用芯片,使我們所學(xué)到更...


內(nèi)容介紹
此文檔由會員 bfxqt 發(fā)布畢業(yè)設(shè)計 基于液晶顯示的乘法口訣測試儀的設(shè)計
基于液晶顯示的乘法口訣測試儀的設(shè)計
摘 要
用單片機和液晶顯示設(shè)計一個乘法口訣測試儀,能對測試的結(jié)果給出正確的判決。應(yīng)用的范圍可以給我國的基礎(chǔ)小學(xué)教育提供技術(shù)支持。隨著兒童教育電子設(shè)備的快速發(fā)展,市場上需求的學(xué)習(xí)機、電子詞典輔助教學(xué)與測試產(chǎn)品也在增長。通過使用芯片,使我們所學(xué)到更多的專業(yè)知識。
研究電子教學(xué)產(chǎn)品能大大提高我們國家的教育教學(xué)水平,突破現(xiàn)階段的固有的教學(xué)模式。電子產(chǎn)品的應(yīng)用更會激發(fā)中小學(xué)生對科學(xué)知識的熱愛,通過設(shè)計一個完整的單片機控制乘法口訣測試儀使我們對單片機如何實現(xiàn)功能擴展,如何節(jié)約設(shè)計資源,以及怎樣使設(shè)計方便、快速有了進一步了解,以便于將來設(shè)計更多的智能儀器。多個角度分析問題,從而解決困難
自主開發(fā)研究單片機,把科學(xué)知識應(yīng)用到現(xiàn)實生活中來,并給社會帶來好的效益,是當(dāng)代大學(xué)生的驕傲,更能突破現(xiàn)階段的我們國家固有的教學(xué)模式。我們國家既是一個人口大國,又是一個教育大國,只有通過我們自己的研究和開發(fā)來滿足國內(nèi)的特殊需要。設(shè)計一個簡單的乘法口訣測試儀雖然只是一個很小方面的事例,但是我們通過這樣的開發(fā)和設(shè)計為我們將來積累更多的有關(guān)單片機開發(fā)方面知識,更可以為國家的兒童教育事業(yè)做一番事業(yè)。
關(guān)鍵詞:單片機;液晶顯示;乘法口訣;測試儀。
Design of Multiplication Table Tester Based on LCD
Abstract
Multiplication table tester based on SCM and LCD SCM can test and correct results. The scope of application can give our basic primary education technical sustain. Along with the rapid development of electronic devices for education, on the market the demand of learning machines, electronic dictionaries in teaching and testing products is growing. By using the SCM, we can learn more expertise of SCM knowledge.
On e-learning products will greatly enhance our country's level of education, and breakthrough this stage of the inherent teaching mode. The application of electronic products will stimulate primary and secondary school students to love scientific knowledge, By designing a Multiplication table tester, we will get more understanding about how to extend I extend the function of SCM, how to save the source of design, also how to make the design convenient and more rapid, in order to design more intelligent machines, and analysis the problem from various angles, in order to resolve difficulties.
The independent development of SCM and researching can bring the application of scientific knowledge to real life, and give good benefits to the community, that is the pride of our contemporary college students, also can break through the stage of our country inherent in the teaching mode. Our country is a country with a large population, also is a big education country, so only by our own research and development to meet the special needs of domestic. Design a simple Multiplication Table Tester only a small area of examples, but by the development and design we can accumulate more knowledge of the SCM for the future, but also can give more benefits for our country's children education career.
Key words: SCM; Liquid Crystal Display; Multiplication Table; Tester
目 錄
摘 要 I
Abstract II
插圖清單 V
表格清單 VI
引 言 1
第1章 緒論 2
1.1 單片機的發(fā)展歷史和未來展望 2
1.2 單片機發(fā)展過程存在的問題 3
1.3 單片機設(shè)計液晶顯示的乘法口訣測試儀的任務(wù)與意義 4
第2章 總體方案設(shè)計 5
2.1 課題設(shè)計內(nèi)容 5
2.1.1 硬件設(shè)計模塊選擇 5
2.1.2 硬件設(shè)計模塊與原始方案比較 5
2.1.3 軟件設(shè)計選擇 5
2.2 設(shè)計方案總體框圖 6
2.2.1 方案總體框圖 6
2.2.2 設(shè)計框圖原理說明 6
第3章 硬件設(shè)計 7
3.1 主芯片AT89S52介紹 7
3.1.1 引腳功能特性描述 7
3.1.2 AT89S52的引腳圖 8
3.1.3 AT89S52存儲器結(jié)構(gòu) 9
3.1.4 AT89S52定時、振蕩分析 9
3.1.5AT89S52 節(jié)電模式 9
3.1.6 AT89S52編程與中斷 10
3.2 矩陣鍵盤簡介 10
3.2.1 矩陣鍵盤的電路和外觀圖 11
3.2.2 4×4矩陣鍵盤的工作原理 11
3.2.3 矩陣鍵盤鍵值查找程序設(shè)計的思路 12
3.2.4 如何掃描矩陣鍵盤按鍵 12
3.2.5 鍵盤的防抖動技術(shù)在設(shè)計里的應(yīng)用 12
3.3 單片機復(fù)位電路 13
3.4 LCD1602液晶模塊功能 13
3.4.1 LCD1602主要參數(shù)介紹 13
3.4.2 LCD1602基本操作程序 13
3.4.3 LCD1602引腳在設(shè)計中如何應(yīng)用 14
3.4.4 LCD1602指令系統(tǒng) 14
3.4.5 LCD1602液晶顯示特性 15
3.4.6 1602LCD的RAM地址映射和復(fù)位(初始化)過程 15
3.4.7 LCD1602液晶顯示器與AT89S52接線分析 16
3.4.8 如何在LCD1602上顯示顯示數(shù)字 16
3.4.9 對測試者輸入的結(jié)果判斷 17
3.5 蜂鳴器 17
3.6 本章設(shè)計總結(jié) 17
第4章 軟件設(shè)計 19
4.1 主程序 19
4.1.1 主程序流程圖 19
4.2 子程序 20
4.2.1 數(shù)據(jù)比較子程序流程圖 20
4.2.2 寫指令數(shù)據(jù)到LCD子程序流程圖 21
4.2.3 寫顯示數(shù)據(jù)到LCD流程圖 22
4.2.4 檢測LCD控制器忙狀態(tài),讀數(shù)據(jù)流程圖 22
4.2.5 LCD初始化設(shè)定子程序流程圖 23
4.2.6 發(fā)送字符串子程序流程圖 24
4.2.7 矩陣鍵盤鍵值查找程序流程圖 26
4.2.8 延時120ms子程序流程圖 27
4.2.9 延時5ms子程序使LCD初始化流程圖 27
4.2.10 數(shù)據(jù)轉(zhuǎn)換子程序流程圖 28
4.2.11 模擬出題器子程序流程圖 28
4.3 程序調(diào)試 29
結(jié)論與展望 31
致 謝 32
參考文獻 33
附錄A 一篇引用的外文文獻及其譯文 35
附錄B 主要參考文獻的題錄及摘要 40
附錄C 總程序清單 42