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

正文內(nèi)容

基于at89s51單片機(jī)的家用煤氣報(bào)警器-資料下載頁(yè)

2024-12-07 00:58本頁(yè)面

【導(dǎo)讀】畢業(yè)論文(設(shè)計(jì))。題目基于AT89S52單片機(jī)的家用煤氣報(bào)警器。專業(yè)電子科學(xué)與技術(shù)

  

【正文】 key1) { delay_ms(2)。 if(0==key1) { while(!key1)。 } dat1++。 } if(0==key2) { delay_ms(2)。 if(0==key2) 22 { while(!key2)。 } dat1。 } if(dat1999) dat1=999。 if(dat11) dat1=0。 } //*********************************************** //3 微秒延時(shí)程序 void delay_3us() { 。 。 } //A/D 轉(zhuǎn)換程序 ,讀取 AD 轉(zhuǎn)換后的數(shù)據(jù) //個(gè)位存在 34H,十位 33H,百位 32H,千位 31H void star_ad() { unsigned char i。 unsigned int j=0。 cs_tlc1549=0。//。選擇 AD 芯片 delay_3us()。 io_tlc1549=1。//置 IO 為 1,準(zhǔn)備讀入數(shù)據(jù) for(i=0。i10。i++) { j=1。 clk_tlc1549=1。 if(io_tlc1549==1) j|=0x01。 23 clk_tlc1549=0。 } clk_tlc1549=1。 cs_tlc1549=1。 ad_data=(1000(1000j))。 } void display() { uint temp2。 Getxy(0,0)。 write_Data(39。S39。)。 write_Data(39。m39。)。 write_Data(39。o39。)。 write_Data(39。k39。)。 write_Data(39。e39。)。 write_Data(39。s39。)。 write_Data(39。c39。)。 write_Data(39。o39。)。 write_Data(39。p39。)。 write_Data(39。e39。)。 write_Data(39。:39。)。 //放大 10 倍,便于后面的計(jì)算 temp2=ad_data。 write_Data(number[temp2/100])。 write_Data(number[(temp2%100)/10])。 write_Data(0x2e)。 write_Data(number[temp2%10])。 write_Data(39。%39。)。 Getxy(0,1)。 write_Data(39。M39。)。 write_Data(39。a39。)。 write_Data(39。x39。)。 24 write_Data(39。v39。)。 write_Data(39。a39。)。 write_Data(39。l39。)。 write_Data(39。u39。)。 write_Data(39。e39。)。 write_Data(39。:39。)。 write_Data(number[dat1/100])。 write_Data(number[(dat1%100)/10])。 write_Data(0x2e)。 write_Data(number[dat1%10])。 write_Data(39。%39。)。 if(temp2dat1) { led2=1。 speak=1。 led1=0。 } else { led1=1。 speak=0。 led2=0。 } } int main(void) { Init()。 speak=0。 key1=1。 key2=1。 led1=1。 led2=1。 Getxy(0,1)。 25 write_Data(39。T39。)。 write_Data(39。h39。)。 write_Data(39。i39。)。 write_Data(39。s39。)。 write_Data(39。 39。)。 write_Data(39。M39。)。 write_Data(39。y39。)。 write_Data(39。 39。)。 write_Data(39。D39。)。 write_Data(39。e39。)。 write_Data(39。s39。)。 write_Data(39。i39。)。 write_Data(39。g39。)。 write_Data(39。n39。)。 delay_ms(1000)。 write_(0x01)。 cs_tlc1549=1。//暫時(shí)不選擇 AD 芯片 clk_tlc1549=0。 while(1) { star_ad()。 if(ad_data999)ad_data=999。 if(ad_data1)ad_data=0。 key_scan()。 display()。 } } 1602 頭文件 ifndef LCD1602 define LCD1602 define uint unsigned int 26 define uchar unsigned char include sbit En=P1^2。 sbit rw=P1^1。 sbit Rs=P1^0。 void write_(uchar ) { rw=0。 Rs=1。 _nop_()。 Rs=0。 En=0。 delay_ms(1)。 En=1。 delay_ms(1)。 P0=。 delay_ms(1)。 En=0。 _nop_()。 Rs=1。 } void write_Data(uchar dat) { rw=0。 Rs=0。 _nop_()。 27 Rs=1。 En=0。 delay_ms(1)。 En=1。 delay_ms(1)。 P0=dat。 delay_ms(1)。 En=0。 _nop_()。 Rs=0。 } void Init() { delay_ms(10)。 write_(0x38)。 delay_ms(5)。 write_(0x0c)。 delay_ms(5)。 write_(0x06)。 delay_ms(5)。 write_(0x01)。 delay_ms(5)。 } 28 void Getxy(uchar x,uchar y) { if(y==0) write_(0x80|x)。 if(y==1) write_(x0x40)。 } void Clear() { uchar j。 Getxy(0,0)。 for(j=0。j14。j++) { write_Data(39。 39。)。 } Getxy(8,1)。 for(j=0。j8。j++) { write_Data(39。 39。)。 } } endif 5 小結(jié) 本論文 是利用 AT89S51單片機(jī)作為主控芯片, TLC549作為 A/D轉(zhuǎn)換器, 傳感器接收模擬信號(hào),經(jīng)過(guò)AD數(shù)據(jù)轉(zhuǎn)換成電信號(hào),再由 89S51單片機(jī)接收電信號(hào),進(jìn)而控制整個(gè)系統(tǒng)的運(yùn)行。 通過(guò)對(duì)偏差信號(hào)的處理 29 獲得控制信號(hào), 進(jìn)而發(fā)出 報(bào)警信號(hào),并加入了鍵盤輸入控制報(bào)警 的 上限 濃度 , 從而實(shí)現(xiàn)對(duì)煤氣泄露 的監(jiān)控。本論文只是我的一個(gè)初步構(gòu)想方案,硬件和軟件部分將在今后的工作中逐步完善。 參考文獻(xiàn) [1]姚豐、劉念聰:一種單片機(jī)智能煤氣系統(tǒng)的設(shè)計(jì) [J],天津職業(yè)大學(xué)學(xué)報(bào) 2021年 6月 第 13卷 第13期。 [2]閆坤:基于 CAN總線小區(qū)煤氣泄漏報(bào)警系統(tǒng)的研究與設(shè)計(jì) [J],電子測(cè)試 2021年第 5期。 [3]周捷:有毒可燃?xì)怏w報(bào)警器原理及設(shè)計(jì) [J],科技信息 2021年總第 5期。 [4]晃陽(yáng):?jiǎn)纹瑱C(jī) MCS51 原理及應(yīng)用開發(fā)教程 [M],清華大學(xué)出版社 : 376385。 [5]李全釗、遲榮強(qiáng):?jiǎn)纹瑱C(jī)原理及接口技術(shù) [M],高等教育出版史 2021年。 [6]TLC549數(shù)據(jù)手冊(cè) [OL], 美國(guó)德州儀器 公司出品。 [7]何道清、張禾:傳感器與傳感器技術(shù) [M],科學(xué)出版社 2021年。 [8]MQ2傳感器的應(yīng)用說(shuō)明說(shuō),根本特殊化學(xué)株式會(huì)社 。 [9]趙亮、候國(guó)銳:?jiǎn)纹瑱C(jī) C語(yǔ)言編程與實(shí)例 [M],北京人民郵電出版社 2021年。 [10]何立民 .單片機(jī)高級(jí)教程 應(yīng)用與設(shè)計(jì) (第 2 版 ). 北京航空航天大學(xué)出版社 ,2021 [11]于學(xué) 禹 .Protel 2021 電路設(shè)計(jì)入門與應(yīng)用 [M].機(jī)械工業(yè)出版社 ,2021 [12]楊金巖等 . 8051 單片機(jī)數(shù)據(jù)傳輸接口擴(kuò)展技術(shù)與應(yīng)用實(shí)例 [M].人民郵電出版社 ,2021 [13]李鳳霞: C語(yǔ)言程序設(shè)計(jì)教程 [M],北京理工大學(xué)出版社 2021年。 [14]Paul F. Lister. Singlechip microputers [M]. McGrawHill, 2021 [15]Paul M252。ller. CMOS multichannel singlechip receivers for multigigabit optical data munications [M]. Springer,2021 30 附錄 1 歡迎畫面 31 進(jìn)行報(bào)警 32 濃度正常 33 附錄 2 實(shí)物照片: 34 35 The Household Gas Alarm Based on AT89S51 Li Zhou Nanjing university of Science amp。 Technology, Electronic Science and Technology, Nanjing 210044 ABSTRACT In this thesis, the gas alarm using alarm AT89S51 MCU core ponent to control the gas alarm. By MQ2 semiconductor gas sensor to detect the gas, the concentration values obtained as a percentage of the forms, and the percentage of the set concentration pared to be bias. The error signal processing by gain control signals, alarm signals, the gas concentration using the corresponding analog A / D converted to digital, and joined the keyboard input control alarm limit, enabling the monitoring of leakage of household gas. Hardware design of the system is reasonable, safe and reliable performance. Keywords: 51 MCU。 gas sensor。 gas concentration
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1