【正文】
.. 38 附錄 3 系統(tǒng)實(shí)物圖 ............................................................................................................ 39 西南科技大學(xué)本科生畢業(yè)論文 1 第 1 章 緒論 概述 隨著國(guó)民經(jīng)濟(jì)的快速發(fā)展 和社會(huì)進(jìn)步,教育在全社會(huì)愈加被關(guān)注和重視,校園規(guī)模也隨著受教育者的數(shù)量增加而不斷擴(kuò)大,教室的數(shù)量和開(kāi)設(shè)的課程等也在大幅增加。 33 本章小結(jié) 31 系統(tǒng)聯(lián)調(diào)的實(shí)現(xiàn) 26 系統(tǒng)軟件仿真 25 Keil C51 24 第 5 章 系統(tǒng)仿真與硬件調(diào)試 ......................................................................................... 25 軟件調(diào)試 24 本章小結(jié) 21 輸出程序設(shè)計(jì) 19 西南科技大學(xué)本科生畢業(yè)論文 II 顯示程序設(shè)計(jì) 16 輸出控制模塊設(shè)計(jì) 15 LCD1602 液晶顯示模塊 13 鍵盤接口電路設(shè)計(jì) 8 電路設(shè)計(jì) 6 本章小結(jié) 6 電路設(shè)計(jì)方案 4 顯示模塊 4 方案設(shè)計(jì)與論證 1 課題的題出 1 國(guó)內(nèi)外發(fā)展現(xiàn)狀 關(guān)鍵詞: STC89C52; 作息時(shí)間; DS1302;仿真 西南科技大學(xué)本科生畢業(yè)論文 II Campus work schedules control system based on SingleChip Microputer Abstract: Campus work schedules control system which is mainly used in the campus, it autocontrol some switches which have periods of 24 hours. Such as the bells ringing when classes begin or finish, the time switches of lamps in teaching buildings and student dormitories, the time startup of water pump, and the tap water supply control system, etc. This article describes the characteristic of Campus work schedules control system based on SingleChip Microputer, it control system carries out the switch parameter controls all above by SCM STC89C52. It uses the clock chip called DS1302 to provide the clock information. It could show the real time with LCD Monitor. And it could modify the real time clock with the input keyboard. It also has power failure protection, to avoid inconvenience such as accidental power outages and other factors. The design reflects the overall system is simple, reliable, cheap and accurate control of time and the advantages of small size. Key words: STC89C52, Work schedules, DS1302, Simulation 西南科技大學(xué)本科生畢業(yè)論文 II 目 錄 第 1 章 緒論 ......................................................................................................................... 1 概述 并設(shè)有停電保護(hù),避免了停電等偶然因素所帶來(lái)的不便。 西南科技大學(xué)本科生畢業(yè)論文 II 本文介紹了 基于 單片機(jī) 的 校園 作息時(shí)間控制系統(tǒng) ,該控制系統(tǒng)是采用STC89C52 單片機(jī)來(lái)實(shí)現(xiàn)對(duì)上述開(kāi)關(guān)量的控制,利用 DS1302 時(shí)鐘芯片來(lái)提供時(shí)鐘信息, LCD 顯示器,實(shí)時(shí)顯示時(shí)間。 33 結(jié) 論 ................................................................................................................................. 34 致 謝 ................................................................................................................................. 35 參考文獻(xiàn) ............................................................................................................................. 36 附錄 1 系統(tǒng)原理圖 ............................................................................................................ 37 附錄 2 LCD1602 字符顯示表 ............................................................................................ 38 附錄 3 系統(tǒng)實(shí)物圖 ............................................................................................................ 39 基于單片機(jī)的校園作息時(shí)間控制系統(tǒng) 摘要 : 校園作息時(shí)間控制系統(tǒng)主要用于學(xué)校,對(duì)一些以 24 小時(shí)為周期的開(kāi)關(guān)量進(jìn)行自動(dòng)控制。 33 本章小結(jié) 31 系統(tǒng)聯(lián)調(diào)的實(shí)現(xiàn) 26 系統(tǒng)軟件仿真 25 Keil C51 24 第 5 章 系統(tǒng)仿真與硬件調(diào)試 ......................................................................................... 25 軟件調(diào)試 24 本章小結(jié) 21 輸出程序設(shè)計(jì) 19 顯示程序設(shè)計(jì) 16 輸出控制模塊設(shè)計(jì) 15 LCD1602 液晶顯示模塊 13 鍵盤接口電路設(shè)計(jì) 8 電路設(shè)計(jì) 6 本章小結(jié) 6 電路設(shè)計(jì)方案 4 顯示模塊 4 方案設(shè)計(jì)與論證 1 課題的題出 1 國(guó)內(nèi)外發(fā)展現(xiàn)狀 西南科技大學(xué)本科生畢業(yè)論文 II 目 錄 第 1 章 緒論 ......................................................................................................................... 1 概述 2 本文設(shè)計(jì)內(nèi)容與結(jié)構(gòu) 2 第 2 章 方案設(shè)計(jì)與論證 ..................................................................................................... 4 系 統(tǒng)的設(shè)計(jì)思想 4 單片機(jī)芯片 5 時(shí)鐘芯片 7 第 3 章 系統(tǒng)硬件設(shè)計(jì) ......................................................................................................... 8 主控模塊設(shè)計(jì) 8 STC89C52 單片機(jī) 10 時(shí)鐘模塊設(shè)計(jì) 11 DS1302 時(shí)鐘芯片 11 電路設(shè)計(jì) 14 顯示模塊設(shè)計(jì) 15 電路設(shè)計(jì) 17 本章小結(jié) 18 第 4 章 系統(tǒng)軟件 設(shè)計(jì) ..................................................................................................... 19 西南科技大學(xué)本科生畢業(yè)論文 II 主程序設(shè)計(jì) 19 按鍵程序設(shè)計(jì) 22 時(shí)鐘程序設(shè)計(jì) 25 Protues 仿真 27 硬件調(diào)試 29 系統(tǒng)聯(lián)調(diào) 31 聯(lián)調(diào)中問(wèn)題及分析 如上下課打鈴、教學(xué)樓照明的定時(shí)開(kāi)與關(guān)、學(xué)生宿舍燈及校園路 燈的定時(shí)開(kāi)關(guān)、水泵的定時(shí)啟動(dòng)以及自來(lái)水供水時(shí)間控制等等。系統(tǒng)設(shè)有輸入鍵盤,用以修改實(shí)時(shí)時(shí)鐘。整個(gè)設(shè)計(jì)總體體現(xiàn)了系統(tǒng)簡(jiǎn)單、工作穩(wěn)定可靠、價(jià)廉、控制時(shí)間精確及系統(tǒng)體積小等優(yōu)點(diǎn)。2 本文設(shè)計(jì)內(nèi)容與結(jié)構(gòu) 2 第 2 章 方案設(shè)計(jì)與論證 ..................................................................................................... 4 系統(tǒng)的設(shè)計(jì)思想 4 單片機(jī)芯片 5 時(shí)鐘芯片 7 第 3 章 系統(tǒng)硬件設(shè)計(jì) ......................................................................................................... 8 主控模塊設(shè)計(jì) 8 STC89C52 單片機(jī) 10 時(shí)鐘模塊設(shè)計(jì) 11 DS