【正文】
時(shí)初值的增加。:和LED5相連,用于顯示單片機(jī)的工作狀態(tài)。在系統(tǒng)按鍵的相應(yīng)作用下,K1實(shí)現(xiàn)倒計(jì)時(shí)初值的增加,K2實(shí)現(xiàn)倒計(jì)時(shí)初值的減少,K3則實(shí)現(xiàn)計(jì)時(shí)與倒計(jì)時(shí)兩種狀態(tài)的切換。電子秒表的軟件設(shè)計(jì)主要有三個(gè)方面:第一是利用定時(shí)器來完成秒表的定時(shí)周期;第二是利用定時(shí)中斷來實(shí)現(xiàn)鍵盤的掃描,確定單片機(jī)的工作狀態(tài);第三是利用單片機(jī)控制LED的輸出顯示。表41 主要變量定義變量說明m整型變量,用于存儲(chǔ)要顯示的數(shù)ms字符型變量,用于10ms的累加LED1~LED4整型變量,用于存儲(chǔ)要顯示的各個(gè)位的數(shù)字start位變量,用于控制秒表單一計(jì)時(shí)模式的計(jì)時(shí)開始stop位變量,用于控制秒表單一計(jì)時(shí)模式的計(jì)時(shí)停止eight_start位變量,用于控制秒表連續(xù)計(jì)時(shí)8次模式的計(jì)時(shí)開始 eight_stop位變量,用于控制秒表連續(xù)計(jì)時(shí)8次模式的計(jì)時(shí)停止count_down位變量,用于控制倒計(jì)時(shí)開始scankey位變量,用于控制鍵盤掃描cheak位變量,按鍵的消抖標(biāo)志位keydown位變量,K1的按下標(biāo)志位K2_keydown位變量,K2的按下標(biāo)志位表42 主要變量定義K3_keydown位變量,K3的按下標(biāo)志位K3_keyup位變量,K3的彈起標(biāo)志mm字符型變量,add位變量,倒計(jì)時(shí)初值加1標(biāo)志位sub位變量,位變量,倒計(jì)時(shí)初值減1標(biāo)志位bit_add1位變量,K1完成一次按鍵動(dòng)作的標(biāo)志位bit_sub位變量,K1完成一次按鍵動(dòng)作的標(biāo)志位fast_add位變量,倒計(jì)時(shí)初值連續(xù)增標(biāo)志位double_key位變量,倒計(jì)時(shí)初值快速增標(biāo)志位fast_sub位變量,倒計(jì)時(shí)初值連續(xù)減標(biāo)志位double_sub位變量,倒計(jì)時(shí)初值連續(xù)減標(biāo)志位tab[8]整型變量,存儲(chǔ)連續(xù)計(jì)時(shí)8次模式的8的時(shí)間值 程序流程圖 主程序完成的工作是檢測(cè)各個(gè)標(biāo)志位的狀態(tài),以確定單片機(jī)的工作情況。本部分對(duì)設(shè)計(jì)中的主要程序單獨(dú)說明。 //調(diào)用初始化函數(shù) TMOD=0x01。 ET0=1。scan()。 add1(m)。 add1(m)。 add=0。 P2_7=1。 P2_7=1。}if(sub==1) //倒計(jì)時(shí)初值減少1{ P2_6=0。 add1(m)。 if(mm==6000)m=0。 P2_7=1。void time0(void){ TL0=0x18。 mm++。 }(3)顯示子程序顯示子程序其實(shí)包括了display()和add1(time)兩個(gè)子程序。 a=time/1000。 LED2=(n/100)。 //計(jì)算百分一秒位數(shù)值 }void display(void){ switch(ms%4) { case o: P3=0xfe。 case 1: P3=0xfd。 case 2: P3=0xfb。 case o: P3=0xf7。 default:return。雖然還有一些欠缺的地方,但是總體來說這次的畢業(yè)設(shè)計(jì)還是很成功的。同時(shí),我們作為學(xué)生要能理解老師的一番苦意,我們要有進(jìn)取心,持之以恒的精神,遇到困難不能氣餒,只有這樣才能讓指導(dǎo)老師看到成功的希望。這里還要感謝自己的同學(xué)們,他們的幫助使得這次的設(shè)計(jì)最終順利的完成。 最后,感謝我的母校德州學(xué)院老師們四年來對(duì)我的大力栽培,謝謝您們!g an employment tribunal claimEmployment tribunals sort out disagreements between employers and employees.You may need to make a claim to an employment tribunal if:Dismissal.You can make a claim to an employment tribunal, even if you haven39。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 organisations listed underif you win the case.If you are thinking about signing up for nearest CAB.For more information about making a claim to an employment tribunal, sees 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。City39。s plaint. In a statement the Russian side added: We found no racist insults from fans of CSKA.Age has reached the end of the beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day。二十年的人生軌跡深深淺淺,突然就感覺到有些事情,非做不可了。 Then in high school, think don39。A person39。嫌惡過自己的怯懦,最終卻發(fā)現(xiàn)有很多緣分,有很多錯(cuò)過,好像冥冥之中真的已經(jīng)注定。 From the corner at the beginning of deep friendship。Baumgartner the disappointing news: Mission aborted. r plays an important role in this mission. Starting at the ground, conditions have to be very calm winds less than 2 mph, with no precipitation or humidity and limited cloud cover. The balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) where our daytoday weather lives. It will climb higher than the tip of Mount Everest ( miles/ kilometers), drifting even higher than the cruising altitude of mercial airliners ( miles/ kilometers) and into the stratosphere. As he crosses the boundary layer (called the tropopause),e can expect a lot of turbulence.The supersonic descent could happen as early as Sunda.The weatheThe balloon will slowly drift to the edge of space at 120,000 feet ( Then, I would assume, he will slowly step out onto something resembling an Olympic diving platform.Below, the Earth bees the concrete bottom of a swimming pool that he wants to land on, but not too hard. Still, he