【正文】
....................................................................... 15 數(shù)碼管顯示模塊 ........................................................................... 19 定時器計數(shù)器 T0 中斷服務程序: ............................................ 19 按鍵處理模塊: ........................................................................... 19 整個電路原理圖: ....................................................................... 20 致謝 ……… ……… ……………………………… … ………………………… 20 參考文獻 … ……… … …………………… ……… …… ……… …………………… 21 附錄一、源程序代碼 …………………………… ……… .…… ...…………………… 22 附錄 二 、 電路圖 ……………………………… ……… ……… .……………………… 26 電 子 時 鐘 的 設 計 與 制 作 1 引 言 近年來隨著計算機在社會領域的滲透和大規(guī)模集成電路的發(fā)展,單片機的應用正在不斷地走向深入,由于它具有功能強,體積小,功耗低,價格便宜,工作可靠,使用方便等特點,因此特別適合于與控制有關的系統(tǒng),越來越廣泛地應用于自動控制,智能化儀器,儀表,數(shù)據(jù)采集,軍工產(chǎn)品以及家用電器等各個領域,單片機往往十作為一個核心部件來使用,在根據(jù)具體硬件結構,以及針對具體應用對象特點的軟件結合,以作完善。 電 子 時 鐘 的 設 計 與 制 作 鄭州輕院輕工職業(yè)學院 專科畢業(yè)設計(論文) 題 目 電子時鐘的設計與制作 學生姓名 王 愛 鋒 專業(yè)班級 08 級電子信息工程技術一班 學 號 0 8 1 0 3 1 8 2 系 別 機 電 工 程 系 指導教師 (職稱 ) 趙文麗(講師) 完成時間 2022 年 4 月 15 日 電 子 時 鐘 的 設 計 與 制 作 摘 要 基于 51 單片機可校時數(shù)字時鐘電路設計,單片機計 算機即單片微型計算機。 本設計由單片機 AT89S51芯片和 LED數(shù)碼管為核心,輔以必要的電路,構成了一個單片機數(shù)字時鐘。 74LS245 的工作原理和方法,LED 的內(nèi)部結構。空閑模式下, CPU 暫停工作,而 RAM定時計數(shù)器,串行口,外中斷 系統(tǒng)可繼續(xù)工作,掉電模式凍結振蕩器而保存 RAM的數(shù)據(jù),停止芯片其它功能直至外中斷激活或硬件復位。 時鐘頻率 033MHz 軟件設置空閑和省電功能 4. 全雙工串行口: 89S51 內(nèi)置一個全雙工串行通信口,用于與其它設備間的串行數(shù)據(jù)傳送,該串行口既可以用作異步通信收發(fā)器,也可以當同步移位器使用。 RESET 由高電平下降為底電平后,系統(tǒng)即從 0000H 地址開始執(zhí)行程序。如 EA 為低電平,則部管地址大小,一律 讀取外部程序存儲器指令。 3. 當片選端低電平有效時, DIR=0,信號由 B 向 A 傳輸:(接收) .DIR=1,信號由向 B 傳輸:(發(fā)送)當片為高電平時, A、 B 均為高阻態(tài)。 共陰極 7 段 LED 顯示數(shù)字 0 ~ F、文字、符號及小數(shù)點的編碼( a 段為最地位,dp 點為最高位) 共陰極 7 段 LED 顯示字型編碼表 顯示字符 共陰極段選碼 顯示字符 共陰極段選碼 0 3FH 5 6DH 1 06H 6 7DH 2 5BH 7 07H 3 4FH 8 7FH 4 66H 9 6FH 滅 00H 表一 LED 顯示器接口及顯示方式 LED 顯示器有靜態(tài)顯示方式和動態(tài)顯示方式兩種。要想每位顯示不同的字符,就必須采用掃描方法流點亮各位 LED,即在每一瞬間只使某一位顯示字符。 . 數(shù)碼管使用條件: 1. 段及小數(shù)點上加限流電阻 2. 使用電壓:段:根據(jù)發(fā) 光顏色決定; 小數(shù)點:根據(jù)發(fā)光顏色決定 電 子 時 鐘 的 設 計 與 制 作 10 3. 使用電流:靜態(tài):總電流 80mA(每段 10mA);動態(tài):平均電流 45mA 峰值電流 100mA。 2. 時鐘脈沖用石英晶體諧振器,與其它元件配合產(chǎn)生標準脈沖信號,廣泛用于數(shù)字 電路中。例如: 47nJ100 表示容量為 47nF 或 F,誤差為177。例如:333 表示 33000pF 或 F; 229 表示 。例如, 3300 就是 3300pF也可以是 332, 就是 等。安裝的時候,要使電容的標識、類別、容量、耐壓等。 177。 (請思考為什么 )共陰接法要用 OC端驅(qū)動,而共陽接法要用 OE端驅(qū)動。 電 子 時 鐘 的 設 計 與 制 作 15 5 電路 制作 原理 制作 分析 通常通過單片機設計電子時鐘由 2 種方 法:一時通過單片機內(nèi)部的定時計數(shù)器。由定時器,計數(shù)器采用中斷方式處理,因此還用辨析定時器,中斷服務子程序,在定時器,計數(shù)器中斷服務子程序中對時鐘進行調(diào)整。分單元加到 60的時候,則對時單元加 1,同時分單元清零,時單元加到 24 的時候則對時單元清零,標志一天時間計滿。 最后,我要感謝我的指導老師,在這次畢業(yè)設計中給了我許多的幫助。計數(shù)器清零 MOV A,SECOND CJNE A,60,RETUNE 。返回 T0 中斷入口 顯示子程 序 : DISPLAY:MOV A,SECOND MOV B,10 電 子 時 鐘 的 設 計 與 制 作 24 DIV AB 。查顯示數(shù)據(jù)碼段 MOV P0,A 。s antiracism taskforce, is in London for the Football Association39。 May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it. 一字開頭的年齡已經(jīng)到了尾聲。t want to give vent to out your inner voice can be in the high school children of the feelings in a period, but was eventually infarction when graduation party in the throat, later again stood on the pitch he has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already can39。那些曾經(jīng)所謂的非做不可,只是青蔥年華里自己給自己注射的一支強心劑,或者說,是自以為是的精神寄托罷了。ll be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. It will be like he is diving into the shallow end. Skydiver preps for the big jump When he jumps, he is expected to reach the speed of sound 690 mph (1,110 kph) in less than 40 seconds. Like hitting the top of the water, he will begin to slow as he approaches the more dense air closer to Earth. But this will not be enough to stop him pletely. 電 子 時 鐘 的 設 計 與 制 作 30 If he goes too fast or spins out of control, he has a stabilization parachute that can be deployed to slow him down. His team hopes it39。 Have declared the end of the encounter that haven39。s time, your ideas are always special to clear. Want, want, line is clear, as if nothing could shake his. Also once seemed to be determined to do something, but more often is he backed out at last. Dislike his cowardice, finally found that there are a lot of love, there are a lot of miss, like shadow really have been doomed. Those who do, just green years oneself give oneself an arm injection, or is a selfrighteous spiritual. 一個人的時候,自己的想法總是特別地清晰。 The end of our life, and can meet many things really do? 而窮盡我們的一生,又能遇到多少事情是真正地非做不可? During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found that those things are optional。s 21 win. Michel Platini, president of European football39。t agree with the disciplinary action your employer has taken against you ? your employer dismisses you and you think that you have been dismissed unfairly. For more information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。去抖動 SETB 。判斷分是否到了 60 INC HOUR MOV MINUTE,0 MOV A,HOUR CJNE A,24,RETUNE 。計數(shù)器加一 MOV A,TCNT 。當 K0 第三次按下的時候時鐘恢復正常走動,退出調(diào)時間的模式。在本系統(tǒng)中數(shù)碼管顯示采用軟件譯碼動態(tài)顯示。通常對時鐘精確度要求較高的場合。 上拉電阻最小值 R?。?5v/47mA=106 歐姆 (如果小于這個電阻,管子就會過飽和而沒有意義了。 30 +20 10 +80