【正文】
其豐富的接口資源和強(qiáng)大的定時(shí)器功能, MSP430F149 的性能特點(diǎn)如下: ( 1) 6 個(gè)八位并行接口;完全可以實(shí)現(xiàn)該系統(tǒng)所有信號(hào)的輸入、輸出,無須硬件擴(kuò)展,其中 P P2 八位并行端口的每根口線都具有中斷功能,使鍵盤的軟、硬件設(shè)計(jì)變的非常簡(jiǎn)單。 步進(jìn)電機(jī)起動(dòng)及加 /減速控制方案 步進(jìn)電動(dòng)機(jī)的最高起動(dòng)頻率(突跳頻率)一般為 到 34KHz,而最高運(yùn)行頻率則可以達(dá)到 N*102 KHz??砂磧煞N情況處理, ① 已知突跳頻率則按突跳頻率分段起動(dòng),分段數(shù) n=f/fq。換向信號(hào)一定要在前一個(gè)方向的最后一個(gè) CP脈沖結(jié)束后以及下一個(gè)方向的第一個(gè) CP 脈沖前發(fā)出 在某一高速下的正、反向切換實(shí)質(zhì)包含了降速 → 換向 → 升速三個(gè)過程。在該方式下,將定時(shí)器的當(dāng)前值和比較寄存器 CCRX 相比較,如相等則產(chǎn)生中斷,并在該中斷服務(wù)程序中可以將下一個(gè)事件發(fā)生的時(shí)間加到比較寄存器 CCRX 上 。 。(其中計(jì)數(shù)頻率為系統(tǒng)時(shí)鐘頻率) 3.結(jié)束語 該控制器可以實(shí)現(xiàn)步進(jìn)電機(jī)在多段設(shè)定曲線下的運(yùn)行控制,具有硬件簡(jiǎn)單、體積小、可靠性高的特點(diǎn),已將其用于電線生產(chǎn)線上的排線控制部分 ,取得了令人滿 意的效果。 MSP430F149 定時(shí)器的工作方式有多種,本設(shè)計(jì)定時(shí)器工作在連續(xù)方式下。在運(yùn)行控制過程中,將起始的速度(頻率)分為 n 分作為階梯頻率,采用 階梯升速法 將速度連續(xù)升到所需要的速度,然后鎖定,按預(yù)置的曲線運(yùn)行。較為理想的起動(dòng)曲線,應(yīng)是按指數(shù)規(guī)律起動(dòng)。 ( 3) 強(qiáng)大的定時(shí)器功能; TIMERA TIMERB7 分別為帶有 3 個(gè)和 7 個(gè)捕捉 /比較寄存器的 16 位定時(shí)器,可以滿足系統(tǒng)速度的設(shè)定及曲線定時(shí)的要求??刂破鞯闹饕δ転椋? ① 可控制多套步進(jìn)電機(jī)驅(qū)動(dòng)系統(tǒng);目前可同時(shí)控制 3 套系統(tǒng)。該控制器可同時(shí)控制多臺(tái)步進(jìn)電機(jī)按曲線方式運(yùn)行,包括加減速、定位及換向功能等。 Often assigns regarding the step of machine its speed value by the frequency form, such as movement under 20KHZ, therefore the previous type may transform is: Fixed time the starting value = counts the frequency/speed value. (Counts frequency for system clock frequency) 3. Concluding Remark this controller may realize step machine under the multistage hypothesis curve operating control, has the hardware simply, the reliable high characteristic, has used in on the electric wire production line platoon line control section it, has obtained the satisfying effect. This topic funds the project for the north industry big school scientific research foundation. 譯文 譯文 基于 MSP430F149單片機(jī)實(shí)現(xiàn)的步進(jìn)電機(jī)通用控制器 。 TIMERA3, TIMERB7 respectively be have3 and 7 captures/pares the register 16 timers, may satisfy the system speed the hypothesis and the curve fixed time request. (4)Liquid crystal actuation module。 May according to the simulation adjustment test f