【正文】
electric clock, quartz clock, quartz watch are used quartz technology, so when the high accuracy, good stability, easy to use, does not require constant missioning, digital electric clock time with integrated circuit, decoding instead of mechanical transmission, with the LCD monitor instead of pointer indicates that and then display the time, reduced the timing error, this table with time, minutes and seconds show time function, also can undertake and points of proofreading, choose flexibility of good. This paper STC89C52 as the core control chip, through the LCD monitor LCD1602 realtime display time. LCD display, with the blue backlighting, the day in the sun can also very clearly see the show time, for LCD display power consumption is low, so long time work also don39。t have to worry about power consumption problems. Key word: digital electronic clock。 STC89C52RS singlechip microputer。 LCD monitor LCD1602。 目 錄 中文 摘要 ..................................................................... 錯(cuò)誤 !未定義書簽。 英文摘要 .................................................................................................... 7 1 緒論 ........................................................................ 錯(cuò)誤 !未定義書簽。 電子時(shí)鐘簡(jiǎn)介 ....................................................................... 錯(cuò)誤 !未定義書簽。 單片機(jī)的發(fā)展 ....................................................................... 錯(cuò)誤 !未定義書簽。 單片機(jī)的應(yīng)用 ....................................................................... 錯(cuò)誤 !未定義書簽。 2 總體方案設(shè)計(jì) ......................................................... 錯(cuò)誤 !未定義書簽。 系統(tǒng)框圖 ............................................................................................................ 6 顯示與按鍵控制方案 ......................................................... 錯(cuò)誤 !未定義書簽。 時(shí)鐘工作顯示與蜂鳴器電路模塊 .............................................................. 8 復(fù)位與晶振電路模塊 ......................................................... 錯(cuò)誤 !未定義書簽。 3 硬件電路設(shè)計(jì) ......................................................... 錯(cuò)誤 !未定義書簽。 單片機(jī) 的簡(jiǎn)介 ................................................................................................... 9 單片機(jī)最小系統(tǒng) .................................................................. 錯(cuò)誤 !未定義書簽。 電路設(shè)計(jì) 仿真圖 .................................................................. 錯(cuò)誤 !未定義書簽。 4 軟件設(shè)計(jì) ................................................................. 錯(cuò)誤 !未定義書簽。 主程序設(shè)計(jì) .......................................................................................................14 5 實(shí)驗(yàn)及結(jié)果 ............................................................. 錯(cuò)誤 !未定義書簽。 調(diào)試及結(jié)果分析 .................................................................. 錯(cuò)誤 !未定義書簽。 實(shí)物裝置圖 .......................................................................................................18 總結(jié) ......................................................................................................... 20 參考文獻(xiàn) ..................................................................... 錯(cuò)誤 !未定義書簽。 附錄 ......................................................................................................... 20 致謝 ............................................................................ 錯(cuò)誤 !未定義書簽。 1 緒論 電子時(shí)鐘簡(jiǎn)介 1957 年 ,Ventura 發(fā)明了世界上第一個(gè)電子表,從而奠定了電子時(shí)鐘的基礎(chǔ),電子時(shí)鐘開始迅速發(fā)展起來(lái)。現(xiàn)代的電子時(shí)鐘是基于單片機(jī)的一種計(jì)時(shí)工具,采用延時(shí)程序產(chǎn)生一定的時(shí)間中斷,用于一秒的定義,通過計(jì)數(shù)方式進(jìn)行滿六十秒分鐘進(jìn)一,滿六十分小時(shí)進(jìn)一,滿二十四小時(shí)小時(shí)清零。從而達(dá)到計(jì)時(shí)的功能,是 人民日常生活補(bǔ)課缺少的工具。 現(xiàn)在高精度的計(jì)時(shí)工具大多數(shù)都使用了石英晶體振蕩器,由于電子鐘、石英鐘、石英表都采用了石英技術(shù),因此走時(shí)精度高,穩(wěn)定性好,使用方便,不需要經(jīng)常調(diào)試,數(shù)字式電子鐘用集成電路計(jì)時(shí)時(shí),譯碼代替機(jī)械式傳動(dòng),用 LED 顯示器代替指針顯示進(jìn)而顯示時(shí)間,減小了計(jì)時(shí)誤差,這種表具有時(shí)、分、秒顯示時(shí)間的功能,還可以進(jìn)行時(shí)和分的校對(duì),片選的靈活性好。 該電子時(shí)鐘 以 STC89C52 為核心控制芯片,通過液晶顯示器 LCD1602 實(shí)時(shí)顯示時(shí)間 。 采用晶振電路作為驅(qū)動(dòng)電路,由延時(shí)程序和循環(huán)程序產(chǎn)生的一秒定時(shí),達(dá)到 時(shí)分秒的計(jì)時(shí),六十秒為一分鐘,六十分鐘為一小時(shí),滿二十四小時(shí)為一天。電路中 有四個(gè)控制鍵 擁有 不同的功能, 一個(gè)是按鍵復(fù)位鍵,其它三個(gè) 按 鍵可以調(diào)節(jié)時(shí)間,分別為選中區(qū)段鍵、數(shù)字加一和 下 數(shù)字減一鍵。 單片機(jī)的發(fā)展 單片微型計(jì)算機(jī)是微型計(jì)算機(jī)的一個(gè)重要分支,也是一種非?;钴S和頗具有生命力的機(jī)種。單片微型計(jì)算機(jī)簡(jiǎn)稱單片機(jī),特別適用于工業(yè)控制領(lǐng)域,因此又稱為微控器。 1971 年微處理器研制成功不久,就出現(xiàn)了單片微型計(jì)算機(jī)即單片機(jī),但最早的單片機(jī)是 一 位的,處理能力有限。 果將 8 位單片機(jī)的推出作為起點(diǎn),那么單片機(jī) 的發(fā)展歷史大致可以分為以下幾個(gè)階段: 第一階段 ( 1976—1978) :?jiǎn)纹瑱C(jī)的探索階段。以 Intel 公司的 MCS48 為代表。MCS48 的推出是在工控領(lǐng)域的探