【正文】
河南科技大學 畢業(yè)設計(論文) I 基于單片機的時鐘顯示器設計 摘 要 本文論述了如何利用單片機來設計一個時鐘的方法。 本設計基于單片機技術原理,以單片機芯片 AT89C52作為核心控制器,通過硬件電路的制作以及軟件程序的編制,設計制作出一個多功能數(shù)字時鐘系統(tǒng)。 單片機擴展的 LCD顯示器用來顯示秒、分、時計數(shù)單元中的值。整個設計包括兩大部分 : 硬件部分和軟件部分 ,以單片機為核心 , 配以一定的外圍電路和軟件。硬件是整個系統(tǒng)的基礎 , 軟件部分則要合理、充分地支持和使用系統(tǒng)的硬件 , 從而完成系統(tǒng)所要完成的任務。 本設計采用 L ED 數(shù)碼管的數(shù)字顯示 以其亮度高、顯示直觀等優(yōu)點被廣泛應用于智能儀器及家用電器等領域。 該時鐘系統(tǒng)主要由時鐘模塊、鬧鐘模塊、環(huán)境溫度檢測模塊、液晶顯示模塊、鍵盤控制模塊以及信號提示模塊組成。能夠準確顯示時間(顯示格式為時時:分分:秒秒, 24 小時制),可隨時進行時間調整,具有鬧鐘時間設置、鬧鐘開 /關、止鬧功能,能夠對時鐘所在的環(huán)境溫度進行測量并顯示。設計以硬件軟件化為指導思想,充分發(fā)揮單片機功能,大部分功能通過軟件編程來實現(xiàn),電路簡單明了,系統(tǒng)穩(wěn)定性高。 單片機在這種情況下誕生了 基于單片機電子時鐘 。 關鍵詞: 單片機、 LCD 顯示器 、 液 晶顯示模塊 、 基于單片機電子時鐘 。 河南科技大學 畢業(yè)設計(論文) II Design According To Single Slice The Clock Display Of The Machine ABSTRACT This text discusses how to make use of a single slice machine to design the method of a clock. This design according to single slice machine technique principle, use single slice the machine chip AT89 C52 as core controller, pass the draw up of creation and software procedure of hardware electric circuit, design to create a multifunction and numerical clock system. the single slice machine expand of LCD display use to show second, cent, the chronometer value within few whole design include two greatly part of: Hardware part and software part, with single slice machine for core, go together with with the certain outer circle electric circuit and the hardware is the foundation of the whole system, the software is part of to then want reasonable, adequately support with usage system of hardware, plete system thus want to plete of mission. This design adoption L ED figures tube of the numeral show high with its bright degree, show to keep a view etc. the advantage be extensively been apply in realms, such as intelligence instrument and home .The clock39。s system is mainly shown that mold piece, the keyboard control mold piece and signal hint that the mold piece constitute by clock mold piece, alarm clock mold piece, the examination mold piece, LCD of the environment accurate manifestation time(manifestation format is always:The cent divide:Second second, 24 hours system), can carry on the adjustment in time at any time, have an alarm clock to establish for time, the alarm clock open/pass, make function, can carry on measure to the environment temperature of clock place and to change into instruction thought by hardware software, well exertive single slice machine function, greatly parts of functions pass a software plait a distance to carry out, electric circuit in brief clear, system stability single slice machine was born in this kind of case the machine electronics is according 河南科技大學 畢業(yè)設計(論文) III to the single slice clock. KEY WORDS: singlechip,lcd display, the LCD shows a mold piece,a ccording to single slice machine electronics clock. 河南科技大學 畢業(yè)設計(論文) IV 目 錄 前 言 ....................................................................................................... 1 第 1 章 硬件系統(tǒng)設計 ............................................................................ 2 單片機 ........................................................................................ 2 硬件設計 .................................................................................... 3 硬件模塊 .................................................................................... 3 主控單元 ........................................................................... 3 顯示部分 ........................................................................... 5 顯示器接口及顯示方式 .................................................. 7 鍵盤控制模塊 .................................................................. 8 聲音提示模塊 .................................................................. 8 直流穩(wěn)壓電源部分 .......................................................... 9 濾波電路 ........................................................................... 9 硬件電路測試 ............................................................................ 9 硬件電路 ERC 測試 ........................................................ 9 硬件電路網(wǎng)格化 ............................................................ 10 生成 PCB 板 ....................................................................11 第 2 章 軟件設計 .................................................................................. 13 設計思路 .................................................................................. 13 模塊設計 .................................................................................. 13 軟件模塊 .................................................................................. 14 計時模塊 ......................................................................... 14 調時功能 ......................................................................... 14 主程序模塊 ..................................................................... 14 鍵盤控制模塊 ................................................................ 14 在編程過程中要用到的其它程序模塊 ....................... 14 第 3 章 程序編譯和系統(tǒng)調試及仿真 ................................................. 15 程序編譯 .................................................................................. 15 主要程序設計分析 ........................................................ 15 河南科技大學 畢業(yè)設計(論文) V 程序設計 ......................................................................... 16 軟件調試 .................................................................................. 23 偉福簡介 ......................................................................... 23 軟件調試 ..................