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

正文內(nèi)容

基于stc89c52單片機(jī)出租車計(jì)價器設(shè)計(jì)(文件)

2024-07-18 18:50 上一頁面

下一頁面
 

【正文】 { delay(5) 。 delay(5)。 if(qibu==1) qibu=99。 } } display(0,4,0,qibu)。 // aa=1。 delay(5)。 I2C _init()。 danjia1=RdFromROM(0x01)。 aa=1。 inter=0。 //觸發(fā)方式下降沿 TMOD=0x11。 //TL0=(6553650000)%256。 //開定時器T0 TH1=(655362765)/256。 ET1=1。 P2=0xff。 dula=0。(licheng30)) zongjine=qibu+(licheng/102)*danjia+dengdai*danjia3。 //起步公里內(nèi)金額計(jì)算 else //if(licheng30) zongjine=qibu+(licheng/10+8)*danjia+dengdai*danjia3 。 //鍵盤防抖 if(key4==0) //aa=0。 while(!key4)。 if(qiehuantemp==1) danjia=danjia1。 key3num=0。 keyscan()。 /* WrToROM (0x05,55)。 //鍵盤防抖 if(key0==0) //init()。 init()。 //TH0=(6553650000)/256。 if(bb==100) //每5sec比較一次判斷是否等待 //if(bb==50) { bb=0。 if(dd==12) //1min { dengdai++。 delay(5)。 licheng++。 } */void timer1() interrupt 3 //產(chǎn)生方波,模擬A44E { TH1=(655362765)/256。 cc++。 if(exter==0) // 負(fù)跳變有效 { // IT1=1。 } if(licheng==100) { licheng=0。s dedicated processor, while the average model prices fall to one . dollars, the most highend [1] model only 10 SCM systems are no longer only in the development and use of bare metal environment, a large number of proprietary embedded operating system is widely used in the full range of SCM. The handheld puters and cell phones as the core processing of highend microcontroller can even use a dedicated Windows and Linux operating systems.SCM is more suitable than the specific processor used in embedded systems, so it was up to the application. In fact the number of SCM is the world39。s with a series of successful SCM market, the result will be a drastic change! Just because you are prepared by microputer programs can achieve high intelligence, high efficiency and high reliabili。s with the United States developed 74 series, or the 6039。 } } } 外文資料翻譯SinglechipSCM is also known as microcontroller (Microcontroller Unit), monly used letters of the acronym MCU that it was first used in industrial control.Only a single chip by the CPU chip developed from a dedicated processor. The first design is by a large number of peripherals and CPU on a chip in the puter system, smaller, more easily integrated into a plex and demanding on the volume control device which. INTEL39。 if(inter==500) //設(shè)車輪周長為2米,則500個脈沖為1Km { inter=0。 qufan=!qufan。 //TH1=(655363000)/256。 delay(5)。 inter++。 } } // temp=inter。temp1) //每秒比較一次 temp=inter。 //定時50ms bb++。 TH0=(6553646080)/256。 delay(5)。 display(123,4,56,danjia)。 //切換白天夜晚單價 display(zongjine,dengdai,licheng,danjia)。 //exter=qufan。}void main(){ init()。 } // aa=1。 while(!key4)。 //else // zongjine=qibu+7*danjia+dengdai*danjia3。amp。}void jisuan(){ if(led==1) if(licheng30) //等價于if((led=1)amp。 dula=1。 //TR1=0。 //TH1=(655363000)/256。 ET0=1。 TL0=(6553646080)%256。 //開總中斷 // EX1=1。 cc=0。 danjia3=RdFromROM(0x03)。 licheng=0。 } } } } }}void init(){ //Sda=1。 if(key3==0) { key3num++。 WrToROM (0x04,qibu)。 delay(5)。 } } if(key2==0) { delay(5)。 if(qibu==100) qibu=0。 WrToROM (0x03,danjia3)。 delay(5)。 } } if(key2==0) { delay(5)。 if(danjia3==100) danjia3=0。 WrToROM (0x02,danjia2)。 delay(5)。 } } if(key2==0) { delay(5)。 if(danjia2==100) danjia2=0。 }if(key3num==2) //調(diào)夜晚單價 danjia2 //while (key3num==2) { WrToROM (0x01,danjia1)。 while(!key2)。 while(!key1)。 if(key1==0) { danjia1++。 delay(5)。 } } void keyscan() //鍵盤掃描{ if(key3==0) //功能鍵調(diào)節(jié) { delay(5)。 dula=1。 delay(4)。 dula=1。 delay(4)。 wela=0。 dula=0。 wela=0。 dula=0。 P2=0x08。 P0=table[jjiao]。 wela=1。 P0=table[jge]amp。 wela=1。 dula=1。 djiao=danjia0%10。 dengd=dengdai0。 //uint numwei=0。 rd=RdFromROM(0x01)。 P3=0x00。 stop()。 Send(0xa1)。 Ack()。 delay(20)。 Ack()。}void WrToROM(uchar Addresss,uchar Data){ start()。}BitCounter。 //temp的最低位置1elsetemp=tempamp。Scl=1。uchar BitCounter=8。 } while(BitCounter)。 Scl=1。 delayNOP( )。}void Send(uchar Data){ uchar BitCounter=8。 Scl=1。 Scl=0。 }void Ack(){ Sda=0。 Scl=1。 Scl=0。 Sda=1。 Scl=1。_nop_()。_nop_()。j)。 for(i=x。uchar danjia1,danjia2,danjia3,qibu,danjia。 //硬件寫保護(hù) uint zongjine,dengdai。 sbit wela=P1^6 。 // 切換sbit led=P1^7。 // 清零sbit key1=P1^1。//uchar code table2[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80}。 謝 辭在此次設(shè)計(jì)中,陳文清老師作為我的指導(dǎo)老師,至始至終都給予我了不少幫助,從下任務(wù)書開始,就幫我制定規(guī)劃,提醒我應(yīng)注意的問題;借給我資料,幫我聯(lián)系硬件;和我一起調(diào)程序,并提出了很多的修改意見以及完善方案;此外還認(rèn)真批閱了我的論文,指出其中很多瑕疵和不清晰的地方;更重要的是在我遇到困難時對我的鼓勵,讓我不懈怠、不退縮、也讓我更有信心;可以說我的每一點(diǎn)進(jìn)展都與陳老師的付出是分不開的。實(shí)現(xiàn)了單價可調(diào),掉電保持,此外還增加了等待計(jì)時功能,白天夜晚單價自動切換,并且能實(shí)時顯示總金額,等待時間,運(yùn)行里程,運(yùn)行單價等詳細(xì)信息;且能很方便的在不改變硬件電路的情況下通過改變軟件實(shí)現(xiàn)計(jì)價精度的提高,進(jìn)行
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1