CN110941302B - Voltage regulator control method and device, voltage regulator and medium - Google Patents

Voltage regulator control method and device, voltage regulator and medium Download PDF

Info

Publication number
CN110941302B
CN110941302B CN201911157205.XA CN201911157205A CN110941302B CN 110941302 B CN110941302 B CN 110941302B CN 201911157205 A CN201911157205 A CN 201911157205A CN 110941302 B CN110941302 B CN 110941302B
Authority
CN
China
Prior art keywords
point data
voltage value
circuit
sampling point
physical parameter
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
CN201911157205.XA
Other languages
Chinese (zh)
Other versions
CN110941302A (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 Launch Technology Co Ltd
Original Assignee
Shenzhen Launch 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 Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201911157205.XA priority Critical patent/CN110941302B/en
Publication of CN110941302A publication Critical patent/CN110941302A/en
Application granted granted Critical
Publication of CN110941302B publication Critical patent/CN110941302B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Dc-Dc Converters (AREA)

Abstract

The application provides a voltage regulator control method, which comprises the following steps: acquiring a target voltage value; inputting the target voltage value into a polynomial function relationship to determine a corresponding target physical parameter, wherein the polynomial function relationship is a function relationship between the physical parameter and an output voltage value; and controlling a circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter. Therefore, the corresponding target physical parameters are obtained by inputting the target voltage values into the polynomial function relationship, so that the target physical parameters can be accurately controlled to output the voltage. The application also provides a voltage regulator control device, a voltage regulator and a computer readable storage medium, which have the beneficial effects.

Description

Voltage regulator control method and device, voltage regulator and medium
Technical Field
The present disclosure relates to the field of voltage regulation technologies, and in particular, to a voltage regulator control method, a voltage regulator control apparatus, a voltage regulator, and a computer-readable storage medium.
Background
The micro-power voltage regulator is generally used in a low-power-consumption voltage regulator to realize power supply, and the adjustable and controllable voltage regulator is particularly important because the voltage supplied by the voltage regulator is various and has different required voltages. The conventional common method for controlling the voltage regulator is to use a piecewise linear function mode, and a piecewise function mode is not high in precision, so that particularly at the inflection point of the piecewise linear function, a breakpoint is easy to occur, large fluctuation occurs in the voltage control process, and the transition is not smooth.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
An object of the present application is to provide a voltage regulator control method, a voltage regulator control apparatus, a voltage regulator, and a computer-readable storage medium capable of accurately controlling voltage output. The specific scheme is as follows:
in a first aspect, the present application discloses a voltage regulator control method, including:
acquiring a target voltage value;
inputting the target voltage value into a polynomial function relationship to determine a corresponding target physical parameter, wherein the polynomial function relationship is a function relationship between the physical parameter and an output voltage value;
and controlling a circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Optionally, before the obtaining of the target voltage value, the method includes:
obtaining a plurality of sampling point data, wherein the sampling point data comprises the output voltage value and the physical parameter;
and performing polynomial fitting on all the sampling point data to obtain the polynomial function relation.
Optionally, acquiring data of a plurality of sampling points includes:
acquiring a plurality of original sampling point data;
judging whether error data exist in all the original sampling point data or not;
and if the error data exists, taking all data after the error data is removed as all the sampling point data.
Optionally, the circuit to be processed is a variable resistance circuit, and correspondingly, the physical parameter is a variable resistance value.
Optionally, the circuit to be processed is a Pulse Width Modulation (PWM) circuit, and correspondingly, the physical parameter is PWM duty cycle time.
Optionally, the acquiring data of a plurality of sampling points includes:
acquiring a plurality of sampling point data of the Pulse Width Modulation (PWM) circuit in a preset period;
wherein the preset period ranges from 2 μ s to 1000 μ s, inclusive.
In a second aspect, the present application discloses a voltage regulator control apparatus comprising:
the target voltage value acquisition module is used for acquiring a target voltage value;
the target physical parameter determining module is used for inputting the target voltage value into a polynomial function relationship to determine a corresponding target physical parameter, wherein the polynomial function relationship is the function relationship between the physical parameter and the output voltage value;
and the target voltage value output module is used for controlling the circuit to be processed to output the voltage corresponding to the target voltage value according to the target physical parameter.
Optionally, the method further includes:
the sampling point data acquisition module is used for acquiring a plurality of sampling point data, wherein the sampling point data comprises the output voltage value and the physical parameter;
and the polynomial function relation acquisition module is used for performing polynomial fitting on all the sampling point data to obtain the polynomial function relation.
Optionally, the sampling point data obtaining module includes:
an original sampling point data obtaining unit for obtaining a plurality of original sampling point data;
the judging unit is used for judging whether error data exist in all the original sampling point data or not;
and the sampling point data acquisition unit is used for taking all data after the error data is removed as all the sampling point data if the error data exists.
Optionally, the circuit to be processed is a variable resistance circuit, and correspondingly, the physical parameter is a variable resistance value.
Optionally, the circuit to be processed is a Pulse Width Modulation (PWM) circuit, and correspondingly, the physical parameter is PWM duty cycle time.
Optionally, the sampling point data obtaining module includes:
a sampling point data obtaining unit, configured to obtain a plurality of sampling point data of the PWM circuit in a preset period;
wherein the preset period ranges from 2 μ s to 1000 μ s, inclusive.
In a third aspect, the present application discloses a voltage regulator comprising:
a memory for storing a computer program;
a processor for implementing the following steps when executing the computer program: acquiring a target voltage value; inputting the target voltage value into a polynomial function relationship to determine a corresponding target physical parameter, wherein the polynomial function relationship is a function relationship between the physical parameter and an output voltage value; and controlling a circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps may be specifically implemented: obtaining a plurality of sampling point data, wherein the sampling point data comprises the output voltage value and the physical parameter; and performing polynomial fitting on all the sampling point data to obtain the polynomial function relation.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps may be specifically implemented: acquiring a plurality of original sampling point data; judging whether error data exist in all the original sampling point data or not; and if the error data exists, taking all data after the error data is removed as all the sampling point data.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps may be specifically implemented: acquiring a plurality of sampling point data of the Pulse Width Modulation (PWM) circuit in a preset period; wherein the preset period ranges from 2 μ s to 1000 μ s, inclusive.
In a fourth aspect, the present application discloses a computer readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a target voltage value; inputting the target voltage value into a polynomial function relationship to determine a corresponding target physical parameter, wherein the polynomial function relationship is a function relationship between the physical parameter and an output voltage value; and controlling a circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium may specifically implement the following steps: obtaining a plurality of sampling point data, wherein the sampling point data comprises the output voltage value and the physical parameter; and performing polynomial fitting on all the sampling point data to obtain the polynomial function relation.
Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium may specifically implement the following steps: acquiring a plurality of original sampling point data; judging whether error data exist in all the original sampling point data or not; and if the error data exists, taking all data after the error data is removed as all the sampling point data.
Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium may specifically implement the following steps: acquiring a plurality of sampling point data of the Pulse Width Modulation (PWM) circuit in a preset period; wherein the preset period ranges from 2 μ s to 1000 μ s, inclusive.
The application provides a voltage regulator control method, which comprises the following steps: acquiring a target voltage value; inputting the target voltage value into a polynomial function relationship to determine a corresponding target physical parameter, wherein the polynomial function relationship is a function relationship between the physical parameter and an output voltage value; and controlling a circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Therefore, the corresponding target physical parameters are obtained by inputting the target voltage values into the polynomial function relationship, so that the target physical parameters can be accurately controlled to output the voltage. The present application also provides a voltage regulator control device, a voltage regulator and a computer readable storage medium, which have the above beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a voltage regulator control method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another voltage regulator control method according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another voltage regulator control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a voltage regulator device according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a voltage regulator according to an embodiment of the present disclosure;
fig. 6 is a block diagram of another voltage regulator according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all 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 conventional common method for controlling the voltage regulator is to use a piecewise linear function mode, and a piecewise function mode is not high in precision, so that particularly at the inflection point of the piecewise linear function, a breakpoint is easy to occur, large fluctuation occurs in the voltage control process, and the transition is not smooth. Based on the foregoing technical problem, in this embodiment, a voltage regulator control method is provided, where a target voltage value is input into a polynomial function relationship to obtain a corresponding target physical parameter, so as to accurately control the target physical parameter to output a voltage, and since the polynomial function relationship can accurately fit a nonlinear data relationship, the obtained data is more accurate and the voltage output is more accurate, specifically referring to fig. 1, where fig. 1 is a flowchart of a voltage regulator control method provided in this embodiment of the present application, and specifically includes:
and S101, acquiring a target voltage value.
The present embodiment is mainly directed to a voltage regulator, which may be a power voltage regulator, and the micro-power voltage regulator generally utilizes voltage regulation on a feedback pin of an IC to control the voltage output of the regulator to reach a required voltage.
In an implementable embodiment, the output voltage in the pulse width modulation, PWM, circuit may be regulated; in another implementation, the output voltage of the variable resistance circuit may be adjusted, or other circuits may be used, and this embodiment is not limited. Specifically, the voltage on the Feedback pin can change the duty ratio through an RC circuit by using PWM, charge and discharge the capacitance of the RC circuit, and stabilize a voltage, thereby controlling the output voltage of the voltage regulator. The present embodiment is based on an adjustable voltage, using a polynomial regression fitting algorithm to control the voltage.
And acquiring a target voltage value, wherein the target voltage value can be set by a user according to actual requirements and can be any value meeting actual application conditions, namely, in a scene.
S102, inputting the target voltage value into a polynomial function relation, and determining a corresponding target physical parameter, wherein the polynomial function relation is a function relation of the physical parameter and the output voltage value.
It can be understood that the polynomial function relationship is a function relationship calculated by fitting a plurality of sampling points by polynomial regression, the sampling points include physical parameters and output voltages, in a corresponding relationship diagram, the abscissa may be an output voltage value, the ordinate is a physical parameter, after a target voltage value is determined, the target voltage value is input into the polynomial function relationship, and the corresponding target physical parameter can be obtained through calculation. It is understood that the setting user of the highest power of the polynomial functional relationship in the present embodiment may set according to actual requirements as long as the purpose of the present embodiment can be achieved.
In an implementation, the polynomial function relationship is set to y ═ a0+a1x1+a2x2...+akxkWherein a is0、a1、a2...akFor each coefficient. y is the output voltage value, x is the corresponding physical parameter, and k is the highest power of the polynomial. The sum of the distances of the points to the curve, i.e. the sum of squares of deviation R2The following were used:
Figure BDA0002285115370000061
n is the total number of sample point data. It will be appreciated that the k values are determined in turn, resulting in corresponding R2When R is2And when the k value is larger than the preset threshold value, determining the k value. In particular, when k is 1, R is obtained1 2Is not greater than a preset threshold; r obtained when k is calculated to be 22 2Is not greater than a preset threshold; r obtained when k is calculated to be 33 2And if the k is greater than the preset threshold, determining that k is 3, wherein the preset threshold may be any one of 0.9, 0.95, 0.85 and 0.8, and the user may customize the setting. In general, the higher the polynomial coefficient, the higher R2The closer to 1, the higher the calculation accuracy, but the higher the calculation complexity, and vice versa. In case the accuracy requirement is met, the polynomial coefficient is chosen to be low.
And S103, controlling the circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
And controlling the output of the voltage according to the calculated target physical parameter so as to output a target voltage value.
It is understood that, when the circuit to be processed is a variable resistance circuit, and the corresponding physical parameter is a variable resistance value, specifically, the adjustment and control of the variable resistance value in the variable resistance circuit can be based on a variable digital resistor, and the resistance value can be adjusted and controlled by changing a digital signal. When the circuit to be processed is a Pulse Width Modulation (PWM) circuit, the corresponding physical parameter is PWM duty cycle time.
Based on the technical scheme, the corresponding target physical parameters are obtained by inputting the target voltage values into the polynomial function relationship, so that the target physical parameters can be accurately controlled to output the voltage.
Based on the foregoing embodiments, the present embodiment provides a voltage regulator control method, and specifically please refer to fig. 2, where fig. 2 is a flowchart of another voltage regulator control method provided in the present embodiment, and the method includes:
s201, obtaining a plurality of sampling point data, wherein the sampling point data comprise output voltage values and physical parameters.
S202, performing polynomial fitting on all sampling point data to obtain a polynomial function relation.
And S203, acquiring a target voltage value.
And S204, inputting the target voltage value into a polynomial function relationship, and determining a corresponding target physical parameter, wherein the polynomial function relationship is the function relationship between the physical parameter and the output voltage value.
And S205, controlling the circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Specifically, in the present embodiment, the polynomial function relationship is determined based on the processor, specifically, the excel table is used for processing, but of course, the calculation processing may be performed in other forms as long as the purpose of the present embodiment can be achieved. The process of obtaining the polynomial function relationship between the physical parameter and the output voltage value by performing polynomial fitting on all the sampling point data can be as follows:
1. let the fitting polynomial be: a is0+a1x1+a2x2...+akxkWherein a is0、a1、a2...akFor each coefficient. y is the output voltage value, x is the corresponding physical parameter, and k is the highest power of the polynomial.
2. The sum of the distances of the points to the curve, i.e. the sum of squares of deviation R2The following were used:
Figure BDA0002285115370000071
n is the total number of sample point data.
3. Solving a on the right side of the equationiPartial derivative of
Figure BDA0002285115370000072
Figure BDA0002285115370000081
Figure BDA0002285115370000082
Wherein xiRepresenting physical parameters at different times, yiDenotes xiThe corresponding output voltage value.
4. Simplifying the left side of the equation to obtain
Figure BDA0002285115370000083
Figure BDA0002285115370000084
Figure BDA0002285115370000085
5. Expressing these equations in matrix form, the following is obtained:
Figure BDA0002285115370000086
6. reduced to matrix form
Figure BDA0002285115370000087
Wherein the content of the first and second substances,
Figure BDA0002285115370000091
7. the end result is
Figure BDA0002285115370000092
Finally, a polynomial function relation of the physical parameters and the output voltage value is obtained.
Based on the technical scheme, the nonlinear data relation can be accurately fitted by utilizing the polynomial function relation, so that the obtained data is more accurate, and the voltage output is more accurate.
Based on the foregoing embodiments, in order to obtain an accurate target voltage value, this embodiment provides a voltage regulator control method, where original sampling point data is screened, error data is deleted, and data other than error data is used as sampling point data, so as to improve accuracy of a polynomial function relationship between a physical parameter and an output voltage value, specifically please refer to fig. 3, where fig. 3 is a flowchart of another voltage regulator control method provided in this embodiment, and the method includes:
s301, obtaining a plurality of original sampling point data.
S302, judging whether error data exist in all original sampling point data or not.
The error data may be determined by taking data having a deviation position greater than a preset threshold as error data, the deviation position being an average value of distances between the data and two adjacent data, for example, the error data is P1(a1, B1), the adjacent data is P2(a2, B2), P3(A3, B4), and in the orthogonal coordinate system, the average value of the straight line P1P2 and the straight line P1P3 is an average value of distances between the error data and two adjacent data, and when the value is greater than the preset threshold, it is determined that P1 is the error data. Of course, it is also possible to plot all of the raw sampled data points and determine the error data from the image.
And S303, if the error data exists, taking all the data after the error data is removed as all the sampling point data.
And S304, performing polynomial fitting on all the sampling point data to obtain a polynomial function relation.
S305, acquiring a target voltage value.
S306, inputting the target voltage value into a polynomial function relation, and determining a corresponding target physical parameter, wherein the polynomial function relation is a function relation of the physical parameter and the output voltage value.
And S307, controlling the circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Based on the technical scheme, the original sampling point data is screened, the error data is deleted, and data except the error data is used as the sampling point data, so that the accuracy of the polynomial function relationship between the physical parameters and the output voltage value is improved.
The embodiment provides a specific voltage regulator control method, which is applied to a Pulse Width Modulation (PWM) circuit and comprises the following steps:
acquiring a plurality of original sampling point data of a Pulse Width Modulation (PWM) circuit in a preset period; the range of the preset period is 2 mus to 1000 mus, including the end points;
judging whether error data exist in all original sampling point data or not;
if the error data exists, taking all data after the error data is removed as all sampling point data;
performing polynomial fitting on all sampling point data to obtain a polynomial function relation;
acquiring a target voltage value;
inputting the target voltage value into a polynomial function relation, and determining corresponding target PWM duty ratio time, wherein the polynomial function relation is the function relation between the PWM duty ratio time and the output voltage;
and controlling the Pulse Width Modulation (PWM) circuit to output a voltage corresponding to the target voltage value according to the target PWM duty ratio time.
Specifically, in a practical polynomial function relationship for determining PWM duty cycle time and output voltage value, the sampling point data is shown in table 1.
The preset period of the PWM wave is 333 mu s, and polynomial fitting is carried out according to the sampling point data in the table 1 to obtain a polynomial function relation between the PWM duty cycle time and the output voltage:
y=0.036634134x3-0.538923085x2+14.393173388x-53.553802912;
wherein x: represents the output voltage value, y: representing the calculated PWM duty cycle time. When the output voltage is 9.1V, the polynomial function relation is input to obtain that y is 60 mus, and the output voltage is 9.1V according to PWM duty ratio time control.
TABLE 1 sample Point data Table
Figure BDA0002285115370000111
The embodiment provides a specific voltage regulator control method, which is applied to a variable resistance circuit and comprises the following steps:
acquiring a plurality of original sampling point data, wherein the original sampling point data comprises a variable resistance value and an output voltage value;
judging whether error data exist in all original sampling point data or not;
if the error data exists, taking all data after the error data is removed as all sampling point data;
performing polynomial fitting on all sampling point data to obtain a polynomial function relation;
acquiring a target voltage value;
inputting the target voltage value into a polynomial function relation, and determining a corresponding target variable resistance value, wherein the polynomial function relation is the function relation of the variable resistance value and the output voltage;
and controlling the variable resistance circuit to output a voltage corresponding to the target voltage value according to the target variable resistance value.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a voltage regulator control apparatus provided in an embodiment of the present application, where the voltage regulator control apparatus provided in the embodiment of the present application is described below, and the voltage regulator control apparatus described below and the voltage regulator control method described above may be referred to correspondingly, and includes:
a target voltage value obtaining module 410, configured to obtain a target voltage value;
a target physical parameter determining module 420, configured to input the target voltage value into a polynomial function relationship, and determine a corresponding target physical parameter, where the polynomial function relationship is a function relationship between the physical parameter and the output voltage value;
and a target voltage value output module 430, configured to control the circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Based on the technical scheme, the corresponding target physical parameters are obtained by inputting the target voltage values into the polynomial function relationship, so that the target physical parameters can be accurately controlled to output the voltage.
In some specific embodiments, the method further comprises:
the device comprises a sampling point data acquisition module, a data acquisition module and a data processing module, wherein the sampling point data acquisition module is used for acquiring a plurality of sampling point data, and the sampling point data comprises an output voltage value and a physical parameter;
and the polynomial function relation acquisition module is used for performing polynomial fitting on all sampling point data to obtain a polynomial function relation.
In some specific embodiments, the sampling point data acquisition module includes:
an original sampling point data obtaining unit for obtaining a plurality of original sampling point data;
the judging unit is used for judging whether error data exist in all the original sampling point data or not;
and the sampling point data acquisition unit is used for taking all data after error data is removed as all sampling point data if the error data exists.
In some embodiments, the circuit to be processed is a variable resistance circuit, and the corresponding physical parameter is a variable resistance value.
In some specific embodiments, the circuit to be processed is a PWM circuit, and the corresponding physical parameter is a PWM duty cycle time.
In some specific embodiments, the sampling point data obtaining module includes:
the sampling point data acquisition unit is used for acquiring a plurality of sampling point data of the Pulse Width Modulation (PWM) circuit in a preset period;
wherein the predetermined period is in a range of 2 μ s to 1000 μ s, inclusive.
Since the embodiment of the voltage regulator control apparatus corresponds to the embodiment of the voltage regulator control method, reference is made to the description of the embodiment of the voltage regulator control method for the embodiment of the voltage regulator control apparatus, and details are not repeated here.
The present application further provides an electronic device, referring to fig. 5, where fig. 5 is a structural diagram of a voltage regulator provided in an embodiment of the present application, including:
a memory 100 for storing a computer program;
the processor 200, when executing the computer program, may implement the steps provided by the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200 provides the computing and control capabilities for the electronic device and, when executing the computer program stored in the memory 100, may perform the following steps: acquiring a target voltage value; inputting the target voltage value into a polynomial function relationship, and determining a corresponding target physical parameter, wherein the polynomial function relationship is a function relationship between the physical parameter and the output voltage value; and controlling the circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Based on the technical scheme, the corresponding target physical parameters are obtained by inputting the target voltage values into the polynomial function relationship, so that the target physical parameters can be accurately controlled to output the voltage.
In some specific embodiments, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: acquiring a plurality of sampling point data, wherein the sampling point data comprises an output voltage value and a physical parameter; and performing polynomial fitting on all sampling point data to obtain a polynomial function relation.
In some specific embodiments, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: acquiring a plurality of original sampling point data; judging whether error data exist in all original sampling point data or not; and if the error data exists, taking all data after the error data is removed as all sampling point data.
In some specific embodiments, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: acquiring a plurality of sampling point data of a Pulse Width Modulation (PWM) circuit in a preset period; wherein the predetermined period is in a range of 2 μ s to 1000 μ s, inclusive.
Since the embodiment of the voltage regulator portion corresponds to the embodiment of the voltage regulator control method portion, please refer to the description of the embodiment of the voltage regulator control method portion, which is not repeated here.
On the basis of the foregoing embodiment, as a preferred implementation, referring to fig. 6, fig. 6 is a structural diagram of another electronic device provided in the embodiment of the present application, where the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data transmitted by the processor 200. The display unit 400 may be a display screen on a PC, a liquid crystal display screen, or an electronic ink display screen.
And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
A computer-readable storage medium provided by an embodiment of the present application is described below, and the computer-readable storage medium described below and the voltage regulator control method described above may be referred to in correspondence.
The application discloses a computer readable storage medium, on which a computer program is stored, which when executed by a processor may implement the steps provided by the above embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of: acquiring a target voltage value; inputting the target voltage value into a polynomial function relationship, and determining a corresponding target physical parameter, wherein the polynomial function relationship is a function relationship between the physical parameter and the output voltage value; and controlling the circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter.
Based on the technical scheme, the corresponding target physical parameters are obtained by inputting the target voltage values into the polynomial function relationship, so that the target physical parameters can be accurately controlled to output the voltage.
In some specific embodiments, the computer subprogram stored in the computer readable storage medium, when executed by the processor, may implement the following steps: acquiring a plurality of sampling point data, wherein the sampling point data comprises an output voltage value and a physical parameter; and performing polynomial fitting on all sampling point data to obtain a polynomial function relation.
In some specific embodiments, the computer subprogram stored in the computer readable storage medium, when executed by the processor, may implement the following steps: acquiring a plurality of original sampling point data; judging whether error data exist in all original sampling point data or not; and if the error data exists, taking all data after the error data is removed as all sampling point data.
In some specific embodiments, the computer subprogram stored in the computer readable storage medium, when executed by the processor, may implement the following steps: acquiring a plurality of sampling point data of a Pulse Width Modulation (PWM) circuit in a preset period; wherein the predetermined period is in a range of 2 μ s to 1000 μ s, inclusive.
Since the embodiment of the computer-readable storage medium portion corresponds to the embodiment of the voltage regulator control method portion, please refer to the description of the embodiment of the voltage regulator control method portion for the embodiment of the computer-readable storage medium portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
A voltage regulator control method, a voltage regulator control apparatus, a voltage regulator, and a computer-readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (6)

1. A voltage regulator control method, comprising:
acquiring a target voltage value;
inputting the target voltage value into a polynomial function relationship to determine a corresponding target physical parameter, wherein the polynomial function relationship is a function relationship between the physical parameter and an output voltage value;
controlling a circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter;
the circuit to be processed is a variable resistance circuit or a Pulse Width Modulation (PWM) circuit;
when the circuit to be processed is the variable resistance circuit, the physical parameter is a variable resistance value;
when the circuit to be processed is the Pulse Width Modulation (PWM) circuit, the physical parameter is PWM duty cycle time;
before the target voltage value is obtained, the method comprises the following steps:
obtaining a plurality of sampling point data, wherein the sampling point data comprises the output voltage value and the physical parameter;
and performing polynomial fitting on all the sampling point data to obtain the polynomial function relation.
2. The voltage regulator control method of claim 1, wherein obtaining a plurality of sample point data comprises:
acquiring a plurality of original sampling point data;
judging whether error data exist in all the original sampling point data or not;
and if the error data exists, taking all data after the error data is removed as all the sampling point data.
3. The voltage regulator control method of claim 2, wherein said obtaining a plurality of sample point data comprises:
acquiring a plurality of sampling point data of the Pulse Width Modulation (PWM) circuit in a preset period;
wherein the preset period ranges from 2 μ s to 1000 μ s, inclusive.
4. A voltage regulator control apparatus, comprising:
the target voltage value acquisition module is used for acquiring a target voltage value;
the target physical parameter determining module is used for inputting the target voltage value into a polynomial function relationship to determine a corresponding target physical parameter, wherein the polynomial function relationship is the function relationship between the physical parameter and the output voltage value;
the target voltage value output module is used for controlling a circuit to be processed to output a voltage corresponding to the target voltage value according to the target physical parameter;
the circuit to be processed is a variable resistance circuit or a Pulse Width Modulation (PWM) circuit;
when the circuit to be processed is the variable resistance circuit, the physical parameter is a variable resistance value;
when the circuit to be processed is the Pulse Width Modulation (PWM) circuit, the physical parameter is PWM duty cycle time;
the sampling point data acquisition module is used for acquiring a plurality of sampling point data, wherein the sampling point data comprises the output voltage value and the physical parameter;
and the polynomial function relation acquisition module is used for performing polynomial fitting on all the sampling point data to obtain the polynomial function relation.
5. A voltage regulator, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the voltage regulator control method according to any one of claims 1 to 3 when executing said computer program.
6. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the voltage regulator control method according to any one of claims 1 to 3.
CN201911157205.XA 2019-11-22 2019-11-22 Voltage regulator control method and device, voltage regulator and medium Active CN110941302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911157205.XA CN110941302B (en) 2019-11-22 2019-11-22 Voltage regulator control method and device, voltage regulator and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911157205.XA CN110941302B (en) 2019-11-22 2019-11-22 Voltage regulator control method and device, voltage regulator and medium

Publications (2)

Publication Number Publication Date
CN110941302A CN110941302A (en) 2020-03-31
CN110941302B true CN110941302B (en) 2022-02-22

Family

ID=69908093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911157205.XA Active CN110941302B (en) 2019-11-22 2019-11-22 Voltage regulator control method and device, voltage regulator and medium

Country Status (1)

Country Link
CN (1) CN110941302B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708398B (en) * 2020-07-10 2022-07-05 中国南方电网有限责任公司超高压输电公司天生桥局 Circuit electromagnetic analysis method and device
CN115060961A (en) * 2022-03-09 2022-09-16 深圳市世纪云芯科技有限公司 Power supply method, voltage measurement method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI318040B (en) * 2006-08-01 2009-12-01 Sunplus Technology Co Ltd Multi-functions voltage regulator
CN101217748B (en) * 2008-01-08 2011-02-16 北京天碁科技有限公司 A TD-SCDMA terminal and the corresponding radio frequency power amplifier electricity saving method
CN102411075B (en) * 2011-11-29 2013-09-18 宁波高新区新诚电子有限公司 Solar photovoltaic cell simulation system and simulation method for same
CN104734504B (en) * 2015-03-13 2017-04-12 浙江大学 DC-DC converter control method and system

Also Published As

Publication number Publication date
CN110941302A (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN110941302B (en) Voltage regulator control method and device, voltage regulator and medium
CN108628656A (en) Interface adaptation method, device, computer equipment and storage medium on ios device
US11741292B2 (en) Adaptive content delivery
CN111211937B (en) Method, device and system for testing stability of server link signals
CN103440326A (en) Method and apparatus for providing representation information
CN113705136A (en) Integrated circuit automation logic synthesis system, method, device and medium
TW201344557A (en) Apparatus and method for automatically controlling display screen density
EP3816776A1 (en) Data detection method and device, storage medium, and touch device
CN114565701A (en) Line segment drawing method and device, electronic equipment and computer readable storage medium
US9236863B2 (en) Compensated impedance calibration circuit
CN111736680B (en) Control method, control device, control equipment and storage medium for power supply slow start
CN111369063B (en) Test paper model training method, test paper combining method and related device
US9431826B2 (en) Determining the power supply and receive relationships among a plurality of devices based upon power consumptions of each of the devices
CN112333246A (en) ABtest experiment method and device, intelligent terminal and storage medium
CN111368978A (en) Precision improving method for offline quantization tool
CN116168403A (en) Medical data classification model training method, classification method, device and related medium
CN109491935A (en) A kind of physical address determines method, system and modularized equipment and storage medium
CN109799872A (en) Improve the method, apparatus and electronic equipment of low-res real-time clock waking-up precision
CN105487801B (en) Progress bar adjusting method and mobile terminal
CN108345940B (en) Data processing method, device and computer readable storage medium
CN104375696B (en) The apparatus and method of touch screen induction value self-correcting
WO2020154899A1 (en) Pressure calculation method and apparatus using same, electronic device, and touch system
CN107895563B (en) Display control method and device, terminal and computer readable storage medium
CN111382757A (en) Method for dynamically adjusting training samples in deep learning classification algorithm and terminal equipment
KR101908810B1 (en) Method for noise filtering of signal of power meter and computer-readable storage medium

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