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

正文內(nèi)容

畢業(yè)論文-基于單片機(jī)的出租車計(jì)價(jià)系統(tǒng)設(shè)計(jì)-在線瀏覽

2024-07-30 03:26本頁面
  

【正文】 1 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 6 附錄 1 開 始定 時(shí) 器 初 始 化液 晶 初 始 化V = ?調(diào) 節(jié) 每 公 里 價(jià) 格數(shù) 據(jù) 處 理顯 示 函 數(shù)是 開 啟 動 ?液 晶 清 屏V 1 = ?等 待數(shù) 據(jù) 處 理顯 示 函 數(shù)是 否 終 止 ?液 晶 清 屏清 零 函 數(shù)結(jié) 束調(diào) 節(jié) 起 步 價(jià) 格調(diào) 節(jié) 等 待 時(shí) 間 價(jià) 格否是V = 1V = 2V = 3否是暫 停運(yùn) 行否是否是V 1 = 1 V 1 = 2V 1 = 3判 斷 按 鍵 函 數(shù) 1判 斷 按 鍵 函 數(shù) 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 7 附錄 2 include define uchar unsigned char define uint unsigned int /*定義 1602 讀寫使能端口 */ sbit rw=P2^1。 sbit en=P2^2。 sbit gl=P1^0。 //lcd 設(shè)置函數(shù) void wr_(uchar mand)。 //數(shù)據(jù)函數(shù) void lcd_clear()。 //屏幕設(shè)置函數(shù) void busy()。 //啟動前顯示函數(shù) void printstring(uchar *s)。 //啟動后顯示函數(shù) void key1()。 sbit K1=P3^1。 //開始計(jì)價(jià) sbit K3=P3^3。 //復(fù)位 sbit g=P2^7。 //運(yùn)行 sbit bb=P2^4。 //暫停 //sbit led_run=P3^0。 //sbit led_stop=P3^2。 bit jump_in。 void key()。 uchar dispbuf[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}。 uchar v,v1。 void init()。 void chuli1()。 //延時(shí)函數(shù) void clear()。 void set1(uchar y)。 uchar count,count1。 unsigned int tt,tt1。 //value1=起步價(jià) ,value2=超出每公里價(jià)格 ,value3=等待價(jià)格 unsigned int money。 //定時(shí)器中斷函數(shù) EX0=1。//采用跳變沿觸發(fā)方式 init()。 while(1) { key1()。 display()。 lcd_init()。 chuli1()。 if(jump_out==1) { lcd_init()。 clear()。 } } } } } void clear(){ TR0=0。 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 9 money=0。 second1=0。 minite1=0。 value2=17。 // led_run=1。 // led_stop=1。 v1=0。i15。 dispbuf1[i]=0。 } void init() //中斷定時(shí) { TMOD=0x11。 TL0=(6553650000)%256。 TL1=(6553650000)%256。 ET1=1。 TR0=0。 } void t0_(void) interrupt 1 using 0 //中斷 1 模式 0 用來計(jì)時(shí) 秒、分 { count++。 second++。 minite++。 } } } TH0=(6553650000)/256。 dispbuf1[0]=m/10。 dispbuf1[2]=second/10。 } void t1_(void) interrupt 3 using 3 //中斷 3 模式 3 用來計(jì)時(shí) 秒、分 { count1++。 second1++。 minite1++。 } } } TH1=(6553650000)/256。 dispbuf1[4]=minite1/10。 dispbuf1[6]=second1/10。 } void lcd_init() { wr_(0x3c)。 wr_(0x0c)。 } void wr_(uchar mand) //命令 { busy()。 rw=0。 en=1。 } void wr_data(uchar data0) //數(shù)據(jù) { busy()。 rw=0。 en=1。 } void busy() //測忙函數(shù) { while(1) { en=0。 rw=1。 en=1。 } en=0。 dispbuf[1]=value1/10%10。 dispbuf[3]=value2/100%10。 dispbuf[5]=value2%10。 dispbuf[7]=value3/10%10。 } void display() //初始顯示函數(shù) { set(0)。 wr_data(table[dispbuf[0]])。 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 12 printstring(.)。 set(16)。 wr_data(table[dispbuf[3]])。 printstring(.)。 set1(0)。 wr_data(table[dispbuf[6]])。 printstring(.)。 set1(16)。 wr_data(table[dispbuf1[0]])。 printstring(:)。 wr_data(table[dispbuf1[3]])。 tt1=minite1。} if(m3) {money=value1+value2*(m3)+value3*tt1。 } dispbuf1[8]=money/100%10。 dispbuf1[10]=money%10。 printstring(run: )。 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 13 wr_data(table[dispbuf1[0]])。 // printstring(:)。 // wr_data(table[dispbuf1[3]])。 printstring(await:)。 wr_data(table[dispbuf1[5]])。 wr_data(table[dispbuf1[6]])。 set1(0)。 wr_data(table[dispbuf1[8]])。 printstring(.)。 } void printstring(uchar *s) //輸出顯示函數(shù) { while(*s) wr_data(*s++)。 //延時(shí)消抖動 if(K3==0) { while(K3==0)。 if(v1==4) v1=1。TR0=1。/*led_run=0。led_stop=1*/。bb=1。break。TR1=1。led_await=0。aa=1。cc=1。 //等待 case 3:TR0=0。/*led_run=1。led_stop=0*/。bb=1。break。 if(K4==0) { while(K4==0)。 } } } void delay(uchar t) { while(t)。 wr_(mand)。 wr_(mand)。 if(K==0) { while(K==0)。 if(v==4) v=0。 case 1:if(K1==0){while(K1==0)。}break。value2=value2+5。 case 3:if(K1==0){while(K1==0)。}break。 if(K2==0) 單片機(jī)原理及系統(tǒng)課程設(shè)計(jì)報(bào)告 15 { while(K2==0)。 } } } void mode( ) interrupt 0 //外部中斷 0 控制選位 { m++。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 informu, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If y
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1