【正文】
河南理工大學畢業(yè)設計(論文)說明書 I 摘要 在現如今快節(jié)奏的生活中,人們對于時間的要求越來越苛刻,很多時候都需要對時間進行規(guī)劃,然后到時間點就要有時間提 醒,這就必須用到時鐘提醒裝置,亦可稱為打鈴裝置。打鈴裝置有很多 種 ,比如手機的打鈴系統(tǒng),鬧鐘的機械打鈴裝置,廣播打鈴系統(tǒng)等等,但是日常生活中見得最多的還是校園的自動打鈴系統(tǒng)。在學校生活中,每天上下課都離不開打鈴系統(tǒng)的使用。打鈴器可以為上下課的學生和老師們提供時間提醒,有利于師生對上課和學習的合理安排,同時,也可作為一個提醒學生們作息時間的時間表,讓老師和學生都能有一個規(guī)律和科學的時間安排。因此,打 鈴 系統(tǒng)的核心部分也是時鐘部分,為系統(tǒng)提供時間基準。 本設計主要是針對適用于校園打鈴系統(tǒng)要求的,其介紹了一種基于單片機的自動打鈴系統(tǒng)的設計方法,系統(tǒng)以 AT89S51 單片機為控制器,以 DS1307 時鐘芯片為系統(tǒng)提供時間,并在液晶顯示器上顯示,通過按鍵可以設定定時打鈴時間和打鈴的時間間隔。系統(tǒng)軟件設計采用 C語言來完成, C語言語法簡潔,使用方便,用于完成軟件設計非常方便。本文提出的設計方法電路簡單、成本低廉、實用性強。 關鍵字: 打鈴器、 AT89S51 單片機 、 DS130液晶顯示器 河南理工大學畢業(yè)設計(論文)說明書 II Abstract Now fastpaced life, the time more and more demanding, often need time to plan and then to the point in time there should be reminded, which must be used to clock reminder can also be calledrang the bell device. Rang the bell device are many, such as the phone rang the bell system, mechanical bell device of the alarm clock, radio bell systems, etc., but in daily life appear or campus automatic bell system. In school life, the last class of the day are inseparable from the bell system. The bell can provide time for the last class of students and teachers to remind conducive to a reasonable arrangement of the teachers and students to school and learning, but also as a reminder of the schedule of the students schedule, so that teachers and students cana law and scientific timing. Therefore, the core part is the clock part of the bell system, the system provides a time reference. This design is mainly for the applicable requirements of the campus bell system, introduced a microcontrollerbased automatic bell system design method, the system controller is AT89S51 SCM , the DS1307 clock chip provide the system with time, and the LCD displayed on the monitor button can set the time interval of the timer rang the bell time and rang the bell. System software design using C language, C language syntax is simple, easy to use, very convenient to be used to plete the software design. This paper presents the design circuit is simple, low cost, and practical. Key words: Rang the bell AT89S51 SCM the DS1307 LCD monitors 河南理工大學畢業(yè)設計(論文)說明書 III 目錄 摘要 ............................................................................................................................................. I Abstract ...................................................................................................................................... II 1 緒論 ........................................................................................................................................ 1 選題目的及意義 .............................................................................................................. 1 技術發(fā)展概況 .................................................................................................................. 1 論文內容與結構 .............................................................................................................. 3 2 方案設計 ................................................................................................................................ 4 方案比較與選擇 .............................................................................................................. 4 系統(tǒng)方案選擇 ........................................................................................................ 4 時鐘芯片選擇 ........................................................................................................ 4 顯示器件選擇 ........................................................................................................ 5 設計方案 ......................................................................................................................... 5 3 系統(tǒng)硬件設計 ........................................................................................................................ 7 硬件電路圖 ..................................................................................................................... 7 時鐘電路 ......................................................................................................................... 7 DS1307 簡介 ........................................................................................................... 7 時鐘電路設計 ........................................................................................................ 8 按鍵電路 ......................................................................................................................... 8 單片機電路 ..................................................................................................................... 9 單片機簡介 ............................................................................................................ 9 單片機最小系統(tǒng)電路 .............................................................................................13 顯示電路 ........................................................................................................................14 打鈴電路 ........................................................................................................................15 4 系統(tǒng)軟件設計 ...................................................................................................................... 17 軟件設計流程圖 .............................................................................................................17 讀取 DS1307時間程序設計 .............................................................................................18 顯示程序設計 .................................................................................................................19 按鍵設定程序設計 ..........................................................................................................22 5 系統(tǒng)調試 ....................................................................................