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

正文內(nèi)容

出租車計價器畢業(yè)論文-閱讀頁

2025-07-12 12:58本頁面
  

【正文】 :北京航空航天大學(xué)出版社,1999.He singlechip microputer application system design [M]. Beijing: Beihang University press,1999.[8] 李群芳,[M].北京:清華大學(xué)出版社,2005.Li Qunfang, Xiao. Principle of singlechip interface and application [M]. Beijing: Tsinghua University press,2005.[9] [M].北京:北京航空航天大學(xué)出版,.Edited by Ma Zhongmei. The MCU C language Windows programming environment [M]. Beijing: Beihang University press,.[10] [M].北京:機械工業(yè)出版社,2004.GaoFeng. Single chip microputer application system design and its practical technique [M]. Beijing: Mechanical Industry Press,2004.[11] [M].西安:西安電子科技大學(xué)出版社,1996.Liu Shouyi. Application technology [M]. Xi39。an Electronic and Science University press,1996.[12] 謝劍英,[M].北京:國防工業(yè)出版社,2001.Xie Jianying, Qing Jia. The microputer control technology Third Edition [M]. Beijing: National Defense Industry Press,2001.附 錄附 錄 一:程 序//計程車計價器 設(shè)計//該模擬程序折合規(guī)則:1km1m,等待30s1km1m,//底層規(guī)則:若脈沖個數(shù)/秒 10,則判為低速,1m200個脈沖includeincludeincludeincludeincludeuchar code univalent[2] = {1,50}。 //各時間在液晶上的顯示位置uchar code money_pos[4] = {4,7,4,7}。 //0未配置完成,1配置完成bit state = 0。 //計價停止?fàn)顟B(tài)位0正常計價,1暫停計價uint pulse_count = 0。uint time_count = 0。 //保存里程的變量,通過差值計算里程變化,單位為km,,uchar idata time[7] = {0x09,0x1,0x1,0x1,0x0,0x0,0x0}。 //保存車費的數(shù)組,[0]整數(shù)位,[1]小數(shù)位uint money1[2]={10,0}。sbit k=P1^4。void INT1_init(void)。void System_init(void)。void Run_Show_Time(uchar time_data[7])。void Show_Wait_Time(uint)。void Run_BackGround(void)。/39。 WriteChar(39。,10,0)。:39。 WriteChar(39。,3,1)。Y39。}void Show_Mileage(void){ WriteDecimal(pulse_count / 200,0,12,1)。 WriteChar(39。,12,1)。}void Show_Wait_Time(uint time_count){ WriteChar(39。,15,1)。 39。 WriteInt(time_count,1,4,11,1)。 WriteDecimal(money[1],1,3,1)。 WriteInt(BcdToInt(time_data[3]),1,2, 4,0)。 WriteInt(BcdToInt(time_data[5]),1,2,11,0)。}void Time_Show(uchar time_data[7]){ WriteChar(39。,6,0)。/39。 WriteChar(39。,6,1)。:39。 WriteInt(BcdToInt(time_data[0]),1,2, 4,0)。 WriteInt(BcdToInt(time_data[3]),1,2,10,0)。 WriteInt(BcdToInt(time_data[5]),1,2, 7,1)。}void System_init(void){ RstLcd()。 P1 = 0x00。 Time_Show(time)。 SetCur(3)。 while(config_ok == 0)。 SetCur(1)。 Delay(60000)。 Run_BackGround()。}void Delay(uint dtime) { uint temp。tempdtime。}void INT0_init(void){ EA = 0。 EX0 = 1。}void INT1_init(void){ EA = 0。 EX1 = 1。}void main(){ uchar time_tmp[7],i。 DS1302_GetData(time)。 mileage_count_new = mileage_count_old = 0。 if(k==1) Money_Show(money)。 Run_Show_Time(time)。 while(1) { if(config_ok == 0) //若設(shè)置時間未完成 System_init()。 if(!(P1 amp。= 0xfe。 pause = 0。 for(i = 0。i++) time[i] = time_tmp[i]。 if(k==1) { money[0] = 8。 } else { money1[0] = 10。 } mileage_count_new = mileage_count_old = 0。 WriteString( ,9,1)。 else Money_Show(money1)。 pulse_count = 0。 time_count = 0。 if(time[6] != time_tmp[6]) { Run_Show_Time(time_tmp)。i 7。 if(pulse_count pulse_count_tmp 10) //判斷是否是低速行駛(計時),即一秒內(nèi),脈沖數(shù)目的個數(shù)變化值若小于10,則判為低速 { state = 1。= 0xfe。 time_count ++。amp。 else money1[1] += 40。 money[1] %= 100。 else money1[0] += 0。 else Money_Show(money1)。amp。 else 。 Show_Wait_Time(time_count)。 P1 amp。 P1 |= 0x01。 //全速狀態(tài)下,把等待時間清0 } pulse_count_tmp = pulse_count。 if(mileage_count_new != mileage_count_old amp。 first_3_km 2) { Show_Mileage()。i mileage_count_new。 else money1[1] += 20。 money[1] %= 100。 else money1[0] += 1。 else Money_Show(money1)。 } else if(mileage_count_new != mileage_count_old amp。 first_3_km = 2) { first_3_km ++。 Show_Mileage()。 for(i = 0。i++) time[i] = time_tmp[i]。}static void INT1_ser(void) interrupt 2{ uchar month_day[12]={31,0,31,30,31,30,31,31,30,31,30,31}。 uchar i。 //配置到哪一項 //配置時間 if(!(P2 amp。amp。i 100。 if(!(P2 amp。amp。 if((pos == 0 amp。 result == 50) || (pos == 4 amp。 result == 24) || (pos == 5 amp。 result == 60) || (pos == 6 amp。 result == 60)) result = 0。amp。 else if(pos == 3) { month_day[1] = (time[0] % 4 == 0 amp。 time[0] % 100 != 0) || time[0] % 400 == 0 ? 29:28。 } time[pos] = IntToBcd(result)。 } else if(!(P2 amp。amp。i 100。 if(!(P2 amp。amp。 if((pos == 0 amp。 result == 1)) result = 49。amp。 else if(pos == 3) { month_day[1]=(time[0] % 4 == 0 amp。 time[0] % 100 != 0) || time[0] % 400 == 0 ? 29:28。 } else if(pos == 4 amp。 result == 1) result = 23。amp。 else 。 } } else if(!(P2 amp。amp。i 100。 if(!(P2 amp。amp。 pos %= 7。 } } else if(!(P2 amp。amp。i 100。 if(!(P2 amp。amp。 if(pos == 1) pos = 6。 } } else if(!(P2 amp。amp。i 100。 if(!(P2 amp。amp。 pos = 0。 DS1302_SettingData(time)。 0x80) amp。 config_ok == 1) //CONFIG { for(i = 0。i++)。 0x80) amp。 config_ok == 1) { config_ok = 0。 0x08) amp。 config_ok == 1) { for(i = 0。i++)。 0x08) amp。 config_ok == 1) { pause = ~pause。 } } if(config_ok == 0) { WriteInt(BcdToInt(time[pos]),1,2,time_pos[pos],pos 3 ?1:0 )。 }}Typedefine uchar unsigned chardefine uint unsigned intuchar IntToBcd(uchar)。uchar IntToBcd(uchar num){ uchar result。 return result。 result = ((num amp。 0x0f)。}Lcddisp/**************************************************。 。 。80C51的晶振頻率為12MHz。**************************************************/define uchar unsigned chardefine uint unsigned intinclude include sbit RS = P2^2。sbit E = P2^0。 //無顯示const uchar NoCur=1。 //有光標(biāo)但不閃爍const uchar CurFlash=3。 //確定光標(biāo)位置void LcdWd(uchar)。 //送控制字(檢測忙信號)void LcdW(uchar )。 //延時,毫秒數(shù)由j決定void WaitIdl
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1