【正文】
CT…………………………………………………………………………….……IV1. 系統(tǒng)方案…………………………………………………………………………….…..I系統(tǒng)概述設(shè)計任務(wù)書……………………………………………………….……………I摘要……………………………………………………………………………….…….……IIIABSTRACT…………………………………………………………………………………..IV1. 系統(tǒng)方案………………………………………………………………………….………1 系統(tǒng)概述………………………………………………………………….…………1 方案論證…………………………………………………………………………….1 擴展功能…………………………………………………………………………….22. 設(shè)計過程………………………………………………………………………………….2 設(shè)計原理………………………………………………………………………… …2 所需元器件……………………………………………………………………….…23. 電路與程序………………………………………………………………………….…….2 電路設(shè)計……………………………………………………………………………2 程序設(shè)計……………………………………………………………………………3 程序流程圖………………………………………………………………….3 主要程序分析……………………………………………………………….7 參考文獻……………………………………………………………………………64. 總結(jié)體會…………………………………………………………………………………..16 系統(tǒng)方案 系統(tǒng)概述本系統(tǒng)可模擬電子時鐘,實現(xiàn)時鐘,秒表,倒計時定時器功能,主從CPU數(shù)據(jù)處理、鍵盤控制與數(shù)據(jù)顯示。 The system uses MCU with time, the school features such as the digital clock, SCM AT89C51 is also used as the core ponents of the LED digital display dynamic display when and points and seconds of the modern time device . Compared with the traditional mechanical watches, it has a precise path that intuitive, and other characteristics. In addition a school function, stopwatch function, and the timer function to achieve MCU use of the digital clock with programming flexibility to facilitate the expansion of functional advantages. Key words: digital clock system。關(guān)鍵詞:數(shù)字鐘系統(tǒng); 單片機;數(shù)碼管顯示Digital clock system Abstract SCM in multifunction digital clock in the application is already very mon, people on the digital clock function and are very familiar with the work order. But very few know that its internal structure and working principles. SCM as a digital clock from the core controller, it can achieve the clock signal timing, its time data by the MCU output, use of monitors displayed. Keyboard can be carried out at the school, timing, and other functions. Output devices can be used liquid crystal display monitors and digital technology to display the technology. 與傳統(tǒng)機械表相比,它具有走時精確,顯示直觀等特點。輸出設(shè)備顯示器可以用液晶顯示技術(shù)和數(shù)碼管來顯示技術(shù)。由單片機作為數(shù)字鐘的核心控制器,可以通過它的時鐘信號進行實現(xiàn)計時功能,將其時間數(shù)據(jù)經(jīng)單片機輸出,利用顯示器顯示出來?;趩纹瑱C的數(shù)字時鐘摘 要單片機在多功能數(shù)字鐘中的應(yīng)用已是非常普遍的,人們對數(shù)字鐘的功能及工作順序都非常熟悉。但是卻很少知道它的內(nèi)部結(jié)構(gòu)以及工作原理。通過鍵盤可以進行校時、定時等功能。 本系統(tǒng)利用單片機實現(xiàn)具有計時、校時等功能的數(shù)字時鐘,是以單片機AT89C51為核心元件同時采用LED數(shù)碼管顯示器動態(tài)顯示“時”,“分”,“秒”的現(xiàn)代計時裝置。另外具有校時功能,秒表功能,和定時器功能,利用單片機實現(xiàn)的數(shù)字時鐘具有編程靈活,便于功能的擴充等優(yōu)點。 SCM。主控系統(tǒng)能響應(yīng)按鍵,并對其進行相應(yīng)的處理,再把其對應(yīng)的結(jié)果數(shù)據(jù)在數(shù)碼管LED上顯示。2.具有校時功能,具體方法:設(shè)置三個按鈕,其中兩個按鈕分別對“時”、“分”進行校時,另一個按鈕則實現(xiàn)對“秒”位清零: