【正文】
..................................................................................................................94 軟件設(shè)計(jì)部分 .................................................................................................................................9 軟件編程思路 ......................................................................................................................................9 電路的仿真........................................................................................................................................10 ....................................................................................................................10..........................................................................................................................10 電路調(diào)試.............................................................................................................................................10..........................................................................................................................................10..........................................................................................................................................10 5 結(jié)論 ......................................................................................................................................................10謝 辭 ........................................................................................................................................................11參考文獻(xiàn) ...................................................................................................................................................12附 錄........................................................................................................................................................13附錄一:原理圖...................................................................................................................................13附錄二:PCB 圖....................................................................................................................................14附錄三:程序代碼.............................................................................................................................15 第 1 頁 共 26 頁引言21 世紀(jì),電子技術(shù)獲得了飛速的發(fā)展,在其推動(dòng)下,現(xiàn)代電子產(chǎn)品幾乎滲透了社會(huì)的各個(gè)領(lǐng)域,有力地推動(dòng)了社會(huì)生產(chǎn)力的發(fā)展和社會(huì)信息化程度的提高,同時(shí)也使現(xiàn)代化電子產(chǎn)品性能進(jìn)一步提高,產(chǎn)品更新?lián)Q代的節(jié)奏也越來越快。關(guān)鍵詞:單片機(jī)AT89S52;液晶顯示1602;按鍵AbstractElectronic clock is a very extensive daily timing tool , more and more popular in modern society . It can be achieved on the year, month , date, day , hour, minute , seconds chronograph and other functions . Intuitive digital display digital clock , also has a time calibration functions. This circuit uses AT89S52 microcontroller as the core , low power consumption , can work in lowvoltage 3V voltage can choose 3 ~ 5V voltage supply.The hardware of the system by the AT89S52 microcontroller , some 1062 LCD monitor, keyboard , buzzer systems and other accessories. Software part in keil environment with C51 language, including the time display, time proofreading.Based on the principle of singlechip technology , chip AT89C52 microcontroller as the core controller , and a software program produced by the preparation of the hardware circuit , designed to create a simple digital clock system. Singlechip LCD display is used to display the extended seconds, minutes , hours, day, date, month, year counting unit value. The whole design consists of two parts: hardware and software ponents , microcontroller as the core , with some peripheral circuits and software. Hardware is the foundation of the entire system, the software part will have reasonable and adequate to support the use of systems and hardware ,thus pleting the system to plete the task .Keywords: Microcontroller AT89S52。整個(gè)設(shè)計(jì)包括兩大部分:硬件部分和軟件部分,以單片機(jī)為核心,配以一定的外圍電路和軟件?;趩纹瑱C(jī)技術(shù)原理,以單片機(jī)芯片AT89C52作為核心控制器,通過硬件電路的制作以及軟件程序的編制,設(shè)計(jì)制作出一個(gè)簡易數(shù)字時(shí)鐘系統(tǒng)。本系統(tǒng)硬件部分由AT89S52單片機(jī)、1062液晶顯示器、鍵盤、蜂鳴器系統(tǒng)等部分構(gòu)成。數(shù)字時(shí)鐘采用直觀數(shù)字顯示,還具有時(shí)間校準(zhǔn)等功能。編號(hào): 課程設(shè)計(jì)說明書題 目: 基于單片機(jī)的數(shù)字時(shí)鐘 院 (系): 信息與通信學(xué)院 專 業(yè): 電子信息工程 學(xué)生姓名: 學(xué) 號(hào): 指導(dǎo)教師: 2022 年 12 月 03 日摘 要電子時(shí)鐘是一種非常廣泛日常計(jì)時(shí)工具,對(duì)現(xiàn)代社會(huì)越來越流行。它可以實(shí)現(xiàn)對(duì)年、月、日、星期、時(shí)、分、秒進(jìn)行計(jì)時(shí)等多種功能。該電路采用AT89S52單片機(jī)作為核心,功耗小,能在3V的低壓工作,電壓可選用35V電壓供電。軟件部分在keil環(huán)境下用C51語言編寫,包括時(shí)間顯示、時(shí)間校對(duì)。單片機(jī)擴(kuò)展的LCD顯示器用來顯示秒、分、時(shí)、星期、日、月、年計(jì)數(shù)單元中的值。硬件是整個(gè)系統(tǒng)的基礎(chǔ),軟件部分則要合理、充分地支持和使用系統(tǒng)的硬件,從而完成系統(tǒng)所要完成的任務(wù)。 LCD 1602。時(shí)鐘,自它被發(fā)明的那天起,就成為人類的朋友?,F(xiàn)代生活的人們?cè)絹碓街匾暳藭r(shí)間觀念,可以說是時(shí)間和金錢劃上了等號(hào)。目前,單片機(jī)正朝著高性能和多品種方向發(fā)展趨勢(shì)將是進(jìn)一步向著 CMOS 化、低功耗、小體積、大容量、高性能、低價(jià)格和外圍電路內(nèi)裝化等幾個(gè)方面發(fā)展。從前必須由模擬電路或數(shù)字電路實(shí)現(xiàn)的大部分功能,現(xiàn)在已能用單片機(jī)通過軟件方法來實(shí)現(xiàn)了。單片機(jī)模塊中最常見的是數(shù)字時(shí)鐘。 本時(shí)鐘還具有環(huán)保、走時(shí)無噪音、低功耗等非實(shí)時(shí)時(shí)鐘不具有的功能。本文主要介紹用單片機(jī)內(nèi)部的定時(shí)/計(jì)數(shù)器來實(shí)現(xiàn)電子時(shí)鐘的方法,本設(shè)計(jì)由單片機(jī) AT89S52 芯片和 LCD1602 為核心,輔以必要的電路,構(gòu)成了一個(gè)單片機(jī)數(shù)字時(shí)鐘。三種方案相比較,方案三使用芯片過多,線路繁瑣,方案二顯示電路需要多個(gè)三極管輔助驅(qū)動(dòng),電路復(fù)雜,相比之下