DSP-based Design and Implementation of Inductor Current Estimator For DC-DC Converters
DSP-based Design and Implementation of Inductor Current Estimator For DC-DC Converters
Authorized licensed use limited to: KIIT University. Downloaded on March 17,2024 at 06:54:15 UTC from IEEE Xplore. Restrictions apply.
Fig. 1 shows the conceptual schematic of current estimation
using input voltage, output voltage and switch node voltage Vin Vsw Vo
of the dc-dc converter. The current estimator requires terminal
L IL
voltage measurements followed by voltage to current estima- rL D1
tion. In [3], this estimation is achieved considering a low pass
filter for obtaining the current estimate. Different methods used Vin
Load
C
to estimate this inductor current include IIR filter realization
Vg
using bilinear transformation of inductor current equation S1
followed by state machine based implementation [4] - [5].
The choice of digital platform for realizing the current estimate
with low cost is essential for its widespread implementation. In
[5], it has been observed that the estimate of current requires a
series of mathematical operations to be performed in sequence. Vo Vo
Potential PA2
This paper evaluates the implementation aspects of current Divider PA4 Iest
estimator using a digital signal processor. The STM32 based Vin Vin
(upto 3.3 PA3
microcontrollers have been considered for evaluation in this V Max)
work.
Bias(1 V) PB13 Gate
The major contributions of the paper are as follows. This PA6
PWM Driver
paper shows the design of a current estimation using a low PB14
Vsw
cost digital signal processor platform. This approach can be
used to provide estimates of inductor current in instantaneous Comparator STM32F407
form. The method includes sensing of voltages which show
lower variation due to low ripple content in dc-dc converters. Fig. 2. Block diagram for implementation of current estimator using STM32-
make digital signal processor.
The current estimation performance is evaluated when the
converter operates in CCM and DCM conditions.
II. T HEORY OF C URRENT E STIMATION If the current estimate is computed within a digital processor,
A. Fundamental relations for Inductor current estimation the transfer function needs to be represented as a discrete
equation. The discrete equation for inductor current estimation
The averaged value of voltage (VL ) across the inductor of is presented in (5) using bilinear transformation.
a boost converter shown in Fig. 2 for a switching interval in
steady state can be expressed as (1).
iLest [n] = a0 ∗ iLest [n − 1] + b0 ∗ vL [n] + b1 ∗ vL [n − 1] (5)
VL = Vin − (1 − D) ∗ Vo (1)
where, Vin , Vo , and D are input voltage, output voltage, and The values of above coefficients are given in (6).
state of the switch ‘S1 ’, respectively. When switch S1 is ON, L − rL ∗ Ts /2 Ts /2
a0 = ; b0 = b1 = (6)
D is equal to 1 and when it is OFF, D is 0. At any given time L + rL ∗ Ts /2 L + rL ∗ Ts /2
instant, the voltage across the inductor can be represented as
where, L, rL , TS are inductance, inductor resistance (DCR)
(2)
and sampling time, respectively.
vL (t) = Vin (t) − Vsw state ∗ Vo (2)
B. Effect of parameter variation on estimation
In this case, the term ‘Vsw state ’ represents the state of the
switch node of boost converter. The value of the variable The estimate of inductor current is dependent upon the
Vsw state will be 0 or 1 depending upon whether the control two parameters used in the transfer function. In practice, the
switch status is ON or OFF, respectively. Using the measured parameters used in estimation may vary with time. A variation
inductor terminal voltage, the current in the inductor can be in inductance parameter results in changes in estimated ripple,
estimated using relation (3). while variation in DCR parameter results in offset in inductor
current [6]. Hence these parameters need to be evaluated pre-
iL (s) 1 cisely. Also, the DCR value can be updated during operation
= (3)
vL (s) sL + rL if it changes due to a change in operating conditions [7].
where, iL , vL , L and rL are inductor current, voltage across III. I MPLEMENTATION OF C URRENT E STIMATOR USING
inductor, inductance and inductor dc resistance (DCR) value D IGITAL S IGNAL P ROCESSOR
respectively. Hence, if the inductor voltage, inductance, induc-
tor resistance values are known then the inductor current can A. System Requirements for Digital Implementation
be estimated easily. Now from (2) and (3), relation (4) can be In order to realize the estimate of inductor current for a
derived. boost converter within a digital signal processor, the following
iL (s) 1 parameters are required as inputs. (a) input voltage of the
= (4) converter, (b) output voltage and (c) switch node voltage. Fig.2
Vin (s) − Vsw state ∗ Vo (s) sL + rL
Authorized licensed use limited to: KIIT University. Downloaded on March 17,2024 at 06:54:15 UTC from IEEE Xplore. Restrictions apply.
shows the detailed schematic diagram of the circuit being
implemented using STM32F407 microcontroller kit [8]. The
two analog signals are interfaced to the inbuilt ADC inputs of Vg
the DSP kit, while the switch node voltage status is captured
Rising Falling
using a single-bit comparator at general purpose input port Edge Edge
of the microcontroller. The input voltages are stepped down t
using a known voltage division ratio to meet the ADC input
IL
voltage specification (range of 0 to 3.3 V dc). In this case,
the resistive divider circuit used has a step-down ratio of 21:1
i.e, a 21 V input voltage will be converted to 1 V. The DAC
pin PA4 of the microcontroller kit gives the estimated current
output for evaluation in this work.
Since the input voltage of the dc-dc converter is typically interrupts
t
constant and also the ripple in the output voltage will be small
dTs
(typically 5%), so these can be assumed to be nearly constant.
Ts
In this case, the ADCs can be used at much lower sampling
frequencies. Here the ADCs are used to sample the input and
output voltage with the 10-bit resolution, which means it can IL_est
sense voltage with a resolution of 3.22 mV. The ADCs are used
at regular intervals to sample the analog inputs from converter.
Here the scaled-down value of input voltage Vin is sensed at
pin PA3 and output voltage Vo is sensed at pin PA2 as shown t
in the Fig. 2.
Fig. 3. Interrupt generation for current estimation and rising & falling edge
B. Timing constraints for Current Estimation Algorithm detection.
Authorized licensed use limited to: KIIT University. Downloaded on March 17,2024 at 06:54:15 UTC from IEEE Xplore. Restrictions apply.
Main() TIM2 ISR
EXTI port ISR
Set Vsw_state = 0
Yes
while()
Set Vsw_state = 1
Store IL_est[n] to IL_est[n-1] &
VL[n] to VL[n-1]
Get ADC value and assign it to some
Store the IL_est[n] value to
variable.
DAC. EXTI port ISR
Evaluate corresponding Voltage value
END
from ADC output value.
Evaluate In_avg.
END
TIM2 ISR
Fig. 4. Flowchart for algorithm used to implement current estimation on STM32 DSP board a) Main Function algorithm b) TIM2 ISR function algorithm
and c) External interrupt handling function algorithm.
Authorized licensed use limited to: KIIT University. Downloaded on March 17,2024 at 06:54:15 UTC from IEEE Xplore. Restrictions apply.
Vo
Analog
Comparator
(LM311) Load
Boost
Converter STM32F407 VSW
Inductor
Board
DAC Output
Resistive
divider
circuit IL(estimated)
Gate Driver
Input Voltage Circuit
terminal
Fig. 6. Hardware setup for STM32 based low cost current estimator.
The processor delay may lead to delays in peak detection of Fig. 8. Evaluation of estimator performance under CCM condition for boost
converter with L = 100µH. a) Output voltage (Ch-1), b) Switch node voltage
current. Due to minimum time required to complete the EXTI (Ch-2), c) Measured current using current probe (Ch-3) and d) Estimated
ISR function there is a delay in output. Also sometimes due current (Ch-4).
to small variations in ADC values, there will be some small
error present in the peak value of the estimated current.
IV. E VALUATION OF C URRENT E STIMATOR AND ITS
V ERIFICATION Vo
A. Hardware implementation
Vsw
Vo
Vsw
IL(current probe o/p)
IL(estimated)
Authorized licensed use limited to: KIIT University. Downloaded on March 17,2024 at 06:54:15 UTC from IEEE Xplore. Restrictions apply.
TABLE I R EFERENCES
C OST OF C URRENT ESTIMATOR
[1] S. Chattopadhyay and S. Das, “A Digital Current-Mode Control Tech-
Component Cost(in Rs.) nique for DC–DC Converters,”in IEEE Transaction on Power Electron-
STM32F407 board 1723 ics, vol. 21, no. 6, pp. 1718-1726, Nov. 2006.
Resistor and Pot 100 [2] R. Channappanavar and S. Mishra, “A novel current estimation tech-
Analog comparator(LM311P) 100 nique for digital controlled switching converters operating in CCM
and DCM,” 2017 IEEE Energy Conversion Congress and Exposition
Wires 100
(ECCE), Cincinnati, OH, USA, 2017, pp. 1781-1786.
Gate Driver Circuit 560
[3] H. Kumar, R. Channappanavar and S. K. Mishra, “High Bandwidth
Total 2483
Inductor Current Estimator for Digitally Controlled DC–DC Converters
for Light Load Applications,”IEEE Journal of Emerging and Selected
Topics in Power Electronics, vol. 9, no. 6, pp. 6681-6691, Dec. 2021.
[4] K. Biswas and O. Ray, “A Nonintrusive Digital Current Sensing Method
V supply can be used to power the STM32 board or a USB for DC–DC Converters With Wide Load Range,” in IEEE Sensors
cable can be used to supply and debug the STM32 board at Letters, vol. 7, no. 6, pp. 1-4, June 2023.
the same time. A current sensor probe is used to compare the [5] K. Biswas, O. Ray and S. Boppu, “State Machine Based Inductor
Current Estimation Technique for Digitally Controlled DC-DC Con-
estimated current with the measured current. The hardware verter,” 2022 IEEE 1st Industrial Electronics Society Annual On-Line
setup is shown in Fig. 6. The cost of different components Conference (ONCON), kharagpur, India, 2022, pp. 1-6.
used to realize this current estimator is tabulated in Table. I. [6] P. Mattavelli, “Digital control of DC-DC boost converters with inductor
current estimation,” Nineteenth Annual IEEE Applied Power Electronics
B. Hardware verification Conference and Exposition, 2004. APEC ’04., Anaheim, CA, USA,
2004, pp. 74-80.
The hardware setup is tested for both CCM and DCM [7] C. Chen et al., “Online Inductor Parameters Identification by Small-
operations. The input voltage is set in the range of 5 to 15 V Signal Injection for Sensorless Predictive Current Controlled Boost
Converter,” in IEEE Transactions on Industrial Informatics, vol. 13, no.
dc and the duty ratio is set at 30% for both CCM and DCM 4, pp. 1554-1564, Aug. 2017.
operations in open loop mode of operation. As the load is [8] RM0090 Reference manual (Rev 19th), STMicroelectronics, Feb,2021.
increased, the boost converter transitions from CCM to DCM. Accessed: Sept. 19,2023.[online] https://www.st.com/resource/en/refer
ence manual/dm00031020-stm32f405-415-stm32f407-417-stm32f427
Also, this setup is tested for different duty ratio, input voltage -437-and-stm32f429-439-advanced-arm-based-32-bit-mcus-stmicroel
and output load values. The hardware results for both DCM ectronics.pdf
and CCM operations are given in Fig. 7 and Fig. 8 respectively.
Authorized licensed use limited to: KIIT University. Downloaded on March 17,2024 at 06:54:15 UTC from IEEE Xplore. Restrictions apply.