【正文】
論文題目: 基于 單片機(jī)定時(shí)控制器的研制 摘 要 隨著電子技術(shù)的迅速發(fā)展,特別是隨大規(guī)模集成電路出現(xiàn),給人類(lèi)生活帶來(lái)了根本性的改變。由其是單片機(jī)技術(shù)的應(yīng)用產(chǎn)品已經(jīng)走進(jìn)了千家萬(wàn)戶(hù)。 作為單片機(jī)技術(shù)應(yīng)用之一的定時(shí)控制器,在日常生活,工業(yè)場(chǎng)合甚至軍事領(lǐng)域都有應(yīng)用。 本 文主要介紹了單片機(jī)定時(shí)控制器的硬件設(shè)計(jì)過(guò)程。單片機(jī)作為主控器件,是整個(gè)系統(tǒng)的核心,它起到主要的控制作用;時(shí)鐘芯片為系統(tǒng)提供一個(gè)數(shù)字鐘,定時(shí)功能的實(shí)現(xiàn)也要依賴(lài)它;液晶模塊為系統(tǒng)顯示提供載體;按鍵部分采用獨(dú)立式結(jié)構(gòu),主要用作調(diào)時(shí)和定時(shí),也可用作功能選擇; 控制輸出部分通過(guò)繼電器的動(dòng)作和發(fā)光二極管的亮滅,模擬機(jī)器的開(kāi)和停。 本文完成了對(duì)系統(tǒng)硬件電路制作、軟件設(shè)計(jì)和調(diào)試過(guò)程的說(shuō)明,系統(tǒng)最終實(shí)現(xiàn)分時(shí)段定時(shí)控制的功能。 關(guān)鍵詞 : 單片機(jī),時(shí)鐘芯片,液晶模塊,定時(shí)控制 Subject: Development of Time Controller Based on Single Chip Microprocessor ABSTRACT Along with the electronic technology rapid development, appears of the large scale integrated circuit specially, these have made a big change on people’s living. Products including the technology application of the single chip microprocessor sets already entered every family. As one application of the single chip microprocessor technology, the time controller has been applied in the daily life, the industry situation and military field. This article introduced mainly the design process of the time controller posed by the single chip microprocessor. As the main control ponent, the single chip microprocessor is the core of the device and it plays the main control action. The clock chip provides a digital clock for the device and helps to realize the function of the timing control. The liquid crystal display is the carrier for the device system demonstrating. The keys use free standing structure. They mainly use as the timing and fixed time and use also as function choice. The control output simulates machine39。s opening and stops by relay39。s movement and the light emitter diode. This article has showed the process of the hardware manufacture, the software design and debugging. The function of the time controller is realized finally. KEY WORDS: single chip microprocessor, the clock chip, the liquid crystal display, timing controller I 目 錄 第 1 章 緒 論 ............................................................................................................................ 1 課題開(kāi)發(fā)背景 .............................................................................................................. 1 設(shè)計(jì)要求 ...................................................................................................................... 1 第 2 章 單片機(jī)及液晶顯示模塊 .............................................................................................. 3 單片機(jī) STC89C58RD+結(jié)構(gòu) ....................................................................................... 3 引腳定義及功能 ................................................................................................ 3 復(fù)位電路 ............................................................................................................ 6 液晶 12232 模塊 .......................................................................................................... 7 引腳定義及功能說(shuō)明 ........................................................................................ 7 指令描述 ............................................................................................................ 8 LCD12232 的寫(xiě)規(guī)則 ........................................................................................ 11 LCD12232 與單片機(jī)接口 ................................................................................ 11 第 3 章 硬件設(shè)計(jì) .................................................................................................................... 13 芯片及硬件模塊 ......................................................................................................... 13 時(shí)鐘芯片模塊 DS1302 .................................................................................... 13 液晶外部時(shí)鐘模塊 .......................................................................................... 21 鍵盤(pán)接口電路 .................................................................................................. 23 系統(tǒng)設(shè)計(jì)思路 ............................................................................................................. 24 硬件框圖 ..................................................................................................................... 25 系統(tǒng)功能說(shuō)明 ............................................................................................................ 26 系統(tǒng)硬件設(shè)計(jì)電路圖 ................................................................................................. 27 第 4 章 軟件設(shè)計(jì) .................................................................................................................... 29 軟件設(shè)計(jì)的原則 ........................................................................................................ 29 系統(tǒng)功能模塊圖 ........................................................................................................ 29 程序流程圖 ................................................................................................................ 30 第 5 章 制作與調(diào)試 ................................................................................................................ 34 硬件焊接 .................................................................................................................... 34 硬件調(diào)試 .................................................................................................................... 35 焊接調(diào)試 .......................................................................................................... 35 故 障調(diào)試 .......................................................................................................... 35 功能調(diào)試 .......................................................................................................... 36 “偉福 ”調(diào)試軟件 .......................................................................................................... 36 “偉福 ”的特點(diǎn) .................................................................................................... 36 “偉福 ”仿真軟件的使用 .................................................................................... 36 “偉福 ”集成調(diào)