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

正文內(nèi)容

單片機(jī)課程設(shè)計(jì)報(bào)告--基于at89s52的電子萬(wàn)年歷設(shè)計(jì)-閱讀頁(yè)

2025-04-07 05:54本頁(yè)面
  

【正文】 。i++)write_data(year1out10[i])。 case 12:write_mand(0x87)。year1out11[i]!=39。i++)write_data(year1out11[i])。 }} //鍵盤掃描程序 //******************************************* void key_scan(){ uchar poi=0。 if(menu==0) { delayms(5)。 while(!menu)。 temp=(read[6]/16)*10+read[6]%16。 write_mand(0x0f)。 write_mand(0x81)。 write_data(temp%10+0x30)。 if((add==0)amp。(flag4==0)) { delayms(5)。 temp++。 if(temp99) {flag4=1。write_mand(0x80)。write_data(9+0x30)。amp。 if(add==0) { while(!add)。flag3=2。temp=0。write_data(0x30+2)。}//20 } } //從19往上加,加到100,變20 if((add==0)amp。(flag4==2)) { delayms(5)。 temp++。 if(temp99) {flag4=0。write_mand(0x80)。write_data(0x30+0)。amp。 if(dec==0) { while(!dec)。flag4=0。temp=99。write_mand(0x80)。write_data(9+0x30)。amp。 if(dec==0) { while(!dec)。flag4=1。temp=99。write_mand(0x80)。write_data(0x30+0)。amp。 if(dec==0) { while(!dec)。flag4=2。temp=99。write_mand(0x80)。write_data(0x30+0)。 if(menu==0) { while(!menu)。 write_date(0x8c,read[6])。 temp=(read[4]/16)*10+read[4]%16。 write_mand(0x0f)。 write_mand(0x83)。 write_data(temp%10+0x30)。 if(add==0) { delayms(5)。 temp++。 } } if(dec==0) { delayms(5)。 temp。 } } if(menu==0) { delayms(5)。 read[4]=(temp/10)*16+temp%10。 poi++。//日 } } } while(poi==3) //日 { write_mand(0x85)。 delayms(100)。 write_data(temp/10+0x30)。 write_mand(0x85)。 if(add==0) { while(!add)。 if(temp31) temp=0。 if(dec==0) { while(!dec)。 if(temp1) temp=31。 if(menu==0) { while(!menu)。 write_date(0x86,read[3])。 temp=(read[5]/16)*10+read[5]%16。 write_mand(0x0f)。 write_data(temp%10+0x30)。 if(add==0) { delayms(5)。 temp++。 } } if(dec==0) { delayms(5)。 temp。 } } if(menu==0) { delayms(5)。 read[5]=(temp/10)*16+temp%10。 poi++。//小時(shí) } } } while(poi==5) //小時(shí) { write_mand(0x93)。 delayms(100)。 write_data(temp/10+0x30)。 write_mand(0x93)。 if(add==0) { while(!add)。 if(temp23) temp=0。 if(dec==0) { while(!dec)。 if(temp0) temp=23。 if(menu==0) { while(!menu)。 write_date(0x84,read[2])。 temp=(read[1]/16)*10+read[1]%16。 write_mand(0x0f)。 write_mand(0x95)。 write_data(temp%10+0x30)。 if(add==0) { delayms(5)。 temp++。 } } if(dec==0) { delayms(5)。 temp。 } } if(menu==0) { delayms(5)。 read[1]=(temp/10)*16+temp%10。 poi++。//分 } } } while(poi==7) //miao { write_mand(0x97)。 delayms(100)。 write_data(temp/10+0x30)。 write_mand(0x97)。 if(add==0) { while(!add)。 if(temp59) temp=0。 if(dec==0) { while(!dec)。 if(temp0) temp=59。 if(menu==0) { poi++。 read[0]=(temp/10)*16+temp%10。 write_mand(0x0c)。poi=0。} /*************鬧鐘設(shè)定********/ if(keynz==0amp。poi==0) { delayms(5)。amp。 while(!keynz)。 temp=(read1[2]/16)*10+read1[2]%16。 write_mand(0x0f)。 write_mand(0x8b)。 write_data(temp%10+0x30)。 if(add==0) { delayms(5)。 temp++。 } } if(dec==0) { delayms(5)。 temp。 } } if(keynz==0amp。poi==0) { delayms(5)。amp。 read1[2]=(temp/10)*16+temp%10。//lfen key4++。//lfen } } } while(key4==2) { write_mand(0x8d)。 //開顯示,顯示光標(biāo),光標(biāo)閃爍 delayms(100)。 write_data(temp/10+0x30)。 write_mand(0x8d)。 if(add==0) { while(!add)。 if(temp59) temp=0。 if(dec==0) { while(!dec)。 if(temp0) temp=59。amp。 if(keynz==0amp。poi==0) { while(!keynz)。 write_date(0xfc,read1[1])。 temp=(read1[0]/16)*10+read1[0]%16。 write_mand(0x0f)。 write_mand(0x8f)。 write_data(temp%10+0x30)。 if(add==0) { delayms(5)。 temp++。 } } if(dec==0) { delayms(5)。 temp。 } } if(keynz==0amp。poi==0) { delayms(5)。amp。 read1[0]=(temp/10)*16+temp%10。//時(shí) key4++。//分 } } } if(key4==4){flag2=0。write_mand(0x0c)。 DQ=0。 while(i0)i。 i=100。 }bit ReadBit() //讀一位{ bit k。 DQ=0。i++。 DQ=1。 while(i0)i。 i=10。 return k。 bit l。i8。 l=ReadBit()。 } return temp。 for(i=0。i++) { if(dateamp。 for(j=3。j)。 for(j=16。j)。 for(j=16。j)。 j++。 } date=1。 float t1。 reset()。 write_byte18b20(0xcc)。//溫度轉(zhuǎn)換 delayms(1)。 write_byte18b20(0xcc)。 a=readbyte()。//讀取溫度值高字節(jié) t=(b8)|a。 //實(shí)際上的十進(jìn)制數(shù) t1=t1*。}void dis1302() //顯示初始設(shè)置{ ReadTime()。 //nian display(read[6])。 //yue display(read[4])。 //ri display(read[3])。 //week// write_data(read[5]%16+0x30)。 //shi display(read[2])。 //fen display(read[1])。 //miao display(read[0])。}void ds1820disp()//溫度值顯示{ uchar ge,shi,xiaoshu。 //i=tem/1000+0x30。 ge=tem/10%10+0x30。 /* if(tflag==0) i=0x20。//負(fù)溫度顯示負(fù)號(hào): if(bai==0x30) { bai=0x20。//如果百位為0,十位為0也不顯示 } } */ // write_mand(0x98+5)。 write_mand(0x9b)。 //write_mand(0x9c)。 write_mand(0x9c)。//顯示小數(shù)點(diǎn) // write_mand(0x9d)。 delayms(200)。//從ds1302里面的RAM讀取鬧鐘時(shí),此處不放在while(1)大循環(huán)里面是因?yàn)閐s1302里面的RAM里的數(shù)據(jù)是不變的只需讀取一次 read1[1]=ReadSet1302(0xfd)。 write_mand(0x8b)。 write_mand(0x8d)。// write_data(0x97)。 write_mand(0x8f)。// write_mand(0x96)。 // write_data(read1[0])。amp。amp。amp。 }}void time_zhengshi() //時(shí)鐘正時(shí)報(bào)時(shí){ uchar i。i16。amp。amp。i4。}}} } for(i=0。i++) { if(((read[2]/16)==1)amp。((read[2]%16)==i)amp。(read[1]==86)amp。(read[0]==86)) {{for(i=0。i++){didi()。 LCD_init()。 write_mand(0x80)。table1[i]!=39。i++) write_data(table1[i])。 for(i=0。\039。 write_mand(0x88)。table2[i]!=39。i++) write_data(table2[i])。 for
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1