CN109888897B - Charging control method, charging control device and power adapter - Google Patents

Charging control method, charging control device and power adapter Download PDF

Info

Publication number
CN109888897B
CN109888897B CN201910130329.2A CN201910130329A CN109888897B CN 109888897 B CN109888897 B CN 109888897B CN 201910130329 A CN201910130329 A CN 201910130329A CN 109888897 B CN109888897 B CN 109888897B
Authority
CN
China
Prior art keywords
charging current
limit value
preset
output voltage
charging
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
CN201910130329.2A
Other languages
Chinese (zh)
Other versions
CN109888897A (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 Boltpower Technology Co ltd
Original Assignee
Shenzhen Boltpower Technology 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 Boltpower Technology Co ltd filed Critical Shenzhen Boltpower Technology Co ltd
Priority to CN201910130329.2A priority Critical patent/CN109888897B/en
Publication of CN109888897A publication Critical patent/CN109888897A/en
Application granted granted Critical
Publication of CN109888897B publication Critical patent/CN109888897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Dc-Dc Converters (AREA)

Abstract

The invention is suitable for the technical field of power supplies, provides a charging control method, is suitable for a power adapter for performing charging control through a PWM signal, and comprises the following steps: detecting working parameters of the power adapter in each detection period of the constant-current constant-voltage charging program; adjusting the duty ratio of the PWM signal according to the detected working parameter, so that the output voltage of the power adapter is kept between a preset output voltage upper limit value and an output voltage lower limit value, and the charging current is kept between a preset charging current upper limit value and a charging current lower limit value; and the preset upper limit value and the preset lower limit value of the charging current are determined in a charging soft start program. According to the invention, the duty ratio of the PWM signal is adjusted according to the working parameters of the power adapter, so that the power adapter can be charged in a constant-current and constant-voltage state and can output the maximum current, the maximum power charging is realized, and the charging time is shortened.

Description

Charging control method, charging control device and power adapter
Technical Field
The invention belongs to the technical field of power supplies, and particularly relates to a charging control method, a charging control device and a power adapter.
Background
Most of the current USB power adapters adopt AC-DC + DC-DC, firstly, 220V alternating current is rectified and converted into direct current through a rectifier bridge through the AC-DC, and then the direct current is converted into 5V or other direct current voltage signals through a DC-DC voltage reduction circuit and is output. Some of the DC-DC current limiting functions are not available, and the output is directly closed.
For example, if the current power adapter can only output 5V/1A, and the rated input current of the starting power supply is 5V/2A, if the charging is performed by analog control, the input voltage is pulled down all the time, the power adapter is in the current-limiting state all the time, the maximum power charging cannot be realized, and the charging time is prolonged.
Disclosure of Invention
The invention aims to solve the technical problem of how to realize maximum power charging and shorten the charging time.
In order to solve the above technical problem, in a first aspect, an embodiment of the present invention is implemented as a charging control method for a power adapter performing charging control by a PWM signal, where the charging control method includes:
detecting working parameters of the power adapter in each detection period of the constant-current constant-voltage charging program;
adjusting the duty ratio of the PWM signal according to the detected working parameter, so that the output voltage of the power adapter is kept between a preset output voltage upper limit value and an output voltage lower limit value, and the charging current is kept between a preset charging current upper limit value and a charging current lower limit value; and the preset upper limit value and the preset lower limit value of the charging current are determined in a charging soft start program.
In a second aspect, an embodiment of the present invention further provides a charge control device, which is applied to a power adapter for performing charge control by using a PWM signal, where the charge control device includes a constant-current constant-voltage charging unit, and the constant-current constant-voltage charging unit includes:
the detection module is used for detecting working parameters of the power adapter in each detection period of the constant-current constant-voltage charging module;
the PWM adjusting module is used for adjusting the duty ratio of the PWM signal according to the working parameter detected by the detecting module, so that the output voltage of the power adapter is kept between the preset upper limit value of the output voltage and the lower limit value of the output voltage, and the charging current is kept between the preset upper limit value of the charging current and the preset lower limit value of the charging current; and the preset upper limit value and the preset lower limit value of the charging current are determined when charging soft start is carried out.
In a third aspect, an embodiment of the present invention further provides a power adapter, where the power adapter includes a DC-DC voltage conversion circuit and an MCU, where the MCU has an input voltage sampling port, an output voltage sampling port, a charging current sampling port, and a PWM control signal output port of the power adapter; the MCU is configured to store and run a computer program, and when the MCU runs the computer program, the charging control method according to the first aspect may be implemented to control the DC-DC voltage conversion circuit.
In the embodiments of each aspect, the duty ratio of the PWM signal is adjusted according to the operating parameter of the power adapter, so that the output voltage of the power adapter is kept between the preset upper limit value of the output voltage and the preset lower limit value of the output voltage, and the charging current is kept between the preset upper limit value of the charging current and the preset lower limit value of the charging current, which ensures that the power adapter can be charged in a constant current and constant voltage state and can output the maximum current, thereby realizing maximum power charging, and shortening the charging time.
Drawings
Fig. 1 is a flowchart of a charging control method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a constant-current constant-voltage charging routine provided in the first embodiment of the present invention;
fig. 3 is a preferred flowchart of a charging control method according to a first embodiment of the present invention;
fig. 4 is a flowchart of a charging soft start procedure provided in the first embodiment;
fig. 5 is a schematic structural diagram of a charge control device according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of a preferred structure of a charge control device according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a power adapter according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 shows a flow of a charging control method according to a first embodiment of the present invention, which is applicable to a power adapter performing charging control by a PWM signal. The details are as follows:
and step S101, detecting the working parameters of the power adapter in each detection period of the constant-current constant-voltage charging program.
Specifically, the power adapter is configured to convert an alternating current into a suitable direct current to supply to a load, the power adapter includes a DC-DC voltage conversion circuit, which may be a Boost conversion circuit (Boost circuit) or a Buck conversion circuit (Buck circuit), a switching tube is disposed on a charging loop between the voltage conversion circuit and the load, a switching state of the switching tube is controlled by the PWM signal, and a higher duty ratio of the PWM signal indicates that the switching tube is in a conducting state for a longer time within the same duration, and the charging loop is in a working state for a longer time.
In this embodiment, the working procedure of the power adapter includes a charging soft start procedure and a constant-current constant-voltage charging procedure, where the charging soft start procedure is mainly used to increase the charging current slowly and reduce the impact on devices such as a rear-end capacitor and a switching tube, and is also used to determine an upper limit value and a lower limit value of the charging current, and then the upper limit value and the lower limit value of the charging current are used as parameters to be transmitted to the constant-current constant-voltage charging procedure and used as target parameters of the current, so that the current or output voltage cannot oscillate due to repeated adjustment of the control.
The working parameters may include output voltage and charging current of the power adapter, and may further include input voltage of the power adapter, which may be flexibly selected according to actual conditions.
And S102, adjusting the duty ratio of the PWM signal according to the detected working parameter, so that the output voltage of the power adapter is kept between a preset upper limit value of the output voltage and a preset lower limit value of the output voltage, and the charging current is kept between a preset upper limit value of the charging current and a preset lower limit value of the charging current.
The present embodiment needs to control the output voltage and the charging current to ensure that the power adapter can charge the load with constant current and constant voltage. And the preset upper limit value and the preset lower limit value of the charging current are determined in a charging soft start program.
As a first implementation manner of this embodiment, when the operating parameter includes an output voltage and a charging current of the power adapter, referring to fig. 2, this step specifically includes:
if the output voltage is greater than the preset output voltage upper limit value, the duty ratio of the PWM signal is reduced by 1 unit step length; the specific value of one unit step can be flexibly set according to the situation, for example, the specific value is set to be 1% of duty ratio or 0.5% of duty ratio.
If the output voltage is not greater than the preset upper limit value of the output voltage, further judging whether the output voltage is smaller than a preset lower limit value of the output voltage and whether the charging current is smaller than a preset lower limit value of the charging current, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is smaller than the preset lower limit value of the output voltage, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is smaller than the preset lower limit value of the charging current.
And if the charging current is larger than a preset charging current upper limit value, reducing the duty ratio of the PWM signal by 1 unit step.
If the charging current is not greater than the preset upper limit value of the charging current, further judging whether the output voltage is less than the preset lower limit value of the output voltage and whether the charging current is less than the preset lower limit value of the charging current, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is less than the preset lower limit value of the output voltage, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is less than the preset lower limit value of the charging current.
In the first implementation mode, the charging current of the power adapter is controlled to be not more than the maximum current value of the adapter, so that the maximum current output by the power adapter is ensured, and in order to ensure constant-current charging, hysteresis control is adopted for the charging current, so that the charging current is reduced when the charging current exceeds the preset upper limit value of the charging current, and is increased when the charging current is lower than the preset lower limit value of the charging current; in addition, the output voltage is controlled between the lower limit value and the upper limit value of the output voltage, so that stable voltage can be output, and overcharging of the battery is avoided.
As a second implementation manner of this embodiment, on the basis of the first implementation manner, the operating parameter may further include an input voltage of the power adapter, and refer to fig. 2 again, at this time, this step further includes:
if the input voltage is less than a preset input voltage threshold (e.g., 4.7V as shown in fig. 2), the duty cycle of the PWM signal is adjusted down by 1 unit step.
If the input voltage is not less than the preset input voltage threshold, further judging whether the output voltage is less than a preset output voltage lower limit value and the charging current is less than a preset charging current lower limit value, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is less than the preset output voltage lower limit value, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is less than the preset charging current lower limit value.
Too large a charge current will result in too low an input voltage, the limit condition will even pull the input voltage close to 0v, the process will mistakenly assume that there is no input, resulting in the charge being off, and this method is also very inefficient, so in order to charge at maximum power, the input voltage needs to be controlled to be too low (higher). In the second implementation, when the input voltage is detected to be less than the preset input voltage threshold (for example, 4.7V shown in fig. 2), the charging current is considered to be too large, and the duty ratio of the PWM signal needs to be adjusted to be low, so that the second implementation does not pull the input voltage too low to affect the output efficiency by controlling the input voltage again. The constant-current constant-voltage stage charge control time period is not necessarily 1ms, and may be set to another time period.
Further, as shown in fig. 3, before entering the constant-current constant-voltage charging procedure, the charging control method further needs to perform charging soft start, and specifically includes:
detecting whether a charger is inserted;
when detecting that a charger is inserted, further detecting whether a charging soft start program is completed, if so, entering the constant-current constant-voltage charging program, and if not, executing the charging soft start program.
Fig. 4 further shows the execution of the soft start procedure, including:
and judging whether the input voltage of the power adapter is smaller than a preset input voltage threshold (for example, 4.7V), if so, adding 1 to the soft start counter, and if not, increasing the duty ratio of the PWM signal by 1 unit step.
And judging whether the input current of the power adapter exceeds a preset amplitude (for example, 110% of the input current threshold) of the input current threshold, if so, adding 1 to the soft start counter, and if not, increasing the duty ratio of the PWM signal by 1 unit step.
And judging whether the output voltage of the power adapter is greater than a preset output voltage upper limit value, if so, adding 1 to the soft start counter, and if not, increasing the duty ratio of the PWM signal by 1 unit step length.
And after the soft start counter is added with 1 each time, the duty ratio of the PWM signal is reduced by 1 unit step length, and whether the current charging current value is larger than the historical maximum charging current value or not is judged.
If the current charging current value is not larger than the historical maximum charging current value, further judging whether the accumulated value of the soft start counter reaches the upper counting limit (for example, 3 times); and if the current charging current value is larger than the historical maximum charging current value, further judging whether the accumulated value of the soft start counter reaches the upper counting limit after updating the current charging current value to the historical maximum charging current value.
And if the accumulated value of the soft start counter reaches the upper counting limit, taking the historical maximum charging current value at the moment as the upper charging current limit, determining the lower charging current limit based on the upper charging current limit, and then resetting the soft start counter and the historical maximum charging current value. And if the accumulated value of the soft start counter does not reach the upper counting limit and the soft start is also overtime, performing the soft start according to the default maximum charging current value.
Similarly, the specific value of one unit step can be flexibly set according to the situation, for example, set to be 1% duty ratio, or 0.5% duty ratio.
The PWM signal adjustment in the charging soft start procedure must be such that the duty cycle (duty) rises gradually from 0, and has an upper limit, which cannot be 100% duty, and is generally set to 90% at the maximum, specifically calculated from the ratio of the output voltage to the input voltage.
The first embodiment adjusts the duty ratio of the PWM signal according to the operating parameter of the power adapter, so that the output voltage of the power adapter is maintained between the preset upper limit value of the output voltage and the preset lower limit value of the output voltage, and the charging current is maintained between the preset upper limit value of the charging current and the preset lower limit value of the charging current, thereby ensuring that the power adapter can be charged in a constant current and constant voltage state and can output the maximum current, realizing the maximum power charging, and shortening the charging time.
Fig. 5 shows a structural principle of a charging control device according to a second embodiment of the present invention, which is applicable to a power adapter performing charging control by a PWM signal. Referring to fig. 5, the charge control device includes a constant current and constant voltage charging unit 51, and the constant current and constant voltage charging unit 51 includes a detection module 511 and a PWM adjustment module 512.
The detecting module 511 is configured to detect a working parameter of the power adapter in each detection period of the constant-current constant-voltage charging module.
Specifically, the power adapter is configured to convert an alternating current into a suitable direct current to supply to a load, the power adapter includes a voltage conversion circuit, specifically, a Boost conversion circuit (Boost circuit) or a Buck conversion circuit (Buck circuit), a switching tube is disposed on a charging loop between the voltage conversion circuit and the load, a switching state of the switching tube is controlled by the PWM signal, and a higher duty ratio of the PWM signal indicates that the switching tube is in a conducting state for a longer time within the same duration, and the charging loop is in a working state for a longer time. In this embodiment, the working procedure of the power adapter includes a charging soft start procedure and a constant-current constant-voltage charging procedure, where the charging soft start procedure is used to determine an upper limit value and a lower limit value of a charging current, and then the upper limit value and the lower limit value of the charging current are used as parameters to be transmitted to the constant-current constant-voltage charging procedure, which is used as a target parameter of a current, so that the current or output voltage cannot oscillate due to repeated adjustment of the control. The working parameters may include output voltage and charging current of the power adapter, and may further include input voltage of the power adapter, which may be flexibly selected according to actual conditions.
The PWM adjusting module 512 is configured to adjust a duty ratio of the PWM signal according to the working parameter detected by the detecting module, so that the output voltage of the power adapter is maintained between a preset upper limit value of the output voltage and a preset lower limit value of the output voltage, and the charging current is maintained between a preset upper limit value of the charging current and a preset lower limit value of the charging current.
The present embodiment needs to control the output voltage and the charging current to ensure that the power adapter can charge the load with constant current and constant voltage. And the preset upper limit value and the preset lower limit value of the charging current are determined in a charging soft start program.
As a first implementation manner of this embodiment, when the operating parameters include an output voltage and a charging current of the power adapter, the PWM adjusting module 512 includes: a first regulation submodule 5121 and a second regulation submodule 5122.
The first adjusting submodule 5121 is configured to adjust the duty ratio of the PWM signal by 1 unit step when the output voltage is greater than a preset output voltage upper limit; and the PWM control circuit is further used for further judging whether the output voltage is smaller than the lower limit value of the preset output voltage and whether the charging current is smaller than the lower limit value of the preset charging current when the output voltage is not larger than the upper limit value of the preset output voltage, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is smaller than the lower limit value of the preset output voltage, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is smaller than the lower limit value of the preset charging current.
The second adjusting submodule 5122 is configured to adjust the duty ratio of the PWM signal to be 1 unit step lower when the charging current is greater than a preset charging current upper limit value; and the PWM control circuit is further used for further judging whether the output voltage is smaller than the lower limit value of the preset output voltage and whether the charging current is smaller than the lower limit value of the preset charging current when the charging current is not larger than the upper limit value of the preset charging current, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is smaller than the lower limit value of the preset output voltage, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is smaller than the lower limit value of the preset charging current.
The first implementation mode ensures that the power adapter outputs the maximum current by controlling the charging current of the power adapter not to exceed the maximum current value of the adapter.
As a second implementation manner of this embodiment, when the operating parameter further includes an input voltage of the power adapter, the PWM adjusting module 512 further includes a third adjusting submodule 5123, configured to adjust the duty ratio of the PWM signal by 1 unit step when the input voltage is smaller than a preset input voltage threshold; and the PWM signal duty cycle control circuit is further used for further judging whether the output voltage is smaller than the preset output voltage lower limit value and whether the charging current is smaller than the preset charging current lower limit value when the input voltage is not smaller than the preset input voltage threshold value, increasing the duty cycle of the PWM signal by 1 unit step when the judgment result shows that the output voltage is smaller than the preset output voltage lower limit value, and increasing the duty cycle of the PWM signal by 1 unit step when the judgment result shows that the charging current is smaller than the preset charging current lower limit value.
The second implementation does not pull the input voltage too low to affect the output efficiency by again controlling the input voltage.
Further, the charging control device further includes a charging soft start unit 52, configured to determine whether an input voltage of the power adapter is smaller than a preset input voltage threshold, if so, add 1 to the soft start counter, and if not, increase the duty ratio of the PWM signal by 1 unit step; the soft start counter is used for counting the number of the input current of the power adapter, and is also used for judging whether the input current of the power adapter exceeds the preset amplitude of the input current threshold, if so, the soft start counter is increased by 1, and if not, the duty ratio of the PWM signal is increased by 1 unit step length; the soft start counter is used for counting the output voltage of the power adapter, and is also used for judging whether the output voltage of the power adapter is greater than the preset output voltage upper limit value or not, if so, the soft start counter is increased by 1, and if not, the duty ratio of the PWM signal is increased by 1 unit step length; the PWM signal duty cycle is reduced by 1 unit step length after the soft start counter is added with 1 each time, and whether the current charging current value is larger than the historical maximum charging current value or not is judged;
the charging soft start unit 52 is further configured to further determine whether the accumulated value of the soft start counter has reached the upper counting limit when the current charging current value is not greater than the historical maximum charging current value; if the current charging current value is larger than the historical maximum charging current value, further judging whether the accumulated value of the soft start counter reaches the upper counting limit after updating the current charging current value to the historical maximum charging current value;
the charging soft start unit 52 is further configured to, when the accumulated value of the soft start counter has reached the upper count limit, use the historical maximum charging current value at this time as the upper charging current limit value, determine the lower charging current limit value based on the upper charging current limit value, and then clear both the soft start counter and the historical maximum charging current value.
The PWM adjusting module 512 in the second embodiment adjusts the duty ratio of the PWM signal according to the working parameters of the power adapter, so that the output voltage of the power adapter is kept between the preset upper limit value of the output voltage and the lower limit value of the output voltage, and the charging current is kept between the preset upper limit value of the charging current and the lower limit value of the charging current, which ensures that the power adapter can be charged in a constant current and constant voltage state and can output the maximum current, thereby realizing the maximum power charging, and shortening the charging time.
Referring to fig. 7, the third embodiment of the present invention further provides a power adapter, which may be built in the charger, may be built in the device to be charged, or may be independent of the charger and the device to be charged.
The power adapter includes a voltage conversion circuit 71 and an MCU 72. The input terminals Vin + and Vin-of the voltage conversion circuit 71 are connected with a 5V charger, and the output terminals Vout + and Vout-are connected with a battery, so that 5V USB charging of the battery is realized.
The MCU72 has an input voltage sampling port Vin, an output voltage sampling port Vout, a charging current sampling port Chg _ I, PWM control signal output port Mos _ drive, and a charging identification port Vin _ Det; the MCU72 is configured to store and run a computer program, and when the MCU72 runs the computer program, the charging control method according to the first embodiment may be implemented. The ports of the MCU72 are defined as follows:
input voltage sampling port Vin: the ADC sampling interface may be used to sample the input voltage of the charger, and the input voltage is divided by a voltage dividing network (or a differential signal network) such as a differential amplifier circuit or a resistor divider circuit in proportion and transmitted to the MCU72 to sample the input voltage.
Output voltage sampling port Vout: the method is used for sampling the voltage of the back end (battery end) and realizing the control of the output voltage.
Charging current sampling port Chg _ I: and sampling the input current in real time to realize the control of the input current.
PWM control signal output port Mos _ drive: in the voltage conversion circuit 71, the output end of the driving signal of the switching tube Q may also provide the output PWM signal to the control end of the switching tube Q after passing through a driving amplifier circuit.
Charging identification port Vin _ Det: the charging input identification signal of the charger is collected for waking up the MCU72 for use, and when the charger is not in operation, the MCU72 may sleep to reduce losses.
The MCU72 samples the input voltage (Vin), the output voltage (Vout), and the charging input current Chg _ I of the voltage conversion circuit 71 in real time. The MCU72 controls the Mos _ drive to output a Pulse Width Modulation (PWM) wave with a specific frequency according to the input voltage and current signals, thereby achieving the purpose of constant-current and constant-voltage charging of the battery. Meanwhile, the input voltage and the input current are controlled, so that when the charging current is maximum, the output voltage is just maximum, and the maximum power charging is realized.
Fig. 7 shows the structure of the voltage conversion circuit 71 by taking a boost (boost) conversion circuit as an example, and it should be understood that the voltage conversion circuit 71 may also adopt a buck (buck) conversion circuit or other charging circuit regulated by a single PW M, only a basic 8-bit single chip microcomputer is needed to realize normal charging control, switching cycle control by switching cycle is not needed, expensive DSP (Digital Signal Processing) processor control is not needed, and the method is simple and economical.
The above embodiments can completely adopt software to realize the control of battery charging, the charging design can be faster, more flexible and more economical than the previous ones, and the charging device can be easily matched with various 5V USB adapters. The complexity of hardware design is simplified, and the BOM cost is reduced. The solar MPPT controller is suitable for a mobile phone charging control circuit, a charger charging control circuit, a solar MPPT (Maximum Power Point Tracking) controller and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (7)

1. A charging control method is suitable for a power adapter performing charging control through a PWM signal, and is characterized by comprising the following steps:
detecting whether a charger is inserted;
when a charger is detected to be inserted, further detecting whether a charging soft start program is finished, if so, entering a constant-current constant-voltage charging program, otherwise, executing the charging soft start program, and determining a preset charging current upper limit value and a preset charging current lower limit value in the charging soft start program, wherein the charging current upper limit value and the charging current lower limit value are used as target parameters of current and are transmitted to the constant-current constant-voltage charging program; the charging current upper limit value is a historical maximum charging current value including a current charging current value;
detecting working parameters of the power adapter in each detection period of the constant-current constant-voltage charging program;
adjusting the duty ratio of the PWM signal according to the detected working parameter, so that the output voltage of the power adapter is kept between a preset output voltage upper limit value and an output voltage lower limit value, and the charging current is kept between a preset charging current upper limit value and a charging current lower limit value;
the executing the charging soft start program includes:
judging whether the input voltage of the power adapter is smaller than a preset input voltage threshold value, if so, adding 1 to a soft start counter, and if not, increasing the duty ratio of the PWM signal by 1 unit step length;
judging whether the input current of the power adapter exceeds the preset amplitude of the input current threshold, if so, adding 1 to the soft start counter, and if not, increasing the duty ratio of the PWM signal by 1 unit step length;
judging whether the output voltage of the power adapter is greater than a preset output voltage upper limit value or not, if so, adding 1 to the soft start counter, and if not, increasing the duty ratio of the PWM signal by 1 unit step length;
after the soft start counter is added with 1 each time, the duty ratio of the PWM signal is reduced by 1 unit step length, and whether the current charging current value is larger than the historical maximum charging current value or not is judged;
if the current charging current value is not greater than the historical maximum charging current value, further judging whether the accumulated value of the soft start counter reaches the upper counting limit; if the current charging current value is larger than the historical maximum charging current value, further judging whether the accumulated value of the soft start counter reaches the upper counting limit after updating the current charging current value to the historical maximum charging current value;
if the accumulated value of the soft start counter reaches the upper limit of the count, taking the historical maximum charging current value at the moment as the upper limit of the charging current, determining the lower limit of the charging current based on the upper limit of the charging current, and then resetting the soft start counter and the historical maximum charging current value; and if the accumulated value of the soft start counter does not reach the upper counting limit and the soft start is also overtime, performing the soft start according to the default maximum charging current value.
2. The charge control method of claim 1, wherein the operating parameters include an output voltage of a power adapter, a charging current; the adjusting the duty ratio of the PWM signal according to the detected operating parameter to keep the output voltage of the power adapter between a preset upper limit value of the output voltage and a preset lower limit value of the output voltage, and keep the charging current between a preset upper limit value of the charging current and a preset lower limit value of the charging current includes:
if the output voltage is greater than the preset output voltage upper limit value, the duty ratio of the PWM signal is reduced by 1 unit step length;
if the output voltage is not greater than the preset upper limit value of the output voltage, further judging whether the output voltage is smaller than the preset lower limit value of the output voltage and whether the charging current is smaller than the preset lower limit value of the charging current, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is smaller than the preset lower limit value of the output voltage, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is smaller than the preset lower limit value of the charging current;
if the charging current is larger than a preset charging current upper limit value, reducing the duty ratio of the PWM signal by 1 unit step length;
if the charging current is not greater than the preset upper limit value of the charging current, further judging whether the output voltage is less than the preset lower limit value of the output voltage and whether the charging current is less than the preset lower limit value of the charging current, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is less than the preset lower limit value of the output voltage, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is less than the preset lower limit value of the charging current.
3. The charge control method of claim 2, wherein the operating parameter further comprises an input voltage of a power adapter; the adjusting the duty ratio of the PWM signal according to the detected operating parameter to keep the output voltage of the power adapter between a preset upper limit value of the output voltage and a preset lower limit value of the output voltage, and keep the charging current between a preset upper limit value of the charging current and a preset lower limit value of the charging current, further includes:
if the input voltage is smaller than a preset input voltage threshold value, reducing the duty ratio of the PWM signal by 1 unit step length;
if the input voltage is not less than the preset input voltage threshold, further judging whether the output voltage is less than a preset output voltage lower limit value and the charging current is less than a preset charging current lower limit value, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is less than the preset output voltage lower limit value, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is less than the preset charging current lower limit value.
4. A charging control device is suitable for a power adapter performing charging control through a PWM signal, and is characterized by comprising a soft start unit and a constant-current and constant-voltage charging unit, wherein the constant-current and constant-voltage charging unit comprises a detection module and a PWM regulation module;
the soft start unit is used for determining a preset charging current upper limit value and a preset charging current lower limit value, and the charging current upper limit value and the charging current lower limit value are used as target parameters of current and are transmitted to a constant-current constant-voltage charging program; the charging current upper limit value is a historical maximum charging current value including a current charging current value;
the detection module is used for detecting working parameters of the power adapter in each detection period of the constant-current constant-voltage charging module;
the PWM adjusting module is used for adjusting the duty ratio of the PWM signal according to the working parameter detected by the detecting module, so that the output voltage of the power adapter is kept between a preset output voltage upper limit value and an output voltage lower limit value, and the charging current is kept between a preset charging current upper limit value and a charging current lower limit value;
the charging soft start unit is used for judging whether the input voltage of the power adapter is smaller than a preset input voltage threshold value, if so, adding 1 to a soft start counter, and if not, increasing the duty ratio of the PWM signal by 1 unit step length; the soft start counter is used for counting the number of the input current of the power adapter, and is also used for judging whether the input current of the power adapter exceeds the preset amplitude of the input current threshold, if so, the soft start counter is increased by 1, and if not, the duty ratio of the PWM signal is increased by 1 unit step length; the soft start counter is used for counting the output voltage of the power adapter, and is also used for judging whether the output voltage of the power adapter is greater than the preset output voltage upper limit value or not, if so, the soft start counter is increased by 1, and if not, the duty ratio of the PWM signal is increased by 1 unit step length; the PWM signal duty cycle is reduced by 1 unit step length after the soft start counter is added with 1 each time, and whether the current charging current value is larger than the historical maximum charging current value or not is judged; the soft start counter is also used for further judging whether the accumulated value of the soft start counter reaches the upper counting limit when the current charging current value is not greater than the historical maximum charging current value; if the current charging current value is larger than the historical maximum charging current value, further judging whether the accumulated value of the soft start counter reaches the upper counting limit after updating the current charging current value to the historical maximum charging current value; and the controller is also used for taking the historical maximum charging current value as the charging current upper limit value when the accumulated value of the soft start counter reaches the counting upper limit value, determining the charging current lower limit value based on the charging current upper limit value, and then clearing the soft start counter and the historical maximum charging current value.
5. The charge control device of claim 4, wherein the operating parameters include an output voltage of a power adapter, a charging current; the PWM adjusting module comprises:
the first adjusting submodule is used for adjusting the duty ratio of the PWM signal to be 1 unit step length when the output voltage is greater than the preset output voltage upper limit value; the PWM signal output circuit is also used for further judging whether the output voltage is smaller than the lower limit value of the preset output voltage and whether the charging current is smaller than the lower limit value of the preset charging current when the output voltage is not larger than the upper limit value of the preset output voltage, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is smaller than the lower limit value of the preset output voltage, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is smaller than the lower limit value of the preset charging current;
the second adjusting submodule is used for adjusting the duty ratio of the PWM signal to be 1 unit step length when the charging current is larger than a preset charging current upper limit value; and the PWM control circuit is further used for further judging whether the output voltage is smaller than the lower limit value of the preset output voltage and whether the charging current is smaller than the lower limit value of the preset charging current when the charging current is not larger than the upper limit value of the preset charging current, increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the output voltage is smaller than the lower limit value of the preset output voltage, and increasing the duty ratio of the PWM signal by 1 unit step length when the judgment result shows that the charging current is smaller than the lower limit value of the preset charging current.
6. The charge control device of claim 5, wherein the operating parameter further comprises an input voltage of a power adapter; the PWM regulation module further includes:
the third adjusting submodule is used for adjusting the duty ratio of the PWM signal to be 1 unit step length when the input voltage is smaller than a preset input voltage threshold; and the PWM signal duty cycle control circuit is further used for further judging whether the output voltage is smaller than the preset output voltage lower limit value and whether the charging current is smaller than the preset charging current lower limit value when the input voltage is not smaller than the preset input voltage threshold value, increasing the duty cycle of the PWM signal by 1 unit step when the judgment result shows that the output voltage is smaller than the preset output voltage lower limit value, and increasing the duty cycle of the PWM signal by 1 unit step when the judgment result shows that the charging current is smaller than the preset charging current lower limit value.
7. A power adapter is characterized by comprising a DC-DC voltage conversion circuit and an MCU, wherein the MCU is provided with an input voltage sampling port, an output voltage sampling port, a charging current sampling port and a PWM control signal output port of the power adapter; the MCU is configured to store and run a computer program, and when the MCU runs the computer program, the charging control method according to any one of claims 1 to 3 may be implemented to control the DC-DC voltage conversion circuit.
CN201910130329.2A 2019-02-21 2019-02-21 Charging control method, charging control device and power adapter Active CN109888897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910130329.2A CN109888897B (en) 2019-02-21 2019-02-21 Charging control method, charging control device and power adapter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910130329.2A CN109888897B (en) 2019-02-21 2019-02-21 Charging control method, charging control device and power adapter

Publications (2)

Publication Number Publication Date
CN109888897A CN109888897A (en) 2019-06-14
CN109888897B true CN109888897B (en) 2021-08-31

Family

ID=66928717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910130329.2A Active CN109888897B (en) 2019-02-21 2019-02-21 Charging control method, charging control device and power adapter

Country Status (1)

Country Link
CN (1) CN109888897B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365076B (en) * 2019-07-10 2024-04-16 东莞启益电器机械有限公司 Charging circuit capable of intelligently detecting maximum output charging current of charger
CN110994709B (en) * 2019-11-07 2023-03-14 广东尚研电子科技有限公司 Battery charging capacity control method and controller
CN111884276B (en) * 2020-04-20 2022-02-11 珠海市杰理科技股份有限公司 Charging system, charging equipment and charging control method
CN111384760A (en) * 2020-04-24 2020-07-07 青岛鼎信通讯股份有限公司 Constant-current constant-voltage charging circuit applied to products in power industry
CN111769620A (en) * 2020-07-22 2020-10-13 广州市宇连电子有限公司 Mobile phone charging support and charging circuit thereof
CN113036883A (en) * 2021-04-14 2021-06-25 湖南进芯电子科技有限公司 Charging control method and system
CN113162182A (en) * 2021-04-30 2021-07-23 杰华特微电子股份有限公司 Charging control method of power supply equipment and power supply equipment
CN113572229A (en) * 2021-07-16 2021-10-29 南京西普尔科技实业有限公司 Method and device for presetting parameters of electric bicycle charger

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790345A (en) * 2014-12-26 2016-07-20 中兴通讯股份有限公司 Charging control method and device
CN205407320U (en) * 2016-02-25 2016-07-27 安克科技有限公司 Charger
CN106712210B (en) * 2017-02-16 2023-09-22 杰华特微电子股份有限公司 Power supply device and charging control method thereof
CN108964161B (en) * 2017-05-23 2020-10-20 深圳市美好创亿医疗科技股份有限公司 Charging management method of charging circuit and charging circuit
CN109066885B (en) * 2018-09-04 2021-05-14 深圳市蓝禾技术有限公司 Charger and charging method of the charger

Also Published As

Publication number Publication date
CN109888897A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109888897B (en) Charging control method, charging control device and power adapter
CN102946131B (en) Adaptive input power charger and method for controlling input current of charger
WO2020063056A1 (en) Wireless charging method, electronic device, wireless charging apparatus and wireless charging system
US6118254A (en) Battery charge control architecture for constant voltage maximum power operation
CN103066666A (en) Boost type battery charging management system and control method thereof
US9991715B1 (en) Maximum power point tracking method and apparatus
CN103580000A (en) Overvoltage protection method and circuit for switching power supply output and switching power supply provided with the circuit
JP6462905B2 (en) Phase shift full bridge charger control system and control method
WO2015111006A1 (en) Switching-mode power supplies
US20140327421A1 (en) Switching regulator and method for controlling the switching regulator
AU2013279955B2 (en) Charging device and charging method
CN104426370A (en) Power supply adapter and adaptive control circuit and adaptive control method of power supply adapter
CN103856086A (en) Current transformer electricity taking control method and system
CN112290646A (en) Lithium battery charging method and device
CN104467139A (en) Charging method and device and charger
CN108964464A (en) The circuit and its method of Switching Power Supply outlet side non-destructive testing load current
CN110620417A (en) Flyback current mode PWM control charging system and charging method
CN210490543U (en) Multi-stage energy storage element parallel charging and discharging system
CN102570834B (en) The control circuit switched for the interval of power converter and method
WO2020034389A1 (en) Fast charging method and device, apparatus, and storage medium
CN108988629B (en) Detection circuit, boosting device, and DC/DC converter
CN217282265U (en) Lithium battery pack equalizing charging circuit
WO2022217857A1 (en) Charging control method and system
CN110838747B (en) Power supply control method of mobile power supply and mobile power supply
KR20140120025A (en) Charging circuit for rechareable battery, battery charger with the same and charging method for rechareable battery

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