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

正文內(nèi)容

畢業(yè)論文-基于霍爾傳感器的電機測速裝置的設計與實現(xiàn)-資料下載頁

2025-01-16 22:44本頁面
  

【正文】 ************************************/ 廣 東白云學院 基于霍爾傳感器的電機測速裝置的設計 與 實現(xiàn) 35 void timer0()interrupt 1 { TR1=0 。 TH0=0xfc 。 TL0=0x66 。 TH1=PWM 。 TR1=1 。 ENA=0 。 //啟動輸出 } /*********************************************************/ // 定時器 1 中斷服務程序 /*********************************************************/ void timer1()interrupt 3 {TR1=0 。 ENA=1 。//結束輸出 } /*********************************************************/ //蜂鳴器子程序 /*********************************************************/ void Beep(void) {uchar i 。 for(i=0。i100。i++) { delay(100)。 BEEP=!BEEP 。//Beep 取反 } BEEP=1 。//關閉 警示燈 delayms(100)。 } /********************************************************** void ex0_isr (void) interrupt 0 using 1//外部中斷 0 服務函數(shù) { count++。 } /******************************************************/ void timer_2(void) interrupt 5 //中斷入口,閃爍 { uchar timecount,quanshu。 TF2=0。 timecount++。 if(timecount20) {timecount=0。 miao++。 quanshu=count。 count=0。 speed=quanshu。 } if(miao59) {miao=0。 fen++。 } if(fen59) { fen=0。 shi++。 廣 東白云學院 基于霍爾傳感器的電機測速裝置的設計 與 實現(xiàn) 36 } if(shi59) shi=0。 } /*********************************************************/ // 延時子程序 /*********************************************************/ void delay(uchar t) { while(t)。 } /*********************************************************/ // 延時子程序 /*********************************************************/ void delayms(uchar ms) { uchar i 。 while(ms) { for(i=0。i120。i++)。 } } /********************************************************/ void STR() {str0[0]=39。S39。 str0[1]=39。p39。 str0[2]=39。e39。 str0[3]=39。e39。 str0[4]=39。d39。 str0[5]=39。 39。 str0[6]=39。:39。 str0[7]=speed/1000+0x30。 str0[8]=speed%1000/100+0x30。 //str0[8]=39。.39。 str0[9]=speed%100/10+0x30。 str0[10]=speed%10+0x30。 str0[11]=39。 39。 str0[12]=39。r39。 str0[13]=39。/39。 str0[14]=39。s39。 str0[15]=39。 39。 str1[0]=39。t39。 str1[1]=39。i39。 str1[2]=39。m39。 str1[3]=39。e39。 str1[4]=39。:39。 str1[5]=shi/10+0x30。 str1[6]=shi%10+0x30。 str1[7]=39。:39。 str1[8]=fen/10+0x30。 str1[9]=fen%10+0x30。 str1[10]=39。:39。 str1[11]=miao/10+0x30。 str1[12]=miao%10+0x30。 str1[13]=39。 39。 str1[14]=39。 39。 str1[15]=39。 39。 廣 東白云學院 基于霍爾傳感器的電機測速裝置的設計 與 實現(xiàn) 37 } void ddelay(uint k) { uint i,j。 for(i=0。ik。i++) {for(j=0。j60。j++) {。} } } /**********寫指令到 LCD 子函數(shù) ************/ void WriteCommandLCM(uchar WCLCM,uchar BusyC) {if(BusyC)lcd_wait()。 DATAPORT=WCLCM。 LCM_RS=0。 /* 選中指令寄存器 */ LCM_RW=0。 // 寫模式 LCM_EN=1。 _nop_()。 _nop_()。 _nop_()。 LCM_EN=0。 } /**********寫數(shù)據(jù)到 LCD 子函數(shù) ************/ void WriteDataLCM(uchar WDLCM) {lcd_wait( )。 //檢測忙信號 DATAPORT=WDLCM。 LCM_RS=1。 /* 選中數(shù)據(jù)寄存器 */ LCM_RW=0。 // 寫模式 LCM_EN=1。 _nop_()。 _nop_()。 _nop_()。 LCM_EN=0。 } /***********lcd 內(nèi)部等待函數(shù)*************/ void lcd_wait(void) { DATAPORT=0xff。 //讀LCD 前若單片機輸出低電平 ,而讀出LCD 為高電平 ,則沖突 ,Proteus 仿真會有顯示邏輯黃色 LCM_EN=1。 LCM_RS=0。 LCM_RW=1。 _nop_()。 _nop_()。 _nop_()。 while(DATAPORTamp。BUSY) { LCM_EN=0。 _nop_()。 _nop_()。 LCM_EN=1。 _nop_()。 廣 東白云學院 基于霍爾傳感器的電機測速裝置的設計 與 實現(xiàn) 38 _nop_()。 } LCM_EN=0。 } /**********LCD 初始化子函數(shù)***********/ void initLCM( ) {DATAPORT=0。 ddelay(15)。 WriteCommandLCM(0x38,0)。 //三次顯示模式 設置,不檢測忙信號 ddelay(5)。 WriteCommandLCM(0x38,0)。 ddelay(5)。 WriteCommandLCM(0x38,0)。 ddelay(5)。 WriteCommandLCM(0x38,1)。//8bit 數(shù)據(jù)傳送, 2 行顯示, 5*7 字型,檢測忙信號 WriteCommandLCM(0x08,1)。 //關閉顯示,檢測忙信號 WriteCommandLCM(0x01,1)。 //清屏,檢測忙信號 WriteCommandLCM(0x06,1)。 //顯示光標右移設置,檢測忙信號 WriteCommandLCM(0x0c,1)。 //顯示屏打開,光標不顯示,不閃爍,檢測忙信號 } /****顯示指定坐標的一個字符子函數(shù) ****/ void DisplayOneChar(uchar X,uchar Y,uchar DData) { Yamp。=1。 Xamp。=15。 if(Y)X|=0x40。 //若 y為 1(顯示第二行),地址碼 +0X40 X|=0x80。 //指令碼為 地址碼 +0X80 WriteCommandLCM(X,0)。 WriteDataLCM(DData)。 } /*******顯示指定坐標的一串字符子函數(shù) *****/ void DisplayListChar(uchar X,uchar Y,uchar *DData) { uchar ListLength=0。 Yamp。=0x01。 Xamp。=0x0f。 while(X16) {DisplayOneChar(X,Y,DData[ListLength])。 ListLength++。 X++。 廣 東白云學院 基于霍爾傳感器的電機測速裝置的設計 與 實現(xiàn) 39 } } void display() {STR()。 DisplayListChar(0,0,str0)。 DisplayListChar(0,1,str1)。 } 廣 東白云學院 基于霍爾傳感器的電機測速裝置的設計 與 實現(xiàn) 40 為你提供優(yōu)秀的畢業(yè)論文參考資料,請您刪除以下內(nèi)容,O(∩ _∩ )O 謝謝?。。?A large group of tea merchants on camels and horses from Northwest China39。s Shaanxi province pass through a stop on the ancient Silk Road, Gansu39。s Zhangye city during their journey to Kazakhstan, May 5, 2022. The caravan, consisting of more than 100 camels, three horsedrawn carriages and four support vehicles, started the trip from Jingyang county in Shaanxi on Sept 19, 2022. It will pass through Gansu province and Xinjiang Uygur autonomous region, and finally arrive in Almaty, formerly known as AlmaAta, the largest city in Kazakhstan, and Dungan in Zhambyl province. The trip will cover about 15,000 kilometers and take the caravan more than one year to plete. The caravan is expected to return to Jingyang in March 2022. Then they will e back, carrying specialty products from Kazakhstan A small art troupe
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1