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

正文內(nèi)容

基于紅外遙控的電機(jī)控制畢業(yè)設(shè)計(jì)論文-資料下載頁(yè)

2025-06-30 11:23本頁(yè)面

【導(dǎo)讀】以AT89S51單片機(jī)為核心的紅外遙控系統(tǒng)。系統(tǒng)由發(fā)射和接收以及測(cè)速三大部分組成。在測(cè)試使用后,證明其方便、可靠并具有使用價(jià)值。課題的選題背景·······················································································1. 直流電機(jī)PWM調(diào)速原理··············································································2. 第二章總體方案設(shè)計(jì)····································································3

  

【正文】 ET0=1。 //允許定時(shí)器中斷 EX1=1。 //允許外部中斷 TMOD |= 0x10。 ET1= 1。 TH1 = 0xfc。 TL1 = 0x18。 //TR1 = 1。 } /*********************************************** 定時(shí)器中斷 ***********************************************/ void time0() interrupt 1 using 2///定時(shí)器中斷 { TF0=0。 count++。//定時(shí)器中斷次數(shù)累加 } /********************************************** 外部中斷,紅外解碼程序 **********************************************/ void int1() interrupt 2 using 3///外部中斷 { TR0=1。//開(kāi)定時(shí)器中斷 if(count12amp。amp。count270)//如果信號(hào)合法,則放入 buf_count,count 清 0,對(duì)下一個(gè)脈沖信號(hào)計(jì)時(shí) { buf_count=count。 count=0。 } 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū) (論文 ) 第 33 頁(yè) 共 57 頁(yè) delay_10us(10)。//延時(shí) 100us 以消除下降沿跳變抖動(dòng) if(ir==0)//INT1 引腳穩(wěn)定為低電平,則表法確實(shí)是信號(hào), count 重新計(jì)時(shí),因上面延時(shí)了 50us,故要補(bǔ)償 1 次 TO 中斷 { count=2。 } if(buf_count12amp。amp。buf_count270)//若收到的信號(hào)合法,則再進(jìn)行信號(hào)分析 { if(ir_status==0)//如果之前未收到引導(dǎo)碼 { if(buf_count210amp。amp。buf_count270)//判斷是否引導(dǎo)碼 { ir_status=1。//系統(tǒng)標(biāo)記 buf_count=0。// } } else if(ir_status==1)///收到引導(dǎo)碼 { if(mon_code_count=25)//若收完 26 個(gè)脈沖 { ir_status=2。//數(shù)據(jù)解碼標(biāo)記 mon_code_count=0。//系統(tǒng)碼計(jì)算清零 buf_count=0。//中斷計(jì)數(shù)暫存清 0 } else if((buf_count40amp。amp。buf_count70)||(buf_count12amp。amp。buf_count32)) { buf_count=0。 mon_code_count++。//每收到一個(gè)信號(hào)自加 1 } } else if(ir_status==2)//進(jìn)入數(shù)據(jù)編碼接收 { if(key_bit_count8)// 收到數(shù)據(jù)少于 8 位, 則 將 收 到的 數(shù) 據(jù) 寫(xiě) 入buf_key_code { if(buf_count40amp。amp。buf_count70) { buf_count=0。 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū) (論文 ) 第 34 頁(yè) 共 57 頁(yè) buf_key_code=1。 buf_key_code|=0x80。//收到 1 key_bit_count++。//數(shù)據(jù)脈沖累加 } else if(buf_count12amp。amp。buf_count32)//收到 0 { buf_count=0。 buf_key_code=1。//收到 0 key_bit_count++。 } } else //若收完 8位數(shù)據(jù)則做以下處理 { ir_status=0。//接收狀態(tài)返回到空閑 key_code=buf_key_code。 key_bit_count=0。 buf_key_code=0。 buf_count=0。 TR0=0。 new_code=1。 } } } } /************************************* 主程序 *************************************/ void main(void) { init()。 ///初始化 motor_enable = 0。 WholeCycle = 500。 while(1) { if(1 == new_code) { new_code = 0。 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū) (論文 ) 第 35 頁(yè) 共 57 頁(yè) switch(key_code) { case 1: motor_input1 = 1。 motor_input2 = 0。 PWMCycle = 300。 TR1 = 1。 motor_enable = 1。 P1 = 0xff。 break。 case 2: motor_enable = 0。 TR1 = 0。 TH1 = 0xfc。 TL1 = 0x18。 P1 = 0xff。 break。 case 3: motor_enable = 0。 delay_ms(10)。 motor_input1 = 1。 motor_input2 = 0。 PWMCycle = 300。 TR1 = 1。 motor_enable = 1。 P1 = 0xff。 LED0 = 0。 break。 case 4: motor_enable = 0。 delay_ms(10)。 motor_input1 = 0。 motor_input2 = 1。 PWMCycle = 300。 TR1 = 1。 motor_enable = 1。 P1 = 0xff。 LED1 = 0。 break。 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū) (論文 ) 第 36 頁(yè) 共 57 頁(yè) case 5: PWMCycle += 20。 if(PWMCycle WholeCycle) PWMCycle = WholeCycle。 P1 = 0xff。 LED2 = 0。 break。 case 6: PWMCycle = 20。 if(PWMCycle 0) PWMCycle = 0。 P1 = 0xff。 LED3 = 0。 break。 default: motor_enable = 0。 break。 } } } } /**************************** PWM*****************/ void timer1(void) interrupt 3 using 1 { static uint i。 if (i PWMCycle) // 預(yù)設(shè)占空比輸出 { motor_enable = 1。 } else { motor_enable = 0。 } if (i = WholeCycle) // PWM 計(jì)數(shù)清零 { i = 0。 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū) (論文 ) 第 37 頁(yè) 共 57 頁(yè) } else { i ++。 // 自增值加 1 } TH1 = 0xfc。 TL1 = 0x18。 } 附錄 4 :中英文翻譯 Progress in Computers The first stored program puters began to work around 1950. The one we built in Cambridge, the EDSAC was first used in the summer of 1949. These early experimental puters were built by people like myself with varying backgrounds. We all had extensive experience in electronic engineering and were confident that that experience would stand us in good stead. This proved true, although we had some new things to learn. The most important of these was that transients must be treated correctly。 what would cause a harmless flash on the screen of a television set could lead to a serious error in a puter. As far as puting circuits were concerned, we found ourselves with an embarass de richess. For example, we could use vacuum tube diodes for gates as we did in the EDSAC or pentodes with control signals on both grids, a system widely used elsewhere. This sort of choice persisted and the term families of logic came into use. Those who have worked in the puter field will remember TTL, ECL and CMOS. Of these, CMOS has now bee dominant. In those early years, the IEE was still dominated by power engineering and we had to fight a number of major battles in order to get radio engineering along with the rapidly developing subject of in the IEE light 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū) (論文 ) 第 38 頁(yè) 共 57 頁(yè) current electrical recognised as an activity in its own right. I remember that we had some difficulty in anising a conference because the power engineers’ ways of doing things were not our ways. A minor source of irritation was that all IEE published papers were expected to start with a lengthy statement of earlier practice, something difficult to do when there was no earlier practice Consolidation in the 1960s By the late 50s or early 1960s, the heroic pioneering stage was over and the puter field was starting up in real earnest. The number of puters in the world had increased and they were much more reliable than the very early ones . To those years we can ascribe the first steps in high level languages and the first operating systems. Experimental timesharing was beginning, and ultimately puter graphics was to e along. Above all, transistors began to replace vacuum tubes. This change presented a formidable challenge to the engineers of the day. They had to fet what they knew about circuits and start again. It can only be said that they measured up superbly well to the challenge and that the change could not have gone more smoothly. Soon it was found possible to put more than one transistor on the same bit of silicon, and this was the beginning of integrated circuits. As time went on, a sufficient level of integration was reached for one chip to acmodate enough transistors for a small number of gates or flip flops. This led to a range of chips known as the 7400 series. The gates and flip flops were independent of one another and each had its own pins. They could be connected by offchip wiring to make a puter or anything else. These chips made a new kind of puter possible. It was called a miniputer. It was something less that a mainframe, but still very powerful, and much more affordable. Instead of having one expensive mainframe for the whole anisation, a business or a university was able to have a miniputer for each major 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說(shuō)明書(shū) (論文 ) 第 39 頁(yè) 共 57 頁(yè) department. Before long miniputers began to spread and bee more powerful. The world was hungry for
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1