Abstract— This paper presents a new circuit realization of the space-vector pulse-width modulation (SVPWM) strategy. An SVPWM control integrated circuit (IC) has been developed using the state-of-the-art field-programmable gate array (FPGA) tech-nology. The proposed SVPWM control scheme can be realized using only a single FPGA (XC4010) from Xilinx, Inc. The output fundamental frequency can be adjusted from 0.094 to 1500 Hz. The pulse-width modulation (PWM) switching frequency can be set from 381 Hz to 48.84 kHz. The delay time for the PWM gating signals is adjustable. This SVPWM IC can also be included in the digital current control loop for stator current regulation. The designed SVPWM IC can be incorporated with a digital signal processor (DSP) to provide a simple and effective solution for high-performance ac drives. Simulation and experimental results are given to verify the implemented SVPWM control IC.
Index Terms—FPGA, PWM control IC, space-vector PWM.
I. INTRODUCTION
O
WING to the rapid progress in motor control and micro-electronics technologies, the development of universal ac drives has become a major trend. Although most ac drives [ac servo drives or universal pulse-width modulation (PWM) inverters] in use today adopt microprocessor-based digital con-trol strategy, implementation of current concon-trol loop and PWM control are still tied to analog control circuitry, as Fig. 1(a) depicts. This kind of control scheme possesses the advantage of fast dynamic response, but suffers the disadvantages of complex circuitry, limited functions, and difficulty in circuit modification.The rapid development in high-performance low-cost digital signal processors (DSP’s) [1], [2] has encouraged research on digital PWM control [3], [4] and digital current control [5] for ac drives. Fig. 1(b) illustrates a typical control architecture of a DSP-based ac drive. This control scheme has the advantages of simple circuitry, software control, and flexibility in adaptation to various applications. However, generating PWM gating signals and current control loops requires a high sampling rate to achieve a wide bandwidth performance. Therefore,
Manuscript received September 9, 1996; revised April 28, 1997. This work was supported by the National Science Council, Taipei, Taiwan, R.O.C., under Project NSC85-2622-E-009-004. Recommended by Associate Editor, A. Kawamura.
Y.-Y. Tzou is with the Department of Electrical and Control Engineering, National Chiao Tung University, Hsinchu 300, Taiwan, R.O.C. (e-mail: [email protected], www: http://pemclab.cn.nctu.edu.tw).
H.-J. Hsu is with the Power Electronics and Motion Control Laboratory, Department of Electrical and Control Engineering, National Chiao Tung University, Hsinchu 30050, Taiwan, R.O.C. (e-mail: [email protected], www: http://pemclab.cn.nctu.edu.tw).
Publisher Item Identifier S 0885-8993(97)08076-9.
most computation resources of the DSP must be devoted to generating the PWM signals and executing of current control algorithms [6]. As a result, only limited functions are left for other control loops and functions. Although the employment of a further DSP can resolve the problem, additional hardware and software design for such a dual-DSP controller will complicate the design process enormously [7].
Dynamic and ever progressing change in very large-scale integration (VLSI) technology has radically affected the design process. The life cycle of modern electronic products may be even shorter than the design cycle. Therefore, the need for rapid prototyping poses a design challenge. In recent years, the development of application-specific integrated circuit (ASIC) technology has made it possible to integrate complex analog and digital circuits by utilizing the libraries of basic circuit cells [8], [9].
The ASIC approach provides a rapid low-cost manufac-turing solution for IC’s with special applications. For so-phisticated technology linked to a medium-size marketing requirement, it is an optimal solution. However, the longer lead time and higher setup cost for prototyping render it inappropriate for product development in the early stage. Since the 1980’s, ASIC technology has given rise to several new specialized technologies, including mask-programmable gate array, cell-based IC (CBIC), programmable array logic (PAL), and field-programmable logic array (FPLA).
With the advancement of the various technical aspects of ASIC, three major categories have been categorized: CBIC, gate array, and programmable logic device (PLD). The CBIC has the longest lead time with the highest number of gates, while the PLD allows the user to define the gate connections, but with the lowest number of gates. The field-programmable gate array (FPGA) is a new PLD developed by Xilinx, Inc. [10], [11]. The FPGA comprises thousands of logic gates, some of which are grouped together as a configurable logic block (CLB) to simplify higher level circuit design. The interconnections of the gates are defined by external SRAM or ROM. The simplicity and programmability of FPGA designate it as the most favorable choice for prototyping an ASIC. The advent of FPGA technology has enabled rapid prototyping of digital systems.
PWM dc–ac converters may serve a wide range of ap-plications in ac motor drives and ac power conditioning systems. The PWM strategy plays an important role in the minimization of harmonics and switching losses in these converters, especially in three-phase applications. In the past
(a) (b)
(c)
Fig. 1. PWM control structures of digital ac drives: (a) analog, (b) DSP-based digital control, and (c) ASIC/FPGA-based digital control.
two decades, various PWM strategies, control schemes, and realization techniques have been developed [4], [12]–[17]. These PWM strategies were realized either by analog circuit or microprocessor-based software control techniques. However, with the advance of high-frequency switching power devices, complex modulation schemes can no longer be realized, even employing the most advanced digital signal processors, be-cause of the high-speed switching requirement. In recent years, motor control and power conversion IC’s employ-ing ASIC/FPGA technology are receivemploy-ing increased attention [18]–[21]. Fig. 1(c) illustrates a DSP and ASIC/FPGA-based digital ac drive control structure. This type of hardware archi-tecture will become the major control scheme for advanced ac drives.
Employing FPGA to realize PWM strategies provides ad-vantages such as rapid prototyping, simple hardware and software design, higher switching frequency, and relieving the computation load of microprocessors. Realization of the SVPWM schemes by state-of-the-art FPGA technology has so far still not been reported in the literature. This paper proposes a new DSP/FPGA-based control structure for ac drives de-picted in Fig. 2 and develops a novel digital circuit realization scheme for the SVPWM control IC employing a single FPGA (4010) from Xilinx, Inc. The designed SVPWM IC may serve either for ac motor drives or three-phase ac-voltage regulation systems. It can also be incorporated as part of the digital current loop for ac motor drives. Fig. 3 shows the circuit configuration of a DSP-controlled ac drive using the SVPWM control IC. The rest of this paper is organized as follows. Section II briefly introduces the principle of the space-vector PWM method. Section III discusses developing a strategy for FPGA-based SVPWM IC and gives a detailed description of the digital circuit realization scheme for SVPWM. Section IV describes the hardware implementation and experimental results. Section V is the conclusion.
II. PRINCIPLE OF SPACE-VECTORPWM
The major purpose of the PWM inverter is to gener-ate a variable-voltage variable-frequency (VVVF) three-phase voltage to the ac motor such that the resulted rotating mag-netomotive force (mmf) will suffer a minimum of harmonics
Fig. 2. Circuit schematics of a voltage-source full-bridge three-phase PWM inverter.
distortion. Conventional sinusoidal PWM employs different sampling methods with sinusoidal signals according to a carrier signal, e.g., natural sampling [12], [13], or (symmetric or asymmetric) regular sampling [14].
The operational principle of the space-vector PWM (SVPWM) is more clearly explained by representing a space vector [22]. The motor stator voltage vector can be expressed as a combination of the inverter output-phase voltage , , and , which can be expressed in vector form as
(1) where
and is the amplitude of the fundamental component. As Fig. 4(a) illustrates, there are eight basic switching configura-tions of the three-phase PWM inverter. Their corresponding voltage vectors are depicted in Fig. 4(b), expressed as
(2)
where is the dc-link voltage and and
Fig. 3. Circuit configuration of the DSP-controlled FPGA-based PWM current controller for the ac drive.
(a) (b) (c)
Fig. 4. (a) The switching configurations of a three-phase PWM inverter, (b) corresponding vectors, and (c) decomposition of the voltage vector.
Fig. 5. Equivalent PWM switching patterns generated from three-phase duty ratios to produce same flux vector.
Fig. 7. Functional block diagram of the programmable FPGA-based SVPWM IC.
Fig. 8. 8-b circuit realization of the 2-axis–three-phase voltage converter.
The stator voltage vector can be decomposed into two orthogonal components in a two-axis coordinate or as a combi-nation of two basic vectors, as Fig. 4(b) indicates. An example of the voltage vector decomposition is given in Fig. 4(c). The SVPWM strategy aims to minimize harmonic distortion in the current by selecting the appropriate switching vectors and determining of their corresponding dwelling widths.
If the reference vector is located in sector I, then it is composed of voltage vector , , and zero voltage vectors and as illustrated in Fig. 5(a). The flux produced by the reference voltage vector in a PWM switching period is a com-bination of each individual flux resulted by its corresponding
voltage vector. Their relationships can be expressed as
(3) Because the voltage vectors and are basic vectors and
and are zero vectors, this gives
(4) where is the switching period and and are the dwelling time for and , respectively. This voltage space
(a)
(b)
Fig. 10. The centralized encased three-phase PWM waveform converter.
Fig. 11. Timing diagram of the PWM signals with delay time.
vector can be described in rectangular coordinates as follows:
(5)
where , and is the dc-link
voltage. From (5), we can obtain
(6) (7) (8) The equivalent PWM waveforms, which produce the same average flux, may consist of various combinations of the basic vectors. Fig. 5(b) and 5(c) are alternatives to 5(a), producing the same flux. Fig. 5(c) is the optimal synthesis of the flux vector due to its minimum flux ripple and minimum number of switchings. Fig. 6 illustrates the PWM gating signals of the SVPWM scheme in each operation section.
Fig. 12. Circuit block diagram for the generation of the delay time for a single-phase PWM signals.
III. DESIGN OF THE FPGA SVPWM CONTROL IC In the design of a PWM control IC, many factors need considering, such as simplicity, flexibility, and complexity of the circuit design. In practical applications, the PWM IC should still be compatible with a conventional microprocessor, and, therefore, needs a computer interface. One major design goal is to relieve the microprocessor from time-consuming
(a) (b) Fig. 13. Experimental results of the programmable delay time with (a) 1.6 and (b) 14.4 s, respectively.
TABLE I
SPECIFICATIONS OF THEFPGA 4010
computational tasks such as PWM signal generation, delay-time compensation, and current control.
Fig. 7 depicts the block diagram of a proposed pro-grammable FPGA-based SVPWM control IC. This design consists of five command registers for settings of the frequency, amplitude, and phase of the stator voltage vector, the switching frequency of the PWM, and the delay time for the power device. To simplify the interface circuit, commands to these registers are routed through a common data bus and decoded by a command mode decoder. The control parameters can be set by externally connected hardware, such as analog-to-digital (A/D) converters, digital switches, or a microprocessor. The internals of the designed SVPWM IC consist of a sin-table address decoder, a duty-ratio calculator, a 2/3-axis converter, a PWM waveform generator, and a programmable delay-time controller.
Determining the pulse width of an SVPWM waveform involves computing of sin function and converting a 2-axis coordinate to a 3-axis coordinate. Therefore, arithmetic
com-TABLE II
NUMBERS OFCLB ALLOCATION FOR THESVPWM IC
putational methods and the bit length for manipulating data are important factors in designing the digital hardware for the SVPWM. Floating-point arithmetic greatly complicates the approach to hardware design; only integer arithmetic can provide a feasible solution. In this paper, 8-b integer arithmetic with an external EPROM-based sin-table reference has been adopted for the digital realization of the SVPWM.
The basic requirements for realizing the SVPWM scheme is to first compute the orthogonal components of the volt-age vector. Second, these 2-axis orthogonal components are converted to 3-axis components, and then these three-phase PWM waveforms are converted to centralized encased PWM waveforms with minimal switchings. Finally, the PWM gating signals are inserted with adjustable time delay to protect the phase legs from short circuiting.
The SVPWM IC receives a rotating voltage-vector com-mand with specified amplitude, frequency, and initial phase to produce three-phase PWM gating signals. An external EPROM is required to produce the sin reference used for the PWM duty-ratio generator. The command voltage vector
Fig. 14. Pin assignment of the FPGA-based SVPWM IC.
is initially decomposed to two orthogonal vectors and in the stationary -axis, and then they are converted to corresponding duty ratios and . The 2- to 3-axis coordinate transformation expressed in duty ratios can be defined as
(9)
Exactly calculating (9) requires floating-point arithmetic, which greatly complicates the hardware design. In practical applications, due to the programmable timers, PWM gat-ing signals are usually subject to a resolution limitation. Appropriately determining the PWM control resolution also requires considering the turn-on and turn-off time of the power switches. A 20-kHz PWM switching signal has a switching period of 50 s. A 256 resolution of the PWM signal indicates a control clock period of around 0.2 s. This period is usually much shorter than the turn-off time of the PWM switches for motor drives and is acceptable in most applications. An integer approximation of the can be expressed as
(10) This approximation results in a 0.76% error for an 8-b integer realization, which corresponds to a 0.38- s delay-time error for a 50- s switching period. The total switching time of a 20-kHz switching device is usually around several s, and, therefore, this truncation error is negligible.
Fig. 8 illustrates the block diagram of an 8-b approxi-mate integer realization of the 2/3 coordinate transformation. Fig. 9(a) is the detailed circuit schematics of the FPGA design of the 2/3 coordinate converter, and Fig. 9(b) illustrates its simulation results.
The three-phase duty ratios of , , and are then routed to the optimal PWM generator, as Fig. 10 illustrates. The thinking behind this process is to generate PWM waveforms with minimum switchings and the same duty-ratio equivalence. There are two zero vectors, and , in the basic switching vectors. However, only one of them should be used during one switching period. Determining the proper zero vector depends on the duration of its dwelling time. The one with the longer dwelling time is selected as the one.
In ideal conditions, the gating signals to the power switches of same phase leg of the PWM inverter should be com-plementary. However, the turn-off time of a power switch is usually longer than its turn-on time, and, therefore, an appropriate delay time must be inserted between these two gating signals. The length of this delay time is usually about 1.5 2 times the maximum turn-off time. A programmable delay-time controller is included in the designed SVPWM IC, which greatly facilitates its practical applications.
The PWM gating signals and their corresponding delay signals are depicted in Fig. 11. The relationship of the gating signal are as follows:
(11) (12) (13) (14) where is the specified delay time. The delay-time con-troller generates the gating signals to the toggle registers, which includes a digital comparator and results in PWM signals with a specified time delay. Fig. 12 shows the circuit block diagram for the generation of the delay time for
single-Fig. 15. Circuit schematics of the designed SVPWM IC interface with a single-chip DSP TMS 320C14.
(a) (b) (c)
(d) (e) (f)
Fig. 16. Experimental results of the voltage vector integration of the SVPWM gating signals at various operation frequencies: (a) 94 MHz, (b) 10 Hz, (c) 60 Hz, (d) 300 Hz, (e) 1000 Hz, and (f) 1500 Hz.
phase PWM signals. Fig. 13 shows experimental results of the programmable delay-time controller with different settings.
IV. HARDWAREREALIZATION ANDEXPERIMENTAL RESULTS
In realizing the proposed SVPWM scheme, cost consid-erations led to selecting an SRAM-based FPGA XC4010 from Xilinx, Inc. for implementing of the SVPWM IC. The XC4010 has around 10 000 logic gates, 400 configurable logic
blocks (CLB’s), and 160 input/output blocks (IOB’s). Some important specifications of the XC4010 are listed in Table I. Xilinx also provides CAD tools (XACT) for the development of ASIC’s employing FPGA’s. The XACT consists of a schematic entry editor, a cell library, an interface with the schematic entry editor, logic and timing simulation software, and design implementation software. The logic and timing simulation software is especially relevant to the design of
(a) (b)
(c) (d)
Fig. 17. Experimental results of the SVPWM IC used in a 1-hp PWM inverter drive with 1- and 60-Hz output: (a) and (c) are the phase currents and (b) and (d) are the corresponding harmonics spectrum.
complicated digital circuits because it is best suited to resolve circuit problems during the early design stage.
In the design of an ASIC employing FPGA, careful place-ment of the circuit components and their interconnections is state-of-the-art in minimizing of CLB’s. The number of CLB’s serving each major functional block of the SVPWM IC are listed in Table II. Fig. 14 illustrates the pin assignment of the designed SVPWM IC. Fig. 15 depicts an application of this SVPWM IC employing a single-chip DSP (TMS 320C14) from Texas Instruments. The simplicity in the in-terface circuit design illustrates its feasibility for practical applications.
Fig. 16 illustrates the experimental results of integrating the voltage vector of the SVPWM gating signals at various operation frequencies. The output fundamental frequency can be adjusted from 0.094 to 1500 Hz. Such a wide frequency control range, with high-frequency switching, is only feasible by utilizing the state-of-the-art VLSI digital circuit design technique. The PWM switching frequency can be set from 381 to 48.84 kHz. The delay time for the PWM gating signals
is adjustable. Fig. 17 shows the experimental results of the designed SVPWM IC used in a PWM inverter ac motor drive with 1- and 60-Hz output, respectively. Experimental results show the constructed SVPWM IC can generate a wide range of output frequencies with controlled fundamental voltage.
V. CONCLUSION
This paper presents the design and implementation of a programmable SVPWM control IC for ac motor drives. This SVPWM control IC was implemented employing the FPGA technology. A static RAM-based FPGA was used to implement the proposed scheme. It can also be included in the digital current control loop for stator current regulation. The SVPWM IC can be incorporated with a DSP to provide a total solution for high-performance ac drives. Simulation and experimen-tal results are provided to verify the implemented SVPWM control IC. The constructed SVPWM IC can generate a wide range of PWM output voltages and frequencies. Given that an economic manufacturing cost can be achieved, it is believed
REFERENCES
[1] H. Le-Huy, “Microprocessors and digital IC’s for motion control,” Proc.
IEEE, vol. 82, no. 8, pp. 1140–1163, 1994.
[2] S. Meshkat and I. Ahmed, “Using DSP’s in AC induction motor drives,”
Contr. Eng., vol. 35, no. 2, pp. 54–56, Feb. 1988.
[3] S. R. Bowes and M. J. Mount, “Microprocessor control of PWM inverters,” IEEE Trans. Ind. Applicat., vol. 128, no. 6, pp. 293–305, 1981.
[4] J. Holtz, “Pulsewidth modulation—A survey,” IEEE Trans. Ind.
Elec-tron., vol. 39, no. 5, pp. 410–420, 1992.
[5] M. P. Kazmierkowski and M. A. Dzieniakowski, “Review of current regulation techniques for three-phase PWM inverters,” in IEEE IECON
Conf. Rec., 1994, pp. 567–575.
[6] S. Vadivel, G. Bhuvaneswari, and G. S. Rao, “A unified approach to the real-time implementation of DSP based PWM waveforms,” IEEE
Trans. Power Electron., vol. 6, no. 4, pp. 565–575, 1991.
[7] Y.-Y. Tzou, M.-F. Tsai, Y.-F. Lin, and H. Wu, “Dual-DSP fully digital control of an induction motor,” in IEEE ISIE Conf. Rec., Warsaw, Poland, June 17–20, 1996, pp. 673–678.
[8] J. V. Oldfield and R. C. Dorf, Field Programmable Gate Arrays. New York: Wiley, 1995.
[9] J. H. Jenkins, Designing with FPGA’s and CPLD’s. Englewood Cliffs, NJ: Prentice-Hall, 1994.
[10] P. K. Chand and S. Mourad, Digital Design Using Field Programmable
Gate Array. Englewood Cliffs, NJ: Prentice-Hall, 1994.
[11] The Programmable Gate Array Data Book, Xilinx, Inc., San Jose, CA, 1992.
[12] A. Schonung and H. Stemmler, “Static frequency changers with subhar-monic control in conjunction with reversible variable speed ac drives,”
Brown Boveri Rev., vol. 51, pp. 555–577, Oct. 1964.
[13] J. J. Pollack, “Advanced pulsewidth-modulated inverter techniques,”
IEEE Trans. Ind. Applicat., vol. IA-8, no. 2, pp. 145–154, 1972.
[14] S. R. Bowes, “New sinusoidal pulse width modulated inverter,” Proc.
Inst. Elect. Eng., vol. 122, no. 5, pp. 514–520, 1975.
[15] H. W. Van Der Broeck, H. Skudelny, and G. V. Stanke, “Analysis and realization of a pulsewidth modulator based on voltage space vector,”
IEEE Trans. Ind. Applicat., vol. 24, no. 1, pp. 142–150, 1988.
[16] T. G. Habetler, “A space vector-based rectifier regulator for ac/dc/ac converters,” IEEE Trans. Power Electron., vol. 8, no. 1, pp. 30–36, 1993.
[17] M. Morimoto, S. Sato, K. Sumito, and K. Oshitani, “Single-chip microcomputer control of the inverter by the magnetic flux control PWM method,” IEEE Trans. Ind. Electron., vol. 36, no. 1, pp. 42–47, 1989.
[21] J. M. Retif, B. Allard, X. Jorda, and A. Perez, “Use of ASIC’s in PWM techniques for power converters,” in Proc. IEEE IECON Conf. Rec., vol. 2, 1993, pp. 683–688.
[22] R. M. Park, “Two-reaction theory of synchronous machines, pt. I: Generalized method of analysis,” AIEE Trans., vol. 48, pp. 716–730, July 1929.
Ying-Yu Tzou (S’81–M’88) was born in Taiwan,
R.O.C., on February 13, 1956. He received the B.S. and M.S. degrees in control engineering from the National Chiao Tung University, Hsinchu, Taiwan, and the Ph.D. degree in electrical engineering from the Institute of Electronics Engineering of National Chiao Tung University in 1978, 1983, and 1987, respectively.
From 1980 to 1981, he was with the Electronic Research and Service Organization (ERSO) of In-dustry Technology Research Institute (ITRI) as a Design Engineer in the Control System Department. From 1983 to 1986, he was with Microtek Automation, Inc. as a Project Manager for the development of a computer numerical controller (CNC) for machine tools. He is currently a Professor of the Department of Electrical and Control Engineering, National Chiao Tung University, and also serves as an Industrial Consultant for many local power electronics and automation companies. He was the Director of the Institute of Control Engineering from 1992 to 1994. His special interests now are sensorless ac drives, intelligent UPS, FPGA-based control IC’s for motor drives, and DSP applications in power electronics and motion control.
Hau-Jean Hsu was born in Tainan, Taiwan, R.O.C.,
on July 20, 1972. He received the B.S. and M.S. degrees in control engineering from National Chiao Tung University, Hsinchu, Taiwan, in 1994 and 1996, respectively.
Since 1996, he has been on his two-year military service in the R.O.C. Army as an Instructor in the Army Academy of Communications and Electron-ics, Chungli, Taiwan. His research topics now are FPGA-based control IC design for ac motor drivers and DSP applications in motor control.