PEDS2009 A New FPGA Implementation Of Four- Switch Three- Phase Inverter Phan Quoc Dzung Le Minh Phuong Hong Hee Lee Bui Ngoc Thang Le Dinh Khoa Faculty of Electrical & Electronic Engineering HCMC University of Technology Ho Chi Minh City, Vietnam pqdung@hcmut.edu.vn NARC, Ulsan HCMC University of Faculty of Electrical & University, Korea Technology Electronic Engineering Ho Chi Minh City, HCMC University of hhlee@mail.ulsan.ac.kr Vietnam Technology buingocthang1984@yahoo Ho Chi Minh City, com Vietnam lmphuong@hcmut.edu.vn Faculty of Electrical & Electronic Engineering HCMC University of Technology Ho Chi Minh City, Vietnam Abstract This paper is concerned on FPGA design for control implementations of four switch three phase inverters (B4, FSTPI) This paper is to present a space vector PWM algorithm for four switch three phase inverters (B4, FSTPI) based on the one for six switch three phase inverters (B6, SSTPI) (principle of similarity) where the αβ plan is divided into sectors and the formation of the required reference voltage space vector is done in the same way as for B6 by using effective (mean) vectors An SVPWM technique has been developed using the ready-to-use field-programmable gate array (FPGA) technology High speed, very large number of components, large number of supported protocols, and addition of ready-to-use intellectual property cores make programmable devices the preferred choice of implementation and even deployment mass production quantities of Power Electronics Matlab/Simulink is used for the simulation of the proposed SVPWM algorithm A Field Programmable Gate Array (FPGA) From Xilinx Inc Spartan 3E was used at the main of the control electronics The simulation and experimental results are demonstrated Index Terms - Field-programmable gate array (FPGA), four switch three phase inverters (B4, FSTPI), six switch three phase inverters (B6, SSTPI), space vector PWM, VHDL I INTRODUCTION Three phase variable speed drives for asynchronous motors have been used more and more, especially in energy saving drive applications for fans, pumps, air compressors… In many cases, the cost reduction is an important target for the drive To reduce number of power semiconductor devices in a three phase voltage inverter, where there are only switches, were proposed different control methods One of them is [1], which presents a new space vector PWM algorithm for four switch three phase inverters (B4, FSTPI) based on the one for six switch three phase inverters The rapid development in high-performance low-cost digital signal processors (DSP’s) [2], [3] has encouraged research on digital PWM control [4], [5] and digital current control [6] - typical control architecture of a DSP-based ac drive is presented However, generating PWM gating signals and current control loops requires a high sampling rate to achieve a wide bandwidth performance Therefore most computation resources of the DSP must be devoted to generating the PWM signals and executing of current control khoaledinh@hcmut.edu.vn algorithms [7] As a result, only limited functions are left for other control loops and functions and complicate the design process enormously [8] Recently, the FPGA devices have been improved and their application has expanded from prototyping tasks to telecommunication, image and sound processing and many others The properties of the algorithm processing, such as capability of performing real parallel calculations combined with solutions’ flexibility, are probably the main reasons for applying the FPGA to many technical domains Many available matrices contain, specialized digital signal processing blocks capable of performing hardware multiplication with accumulation, and block providing with the advanced input-output configuration with digitally controlled impedance feature The possibility of developing a real hardware implementation of the signal processing algorithms is also a great merit [9][10] The paper presents the application of FPGA (Spartan 3E from Xilinx, Inс) to realize the SVPWM technique for B4 inverter (FSTP) modeled on the basis of a B6 by using the principle of similarity and revealing perspective solution for the PWM in the zone of overmodulation when the PWM is quite complicated due to the nonlinear character of modulation in this extended zone The principal control schema is presented in Fig.1 882 Fig.1 Four switch three phase inverter (FSTPI) is based on FPGA II ANALYSIS OF SPACE VOLTAGE VECTORS According to the scheme in Fig.2 the switching status is PEDS2009 represented by binary variables S1 to S4, which are set to “1” when the switch is closed and “0” when open (1) S1 +S = ; S +S = Phase to common point voltage depends on the turning off signal for the switch: V V (2) Va = (2 S1 − 1) ⋅ dc ;Vb = (2 S3 − 1) ⋅ dc ;Vc = 0; 2 Combinations of switching S1-S4 result in general space G G vectors V1 → V (Table 1) Fig.3 SVPWM method proposed for B4 on the principle of similarity B6 2π G G V V j G G G G V23 M = V2 + V3 = dc e j ;V34 M = V3 + V4 = dc e ; (3) 3 π G G V −j G G G G V V41M = V4 + V1 = dc e jπ ;V12 M = V1 + V2 = dc e 3 To simulate zero vectors of B6, we use the effective V0M: G G G G G G (4) V0 M = V1 + V3 ; or V M = V + V ; 2 The similarity between space vectors of B4 (Fig.4) and B6 (Fig.5) is presented in Table ( ) ( ) ( ) ( ) ( Fig.2 Sectors used in conventional SVPWM methods for B4 TABLE I COMBINATIONS OF SWITCHINGS AND VOLTAGE SPACE VECTORS ) ( ) Fig.4 Basic space vectors in B4 inverter III MODIFIED SVPWM APPROACH FOR B4 INVERTER SVPWM methods presented in papers [11, 12, 13, 14, 15] are based on the formation of the reference vector on the plan αβ which is divided into four sectors (sector I IV) The active vectors and their duration in one sampling interval are selected and calculated on the basis of the required Vref location respective for these sectors (fig.3) The modified SVPWM method proposed in this paper is based on [1], where is used a principle of similarity of the one for B6 inverters The plan αβ is divided into sectors and the formation of Vref is done similarly as for B6 This facilitates the calculation for B4 and some issues for B6 can be applied for B4 thanks to this proposed approach To simulate non-zero vectors in B6, in this proposed method, beside the two V1 and V3, we use the effective vectors V23M, V34M, V41M and V12M These vectors are formed as equations (3) Fig.5 Basic space vectors in B6 inverter TABLE II SIMILARITY BETWEEN SPACE VECTORS OF B4 AND B6 The base vectors in each sector used to form the required 883 PEDS2009 space vector Vref is presented in Table TABLE III VECTORS USED IN THE SPACE VECTOR MODULATION B6 & B4 mentioned mean and zero vectors It can be used, for example, the effective vectors V23M, V3, V0M for sector I, where V23M, V0M are defined as (11): 3 t x = t23 f = MTs sin (π / − α ); t y = t3 f = MTs sin (α ); π π t z = tof = Ts / − t23 f − t3 f ; t2 m = Fig.6 and Fig.7 presents pulse patterns for switching in the proposed method for six sectors Fig.6 Pulse patterns for switching in the proposed method (For sectors I, V, VI) t23 f ; t3 m = t23 f ; t3 z = t0 f ; t1 z = t0 f (6) Thus the total durations for base vectors V1, V2, V3 are: tV = t1 z ; (7) tV = t m ; tV = t3 f + t3 m + t3 z Similarly we can calculate the space vector modulation for the other sectors The calculation results are shown in Table IV TABLE IV VECTOR DURATIONS IN THE PROPOSED SVPWM METHOD Sector I Sector II t x = t 23 f = 3 t y = t3 f = π t x = t3 f = MTs sin (α ); t y = t 34 f = t z = t of = Ts / − t 23 f − t f ; t2m = Fig.7 Pulse patterns for switching in the proposed method (Sectors II, III, IV) t3z = Below we will describe the space vector modulation for B4 inverter based on the modulation for B6 with the principle of similarity: The required voltage space vector rotates in a hexagon and the space vector modulation is based on the formation of three voltage vectors in sequence in one sampling interval Ts so that the average output voltage meets the requirement The calculations of the switching states in B6 and B4 are as follows for ½ Ts [10]: tx = MTs sin (π / − α ); π (5) ty = MTs sin (α ); π t z = Ts / − t x − t y Where: tx - duration for vector Vx ty - duration for vector Vy tz - duration for vector Vz M – The index of modulation M = V*/V1sw (V* amplitude of the required voltage vector, V1sw – peak value of six step voltage) However in B4 inverter since mean vectors tXYM and zero vectors t0M are formed from the two base vectors the duration of base vectors is equal to ½ as for the above 884 t 23 f t0 f MTs sin (π / − α ); π ; t 3m = ; t1 z = t 23 f π MTs sin (π / − α ); π MTs sin (α ); t z = t of = Ts / − t f − t 34 f ; ; t 3m = t0 f t3z = t 34 f ; t 4m = t0 f ; t1z = t 34 f ; t0 f tV = t1z tV = t1 z tV = t m tV = t m tV = t f + t m + t z tV = t f + t m + t z Sector III Sector IV t x = t 34 f = t y = t 41 f = π π MTs sin (π / − α ); t x = t 41 f = MTs sin (α ); t y = t1 f = t z = t of = Ts / − t 34 f − t 41 f ; t 3m = t1m = t3z = t 34 f t 41 f t0 f ; t 4m = t 34 f + t 41 f ; ; t1 z = π MTs sin (π / − α ); MTs sin (α ); t z = t of = Ts / − t 41 f − t1 f ; t 4m = t3z = ; π t 41 f t0 f ; t1m = ; t1z = t 41 f ; t0 f t0 f tV = t1m + t1 z tV = t1 f + t1m + t1z tV = t m tV = t m tV = t m + t z tV = t z Sector V Sector VI PEDS2009 t x = t1 f = π t y = t12 f = MTs sin (π / − α ); π MTs sin (α ); t z = t of = Ts / − t1 f − t12 f ; t1m = t3z = t12 f ; t 2m = t0 f ; t1z = t12 f ; t0 f t x = t12 f = t y = t 23 f = π MTs sin (π / − α ); MTs sin (α ); t z = t of = Ts / − t12 f − t 23 f ; t1m = t 3m = π t3z = t12 f ; t 2m = t12 f + t 23 f ; t 23 f t0 f ; t1 z = t0 f tV = t1 f + t1m + t1z t V = t 1m + t z tV = t m tV = t m tV = t z tV = t m + t z Fig.10 Line voltage waveform (M=0.7) IV SIMULATION OF PROPOSED SVPWM FOR B4 Matlab/Simulink is used for the simulation of the proposed SVPWM DC voltage Vdc = 300V Output voltage fundamental harmonic f = 25Hz Switching frequency fsw = 4.8 kHz The load parameter is R=20Ω; L=40 mH The simulation is done for a case modulation index M = 0.7 The phase voltage, line voltage waveforms, the load phase current and the harmonic spectrum of line voltage are shown in Fig 8-11 respectively The simulation results demonstrate the excellent performance of the proposed SVPWM for B4 Fig.11 The harmonic spectrum of line voltage V HARDWARE IMPLEMENTATION SVPWM FOR B4 USING FPGA The experimental tests were performed with the aid of the Starter Kit Xilinx Spartan 3E with a chip XC3S500E, that has around 10 000 logic gates and consists 1164 Configurable Logic Blocks (CLBs), 10476 sell, 500 Kbit Data System Gates, 360 Kbit data RAM, 320 pins 232 User I/O Blocks (I/O Blocks), pulse clocks with frequency 300MHz [16] The scheme of this experimental setup is presented in Fig.12 Fig.8 Phase voltage waveform (M=0.7) Fig.12 Block diagram of B4 Power circuit Fig.9 The load phase current (M=0.7) It includes DC link from three phase diode-bridge rectifier, a power circuit, a load and a controller (control electronics) The Power Circuit is constructed using IGBTs FGL60N100BNTD from Fairchild Semiconductor with rating voltage 1000V, current 60A [17] The Isolation and Driver Block is designed from Gate Drive Optocoupler HCPL 3120 with a maximum switching speed 500ns The load used in this case is represented by resistive (R=20 Ω) and inductive (R=20 Ω and L=75mH) The DC link voltage was adjusted at 885 PEDS2009 fundamental frequency can be adjusted from 1Hz to 70 Hz The PWM switching frequency can be set from 400Hz to 35 kHz Experimental results show the constructed SVPWM IC can generate a wide range of output frequencies with controlled fundamental voltage Case study 1: The fundamental harmonic of output voltages is 50Hz with PWM frequency 5.5 kHz Fig 1417 shows the phase voltages; line voltages waveforms of Vab, and harmonic of a phase load current ia 100V-200V, and the split capacitors are rated at 1000µF Fig.13 Functional block diagram of programmable FPGA-SVPWM for B4 A Xilinx FPGA design The functional block diagram of control algorithm developed for implementation of Xilinx to produce switching pattern for B4 operating is shown in Fig.13, that depicts the block diagram of a proposed programmable FPGA-based SVPWM This design consist command registers for settings of the load voltage’s frequency, amplitude, 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 digital switches The internals of the designed SVPWM consist of a sin-table address decoder, a duty-ratio calculator, a PWM waveform generator, and a programmable delay-time controller The programming algorithms SVPWM for B4 in VHDL is used, where load voltage’s frequency is setting by externally 4-bit data input, the magnitude modulator is getting from control principle V/f=const An external main clock was used as the clocking signal for the FPGA due to frequency of carrier signal used in this work A ten bit updown counter is clocked at 50 MHz to produce a carrier frequency at 31 kHz The sin/cos and sectors can be obtained from multiplication of the modulating signal from the look-up table (ROM) with an external basic frequency input Finally, the PWM gating signals are inserted with adjustable time delay to protect the phase legs from short circuiting Experimental results To realize the proposed SVPWM scheme, cost considerations led to selecting an SRAM-based FPGA Spartan 3E XC3S500E from Xilinx, Inc for implementing of the SVPWM Xilinx also provides ISE 8.2i tools for the development of ASIC’s employing FPGA’s The simplicity in the interface circuit design illustrates its feasibility for practical applications To observe experimental results Tektronic Oscilloscope 200MHz, channels is used Fig.14 – Fig.21 illustrate the experimental results of integrating the voltage vector of the SVPWM for B4 gating signals at various operation frequencies The output Fig.14 Phase load voltages Fig.15 Line load voltage Fig.16 The harmonic spectrum of line voltage B 886 Fig.17 Phase load current Case study 2: The fundamental harmonic of output voltages is 50Hz with PWM frequency 27.5 kHz Fig 1821 shows the phase voltages; line voltages waveforms of Vab, and a harmonic of a phase load current ia: PEDS2009 The presented experimental results shows that the extremely fast FPGA computation time allows obtaining much higher throughput and overcoming the typical bottlenecks of DSP sequential algorithms mentioned at the beginning Applying FPGA for power electronics control seems is an interesting alternative to the recently used digital signal processors It should be emphasized that such high processing frequency (low loop period) as in the proposed FPGA application An application FPGA for SVPWM technique allow to prove Power Electronic Devise, such voltage source inverters and increase switching frequency of power electronic switches Fig.18 Phase load voltages REFERENCES [1] [2] Fig.19 Line load voltage [3] [4] [5] [6] [7] [8] Fig.20 The harmonic spectrum of line voltage [9] [10] [11] [12] Fig.21 Phase load current [13] VI CONCLUSIONS [14] The proposed SVPWM in this paper is based on the one for six switch three phase inverters (B6, SSTP) using principle of similarity where the αβ plan is divided into sectors and the formation of the required reference voltage space vector is done in the same way as for B6 by using the additional effective vectors This facilitates the SVPWM calculation for B4 and some studies on B6 can be applied for B4 as well through this proposed approach The implementation of the proposed SVPWM is done by simulation and in experiment to serve the practical production of the cost effective inverters in the future [15] [16] [17] 887 Phan Quoc Dzung, Le Minh Phuong, Pham Quang Vinh,Nguyen Minh Hoang, Tran Cong Binh “New Space Vector Control Approach for Four Switch Three Phase Inverter (FSTPI)” International Conference on Power Electronics and Drive Systems- IEEE PEDS 2007,Thailand H W van der Broeck and J D van Wyk, “A comparative investigation of a three-phase induction machine drive with a component minimized voltage-fed inverter under different control options,” IEEE Trans Ind Appl., vol IA-20, no 2, pp 309–320, Mar./Apr 1984 H Le-Huy, “Microprocessors and digital IC’s for motion control,” Proc IEEE, vol 82, no 8, pp 1140–1163, 1994 S Meshkat and I Ahmed, “Using DSP’s in AC induction motor drives,” Contr Eng., vol 35, no 2, pp 54–56, Feb 1988 S R Bowes and M J Mount, “Microprocessor control of PWM inverters,” IEEE Trans Ind Applicat., vol 128, no 6, pp 293–305, 1981 J Holtz, “Pulsewidth modulation—A survey,” IEEE Trans Ind Electron., vol 39, no 5, pp 410–420, 1992 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 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 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, Meyer-Baese Digital Signal Processing with Field Programmable Gate Arrays, Springer-Verlag, Berlin Heidelberg, 2004 C B Jacobina, E R C Da Silva, A M N Lima, and R L A Ribeiro “Vector and scalar control of a four switch three phase inverter” In Conf Rec IAS, pages 2422-2429, 1995 F Blaabjerg, S Freysson, H H Hansen, and S Hariseri “Comparison of a space-vector modulation strategy for a three phase standard and a component minimized voltage source inverter” In Conf Rec EPE, pages 1806-1813, Sevilha - Spain, September 1995 G A Covic, G L Peters, and J T Boys, “An improved single phase to three phase converter for low cost ac motor drives,” in Proc PEDS ’95, Singapore, vol 1, pp 549–554 G T Kim and T A Lipo, “VSI-PWM inverter/rectifier system with a reduced switch count,” in Proc IAS ’95, pp 2327–2332 M B R Correa, C B Jacobina, E R C Da Silva, and A M N Lima “A General PWM Strategy for Four-Switch Three-Phase Inverters” IEEE Trans on Power Electronics, Vol 21, No 6, Nov 2006, pp 16181627 Spartan-3E FPGA Family: Complete Data Sheet Xilinx Inc DS312 April 18, 2008 FGL60N100BNTD datasheet from Fairchild Semiconductor Corporation 2004 ... the phase voltages; line voltages waveforms of Vab, and harmonic of a phase load current ia 100V-200V, and the split capacitors are rated at 1000µF Fig.13 Functional block diagram of programmable... Jacobina, E R C Da Silva, A M N Lima, and R L A Ribeiro “Vector and scalar control of a four switch three phase inverter? ?? In Conf Rec IAS, pages 2422-2429, 1995 F Blaabjerg, S Freysson, H H Hansen,... Hansen, and S Hariseri “Comparison of a space-vector modulation strategy for a three phase standard and a component minimized voltage source inverter? ?? In Conf Rec EPE, pages 1806-1813, Sevilha - Spain,