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

正文內(nèi)容

基于單片機的超聲波測距儀的設(shè)計與制作畢業(yè)設(shè)計-資料下載頁

2025-06-27 20:26本頁面
  

【正文】 ice_table[C_distance%10]。 //39。幾39。 PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 }}}else if(C_distance9){ Voice_dat=Voice_table[C_distance%100/10]。 //39。幾39。 PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。Voice_dat=Voice_table[10]。 //十PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。if(C_distance%100) {Voice_dat=Voice_table[C_distance%10]。 //39。幾39。 PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 } }Else{Voice_dat=Voice_table[C_distance%10]。 //39。幾39。PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 }Voice_dat=Voice_table[12]。 //厘米PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 }}}void play(){if(!KEY_PLAY){delayms(8)。if(!KEY_PLAY){Voice_dat=Voice_table[13]。 //距離PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。if(C_distance99){Voice_dat=Voice_table[C_distance%1000/100]。 //39。幾39。PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。Voice_dat=Voice_table[11]。 //百PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 if(C_distance%100/100){Voice_dat=Voice_table[C_distance%100/10]。 //39。幾39。PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。Voice_dat=Voice_table[10]。 //十PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。if(C_distance%100) {Voice_dat=Voice_table[C_distance%10]。 //39。幾39。PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 } }else{if(C_distance%100){Voice_dat=Voice_table[0]。 //零PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 Voice_dat=Voice_table[C_distance%10]。 //39。幾39。PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 }}}else if(C_distance9){ Voice_dat=Voice_table[C_distance%100/10]。 //39。幾39。PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。Voice_dat=Voice_table[10]。 //十PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。if(C_distance%100) {Voice_dat=Voice_table[C_distance%10]。 //39。幾39。PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 } }else{Voice_dat=Voice_table[C_distance%10]。 //39。幾39。PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 }Voice_dat=Voice_table[12]。 //厘米PLAYEN=0。delayms(10)。PLAYEN=1。while(Play_Over)。while(!Play_Over)。 }}}define uchar unsigned chardefine uint unsigned intsbit DS18B20_DQ=P1^4。uchar dispbuf[5]={0,0,0,0,0}。uchar data DS18B20_Temp_data[2]={0x00,0x00}。 //儲存溫度值得數(shù)組uchar code DS18B20_TEM_Deccode[16]={0x00,0x01,0x01,0x02,0x03,0x03,0x04,0x04, //溫度小數(shù)位查表數(shù)組 0x05,0x06,0x06,0x07,0x08,0x08,0x09,0x09}。uint DS18B20_Change_Time=0。 //不同溫度傳感器采集溫度的切換時間bit DS18B20_Presence。 //18b20復(fù)位成功標(biāo)示位 =0 成功 =1 失敗void Delay_6us(uchar xus) //6*xus+11us的延時時間(經(jīng)仿真得到的){while(xus)。}void DS18B20_RESET() //復(fù)位{DS18B20_DQ=1。Delay_6us(2)。DS18B20_DQ=0。Delay_6us(80)。 //至少480us的低電平信號DS18B20_DQ=1。 //拉高等待接收18b20的存在脈沖信號 Delay_6us(10)。DS18B20_Presence=DS18B20_DQ。Delay_6us(40)。DS18B20_DQ=1。 //拉高使總線在空閑狀態(tài)}void Write_DS18B20_OneChar(uchar dat) //寫一個字節(jié){ uchar a=0。for(a=8。a0。a){ DS18B20_DQ=0。DS18B20_DQ=datamp。0x01。Delay_6us(5)。DS18B20_DQ=1。dat=1。}}uchar Read_DS18B20_OneChar() //讀一個字節(jié){uchar dat=0。uchar a=0。for(a=8。a0。a){DS18B20_DQ=0。 dat=1。DS18B20_DQ=1。if(DS18B20_DQ){dat|=0x80。Delay_6us(4)。}return dat。}void Read_18B20_Temperature(){ DS18B20_RESET()。 //復(fù)位18B20if(!DS18B20_Presence) //復(fù)位成功{Write_DS18B20_OneChar(0XCC)。 //跳過讀序列號Write_DS18B20_OneChar(0X44)。 //啟動溫度轉(zhuǎn)換Delay_6us(82)。 //等待溫度轉(zhuǎn)換時間500us左右DS18B20_RESET()。 //復(fù)位18B20 Write_DS18B20_OneChar(0XCC)。 //跳過讀序列號Write_DS18B20_OneChar(0XBE)。DS18B20_Temp_data[0]=Read_DS18B20_OneChar()。 //Temperature LSBDS18B20_Temp_data[1]=Read_DS18B20_OneChar()。 //Temperature MSB }dispbuf[4]=((DS18B20_Temp_data[1]amp。0x0f)4)|((DS18B20_Temp_data[0]amp。0xf0)4)。 //取出溫度值得整數(shù)位dispbuf[3]=dispbuf[4]/100。dispbuf[2]=dispbuf[4]%100/10。dispbuf[1]=dispbuf[4]%10。 cc=+*dispbuf[4]。 //C = +(米/秒)φ為測出的溫度。C=(uint)cc。}
點擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1