【正文】
d circuit goal is applies its rich connection resources and the formidable timer function, the MSP430F149 performance characteristic as follows: (1) 6 eight bit parallel connections。 Completes the simulation hypothesis function. (3) Formidable timer function。 (5) In sets at 2KB RAM, 60KB FLASH。 the hypothesis speed which the CP pulse pletes with has the CP pulse timer starting value to have the certain relations. The MSP430F149 timer work way has many kinds of, this design timer work under continual way. In the continual pattern, the timer starts from its current value to count, after counts to 0FFFFH from \ 0\ Starts redo count. Under this way, pares the timer current value and parison register CCRX, if equal has the severance, and May the time which has the next event add to in this interrupt service is on parison register CCRX. Fixed time the starting value = must fixed time the value/count the cycle。 摘要: 近年來隨著計算機在社會領(lǐng)域的滲透 , 單片機的應用正在不斷地走向深入,同時帶動傳統(tǒng)控制檢測日新月益更新。 本文主要介紹了基于 MSP430F149 單片機實現(xiàn)的步進電機通用控制器。文中重點探討了步進電 機升降速曲線的設(shè)計方案及其實現(xiàn)方法。 鑒于此,設(shè)計了基于 MSP430F149 單片機實現(xiàn)的步進電機通用控制器,可以滿足大多數(shù)控制場合下的要求。 ② 工作方式靈活,可按設(shè)定的曲線運行,曲線最多達 8 段;可按外部檢測到的控制信號運行;可按模擬調(diào)節(jié)測試功能運行;譯文 2.系統(tǒng)的設(shè)計 系統(tǒng)的結(jié)構(gòu) 微處理器的選擇 本設(shè)計選用了 TI 公司所生產(chǎn)的 MSP 系列單片機 MSP430F149。 ( 2) 12 位 A/D 轉(zhuǎn)換器 ADC;完成模擬設(shè)定功能。 ( 4) 液晶驅(qū)動模塊; ( 5) 內(nèi)置 2KB RAM、 60KB 的 FLASH; MSP430F149 所提供的豐富資源,外圍硬件擴展只需做很少的工作,不僅設(shè)計變得非常簡單,而且該控制器體積小、可靠性高。以超過最高起動頻率的頻率直接起動,將出現(xiàn) 失步 現(xiàn)象,甚至無法起動。但實際應用對起動段的處理可采用按直線擬合的方法,即 階梯升速法 。 ② 未知突跳頻率,則按段擬合至給定的起動頻率,每段頻率的遞增量(后稱階梯頻率) △f=f/8,即采用 8 段擬合。 譯文 步進電 機的換向問題 步進電機換向時,一定要在電機降速停止或降到突跳頻率范圍之內(nèi)再換向,以免產(chǎn)生較大的沖擊而損壞電機。 速度與定時器初值的轉(zhuǎn)換 本系統(tǒng)的速度控制是依靠定時產(chǎn)生 CP 脈沖來完成的,設(shè)定的速度與產(chǎn)生CP 脈沖的定時器初值間存在一定關(guān)系。在連續(xù)模式,定時器從它的當前值開始計數(shù),當計 到 0FFFFH 后又從 0開始重新計數(shù)。 定時初值 =所需定時值 /計數(shù)周期;對于步進電機其速度值常以頻率形式給定,諸如運行在 20KHZ 下,因此上式可轉(zhuǎn)換為:定時初值 =計數(shù)頻率 /速度值。該課題為北方工業(yè)大學??蒲谢鹳Y