【正文】
431. [15] 彭志剛 .基于 單片機(jī)的紅 外遙控電機(jī) 調(diào)速系統(tǒng) 的設(shè)計(jì) [J].現(xiàn) 代電子技術(shù) ,20xx,279(16):4650. 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說明書 (論文 ) 第 28 頁 共 57 頁 致 謝 為期 三 個(gè)多月的畢業(yè)設(shè)計(jì)終于結(jié)束了,在這 三 個(gè)多月中我完成了畢業(yè)設(shè)計(jì)課題。通過設(shè)計(jì)對(duì)自身的技能水平和理論基礎(chǔ)有一個(gè)全面的,客觀的評(píng)價(jià)。 因此,在整個(gè)的設(shè)計(jì)過程中除了我自身的努力外,離不開同學(xué)的幫助,老師的關(guān)心和指導(dǎo)。 signed char PWMCycle = 300。 sbit LED0 = P1^0。 uchar num。//鍵值暫存 uchar key_bit_count=0。//前導(dǎo)碼脈沖計(jì)數(shù) uchar ir_status=0。x)。x) for(y=113。 //紅外端口寫 1 // led=0。 //定時(shí) 50us TL0=0Xd1。 //允許外部中斷 TMOD |= 0x10。 //TR1 = 1。//開定時(shí)器中斷 if(count12amp。 } 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說明書 (論文 ) 第 33 頁 共 57 頁 delay_10us(10)。buf_count270)//若收到的信號(hào)合法,則再進(jìn)行信號(hào)分析 { if(ir_status==0)//如果之前未收到引導(dǎo)碼 { if(buf_count210amp。// } } else if(ir_status==1)///收到引導(dǎo)碼 { if(mon_code_count=25)//若收完 26 個(gè)脈沖 { ir_status=2。amp。 mon_code_count++。 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說明書 (論文 ) 第 34 頁 共 57 頁 buf_key_code=1。amp。 } } else //若收完 8位數(shù)據(jù)則做以下處理 { ir_status=0。 buf_count=0。 ///初始化 motor_enable = 0。 motor_input2 = 0。 P1 = 0xff。 TH1 = 0xfc。 case 3: motor_enable = 0。 PWMCycle = 300。 LED0 = 0。 motor_input1 = 0。 motor_enable = 1。 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說明書 (論文 ) 第 36 頁 共 57 頁 case 5: PWMCycle += 20。 break。 LED3 = 0。 } } } } /**************************** PWM*****************/ void timer1(void) interrupt 3 using 1 { static uint i。 江蘇技術(shù)師范學(xué)院畢業(yè)設(shè)計(jì)說明書 (論文 ) 第 37 頁 共 57 頁 } else { i ++。 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ì)說明書 (論文 ) 第 38 頁 共 57 頁 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ì)說明書 (論文 ) 第 39 頁 共 57 頁 department. Before long miniputers began to spread and bee more powerful. The world was hungry for。 TL1 = 0x18。 } else { motor_enable = 0。 default: motor_enable = 0。 if(PWMCycle 0) PWMCycle = 0。 P1 = 0xff。 LED1 = 0。 PWMCycle = 300。 case 4: motor_enable = 0。 motor_enable = 1。 motor_input1 = 1。 P1 = 0xff。 case 2: motor_enable = 0。 TR1 = 1。 while(1) { if(1 == new_code) { new_code = 0。 new_code=1。 key_bit_count=0。 buf_key_code=1。//收到 1 key_bit_count++。amp。amp。//系統(tǒng)碼計(jì)算清零 buf_count=0。buf_count270)//判斷是否引導(dǎo)碼