【文章內(nèi)容簡介】
void delay(uint z){ uint x,y。 for(x=z。x0。x) for(y=110。y0。y)。} void key(){ if(P14==0) { delay(10) 。 if(P14==0) { while(!P14)。 Motor_zheng()。 } } if(P15==0) { delay(10) 。 if(P15==0) { while(!P15)。 Motor_fan()。 } } if(P10==0) { delay(10) 。 if(P10==0) { while(!P10)。 Motor_ting()。 } }} void main(void) { EA=1。 EX0=1。 while(1) //PWM周期100,高電平100 PWM_T, 低電平PWM_T,低電平工作 { delay(2)。 key()。 if((AK==1|P14==0)amp。amp。(P10==1amp。amp。CK==0amp。amp。P11==1)) { Motor_zheng()。 delay(2)。 } if((BK==1|P15==0)amp。amp。(P10==1amp。amp。CK==0amp。amp。P11==1)) { Motor_fan()。 delay(2)。 } if((P10==0)||(CK==1)||(P11==0)) { Motor_ting()。 delay(2)。 } }} 仿真結(jié)果按鍵K2,電機(jī)正轉(zhuǎn),按鍵K3,電機(jī)反轉(zhuǎn),按鍵K1,電機(jī)停止。4.課程設(shè)計(jì)體會通過這次單片機(jī)課程設(shè)計(jì),我們真的是受益匪淺,動(dòng)手能力和合作能力都得到了一定的培養(yǎng),要感謝領(lǐng)導(dǎo)和老師們?yōu)槲覀兲峁┑倪@次寶貴的實(shí)踐機(jī)。在這次設(shè)計(jì)過程中,第一次接觸實(shí)物,硬件的設(shè)計(jì)跟焊接都要我們自己動(dòng)手,軟件的編程也要我們不斷的調(diào)試,最終一個(gè)能完成課程設(shè)計(jì)的勞動(dòng)成果出來了,很高興它能按著設(shè)計(jì)的思想和要求運(yùn)行起來。當(dāng)然,這其中也有很多的問題。第一,不夠細(xì)心比如由于粗心大意焊錯(cuò)了線,由于對課本理論的不熟悉導(dǎo)致編程出現(xiàn)錯(cuò)誤。第二,是在學(xué)習(xí)態(tài)度上,這次課程設(shè)計(jì)是對我們的學(xué)習(xí)態(tài)度的一次檢驗(yàn)。對于這次單片機(jī)綜合課程設(shè)計(jì),我的第一大心得體會就是作為一名工程技術(shù)人員,要求具備的首要素質(zhì)絕對應(yīng)該是嚴(yán)謹(jǐn)。我們這次設(shè)計(jì)所遇到的多半問題多數(shù)都是由于我們不夠嚴(yán)謹(jǐn)。第三,在做人上,我認(rèn)識到,無論做什么事情,只要你足夠堅(jiān)強(qiáng),有足夠的毅力和決心,有足夠的挑戰(zhàn)困難的勇氣,就沒有什么辦不到的。本次課程設(shè)計(jì)雖然取得了一定的收獲,但是在很多方面還是有待于進(jìn)一步改進(jìn)和完善的。遙控器C鍵不靈敏,必須靠近接收模塊的天線,才能接受到信號。本次設(shè)計(jì)沒有光控電路,如果再加上一個(gè)光控電路,在光線較暗的時(shí)候能自動(dòng)開窗簾,二而在光線較強(qiáng)的時(shí)候能夠自動(dòng)關(guān)窗簾,那這個(gè)設(shè)計(jì)將會更加完善。通過這次單片機(jī)課程設(shè)計(jì),我們加深了對單片機(jī)理論的理解,將理論很好的應(yīng)用到實(shí)際當(dāng)中去。參考文獻(xiàn)[1]、單片機(jī)原理與應(yīng)用技術(shù)。中國礦業(yè)大學(xué)出版社 作者:余發(fā)山 王福忠[2]、21IC電子網(wǎng)。[3]、單片機(jī)PIC學(xué)習(xí)網(wǎng)。[4]、百度搜索。[5]、單片機(jī)學(xué)習(xí)網(wǎng)。[6]彭偉 [7]—模擬部分2005[8], 2003年7月. [9]徐福成,2004年合訂本上,自己動(dòng)手搭建單片機(jī)學(xué)習(xí)開發(fā)系統(tǒng). 2008[10]李光飛,樓然苗,附1 源程序代碼include define uint unsigned intsbit P10=P1^0。sbit P14=P1^4。sbit P15=P1^5。sbit AK=P0^0。sbit BK=P0^1。sbit CK=P0^2。sbit P11=P1^1。sbit IN1=P2^0。sbit IN2=P2^1。void Motor_zheng(){ IN1=1。 IN2=0。}void Motor_fan(){ IN1=0。 IN2=1。}void Motor_ting(){ IN1=1。 IN2=1。}void delay(uint z){ uint x,y。 for(x=z。x0。x) for(y=110。y0。y)。} void key(){ if(P14==0) { delay(10) 。 if(P14==0) { while(!P14)。 Motor_zheng()。 } } if(P15==0) { delay(10) 。 if(P15==0) { while(!P15)。 Motor_fan()。 } } if(P10==0) { delay(10) 。 if(P10==0) { while(!P10)。 Motor_ting()。 } }} void main(void) { EA=1。 EX0=1。 while(1) //PWM周期100,高電平100 PWM_T, 低電平PWM_T,低電平工作 { delay(2)。 key()。 if((AK==1|P14==0)amp。amp。(P10==1amp。amp。CK==0amp。amp。P11==1)) { Motor_zheng()。 delay(2)。 } if((BK==1|P15==0)amp。amp。(P10==1amp。amp。CK==0amp。amp。P11==1)) { Motor_fan()。 delay(2)。 } if((P10==0)||(CK==1)||(P11==0)) { Motor_ting()。 delay(2)。 } }}附2 系統(tǒng)原理圖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: 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, seeDismissal.You can make a claim to an employment tribunal, even if you haven39。tappealedagainst 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