Beruflich Dokumente
Kultur Dokumente
Abstract – This paper proposes an architecture of processing board. This strategy was chosen by other particle
digital current regulator intended to be used to control accelerators with good results [7]. This system will be called
the power supplies of the new Brazilian synchrotron light Universal Digital Controller (UDC).
source, called Sirius. It is based on a high-precision Usually, the current sources used at LNLS present a
Digital to Analog Converter and a modern System on precision better than 0.01% in relation to their output range
Chip device, which has the capability of performing real- [8, 9, 10] (in this case precision can be understood as a
time control tasks together with managing and interface general expression which encompasses resolution, short and
tasks. Despite this system will be used to control many long time stability, linearity, etc. This represents an
kinds of power supplies, it was validated in a 100 W additional difficult for the design of current digital
power supply, which was previously developed to be used regulators, because their performance is affected by
in the present Synchrotron Light Source. quantization and mathematical noise, accuracy of analog-to-
digital converters (ADC) and the resolution of the pulse
Keywords - Digital Control, High Precision Current width modulator (PWM) [11, 12]. Moreover, some models of
Source, DC-DC converter power supplies will have a high bandwidth, up to 2kHz, what
means an additional difficult once the available time for
I. INTRODUCTION processing will be shorter, the reference values must be
updated at this frequency and, mainly, the switching
The Brazilian Synchrotron Light Laboratory (LNLS), frequency must be enough higher than this value.
located in Campinas-SP, has built and operated the first Many strategies have been proposed in order to obtain
Synchrotron Light Source in the southern hemisphere and the PWM with high resolution, as delay line, dithering, dual
only one in Latin America [1]. Now it is building a second clock, etc, and each one has its advantages and disadvantages
one, called Sirius, which will be a third generation [13]. This work used a Digital Signal Processor (DSP) which
synchrotron source, with 3GeV energy and very higher has internally a high resolution PWM (HRPWM) based on a
brilliance, as well the lowest emittance among not only those delay line. This off-the-shell solution was suitable for this
in operation, but also in design process [2, 3]. Due to the project because of its low cost, size and reliability. Moreover,
small size of the electron beam, its orbit must be much more it saved developments costs and can be combined in the
stable, as well the current sources which feed the magnets. future with other solutions, like dithering, in order to increase
The number of these power supplies (PS) will also be much PWM resolution even more.
greater than in the current light source, probably more than This work will discuss the main components of a digital
one thousand units. Thus the use of a digital regulation regulation system, as well its characterization and modeling.
system is strongly indicated, mainly due to the following The proposed system validation was performed with a
advantages [4, 5, 6]: bipolar current source with rated output of 10A/10V. This PS
• Lower susceptibility to noise, thermal variations and model is already used at LNLS but with analog regulation.
components aging; For the tests this analog circuit was exchanged by the digital
• Easier parameter adjusts and higher malleability; one.
• Unique controller hardware for all PS's; Section II will show the basic modeling of the system in
• More diagnosis functionalities; the analog domain. Section III brings considerations about
• Allows implementation of more complex control the digital implementation of the regulator, discussing the
strategies. main performance indicators of the signal acquisition and the
Therefore, it has been decided to apply digital control in digital PWM behavior. Experimental results are shown in
all current source families that will be used in Sirius, using, section IV and section V presents the conclusions.
when possible, the same hardware, i.e., the same control and
II. SYSTEM MODELING The transfer function which relates the output current with
the equivalent duty cycle d is given by:
Figure 1 shows the power stage of the PS, which is based
on a 4-quadrant (4Q) converter [11, 14], Figure 2 shows its GP s
I
VDC GL s (6)
linearized model.
(7)
(8)
ADCFSR
GAL s (9)
Fig. 2. Linear model of the PS
In order to obtain the transfer function of this circuit, it III. CONSIDERATIONS ABOUT DIGITAL
was applied the Thevenin theorem in both sides of the load, IMPLEMENTATION
resulting in the simplified model of Figure 3. The Thevenin
impedance and voltages are given by (1), (2) and (3). A. General Description
The System on Chip (SoC) F28M35H52C1 (Texas
Instruments®) is used to implement the digital controller. It
contains two processing cores: one is a microcontroller ARM
Cortex-M3, which will perform man-machine tasks and the
communication with the control network of Sirius. The
second core is a floating point DSP of C2000 family running
with a 150 MHz system clock, which is used to execute the
Fig. 3. Simplified linear model of the PS control algorithm and signal processing, as well to drive the
power circuit using its HRPWM.
Data acquisition is performed by an external analog-to-
·R ·C
·R ·C ·C·L ·L· C C ·R ·C
·V (1) digital converter AD7634 (Analog Devices®), and the
samples are transferred to the C2000 core using a serial
·R ·C peripheral interface (SPI). The resolution of this ADC is 18
·V (2) bits and its signal-to-noise relation (SNR) is 101 dB. It was
·R ·C ·C·L ·L· C C ·R ·C
used evaluation boards from the manufacturers to implement
·R ·C ·L ·L
(3) both the ADC and the digital regulator.
·R ·C ·C·L ·L· C C ·R ·C
B. Digital PI With Dynamic Saturation
Equation (4) shows the transfer function of the output In a conventional implementation of a PI controller, the
current Io(s) in relation to voltages Vin1 and Vin2, obtained integrator can saturate when a significant variation is applied
from the previous one and the circuit in Figure 3: to reference. The controller saturation can last a long time,
what makes the power stage also provide a saturated output,
(4) obviously different from that request by reference.
In order to avoid this problem, a PI controller with
dynamic saturation of integral part has been applied, as
The differential voltage VINV =Vin1-Vin2 can be written as a showed in [15]. Figure 4 shows the block diagram of the
function of the duty cycle δ and the input voltage VDC: implemented PI structure, where:
- Maximum output value of PI controller
VINV s VDC · d s (5) - Dynamic limit for the integrator at instant
k
But even with the two conditions above satisfied, LCO
can still happen due to the non-linear characteristic of the
quantization process on the control loop. So, the two actions
can be used at least to attenuate the amplitude and effect of
LCO.
D. The ADC
The effective number of bits of the ADC (ENOBADC) can
be calculated by:
.
(13)
.
Fig. 4. PI Controller with dynamic saturation of integrator [15] SINADADC is the Signal-to-Noise-and-Distortion Rate of
the ADC. This ratio could be interpreted, in some sense, as
The integrator limit LI(k) is calculated at each k iteration the relation between the input full-scale range and the
of the controller as: minimum distinguishable input variation, expressed in bits of
resolution. Thus this value could be considered for the
| | | | (10) calculation of the effective quantization level, which would
be expressed as:
This technique allows the calculation of a new limit LI for
the integrator at each iteration. Thus the limitation of the (14)
integral part happens in a soft and gradual way, what limits
transients and overshoots usually caused by this saturation.
Where:
C. Attenuation Of Oscillations Caused By Limit Cycle - ADC input full scale range
Due to the limitations of the ADC resolution and, mainly,
the digital PWM, which introduce quantization noise in the The measured SINADADC from the AD7634 provided by
control loop, oscillations can appear in the controlled the manufacturer is 101 dB, and the input range was
variable [15, 16]. Thus, the regulation quality of the output configured to ±10 V.
current can be diminished, causing errors in steady state and For the PS of this work, the output current can assume
increasing ripple. Depending on the control technique and values between -10A and +10A. The transducer and the
the coefficients used, these oscillations caused by limit cycle, signal conditioning circuit has unitary gain, then the ADC
called Limit Cycle Oscillation (LCO) can compromise the input signal amplitude (in Volts) is equal to the real current
stability and reliability of the system. In conventional amplitude (in Amperes) and it can be considered the own
systems this effect can be disregarded, but in high precision current signal. For this reason, there is no loss of resolution
ones it can be noted and its effects are significant. due to signal scaling in this case.
A necessary condition but not enough to prevent the LCO Therefore, the effective quantization level of the ADC is
is that the increment of one PWM quantized level, i.e., 1 218.8 µA.
LSB of the duty cycle, results in a increment of the variable
sampled by the ADC (in this case, the output current IO(t)) E. Digital PWM
smaller than the quantization level of the ADC itself, in the The number of effective bits of the Digital PWM
steady-state [15, 16]. This can be expressed as: ( ) is determined by:
(11) (15)
Where:
where is the fraction of PWM duty cycle related to 1 FCLK - Modulator clock frequency
LSB, is the steady-state gain of the transfer function Fs - Desired modulation frequency
between the duty-cycle d(s) and the output current (i.e.,
· 0 ), and is the quantization level of the The used DSP presents 150 and the PWM
ADC, expressed in the sampled variable units (in this case, modulating frequency was chosen 50 . Then, the
Ampere). number of effective bits would be 11. Due to this
The addition of an integral part ( ) in the control loop
number be lower than the ADC resolution, one of the
contributes to LCO reduction [16]. The acting of this integral previous conditions to prevent LCO would not be respect.
part must be enough slow, generating duty cycle increases But the chosen DSP has a special peripheral, the
lower than the less significant bit (LSB) of the PWM. Then, HRPWM, which allow the division of the lowest step of the
it must be assured that: conventional PWM in lower steps of 150 ps, as showed in
Figure 5.
0 K I DIG 1 (12)
Bode Diagram
100
Hol uncompensated
50 Hol compensated
Magnitude (dB)
0
-50
-100
-150
270
Phase (deg)
180
The HRPWM resolution can be calculated substituting the 90
system clock period 1 by the lowest increment (150 ps):
0
-90
1 2 3 4 5 6
F · · 10 10 10 10 10 10
N HRPWM
floor (16) Frequency (Hz)
· ·0 (17) (19)
N HRPWM
1
IFSR
Fig. 6. Block diagram of the current control loop