Voltage conversion circuit control method and device, electronic equipment and readable storage medium
By sampling the bus voltage and inductor current in the voltage conversion circuit, the demand for inductor is reduced, and the problem of large size of the DC-DC converter is solved, miniaturized inductor and high-efficiency voltage conversion are achieved.
Patent Information
- Application Number
- CN202411101947.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-15
AI Technical Summary
Due to the need for large inductors, existing DC-DC converters have large volumes and are difficult to achieve light weight. How to reduce the volume of DC-DC converters has become an urgent problem.
By collecting the bus voltage at a first sampling frequency and collecting the inductor current at a second sampling frequency (the second sampling frequency is greater than the first sampling frequency), the switch drive signal is determined to reduce the demand for the inductor, thereby reducing the inductor. volume.
It realizes that without improving device performance, the inductor current sampling frequency is increased, the volume of the voltage conversion circuit is reduced, and the requirements of high efficiency and high gain are met.
Smart Images

Figure CN118971601A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of direct current microgrids, and in particular to a voltage conversion circuit control method, device, electronic equipment and readable storage medium. Background Art
[0002] In a DC microgrid, a DC-DC converter is usually used as an important tool to increase the voltage level of the DC power supply to the bus voltage. On the one hand, it needs to meet the basic power conversion functions, such as ensuring low ripple and stability on the output side in high-power situations. On the other hand, it also needs to have high performance, such as high efficiency and high gain when using solar photovoltaic low DC voltage output to generate electricity. The existing DC-DC converter has a large size due to the need for large inductance. With the pursuit of lightweight products, how to reduce the size of the DC-DC converter has become an urgent problem to be solved. Summary of the invention
[0003] The main purpose of the present invention is to propose a voltage conversion circuit control method, device, electronic device and readable storage medium, aiming to solve the problem of how to reduce the volume of a DC-DC converter in the prior art.
[0004] To achieve the above object, the present invention provides a voltage conversion circuit control method, the method comprising the steps of:
[0005] The bus sampling voltage of the voltage conversion circuit is collected at a first sampling frequency, and the inductor sampling current of the voltage conversion circuit is collected at a second sampling frequency, wherein the first sampling frequency is less than the second sampling frequency;
[0006] Determine a switch drive signal by using the bus sampling voltage and the inductor sampling current;
[0007] The voltage conversion circuit is driven based on the switch drive signal.
[0008] Optionally, determining the switch driving signal by sampling the bus voltage and the inductor current includes:
[0009] For each voltage sampling period, a target bus voltage is obtained, and a target inductor current is determined according to the target bus voltage and the bus sampling voltage, wherein the voltage sampling period corresponds to the first sampling frequency;
[0010] For each current sampling period, calculating a current deviation between the target inductor current and the inductor sampling current, wherein the current sampling period corresponds to the second sampling frequency;
[0011] Determining a duty cycle of the switch drive signal in a next current sampling period according to the current deviation;
[0012] The switch driving signal is generated according to the duty cycle.
[0013] Optionally, determining a target inductor current according to the target bus voltage and the bus sampling voltage includes:
[0014] Calculating a voltage deviation between the target bus voltage and the bus sampling voltage;
[0015] Inputting the voltage deviation into a voltage loop controller to obtain a voltage regulation value;
[0016] An input voltage of the voltage conversion circuit is obtained, and a product of the input voltage and the voltage adjustment value is used as the target inductor current.
[0017] Optionally, determining the duty cycle of the switch drive signal in the next current sampling period according to the current deviation includes:
[0018] Inputting the current deviation into a current loop controller to obtain a current regulation value;
[0019] determining a target duty cycle corresponding to the current regulation value;
[0020] The target duty cycle is used as the duty cycle of the switch drive signal in the next current sampling period.
[0021] Optionally, the voltage conversion circuit includes a plurality of conversion branches, the conversion branches include slave branches and a master branch; and using the target duty cycle as the duty cycle of the switch drive signal in the next current sampling period includes:
[0022] For each of the slave branches, acquiring an inductor current difference between the slave branch and the master branch, wherein the inductor current difference is a difference between the inductor sampling currents corresponding to the master branch and the slave branch;
[0023] matching a duty cycle compensation value corresponding to the inductor current difference;
[0024] The target duty cycle is superimposed on the duty cycle compensation value to obtain the duty cycle of the switch drive signal in the next current sampling period.
[0025] Optionally, the voltage conversion circuit includes a plurality of conversion branches; and using the target duty cycle as the duty cycle of the switch drive signal in the next current sampling period includes:
[0026] Obtaining the bus current, and determining, for each of the conversion branches, a current offset value between the corresponding inductor sampling current and the bus current;
[0027] matching a duty cycle compensation value corresponding to the current offset value;
[0028] The target duty cycle is superimposed on the duty cycle compensation value to obtain the duty cycle of the switch drive signal in the next current sampling period.
[0029] Optionally, the voltage conversion circuit includes a plurality of conversion branches, the conversion branches include slave branches and a main branch; and the calculating the current deviation between the target inductor current and the inductor sampling current includes:
[0030] For each of the transformation branches, determining whether the transformation branch is a master branch or a slave branch;
[0031] If the conversion branch is a slave branch, obtaining a main sampling current corresponding to the main branch;
[0032] The main sampling current is used as the target inductor current, and a current deviation between the target inductor current and the inductor sampling current is calculated.
[0033] To achieve the above object, the present invention further provides a voltage conversion circuit control device, the voltage conversion circuit control device comprising:
[0034] A first acquisition module, configured to acquire a bus sampling voltage of a voltage conversion circuit at a first sampling frequency, and to acquire an inductor sampling current of the voltage conversion circuit at a second sampling frequency, wherein the first sampling frequency is less than the second sampling frequency;
[0035] A first determination module, configured to determine a switch drive signal according to the bus sampling voltage and the inductor sampling current;
[0036] The first driving module is used to drive the voltage conversion circuit based on the switch driving signal.
[0037] To achieve the above objectives, the present invention also provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the voltage conversion circuit control method as described above.
[0038] To achieve the above object, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the voltage conversion circuit control method as described above are implemented.
[0039] The present invention proposes a voltage conversion circuit control method, device, electronic device and readable storage medium, which collects the bus sampling voltage of the voltage conversion circuit at a first sampling frequency, and collects the inductor sampling current of the voltage conversion circuit at a second sampling frequency, wherein the first sampling frequency is less than the second sampling frequency; determines a switch drive signal through the bus sampling voltage and the inductor sampling current; and drives the voltage conversion circuit based on the switch drive signal. By reducing the voltage sampling frequency to increase the current sampling frequency, the voltage conversion circuit reduces the need for inductor current, so that a smaller inductor can be set in the voltage conversion circuit to reduce the volume of the voltage conversion circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0043] Figure 1 It is a flowchart of a first embodiment of a voltage conversion circuit control method of the present invention;
[0044] Figure 2 A basic topological diagram of a voltage conversion circuit in a voltage conversion circuit control method of the present invention;
[0045] Figure 3 A control logic diagram of a voltage conversion circuit control method of the present invention;
[0046] Figure 4 A basic topological diagram of a voltage conversion circuit including multiple conversion branches in a voltage conversion circuit control method of the present invention;
[0047] Figure 5 It is an overall flow chart of an embodiment of a voltage conversion circuit control method of the present invention;
[0048] Figure 6 It is an overall flow chart of another embodiment of the voltage conversion circuit control method of the present invention;
[0049] Figure 7 It is a schematic diagram of the module structure of the electronic device of the present invention.
[0050] Description of Figure Numbers:
[0051] Label name Label name L inductance C1 Input Capacitance S switch C2 Bus Capacitor D diode DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0053] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present application.
[0055] The present invention provides a voltage conversion circuit control method, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a voltage conversion circuit control method according to the present invention. The method comprises the following steps:
[0056] Step S10, collecting a bus sampling voltage of a voltage conversion circuit at a first sampling frequency, and collecting an inductor sampling current of the voltage conversion circuit at a second sampling frequency, wherein the first sampling frequency is less than the second sampling frequency;
[0057] The bus sampling voltage is the voltage value obtained by sampling the bus voltage;
[0058] The inductor sampling current is a current value obtained by sampling the inductor current.
[0059] The voltage conversion circuit in this embodiment includes a BOOST circuit, see Figure 2 , Figure 2 The basic topology diagram of the BOOST circuit includes an input capacitor C1, an inductor L, a switch S, a diode D, and a bus capacitor C2. The bus voltage V0 is the voltage on both sides of the bus capacitor of the BOOST circuit, and the inductor current I L is the current in the branch where the inductor is located.
[0060] The specific sampling method of voltage and current can be set based on actual needs, such as collecting bus sampling voltage through a voltage sensor, and obtaining the inductor sampling current by detecting and amplifying the voltage difference across the inductor.
[0061] In the prior art, the bus sampling voltage and the inductor sampling current are sampled at the same sampling frequency, and then the driving signal for the switch is determined based on the collected bus sampling voltage and inductor sampling current; and if the requirement for a large inductor current of the inductor is to be reduced, the sampling frequency of the inductor sampling current needs to be increased, thereby reducing the need for a large inductor current in a single sampling cycle, and therefore, a smaller inductor can be used; however, due to the limitation of device performance, the sampling frequency of the inductor sampling current cannot be greatly realized. To solve this problem, in this embodiment, the bus voltage and the inductor current are sampled by frequency division, and the first sampling frequency of the bus voltage sampling is reduced, so that the voltage sampling gives up more device performance, thereby further increasing the sampling frequency of the inductor current, that is, the second sampling frequency; and the sampling frequency of the inductor current is increased without improving the device performance, thereby realizing the miniaturization of the inductor.
[0062] Step S20, determining a switch driving signal through the bus sampling voltage and the inductor sampling current;
[0063] Step S30: driving the voltage conversion circuit based on the switch driving signal.
[0064] After the bus sampling voltage and the inductor sampling current are determined, the switch drive signal of the switch can be determined based on the bus sampling voltage and the inductor sampling current; it can be understood that the switch drive signal is a PWM signal output to the switch, and the switch performs switching based on the switch drive signal, thereby adjusting the output bus voltage.
[0065] This embodiment increases the current sampling frequency by reducing the voltage sampling frequency, so that the voltage conversion circuit's need for inductor current is reduced, so that a smaller inductor can be set in the voltage conversion circuit, thereby reducing the volume of the voltage conversion circuit.
[0066] Further, in the second embodiment of the voltage conversion circuit control method of the present invention proposed based on the first embodiment of the present invention, the step S20 includes the steps of:
[0067] Step S21, for each voltage sampling period, obtaining a target bus voltage, and determining a target inductor current according to the target bus voltage and the bus sampling voltage, wherein the voltage sampling period corresponds to the first sampling frequency;
[0068] Step S22, calculating a current deviation between the target inductor current and the inductor sampling current for each current sampling period, wherein the current sampling period corresponds to the second sampling frequency;
[0069] Step S23, determining a duty cycle of the switch drive signal in the next current sampling period according to the current deviation;
[0070] Step S24: generating the switch driving signal according to the duty cycle.
[0071] It is understandable that, in this embodiment, the bus voltage and the inductor current are sampled by frequency division, so when generating the switch drive signal, period differentiation is also required.
[0072] A bus sampling voltage is obtained in each voltage sampling period; an inductor sampling current is obtained in each current sampling period; it can be understood that since the first sampling frequency is less than the second sampling frequency, the voltage sampling period is longer than the current sampling period.
[0073] The target bus voltage is the bus voltage of the desired output, which can be directly obtained by the program.
[0074] In this embodiment, a voltage loop and a current loop are set, see Figure 3 The voltage loop determines the target inductor current according to the target bus voltage and the bus sampling voltage, and the current loop determines the duty cycle of the switch drive signal according to the target inductor current and the inductor sampling current.
[0075] For the voltage loop, in each voltage sampling cycle, the target inductor current is determined based on the target bus voltage and the bus sampling voltage; the target inductor current is the expected inductor current in the next voltage sampling cycle; it can be understood that there is a mutual influence relationship between the inductor current and the bus voltage, therefore, accurate regulation of the bus voltage can be achieved based on the regulation of the inductor current.
[0076] It can be understood that in each voltage sampling cycle, a bus sampling voltage is detected, and the target bus voltage is fixed. Therefore, one voltage sampling cycle will only generate one target inductor current; and there will be multiple current sampling cycles within a voltage sampling cycle. Therefore, the current sampling cycle within the voltage sampling cycle will use the target inductor current obtained by the voltage sampling cycle.
[0077] For the current loop, after the target inductor current is determined, the current deviation between the target inductor current and the inductor sampling current is calculated in each current sampling cycle; the current deviation indicates the difference between the actual value and the expected value of the inductor current. Therefore, the duty cycle of the switch drive signal is determined according to the current deviation, so that the obtained switch drive signal can eliminate this difference and achieve the closeness between the actual value and the expected value.
[0078] After the duty cycle is determined, a switch driving signal may be generated based on the duty cycle.
[0079] It can be understood that in a single voltage sampling cycle, each current sampling cycle will generate a switch drive signal; that is, a single voltage sampling cycle will generate multiple switch drive signals, and the switch drive signal is updated multiple times, which increases the switching frequency and can effectively reduce the drive loss.
[0080] Furthermore, the step 21 comprises the steps of:
[0081] Step 211, calculating the voltage deviation between the target bus voltage and the bus sampling voltage;
[0082] Step 212, inputting the voltage deviation into a voltage loop controller to obtain a voltage regulation value;
[0083] Step 213, obtaining an input voltage of the voltage conversion circuit, and taking the product of the input voltage and the voltage adjustment value as the target inductor current.
[0084] The voltage deviation indicates the difference between the actual value of the bus voltage and the expected value.
[0085] The voltage loop controller is used to generate a control quantity, that is, a voltage regulation value, according to a voltage deviation; the specific type of the voltage loop controller can be set based on actual needs, such as a proportional integral PI regulator.
[0086] It can be understood that the voltage regulation value indicates the degree of regulation of the bus voltage, and the bus voltage is obtained by converting the input voltage through the closing and opening of the switch. Therefore, multiplying the input voltage by the voltage regulation value can obtain the target inductor current.
[0087] Furthermore, the step S23 comprises the steps of:
[0088] Step S231, inputting the current deviation into a current loop controller to obtain a current adjustment value;
[0089] Step S232, determining a target duty cycle corresponding to the current adjustment value;
[0090] Step S233: Using the target duty cycle as the duty cycle of the switch drive signal in the next current sampling period.
[0091] The current loop controller is used to generate a control quantity, that is, a current adjustment value, according to the current deviation; the specific type of the current loop controller can be set based on actual needs, such as a proportional integral PI regulator.
[0092] The current regulation value indicates the degree of regulation of the inductor current, and the closing and opening of the switch affects the size of the inductor current. Therefore, after the current regulation value is determined, the corresponding target duty cycle can be determined based on the current regulation value; it should be noted that different current adjustments to the corresponding target duty cycle can be determined in advance based on experiments or historical data. After the current regulation value is determined, the corresponding target duty cycle can be determined by matching.
[0093] The target duty cycle indicates the duty cycle required to achieve the current regulation value. Therefore, using the target duty cycle as the duty cycle of the switch drive signal in the next current sampling period can achieve accurate regulation of the inductor current, thereby further achieving accurate regulation of the bus voltage.
[0094] Further, the voltage conversion circuit includes a plurality of conversion branches, and the conversion branches include slave branches and a main branch; the step S233 includes the steps of:
[0095] Step S2331, for each of the slave branches, obtaining an inductor current difference between the slave branch and the master branch, wherein the inductor current difference is a difference between the inductor sampling currents corresponding to the master branch and the slave branch;
[0096] Step S2332, matching a duty cycle compensation value corresponding to the inductor current difference;
[0097] Step S2333: superimpose the target duty cycle and the duty cycle compensation value to obtain the duty cycle of the switch drive signal in the next current sampling period.
[0098] It can be understood that when the voltage conversion circuit includes multiple conversion branches, due to the differences in the parasitic parameters of each phase conversion branch during actual implementation, phase current imbalance will occur; in order to solve this problem, in this embodiment, one conversion branch is used as the main branch of the system, and the rest are slave branches; the selection of the specific main branch can be set based on actual needs.
[0099] See also Figure 4 , taking the voltage conversion circuit including three conversion branches as an example for explanation, it can be understood that the conversion branch is a BOOST circuit, that is, the voltage change circuit includes three BOOST circuits in parallel.
[0100] The main branch determines the duty cycle based on the actual sampled bus voltage and inductor current. That is, after determining the target duty cycle based on the current regulation value, the target duty cycle is used as the final duty cycle to generate a switch drive signal. In order to ensure the consistency of current between the main branch and the slave branch, the duty cycle of the slave branch needs to be determined based on the main branch.
[0101] The inductor current difference indicates the difference in actual inductor current between the main branch and the slave branch. Therefore, by determining the duty cycle compensation value through the inductor current difference, the difference between the main branch and the slave branch can be eliminated or reduced through the duty cycle compensation value. In practical applications, the duty cycle compensation values corresponding to different inductor current differences can be determined in advance based on experiments or historical data. After the inductor current difference is determined, the corresponding duty cycle compensation value can be matched.
[0102] After the duty cycle compensation value is determined, the target duty cycle can be compensated by the duty cycle compensation value to obtain the duty cycle of the switch drive signal that is finally generated.
[0103] See also Figure 5 ,based on Figure 5 The overall implementation process of this embodiment is described as follows:
[0104] 1. The self-test instruction triggers the driver circuit of the BOOST circuit to enable;
[0105] 2. Set the main branch and the slave branch;
[0106] 3. Sample the bus voltage and the inductor current of each conversion branch according to the A / D triggering time;
[0107] 4. Calculate the target duty cycle of each conversion branch based on the voltage loop and the current loop;
[0108] 5. Calculate the inductor current difference between each slave branch and the main branch;
[0109] 6. Determine the duty cycle compensation value corresponding to the inductor current difference;
[0110] 7. Obtaining the duty cycle of the switch drive signal in the next current sampling period according to the target duty cycle and the duty cycle compensation value;
[0111] 8. Generate switch drive signal and output;
[0112] 9. The switch in the BOOST circuit operates based on the switch drive signal;
[0113] 10. Calculate the next A / D trigger time based on the duty cycle.
[0114] By balancing the current of the master and slave branches, the current stress of the components in the circuit can be reduced, the current stress of each phase branch can be ensured to be the same, and the inductor magnetic saturation phenomenon caused by excessive current in a branch can be effectively prevented.
[0115] Furthermore, the voltage conversion circuit includes a plurality of conversion branches; the step S233 includes the steps of:
[0116] Step S2334, obtaining the bus current, and determining, for each of the conversion branches, a current offset value between the corresponding inductor sampling current and the bus current;
[0117] Step S2335, matching a duty cycle compensation value corresponding to the current offset value;
[0118] Step S2336: superimpose the target duty cycle and the duty cycle compensation value to obtain the duty cycle of the switch drive signal in the next current sampling period.
[0119] In this embodiment, when the voltage conversion circuit includes multiple conversion branches, the main branch and the slave branch are not divided; it can be understood that the bus current can be obtained through acquisition. When an inter-phase current imbalance occurs, the inductor sampling currents corresponding to different conversion branches are different. Therefore, the current offset value is obtained by comparing the inductor sampling current and the bus current respectively, so that the current offset value can indicate the difference between the inductor current of the corresponding conversion branch and the bus current; therefore, the duty cycle compensation value is determined by the current offset value, and the difference between different conversion branches can be eliminated or reduced by the duty cycle compensation value; in actual applications, the duty cycle compensation values corresponding to different current offset values can be determined in advance based on experimental or historical data. After the current offset value is determined, the corresponding duty cycle compensation value can be matched.
[0120] After the duty cycle compensation value is determined, the target duty cycle can be compensated by the duty cycle compensation value to obtain the duty cycle of the switch drive signal that is finally generated.
[0121] See also Figure 6 ,based on Figure 6 The overall implementation process of this embodiment is described as follows:
[0122] 1. The self-test instruction triggers the driver circuit of the BOOST circuit to enable;
[0123] 2. Sample the bus voltage and the inductor current of each conversion branch according to the A / D triggering time;
[0124] 3. Calculate the target duty cycle of each conversion branch based on the voltage loop and the current loop;
[0125] 4. Calculate the current offset value between the inductor sampling current and the bus current;
[0126] 6. Determine the duty cycle compensation value corresponding to the current offset value;
[0127] 7. Obtaining the duty cycle of the switch drive signal in the next current sampling period according to the target duty cycle and the duty cycle compensation value;
[0128] 8. Generate switch drive signal and output;
[0129] 9. The switch in the BOOST circuit operates based on the switch drive signal;
[0130] 10. Calculate the next A / D trigger time based on the duty cycle.
[0131] By balancing the currents of multiple branches, the current stress of components in the circuit can be reduced, the current stress of each phase branch can be ensured to be the same, and the inductor magnetic saturation phenomenon caused by excessive current in a branch can be effectively prevented.
[0132] Further, the voltage conversion circuit includes a plurality of conversion branches, and the conversion branches include slave branches and a main branch; the step S22 includes the steps of:
[0133] Step S221, for each of the transformation branches, determining whether the transformation branch is a master branch or a slave branch;
[0134] Step S222, if the conversion branch is a slave branch, obtaining a main sampling current corresponding to the main branch;
[0135] Step S223 , taking the main sampling current as the target inductor current, and calculating a current deviation between the target inductor current and the inductor sampling current.
[0136] In this embodiment, current balancing is performed on the main branch and the slave branch in another manner; the inductor current of the main branch is used as a reference for controlling the slave branch.
[0137] The main sampling current is the inductor sampling current collected by the master branch. In this embodiment, the main sampling current is used as the target inductor current corresponding to each slave branch, so that each slave branch can always follow the inductor current of the main branch for adjustment, thereby achieving the consistency of the rated master and slave currents.
[0138] By balancing the current of the master and slave branches, the current stress of the components in the circuit can be reduced, the current stress of each phase branch can be ensured to be the same, and the inductor magnetic saturation phenomenon caused by excessive current in a branch can be effectively prevented.
[0139] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0140] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0141] The present application also provides a voltage conversion circuit control device for implementing the above voltage conversion circuit control method, the voltage conversion circuit control device comprising:
[0142] A first acquisition module, configured to acquire a bus sampling voltage of a voltage conversion circuit at a first sampling frequency, and to acquire an inductor sampling current of the voltage conversion circuit at a second sampling frequency, wherein the first sampling frequency is less than the second sampling frequency;
[0143] A first determination module, configured to determine a switch drive signal according to the bus sampling voltage and the inductor sampling current;
[0144] The first driving module is used to drive the voltage conversion circuit based on the switch driving signal.
[0145] The voltage conversion circuit control device increases the current sampling frequency by reducing the voltage sampling frequency, so that the voltage conversion circuit's need for inductor current is reduced, so that a smaller inductor can be set in the voltage conversion circuit, thereby reducing the volume of the voltage conversion circuit.
[0146] It should be noted that the first acquisition module in this embodiment can be used to execute step S10 in the embodiment of the present application, the first determination module in this embodiment can be used to execute step S20 in the embodiment of the present application, and the first driving module in this embodiment can be used to execute step S30 in the embodiment of the present application.
[0147] Furthermore, the first determining module includes:
[0148] A first acquisition submodule, configured to acquire a target bus voltage for each voltage sampling period, and determine a target inductor current according to the target bus voltage and the bus sampling voltage, wherein the voltage sampling period corresponds to the first sampling frequency;
[0149] A first calculation submodule, configured to calculate a current deviation between the target inductor current and the inductor sampling current for each current sampling period, wherein the current sampling period corresponds to the second sampling frequency;
[0150] A first determining submodule, configured to determine a duty cycle of the switch driving signal in a next current sampling period according to the current deviation;
[0151] The first generating submodule is used to generate the switch driving signal according to the duty cycle.
[0152] Furthermore, the first acquisition submodule includes:
[0153] A first calculation unit, used for calculating a voltage deviation between the target bus voltage and the bus sampling voltage;
[0154] A first input unit, used for inputting the voltage deviation into a voltage loop controller to obtain a voltage regulation value;
[0155] The first acquisition unit is used to acquire the input voltage of the voltage conversion circuit, and use the product of the input voltage and the voltage adjustment value as the target inductor current.
[0156] Furthermore, the first determining submodule includes:
[0157] A second input unit, used for inputting the current deviation into the current loop controller to obtain a current adjustment value;
[0158] A first determining unit, configured to determine a target duty cycle corresponding to the current adjustment value;
[0159] The first execution unit is used to use the target duty cycle as the duty cycle of the switch drive signal in the next current sampling period.
[0160] Furthermore, the voltage conversion circuit includes a plurality of conversion branches, wherein the conversion branches include slave branches and a master branch; and the first execution unit includes:
[0161] A first acquisition subunit is used to acquire, for each of the slave branches, an inductor current difference between the slave branch and the master branch, wherein the inductor current difference is a difference between the inductor sampling currents corresponding to the master branch and the slave branch;
[0162] A first matching subunit, configured to match a duty cycle compensation value corresponding to the inductor current difference;
[0163] The first superposition subunit is used to superpose the target duty cycle with the duty cycle compensation value to obtain the duty cycle of the switch drive signal in the next current sampling period.
[0164] Furthermore, the voltage conversion circuit includes a plurality of conversion branches; the first execution unit includes:
[0165] A second acquisition subunit is used to acquire the bus current, and for each of the conversion branches, determine a current offset value between the corresponding inductor sampling current and the bus current;
[0166] A second matching subunit, used to match a duty cycle compensation value corresponding to the current offset value;
[0167] The second superposition subunit is used to superpose the target duty cycle with the duty cycle compensation value to obtain the duty cycle of the switch drive signal in the next current sampling period.
[0168] Furthermore, the voltage conversion circuit includes a plurality of conversion branches, wherein the conversion branches include slave branches and a master branch; and the first calculation submodule includes:
[0169] A second determining unit, configured to determine, for each of the transformation branches, whether the transformation branch is a master branch or a slave branch;
[0170] A second acquisition unit, configured to acquire a main sampling current corresponding to the main branch if the conversion branch is a slave branch;
[0171] The second calculation unit is used to use the main sampling current as the target inductor current and calculate the current deviation between the target inductor current and the inductor sampling current.
[0172] Reference Figure 7 In terms of hardware structure, the electronic device may include components such as a communication module 10, a memory 20, and a processor 30. In the electronic device, the processor 30 is connected to the memory 20 and the communication module 10 respectively, and a computer program is stored in the memory 20. The computer program is executed by the processor 30 at the same time, and the steps of the above method embodiment are implemented when the computer program is executed.
[0173] The communication module 10 can be connected to an external communication device through a network. The communication module 10 can receive requests from an external communication device, and can also send requests, instructions and information to the external communication device, which can be other electronic devices, servers or Internet of Things devices, such as televisions, etc.
[0174] The memory 20 can be used to store software programs and various data. The memory 20 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as determining a switch drive signal by sampling the bus voltage and sampling the inductor current), etc.; the data storage area can include a database, and the data storage area can store data or information created according to the use of the system, etc. In addition, the memory 20 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0175] The processor 30 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 20, and calling data stored in the memory 20, so as to monitor the electronic device as a whole. The processor 30 may include one or more processing units; optionally, the processor 30 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 30.
[0176] although Figure 7 Although not shown, the electronic device may further include a circuit control module, which is used to connect to a power source to ensure the normal operation of other components. Figure 7 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0177] The present invention also provides a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be Figure 7The memory 20 in the electronic device may also be at least one of a ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, and an optical disk. The computer-readable storage medium includes a number of instructions for enabling a terminal device with a processor (which may be a television, a car, a mobile phone, a computer, a server, a terminal, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0178] In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0179] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0180] Although the embodiments of the present invention have been shown and described above, the scope of protection of the present invention is not limited thereto. It is understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art can change, modify and replace the above embodiments within the scope of the present invention, and these changes, modifications and replacements should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A voltage conversion circuit control method, characterized in that: The voltage conversion circuit control method comprises: The bus sampling voltage of the voltage conversion circuit is collected at a first sampling frequency, and the inductor sampling current of the voltage conversion circuit is collected at a second sampling frequency, wherein the first sampling frequency is less than the second sampling frequency; Determine a switch drive signal by using the bus sampling voltage and the inductor sampling current; The voltage conversion circuit is driven based on the switch drive signal.
2. The voltage conversion circuit control method according to claim 1, characterized in that: The determining of the switch driving signal by the bus sampling voltage and the inductor sampling current comprises: For each voltage sampling period, a target bus voltage is obtained, and a target inductor current is determined according to the target bus voltage and the bus sampling voltage, wherein the voltage sampling period corresponds to the first sampling frequency; For each current sampling period, calculating a current deviation between the target inductor current and the inductor sampling current, wherein the current sampling period corresponds to the second sampling frequency; Determining a duty cycle of the switch drive signal in a next current sampling period according to the current deviation; The switch driving signal is generated according to the duty cycle.
3. The voltage conversion circuit control method according to claim 2, characterized in that: The step of determining the target inductor current according to the target bus voltage and the bus sampling voltage comprises: Calculating a voltage deviation between the target bus voltage and the bus sampling voltage; Inputting the voltage deviation into a voltage loop controller to obtain a voltage regulation value; An input voltage of the voltage conversion circuit is obtained, and a product of the input voltage and the voltage adjustment value is used as the target inductor current.
4. The voltage conversion circuit control method according to claim 2, characterized in that: Determining the duty cycle of the switch drive signal in the next current sampling period according to the current deviation includes: Inputting the current deviation into a current loop controller to obtain a current regulation value; determining a target duty cycle corresponding to the current regulation value; The target duty cycle is used as the duty cycle of the switch drive signal in the next current sampling period.
5. The voltage conversion circuit control method according to claim 4, characterized in that: The voltage conversion circuit includes a plurality of conversion branches, wherein the conversion branches include slave branches and a main branch; and using the target duty cycle as the duty cycle of the switch drive signal in the next current sampling period includes: For each of the slave branches, acquiring an inductor current difference between the slave branch and the master branch, wherein the inductor current difference is a difference between the inductor sampling currents corresponding to the master branch and the slave branch; matching a duty cycle compensation value corresponding to the inductor current difference; The target duty cycle is superimposed on the duty cycle compensation value to obtain the duty cycle of the switch drive signal in the next current sampling period.
6. The voltage conversion circuit control method according to claim 4, characterized in that: The voltage conversion circuit includes a plurality of conversion branches; the step of using the target duty cycle as the duty cycle of the switch drive signal in the next current sampling period includes: Obtaining the bus current, and determining, for each of the conversion branches, a current offset value between the corresponding inductor sampling current and the bus current; matching a duty cycle compensation value corresponding to the current offset value; The target duty cycle is superimposed on the duty cycle compensation value to obtain the duty cycle of the switch drive signal in the next current sampling period.
7. The voltage conversion circuit control method according to claim 2, characterized in that: The voltage conversion circuit includes a plurality of conversion branches, wherein the conversion branches include slave branches and a main branch; and the current deviation between the target inductor current and the inductor sampling current is calculated including: For each of the transformation branches, determining whether the transformation branch is a master branch or a slave branch; If the conversion branch is a slave branch, obtaining a main sampling current corresponding to the main branch; The main sampling current is used as the target inductor current, and a current deviation between the target inductor current and the inductor sampling current is calculated.
8. A voltage conversion circuit control device, characterized in that: The voltage conversion circuit control method comprises: A first acquisition module, used to acquire a bus sampling voltage of a voltage conversion circuit at a first sampling frequency, and to acquire an inductor sampling current of the voltage conversion circuit at a second sampling frequency, wherein the first sampling frequency is less than the second sampling frequency; A first determination module, configured to determine a switch drive signal according to the bus sampling voltage and the inductor sampling current; The first driving module is used to drive the voltage conversion circuit based on the switch driving signal.
9. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the voltage conversion circuit control method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the voltage conversion circuit control method according to any one of claims 1 to 7 are implemented.
