2014 IEEE 28th Convention of Electrical and Electronics Engineers in Israel
Implementation of a High Voltage Power Supply With The Matlab/Simulink Embedded Coder
Liran Katzir, Yakir Loewenstern, Bishara Bishara and Doron Shmilovitz
School of Electrical Engineering TelAviv University Israel
Abstract—An implementation of a high voltage power supply with a voltage multiplier using a DSPbased controller is pro posed. The DSP controller is used to close the feedback loop from the output voltage to the PWM signals of the power stage. By using the MATLAB/Simulink embedded coder design time is greatly reduced and errors are far less likely to manifest. The design, consisting of a DSP controller, does not require addi tional components and is simple compared to more conventional analog control techniques. Experimental results using the Texas Instruments (TI) DSP TMS320F28335 Microcontroller show a rapid convergence and good realtime behavior. For example, the output of a 12link multiplier with a rise time lower than 5mS and a low ripple of under 0.1% is actively corrected by the digital feedback loop. Index Terms—High Voltage, HVDC, Half Wave Cockcroft Walton.
I. INTRODUCTION
High voltage power supplies are widely used in many industry applications, such as scanning electron microscopy, medical Xray imaging and particle ﬁltering systems, to name just a few [1][5]. The use of a very high turn ratio transformer to achieve the high voltage is limited by its large leakage inductance and parasitic capacitance [6]. Therefore, voltage multiplier circuits are commonly used to attain high voltages. The HalfWave CockcroftWalton voltage multiplier (HWCW) is the most commonly used voltage multiplier because it provides the advantages of high voltage boosting (applicable to the 10’s kV range), is compact, causes low voltage stress on the diodes and capacitors, and is cost efﬁcient [7]. Power supplies for medical devices such as an Xray gen erator need to supply high voltage and high power for very short time intervals. Therefore, in order to meet the stringent requirements of Xray applications the dynamic response of the power supply must be very fast. The output voltage must reach its steady state within a very short time interval, usually around 10 msec, to avoid noise or defects in Xray the image for various load conditions[3][4]. For this paper, we implemented a DSPbasedcontroller approach for reducing design time of the HWCW voltage multipliers and improving the output ripple. The TI TMS320F28335 Microcontroller with the MATLAB/Simulink embedded coder is used for realtime digital feedback and system control. Initial experimental results show a a fast settling time of under 5mS and a reduction of over 80% of the ripple
compared to an unregulated high voltage power supply.
II. HALF WAVE COCKROFTWALTON VOLTAGE MULTIPLIER
In the Half Wave Cockroft Walton (HWCW) voltage multi plier, shown in Fig. 1, the output DC voltage is distorted, and shows a voltage drop of ∆V0 and a ripple of 2δV
δV =
^{I}
2f _{s}
(
1
C
1
+
2
C
2
+
3
C
3
+ ··· +
n
C
n
)
(1)
where I is the output current, C _{i} is the capacitance of the ith stage and f _{s} is the switching frequency of the AC power supply. Assuming equal capacitors in all stages (C _{1} = C _{2} = C _{3} = ··· = C _{n} = C), the ripple is given by Eq. (2) and the voltage drop by Eq. (3).
δV =
^{I}
n(n + 1)
Cf _{s}
4
∆V _{0} =
^{I}
^{} 2n ^{3}
3
+ ^{n} ^{2}
2
^{n}
6
−
f
s
C
(2)
(3)
Thus, the output voltage of a HWCW voltage multiplier circuit can be calculated as a function of the amplitude of the ac input voltage, V _{a}_{m}_{p} :
V _{o}_{u}_{t} = 2nV _{a}_{m}_{p} − ∆V _{0} =
= 2nV _{a}_{m}_{p} − ^{I}
f
s
C _{(} 2n ^{3}
3
+ ^{n} ^{2}
2
− ^{n}
6
)
(4)
Eq. (4) reveals that additional stages to the HWCW circuit that should increase the output voltage also increase the voltage drop, till the point where additional stages will no longer increase the output voltage but reduce it. Finding the maximum voltage output of a HWCW circuit is attained as in Eq. (5)
∂V out
∂n
= 2V _{a}_{m}_{p} −
^{I} _{C} (2n ^{2} + n −
f
s
1
_{6} ) = 0
(5)
From Eq. (5), the maximum number of stages to be used for a given system can be approximated (if n > 4) as
n max = V out f s C
I
^{+}
1
_{1}_{2}
(6)
To reduce the output ripple, it is necessary to increase either the switching frequency or the capacitance of the multiplier.
Fig. 1. Example of a HWCW voltagemultiplier
Increasing the switching frequency is often problematic as it increases the switching losses, while increasing the capaci tance of the multiplier is expensive and makes the circuit bulkier. Another way to reduce the output ripple is to use a fast feedback loop, usually at atleast ten times the base switching frequency, thus correcting the output ripple in real time. This can be accomplished using a DSPbased controller to process feedback samples at high frequency.
III. THE TMS320F28335 DSP MICROCONTROLLER
The TMS320F28335 is a Digital Signal Controller with integrated Analog to Digital converters (ADC), Digital Sig nal Processing capabilities and HighResolution Pulse Width Modulators (HRPWM). The DSP operates with core frequency of 150 MHz. The ADC samples the output signal at a 12.5Msps rate, calculates an average of 8 samples to get a better SNR than that obtained by direct sampling and uses the HRPWM to drive the fullbridge power stage of the high voltage multiplier. Thus it is possible to use a high voltage power supply with a 100KHz switching frequency and the feedback loop will still be at least ten times faster. The controller samples the output voltage through a feedback resistor and an isolation ampliﬁer, compares it to the required voltage output and generates the PWM signals for the full bridge power stage. The fullbridge power stage operates by a phaseshift concept, where the V rms output of the fullbridge is controlled by a phaseshift between two halfbridges. Fig. 2 and 3 show the PWM signals generated by the TMS320F28355 controller for the phaseshift operation. Fig. 2 displays the signals for a 100% shift which is common during powerup and fullload operation, while 3 shows the PWM signals during normal operation, in this case with a 5M Ω load. It should be noted that during normal operation the phaseshift is constantly moving around the steadystate level to compensate for the ripple.
IV. MATHLAB/SIMULINK EMBEDDED CODER
The TMS320F28355 controller is generally programed us ing dedicated software from TI, the ”Code Composer Studio” (CCS)[12]. However, it is quite difﬁcult to design complex systems such as closedloop feedback or a multiplePWM control scheme directly in the code composer studio. The required reduction of the output ripple using a fullbridge
Fig. 2. PWM signals for a fullbridge %100 phaseshift during powerup
Fig. 3.
Operation
PWM signals for a full bridge %53.6 phase shift during stadystate
power HWCW voltage multiplier requires both a fast dynamic response and the control of 4 individual , with both deadtime and phase shift realtime control. The FullBridge Phaseshifted PWM converter has found many applications in design of high powerdensity power supplies due to its zerovoltageswitching (ZVS) and simple control characteristics[11]. This converter topology permits all switching devices to operate under ZVS by using circuit parasitics to achieve resonant switching. To guarantee ZVS operation, a proper determination of the dead time between the upper and lower switching devices is important. The phase shift between the switching components of the fullbridge can be used to control the output voltage. To simplify the design we implemented the control al gorithm in MATLAB and designed the ADC and PWM in Simulink. The MATLAB/Simulink embedded coder is able to generate ANSI/ISO C/C++ code that can be com piled and executed on microcontrollers, and speciﬁcally the TMS320F28335, using Code Composer Studio software be hind the scenes. The embedded coder allows users to easily conﬁgure code generated by the MATLAB and Simulink algorithms and makes it easier to design and implement the
feedback loop and the PWM signals driving the powerstage. Fig. 4 shows the top level of the MATLAB/Simulink used in designing the suggested system, including the ADC sampling and scaling, processing of the samples to obtain a higher SNR, the controller implementation including the output over voltage and overpower protection, and ﬁnally, the control algorithm for the dynamic PWM siganls.
Fig. 4. The control and feedback loop for the FullBridge power stage implemented in Mathlab/Simulink
TABLE I
DETAILS OF THE EXPERIMENT
FullBridge power stage
Frequency 
100kHz 
Duty 
50100% 
Dead time 
200ns 
Power Transformer 

Core 
3F3 
Ratio 
1:30 
Voltage Multiplier
Diode 
Vishay GP0230 
Cap 
1nF , 3kV 
High Voltage Probe
Tektronix
P6015A
DSP Controller
Teaxes Instruments
TMS320F28335
V. E XPERIMENTAL
R ESULTS
An experimental setup consisting of a 12link voltage mul tiplier was constructed and tested. The input stage consisted of a fullbridge phaseshift converter with ZVS characteristics feeding a highfrequency isolation transformer and the voltage multiplier. The details of the experiment are given in Table I, and a photograph of the setup is shown in Fig. 5. The DSPbased controller monitors and corrects the output voltage. As the control loop is much faster than the base switching frequency, the output ripple can be actively reduced. The setup was tested under two loads, 5M Ω and 100M Ω
Fig. 5. The system under test, n=12, RLoad=100 M,
and compared to the convectional HWCW. The resultds show that the voltage ripple was considerably lower than the regular open looped HWCW multiplier, especially under a high output current. For example, with a 5M Ω load, the ripple of a 12 link multiplier fed by an AC input of 500V was 312V . By using the DSP and closedloop feedback the output ripple was reduced to lower than 15V.
VI. CONCLUSIONS
A highvoltage power supply, using a voltage multiplier con trolled by a DSPbased controller was presented. The closed feedback loop was implemented by sampling the output, processing in the controller and correcting by manipulating the PWM phaseshift signal. The design was done using using the MATLAB/Simulink embedded coder, greatly reducing the design time. The design is relatively simple and can be im plemented using a low cost controller. Experimental results of the high voltage power supply using the DSP TMS320F28335 Microcontroller from TI show a a good convergence and real time behavior with a large reduction of output ripple.
ACKNOWLEDGMENT
The authors would like to thank Texas Instruments for their generous donation of DSP controllers and educational kits for the Energy Conversion Lab, School of Electrical Engineering, TelAviv University.
REFERENCES
[1] H. Hino, T. Hatakeyama, and M. Nakaoka, ”Resonant PWM Inverter Linked DCDC Converter using Parasitic Impedance of HighVoltage Transformer and its Applications to Xray Generator,” Proceedings of IEEE PESC, 1988, pp. 12121219. [2] V. Garcia, M. Rico, J. Sebastian, M. M. Hernando, and J. Uceda, ”An Optimized DCtoDC Converter Topology for HighVoltage PulseLoad Applications,” Proceedings of IEEE PESC, 1994, pp. 14131421. [3] J. Sun, H. Konishi, Y. Ogino, and M. Nakaoka, ”Series resonant high voltage ZCSPFM, DCDC converter for medical power electronics,” in Proc. IEEE 31st Annu. Power Electron. Spec. Conf., Galway, Ireland, vol. 3, Jun. 1823, 2000, pp. 12471252. [4] S. Iqbal, G. K. Singh, and R. Besar, ”A dualmode input voltage
modulation control scheme for voltage multiplier based Xray power supply,” IEEE Trans. Power Electron., vol. 23, no. 2, pp. 10031008, Mar.
2008.
[5] 
D. F. Spencer, R. Aryaeinejad, and E. L. Rebel, ”Using the CockcroftWal 

ton 
voltage multiplier with small photomultipliers,” IEEE Trans. Nuclear 

[6] 
Sci., vol. 49, no. 3, pp. 11521155, Jun. 2002. B. P. Israelsen, J. R. Martin, C. R. Reeve, and V. S. Scown, ”A 2.5 

kV 
HighReliability TWT Power Supply : Design Techniques for High 
Efﬁciency and Low Ripple,” Proceedings of IEEE PESC, 1977, pp. 212
222.
[7] S. D. Johnson, A. F. Witulski, and R. W. Erickson, ”Comparison of Resonant Topologies in HighVoltage DC Applications,” IEEE Trans. on Aerospace and Electronic System, pp.263274, 1988.
[8] E. Kuffel and W. S. Zaengl, High Voltage Engineering Fundamentals.
New York: Pergamon International Library, 1984, ch. 2.
[9] F. Hwang, Y. Shen, and S. H. Jayaram, ”Lowripple compact highvoltage
DC power supply,” IEEE Trans. Ind. Appl., vol. 42, no. 5, pp. 11391145,
Sep./Oct. 2006.
[10] Kobougias, I.C.; Tatakis, E.C., ”Optimal Design of a HalfWave Cock croftWalton Voltage Multiplier With Minimum Total Capacitance,” Power Electronics, IEEE Transactions on , vol.25, no.9, pp.2460,2468, Sept.
2010.
[11] Takano, H.; Takahashi, J.; Hatakeyama, T.; Nakaoka, M., ”Feasible
characteristic evaluations of resonant tank PWM inverterlinked DC
DC highpower converters for medicaluse highvoltage application,”
Applied Power Electronics Conference and Exposition, 1995. APEC ’95.
Conference Proceedings 1995., Tenth Annual , vol., no.0, pp.913,919 vol.2, 59 Mar 1995 [12] http://www.ti.com/tool/ccstudio
Mult mai mult decât documente.
Descoperiți tot ce are Scribd de oferit, inclusiv cărți și cărți audio de la editori majori.
Anulați oricând.