【正文】
指導(dǎo)教師: 年 月 日 數(shù)字鐘設(shè)計(論文) 2 論文 /設(shè)計 /報告原創(chuàng)性聲明 本人鄭重聲明:所呈交的論文 /設(shè)計 /報告是本人在導(dǎo)師的指導(dǎo)下進行研究所取得的研究成果。除了論文 /設(shè)計 /報告中特別加以標注引用的內(nèi)容外,本論文 /設(shè)計 /報告不包含任何其他個人或集體已經(jīng)發(fā)表或撰寫的成果作品。 作者簽名: 年 月 日 論文 /設(shè)計 /報告版權(quán)使用授權(quán)書 本論文 /設(shè)計 /報告作者完全了解學校有關(guān)保障、使用學位論文 /設(shè)計 /報告的規(guī)定,同意學校保留并向有關(guān)論文 /設(shè)計 /報告管理部門或機構(gòu)送交論文 /設(shè)計 /報告的復(fù)印件和電子版,允許論文 /設(shè)計 /報告被查閱和借閱。 本論文 /設(shè)計 /報告屬于 保密 □,在 _________年解 密后適用本授權(quán)書。 (請在以上相應(yīng)方框內(nèi)打“√”) 作者本人簽名: 年 月 日 指導(dǎo)教師簽名: 年 月 日 數(shù)字鐘設(shè)計(論文) 3 目錄 一、前言 ................................................. 5 二、設(shè) 計方案的選擇與論證 ................................... 7 ( 1)設(shè)計方案的選擇 ..................................... 7 ( 2)單片機型號的選擇 ................................... 7 三、結(jié)構(gòu)與功能介紹 ........................................ 8 四、系統(tǒng)原理設(shè)計 ......................................... 10 五、硬件設(shè)計 ............................................. 11 ( 1)總體介紹 ................................................... 11 ( 2)數(shù)字鐘電路清單明細表如下: .................................. 11 ( 3)控制部分 ................................................... 14 ( 4)數(shù)碼管顯示部分 ............................................. 15 ( 5)原理圖 ..................................................... 17 ( 6) PCB 圖 ..................................................... 18 ( 7)實物圖以及調(diào)試 ............................................. 19 六、軟件設(shè)計 ............................................. 20 ( 1)總的設(shè)計思想 ............................................... 20 ( 2)中斷程序設(shè)計概述 ........................................... 22 ( 3)設(shè)計程序的流程圖 ........................................... 22 ( 4)系統(tǒng)框圖 ................................................... 25 ( 5)軟件消抖 ................................................... 26 七、程序的下載 ........................................... 27 八、程序代碼 ............................................. 29 九、 課程設(shè)計心得體會 ................................... 36 致 謝 ....................................... 錯誤 !未定義書簽。 本文介紹了基于單片機的數(shù)字鐘的設(shè)計,詳細討論 了它從軟件上實現(xiàn)的過程,重點在時鐘調(diào)整的方式:查詢和中斷的比較,然后,對數(shù)字鐘的穩(wěn)定性和精確性作了相關(guān)的討論。本設(shè)計的軟件,硬件都采用模塊化的設(shè)計方法,提高了設(shè)計的效率。系統(tǒng)由 AT89C5 LED 數(shù)碼管、按鍵、 二極管、三極管、 SN74LS224N、晶振管、 電阻等組成。 關(guān)鍵字:單片機,數(shù)字鐘,數(shù)據(jù)緩沖 數(shù)字鐘設(shè)計(論文) 5 Preface In recent years, with puters in the in filtration and the development of largescale integrated circuits. SCM application is steadily deepening, as it has strong function, small size, low power dissipation, low prices, reliable, easy to use features, it is particularly suited to and control of the system, increasingly widely used in automatic control, intelligent instruments, gauges, data acquisition, military products and household appliances, and other areas, is often microcontroller as a core ponent to use, In light of specific hardware architecture, and applicationspecific software features object bine to make perfect. This article introduced revivification of digital clocks, discussed it since the implementation of the process of software, the emphasis on the adjustment of query and disrupted : , then, is digital clocks stability and precision for the relevant discussions. System uses AT89C52 monolithic integrated circuits to control to AT89C52 at the core, it through the systematic processing and coordination functions, the design of our pany used atmel AT89C52 chip, the powerful functions, patibility and supporting software choice of space and the two electricity way. the design of software, hardware use modular design, improving the efficiency. The design of a function of the clock shows the time of the system design, a bination of converting data to display, digital control display, monolithic integrated circuits disruptions. the system, led by AT89C52 the tube, buttons, and, triode, SN74LS224N, crystal mind and its resistance. to achieve such form as the clock, and second, it is time to set. Keyword : monolithic integrated circuits, digital clocks, and data buffers. 數(shù)字鐘設(shè)計(論文) 6 二、 設(shè)計方案的選擇與論證 ( 1) 設(shè)計方案的選擇: 該課題主要有兩種方案:一種是用數(shù)字電路通過硬件實現(xiàn),另一種是用單片機通過軟件編程實現(xiàn)。第一種一切都由硬件實現(xiàn),幾乎沒有軟件編程,但電路復(fù)雜、芯片 多、后續(xù)制板及硬件調(diào)試麻煩而且成本高;第二種雖電路簡單、芯片少、成本低,但編寫程序相當復(fù)雜。 另外用單片機實現(xiàn)本設(shè)計也有兩種可選的子方案