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

正文內(nèi)容

基于at89c52單片機(jī)的光電式傳感器測(cè)轉(zhuǎn)速系統(tǒng)(存儲(chǔ)版)

  

【正文】 圖 421 調(diào)入目標(biāo)代碼文件 本設(shè)計(jì)以經(jīng)過(guò)信號(hào)調(diào)理電路的脈沖信號(hào)為輸入信號(hào),借由信號(hào)發(fā)生器模擬轉(zhuǎn)盤向單片機(jī)輸送信號(hào),在 Frequency 欄設(shè)定一個(gè)頻率如圖 422 圖 422:頻率設(shè)置界面 南京鐵道職業(yè)技術(shù)學(xué)院 第 22 頁(yè) 共 30 頁(yè) 22 經(jīng)過(guò) 10s 得出轉(zhuǎn)圈數(shù),模擬結(jié)果如圖 423 圖 423:模擬結(jié)果 圖中用方波發(fā)生器模擬光電開(kāi)關(guān)產(chǎn)生脈沖(頻率為 10Hz,約 1ms產(chǎn)生一個(gè)脈沖),由 ,由單片機(jī)控制 T1進(jìn)行計(jì)數(shù),同時(shí)定時(shí)器 T0每 10ms產(chǎn)生中斷對(duì)數(shù)碼管進(jìn)行刷新,當(dāng)中斷 100次(即 10s)后,對(duì)計(jì)數(shù)脈沖進(jìn)行計(jì)算處理,得出轉(zhuǎn)速,并用數(shù)碼管顯 示。通過(guò)本次畢業(yè)設(shè)計(jì),使我近一步熟悉了一個(gè)系統(tǒng)的設(shè)計(jì)過(guò)程,通過(guò)查閱大量的資料、反復(fù)論證可行性、反復(fù)進(jìn)行試驗(yàn)、最終實(shí)現(xiàn)了整個(gè)設(shè)計(jì)過(guò)程。 uchar data Disbuf[4]。 //延時(shí)函數(shù) void Delay(uint ms)。 //開(kāi)機(jī)時(shí),初始化為 0000 Disbuf[1] = 0。 //計(jì)算轉(zhuǎn)速,并把結(jié)果放入數(shù)碼管緩沖區(qū) Tcounter = 0。0xbf。 P2=P2|0xf0。 南京鐵道職業(yè)技術(shù)學(xué)院 第 28 頁(yè) 共 30 頁(yè) 28 PlusCounter = TH1*256 + TL1。 //定時(shí) 10 毫秒 /* Timer 0 mode 1 with software gate */ TMOD |= 0x01。 /* enable timer0 interrupt */ EA=1。 /* Counter 1 mode 1 with software gate */ TMOD |= 0x50。 /* enable timer1 interrupt */ EA=1。s 150th anniversary celebrations and will attend City39?;蛟S是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個(gè)不同的日子過(guò)成了同一天的樣子;或許是追溯過(guò)去,對(duì)自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來(lái),思緒一直很凌亂,在腦海中不斷糾纏。s plaint. In a statement the Russian side added: We found no racist insults from fans of CSKA. Age has reached the end of the beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day。re clear about the terms of the agreement. It might be best to get advice from an experienced adviser, for example, at a Citizens Advice Bureau. To find your nearest CAB, including those that give advice by , click on nearest CAB. For more information about making a claim to an employment tribunal, see Employment tribunals. 南京鐵道職業(yè)技術(shù)學(xué)院 第 31 頁(yè) 共 30 頁(yè) 31 The (lack of) air up there Watch mCayman Islandsbased Webb, the head of Fifa39。 /* init values */ TL1 = 0x00。 } //初始化定時(shí)器 T1 void init_timer1() { TMOD amp。 /* init values */ TL0 = 0x00。 } //初始化定時(shí)器 T0 void init_timer0() { TMOD amp。 } //計(jì)算轉(zhuǎn)速,并把結(jié)果放入數(shù)碼管緩沖區(qū) void ClacSpeed() { long speed 。 LED_DAT = table[Disbuf[2]]。 P2=P2|0xf0。 // 定時(shí)刷新數(shù)碼管顯示 if(Flag_clac) { Flag_clac = 0。 if(TcounterTIME_CYLC) { Flag_clac = 1。 //初始化定時(shí)器 T0 void init_timer0()。 南京鐵道職業(yè)技術(shù)學(xué)院 第 25 頁(yè) 共 30 頁(yè) 25 附錄一 光電傳感器測(cè)轉(zhuǎn)速原理圖: P 0. 0/ A D 039P 0. 1/ A D 138P 0. 2/ A D 237P 0. 3/ A D 336P 0. 4/ A D 435P 0. 5/ A D 534P 0. 6/ A D 633P 0. 7/ A D 732P 2. 0/ A 821P 2. 1/ A 922P 2. 2/ A 1023P 2. 3/ A 1124P 2. 4/ A 1225P 2. 5/ A 1326P 2. 6/ A 1427P 2. 7/ A 1528P 3. 0/ R X D10P 3. 1/ T X D11P 3. 4/ T 014P 3. 3/ I N T 113P 3. 5/ T 115P 3. 6/ W R16P 3. 7/ R D17X T A L 119X T A L 218R S T9P S E N29A L E30EA31P 1. 0/ T 21P 1. 1/ T 2E X2P 1. 23P 1. 34P 1. 45P 1. 56P 1. 67P 1. 78P 3. 2/ I N T 057A T 89C 52U1C130pFC230pFX1C R Y S T A LV C CC310uFR 116KV C CA B C D E F DP 1 2 3 410k10kG N D 南京鐵道職業(yè)技術(shù)學(xué)院 第 26 頁(yè) 共 30 頁(yè) 26 附錄二 光電傳感器測(cè)轉(zhuǎn)速主程序: include define uchar unsigned char define uint unsigned int define ulong unsigned long define LED_DAT P1 sbit pin_SpeedSenser = P3^5。系統(tǒng)在硬件設(shè)計(jì)上也充分考慮了可擴(kuò)展性,經(jīng)過(guò)簡(jiǎn)單的修改程序,很容易實(shí)現(xiàn)功能的擴(kuò)展。它是目前最好的仿真單片機(jī)及外圍器件的工具。選“ Add File to Group Source Group1 ”彈南京鐵道職業(yè)技術(shù)學(xué)院 第 20 頁(yè) 共 30 頁(yè) 20 出文件窗口,選擇剛剛保存的文件,按 Add 按鈕,關(guān)閉文件窗口,程序文件已加到項(xiàng)目中了。通過(guò) Project 菜單中的 New Project 命令建立項(xiàng)目文件,過(guò)程如 圖 41。 根據(jù)設(shè)計(jì)的要求,單片機(jī)的 任務(wù)是:內(nèi)部進(jìn)行計(jì)數(shù),在計(jì)算出速度后顯示。若顯示器的位數(shù)不大于 8 位,則控制顯示器公共極電位只需 8 位口(稱為掃描口),控制各位顯示器所顯示的字形也需一個(gè) 8 位口(稱為段數(shù)據(jù)口)。 1 位顯示器由八個(gè)發(fā)光二極管組成,其中七個(gè)發(fā)光二極管 a~g 控制七個(gè)筆畫(huà)(段)的亮或暗,另一個(gè)控制一個(gè)小數(shù)點(diǎn)的亮和暗,這種筆畫(huà)式的 七段顯示器能顯示的字符較少,字符的開(kāi)頭有些失真,但控制簡(jiǎn)單,使用方便。 晶振有一個(gè)重要的參數(shù),那就是負(fù)載電容值,選擇與負(fù)載電容值相等的并聯(lián)電容,就可以得到晶振標(biāo)稱的諧振頻率。 圖 27 電路模擬仿真示意圖及其模擬仿真結(jié)果 硬件電路的設(shè)計(jì) 系統(tǒng)由信號(hào)預(yù)處理電路、單片機(jī) AT89C5系統(tǒng)化 LED 顯示模塊、串口數(shù)據(jù)存儲(chǔ)電路和系統(tǒng)軟件組成。Vi+( +)為同相輸入端,表示運(yùn)放輸出端 Vo 的信號(hào)與該輸入端的相位相同。它可以在與光軸 0 到 25 的范圍改變發(fā)射角,使光束幾乎 是從一根發(fā)射線,經(jīng)過(guò)反射后,還是從這根反射線返回。 原理如圖 23 圖 23 光電傳感器原理圖 發(fā)送器對(duì)準(zhǔn)目標(biāo)發(fā)射光束,發(fā)射的光束一般來(lái)源于半導(dǎo)體光源,發(fā)光二極管(LED)、激光二極管及紅外發(fā)射二極管。 激光與普通光線相比具有能量高度集中,方向性好,頻率單純、相干性好等優(yōu)點(diǎn),是很理想的光源。模擬式光電傳感器按被測(cè)量 (檢測(cè)目標(biāo)物體 )方法可分為透射 (吸收 )式、漫反射式、遮光式 (光束阻檔 )三大類。如采用外部時(shí)鐘源驅(qū)動(dòng)器件, XTAL2南京鐵道職業(yè)技術(shù)學(xué)院 第 6 頁(yè) 共 30 頁(yè) 6 應(yīng)不接。 /EA/VPP :當(dāng) /EA 保 持 低 電 平 時(shí) , 則 在 此 期 間 外 部 程 序 存儲(chǔ)器( 0000HFFFFH),不管是否有內(nèi)部程序存儲(chǔ)器。然而要注意的是:每當(dāng)用作外部數(shù)據(jù)存儲(chǔ)器時(shí),將跳過(guò)一個(gè) ALE 脈沖。當(dāng) P3 口寫入 “1”后,它們被內(nèi)部上拉為高電平,并用作輸入。在 FLASH編程和校驗(yàn)時(shí), P1 口作為低八位地址接收。掉電方式保存 RAM 中的內(nèi)容,但振蕩器停止工作并禁止其它所有部件工作器,串行通信口及中斷系統(tǒng)繼續(xù)工作。 AT89C2051 是一種帶 2K 字節(jié)閃存可編程可擦除只讀存儲(chǔ)器的單片機(jī)。由于伺服驅(qū)動(dòng)系統(tǒng)不斷朝著數(shù)字化智能化方向發(fā)展,因此轉(zhuǎn)速的控制成為在工業(yè)測(cè)控系統(tǒng)實(shí)現(xiàn)的關(guān)鍵環(huán)節(jié)。 這也使其在檢測(cè)和控制領(lǐng)域得到了廣泛的應(yīng)用。 關(guān)鍵字: AT89C52(單片機(jī)); 轉(zhuǎn)速; 光電傳感器; Abstract In engineering practice, we often meet with all need to measure the speed of the occasion, speed measurement method is divided into two kinds of analog and digital. The deviation of the traditional analog measurement of large, difficult to achieve high precision requirements. Digital measuring method using MCU as the core. This design with AT89C52 as control core, posed of a photoelectric sensor, a total of four vaginal constitute digital tube, the hardware system includes a pulse signal generation display module three module, pulse signal processing module and the speed of the. The design of the speed measurement system is divided into three parts, respectively, photoelectric sensor part, rectifier and filter part and the SCM and digital tube display part. System through the photoelectric sensor to collect signals, the signal conditioning circuits, will deal with the pulse signal into the microcontroller, the debugging result is displayed on a total of four vaginal digital display tube. Keywords: AT89C52 (SCM)。 由于傳統(tǒng)的模擬式測(cè)量方式偏差較大,難以達(dá)到高精度的測(cè)量要求。
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1