摘要
隨著電子設(shè)計自動化(Electronic Design Automation, EDA)技術(shù)和數(shù)字電路技術(shù)的飛速發(fā)展,使實(shí)現(xiàn)基于CPLD(復(fù)雜可編程邏輯器件)的直流電機(jī)控制系統(tǒng)已成為可能。直流電動機(jī)的優(yōu)點(diǎn)是具有較大的啟動轉(zhuǎn)矩和良好的起動、制動、調(diào)速性能,可以在很寬范圍內(nèi)平滑調(diào)速,能在很短的時間里轉(zhuǎn)向。
本文給出了一種基于ALTERA公司的MAX II的CPLD構(gòu)成的直流電機(jī)控制系統(tǒng)的設(shè)計和實(shí)現(xiàn),以CPLD作為核心器件,極大地減少了外圍元件的使用,系統(tǒng)擴(kuò)展性能好、可靠性高、抗干擾能力強(qiáng)、結(jié)構(gòu)簡單、成本低廉,具有可在系統(tǒng)改變功能、不占用CPU時間、易于高速控制等優(yōu)點(diǎn),也可用于各種直流電機(jī)控制場合。
本設(shè)計采用了模塊的設(shè)計方法,根據(jù)直流電機(jī)控制系統(tǒng)的功能把它分為若干個模塊:PWM信號產(chǎn)生模塊(包括分頻模塊、可調(diào)計數(shù)器模塊、不可調(diào)計數(shù)器模塊)、消抖模塊、液晶顯示模塊。PWM信號模塊主要是為硬件提供適當(dāng)?shù)目刂菩盘枺赌K主要是對按鍵產(chǎn)生的毛刺進(jìn)行處理使測試更加準(zhǔn)確,液晶顯示模塊是將霍爾元件測量脈沖信號轉(zhuǎn)化成字符串并顯示在LCD上。
關(guān)鍵詞:EDA CPLD 直流電機(jī) MAX II
Design of DC Motor Control System on CPLD
Abstract
With the rapid development of the electronic design automation (Electronic Design Automation, EDA) technology and digital circuit technology, it has become possible to realize the DC motor control systems based on CPLD (complex programmable logic device). The advantage of the direct current motive is to has the bigger starting turn the with start goodly, the system move, adjust soon function, can be smooth within the scope of very breadth to adjust soon, can in very short time the changes change direction.
This article has given one kind based on ALTERA Corporation’s MAX II CPLD constitution direct current machine control system design and the realization, by CPLD took the core component, reduced the periphery part use enormously, the system expansion performance well, the reliability high, antijamming ability strong, the structure simple, the cost has been inexpensive, has may in the system change function, not take the CPU time, easy to control and so on the merits high speed, also available in each kind of direct current machine control situation.
This design used a modular design method. According to the functions of the DC motor control system it is divided into several modules: PWM signal generator module (including sub-frequency module, adjustable counter modules, counter modules are not adjustable), xiaodou module, liquid crystal display module. PWM signal module provides appropriate control signals to the hardware. Xiaodou module deals with the burr of key-press produced, making the test more accurate. Liquid crystal display module converts the pulse signal of the Hall element’s measurement into character string and displays on the LCD
Keyword: EDA CPLD DC-Motor MAX II