【正文】
五:實(shí)物圖附錄六:英文資料From the world of radio in the world to a single chipModern puter technology, industrial revolution, the world economy from the capital into the economy to knowledge economy. Field in the electronic world, from the 20th century into the era of radio to puter technology in the 21st century as the center of the intelligent modern era of electronic systems. The basic core of modern electronic systems are embedded puter systems (referred to as embedded systems), while the microcontroller is the most typical and most extensive and most popular embedded systems.First, radio has created generations of excellence in the worldFifties and sixties in the 20th century, the most representative of the advanced electronic technology is wireless technology, including radio broadcasting, radio, wireless munications (telegraph), Amateur Radio, radio positioning, navigation and other telemetry, remote control, remote technology. Early that these electronic technology led many young people into the wonderful digital world, radio show was a wonderful life, the prospects for science and technology. Electronics began to form a new discipline. Radio electronics, wireless munications began eworld journey.Radio technology not only as a representative of advanced science and technology at that time, but also from popular to professional fields of science, attracting the young people and enable them to find a lot of fun. Ore from the bedside to the superheterodyne radio radio。//((ya*5)*100/255)。if(aa==20){ya=A_D()。TL0=(6553650000)%256。 } if(num==2) { displaytl(tl)。 if(num==0) { display(temp)。if((temptl)||(tempth))P13=0。 //將讀書的數(shù)據(jù)返回 } /*****************************************************函數(shù)功能:主函數(shù)***************************************************/ main(void){init()。 //將輸出數(shù)據(jù)DIO通過或運(yùn)算儲存在dat最低位 } CS=1。 dat=1。i++) //高位在前 { CLK=1。 //第四個脈沖 for(i=0。 //第三個脈沖下降沿 DIO=1。 //DI置0,選擇通道0 CLK=1。 //第二個脈沖,第3個脈沖下沉之前,DI必須跟別輸入兩位數(shù)據(jù)用于選擇通道,這里選通道CH0 CLK=0。 //第一個脈沖的下降沿,此前DIO必須是高電平 DIO=1。 //DIO置1,規(guī)定的起始信號 CLK=1。 //為第一個脈沖作準(zhǔn)備 CS=0。 CS=1。delay(5)。P2=0xfb。P0=table[c%100/10]。delay(5)。}void displaytl(uint c){ P2=0xfe。P0=table[b%100%10]。delay(5)。P2=0xfd。P0=table[b/100]。delay(5)。P2=0xfb。P0=table[a%100/10]。delay(5)。}void display(uint a){ P2=0xfe。y0。x0。 } }}void delay(uint z){uint x,y。 if(tl==90) tl=th10。 if(th==(tl+10)) th= } if(SUB==0) { delay(5)。Elsetl=90。 if(th==250) th=tl+10。 } if(num!=0) { if(ADD==0) { delay(5)。 delay(5)。 if(num==3){num=0。}void key(){ if(P10==0) { delay(5)。ET0=1。TL0=(6553650000)%256。void init(){TMOD=0x01。void displayth(uint b)。 //void delay(uint z)。 //sbit CLK=P2^4。unsigned char table[]={0xc0,0xf9,0xa4,0xb0,0x99, 0x92,0x82,0xf8,0x80,0x90}。uint ya,temp,num=0,aa,th=180,tl=90。sbit SUB=P1^2。 參考文獻(xiàn)[1] 肖志紅.倉庫溫度與濕度自動控制系統(tǒng)設(shè)計(jì)[J].電子設(shè)計(jì)工程,2010,(10) .[2] 匡迎春,沈岳,姚幫松,羅亞輝,王江蘭.簡易型溫室溫濕度控制器設(shè)計(jì)[J].湖南農(nóng)業(yè)大學(xué)學(xué)報(bào)(自然科學(xué)版),2009,(04) .[3] 董慧敏.溫濕度控制系統(tǒng)設(shè)計(jì)[J]. 實(shí)驗(yàn)科學(xué)與技術(shù),2008,(05).[4] Sabina Donato,Pietrantonio Ricci,F(xiàn)ernando Panarese,Emanuela Turillazzi.Cane Corso attack [J]. Forensic Science, Medicine,and Pathology,2006.[5] Vittorio Fineschi,Irene Riezzo,Santina Cantatore,Cristoforo Pomara,Emanuela Turillazzi,Margherita Neri.Complement C3a expression and tryptase degranulation as promising histopathological tests for diagnosing fatal amniotic fluid embolism [J].Virchows Archiv,2009.[6] Shishan Wu,Yanling Luo,Qianping Ran,Jian Shen.Effects of b copolymer PAAgMPEO on rheological and dispersion properties of aqueous CaCO3 suspensions [J]. Polymer Bulletin, 2007.[7] PIC單片機(jī)與單片機(jī)入門[J].電子制作, 2005, (10).[8] 嚴(yán)浪濤,孫林.基于ATMEL單片機(jī)及VB的船用調(diào)速器性能分析檢測系統(tǒng)[J].山西電子技術(shù), 2006,(04).[9] 陳海宴.51單片機(jī)原理及應(yīng)用[M].北京航空航天大學(xué)出版社,2010.[10] 劉守義等.單片機(jī)技術(shù)基礎(chǔ)[M].西安電子科技大學(xué)出版社,2007.[11] 鐘富昭等.8051單片機(jī)典型模塊設(shè)計(jì)與應(yīng)用[M].人民郵電出版社,2007.[12] 王寶芹,范長勝,郭艷玲. 基于單片機(jī)的溫室溫濕度控制系統(tǒng)設(shè)計(jì)[J].林業(yè)機(jī)械與木工設(shè)備, 2008,(03) .[13] 于華麗,趙曉順,劉淑霞,王家忠.傳感器SHT71在溫濕環(huán)境檢測系統(tǒng)中的應(yīng)用[J].農(nóng)機(jī)化研究,2008,,(05) .[14] 梁合慶.使用單片機(jī)C語言的好處[J]. 電子產(chǎn)品世界,2000, (10) .[15] 牛余朋,牛傲其.51單片機(jī)C語言的編程技巧[J]. 電子制作, 2007.[16] 王東峰等.單片機(jī)C語言應(yīng)用100例[M].電子工業(yè)出版社,2009.附 錄附錄一:程序清單include //包含單片機(jī)寄存器的頭文件define uchar unsigned chardefine uint unsigned intsbit P10=P1^0。之前對濕度的概念很模糊,通過這次設(shè)計(jì),我對濕度有了深刻的認(rèn)識,知道濕度對我們?nèi)粘I畹挠绊憽T谧霎厴I(yè)設(shè)計(jì)的時候,翻越了大量的相關(guān)資料,從中學(xué)到了很多知識。我選擇這個課題作為我的畢業(yè)設(shè)計(jì),確實(shí)是想臨近畢業(yè)的時候多學(xué)點(diǎn)相關(guān)知識。結(jié)束語四年的大學(xué)生活,我學(xué)到很多的知識。2.編輯結(jié)束后對軟件的正確性進(jìn)行仿真。3.用萬用表的電阻檔測量各焊點(diǎn)是否存在虛焊。第五章 系統(tǒng)調(diào)試1.在焊接之前對各元器件的好壞進(jìn)行測試,用萬用表進(jìn)行測量。利用C51語言進(jìn)行編程可以把程序進(jìn)行模塊化編寫,然后在主函數(shù)里進(jìn)行調(diào)用即可,這樣分工明確,框架清晰,給人一目了然的感覺。其具體流程如圖43所示:1.顯示濕度后,需要判斷有無按鍵,(即實(shí)物圖里的轉(zhuǎn)換開關(guān)按下),切換到報(bào)警的上下限值顯示;2.,若檢測到低電平(加1按鍵按下),則數(shù)碼管顯示的報(bào)警值加1;3.,若為低電平,設(shè)定值減1,若為高電平回到報(bào)警值顯示。3.利用程序?qū)⒁@示的數(shù)高低位拆分,查表,最后通過數(shù)碼管顯示。 圖42濕度檢測顯示程序流程圖 該軟件部分的實(shí)現(xiàn)步驟為:1.初始化后,濕度傳感器檢測出當(dāng)前環(huán)境濕度。C51是其中的一個編譯器,它具有ANSIC標(biāo)準(zhǔn)C所有的功能,并針對51系列單片機(jī)的硬件特點(diǎn)做了擴(kuò)展。用C語言編程容易實(shí)現(xiàn)程序的模塊化和結(jié)構(gòu)化,程序容易閱讀、修改和移植[14]。制作流程:1.將生成的pcb圖打印; 2.按照打印的圖紙?jiān)诎遄由线M(jìn)行刻錄聯(lián)系; 3.將刻錄的連線部分用錫進(jìn)行覆蓋; 4.用蝕銅液把多余的銅腐蝕掉; 5.打孔,焊接。隨后輸出8位數(shù)據(jù),到第19 個脈沖時數(shù)據(jù)輸出完成,也標(biāo)志著一次A/D轉(zhuǎn)換的結(jié)束。直到第11個脈沖時發(fā)出最低位數(shù)據(jù)DATA0,一個字節(jié)的數(shù)據(jù)輸出完成。到第3 個脈沖的下沉之后DI端的輸入電平就失去輸入作用,此后DO/DI端則開始利用數(shù)據(jù)輸出DO進(jìn)行轉(zhuǎn)換數(shù)據(jù)的讀取。當(dāng)2 位數(shù)據(jù)為“0”、“0”時,將CH0作為正輸入端IN+,CH1作為負(fù)輸入端IN進(jìn)行輸入。在第3個脈沖下沉之前DI端應(yīng)輸入2 位數(shù)據(jù)用于選擇通道功能,當(dāng)此2 位數(shù)據(jù)為“1”、“0”時,只對CH0 進(jìn)行單通道轉(zhuǎn)換。此時芯片開始轉(zhuǎn)換工作,同時由處理器向芯片時鐘輸入端CLK 輸入時鐘脈沖,DO/DI端則使用DI端輸入通道功能選擇的數(shù)據(jù)信號。當(dāng)ADC0832未工作時其CS輸入端應(yīng)為高電平,此時芯片禁用,CLK 和DO/DI 的電平可任意。圖37 ADC0832的工作時序圖正常情況下 與單片機(jī)的接口應(yīng)為4條數(shù)據(jù)線,分別是CS、CLK、DO、DI。在進(jìn)行單片機(jī)和ADC0832的連接時