【正文】
d) { TMOD=0x01。 TH0=0x3c。 TL0=0xc0。 ET0=1。 EX0=1。 EX1=1。 EA=1。 PX1=1。 TR0=0。 } void clear(void) { s1=0。 s2=0。 m1=0。 m2=0。 second=0。 minute=0。 counter=0。 } void process(void) { delay0(15)。 switch(a1) { case 1: EX0=0。 process1()。 case 2: EX0=0。 40 process2()。 case 3: EX0=0。 process3()。 case 4: EX0=0。 process4()。 default: break。 } } void process1(void) { xd=1。 //點亮 LED1 L11=0。 while(mk) { baojing()。 //報警程序 } xiaodu=0。 //啟動臭氧發(fā)生電路 TR0=1。 while(xd) { display()。 //數(shù)碼管顯示 if(mk!=0) {baojing()。} } L11=1。 //熄滅 LED1 clear()。 xiaodu=1。 } void process2(void) 41 { xd=1。 //點亮 LED2 L12=0。 while(mk) { baojing()。 //報警程序 } xiaodu=0。 //啟動臭氧發(fā)生電路 TR0=1。 while(xd) { display()。 //數(shù)碼管顯示 if(mk!=0) {baojing()。} } L11=2。 //熄滅 LED2 clear()。 xiaodu=1。 } void process3(void) { gz=1。 //點亮 LED3 L13=0。 ganzao=0。 //啟動干燥電路 TR0=1。 while(gz ) { display()。 //數(shù)碼管顯示 } L13=1。 //熄滅 LED3 clear()。 ganzao=1。 } 42 void process4(void) { gz=1。 //點亮 LED4 L14=0。 ganzao=0。 //啟動干燥電路 TR0=1。 while(gz ) { display()。 //數(shù)碼管顯示 } L14=1。 //熄滅 LED4 clear()。 a1=0。 ganzao=1。 } void baojing (void) { TR0=0。 sound=0。 //啟動蜂鳴器 while (mk) {display0()。} sound=1。 TR0=1。 } void delay1(uchar ms) { while(ms) {for(i=100。i0。i)。 } } 43 void delay0(uchar ms) { while(ms) { for(i=255。i0。i) { for(i=255。i0。i)。 } } } void display(void) { j=0。 s1=second%10。 s2=second/10。 m1=minute%10。 m2=minute/10。 pp[0]=s1。 pp[1]=s2。 pp[2]=m1。 pp[3]=m2。 for(p=pp。p=amp。pp[3]。p++) {P0=dma[*p]。 P2=wma[j]。 delay1(1)。 j++。 } } void display0(void) { s1=0。 s2=0。 44 m1=0。 m2=0。 pp[0]=s1。 pp[1]=s2。 pp[2]=m1。 pp[3]=m2。 for(p=pp。p=amp。pp[3]。p++) {P0=dma[*p]。 P2=wma[j]。 delay1(1)。 j++。 } } void Timer_0(void) interrupt 1 using 2 { TH0=0x3c。 TL0=0xc0。 counter++。 if(counter==21) { counter=0。 second++。 if(second==60) { second=0。 minute++。 if((a1==1amp。amp。minute==45)||(a1==2amp。amp。minute==45)) { xd=0。 TR0=0。 } if((a1==3amp。amp。minute==30)||(a1==4amp。amp。minute==30)) { 45 gz=0。 TR0=0。 } } } } void TIN_0(void) interrupt 0 using 3 { sound=0。 a1++。 if(a1==5) {a1=1。} if(a1==1) { L11=0。 } if(a1==2) { L12=0。 } if(a1==3) { L13=0。 } if(a1==4) { L11=0。 } delay0(3)。 sound=1。 } void TIN_1(void) interrupt 2 using 1 46 { light=~light。 delay0(3)。 } 附錄 3 電路總原理圖 47 為你提供優(yōu)秀的畢業(yè)論文參考資料,請您刪除以下內(nèi)容, O(∩_∩)O 謝謝?。?! 2 Many people have the same mixed feelings when planning a trip during Golden Week. With heaps of time, the sevenday Chinese 為你提供優(yōu)秀的畢業(yè)論文設(shè)計參考資料,請您刪除一下內(nèi)容, O(∩_∩)O 謝謝!??! National Day holiday could be the best occasion to enjoy a destination. However, it can also be the easiest way to ruin how you feel about a place and you may bee more fatigued after the holiday, due to battling the large crowds. During peak season, a dream about a place can turn to nightmare without careful planning, especially if you travel with children and older people. As most Chinese people will take the holiday to visit domestic tourist destinations, crowds and busy traffic are inevitable at most places. Also to be expected are increasing transport and acmodation prices, with the possibility that there will be no rooms available. It is also mon that you39。 ll wait in the line for one hour to get a ticket, and another two hours at the site, to only see a tiny bit of the place due to the crowds. Last year, 428 million tourists traveled in China over the weeklong holiday in October. Traveling during this period is a matter that needs thorough preparation. If you are short on time to plan the uping Golden Week it may not be a bad idea to avoid some of the most crowded places for now. There is always a place so fascinating that everyone yearns for. Arxan is a place like this. The beauty of Arxan is everlasting regardless of the changing of four seasons. Bestowed by nature, its spectacular seasonal landscape and mountains are just beyond word. Arxan is a crucial destination for the remended travelling route, China Inner Mongolia Arxan — Hailar — Manzhouli. It is also the joint of the four prairies across the SinoMongolian border, where people gravitate towards the exotic atmosphere mixed with Chinese, Russian, and Mongolia elements. As a historic site for the Yitian Battle, Arxan still embodies the spirit of Genghis Khan. Walking into Arxan, you will be amazed by a kaleidoscope of geous colors all the year round the Spring azaleas blooming red in the snow, the Summer sea wavering blue in the breeze, the Autumn leaves painted in yellow covering volcanic traces, and the Winter woods shining white on the vast alpine snowscape. Hinggan League Arxan city is situated in the far eastern area of Inner Mongolia Autonomous Region. Its full name Haren