freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

電子信息科學與技術論文-閱讀頁

2024-11-23 10:59本頁面
  

【正文】 8AD0H 其中 T0 為定時器, T1 為計數(shù)器,定時器 T0 定時 100ms 后,計數(shù)器 T1 計數(shù)一次,此時,定時器 T0 進行中斷服務程序 ZDT0 進行定時器 T0 循環(huán)定時進入下一個定時周期,當滿足又一次定時滿 100ms 時,再由計數(shù)器 T1 計數(shù)一次,如此循環(huán)下去,直到滿足計數(shù)器 T1 計數(shù)30000 次,計數(shù)器 T1 進入中斷服務程序 ZDT1,其功能是使單片機的 引腳發(fā)送一個脈沖觸發(fā)定時報警發(fā)聲 電路,由定時報警發(fā)聲電路發(fā)出報警信號,使學生意識到已經(jīng)學習了 45分鐘了,需要休息一下,進而達到保護學生視力的目的。開啟電源后,定時器 T0 和計數(shù)器 T1 進行到下一循環(huán),對定時器進行賦值, T0 定時, T 計數(shù),再進行報警。 c 語言是一種 計算機程序設計語言 。它可以作為系統(tǒng)設計語言,編寫工作系統(tǒng) 應用程序 ,也可以作為應用程序設計語言,編寫不依賴計算機硬件的應用程序。 各個主要程序段介紹如下: 1.設計要求滿足定時 50 分鐘后報警,其初值計算如下: 開始到 0013 H 執(zhí)行中斷服務程序定時器 T 1 初始化計數(shù) 30000 次是否到 ?P 3 . 3 發(fā)出一個脈沖觸發(fā)報警電路開中斷 , 啟動定時器 T 1硬件計數(shù)等中斷 TF 1是否圖 34 T1 中斷程序 流程圖 19 50min*60=3000s=30000*100ms 100ms 用 T0 定時設置 T0 工作方式 1, 30000 次用 T2 計數(shù),設 T2 工作方式為 11。 sbit echo=P3^2。 sbit lcdrs=P1^2。 sbit lcden=P1^0。 //測量成功標志 uchar tH,tL。 void lcd_delay(uchar x)。 for(i=100。i)。 P0=。 lcden=1。 lcden=0。 P0=date。 lcden=1。 lcden=0。 //默認開始狀態(tài)為關使能端 , 見時序圖 lcdrw=0。 write_(0x38)。 write_(0x01)。 //顯示功能設置 0x0f為開顯示,顯示光標,光標閃爍; 0x0c為開顯示,不顯光標,光標不閃 write_(0x06)。 //設置初始化數(shù)據(jù)指針,是在讀指令的操作里進行的 } void display() //顯示函數(shù) { uchar bai=0,shi=0,ge=0,xiao=0。 shi=xx%1000/100。 xiao=xx%10。 write_date(39。)。o39。 write_date(39。)。g39。 write_date(39。)。039。 write_date(39。+shi)。039。 write_date(39。)。039。 21 } void lcd_delay(uchar x) { uint i,j。i0。j0。 } void main() { init_lcd()。 //首先拉低脈沖輸入引腳 TMOD=0x01。 //由高電平變低電平 , 觸發(fā)外部中斷 //ET1=1。 //關閉外部中斷 EA=1。 for(i=0。i++) { EA=0。 trig_delay()。 //產生一個 20us的脈沖,在 Trig引腳 while(echo==0)。 //清測量成功標志 EX0=1。 //定時器 1清零 TL0=0。 //啟動定時器 1 EA=1。//等待測量的結果,周期 (可用中斷實現(xiàn)) TR0=0。 //關閉外部中斷 if(succeed_flag==1) { xx=((tH*256+tL)**)*10。 // X 秒 =( 2*Y米) /344 ==》 X秒 =*Y米 ==》厘米 =微秒 /58 if(xx200) num++。 //沒有回波則清零 } } if(num12) { baojing=0。 } else { baojing=1。 } } } //*************************************************************** //外部中斷 0,用做判斷回波電平 INTO_() interrupt 0 // 外部中斷是 0號 { tH =TH0。 //取出定時器的值 succeed_flag=1。 //關閉外部中斷 } //**************************************************************** 結論 本次畢業(yè)設計硬件上完成了一個 89c52 單片機 的 單通道語音 信號處理 平臺的設計,并在此平臺上用單片機匯編語言進行軟件設計,經(jīng)過測試,基本滿足設計目標,可以完成各項基本功能。當然,由于時間關系,本次設計的系統(tǒng)也有某些不太完善的地方,如光敏電阻的使用,也不能實現(xiàn)調節(jié)光度和壓縮浪費大量空間,有待進一步改善。該系 統(tǒng)具有 很高的使用價值 ,很好地達到了設計的目的; 23 本文創(chuàng)新點: 1.發(fā)展了利用 單片機 設計 視力保護器 的思想, 增加了單片機在現(xiàn)實生活中的應用。 2. 盡可能發(fā)揮系統(tǒng)優(yōu)勢,可以方便向其他功能擴展,也就是利用平臺優(yōu)勢可以衍生更多功能??梢哉f,唐山的學習經(jīng)歷使我學到了許多更加珍貴的東西,這對我今后的學習工作和人生道路的選擇很有意義。 崔乃忠老師知識淵博、待人熱情,經(jīng)常與我交流自己的想法,盡最大努力給予了我多方面指導。 在和崔老師探討問題過程中,崔老師的諄諄教導使我受益匪淺。從他身上,我不僅學到了 科學的學習方式,還培養(yǎng)了不斷追求創(chuàng)新的思維方式,同時教育了我要耐心的去干任何一件事,而不是急于求成。 同時也感謝太軍君老師和 楊俊鋒 老師的關心和幫助,他們在論文開題答辯過程中提出了很多寶貴的意見和建議。 25 Student to use visual design of protection Liu panshi Directed by Naizhong Abstract: This paper presents a Multifunctional Sight protector based on Singlechip. Discussed the 89c 52based singlechip hardware circuit and software design. And hardware based on this sensor alarm circuits, light intensity alarm circuit and alarm circuit from time to time. At present, singlechip microputer to control a variety of theoretical and practical application of system design is a cause for widespread concern. This paper introduces the development of SCM as well as the vision of the development of protective device, and control circuitry 89c52. This paper describes the use of c language programming methods have a pulse, and the use of singlechip timing function and assembly language to achieve the method from time to time. SCM can be a profound experience of the principles and design. Details of the hardware ponents of the system and its role, given the entire system software flowchart flow chart and some subroutines. Introduced the technology and promote the value of prospects. But the system still need to be put forward to solve some of the problems, and gives a possible way to solve these problems and methods. The design of ultrasonic technology as the main theory. Specific vision for the protection of the theory and hardware design of the study. Based on the laborator
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1