【正文】
nd himself has already can39。那些曾經(jīng)所謂的非做 不可,只是青蔥年華里自己給自己注射的一支強(qiá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. 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. 一個(gè)人的時(shí)候,自己的想法總是特別地清晰。 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。 temp5[1]=duan[num5/10%10]。 if(num3==0) { P0=0x3f。 } if(key2==0) { temp2[0]=duan[num2%10]。 if(a==20) { a=0。 for(i=0。break。 } while(!JIAGE)。 if(JIASHI==0) { num5=num5+10。 while(!JIAQIAN)。 } delay(6)。 } P0=temp3[i]。 } } } if(key3==0) { delay(10)。i++) { switch(i) { 18 case 0:P1=0xfe。 case 3:P1=0xf7。 for(i=0。 TMOD=0x01。 sbit JIAQIAN=P2^4。char temp5[4],a。在軟 件調(diào)試過程中,我學(xué)會(huì)不少的東西,掌握一些調(diào)試軟件的方法。再利用 Proteus軟件進(jìn)行仿真。如果運(yùn)行測試結(jié)果與預(yù)期不符,很容易根據(jù)故障現(xiàn)象判斷故障原因并采取針對(duì)性措施排除故障。如圖 8 所示。在本設(shè)計(jì)中,為了減少端口資源,降低電能消耗,采用的是動(dòng)態(tài)顯示方法。 led 數(shù)碼管常用段數(shù)一般為 7 段有的另加一個(gè)小數(shù)點(diǎn),還有一種是類似于 3位 “+1” 型。當(dāng)系統(tǒng)處于正常工作狀態(tài)時(shí),且振蕩器穩(wěn)定后,如果 RST引腳上有一個(gè)高電平并維持 2 個(gè)機(jī)器周期 (24 個(gè)振蕩周期 )以上,則 CPU 就可以響應(yīng)并將系統(tǒng)復(fù)位。電路中兩個(gè)電容 C C2 的作用有兩個(gè):一是幫助振蕩器起振;二是對(duì)振蕩器的頻率進(jìn)行微調(diào)。掉電保護(hù)方式下, RAM 內(nèi)容被保存,振蕩器被凍結(jié),單片機(jī)一切工作停止,直到下一個(gè)中斷或硬件復(fù)位為止。 方案對(duì)比與選擇 比較兩個(gè)方案,我們發(fā)現(xiàn),方案二總體比方案一好。 1 方案論證與對(duì)比 現(xiàn)在,在許多領(lǐng)域中,定時(shí)器得到了廣泛的應(yīng)用,比如在體育比賽中的計(jì)時(shí)器;游戲中的 倒計(jì)時(shí);紅綠燈,交通控制器,鬧鐘等等。 xxxxxxxxxxx 學(xué) 校 課程設(shè)計(jì)報(bào)告 課程名稱 :單片機(jī)原理及應(yīng)用課程設(shè)計(jì) 設(shè)計(jì)題目 : 倒計(jì)時(shí)器 系 別: 通信與控制工程系 專 業(yè): 電子信息工程 班 級(jí): 10 級(jí)電信 2 班 學(xué)生姓名 : 張帆 杜斌 學(xué) 號(hào) : 1040920 10409221 起止日期 : 2021 年 12 月 24 日 ~ 2021 年 1月 6日 指導(dǎo)教師 : 教研室主任: 摘 要 本系統(tǒng)采用 STC89C52 作為主控芯片 ,設(shè)計(jì)一款的倒計(jì)時(shí)器 ,該倒計(jì)時(shí)器能在數(shù)碼管顯示倒計(jì)時(shí)的時(shí)間,時(shí)間可由按鍵進(jìn)行設(shè)定, 4位數(shù)碼管做顯示,能夠?qū)崿F(xiàn) 5 種倒計(jì)時(shí)模式,通過控制按鍵進(jìn)行選擇 9999s0s、 999s0s、 99s0s、 9s0s、開 始值由人工輸入 0s 的特點(diǎn)??梢姷褂?jì)時(shí)器在社會(huì)中的重要性。首先方案一雖然硬件電路簡單,但造價(jià)較高,且在編寫程序?qū)崿F(xiàn)所要求的功能時(shí)較難,而方案二所用的顯示模塊是比較熟悉的數(shù)碼管,編寫程序是相對(duì)容易,且電路造價(jià)不高,因此,綜合考慮之后決定采用方案二。最高運(yùn)作頻率35MHz, 6T/12T 可選。本系統(tǒng)的 C C2的值為 30pf。單片機(jī)系統(tǒng)的復(fù)位方式有:手動(dòng)按鈕 復(fù)位和上電復(fù)位。位數(shù)有半位, 1, 2, 3, 4, 5, 6, 8, 10 位等等 ...., led 數(shù)碼管 5 根據(jù) LED 的接法不同分為共陰和共陽兩類,了解 LED 的這些特性,對(duì)編程是很重要的,因?yàn)椴煌愋偷臄?shù)碼管,除了它們的硬件電路有差異外,編程方法也是不同的 。本系統(tǒng)的倒計(jì)時(shí)時(shí)間的最大范圍是 9999S,要顯示出最大范圍的值,從而可知數(shù)碼管顯示電路要用到 4 位數(shù)碼管。 圖 8定時(shí)器 0的中斷程序流程圖 開始 初始化及 T0 中斷設(shè)定 設(shè)置堆棧指針 計(jì)數(shù)器預(yù)清零 設(shè)置計(jì)數(shù)器初值 開中斷允許 等待中斷 8 4 系統(tǒng)功能測試 硬件調(diào)試的主要任務(wù)是排除硬件故障,其中包括設(shè)計(jì)錯(cuò)誤和工藝性故障。開始時(shí),數(shù)碼管的亮度不夠理想 。 經(jīng)過仿真和實(shí)際測試,在實(shí)際使用時(shí)完全沒有閃爍。在設(shè)計(jì)仿真圖和設(shè)計(jì)電路圖中,對(duì)Proteus、 Keil 和 Protel 等軟件掌握的更加牢固,而且所設(shè)計(jì)的基于單片機(jī)的倒計(jì)時(shí)器,精確度高,達(dá)到了應(yīng)用要求 這次課程設(shè)計(jì)使我掌握了很多實(shí)踐知識(shí),在老師和同學(xué)的幫助下對(duì)單片機(jī)有了進(jìn)一步的了解。 char code duan[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07, 0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}。 sbit JIABAI=P2^5。 TH0=(6553650000)/256。i4。break。break。 if(key3==0) { key3=0。 delay(6)。 } } if(key5==0) { delay(10)。 } if(JIABAI==0) {