【正文】
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。s with the United States developed 74 series, or the 6039。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。 } } } 外文資料翻譯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(licheng==100) { licheng=0。 if(inter==500) //設(shè)車輪周長為2米,則500個脈沖為1Km { inter=0。 if(exter==0) // 負跳變有效 { // IT1=1。 qufan=!qufan。 cc++。 //TH1=(655363000)/256。 } */void timer1() interrupt 3 //產(chǎn)生方波,模擬A44E { TH1=(655362765)/256。 delay(5)。 licheng++。 inter++。 delay(5)。 } } // temp=inter。 if(dd==12) //1min { dengdai++。temp1) //每秒比較一次 temp=inter。 if(bb==100) //每5sec比較一次判斷是否等待 //if(bb==50) { bb=0。 //定時50ms bb++。 //TH0=(6553650000)/256。 TH0=(6553646080)/256。 init()。 delay(5)。 //鍵盤防抖 if(key0==0) //init()。 display(123,4,56,danjia)。 /* WrToROM (0x05,55)。 //切換白天夜晚單價 display(zongjine,dengdai,licheng,danjia)。 keyscan()。 //exter=qufan。 key3num=0。}void main(){ init()。 if(qiehuantemp==1) danjia=danjia1。 } // aa=1。 while(!key4)。 while(!key4)。 //鍵盤防抖 if(key4==0) //aa=0。 //else // zongjine=qibu+7*danjia+dengdai*danjia3。 //起步公里內(nèi)金額計算 else //if(licheng30) zongjine=qibu+(licheng/10+8)*danjia+dengdai*danjia3 。amp。(licheng30)) zongjine=qibu+(licheng/102)*danjia+dengdai*danjia3。}void jisuan(){ if(led==1) if(licheng30) //等價于if((led=1)amp。 dula=0。 dula=1。 P2=0xff。 //TR1=0。 ET1=1。 //TH1=(655363000)/256。 //開定時器T0 TH1=(655362765)/256。 ET0=1。 //TL0=(6553650000)%256。 TL0=(6553646080)%256。 //觸發(fā)方式下降沿 TMOD=0x11。 //開總中斷 // EX1=1。 inter=0。 cc=0。 aa=1。 danjia3=RdFromROM(0x03)。 danjia1=RdFromROM(0x01)。 licheng=0。 I2C _init()。 } } } } }}void init(){ //Sda=1。 delay(5)。 if(key3==0) { key3num++。 // aa=1。 WrToROM (0x04,qibu)。 } } display(0,4,0,qibu)。 delay(5)。 if(qibu==1) qibu=99。 } } if(key2==0) { delay(5)。 delay(5)。 if(qibu==100) qibu=0。 if(key1==0) { delay(5) 。 WrToROM (0x03,danjia3)。 } } display(0,3,0,danjia3)。 delay(5)。 if(danjia3==1) danjia3=99。 } } if(key2==0) { delay(5)。 delay(5)。 if(danjia3==100) danjia3=0。 if(key1==0) { delay(5)。 WrToROM (0x02,danjia2)。 } } display(0,2,0,danjia2)。 delay(5)。 if(danjia2==1) danjia2=99。 } } if(key2==0) { delay(5)。 delay(5)。 if(danjia2==100) danjia2=0。 if(key1==0) { delay(5)。 }if(key3num==2) //調(diào)夜晚單價 danjia2 //while (key3num==2) { WrToROM (0x01,danjia1)。 while(!key2)。 while(!key2)。 if(key2==0) { danjia1。 while(!key1)。 while(!key1)。 if(key1==0) { danjia1++。 while(key3num) { if(key3num==1) //調(diào)白天單價,danjia1 { //display(0,1,0,danjia1)。 delay(5)。 key3num=1。 } } void keyscan() //鍵盤掃描{ if(key3==0) //功能鍵調(diào)節(jié) { delay(5)。 dula=0。 dula=1。 P2=0x80。 delay(4)。0x7f。 dula=1。 P2=0x40。 delay(4)。 P0=table[lge]。 wela=0。 wela=1。 dula=0。 P0=table[lshi]amp。 wela=0。 wela=1。 dula=0。 dula=1。 P2=0x08。 delay(4)。 P0=table[jjiao]。 wela=0。 wela=1。 dula=0。 P0=table[jge]amp。 wela=0。 wela=1。 dula=0。 dula=1。 P2=0x01。 djiao=danjia0%10。 lge=licheng0%10。 dengd=dengdai0。 jge=zongjine0%100/10。 //uint numwei=0。 delay(10)。 rd=RdFromROM(0x01)。 delay(10)。 P3=0x00。 } /*void main(){ uchar rd。 stop()。 Data=Read()。 Send(0xa1)。