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

正文內(nèi)容

計(jì)算器單片機(jī)技術(shù)課程設(shè)計(jì)(參考版)

2025-06-11 05:16本頁(yè)面
  

【正文】 } 。 while(!DEC)。 } } if(DEC==0) { delay(15)。 if(HEX==0) { KeyValue=21。 while(!TAN)。 } } if(TAN==0) { delay(15)。 if(SIN==0) { KeyValue=19。 while(!COS)。 } } if(COS==0) { delay(15)。 if(SQUARE==0) { KeyValue=17。 } 37 while(GPIO_KEY!=0xf0)。 case(0Xe0): KeyValue=KeyValue+4。 case(0Xd0): KeyValue=KeyValue+3。 case(0Xb0): KeyValue=KeyValue+2。 switch(GPIO_KEY) { case(0X70): KeyValue=KeyValue+1。break。break。break。break。//延時(shí) 10ms進(jìn)行消抖 if(GPIO_KEY!=0x0f)//再次檢測(cè)鍵盤是否按下 { //測(cè)試列 GPIO_KEY=0X0F。 GPIO_KEY=0x0f。 TR0=1。 TL0=(6553650000)%256。 delay(1)。isize。//選擇要寫入字符的首地址,每寫入一個(gè)字符,地址加 1 else if(row==2) write_mand(0xc4)。 } } void show_value(int row,int size,char* str) { uchar i。i++) { write_data(str[i])。//選擇要寫入字符的首地址,每寫入一個(gè)字符,地址加 1 for(i=0。 35 if(row==1) write_mand(0x80)。//開定時(shí)器 0中斷 TR0=1。 EA=1。 //選擇定時(shí)器 T0的工作模式和工作方式 TH0=(6553650000)/256。 show_word(1,2,p.)。 write_mand(0x01)。 write_mand(0x06)。 write_mand(0x0c)。 } void init() { write_mand(0x38)。 delay(5)。 delay(1)。 EN=0。//忙檢測(cè) RS=1。 34 } void write_data(uchar date)//寫數(shù)據(jù), date為要輸入的數(shù)據(jù) { while((busy_check() amp。 delay(1)。 delay(1)。 EN=0。//當(dāng) D7為 1時(shí), LCM忙不能讀取指令和數(shù)據(jù) RS=0。 } //LCD1602顯示程序模塊 void write_mand(uchar )//寫指令, 即為指令 { while((busy_check() amp。a0。b0。c0。 } //延時(shí)函數(shù) void delay(uint z) //延時(shí)函數(shù)當(dāng) Z=1,延時(shí) 1ms { unsigned char a,b,c。 39。i16。 val_tmp%=(int)pow(10,result_sizei1)。i++) { result[i]=val_tmp/((int)pow(10,result_sizei1)) +39。 for(i=0。 33 } result_size=i。 while(val_tmp0) { val_tmp/=10。 } i=0。break。o39。break。:val=left_Val/right_Val。 case 39。opr_flag=2。*39。break。:val=left_Valright_Val。 case 39。opr_flag=2。+39。o39。039。 opr_flag==4) { left_Val*=10。 amp。 temp[i]=39。 amp。 } else if(temp[i]=39。 right_Val+=temp[i]39。amp。939。amp。039。039。 opr_flag!=2) { left_Val*=10。 amp。 temp[i]=39。 amp。 32 } if(temp[i]=39。) { opr_flag=2。||temp[i]==39。||temp[i]==39。||temp[i]==39。i++) { if(temp[i]==39。temp[i]!=39。 int val_tmp。 char operator。 int left_Val=0。 } uchar* getValue(uchar* temp) { int i=0。 default :break。=39。break。 case 14:temp=39。*39。break。 case 12:temp=39。+39。break。 case 10:temp=39。839。break。 case 8:temp=39。639。break。 case 6:temp=39。439。break。 case 4:temp=39。239。break。 case 2:temp=39。039。 } //鍵值轉(zhuǎn)換成字符函數(shù) uchar getkey(int value) { uchar temp。 } } else if(flag==9) //hex to dec { temp=hexToDec(key,count1)。break。break。break。break。break。039。i++) { value*=10。key[i]!=39。amp。 int tmp。 double decimal。 30 int value=0。 } return result。 result[i+3]=39。 result[i+2]=39。 result[i+1]=39。 } } else if(decimal==0) { result[i]=39。 result[i+j]=a+39。j++) { a=temp/pow(10,dSizej1)。 for(j=0。 if(decimal0) decimal=decimal。 } } if(decimal!=0) { result[i++]=39。 result[i]=a+39。i++) { a=temp/pow(10,iSizei)。 for(i=1。39。039。 temp%=(int)pow(10,iSizei1)。iiSize。 decimal=numtemp。 int temp=(int)num。 int j=0。 return count。 count++。 else temp=n。 int temp。 } return temp。 temp+=h[i]39。icount。 int temp=0。 } //十六進(jìn)制轉(zhuǎn)十進(jìn)制 int hexToDec(char* h,int count) { int dec。 result[size1i]=temp。i++)//反序 { temp=result[i]。 for(i=0。 } size=i。 while(temp0) { result[i++]=hex[temp%16]。039。i++) { temp*=10。//remainder for(i=0。 int size。 } } } } //十進(jìn)制轉(zhuǎn)十六進(jìn)制 char* decToHex(char* d,int count,int *s) { int i。size))。 //show_word(2,size,result)。 opr_flag==10) { decToHex(key,count1,amp。 } else if(KeyValue==15 amp。 ftoa(temp,result_size,3)。 opr_flag10) { temp=func_calc(key,opr_flag)。 opr_flag=4 amp。 } else if(KeyValue==15 amp。鍵被按下 { show_word(2,result_size,getValue(key))。 opr_flag4)//39。 } if(KeyValue==15 amp。 show_word(1,4,opr)。amp。amp。//dec } } if(opr_flag=4)//如果 opr_flag==4,顯示相應(yīng)的符號(hào)到第一行 { show_word(1,4,opr)。opr_flag=10。opr[3]=39。opr[2]=39。opr[1]=39。//hex case 22:opr[0]=39。opr_flag=9。opr[3]=39。opr[2]=39。opr[1]=39。//tan case 21:opr[0]=39。opr_flag=8。opr[3]=39。opr[2]=39。opr[1]=39。//cos case 20:opr[0]=39。opr_flag=7。opr[3]=39。opr[2]=39。opr[1]=39。//sin case 19:opr[0]=39。opr_flag=6。opr[3]=39。opr[2]=39。opr[1]=39。//squre root case 18:opr[0]=39。opr_flag=5。opr[3]=39。opr[2]=39。opr[1]=39。//squre case 17:opr[0]=39。opr_flag=4。opr[3]=39。opr[2]=39。opr[1]=39。//不記錄該鍵 switch (KeyValue) { case 16:opr[0]=39。amp。 show_word(1
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1