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

正文內(nèi)容

畢業(yè)論文-基于stc12c5a16ad單片機(jī)與mq-3型氣體傳感器的酒精濃度探測(cè)儀設(shè)計(jì)(文件)

 

【正文】 S3 直插 按鍵 1 D1 直插 紅色 發(fā)光管 1 D2 直插 紅色 發(fā)光管 1 D3 直插 紅色 發(fā)光管 1 Y1 直插 12M 晶振 1 U1 DIP40 STC12C5A16AD 單片機(jī) 1 U2 DIP8 24C04 EEPROM 1 U3 直插 MQ3 酒精測(cè)試模塊 1 液晶屏 綠屏 LCD1602 1 J1 SIP16 顯示接口 8腳插座 1 J2 SIP4 傳感器接口 4腳插座 1 單片機(jī)插座 DIP40 1 電路板 1 畢業(yè)設(shè)計(jì)用紙 第 22頁(yè) 共 28 頁(yè) 附附 錄錄 B 實(shí)實(shí) 物物 圖圖 畢業(yè)設(shè)計(jì)用紙 第 23頁(yè) 共 28 頁(yè) 附附 錄錄 C 程程 序序 //include include include include define uchar unsigned char define uint unsigned int //聲明常量 define ALCH 80 //醉駕標(biāo)準(zhǔn) 80mg/L //K_MG_MV和 K_ZERO為傳感器校準(zhǔn)系數(shù),要根據(jù)每個(gè) MQ3模塊校準(zhǔn) define K_MG_MV 160/66 //傳感器靈敏度系數(shù),每毫克 /L 對(duì)應(yīng)的 10毫伏數(shù) define K_ZERO 0 //傳感器零點(diǎn) 漂移,約 130mV //定義按鍵 sbit Key_Up = P3^6。 //定義乙醇傳感器 TTL電平輸出引腳 sbit DOUT = P1^4。 //酒精濃度上限報(bào)警值 uint ALCounter。 //鍵值 char * pSave。 裝 訂 線(xiàn) 畢業(yè)設(shè)計(jì)用紙 第 24頁(yè) 共 28 頁(yè) void ADC_Init()。 ALValue = 0。 keyUp = 1。 //定時(shí)器工作方式選擇 TL0 = 0xcc。 TH0 = 0xf8。 } } void Port_Init() { 畢業(yè)設(shè)計(jì)用紙 第 25頁(yè) 共 28 頁(yè) P1M0 = 0x80。 //設(shè) AD輸入 ADC_RES = 0。i) 。0xf8|0x07。 //延時(shí) } //進(jìn)行 AD轉(zhuǎn)換,得到當(dāng)前酒精值 uchar GetADVal() { uint i。i0。 //ADC_Start=1, 啟動(dòng)轉(zhuǎn)換 while((ADC_CONTRamp。 //清 ADC_FLAG和 ADC_START位,停止轉(zhuǎn)換 return ADC_RES。 //存醉酒閾值低 8位 DELAY(300)。 } //載入設(shè)定值 void Load_Setting() { pSave = (char *)amp。 if ((Threshold=255)||(Threshold0)) Threshold = 80。 break。 } void main() { uint i,j。 //定時(shí)器 0初始化 Port_Init()。 L1602_string(1,1,Wele to ALCT! )。i++) for (j=0。 L1602_string(2,1, )。 L1602_int(2,9,Threshold)。 ALValue = ALValue * K_MG_MV。 else Led_Warn1 = 1。 //鍵盤(pán)查詢(xún),在彈起時(shí)響應(yīng) if ((Key_Up)amp。} else if ((Key_Down)amp。} if (FlagKeyPress == 1) { KeyProcess(keyvalue)。 if (!Key_Down) keyDown = 0。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, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。s antiracism taskforce, is in London for the Football Association39。s 21 win. Michel Platini, president of European football39。 May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it. 一字開(kāi)頭的年 齡已經(jīng)到了尾聲。 The ??傆X(jué)得自己自己似乎應(yīng)該去做點(diǎn)什么,或者寫(xiě)點(diǎn)什么。s actions. CSKA said they were surprised and disappointed by Toure39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport. For me it39。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。 DELAY(100)。 } if (!Key_Up) keyUp = 0。(keyDown==0)) {FlagKeyPress = 1。(keyUp==0)) {FlagKeyPress = 1。 } //查詢(xún)乙醇傳感器 TTL電平,該指示燈為傳感器模塊報(bào)警 if (DOUT == 0) Led_Warn2 = 0。 if (ALValue Threshold) Led_Warn1 = 0。 //8 位 ADC,首先得到電壓值,單位 10毫伏 ALValue = ALValue K_ZERO。 L1602_string(2,1,Thresho: mg/L)。j++) {。 //延時(shí) for (i=0。 //ADC初始化 EA = 1。 Data_Init()。 } L1602_int(2,9,Threshold)。 break。 畢業(yè)設(shè)計(jì)用紙 第 26頁(yè) 共 28 頁(yè) *pSave++ = rdeeprom(0)。 wrteeprom(1, *pSave)。Threshold。 //等待轉(zhuǎn)換結(jié)束 ADC_FLAG=1 ADC_CONTRamp。 //待輸入電壓 穩(wěn)定后開(kāi)始轉(zhuǎn)換 //ADC_RES = 0。=0xf7。i0。0xE0。 //POWER=1,打開(kāi) ADC電源 for(i=5000。 // } void ADC_Init() { uint i。 if (ALCounter = 500) { FlagStartAL = 1。 //定時(shí)器賦予初值,大約為 2毫秒中斷 1次 TR0 = 1。 } //定時(shí)器 0初始化,中斷時(shí)間約 2毫秒 //計(jì)算:晶振 ,定時(shí)器時(shí)鐘 11059200/12=921600,每毫秒 922個(gè)脈沖 // 16位定時(shí)器初值 655361844=63692=0xf8cc void Timer0_Init() { ET0 = 1。 Led_Warn2 = 2。 void KeyProcess(uint )。 void Timer0_Init()。 //酒精測(cè)量值 float ALtemp。 //開(kāi)始轉(zhuǎn)換標(biāo)志 volatile bit FlagKeyPress = 0。 //定義 LED報(bào)警燈 sbit Led_Warn1 = P3^4。在課程設(shè)計(jì)完成之際,謹(jǐn)向敬愛(ài)的宋朝暉老師表示忠心的感謝和誠(chéng)摯的祝福。因此鞏固理論知識(shí),提高動(dòng)手能力是我們現(xiàn)在的當(dāng)務(wù)之急,這次課程設(shè)計(jì)是給我提高的機(jī)會(huì)。 畢業(yè)設(shè)計(jì)用紙 第 19頁(yè) 共 28 頁(yè) 參考文獻(xiàn) [1] 張毅剛 .單片機(jī)原理及應(yīng)用 [M].高等教育出版社 [2] 黃惠媛 .單片機(jī)原理與接口技術(shù) [M].海洋出版社 [3] 徐新民 .單片機(jī)原理與應(yīng)用 [M].浙江大學(xué)出版社 [4] 何道清 .傳感器與傳感器技術(shù) [M].科學(xué)出版社 [5] 電子制作 .2020年第 6期 [J].北京 :電子制作編輯部 ,42— 43 [6] 電子制作 .2020年第 12期 [J].北京 :電子制作編輯部 ,62 畢業(yè)設(shè)計(jì)用紙 第 20頁(yè) 共 28 頁(yè) 致謝 通過(guò)這次的課程 設(shè)計(jì),我對(duì)于單片機(jī)的了解更加深入了。 圖 51 成功安裝 USB轉(zhuǎn)串口驅(qū)動(dòng)示意圖 二、下載程序 打開(kāi) STC單片機(jī)下載軟件文件夾,點(diǎn)擊運(yùn)行 ,出現(xiàn)如下界面。 一、 USB轉(zhuǎn)串口驅(qū)動(dòng)安裝 畢業(yè)設(shè)計(jì)用紙 第 17頁(yè) 共 28 頁(yè) 打開(kāi) USB 驅(qū)動(dòng)文件夾下的 安裝 文件,按提示安裝 USB 轉(zhuǎn)串口驅(qū)動(dòng)程序。 //關(guān)閉數(shù)據(jù)輸出允許信號(hào) if(AD0809=251) //電壓顯示不能超過(guò) 5V AD0809= //停止數(shù)據(jù)轉(zhuǎn)換 while(!EOC)。 //開(kāi) T/C0中斷 TR0=1。 //脈沖信號(hào)初始值為 0 TH0=(655362)/256。 //重裝計(jì)數(shù)初值 TL0=(655362)%256。 P2=wei[3]。 P2=wei[2]。 P2=wei[1]。 P2=wei[0]。 //求十位 v=date%10。 } } } 數(shù)碼管動(dòng)態(tài)掃描 void xianshi() //顯示函數(shù) { uint z,x,c,v。i++) { for(j=13。 //時(shí)鐘脈沖 uint z,x,c,v,AD0809, date。 //位的控制端 //位控制碼 畢業(yè)設(shè)計(jì)用紙 第 15頁(yè) 共 28 頁(yè) sbit ST=P3^0。 SCL 和 SDA 為 AT24C04和單片機(jī) IIC 通信的時(shí)鐘線(xiàn)和數(shù)據(jù)線(xiàn)。 畢業(yè)設(shè)計(jì)用紙
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1