An Efficient DSP FPGA Based Real Time Im
An Efficient DSP FPGA Based Real Time Im
An Efficient DSP FPGA Based Real Time Im
Abstract—This paper proposes a real-time DSP- and FPGA- indirect matrix converter (IMC) which is also referred to in
based implementation method of a space vector modulation literature as a two-stage direct power converter is a recent topol-
(SVM) algorithm for an indirect matrix converter (IMC). There- ogy that is characterized by a lower commutation problem than
fore, low-cost and compact control platform is built using a 32-bit
fixed-point DSP (TMS320F2812) operating at 150 MHz and a conventional direct topologies [6]–[10]. However, the digital
SPARTAN 3E FPGA operating at 50 MHz. The method consists implementation of the switching patterns for both topologies
in using the event-manager modules of the DSP to build specified remains until now a hard task owing to the high complexity
pulses at its PWM output peripherals, which are fed to the digital of matrix converters’ modulation schemes. Over the last few
input ports of a FPGA. Moreover, a simple logical processing and years, several implementation methods have been reported in
delay times are thereafter implemented in the FPGA so as to
synthesize the suitable gate pulse patterns for the semiconductor- literature. In [12] and [13], the authors proposed the use of pow-
controlled devices. It is shown that the proposed implementation erful DSP boards that can be plugged directly into the PCI bus
method enables high switching frequency operation with high of a desktop computer. Despite their user-friendly interfaces,
pulse resolution as well as a negligible propagation time for the these control platforms are always expensive and not compact;
generation of the gating pulses. Experimental results from an thereby, they are not suitable for industrial implementations.
IMC prototype confirm the practical feasibility of the proposed
technique. Other approaches proposed the use of a microcontroller in
conjunction with logic circuits [14]. In most of aforementioned
Index Terms—DSP, FPGA, matrix converters, space vector methods, the obtained switching frequency is not high enough
modulation (SVM).
so as to increase the power density of the converter as suggested
I. I NTRODUCTION by today’s technology [15]. Moreover, the PWM output signals
are in general updated by specific software routines, which
ATRIX converters are modern ac-ac power conversion
M devices. They need a small line filter to reduce the
current harmonics injected into the mains as well as a clamping
results in a mediocre pulse resolution and needs an additional
CPU processing. At present, the use of a DSP in conjunction
with a FPGA module is a common hardware structure in many
protection circuit to ensure safe operation of the converter power electronic applications [16]–[21]. Some authors have
during abnormal operating conditions. The absence of large already made the association between DSP and PLD modules
energy storage elements in the dc bus such as the bulky and to build a matrix converter control platform [22], [23]. In this
limited lifetime electrolytic capacitor is their major advantage framework, two different approaches have been developed to
over conventional rectifier inverter-based systems that allows perform the communication between the two chips. In the first
size and weight reduction of the converter and increasing its approach [22], the DSP calculates at every sampling period
reliability as well. Moreover, the latter can be considered as the the opportune duty cycles as well as the position of the input
most favorite topology that can utilize the new silicon carbide- current and output voltage reference vectors. The results are
based devices, which could operate at 300 ◦ C [1]–[5]. The next transmitted to the PLD chip through a data transfer bus.
An interface block is implemented in the PLD module so as to
Manuscript received November 24, 2010; revised March 3, 2011 and hold the data supplied to it by the DSP. Based on the results of
April 13, 2011; accepted May 5, 2011. Date of publication June 16, 2011;
date of current version September 7, 2011. This work was supported in
data processing as well as on the commutation strategy, a PWM
part by NSERC, Canada Research Chair in Electric Energy Conversion and generator block should generate the opportune gating pulses for
Power Electronics CRC-EECPE, ETS de Montréal, and Research Unit SICISI, the overall converter’s transistors. In the second approach [23],
ESSTT, University of Tunis.
M. Hamouda and F. Fnaiech are with the University of Tunis, the data transfer complexity is reduced. In fact, the DSP outputs
ESSTT, SICISI, Tunis 1008, Tunisia, and are also with the CRC-EECPE, only 5-bit encoded data corresponding to the position of the
Ecole de technologie supérieure, Montréal, QC H3C1K3, Canada (e-mail: two reference vectors. Next, it generates four width-modulated
mahmoudhamouda@yahoo.fr; Fnaiech@ieee.org).
H. F. Blanchette and K. Al-Haddad are with the CRC-EECPE, pulses. A decode block and a PWM generator module should
Ecole de technologie supérieure, Montréal, QC H3C1K3, Canada (e-mail: thereafter be implemented in the FPGA so as to distribute the
handyblanchette@hotmail.com; kamal@ele.etsmtl.ca). switching pulses according to pulse widths and encoded data
Color versions of one or more of the figures in this paper are available online
at http://ieeexplore.ieee.org. supplied to it by the DSP module. For both approaches, to
Digital Object Identifier 10.1109/TIE.2011.2159952 achieve a correct data transfer between the DSP and the FPGA,
Fig. 3. Converter’s switching patterns when the input current and output
voltage reference vectors are assumed to be both lying within sector 1, as
displayed in Fig. 2(a) and (b).
TcH = TaH + TbH = T 1P W M + T 3P W M (6)
TcL = TaL + TbL = T 2P W M + T 4P W M .
Fig. 9. Waveforms of Esa phase a mains voltage, iA , iB , and iC load Fig. 10. Waveforms of phase to neutral input voltage Esa , line current isa ,
currents, and isa , isb , and isc line currents during steady-state operation: input and load current iA for (a) step decrease of the input to the output voltage
frequency 60 Hz (mains voltage and line currents), output frequency 70 Hz transfer ratio from q = 0.75 to q = 0.5 and (b) step decrease of the output
(load currents). frequency from 70 Hz to 40 Hz.
any data processing or decoding within the FPGA chip, it is translation from 3.3 V to 5 V is realized through the dual
obvious that this latter could be replaced by a simple PLD chip supply bus transceiver SN74LVCC4245A 3 so as to feed
to implement the required Boolean logic operations and delay the optodrivers HCPL3120 used to drive the power transistors.
times. However, it should be pointed out that the proposed al- The Board 3 is also designed to make electrical connections
gorithm should be extended in the future so as to include much between the appropriate pins of FPGA and DSP. The operating
more complex tasks such as the control of three-phase machines clock frequencies of DSP and FPGA are 150 and 50 MHz,
as well as the reactive power transfer between the converter respectively. The development tool used for the DSP is the
and the utility network, which needs the implementation of Texas Instruments Code Composer Studio v.3.1. The FPGA
additional extra control blocks in the PLD chip. For that reason, development software is the XILINX ISE v.7.1. The switching
we preferred using a FPGA chip so as to achieve an extensible frequency is set to fsw = 18 kHz. This quantity is programmed
and more flexible solution. in the counter registers of Timer1 and Timer3, respectively,
which are loaded by the same value 4096. The resulting gating
pulse resolution is thereafter equal to 13.34 ns. Fig. 9 depicts
IV. E XPERIMENTAL R ESULTS
the line and load currents during steady-state operation. These
To show the effectiveness of the proposed implementation waveforms are obtained with an input to the output voltage
method, an IMC prototype was constructed. The converter is transfer ratio q = 0.75, an output frequency fo = 70 Hz. As can
feeding a three-phase star connected R-L load (R = 25 Ω and be seen, the line and load currents are sinusoidal, balanced, and
L = 10 mH). The LC filter inserted at the utility side consists free of low-order harmonic components. Fig. 10(a) displays the
of three shunt-connected capacitors (ten µF) and three series- line and load current waveforms in response to a step decrease
connected inductors (L = 500 µH). The network three-phase of the input to the output voltage transfer ratio from q = 0.75
voltage amplitude and frequency are 50 V and 60 Hz, respec- to q = 0.5. In Fig. 10(b) is shown the line and load current
tively. The proposed control platform is shown in Fig. 8. It waveforms during a step decrease of the output frequency from
consists of a DSP Board eZdsp F2812 from Spectrum Digital 1 fo = 70 Hz to fo = 40 Hz. These results confirm the validity
and a FPGA board Nexys2 from DIGILENT 2 . A voltage level and accuracy of the proposed implementation method during
5030 IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, VOL. 58, NO. 11, NOVEMBER 2011
Fig. 11. Zoom of TBH gating signal obtained from the DSP PWM outputs PWM3 and PWM9 showing 30-ns propagation time.
steady-state and transient operations. In Fig. 11 is displayed – Compared to other DSP-PLD-based control platforms,
a zoom of the gating signal of transistor TBH . This signal is the authors demonstrated for the first time, and unlike all
synthesized in the FPGA chip from the DSP outputs PWM3 of the previous realizations, that it is possible to build
and PWM9 by using one AND logical operator as well as one such a platform without using any data-transfer bus or
inverting gate as shown in Fig. 7(a). The propagation time from synchronization signals between the two chips. In partic-
the DSP to transistors’ gates through the FPGA and the dual ular, it is not necessary to inform the FPGA chip neither
supply bus transceiver SN74LVCC4245A is approximately 30 of the starting of the switching period nor of the duty
ns, which is quite negligible compared to the switching period cycles’ values. The FPGA is thereafter relieved from
(55 µs) i.e., a negligible propagation time of the gating pulses decoding and processing the data supplied to it by the
is achieved. DSP, which will improve its parallel operation efficiency.
These results show thus the capability of the proposed im- On the other side, it was found that the propagation time
plementation method to achieve a high switching frequency of the PWM signals from the peripheral outputs of the
operation with high pulse resolution as well as a negligible DSP to the transistors’ gates through the FPGA chip
propagation time for the generation of the gating pulses. With does not exceed few tens of nanoseconds, which allows
regard to the design methodology, the switching frequency the generation with negligible propagation time of the
could easily be programmed to reach hundreds of kilohertz. gating pulses.
This is due to the two following reasons, which have not
been fulfilled together with previous implementations. First,
the two event-manager modules of the DSP have their own R EFERENCES
timers, which are totally independent of those of the main
[1] H. M. Nguyen, H. H. Lee, and T. W. Chun, “Input power factor
processing unit. Thereafter, the frequency and pulse resolution compensation algorithms using a new direct-SVM method for matrix
of the basic PWM signals that are generated by the DSP are converter,” IEEE Trans. Ind. Electron., vol. 58, no. 1, pp. 232–243,
totally independent of the time processing of the main unit i.e., Jan. 2011.
[2] H. Hojabri, H. Mokhtari, and L. Chang, “A generalized technique of
the complexity of advanced control algorithms such as sliding modeling, analysis, and control of a matrix converter using SVD,” IEEE
mode or predictive control does not affect neither the maximum Trans. Ind. Electron., vol. 58, no. 3, pp. 949–959, Mar. 2011.
permissible switching frequency nor the pulse resolution of the [3] R. K. Gupta, K. K. Mohapatra, A. Somani, and N. Mohan, “Direct-matrix-
converter-based drive for a three-phase open-end-winding ac machine
gating pulses. Second, since there is no data transfer between with advanced features,” IEEE Trans. Ind. Electron., vol. 57, no. 12,
the DSP and FPGA, the maximum switching frequency is found pp. 4032–4042, Dec. 2010.
to be totally independent of the maximum data transfer rate [4] R. Cardenas, R. Peña, G. Tobar, J. Clare, P. Wheeler, and G. Asher, “Sta-
bility analysis of a wind energy conversion system based on a doubly fed
as well as the minimum time range required by the FPGA to induction generator fed by a matrix converter,” IEEE Trans. Ind. Electron.,
process and decode these data. vol. 56, no. 10, pp. 4194–4206, Oct. 2009.
[5] M. Y. Lee, P. Wheeler, and C. Klumpner, “Space-vector modulated multi-
level matrix converter,” IEEE Trans. Ind. Electron., vol. 57, no. 10,
pp. 3385–3394, Oct. 2010.
V. C ONCLUSION [6] L. Wei and T. A. Lipo, “A novel matrix converter topology with
simple commutation,” in Conf. Rec. IEEE IAS Annu. Meeting, 2001,
A new real-time implementation method of SVM algorithm pp. 1749–1754.
for IMCs is presented. The proposed method allows a compact [7] R. Peña, R. Cardenas, E. Reyes, J. Clare, and P. Wheeler, “A topology
for multiple generation system with doubly fed induction machines and
design, low-cost, and easier implementation. With regard to indirect matrix converter,” IEEE Trans. Ind. Electron., vol. 56, no. 10,
previous implementation methods, the main benefits of the pp. 4181–4193, Oct. 2009.
proposed one are as follows. [8] M. Hamouda, F. Fnaiech, and K. Al-Haddad, “Control of the line current
provided by Dual-Bridge Matrix Converters using a discrete-time sliding
mode control approach,” in Proc. IEEE IECON, Paris, France, 2006,
– Compared to rapid prototyping controllers such as pp. 1727–1732.
dSPACE 1104 or 1103, a high PWM switching fre- [9] J. W. Kolar, F. Schafmeister, S. D. Round, and H. Ertl, “Novel three-phase
quency operation with a high pulse resolution of the ac-ac sparse matrix converters,” IEEE Trans. Power Electron., vol. 22,
no. 5, pp. 1649–1661, Sep. 2007.
gating pulses could be achieved independent of the com- [10] M. Hamouda, F. Fnaiech, and K. Al-Haddad, “Input filter design for
plexity of the control algorithm. In fact, multistep control SVM Dual-Bridge Matrix Converters,” in Proc. IEEE ISIE, Montréal, QC,
strategies as well as advanced reactive power controllers Canada, 2006, pp. 797–802.
[11] P. Correa, J. Rodríguez, M. Rivera, J. R. Espinoza, and J. W. Kolar,
could easily be implemented without affecting the fea- “Predictive control of an indirect matrix converter,” IEEE Trans. Ind.
tures of the PWM gating pulses. Electron., vol. 56, no. 6, pp. 1847–1853, Jun. 2009.
HAMOUDA et al.: IMPLEMENTATION METHOD OF SVM ALGORITHMS FOR AN INDIRECT MATRIX CONVERTER 5031
[12] M. Hamouda, F. Fnaiech, and K. Al-Haddad, “A DSP based real-time Handy Fortin Blanchette (S’07–M’10) received the
simulation of Dual-Bridge matrix converters,” in Proc. IEEE ISIE Conf., B.Eng., M.Eng., and Ph.D. degrees in electrical en-
Vigo, Spain, 2007, pp. 594–599. gineering from the École de Technologie Supérieure
[13] S. Müller, U. Ammann, and S. Rees, “New time-discrete modulation (ÉTS), Montreal, QC, Canada, in 2001, 2003, and
scheme for matrix converters,” IEEE Trans. Ind. Electron., vol. 52, no. 6, 2010, respectively.
pp. 1607–1615, Dec. 2005. From 1994 to 1997, he was engaged in indus-
[14] M. Jussila, M. Salo, and H. Tuusa, “Realization of a three-phase indirect trial automation. From 1998 to 2000, he was with
matrix converter with an indirect vector modulation method,” in Proc. the Bombardier Transport-ETS Research Labora-
IEEE PESC Conf., Acapulco, Mexico, 2003, pp. 689–694. tory, Montréal, where he was involved in a high-
[15] J. W. Kolar, U. Drofenik, J. Biela, M. L. Heldwein, H. Ertl, T. Friedli, and power traction system. From 2001 to 2003, he was
S. D. Round, “PWM converter power density barriers,” in Proc. 4th PCC, involved in the development of an electrical drive
Nagoya, Japan, Apr. 2–5, 2007, pp. 9–29. library in Simulink (MATLAB) environment. From 2007 to 2010, he was with
[16] X. Shao and D. Sun, “Development of a new robot controller architec- OPAL-RT group, where he was engaged in power electronics real-time simula-
ture with FPGA-based IC design for improved high-speed performance,” tion on CPU and FGPA. From 2010 to 2011, he was a Visiting Scholar at Center
IEEE Trans. Ind. Informat., vol. 3, no. 4, pp. 312–321, Nov. 2007. for Power Electronic and System, Virginia Polytechnic Institute and State Uni-
[17] C. A. Silva, L. A. Córdova, P. Lezana, and L. Empringham, “Implemen- versity, Blacksburg, where he was involved in packaging of high temperature
tation and control of a hybrid multilevel converter with floating dc links converters for aircraft applications. His current research interests include EMI
for current waveform improvement,” IEEE Trans. Ind. Electron., vol. 58, prediction, circuit modeling, and high density power converters packaging.
no. 6, pp. 2304–2312, Jun. 2011.
[18] Ó. López, J. Álvarez, J. Doval-Gandoy, and F. D. Freijedo, “Multilevel
multiphase space vector PWM algorithm with switching state redun- Kamal Al-Haddad (S’82–M’88–SM’92–F’07) was
dancy,” IEEE Trans. Ind. Electron., vol. 56, no. 3, pp. 792–804, Mar. 2009. born in Lebanon, in 1954. He received the B.Sc.A.
[19] E. J. Bueno, Á. Hernández, F. J. Rodríguez, C. Girón, R. Mateos, and and M.Sc.A. degrees from the University of Québec
S. Cóbreces, “A DSP- and FPGA-based industrial control with high-speed à Trois-Rivières, Trois-Rivières, QC, Canada, in
communication interfaces for grid converters applied to distributed power 1982 and 1984, respectively, and the Ph.D. degree
generation systems,” IEEE Trans. Ind. Electron., vol. 56, no. 3, pp. 654– from the Institut National Polythechnique, Toulouse,
669, Mar. 2009. France, in 1988.
[20] Ó. López, J. Álvarez, J. Doval-Gandoy, F. D. Freijedo, A. Nogueiras, From June 1987 to June 1990, he was a Pro-
A. Lago, and C. M. Peñalver, “Comparison of the FPGA implementa- fessor with the Engineering Department, Université
tion of two multilevel space vector PWM algorithms,” IEEE Trans. Ind. du Québec à Trois Rivières. Since June 1990, he
Electron., vol. 55, no. 4, pp. 1537–1547, Apr. 2008. has been a Professor with the Electrical Engineering
[21] R. Dubey, P. Agarwal, and M. K. Vasantha, “Programmable logic devices Department, École de Technologie Supérieure (ETS), Montreal, QC, where
for motion control—A review,” IEEE Trans. Ind. Electron., vol. 54, no. 1, he has been the holder of the Canada Research Chair in Electric Energy
pp. 559–566, Feb. 2007. Conversion and Power Electronics, since 2002. He has supervised more than
[22] K. Sun, D. Zhou, L. Huang, K. Matsuse, and K. Sasagawa, “A novel 70 Ph.D. and M.Sc.A. students working in the field of power electronics. From
commutation method of matrix converter fed induction motor drive us- 1992 to 2003, he was the Director of the graduate study programs at the ETS.
ing RB-IGBT,” IEEE Trans. Ind. Appl., vol. 43, no. 3, pp. 777–786, He is a Consultant and has established a very solid link with many Canadian
May/Jun. 2007. industries working in the field of power electronics, electric transportation,
[23] S. Mukherjee, A. Dasgupta, P. Syam, and A. K Chattopadhay, “Imple- aeronautics, and telecommunications. He is the Head of CRC-EECPE, Ecole de
mentation of indirect SVPWM control for a three phase matrix converter technologie supérieure. He is the Chief of the ETS-Bombardier Transportation
using TMS 320LF2407 in combination with FPGA EPIC6Q240C8,” in North America division, which is a joint industrial research laboratory on
Proc. IEEE ICIT Conf., Mumbai, India, 2006, pp. 1442–1447. electric traction system and power electronics. He is also a coauthor of the
[24] M. Hamouda, F. Fnaiech, and K. Al-Haddad, “Space vector modulation Power System Blockset software of Matlab. He has coauthored more than
scheme for dual-bridge matrix converters using safe-commutation strat- 300 transactions and conference proceeding papers. His research interests
egy,” in Proc. IEEE IECON, Raleigh, NC, 2005, pp. 1060–1065. are highly efficient static power electronic converters design; harmonics and
[25] M. Hamouda, F. Fnaiech, and K. Al-Haddad, “Analytical calculation of reactive power control using hybrid filters; active rectifiers and switch-mode
current and voltage stress on power semiconductors of two-stage matrix and resonant converters, including the modeling, control, and development of
converters,” in Proc. IEEE IECON, Orlando, FL, 2008, pp. 561–566. prototypes for various industrial applications in electric traction, power supply
[26] TMS320x281x DSP Event Manager (EV) Reference Guide, Literature for drives, telecommunication, chemical industry, heat induction, lighting,
Number SPRU065C, Nov. 2004. renewable energy converters, etc.
[27] R. Vargas, U. Ammann, J. Rodriguez, and J. Pontt, “Predictive strategy to Dr. Al-Haddad is a Fellow Member of the Canadian Academy of Engineering
control common-mode voltage in loads fed by matrix converters,” IEEE and a Life Member of the Circle of Excellence of the University of Quebec.
Trans. Ind. Electron., vol. 55, no. 12, pp. 4372–4380, Dec. 2008. He is active in the IEEE Industrial Electronics Society, where he is the Vice
[28] M. Aten, G. Towers, C. Whitley, P. Wheeler, J. Clare, and K. Bradley, President for Publication, an AdCom member, and serves as an Associate Editor
“Reliability comparison of matrix and other converter topologies,” IEEE and distinguished lecturer. He is a member of the Order of Engineers of Quebec,
Trans. Aerosp. Electron. Syst., vol. 42, no. 3, pp. 867–875, Jul. 2006. Canada.
[29] [Online]. Available: http://www.xilinx.com/products/boards_kits/spartan.
htm
[30] [Online]. Available: http://www.spectrumdigital.com/index_orig.php? Farhat Fnaiech (M’85–SM’01) was born in
cPath=30_84&osCsid=5f8cb40175a24bdcc9cb7c4b3d1b0207 La Chebba, Tunisia, in 1955. He received the B.Sc.
degree in mechanical engineering, the M.Sc. degree
in electrical engineering, the Ph.D. degree, and the
Mahmoud Hamouda was born in Mahdia, Tunisia, D.Sc. degree from the University of Tunis, Tunis,
in 1972. He received the B.S., Agregation, M.S., and Tunisia, in 1978, 1980, 1983, and 1999, respectively.
Ph.D. degrees in electrical engineering from ENSET He is currently Professor at the Ecole Superieure
and the Ecole Superieure des Sciences et Techniques, des Sciences and Techniques of Tunis. He has pub-
University of Tunis, Tunis, Tunisia, in 1995, 1996, lished More than 200 research papers in many jour-
2004, and 2010, respectively. nals and international conferences. His main interest
He is currently an Assistant Professor of Electrical research areas are nonlinear adaptive signal process-
Engineering at the National Engineering School of ing, nonlinear control of power electronic devises, digital signal processing,
Sousse, University of Sousse, Sousse, Tunisia. He is image processing, intelligent techniques and control.
a member of the research group “SICISI,” ESSTT, Dr. Fnaiech was the General Chairman and member of the international
University of Tunis, and also affiliated with Canada board committee of many international conferences. He is Associate Editor of
Research Chair in Electric Energy conversion and power electronics, “CRC- the IEEE T RANSACTIONS ON I NDUSTRIAL E LECTRONICS. He has served as
EECPE,” Ecole de technologie supérieure, Montreal, QC, Canada. His main IEEE chapter committee coordination sub-committee delegate of Africa Region
research interests include modeling and control of static power electronic 8 and Vice Chair of IEEE Tunisia Section. Recently, he has been appointed as
converters using FPGA and DSP devices. an AdCom member in IEEE Industrial Electronics Society.