【正文】
II Abstract With the rapid development of electronic technology, especially with the advent of the LSI, the applicSTCion of SCM technology products has gone to the various fields. Has undergone a fundamental change in human life. Campus time control system is to introduce the use of a singlechip designtime control system. First, the system carried out indepth understanding, including the feasibility, practicality, and then determine the program, the program to demonstrSTCe. The plan was finalized, the hardware design, describes the hardware works, draw a schemSTCic diagram of Altium Designel . Campus time control systems have the basic clock function, realtime realmonth, day, rang the bell on the class, the teaching building lighting, student dormitories, light control. The control system using STC89C52 to control part of the DS1302 clock chip to provide the clock informSTCion from time to time to use LED1602 display time, the system input keyboard, is used to modify the clock time. The system organizSTCion is simple, stable, inexpensive, precise control time and the advantages of small size, very suitable for use in schools. Key words: singlechip STC89C52 DS1302 LED1602 III 目 錄 摘 要 ............................................................................................................................ I Abstract ....................................................................................................................... II 第 1 章 緒論 .............................................................................................................. 1 研究的目的和意義 ...................................................................................... 1 國(guó)內(nèi)外概況 .................................................................................................. 2 本文的內(nèi)容及結(jié)構(gòu) ...................................................................................... 3 第 2 章 系統(tǒng)總體設(shè)計(jì)方案 ...................................................................................... 4 系統(tǒng)的性能和要求 ...................................................................................... 4 系統(tǒng)框圖 ...................................................................................................... 6 方案選擇 ...................................................................................................... 6 電源模塊 ........................................................................................... 6 單片機(jī)選擇 ....................................................................................... 7 顯示模塊 ........................................................................................... 7 時(shí)鐘模塊 ........................................................................................... 8 本章 小結(jié) ...................................................................................................... 8 第 3 章 硬件電路設(shè)計(jì) .............................................................................................. 9 系統(tǒng)硬件概述 .............................................................................................. 9 單片機(jī)控制電路設(shè)計(jì) .................................................................................. 9 簡(jiǎn)介 ................................................................................. 9 單片機(jī)控制模塊設(shè)計(jì) .................................................................... 11 時(shí)鐘電路設(shè)計(jì) ............................................................................................ 13 簡(jiǎn)介 .................................................................................... 13 數(shù)據(jù)的讀寫(xiě) ..................................................................................... 15 顯示電路設(shè)計(jì) ............................................................................................ 16 基本簡(jiǎn)介 ................................................................................. 16 與單片機(jī)接口 ......................................................................... 16 的指令說(shuō)明及時(shí)序 ................................................................ 18 電鈴電路設(shè)計(jì) ............................................................................................ 21 語(yǔ)音芯片簡(jiǎn)介 .................................................................. 21 工作原理 .......................................................................... 23 IV 電燈控 制 .................................................................................................... 24 本章小結(jié) .................................................................................................... 25 第 4 章軟件電路設(shè)計(jì) .............................................................................................. 26 主程序軟件設(shè)計(jì) ........................................................................................ 26 時(shí)鐘系統(tǒng)軟件設(shè)計(jì) .................................................................................... 27 顯示系統(tǒng)軟件設(shè)計(jì) .................................................................................... 28 本章小結(jié) .................................................................................................... 29 第 5 章系統(tǒng)測(cè)試 ...................................................................................................... 30 硬件測(cè)試 .................................................................................................... 30 軟件測(cè)試 .................................................................................................... 30 結(jié) 論 ......................................................................................................................... 32 致 謝 ......................................................................................................................... 33 參考文獻(xiàn) .................................................................................................................. 34 附錄 1...............................................................