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

正文內(nèi)容

計(jì)算器單片機(jī)技術(shù)課程設(shè)計(jì)(文件)

2025-07-01 05:16 上一頁面

下一頁面
 

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

基于單片機(jī)的簡易計(jì)算器設(shè)計(jì)-資料下載頁

【摘要】電》