CN111176359B - Digital current control method and device - Google Patents

Digital current control method and device Download PDF

Info

Publication number
CN111176359B
CN111176359B CN202010009723.3A CN202010009723A CN111176359B CN 111176359 B CN111176359 B CN 111176359B CN 202010009723 A CN202010009723 A CN 202010009723A CN 111176359 B CN111176359 B CN 111176359B
Authority
CN
China
Prior art keywords
current value
analog loop
preset
digital
analog
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010009723.3A
Other languages
Chinese (zh)
Other versions
CN111176359A (en
Inventor
李酉
陈永胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Leineng Hybrid Integrated Circuit Co ltd
Original Assignee
Shenzhen Leineng Hybrid Integrated Circuit Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Leineng Hybrid Integrated Circuit Co ltd filed Critical Shenzhen Leineng Hybrid Integrated Circuit Co ltd
Priority to CN202010009723.3A priority Critical patent/CN111176359B/en
Publication of CN111176359A publication Critical patent/CN111176359A/en
Application granted granted Critical
Publication of CN111176359B publication Critical patent/CN111176359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current
    • G05F1/46Regulating voltage or current wherein the variable actually regulated by the final control device is dc
    • G05F1/56Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices

Abstract

According to the digital current control method and device, after the digital peak current value is calculated, the digital peak current value is used as a reference current value and is input to the reference end of the analog comparator, the other end of the analog comparator in the analog loop collects the current value of the analog loop in real time, and when the current value reaches the digital peak current value, a control signal is output to control the current period of the analog loop to be closed so as to limit the maximum current value of the analog loop. According to the method, the maximum power value is pre-specified and is used for preventing the maximum power value of overload; the input voltage, the output voltage, the compensation voltage value and the switching period of the analog loop are all known quantities, and real-time sampling is carried out simultaneously to ensure that the maximum current value of each switching period in the analog loop does not exceed the digital peak current value, so that the reliability of the analog loop can be greatly improved.

Description

Digital current control method and device
Technical Field
The present disclosure relates to control circuits, and particularly to a digital current control method and apparatus.
Background
At present, most of pre-controlled circuits are controlled by adopting an analog technology, namely, peak current control is required to be carried out by depending on an analog chip, however, because the analog chips of each manufacturer are different, the control modes of the peak current are different, and when a control circuit is required to be added for carrying out the peak current control, a chip with a corresponding function needs to be selected in advance, so that the reliability of an analog loop is reduced.
Disclosure of Invention
The application provides a digital current control method and a digital current control device, and aims to solve the problem of how to improve the reliability of an analog loop.
In order to achieve the above object, the present application provides the following technical solutions:
a digital current control method is applied to a digital controller, and comprises the following steps:
acquiring an output signal of the analog loop in each switching cycle, the output signal comprising: a compensation voltage, an input voltage and an output voltage;
calculating a digital peak current value through a preset calculation formula according to a preset maximum power value, the compensation voltage, the input voltage and the output voltage;
inputting the digital peak current value as a reference value to a reference end of an analog comparator in the analog loop;
and acquiring the current value of the analog loop in real time, and outputting a control signal by the analog comparator when the current value reaches the digital peak current value to control the current period of the analog loop to be closed so as to limit the maximum current value of the analog loop.
Preferably, the step of calculating the digital peak current value according to the preset maximum power value, the compensation voltage, the input voltage, and the output voltage by using a preset calculation formula specifically includes:
calculating the average current value of the analog loop according to a first preset formula according to the preset maximum power value, wherein the first preset formula is
Figure BDA0002356680040000021
Wherein Pin _ max is a preset maximum power value, and Vin is an input voltage;
superposing a triangular wave current on the average current value of the analog loop, and calculating the inductive current of the triangular wave current according to a second preset formula, wherein the second preset formula is as follows:
Figure BDA0002356680040000022
wherein, Δ I is an inductive current of a triangular wave current, Vout is an output voltage, L is an inductance of the analog loop, and Ton is a turn-on time of the switching tube;
calculating the digital peak current value by the preset calculation formula
Figure BDA0002356680040000023
Namely:
Figure BDA0002356680040000024
wherein, Ipk is the digital peak current value, Period is the PWM switching Period, and Comp is the compensation voltage.
Preferably, the compensation voltage is obtained by a digital loop calculation formula through the output voltage.
Preferably, the sampling range of the output signal is smaller than the sampling range of the digital controller.
A digital current control device is applied to a digital controller, and comprises:
a collection unit for collecting an output signal of the analog loop in each switching cycle, the output signal comprising: a compensation voltage, an input voltage and an output voltage;
the calculation unit is used for calculating a digital peak current value through a preset calculation formula according to a preset maximum power value, the compensation voltage, the input voltage and the output voltage;
an input unit for inputting the digital peak current value as a reference value to a reference terminal of an analog comparator in the analog loop;
and the control unit is used for acquiring the current value of the analog loop in real time, and when the current value reaches the digital peak current value, the analog comparator outputs a control signal to control the current cycle of the analog loop to be closed so as to limit the maximum current value of the analog loop.
Preferably, the computing unit is specifically configured to:
calculating the average current value of the analog loop according to a first preset formula according to the preset maximum power value, wherein the first preset formula is
Figure BDA0002356680040000025
Wherein Pin _ max is a preset maximum power value, and Vin is an input voltage;
superposing a triangular wave current on the average current value of the analog loop, and calculating the inductive current of the triangular wave current according to a second preset formula, wherein the second preset formula is as follows:
Figure BDA0002356680040000031
wherein, Delta I is the inductive current of the triangular wave currentVout is output voltage, L is inductance of the analog loop, and Ton is conduction time of the switching tube;
calculating the digital peak current value by the preset calculation formula
Figure BDA0002356680040000032
Namely:
Figure BDA0002356680040000033
wherein, Ipk is the digital peak current value, Period is the PWM switching Period, and Comp is the compensation voltage.
According to the digital current control method and device, after the digital peak current value is calculated, the digital peak current value is used as a reference current value and is input to a reference end of an analog comparator in an analog loop, the other end of the analog comparator in the analog loop collects the current value of the analog loop in real time, and when the current value reaches the digital peak current value, the analog comparator outputs a control signal to control the current period of the analog loop to be closed so as to limit the maximum current value of the analog loop.
As can be seen from the above calculation formula of the digital peak current value, the maximum power value is pre-specified and is used for preventing the maximum power value of overload; the input voltage, the output voltage, the compensation voltage and the switching period of the analog loop are all known quantities, and real-time sampling is carried out simultaneously to ensure that the maximum current value of each switching period in the analog loop does not exceed the digital peak current value, so that the reliability of the analog loop can be greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a Buck topology circuit diagram provided in an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a relationship between an inductor current iL and a switching period according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a digital current control method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a digital current control device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application is not limited to the topological mode of sampling by the control circuit: buck, Boost, Cuk, isolated or non-isolated topologies, and the like. The following discussion takes the Buck topology as an example, as shown in fig. 1, and the inductor current iL versus the switching period is shown in fig. 2.
As shown in fig. 3, a flowchart of a method for calculating a digital peak current provided in an embodiment of the present application is applied to a digital controller, and the method specifically includes the following steps:
s301: acquiring an output signal of the analog loop in each switching cycle, the output signal comprising: compensation voltage, input voltage and output voltage.
In this embodiment, a digital control chip, such as a 16-bit, 32-bit or 8-bit DSP, MCU, DSC, etc., may be used, and the output signal of the analog loop is acquired in real time in each switching period, where the output signal includes: compensation voltage (COMP voltage), input voltage Vin, and output voltage Vout.
It should be noted that the sampling range of the output signal in the embodiment of the present application is smaller than the sampling range of the digital controller.
S302: and calculating the digital peak current value through a preset calculation formula according to the preset maximum power value, the compensation voltage, the input voltage and the output voltage.
It should be noted that, the above calculating the digital peak current value according to the preset maximum power value, the compensation voltage, the input voltage, and the output voltage by using a preset calculation formula specifically includes:
calculating the average current value of the analog loop according to a first preset formula according to the preset maximum power value, wherein the first preset formula is
Figure BDA0002356680040000041
Wherein Pin _ max is a predetermined maximum power value, and Vin is an input voltage.
Superposing a triangular wave current on the average current value of the analog loop, and calculating the inductive current of the triangular wave current according to a second preset formula, wherein the second preset formula is as follows:
Figure BDA0002356680040000051
wherein Δ I is an inductive current of the triangular wave current, Vout is an output voltage, L is an inductance of the analog loop, and Ton is a turn-on time of the switching tube.
Calculating the digital peak current value by the preset calculation formula
Figure BDA0002356680040000052
Namely:
Figure BDA0002356680040000053
wherein, Ipk is the digital peak current value, Period is the PWM switching Period, and Comp is the compensation voltage.
In the embodiment of the present application, the on-time Ton of the switching tube is limited, that is: ton is less than Ton/,
Figure BDA0002356680040000054
the compensation voltage Comp is obtained from the output voltage by means of a digital loop calculation equation, Comp ═ 2P2Z (c.f.)Formula) ((Vref-Vout), where Comp is the actual compensation voltage value, Vref is the reference voltage value, and Vout is the output voltage.
It should be noted that, in a pure digital control system, the compensation voltage value is not necessarily sampled, and may also be calculated by the sampled output voltage Vout through algorithms such as PID, 2P2Z, 3P3Z, and the like; for a semi-digital control system, the compensation voltage must be sampled to obtain the loop output information.
It should be noted that the PID, 2P2Z, 3P3Z and other algorithms belong to the prior art, and specific contents can be referred to the description of related contents, which is not described herein again in detail.
S303: and inputting the digital peak current value as a reference value to a reference end of an analog comparator in the analog loop.
S304: and acquiring the current value of the analog loop in real time, and outputting a control signal by the analog comparator when the current value reaches the digital peak current value to control the current period of the analog loop to be closed so as to limit the maximum current value of the analog loop.
According to the embodiment of the application, after the digital peak current value is calculated, the digital peak current value is used as a reference current value and is input to the reference end Vref of the analog comparator in the analog loop, the other end of the analog comparator in the analog loop collects the current value of the analog loop in real time, and when the current value reaches the digital peak current value, the analog comparator outputs a control signal to control the current cycle of the analog loop to be closed so as to limit the maximum current value of the analog loop.
As can be seen from the above calculation formula of the digital peak current value Ipk, the maximum power value Pin _ max is a pre-specified maximum power value for preventing overload; the input voltage Vin, the output voltage Vout, the compensation voltage Comp value and the switching Period of the analog loop are all known quantities, and real-time sampling is carried out to ensure that the maximum current value of each switching Period in the analog loop does not exceed the digital peak current value Ipk, so that the reliability of the analog loop can be greatly improved.
Referring to fig. 4, based on the digital current control method disclosed in the foregoing embodiment, the present embodiment correspondingly discloses a digital current control apparatus, which is applied to a digital controller, and the apparatus specifically includes: acquisition unit 401, calculation unit 402, input unit 403 and control unit 404, wherein:
an acquisition unit 401, configured to acquire an output signal of the analog loop in each switching cycle, where the output signal includes: compensation voltage, input voltage and output voltage.
A calculating unit 402, configured to calculate a digital peak current value according to a preset calculation formula according to a preset maximum power value, the compensation voltage, the input voltage, and the output voltage.
An input unit 403, configured to input the digital peak current value as a reference value to a reference terminal of an analog comparator in the analog loop.
And the control unit 404 is configured to acquire a current value of the analog loop in real time, and when the current value reaches the digital peak current value, the analog comparator outputs a control signal to control a current cycle of the analog loop to be closed so as to limit a maximum current value of the analog loop.
Preferably, the calculating unit 402 is specifically configured to:
calculating the average current value of the analog loop according to a first preset formula according to the preset maximum power value, wherein the first preset formula is
Figure BDA0002356680040000061
Wherein Pin _ max is a preset maximum power value, and Vin is an input voltage;
superposing a triangular wave current on the average current value of the analog loop, and calculating the inductive current of the triangular wave current according to a second preset formula, wherein the second preset formula is as follows:
Figure BDA0002356680040000062
wherein Δ I is an inductive current of the triangular wave current, Vout is an output voltage, L is an inductance of the analog loop, and Ton is onClosing the tube and conducting time;
calculating the digital peak current value by the preset calculation formula
Figure BDA0002356680040000071
Namely:
Figure BDA0002356680040000072
wherein, Ipk is the digital peak current value, Period is the PWM switching Period, and Comp is the compensation voltage.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in an article or device that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (4)

1. A digital current control method, applied to a digital controller, the method comprising:
acquiring an output signal of the analog loop in each switching cycle, the output signal comprising: a compensation voltage, an input voltage and an output voltage;
according to the preset maximum power value, the compensation voltage, the input voltage and the output voltage, calculating a digital peak current value through a preset calculation formula, specifically: calculating the average current value of the analog loop according to a first preset formula according to the preset maximum power value, wherein the first preset formula is
Figure FDA0003058249000000011
Wherein Pin _ max is a preset maximum power value, and Vin is an input voltage;
superposing a triangular wave current on the average current value of the analog loop, and calculating the inductive current of the triangular wave current according to a second preset formula, wherein the second preset formula is as follows:
Figure FDA0003058249000000012
wherein, Δ I is an inductive current of a triangular wave current, Vout is an output voltage, L is an inductance of the analog loop, and Ton is a turn-on time of the switching tube;
calculating the digital peak current value by the preset calculation formula
Figure FDA0003058249000000013
Namely:
Figure FDA0003058249000000014
wherein, Ipk is a digital peak current value, Period is a PWM switching Period, and Comp is a compensation voltage;
inputting the digital peak current value as a reference value to a reference end of an analog comparator in the analog loop;
and acquiring the current value of the analog loop in real time, and outputting a control signal by the analog comparator when the current value reaches the digital peak current value to control the current period of the analog loop to be closed so as to limit the maximum current value of the analog loop.
2. The method of claim 1, wherein the compensation voltage is derived from the output voltage by a digital loop calculation formula.
3. The method of claim 1, wherein a sampling range of the output signal is less than a sampling range of the digital controller.
4. A digital current control apparatus, applied to a digital controller, the apparatus comprising:
a collection unit for collecting an output signal of the analog loop in each switching cycle, the output signal comprising: a compensation voltage, an input voltage and an output voltage;
a calculating unit, configured to calculate a digital peak current value according to a preset calculation formula according to a preset maximum power value, the compensation voltage, the input voltage, and the output voltage, and specifically configured to: calculating the average current value of the analog loop according to a first preset formula according to the preset maximum power value, wherein the first preset formula is
Figure FDA0003058249000000021
Wherein Pin _ max is a preset maximum power value, and Vin is an input voltage;
superposing a triangular wave current on the average current value of the analog loop, and calculating the inductive current of the triangular wave current according to a second preset formula, wherein the second preset formula is as follows:
Figure FDA0003058249000000022
wherein, Δ I is an inductive current of a triangular wave current, Vout is an output voltage, L is an inductance of the analog loop, and Ton is a turn-on time of the switching tube;
calculating the digital peak current value by the preset calculation formulaThe preset calculation formula is
Figure FDA0003058249000000023
Namely:
Figure FDA0003058249000000024
wherein, Ipk is a digital peak current value, Period is a PWM switching Period, and Comp is a compensation voltage;
an input unit for inputting the digital peak current value as a reference value to a reference terminal of an analog comparator in the analog loop;
and the control unit is used for acquiring the current value of the analog loop in real time, and when the current value reaches the digital peak current value, the analog comparator outputs a control signal to control the current cycle of the analog loop to be closed so as to limit the maximum current value of the analog loop.
CN202010009723.3A 2020-01-06 2020-01-06 Digital current control method and device Active CN111176359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010009723.3A CN111176359B (en) 2020-01-06 2020-01-06 Digital current control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010009723.3A CN111176359B (en) 2020-01-06 2020-01-06 Digital current control method and device

Publications (2)

Publication Number Publication Date
CN111176359A CN111176359A (en) 2020-05-19
CN111176359B true CN111176359B (en) 2021-07-02

Family

ID=70657865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010009723.3A Active CN111176359B (en) 2020-01-06 2020-01-06 Digital current control method and device

Country Status (1)

Country Link
CN (1) CN111176359B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102545663A (en) * 2010-12-07 2012-07-04 中国科学院微电子研究所 Over power compensation circuit suitable for switching power supply in current mode
CN102684495A (en) * 2012-05-16 2012-09-19 杭州乐图光电科技有限公司 Digital power supply control circuit, control method and digital power supply using circuit and method
CN107222088A (en) * 2016-03-22 2017-09-29 台达电子工业股份有限公司 Control module, switching power supply device and peak-current mode control method
CN109185053A (en) * 2018-08-10 2019-01-11 无锡曼克斯电子科技有限公司 A kind of low wind speed power generation algorithm of wind-driven generator and implementation method and its controller
CN109742929A (en) * 2019-01-24 2019-05-10 深圳市雷能混合集成电路有限公司 Variable number slope compensation method and circuit under a kind of Peak Current-Mode Controlled Circuit
CN110299819A (en) * 2019-06-05 2019-10-01 茂硕电源科技股份有限公司 A kind of digitlization power control circuit and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9110480B2 (en) * 2010-06-09 2015-08-18 Infineon Technologies Austria Ag Voltage ramp circuitry and voltage ramp methods for voltage regulators
US10917009B2 (en) * 2016-08-09 2021-02-09 California Institute Of Technology Digital multiphase hysteretic point-of-load DC/DC converter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102545663A (en) * 2010-12-07 2012-07-04 中国科学院微电子研究所 Over power compensation circuit suitable for switching power supply in current mode
CN102684495A (en) * 2012-05-16 2012-09-19 杭州乐图光电科技有限公司 Digital power supply control circuit, control method and digital power supply using circuit and method
CN107222088A (en) * 2016-03-22 2017-09-29 台达电子工业股份有限公司 Control module, switching power supply device and peak-current mode control method
CN109185053A (en) * 2018-08-10 2019-01-11 无锡曼克斯电子科技有限公司 A kind of low wind speed power generation algorithm of wind-driven generator and implementation method and its controller
CN109742929A (en) * 2019-01-24 2019-05-10 深圳市雷能混合集成电路有限公司 Variable number slope compensation method and circuit under a kind of Peak Current-Mode Controlled Circuit
CN110299819A (en) * 2019-06-05 2019-10-01 茂硕电源科技股份有限公司 A kind of digitlization power control circuit and method

Also Published As

Publication number Publication date
CN111176359A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN108054918B (en) Control method, control circuit and system of four-tube BUCK-BOOST circuit
US9502961B2 (en) Control circuit implementing a related method for controlling a switching power factor corrector, a PFC and an AC/DC converter
CN100490284C (en) Power factor improving converter and control method thereof
EP2649714B1 (en) Switch-mode power supply with enhanced current source capability
US7317625B2 (en) Parallel current mode control using a direct duty cycle algorithm with low computational requirements to perform power factor correction
CN106253661B (en) Control circuit, control method and the power inverter using it
US8085022B2 (en) Switching regulator and control circuit thereof, and method for determining on-time in switching regulator
CN1741341A (en) Utilize the system and method for overtemperature protection induction of the conducting resistance of MOSFET
CN101931326A (en) Buck-boost converter with sample and hold circuit in current loop
CN109713889B (en) Power factor correction circuit and control method thereof
CN107342684B (en) Dc-dc converter
US10126792B2 (en) Power converter load current control
TW200840190A (en) Circuit and method for soft start of a switch-mode voltage converter
CN205356148U (en) Quick transient response control circuit of high accuracy
CN107959421A (en) BUCK-BOOST types direct current transducer and its control method
CN115378257B (en) Control system and method of four-switch Buck-Boost converter
CN105790580A (en) Power source system and inductive current peak control method
CN114977108A (en) Converter short-circuit protection circuit and method based on parasitic parameters
CN203522533U (en) Power supply system and inductor current simulating circuit of power supply
CN111176359B (en) Digital current control method and device
CN202713140U (en) Switch converter controlled by constant conduction time and control circuit thereof
CN116455184A (en) Variable frequency adjustment control method, device and system
CN212752105U (en) Inductive current detection circuit and power converter
CN212486389U (en) DC/DC voltage regulating circuit and electronic equipment
Channappanavar et al. A novel bidirectional current estimator for digital controlled DC-DC converters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant