A kind of underloading detection method and device based on CRC control mode Switching Power Supply
Technical field
The present invention relates to underloading detection method field, especially a kind of underloading inspection based on CRC control mode Switching Power Supply
Survey method and device.
Background technique
In the application of many Switching Power Supplies, lithium ion battery applications are more and more extensive, and properties of product are promoted and power consumption increasingly
Also it increases with it, uses the time to extend single charge, the efficiency of power management is more efficient;Many product requirement underloadings are automatic
Into standby or shutdown mode to reduce electric quantity consumption, to extend service time of battery;The automatic detection of underloading thus
It comes into being.
Switching Power Supply is a kind of high-frequency electrical energy conversion equipment, and function is to be converted to voltage through various forms of frameworks
The required voltage of user terminal or electric current;There are three types of basic topology forms for switch converters i.e.: BUCK (decompression), Boost (rise
Pressure) and Buck-Boost (buck), if inductance is placed in output end, for BUCK topology;Inductance is placed in input terminal, then is
Boost topology;When inductance connection to ground when, be exactly Buck-Boost topology.
In CRC (Constant Ripple Current) control mode, for BUCK topology, when heavy duty, system
Work is in CCM mode;When the bottom end that load is gradually reduced inductive current reaches zero boundary zero, system work in DCM and
The critical conduction mode of CCM;When load continues to decline, the loop adjustment of system makes system skip certain period automatically, reaches ring
The stable regulation on road acts on, and system works in SKIP mode.No matter system work is in CCM mode, critical DCM mode or SKIP
The ripple size of mode, each switch periods inductive current of Switching Power Supply is constant.In order to improve under underloading operating condition
Efficiency, more and more IC are using system automatically into efficient PFM mode now;Inductance electricity under BUCK topology different mode
The relationship of stream and load current:
CCM mode:
Critical CCM mode:
PFM mode:
Wherein, iL_lowFor the valley of inductive current, iL_highFor the peak value of inductive current, IloadFor load current, T_PWM
For PWM cycle, T_PFM is the SKIP period;
Under CRC control, inductive current is constant, i.e.,It is constant, it can be obtained according to the load current under PFM mode
Know that the T_PFM time is longer, loads lighter.Existing load detecting is detected using resistance, using resistance detection, is considered
Offset problem, it is desirable to which accurate detection needs to design complicated circuit, thus the problem of bringing at high cost and low efficiency.So needing
It wants a kind of and is not necessarily to resistance, the simple device of structure to carry out underloading detection.
Summary of the invention
It is an object of the invention to: the present invention provides a kind of underloading detection sides based on CRC control mode Switching Power Supply
Method and device, solve the detection of existing underloading need complicated circuit that could accurately detect using resistance bring is at high cost, efficiency
Low problem.
The technical solution adopted by the invention is as follows:
A kind of underloading detection method based on CRC control mode Switching Power Supply, includes the following steps:
Step S1: determining underloading value as needed, is based on CRC control mode characteristic, determines underloading detection according to underloading value
In the period, wherein CRC table shows constant ripple current i.e. Constant Ripple Current;
Step S2: given input clock frequency is converted to and the underloading consistent output clock frequency of detection cycle;
Step S3: judging whether PWM number in each detection cycle based on output clock frequency is zero, if so,
Then meet the underloading condition of setting and enter low-power consumption mode, if it is not, then recycling next detection cycle.
The step S1 includes the following:
Inductive current is constant under step S101:CRC control mode, i.e.,It is constant, electricity is loaded under PFM mode
Flow IloadFormula is as follows:
Wherein, iL_lowFor the valley of inductive current, iL_highFor the peak value of inductive current, IloadFor load current, T_PWM
For PWM cycle, T_PFM is SKIP period, that is, hop cycle;
Therefore, SKIP cycle T _ PFM is bigger, load current IloadIt is smaller;
Step S102: if load current IloadLess than underloading current setting value Ilow_load, then load current under PFM mode
IloadMeet following formula:
Simple transformation obtains following formula:
Therefore, detection cycle T_detectIt is interior, T_detectMeet T_detect≥T_PFMCondition, if meeting underloading without PWM
Setting condition.
Preferably, given input clock frequency is converted to and the underloading consistent output of detection cycle in the step S2
Device used in clock frequency includes frequency divider.
Preferably, PWM several institutes in each detection cycle based on output clock frequency are judged in the step S3
The device used includes counter.
Preferably, low-power consumption mode includes standby mode and shutdown mode in the step S3.
A kind of device, including
Frequency divider, after selecting underloading detection cycle according to underloading value, by given input clock frequency be converted to
The consistent output clock frequency of detection cycle is exported to counter;
Counter, it is complete for being counted based on output clock frequency to the PWM in each detection cycle and exporting logic
It is detected at underloading.
Preferably, the counter output logic includes 0 and 1, and output logical zero indicates underloading, and output 1 indicates non-underloading.
Preferably, the input terminal of the frequency divider is given input clock frequency, and output end is consistent with detection cycle
Output clock frequency, the input terminal of the counter includes clock end and the end PWM, the output of the clock end connection frequency divider
End.
In conclusion by adopting the above-described technical solution, the beneficial effects of the present invention are:
1. the present invention is by the characteristic constant using inductive current under CRC control mode, the devices such as design frequency divider according to
Underloading, which imposes a condition, selects detection cycle, and the devices such as counter judge PWM number in detection cycle, to judge to be lightly loaded;Solution
The problem of existing underloading detection of having determined needs complicated circuit that could accurately detect bring at high cost, low efficiency using resistance, reaches
The effect of easy detection underloading is arrived;
2. the selected detection cycle of the present invention need to only be greater than SKIP cycle T _ PFM, selected range is extremely wide, and flexibility is high, promotees
Into raising detection accuracy;
3. underloading decision condition of the invention is applicable not only to the topology of the BUCK under CRC control mode, BOOST is applied also for
Topology has a wide range of application, and improves the practicability of detection method and device.
Detailed description of the invention
Examples of the present invention will be described by way of reference to the accompanying drawings, in which:
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is the device of the invention block diagram;
Fig. 3 is BUCK topology theory figure of the invention;
Fig. 4 is load current and inductive current relational graph under BUCK topology different mode of the invention;
Fig. 5 is BOOST topology theory figure of the invention.
Specific embodiment
All features disclosed in this specification or disclosed all methods or in the process the step of, in addition to mutually exclusive
Feature and/or step other than, can combine in any way.
It elaborates below with reference to Fig. 1-5 couples of present invention.
Embodiment 1
A kind of underloading detection method based on CRC control mode Switching Power Supply, includes the following steps:
Step S1: determining underloading value as needed, is based on CRC control mode characteristic, determines underloading detection according to underloading value
Period;Wherein CRC table shows constant ripple current i.e. Constant Ripple Current;
Step S2: given input clock frequency is converted to and the underloading consistent output clock frequency of detection cycle;
Step S3: judging whether PWM number in each detection cycle based on output clock frequency is zero, if so,
Then meet the underloading condition of setting and enter low-power consumption mode, if it is not, then recycling next detection cycle.
Embodiment 2
Given input clock frequency is converted to and the underloading consistent output clock frequency institute of detection cycle in step S2
The device used includes frequency divider;PWM number in each detection cycle based on output clock frequency is judged in step S3
Used device includes counter;Frequency divider is converted to free clock and the consistent clock of detection cycle according to detection cycle
It exports to counter, counter is counted according to the end clock combination PWM, exports logical zero or 1;Low-power consumption mould in step S3
Formula includes standby mode and shutdown mode, and low-power consumption mode is conducive to extend its service life.
Embodiment 3
Working principle: step S1: determining underloading value as needed, is based on CRC control mode characteristic, is determined according to underloading value
It is lightly loaded detection cycle;
Inductive current is constant under step S101:CRC control mode, i.e.,It is constant, electricity is loaded under PFM mode
Flow IloadFormula is as follows:
Wherein, iL_lowFor the valley of inductive current, iL_highFor the peak value of inductive current, IloadFor load current, T_PWM
For PWM cycle, T_PFM is SKIP period, that is, hop cycle;
Therefore, SKIP cycle T _ PFM is bigger, load current IloadIt is smaller;
Step S102: if load current IloadLess than underloading current setting value Ilow_load, then load current under PFM mode
IloadMeet following formula:
Simple transformation obtains following formula:
Energy in one PWM cycle is a definite value, if as soon as in the corresponding PWM of a detection cycle, then loading
It is PWM cycle divided by detection cycle, load is equivalent to an average value;This average value is the underloading Rule of judgment set, such as
Fruit have it is multiple, then load be greater than Rule of judgment;If not provided, so load is less than decision condition;Therefore, detection cycle
T_detectIt is interior, T_detectMeet T_detect≥T_PFMCondition, if meeting the setting condition of underloading without PWM;Frequency divider selection
As long as detection cycle be greater than SKIP cycle T_PFM, the PWM that counter is inputted according to the clock and counter of frequency divider detects
PWM number in period is judged to being lightly loaded, into standby mode or shutdown mode if logic output is zero;Otherwise enter
Next detection cycle detection.The present invention, which solves the detection of existing underloading and needs complicated circuit that could accurately detect using resistance, to be brought
At high cost, low efficiency the problem of, achieved the effect that easy detection underloading.