版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、<p><b> 淮 陰 工 學(xué) 院</b></p><p> 畢業(yè)設(shè)計(jì)(論文)外文翻譯</p><p> 2012年 4 月 10日</p><p> 基于單片機(jī)的步進(jìn)電機(jī)電路控制設(shè)計(jì)</p><p> 89C51是一種帶4K字節(jié)閃爍可編程可擦除只讀存儲(chǔ)器(FPEROM—Falsh Programm
2、able and Erasable Read Only Memory)的低電壓、高性能CMOS8位微處理器,俗稱單片機(jī)。該器件采用ATMEL高密度非易失存儲(chǔ)器制造技術(shù)制造,與工業(yè)標(biāo)準(zhǔn)的MCS-51指令集和輸出管腳相兼容。由于將多功能8位CPU和閃爍存儲(chǔ)器組合在單個(gè)芯片中,ATMEL的89C51是一種高效微控制器,89C2051是它的一種精簡版本。89C單片機(jī)為很多嵌入式控制系統(tǒng)提供了一種靈活性高且價(jià)廉的方案。</p>&l
3、t;p><b> 功能特點(diǎn)</b></p><p> ·與MCS-51 兼容 </p><p> ·4K字節(jié)可編程閃爍存儲(chǔ)器 </p><p> · 壽命:1000寫/擦循環(huán) </p><p> ·數(shù)據(jù)保留時(shí)間:10年 </p><p>
4、·全靜態(tài)工作:0Hz-24MHz </p><p> ·三級(jí)程序存儲(chǔ)器鎖定 </p><p> ·128*8位內(nèi)部RAM </p><p> ·32可編程I/O線 </p><p> ·兩個(gè)16位定時(shí)器/計(jì)數(shù)器 </p><p><b> ·
5、;5個(gè)中斷源 </b></p><p><b> ·可編程串行通道 </b></p><p> ·低功耗的閑置和掉電模式 </p><p> ·片內(nèi)振蕩器和時(shí)鐘電路</p><p><b> 管腳說明</b></p><p>
6、 VCC:供電電壓。 </p><p><b> GND:接地。 </b></p><p> P0口:P0口為一個(gè)8位漏級(jí)開路雙向I/O口,每腳可吸收8TTL門電流。當(dāng)P1口的管腳第一次寫1時(shí),被定義為高阻輸入。P0能夠用于外部程序數(shù)據(jù)存儲(chǔ)器,它可以被定義為數(shù)據(jù)/地址的低八位。在FIASH編程時(shí),P0 口作為原碼輸入口,當(dāng)FIASH進(jìn)行校驗(yàn)時(shí),P0輸出原碼,此時(shí)
7、P0外部必須被拉高。 </p><p> P1口:P1口是一個(gè)內(nèi)部提供上拉電阻的8位雙向I/O口,P1口緩沖器能接收輸出4TTL門電流。P1口管腳寫入1后,被內(nèi)部上拉為高,可用作輸入,P1口被外部下拉為低電平時(shí),將輸出電流,這是由于內(nèi)部上拉的緣故。在FLASH編程和校驗(yàn)時(shí),P1口作為第八位地址接收。 </p><p> P2口:P2口為一個(gè)內(nèi)部上拉電阻的8位雙向I/O口,P2口緩沖器可
8、接收,輸出4個(gè)TTL門電流,當(dāng)P2口被寫“1”時(shí),其管腳被內(nèi)部上拉電阻拉高,且作為輸入。并因此作為輸入時(shí),P2口的管腳被外部拉低,將輸出電流。這是由于內(nèi)部上拉的緣故。P2口當(dāng)用于外部程序存儲(chǔ)器或16位地址外部數(shù)據(jù)存儲(chǔ)器進(jìn)行存取時(shí),P2口輸出地址的高八位。在給出地址“1”時(shí),它利用內(nèi)部上拉優(yōu)勢,當(dāng)對外部八位地址數(shù)據(jù)存儲(chǔ)器進(jìn)行讀寫時(shí),P2口輸出其特殊功能寄存器的內(nèi)容。P2口在FLASH編程和校驗(yàn)時(shí)接收高八位地址信號(hào)和控制信號(hào)。 </p
9、><p> P3口:P3口管腳是8個(gè)帶內(nèi)部上拉電阻的雙向I/O口,可接收輸出4個(gè)TTL門電流。當(dāng)P3口寫入“1”后,它們被內(nèi)部上拉為高電平,并用作輸入。作為輸入,由于外部下拉為低電平,P3口將輸出電流(ILL)這是由于上拉的緣故。</p><p> P3口也可作為AT89C51的一些特殊功能口.</p><p><b> 口管腳 備選功能 </b&
10、gt;</p><p> P3.0 RXD(串行輸入口) </p><p> P3.1 TXD(串行輸出口) </p><p> P3.2 /INT0(外部中斷0) </p><p> P3.3 /INT1(外部中斷1) </p><p> P3.4 T0(記時(shí)器0外部輸入) </p><
11、p> P3.5 T1(記時(shí)器1外部輸入) </p><p> P3.6 /WR(外部數(shù)據(jù)存儲(chǔ)器寫選通) </p><p> P3.7 /RD(外部數(shù)據(jù)存儲(chǔ)器讀選通) </p><p> P3口同時(shí)為閃爍編程和編程校驗(yàn)接收一些控制信號(hào)。 </p><p> RST:復(fù)位輸入。當(dāng)振蕩器復(fù)位器件時(shí),要保持RST腳兩個(gè)機(jī)器周期的高電平
12、時(shí)間。</p><p> ALE/PROG:當(dāng)訪問外部存儲(chǔ)器時(shí),地址鎖存允許的輸出電平用于鎖存地址的地位字節(jié)。在FLASH編程期間,此引腳用于輸入編程脈沖。在平時(shí),ALE端以不變的頻率周期輸出正脈沖信號(hào),此頻率為振蕩器頻率的1/6。因此它可用作對外部輸出的脈沖或用于定時(shí)目的。然而要注意的是:每當(dāng)用作外部數(shù)據(jù)存儲(chǔ)器時(shí),將跳過一個(gè)ALE脈沖。如想禁止ALE的輸出可在SFR8EH地址上置0。此時(shí), ALE只有在執(zhí)行M
13、OVX,MOVC指令是ALE才起作用。另外,該引腳被略微拉高。如果微處理器在外部執(zhí)行狀態(tài)ALE禁止,置位無效。 </p><p> /PSEN:外部程序存儲(chǔ)器的選通信號(hào)。在由外部程序存儲(chǔ)器取指期間,每個(gè)機(jī)器周期兩次/PSEN有效。但在訪問外部數(shù)據(jù)存儲(chǔ)器時(shí),這兩次有效的/PSEN信號(hào)將不出現(xiàn)。 </p><p> /EA/VPP:當(dāng)/EA保持低電平時(shí),則在此期間外部程序存儲(chǔ)器(0000H
14、-FFFFH),不管是否有內(nèi)部程序存儲(chǔ)器。注意加密方式1時(shí),/EA將內(nèi)部鎖定為RESET;當(dāng)/EA端保持高電平時(shí),此間內(nèi)部程序存儲(chǔ)器。在FLASH編程期間,此引腳也用于施加12V編程電源(VPP)。 </p><p> XTAL1:反向振蕩放大器的輸入及內(nèi)部時(shí)鐘工作電路的輸入。 </p><p> XTAL2:來自反向振蕩器的輸出。</p><p><b&
15、gt; 振蕩器特性</b></p><p> XTAL1和XTAL2分別為反向放大器的輸入和輸出。該反向放大器可以配置為片內(nèi)振蕩器。石晶振蕩和陶瓷振蕩均可采用。如采用外部時(shí)鐘源驅(qū)動(dòng)器件,XTAL2應(yīng)不接。由于輸入至內(nèi)部時(shí)鐘信號(hào)要通過一個(gè)二分頻觸發(fā)器,因此對外部時(shí)鐘信號(hào)的脈寬無任何要求,但必須保證脈沖的高低電平要求的寬度。</p><p> Figure 1. Oscill
16、ator Connections Figure 2. External Clock Drive</p><p><b> 芯片擦除</b></p><p> 整個(gè)PEROM陣列和三個(gè)鎖定位的電擦除可通過正確的控制信號(hào)組合,并保持ALE管腳處于低電平10ms 來完成。在芯片擦操作中,代碼陣列全被寫“1”且在任何非空存儲(chǔ)字節(jié)被重復(fù)編程以前,該操作必
17、須被執(zhí)行。 </p><p> 此外,AT89C51設(shè)有穩(wěn)態(tài)邏輯,可以在低到零頻率的條件下靜態(tài)邏輯,支持兩種軟件可選的掉電模式。在閑置模式下,CPU停止工作。但RAM,定時(shí)器,計(jì)數(shù)器,串口和中斷系統(tǒng)仍在工作。在掉電模式下,保存RAM的內(nèi)容并且凍結(jié)振蕩器,禁止所用其他芯片功能,直到下一個(gè)硬件復(fù)位為止。</p><p><b> 空閑模式</b></p>
18、<p> 在空閑模式下,中央處理器把自己睡;所有的微外設(shè)保持活躍。該模式調(diào)用的軟件。片上的內(nèi)容的公綿羊、所有的特殊功能寄存器不變在這個(gè)模式下??臻e模式可以終止任何使中斷或由硬件復(fù)位。應(yīng)該指出的是,閑時(shí)終止一個(gè)硬件復(fù)位,設(shè)備通常程序執(zhí)行,從簡歷在它停止兩封,機(jī)器周期之前,內(nèi)部重置算法以控制。樣品的硬件抑制進(jìn)入內(nèi)部RAM在這種情況下,但進(jìn)入港口大頭針空洞。消除這種可能性一個(gè)出乎意料的寫信給一個(gè)港口銷閑時(shí)被終止,由復(fù)位、指導(dǎo)證明
19、那個(gè)中調(diào)用一個(gè)空閑不應(yīng)該寫端口銷或外部存儲(chǔ)器。</p><p> Power-down模式</p><p> 在power-down模式下,振子是結(jié)束了,但這個(gè)指令;用它召喚“power-down是最后的指令執(zhí)行。這片上的公綿羊、特殊功能寄存器值,直到power-down保留自己的方式終止。唯一的退出,是一家五金power-down重置。SFRs重置重新定義,但不改變樣品的公羊。重置不
20、應(yīng)該被激活之前VCC回到正常操作水平,都必須保持活躍的時(shí)間還不夠久,允許振蕩器來重新啟動(dòng)和穩(wěn)定。</p><p><b> 程序記憶鎖位</b></p><p> 在芯片上的三個(gè)鎖位可以離開unprogrammed(U)或可編程(P)獲得的額外功能列在下表。</p><p> 當(dāng)鎖點(diǎn),1是程序邏輯電平EA銷樣品并就搭在重置。如果這個(gè)裝置是
21、開機(jī)沒有重置,門閂初始化一個(gè)隨機(jī)值,認(rèn)為直到重置價(jià)值被激活。加入是必要的值EA是一致的邏輯與當(dāng)前水平銷為設(shè)備正常運(yùn)作</p><p><b> 步進(jìn)電機(jī)介紹</b></p><p> 步進(jìn)電機(jī)是將數(shù)字脈沖輸入轉(zhuǎn)換為模擬角度輸出的電磁增量運(yùn)動(dòng)裝置。其內(nèi)在的步進(jìn)能力允許沒有反饋的精確位置控制。 也就是說,他們可以在開環(huán)模式下跟蹤任何步階位置,因此執(zhí)行位置控制是不需要任
22、何反饋的。步進(jìn)電機(jī)提供比直流電機(jī)每單位更高的峰值扭矩;此外,它們是無電刷電機(jī),因此需要較少的維護(hù)。所有這些特性使得步進(jìn)電機(jī)在許多位置和速度控制系統(tǒng)的選擇中非常具有吸引力,例如如在計(jì)算機(jī)硬盤驅(qū)動(dòng)器和打印機(jī),代理表,機(jī)器人中的應(yīng)用等.</p><p> 盡管步進(jìn)電機(jī)有許多突出的特性,他們?nèi)栽馐苷袷幓虿环€(wěn)定現(xiàn)象。這種現(xiàn)象嚴(yán)重地限制其開環(huán)的動(dòng)態(tài)性能和需要高速運(yùn)作的適用領(lǐng)域。 這種振蕩通常在步進(jìn)率低于1000脈沖/秒的時(shí)
23、候發(fā)生,并已被確認(rèn)為中頻不穩(wěn)定或局部不穩(wěn)定[1],或者動(dòng)態(tài)不穩(wěn)定[2]。此外,步進(jìn)電機(jī)還有另一種不穩(wěn)定現(xiàn)象,也就是在步進(jìn)率較高時(shí),即使負(fù)荷扭矩小于其牽出扭矩,電動(dòng)機(jī)也常常不同步。該文中將這種現(xiàn)象確定為高頻不穩(wěn)定性,因?yàn)樗员仍谥蓄l振蕩現(xiàn)象中發(fā)生的頻率更高的頻率出現(xiàn)。高頻不穩(wěn)定性不像中頻不穩(wěn)定性那樣被廣泛接受,而且還沒有一個(gè)方法來評(píng)估它。</p><p> 中頻振蕩已經(jīng)被廣泛地認(rèn)識(shí)了很長一段時(shí)間,但是,一個(gè)完整的
24、了解還沒有牢固確立。這可以歸因于支配振蕩現(xiàn)象的非線性是相當(dāng)困難處理的。大多數(shù)研究人員在線性模型基礎(chǔ)上分析它[1]。盡管在許多情況下,這種處理方法是有效的或有益的,但為了更好地描述這一復(fù)雜的現(xiàn)象,在非線性理論基礎(chǔ)上的處理方法也是需要的。例如,基于線性模型只能看到電動(dòng)機(jī)在某些供應(yīng)頻率下轉(zhuǎn)向局部不穩(wěn)定,并不能使被觀測的振蕩現(xiàn)象更多深入。事實(shí)上,除非有人利用非線性理論,否則振蕩不能評(píng)估。窗體頂端</p><p><
25、b> 窗體底端</b></p><p> 因此,在非線性動(dòng)力學(xué)上利用被發(fā)展的數(shù)學(xué)理論處理振蕩或不穩(wěn)定是很重要的。值得指出的是,Taft和Gauthier[3],還有Taft和Harned[4]使用的諸如在振蕩和不穩(wěn)定現(xiàn)象的分析中的極限環(huán)和分界線之類的數(shù)學(xué)概念,并取得了關(guān)于所謂非同步現(xiàn)象的一些非常有啟發(fā)性的見解。盡管如此,在這項(xiàng)研究中仍然缺乏一個(gè)全面的數(shù)學(xué)分析。本文一種新的數(shù)學(xué)分被開發(fā)了用于分
26、析步進(jìn)電機(jī)的振動(dòng)和不穩(wěn)定性。</p><p> 本文的第一部分討論了步進(jìn)電機(jī)的穩(wěn)定性分析。結(jié)果表明,中頻振蕩可定性為一種非線性系統(tǒng)的分叉現(xiàn)象(霍普夫分叉)。本文的貢獻(xiàn)之一是將中頻振蕩與霍普夫分叉聯(lián)系起來,從而霍普夫理論從理論上證明了振蕩的存在性。高頻不穩(wěn)定性也被詳細(xì)討論了,并介紹了一種新型的量來評(píng)估高頻穩(wěn)定。這個(gè)量是很容易計(jì)算的,而且可以作為一種標(biāo)準(zhǔn)來預(yù)測高頻不穩(wěn)定性的發(fā)生。在一個(gè)真實(shí)電動(dòng)機(jī)上的實(shí)驗(yàn)結(jié)果顯示了該
27、分析工具的有效性。</p><p> 本文的第二部分通過反饋討論了步進(jìn)電機(jī)的穩(wěn)定性控制。一些設(shè)計(jì)者已表明,通過調(diào)節(jié)供應(yīng)頻率[ 5 ],中頻不穩(wěn)定性可以得到改善。特別是Pickup和Russell [ 6,7]都在頻率調(diào)制的方法上提出了詳細(xì)的分析。在他們的分析中,雅可比級(jí)數(shù)用于解決常微分方程和一組數(shù)值有待解決的非線性代數(shù)方程組。此外,他們的分析負(fù)責(zé)的是雙相電動(dòng)機(jī),因此,他們的結(jié)論不能直接適用于我們需要考慮三相電動(dòng)
28、機(jī)的情況。在這里,我們提供一個(gè)沒有必要處理任何復(fù)雜數(shù)學(xué)的更簡潔的穩(wěn)定步進(jìn)電機(jī)的分析。在這種分析中,使用的是d-q模型的步進(jìn)電機(jī)。由于雙相電動(dòng)機(jī)和三相電動(dòng)機(jī)具有相同的d-q模型,因此,這種分析對雙相電動(dòng)機(jī)和三相電動(dòng)機(jī)都有效。迄今為止,人們僅僅認(rèn)識(shí)到用調(diào)制方法來抑制中頻振蕩。本文結(jié)果表明,該方法不僅對改善中頻穩(wěn)定性有效,而且對改善高頻穩(wěn)定性也有效。</p><p><b> 動(dòng)態(tài)模型的步進(jìn)電機(jī)</b
29、></p><p> 本文件中所考慮的步進(jìn)電機(jī)由一個(gè)雙相或三相繞組的跳動(dòng)定子和永磁轉(zhuǎn)子組成。一個(gè)極對三相電動(dòng)機(jī)的簡化原理如圖1所示。步進(jìn)電機(jī)通常是由被脈沖序列控制產(chǎn)生矩形波電壓的電壓源型逆變器供給的。這種電動(dòng)機(jī)用本質(zhì)上和同步電動(dòng)機(jī)相同的原則進(jìn)行作業(yè)。步進(jìn)電機(jī)主要作業(yè)方式之一是保持提供電壓的恒定以及脈沖頻率在非常廣泛的范圍上變化。在這樣的操作條件下,振動(dòng)和不穩(wěn)定的問題通常會(huì)出現(xiàn)。</p>&l
30、t;p> 圖1.三相電動(dòng)機(jī)的圖解模型 </p><p> 用q–d框架參考轉(zhuǎn)換建立了一個(gè)三相步進(jìn)電機(jī)的數(shù)學(xué)模型 。下面給出了三相繞組電壓方程</p><p> va = Ria + L*dia /dt ? M*dib/dt ? M*dic/dt + dλpma/dt ,</p><p> vb = Rib + L*dib/dt ? M*dia/dt ?
31、 M*dic/dt + dλpmb/dt ,</p><p> vc = Ric + L*dic/dt ? M*dia/dt ? M*dib/dt + dλpmc/dt , (1) </p><p> 其中R和L分別是相繞組的電阻和感應(yīng)線圈,并且M是相繞組之間的互感線圈。</p><p> λp
32、ma, λpmb and λpmc 是應(yīng)歸于永磁體 的相的磁通,且可以假定為轉(zhuǎn)子位置的正弦函數(shù)如下</p><p> λpma = λ1 sin(Nθ),</p><p> λpmb = λ1 sin(Nθ ? 2 /3),</p><p> λpmc = λ1 sin(Nθ - 2 /3),
33、 (2)</p><p> 其中N是轉(zhuǎn)子齒數(shù)。本文中強(qiáng)調(diào)的非線性由上述方程所代表,即磁通是轉(zhuǎn)子位置的非線性函數(shù)。</p><p> 使用Q ,d轉(zhuǎn)換,將參考框架由固定相軸變換成隨轉(zhuǎn)子移動(dòng)的軸(參見圖2)。矩陣從a,b,c框架轉(zhuǎn)換成q,d框架變換被給出了[8]</p><p><b> (3)</b></p><p&
34、gt; 例如,給出了q,d參考里的電壓</p><p><b> (4)</b></p><p> 在a,b,c參考中,只有兩個(gè)變量是獨(dú)立的(ia + ib + ic = 0),因此,上面提到的由三個(gè)變量轉(zhuǎn)化為兩個(gè)變量是允許的。在電壓方程(1)中應(yīng)用上述轉(zhuǎn)換,在q,d框架中獲得轉(zhuǎn)換后的電壓方程為</p><p> vq = Riq +
35、L1*diq/dt + NL1idω + Nλ1ω,</p><p> vd = Rid + L1*did/dt ? NL1iqω, (5) </p><p> 圖2,a,b,c和d,q參考框架</p><p> 其中
36、L1 = L + M,且ω是電動(dòng)機(jī)的速度。</p><p> 有證據(jù)表明,電動(dòng)機(jī)的扭矩有以下公式</p><p> T = 3/2Nλ1iq . (6)</p><p><b> 轉(zhuǎn)子電動(dòng)機(jī)的方程為</b></p><
37、p> J*dω/dt = 3/2*Nλ1iq ? Bfω – Tl , (7) </p><p> 如果Bf是粘性摩擦系數(shù),和Tl代表負(fù)荷扭矩(在本文中假定為恒定)。</p><p> 為了構(gòu)成完整的電動(dòng)機(jī)的狀態(tài)方程,我們需要另一種代表轉(zhuǎn)子位置的狀態(tài)變量。為此,通常使用滿足下列方程的所謂的負(fù)荷角δ[8
38、]</p><p> Dδ/dt = ω?ω0 , (8) </p><p> 其中ω0是電動(dòng)機(jī)的穩(wěn)態(tài)轉(zhuǎn)速。方程(5),(7),和(8)構(gòu)成電動(dòng)機(jī)的狀態(tài)空間模型,其輸入變量是電壓vq和vd.如前所述,步進(jìn)電機(jī)由逆變器供給,其輸出電壓不是正弦電波而是方波。然而,由于相比正弦情況下非正弦電
39、壓不能很大程度地改變振蕩特性和不穩(wěn)定性(如將在第3部分顯示的,振蕩是由于電動(dòng)機(jī)的非線性),為了本文的目的我們可以假設(shè)供給電壓是正弦波。根據(jù)這一假設(shè),我們可以得到如下的vq和vd</p><p> vq = Vmcos(Nδ) ,</p><p> vd = Vmsin(Nδ) , (9)
40、 </p><p> 其中Vm是正弦波的最大值。上述方程,我們已經(jīng)將輸入電壓由時(shí)間函數(shù)轉(zhuǎn)變?yōu)闋顟B(tài)函數(shù),并且以這種方式我們可以用自控系統(tǒng)描繪出電動(dòng)機(jī)的動(dòng)態(tài),如下所示。這將有助于簡化數(shù)學(xué)分析。</p><p> 根據(jù)方程(5),(7),和(8),電動(dòng)機(jī)的狀態(tài)空間模型可以如下寫成矩陣式</p><p> ? = F(X,u) = AX + Fn(X)
41、+ Bu , (10) </p><p> 其中X = [iq id ω δ] T, u = [ω1 Tl] T 定義為輸入,且ω1 = Nω0 是供應(yīng)頻率。輸入矩陣B被定義為</p><p> 矩陣A是F(.)的線性部分,如下</p><p> Fn(X)代表了F
42、(.)的線性部分,如下</p><p> 輸入端u獨(dú)立于時(shí)間,因此,方程(10)是獨(dú)立的。</p><p> 在F(X,u)中有三個(gè)參數(shù),它們是供應(yīng)頻率ω1,電源電壓幅度Vm和負(fù)荷扭矩Tl。這些參數(shù)影響步進(jìn)電機(jī)的運(yùn)行情況。在實(shí)踐中,通常用這樣一種方式來驅(qū)動(dòng)步進(jìn)電機(jī),即用因指令脈沖而變化的供應(yīng)頻率ω1來控制電動(dòng)機(jī)的速度,而電源電壓保持不變。因此,我們應(yīng)研究參數(shù)ω1的影響。</p&g
43、t;<p> 3.分叉和中頻振蕩,</p><p> 設(shè)ω=ω0,得出方程(10)的平衡</p><p><b> 且φ是它的相角,</b></p><p> φ = arctan(ω1L1/R) . (16) </p
44、><p> 方程(12)和(13)顯示存在著多重均衡,這意味著這些平衡永遠(yuǎn)不能全局穩(wěn)定。人們可以看到,如方程(12)和(13)所示有兩組平衡。第一組由方程(12)對應(yīng)電動(dòng)機(jī)的實(shí)際運(yùn)行情況來代表。第二組由方程(13)總是不穩(wěn)定且不涉及到實(shí)際運(yùn)作情況來代表。在下面,我們將集中精力在由方程(12)代表的平衡上。</p><p><b> 附件2:外文原文</b></p
45、><p> The Stepper motor control circuit be based on Single chip microcomputer</p><p> The AT89C51 is a low-power, high-performance CMOS 8-bit microcomputer with 4K bytes of Flash programmable and
46、 erasable read only memory (PEROM). The device is manufactured using Atmel’s high-density nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction set and pinout. The on-chip Flash al
47、lows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with Flash on a monolithic chip</p><p> Function characteristic<
48、;/p><p> The AT89C51 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, two 16-bit timer/counters, a five vector two-level interrupt architecture, a full duplex serial
49、 port, on-chip oscillator and clock circuitry. In addition, the AT89C51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the
50、CPU while allowing the RAM, timer/counters, serial port and interrupt system to </p><p> Pin Description</p><p> VCC:Supply voltage.</p><p> GND:Ground.</p><p><b
51、> Port 0:</b></p><p> Port 0 is an 8-bit open-drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as high
52、impedance inputs.Port 0 may also be configured to be the multiplexed loworder address/data bus during accesses to external program and data memory. In this mode P0 has internal pullups.Port 0 also receives the code bytes
53、 during Flash programming,and outputs the code bytes during programverification. External pullups are requ</p><p><b> Port 1</b></p><p> Port 1 is an 8-bit bi-directional I/O port
54、with internal pullups.The Port 1 output buffers can sink/source four TTL inputs.When 1s are written to Port 1 pins they are pulled high by the internal pullups and can be used as inputs. As inputs,Port 1 pins that are ex
55、ternally being pulled low will source current (IIL) because of the internal pullups.Port 1 also receives the low-order address bytes during Flash programming and verification.</p><p><b> Port 2</b&
56、gt;</p><p> Port 2 is an 8-bit bi-directional I/O port with internal pullups.The Port 2 output buffers can sink/source four TTL inputs.When 1s are written to Port 2 pins they are pulled high by the internal
57、 pullups and can be used as inputs. As inputs,Port 2 pins that are externally being pulled low will source current, because of the internal pullups.Port 2 emits the high-order address byte during fetches from external pr
58、ogram memory and during accesses to external data memory that use 16-bit addresses. In</p><p><b> Port 3</b></p><p> Port 3 is an 8-bit bi-directional I/O port with internal pullup
59、s.The Port 3 output buffers can sink/source four TTL inputs.When 1s are written to Port 3 pins they are pulled high by the internal pullups and can be used as inputs. As inputs,Port 3 pins that are externally being pulle
60、d low will source current (IIL) because of the pullups.Port 3 also serves the functions of various special features of the AT89C51 as listed below:</p><p> Port 3 also receives some control signals for Fla
61、sh programming and verification.</p><p><b> RST</b></p><p> Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device.</p><
62、;p><b> ALE/PROG</b></p><p> Address Latch Enable output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input (PROG) dur
63、ing Flash programming.In normal operation ALE is emitted at a constant rate of 1/6 the oscillator frequency, and may be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped during e
64、ach access to external Data Memory.</p><p> If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction. Otherwise,
65、 the pin is weakly pulled high. Setting the ALE-disable bit has no effect if the microcontroller is in external execution mode.</p><p><b> PSEN</b></p><p> Program Store Enable is
66、the read strobe to external program memory.When the AT89C51 is executing code from external program memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to e
67、xternal data memory.</p><p><b> EA/VPP</b></p><p> External Access Enable. EA must be strapped to GND in order to enable the device to fetch code from external program memory locat
68、ions starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset.EA should be strapped to VCC for internal program executions.This pin also receives the 12-volt
69、programming enable voltage(VPP) during Flash programming, for parts that require12-volt VPP.</p><p><b> XTAL1</b></p><p> Input to the inverting oscillator amplifier and input to t
70、he internal clock operating circuit.</p><p><b> XTAL2</b></p><p> Output from the inverting oscillator amplifier.</p><p> Oscillator Characteristics</p><p&
71、gt; XTAL1 and XTAL2 are the input and output, respectively,of an inverting amplifier which can be configured for use as an on-chip oscillator, as shown in Figure 1.Either a quartz crystal or ceramic resonator may be use
72、d. To drive the device from an external clock source, XTAL2 should be left unconnected while XTAL1 is driven as shown in Figure 2.There are no requirements on the duty cycle of the external clock signal, since the input
73、to the internal clocking circuitry is through a divide-by-two fli</p><p> Figure 1. Oscillator Connections Figure 2. External Clock Drive Configuration</p><p><b> Idle Mode<
74、/b></p><p> In idle mode, the CPU puts itself to sleep while all the onchip peripherals remain active. The mode is invoked by software. The content of the on-chip RAM and all the special functions regist
75、ers remain unchanged during this mode. The idle mode can be terminated by any enabled interrupt or by a hardware reset.It should be noted that when idle is terminated by a hard ware reset, the device normally resumes pro
76、gram execution,from where it left off, up to two machine cycles before the internal reset</p><p> Power-down Mode</p><p> In the power-down mode, the oscillator is stopped, and the instruction
77、 that invokes power-down is the last instruction executed. The on-chip RAM and Special Function Registers retain their values until the power-down mode is terminated. The only exit from power-down is a hardware reset. Re
78、set redefines the SFRs but does not change the on-chip RAM. The reset should not be activated before VCC is restored to its normal operating level and must be held active long enough to allow the oscillator to </p>
79、<p> Program Memory Lock Bits</p><p> On the chip are three lock bits which can be left unprogrammed (U) or can be programmed (P) to obtain the additional features listed in the table below.</p&g
80、t;<p> When lock bit 1 is programmed, the logic level at the EA pin is sampled and latched during reset. If the device is powered up without a reset, the latch initializes to a random value, and holds that value
81、until reset is activated. It is necessary that the latched value of EA be in agreement with the current logic level at that pin in order for the device to function properly.</p><p> Introduction</p>
82、<p> Stepper motors are electromagnetic incremental-motion devices which convert digital pulse inputs to analog angle outputs. Their inherent stepping ability allows for accurate position control without feedback.
83、That is, they can track any step position in open-loop mode, consequently no feedback is needed to implement position control. Stepper motors deliver higher peak torque per unit weight than DC motors; in addition, they a
84、re brushless machines and therefore require less maintenance. All of th</p><p> Although stepper motors have many salient properties, they suffer from an oscillation or unstable phenomenon. This phenomenon
85、severely restricts their open-loop dynamic performance and applicable area where high speed operation is needed. The oscillation usually occurs at stepping rates lower than 1000 pulse/s, and has been recognized as a mid-
86、frequency instability or local instability [1], or a dynamic instability [2]. In addition, there is another kind of unstable phenomenon in stepper motors,</p><p> Mid-frequency oscillation has been recogniz
87、ed widely for a very long time, however, a complete understanding of it has not been well established. This can be attributed to the nonlinearity that dominates the oscillation phenomenon and is quite difficult to deal w
88、ith.</p><p> 384 L. Cao and H. M. Schwartz</p><p> Most researchers have analyzed it based on a linearized model [1]. Although in many cases, this kind of treatments is valid or useful, a trea
89、tment based on nonlinear theory is needed in order to give a better description on this complex phenomenon. For example, based on a linearized model one can only see that the motors turn to be locally unstable at some su
90、pply</p><p> frequencies, which does not give much insight into the observed oscillatory phenomenon. In fact, the oscillation cannot be assessed unless one uses nonlinear theory.</p><p> There
91、fore, it is significant to use developed mathematical theory on nonlinear dynamics to handle the oscillation or instability. It is worth noting that Taft and Gauthier [3], and Taft and Harned [4] used mathematical concep
92、ts such as limit cycles and separatrices in the analysis of oscillatory and unstable phenomena, and obtained some very instructive insights into the socalled loss of synchronous phenomenon. Nevertheless, there is still a
93、 lack of a comprehensive mathematical analysis in this </p><p> The first part of this paper discusses the stability analysis of stepper motors. It is shown that the mid-frequency oscillation can be charact
94、erized as a bifurcation phenomenon (Hopf bifurcation) of nonlinear systems. One of contributions of this paper is to relate the midfrequency oscillation to Hopf bifurcation, thereby, the existence of the oscillation is p
95、roved</p><p> theoretically by Hopf theory. High-frequency instability is also discussed in detail, and a novel quantity is introduced to evaluate high-frequency stability. This quantity is very easy</p&
96、gt;<p> to calculate, and can be used as a criteria to predict the onset of the high-frequency instability. Experimental results on a real motor show the efficiency of this analytical tool.</p><p>
97、The second part of this paper discusses stabilizing control of stepper motors through feedback. Several authors have shown that by modulating the supply frequency [5], the midfrequency</p><p> instability c
98、an be improved. In particular, Pickup and Russell [6, 7] have presented a detailed analysis on the frequency modulation method. In their analysis, Jacobi series was used to solve a ordinary differential equation, and a s
99、et of nonlinear algebraic equations had to be solved numerically. In addition, their analysis is undertaken for a two-phase motor, and therefore, their conclusions cannot applied directly to our situation, where a three-
100、phase motor will be considered. Here, we give a</p><p> 2. Dynamic Model of Stepper Motors</p><p> The stepper motor considered in this paper consists of a salient stator with two-phase or thr
101、eephase windings, and a permanent-magnet rotor. A simplified schematic of a three-phase motor with one pole-pair is shown in Figure 1. The stepper motor is usually fed by a voltage-source inverter, which is controlled by
102、 a sequence of pulses and produces square-wave voltages. This</p><p> motor operates essentially on the same principle as that of synchronous motors. One of major operating manner for stepper motors is that
103、 supplying voltage is kept constant and frequency</p><p> of pulses is changed at a very wide range. Under this operating condition, oscillation and instability problems usually arise.</p><p>
104、 Figure 1. Schematic model of a three-phase stepper motor.</p><p> A mathematical model for a three-phase stepper motor is established using q–d framereference transformation. The voltage equations for thre
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 基于單片機(jī)的步進(jìn)電機(jī)電路控制設(shè)計(jì)英文文獻(xiàn)及翻譯
- 步進(jìn)電機(jī)的單片機(jī)控制外文翻譯
- 外文翻譯--基于單片機(jī)的步進(jìn)電機(jī)控制流水線設(shè)計(jì)
- 單片機(jī)步進(jìn)電機(jī)課程設(shè)計(jì)--單片機(jī)控制步進(jìn)電機(jī)的設(shè)計(jì)
- 單片機(jī)課程設(shè)計(jì)--基于單片機(jī)的步進(jìn)電機(jī)控制
- 基于單片機(jī)的步進(jìn)電機(jī)的控制
- 單片機(jī)課程設(shè)計(jì)--單片機(jī)控制步進(jìn)電機(jī)
- 單片機(jī)課程設(shè)計(jì)-單片機(jī)控制步進(jìn)電機(jī)
- 基于單片機(jī)的步進(jìn)電機(jī)控制系統(tǒng)畢業(yè)設(shè)計(jì)(含外文翻譯)
- 基于單片機(jī)的步進(jìn)電機(jī)控制單片機(jī)課程設(shè)計(jì)
- 51單片機(jī)驅(qū)動(dòng)步進(jìn)電機(jī)電路及程序(1)
- 基于單片機(jī)的步進(jìn)電機(jī)控制系統(tǒng)畢業(yè)設(shè)計(jì)(含外文翻譯)
- 基于51單片機(jī)的步進(jìn)電機(jī)控制-
- 單片機(jī)課程設(shè)計(jì)--基于單片機(jī)的四相步進(jìn)電機(jī)控制
- 基于單片機(jī)的步進(jìn)電機(jī)控制畢業(yè)設(shè)計(jì)
- 基于單片機(jī)的步進(jìn)電機(jī)控制畢業(yè)設(shè)計(jì)
- 基于51單片機(jī)的步進(jìn)電機(jī)的控制設(shè)計(jì)
- 單片機(jī)課程設(shè)計(jì)——基于單片機(jī)的步進(jìn)電機(jī)控制器設(shè)計(jì)
- 單片機(jī)課程設(shè)計(jì)報(bào)告——單片機(jī)控制步進(jìn)電機(jī)
- 畢業(yè)設(shè)計(jì)----基于單片機(jī)的步進(jìn)電機(jī)控制
評(píng)論
0/150
提交評(píng)論