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

正文內(nèi)容

電控設(shè)計(jì)_-機(jī)油壓力檢測(cè)控制設(shè)計(jì)(參考版)

2025-06-08 09:27本頁面
  

【正文】 } } } 。 if (AD = 20) 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 41 { LED = 0。 vWriteLM(0x89)。 while(1) { delay(50)。 vShowChar(D:)。 vShowNumber(KI)。 vWriteLM(0xc5)。 vShowChar(P:)。 //寫入顯示起始地址 vShowChar(NOWPRESS:)。 DIR = 0。 vWriteLM(0x01)。 timer0_init()。 TF0=0。 j = 0。 Motor_control()。 flag=0。 TL0=(uchar)(PWML%256)。 } flag = 1。 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 39 if(setspeed = 80) { PWM = 1。 //外部中斷 0中斷標(biāo)志清零(可以不要) } void Timer(void) interrupt 1 //定時(shí)器 0( TO)中 斷 { if(flag == 0) { TH0=(uchar)((16384PWML)/256+192)。 } void Getspeed(void) interrupt 0 //外部中斷 0( INT0)中斷 { num++。 ET0 = 1。 //外 部中斷 0跳沿觸發(fā) EX0 = 1。 TL0 = highl。 TMOD = 0x01。 lowh = (uchar)(high/256+200)。 } } /**********計(jì)數(shù)器 0初始化 **********/ void timer0_init(void) { 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 38 highh = (uchar)((16384high)/256+192)。 if(abs(pre_speed) 3) //積分量小于 3清零 { pre_speed = 0。 } PWMset(PID)。 if(PIDOUT_MAX) //設(shè)定 PID的最大閥值與最小閥值 { PID = OUT_MAX。 D = KD*(Now_speed[0]Now_speed[1])。 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 37 P = KP*(Now_speed[0])。 Now_speed[1] = Now_speed[0]。 int I = 0。 } } void Motor_control(void) //位置式 PID { int PID = 0。 } else { DIR = 0。 PWML = pwm。 //(0x0C)文字不動(dòng),光標(biāo)自動(dòng)右移 vWriteLM(0x0F)。 // 清屏 vWriteLM(0x38)。 //從首位到末位逐一輸出。lcdNumCount3。 lcdaNumber[2]=uiNumber100*(int)lcdaNumber[0]10*lcdaNumber[1]。 //把計(jì)算數(shù)字的每個(gè)位存入數(shù)組。 if(uiNumber999) uiNumber=999。) break。 if(lcdaChar[lcdCount+1]==39。 for(lcdCount=0。 default: break。: vWriteData(0x5A)。 case 39。: vWriteData(0x59)。 case 39。: vWriteData(0x58)。 case 39。: vWriteData(0x57)。 case 39。: vWriteData(0x56)。 case 39。: vWriteData(0x55)。 case 39。: vWriteData(0x54)。 case 39。: vWriteData(0x53)。 case 39。: vWriteData(0x52)。 case 39。: vWriteData(0x51)。 case 39。: vWriteData(0x50)。 case 39。: vWriteData(0x4F)。 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 34 case 39。: vWriteData(0x4E)。 case 39。: vWriteData(0x4D)。 case 39。: vWriteData(0x4C)。 case 39。: vWriteData(0x4B)。 case 39。: vWriteData(0x4A)。 case 39。: vWriteData(0x49)。 case 39。: vWriteData(0x48)。 case 39。: vWriteData(0x47)。 case 39。: vWriteData(0x46)。 case 39。: vWriteData(0x45)。 case 39。: vWriteData(0x44)。 case 39。: vWriteData(0x43)。 case 39。: vWriteData(0x42)。 case 39。: vWriteData(0x41)。 case 39。: vWriteData(0x39)。 case 39。: vWriteData(0x38)。 case 39。: vWriteData(0x37)。 case 39。: vWriteData(0x36)。 case 39。: vWriteData(0x35)。 case 39。: vWriteData(0x34)。 case 39。: vWriteData(0x33)。 case 39。: vWriteData(0x32)。 case 39。: vWriteData(0x31)。 case 39。: vWriteData(0x30)。 case 39。: vWriteData(0x3A)。 case 39。: vWriteData(0x20)。 } /*把 1個(gè)字符顯示到當(dāng)前光標(biāo)處 */ void vShowOneChar(uchar lcdChar) { 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 33 switch(lcdChar) { case 39。 E=0。 LCD=lcdData。 RS=1。 E=1。 } /*把 1個(gè)數(shù)據(jù)寫入 LCD*/ void vWriteData( uchar lcdData) { Delay()。 E=0。 LCD=lcdCommand。 RS=0。 E=1。 } /*************LCD顯示部分 *******************/ /*把 1個(gè)命令寫入 LCD */ 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 32 void vWriteLM(uchar lcdCommand) { Delay()。i225。 } void Delay() { uint i。j200。ia。 } void delay(uint a) { uint i,j。 } void adc() { ad_0808()。 //輸出三態(tài)門打開,將轉(zhuǎn)換的結(jié)果輸出到數(shù)據(jù)總線上 AD = P1*100/255。 while(!EOC) //等待轉(zhuǎn)換完畢的信號(hào),當(dāng) EOC=1時(shí)轉(zhuǎn)換完畢 { 。 //啟動(dòng)轉(zhuǎn)換 START = 1。 uchar AD。 uchar highh,highl,lowh,lowl。 int num = 0。 int Now_speed[2]={0,0}。 int setspeed = 60。 int count = 0。 sbit DIR=P2^7。 sbit LED =P2^0。 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 30 sbit OE =P3^1。 sbit E =P2^1。 /*LCD顯示屏控制 */ sbit RS=P2^2。 在此,我向 趙 老師和幫助過我的老師和同學(xué)們,表示崇高的敬意和衷心的感謝 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 28 參考文獻(xiàn) [1] 張毅剛 ,彭喜元 .單片機(jī)原理與應(yīng)用設(shè)計(jì) .電子工業(yè)出版社 ,2021. [2] 先鋒工作室 .單片機(jī)程序設(shè)計(jì)實(shí)例 .清華大學(xué)出版社 ,2021. [3] 周國雄 ,晏密英 .單片機(jī)應(yīng)用系統(tǒng)設(shè)計(jì)精講 .中國鐵道部出版社 ,2021. [4] 趙佩華 .單片機(jī)接口技術(shù)及應(yīng)用 . 機(jī)械工業(yè)出版社 ,. [5] 唐嵐 .汽車測(cè)試技術(shù) .機(jī)械工業(yè)出版社 ,. [6] 彭憶強(qiáng)、吳瓊、葛曉成 .電子線路輔助分析軟件在汽車電子方向相關(guān)課程中的應(yīng)用 .高等教育研究, 2021, No. 2. [7] 張西振 .汽車發(fā)動(dòng)機(jī)電控技術(shù).北京:機(jī)械工業(yè)出版社, 2021. 汽車電控實(shí)習(xí)及課程設(shè)計(jì)說明書 29 附錄 1 源程序代碼: /****************************** 2021級(jí)汽電一班:杜晨瑞 *******************************/ include include include include define LCD P0 define OUT_MAX 10000 define OUT_MIN 10000 define KP 80 define KI 8 define KD 10 typedef unsigned char uchar。 也正是通過這次的課程設(shè)計(jì)的學(xué)習(xí)與提高,讓我對(duì)單片機(jī)有了更進(jìn)一步的 認(rèn)識(shí),對(duì)硬件以及軟件的設(shè)計(jì)也有很大的提高。要嚴(yán)格要求自己,就像嚴(yán)格要求設(shè)計(jì)的每一個(gè)細(xì)節(jié)一樣。該電路還有很多缺陷。我應(yīng)該在自己以后的學(xué)習(xí)中,不僅要有刻苦努力,要有鉆研精神,還要有創(chuàng)新,對(duì)自己感興趣的一
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1