【正文】
到存儲(chǔ)器單元的制定位置。 按鍵處理模塊: 按鍵處理設(shè)置為:如果沒有按鍵,則時(shí)鐘正常走下去,當(dāng)?shù)谝淮伟聪?K0 按鍵時(shí)候,進(jìn)入調(diào)分狀態(tài)時(shí)鐘停止走動(dòng),按下 K1 鍵可以對(duì)分進(jìn)行加 1 操作,按下 K2鍵的時(shí)候可以對(duì)分進(jìn)行減 1 操作。當(dāng)?shù)诙伟聪?K0 按鍵時(shí)候,進(jìn)入調(diào)小時(shí)可以對(duì)小時(shí)進(jìn)行減 1 操作。當(dāng) K0 第三次按下的時(shí)候時(shí)鐘恢復(fù)正常走動(dòng),退出調(diào)時(shí)間的模式。 電 子 時(shí) 鐘 的 設(shè) 計(jì) 與 制 作 20 整個(gè)電路原理圖: 圖九 電 子 時(shí) 鐘 的 設(shè) 計(jì) 與 制 作 21 致 謝 在設(shè)計(jì)過程中,通過針對(duì)性地查找資料,了解了些電子方面的資料,既增長了自己見識(shí),補(bǔ)充最新的專業(yè)知識(shí),又提高了自己的應(yīng)用能力。這次對(duì) AT89S51 有了一個(gè)全面的認(rèn)識(shí),在此基礎(chǔ)上結(jié)合以前所學(xué)的專業(yè)知識(shí),從而把我所學(xué)的知識(shí)貫穿到一起,對(duì)本專業(yè)有了一個(gè)更全面的認(rèn)識(shí)!總之這次畢業(yè)設(shè)計(jì)讓我把理論設(shè)計(jì)和工程實(shí)踐相結(jié)合、鞏固基礎(chǔ)知識(shí) 與培養(yǎng)創(chuàng)新意識(shí)相結(jié)合、個(gè)人作用和集體協(xié)作相結(jié)合等方面來培養(yǎng)自身的綜合素質(zhì)。這些在我今后的學(xué)習(xí)和工作當(dāng)中都會(huì)有很大的幫助。 最后,我要感謝我的指導(dǎo)老師,在這次畢業(yè)設(shè)計(jì)中給了我許多的幫助。同時(shí)也祝愿學(xué)院明天更美好。 電 子 時(shí) 鐘 的 設(shè) 計(jì) 與 制 作 22 參考文獻(xiàn) [1] 徐愛鈞.單片機(jī)原理實(shí)用教程--基于 Protrues 虛擬仿真 [M].北京 : 電子工業(yè)出版社 .20221 [2] 李萍. AT89S51 單片機(jī)、原理、開發(fā)與應(yīng)用實(shí)例 [M].北京 : 中國電力出版社. 20227 [3] 張曄、王玉民等.單片機(jī)應(yīng)用技術(shù) [M] .北京 : 高等教育出版社. 20223 [4] 付家才等.單片機(jī)控制工程實(shí)踐技術(shù) [M] .北京 : 化學(xué)工業(yè)出版社. 20225 電 子 時(shí) 鐘 的 設(shè) 計(jì) 與 制 作 23 附錄一 單 片機(jī)語言程序清單: 定時(shí)中斷子程序 : INT_T0:MOV TH0,3CH MOV TL0,0B0H 。初始化 T0,從 15536 開始計(jì)數(shù) INC TCNT 。計(jì)數(shù)器加一 MOV A,TCNT 。把計(jì)數(shù)器放入累加器 A 中 CJNE A,20,RETUNE 。判斷計(jì)數(shù)是否到了 20 了嗎? INC SECOND 。計(jì)數(shù)器到了 20,秒單元加一 MOV TCNT,0 。計(jì)數(shù)器清零 MOV A,SECOND CJNE A,60,RETUNE 。判斷秒是否到了 60 INC MINUTE 。分單元加一 MOV SECOND,0 。秒單元清零 MOV A,MINUTE CJNE A,60,RETUNE 。判斷分是否到了 60 INC HOUR MOV MINUTE,0 MOV A,HOUR CJNE A,24,RETUNE 。判斷是否到了 24 時(shí) MOV HOUR,0 。時(shí)分秒清零 MOV MINUTE,0 MOV SECOND,0 MOV TCNT,0 。計(jì)數(shù)器清零 RETUNE:RETI 。返回 T0 中斷入口 顯示子程 序 : DISPLAY:MOV A,SECOND MOV B,10 電 子 時(shí) 鐘 的 設(shè) 計(jì) 與 制 作 24 DIV AB 。判斷秒顯示單元的十位、個(gè)位 CLR MOVC A,@A+DPTR 。查顯示數(shù)據(jù)碼段 MOV P0,A 。將取到的現(xiàn)實(shí)碼送 P0 顯示 LCALL DELAY 。去抖動(dòng) SETB 。顯示秒十位 MOV A,B 。把寄存器 B 中的余數(shù)送 A 即秒個(gè)位 CLR 。清 MOVC A,@A+DPTR 。查顯示數(shù)據(jù)碼段 MOV P0,A 。將取到的現(xiàn)實(shí)碼送 P0 顯示 LCALL DELAY SETB 。顯示秒個(gè)位 CLR MOV P0,40H 。顯示分隔符 LCALL DELAY SETB MOV A,MINUTE MOV B,10 DIV AB CLR MOVC A,@A+DPTR MOV P0,A LCALL DELAY SETB MOV A,B CLR MOVC A,@A+DPTR MOV P0,A 電 子 時(shí) 鐘 的 設(shè) 計(jì) 與 制 作 25 LCALL DELAY SETB CLR MOV P0,40H LCALL DELAY SETB MOV A,HOUR MOV B,10 DIV AB CLR MOVC A,@A+DPTR MOV P0,A LCALL DELAY SETB MOV A,B CLR MOVC A,@A+DPTR MOV P0,A LCALL DELAY SETB RET 電 子 時(shí) 鐘 的 設(shè) 計(jì) 與 制 作 26 附錄 二 整個(gè)電路原理圖 : g an employment tribunal clai 電 子 時(shí) 鐘 的 設(shè) 計(jì) 與 制 作 27 Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: ? you don39。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。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept i. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。s antiracism taskforce, is in London for the Football Association39。s 150th anniversary celebrations and will attend City39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport. For me it39。s a