Control circuit, voltage regulation method and device, electronic equipment and storage medium
By introducing a voltage compensation module and charge and discharge components into the DC-to-DC voltage converter, the compensation voltage is automatically adjusted, which solves the problem that the average output voltage is difficult to reach the reference voltage, and the stable working state of the voltage converter is achieved.
Patent Information
- Application Number
- CN202510034257.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, when the DC-to-DC voltage converter in a fixed-on-time mode architecture is turned on, the average value of the output voltage is difficult to reach the reference voltage, resulting in unstable voltage of the voltage converter, and the compensation voltage set by the artificially set in the discontinuous mode is inaccurate, resulting in large errors between the average value of the output voltage and the voltage threshold.
A control circuit and voltage regulation method are proposed. The input compensation voltage is adjusted through the voltage compensation module. The charge and discharge components and voltage regulation components are used to detect that the charging starts when the upper field effect tube is turned on, and the discharge starts when the output voltage is equal to the preset reference voltage until the discharge is completed. Then, according to the order of the discharge end time and the current zero crossing time, the compensation voltage is adjusted to achieve mean adjustment of the output voltage.
By automatically adjusting the compensation voltage, ensure that the average value of the output voltage is equal to the preset reference voltage, keeping the voltage converter in a stable working state, avoiding large errors between the average value of the output voltage and the voltage threshold.
Smart Images

Figure CN119945138A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a control circuit, a voltage regulation method, a device, an electronic device and a storage medium. Background Art
[0002] In the prior art, for a DC-to-DC voltage converter under a fixed on-time mode architecture, when the upper tube is turned on, the average output voltage often fails to reach the reference voltage. At this time, a compensation voltage is usually introduced artificially to adjust the output voltage average. However, in the discontinuous mode, the artificially set compensation voltage is not necessarily accurate, so that even after the compensation voltage is introduced, the average output voltage will still have a large error with the voltage threshold, causing the voltage converter to be in an unstable working state. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a control circuit, a voltage regulation method, a device, an electronic device and a storage medium, which can regulate the input compensation voltage so that the voltage converter maintains a stable working state.
[0004] The control circuit of the first embodiment of the present application includes:
[0005] A voltage converter, wherein the voltage converter is provided with a first comparator and an upper field effect transistor, the positive input terminal of the first comparator is connected to an error amplification voltage, and the reverse input terminal of the first comparator is connected to an output feedback voltage of the voltage converter; the output terminal signal of the first comparator is used to control the opening of the upper field effect transistor; the error amplification voltage represents the error between the output voltage of the voltage converter and a preset reference voltage;
[0006] A voltage compensation module, the voltage compensation module comprising a switch control component, a voltage regulation component and a charge-discharge component, the switch control component is connected to the charge-discharge component, and the voltage regulation component is used to output a compensation voltage to the positive input terminal of the first comparator;
[0007] The switch control component is used to control the charge-discharge component to start charging when it is detected that the upper field effect transistor is turned on; and to control the charge-discharge component to start discharging when it is detected that the output voltage of the voltage converter is equal to the preset reference voltage, until the charge-discharge component completes discharging;
[0008] The voltage regulating component is used to reduce the compensation voltage when it is detected that the discharge end time of the charging and discharging component is earlier than the current zero crossing time of the voltage converter; and increase the compensation voltage when it is detected that the current zero crossing time is earlier than the discharge end time.
[0009] According to the control circuit of the embodiment of the first aspect of the present application, there are at least the following beneficial effects: by setting a charge and discharge component, it is convenient for the second comparator to detect the end of discharge of the charge and discharge component, and by providing a voltage adjustment component, a compensation voltage is output to the positive input terminal of the first comparator, so that the compensation voltage is added to the error amplification voltage, and then the error amplification voltage is adjusted; when the discharge end time is earlier than the current zero crossing time, it is regarded as the output voltage is too large, and when the output voltage is too large, it is necessary to reduce the compensation voltage so that the error amplification voltage is reduced synchronously, thereby prompting the output feedback voltage to be equal to the error amplification voltage earlier, so that the opening time of the upper field effect tube is shortened, and then the output voltage is reduced; when the current zero crossing time is earlier than the discharge end time, it is regarded as the output voltage is too small, and when the output voltage is too small, it is necessary to increase the compensation voltage so that the error amplification voltage is increased synchronously, thereby prompting the output feedback voltage to be equal to the error amplification voltage later, so that the opening time of the upper field effect tube is extended, and then the output voltage is increased, so as to achieve the adjustment of the output voltage, so that the error between the final preset reference voltage and the mean value of the output voltage is within an acceptable range, so that the voltage converter maintains a stable working state.
[0010] According to some embodiments of the present application, the charging and discharging component includes a first switch, a second switch, a first capacitor, a first current source, and a second current source, one end of the first capacitor is connected to the first current source through the first switch, and the other end of the first capacitor is grounded, the voltage regulating component is connected between the first capacitor and the first switch, one end of the second current source is connected between the first capacitor and the first switch through the second switch, the other end of the second current source is grounded, and the switch control component is connected to the first switch and the second switch.
[0011] According to some embodiments of the present application, the voltage converter also includes a conduction time generating component and a trigger, the output end of the conduction time generating component is connected to the first input end of the trigger, the input end of the conduction time generating component is connected to the input voltage and output voltage of the voltage converter, the first comparator is connected to the second input end of the trigger, the first output end of the trigger is connected to the gate of the upper field effect transistor, and the conduction time generating component is used to generate the duration of the upper field effect transistor being turned on.
[0012] According to some embodiments of the present application, the voltage compensation module also includes a second comparator, the voltage regulation component is connected between the first capacitor and the first switch through the positive input terminal of the second comparator, the reverse input terminal of the second comparator is grounded, the output terminal of the second comparator is connected to the voltage regulation component, and the second comparator is used to determine whether the first capacitor has completed discharging.
[0013] According to some embodiments of the present application, the voltage converter also includes a lower field effect tube and a third comparator, the output of the third comparator is connected to the gate of the lower field effect tube, the positive input of the third comparator is connected to the induced voltage of the voltage converter, the reverse input of the third comparator is grounded, and the third comparator is used to control the lower field effect tube to be turned off.
[0014] According to a voltage regulation method according to a second aspect of an embodiment of the present application, the method includes:
[0015] When it is detected that the upper field effect transistor is turned on, the charging and discharging component is controlled to start charging; and when it is detected that the output voltage of the voltage converter is equal to the preset reference voltage, the charging and discharging component is controlled to start discharging until the charging and discharging component completes discharging;
[0016] When it is detected that the discharge end time of the charging and discharging component is earlier than the current zero crossing time of the voltage converter, the compensation voltage is reduced; when it is detected that the current zero crossing time is earlier than the discharge end time, the compensation voltage is increased.
[0017] According to some embodiments of the present application, controlling the charge-discharge component to start charging; and when detecting that the output voltage of the voltage converter is equal to the preset reference voltage, controlling the charge-discharge component to start discharging includes:
[0018] The switch control component controls the first switch to be closed and the second switch to be opened, so that the charging and discharging component is in a charging state;
[0019] The output voltage is compared with the preset reference voltage by the charge and discharge component. When the output voltage is equal to the preset reference voltage, the switch control component controls the first switch to be opened and the second switch to be closed, so that the charge and discharge component is in a discharge state.
[0020] According to a voltage regulating device of an embodiment of a third aspect of the present application, the voltage regulating device includes:
[0021] The control circuit of the embodiment of the first aspect of the present application.
[0022] According to an electronic device of an embodiment of the fourth aspect of the present application, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the voltage regulation method of the voltage converter described in the embodiment of the first aspect of the present application when executing the computer program.
[0023] According to the computer-readable storage medium of the fifth aspect embodiment of the present application, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the voltage regulation method of the voltage converter described in the first aspect embodiment of the present application.
[0024] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0026] Figure 1 A schematic diagram of a voltage compensation module according to an embodiment of the present application;
[0027] Figure 2 A partial schematic diagram of adding a compensation voltage to a voltage converter according to an embodiment of the present application;
[0028] Figure 3 A schematic diagram of a voltage converter according to an embodiment of the present application;
[0029] Figure 4 A flowchart of the voltage regulation method according to an embodiment of the present application;
[0030] Figure 5 A schematic diagram of the relationship between the output voltage and the discharge end time and the current zero-crossing time in the embodiment of the present application;
[0031] Figure 6 is a specific flow chart of step S101;
[0032] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0033] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0034] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0035] In the description of this application, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0036] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.
[0037] At present, for a DC-to-DC voltage converter under a fixed on-time mode architecture, when the upper tube is turned on, the average output voltage often fails to reach the voltage threshold, causing the voltage converter to be unstable or even damaged. In the prior art, to solve this problem, people usually introduce a compensation voltage to adjust the output voltage average. However, in the discontinuous mode, the artificially set compensation voltage is not necessarily accurate, so that even after the compensation voltage is introduced, the average output voltage will still have a large error with the voltage threshold, so that the problem is not solved, causing the working state of the voltage converter to be unstable.
[0038] Based on this, the present application proposes a voltage regulation method, device, electronic device and storage medium for a voltage converter, aiming to adjust the compensation voltage through a voltage compensation module, and then adjust the output voltage, so that the mean value of the output voltage is equal to the output feedback voltage, so that the working state of the voltage converter remains stable.
[0039] The following references Figure 1 , Figure 2 and Figure 3 The control circuit of the embodiment of the present application is described.
[0040] It can be understood that: the control circuit of the embodiment of the present application includes: a voltage converter and a voltage compensation module, the voltage converter is provided with a first comparator and an upper field effect transistor, the positive input terminal of the first comparator is connected to the error amplification voltage, and the reverse input terminal of the first comparator is connected to the output feedback voltage of the voltage converter; the output terminal signal of the first comparator is used to control the opening of the upper field effect transistor; the error amplification voltage represents the error between the output voltage of the voltage converter and the preset reference voltage; the voltage compensation module includes a switch control component, a voltage regulation component and a charge and discharge component, the switch control component is connected to the charge and discharge component, and the voltage regulation component is used to output the compensation voltage to the positive input terminal of the first comparator; the switch control component is used to control the charge and discharge component to start charging when the upper field effect transistor is detected to be turned on; and when it is detected that the output voltage of the voltage converter is equal to the preset reference voltage, the charge and discharge component is controlled to start discharging until the charge and discharge component is discharged; the voltage regulation component is used to reduce the compensation voltage when the discharge end time when the discharge of the charge and discharge component is detected to be completed is earlier than the current zero crossing time of the voltage converter; and increase the compensation voltage when the current zero crossing time is detected to be earlier than the discharge end time.
[0041] The beneficial effects of the control circuit of the embodiment of the present application can be manifested as follows: by setting a charge and discharge component, it is convenient for the second comparator to detect the end of discharge of the charge and discharge component, and by providing a voltage adjustment component, a compensation voltage is output to the positive input terminal of the first comparator, so that the compensation voltage is added to the error amplification voltage, and then the error amplification voltage is adjusted; when the discharge end time is earlier than the current zero crossing time, it is regarded as the output voltage is too large, and when the output voltage is too large, it is necessary to reduce the compensation voltage so that the error amplification voltage is reduced synchronously, thereby prompting the output feedback voltage to be equal to the error amplification voltage earlier, so that the opening time of the upper field effect tube is shortened, and then the output voltage is reduced; when the current zero crossing time is earlier than the discharge end time, it is regarded as the output voltage is too small, and when the output voltage is too small, it is necessary to increase the compensation voltage so that the error amplification voltage is increased synchronously, thereby prompting the output feedback voltage to be equal to the error amplification voltage later, so that the opening time of the upper field effect tube is extended, and then the output voltage is increased, so as to achieve the adjustment of the output voltage, so that the error between the final preset reference voltage and the mean value of the output voltage is within an acceptable range, so that the voltage converter maintains a stable working state.
[0042] For example, in some embodiments, reference Figure 3In this embodiment, the voltage converter is a DC-to-DC voltage converter in a fixed on-time mode, and the voltage converter further includes a first voltage source, a third current source, a second capacitor, a third capacitor, a first resistor, a second resistor and an inductor. In the embodiment, L0 is an inductor, DC is a first voltage source, Ioad is a third current source, Cin is a second capacitor, Cout is a third capacitor, MOS_HS is an upper field effect transistor, RH is a first resistor, RL is a second resistor, VIN is an input voltage, VOUT is an output voltage, FB is an output feedback voltage, a positive terminal of the first voltage source is connected to a positive terminal of the second capacitor and a drain of the upper field effect transistor, a negative terminal of the third capacitor is grounded, and the The negative terminals of the two capacitors are grounded, the source of the upper field effect tube is connected to the drain of the lower field effect tube and one end of the inductor, the other end of the inductor is connected to one end of the first resistor and the second resistor in series, the positive terminal of the third capacitor, and one end of the third current source, the other end of the first resistor and the second resistor in series is grounded, the drain of the lower field effect tube is grounded, the negative terminal of the third capacitor is grounded, and the other end of the third current source is grounded. The arrangement of the second capacitor and the third capacitor is more convenient for collecting the input voltage and the output voltage, wherein the output feedback voltage of the voltage converter is drawn out between the first resistor and the second resistor in series, and the output feedback voltage required according to the actual output is obtained by adjusting the values of the first resistor and the second resistor.
[0043] The voltage converter also includes a difference amplifier, a reference Figure 2 In this embodiment, U0 is a difference amplifier, U2 is a first comparator, REF is a preset reference voltage, REF_EA is an error amplification voltage, the positive input terminal of the difference amplifier is connected to the preset reference voltage, and the reverse input terminal is connected to the output feedback voltage of the voltage converter, that is, connected between the first resistor and the second resistor, so as to amplify the difference between the preset reference voltage and the output feedback voltage as required, which is convenient for subsequent operations. The output terminal of the difference amplifier outputs the error amplification voltage and is connected to the positive input terminal of the first comparator, and the reverse input terminal of the first comparator is connected to the output feedback voltage, that is, connected between the first resistor and the second resistor, so as to control the opening of the upper field effect tube by comparing the error amplification voltage and the output feedback voltage.
[0044] The switch control component includes a fourth comparator and a switch controller, wherein the reference Figure 1In the embodiment of the present application, U5 is a fourth comparator, U7 is a switch controller, the positive input terminal of the fourth comparator is connected to the output voltage, the reverse input terminal is connected to the output feedback voltage, the output terminal is connected to the input terminal of the switch controller, and the output terminal of the switch controller is connected to the charge and discharge component, so as to realize the switch controller to control the state of the charge and discharge component. For example, when the error amplification voltage is less than the output feedback voltage, the upper field effect transistor is turned on. At this time, when the fourth comparator obtains that the output voltage is less than the preset reference voltage through comparison, the switch controller controls the charge and discharge component to enter the charging state, and when the fourth comparator obtains that the output voltage is equal to the preset reference voltage through comparison, the switch controller controls the charge and discharge component to enter the discharging state until the discharge is completed. The first input terminal of the voltage regulating component is connected to the discharge end time, and the second input terminal is connected to the current zero crossing time, so that the voltage regulating component compares the discharge end time of the discharge completion with the current zero crossing time of the voltage converter. When the discharge When the end moment occurs but the current zero-crossing moment does not occur, it is considered that the output voltage is too large. At this time, the compensation voltage needs to be reduced by the voltage regulation component; when the current zero-crossing moment occurs but the discharge end moment does not occur, it is considered that the output voltage is too small. At this time, the compensation voltage needs to be increased by the voltage regulation component, wherein the initial value of the compensation voltage is zero, and the compensation voltage is connected to the positive input terminal of the first comparator, that is, the compensation voltage is added to the error amplification voltage. When the compensation voltage is reduced, the error amplification voltage will also be reduced synchronously, so that the output feedback voltage can be equal to the preset reference voltage earlier, thereby shortening the opening time of the upper field effect tube, so as to reduce the output voltage. Similarly, when the compensation voltage is increased, the error amplification voltage will also be increased synchronously, so that the output feedback voltage can be equal to the preset reference voltage later, thereby extending the opening time of the upper field effect tube, so as to increase the output voltage, thereby realizing the regulation of the output voltage and making the average value of the output voltage equal to the preset reference voltage.
[0045] It can be understood that: the charging and discharging component includes a first switch, a second switch, a first capacitor, a first current source and a second current source, one end of the first capacitor is connected to the first current source through the first switch, the other end of the first capacitor is grounded, the voltage regulating component is connected between the first capacitor and the first switch, one end of the second current source is connected between the first capacitor and the first switch through the second switch, the other end of the second current source is grounded, and the switch control component is connected to the first switch and the second switch.
[0046] For example, in some embodiments, reference Figure 1 and Figure 3In this embodiment, U8 is a voltage regulating component, K1 is a first switch, K2 is a second switch, C1 is a first capacitor, I1 is a first current source, I2 is a second current source, a first output terminal of the switch controller is connected to the first switch, and a second output terminal of the switch controller is connected to the second switch. When the charge-discharge component needs to be switched to a charging state, the switch controller controls the first switch to be closed, while the second switch remains in an open state, thereby enabling the first current source to charge the first capacitor. When the charge-discharge component needs to be switched to a discharging state, the switch controller controls the second switch to be closed, while the first switch remains in an open state, thereby enabling the first capacitor to be discharged. The first input terminal of the voltage regulating component is connected between the first capacitor and the first switch to obtain the end time of discharge, and the second input terminal of the voltage regulating component is connected to the inductor current of the voltage converter to obtain the current zero-crossing time, so as to judge the sequence of the end time of discharge and the current zero-crossing time, thereby adjusting the compensation voltage.
[0047] It can be understood that: the voltage converter also includes a conduction time generating component and a trigger, the output end of the conduction time generating component is connected to the first input end of the trigger, the input end of the conduction time generating component is connected to the input voltage and output voltage of the voltage converter, the first comparator is connected to the second input end of the trigger, the first output end of the trigger is connected to the gate of the upper field effect transistor, and the conduction time generating component is used to generate the duration of the upper field effect transistor being turned on.
[0048] For example, in some embodiments, reference Figure 2 In this embodiment, the voltage converter also includes U8 as a trigger, which is an RS trigger, U1 as a conduction time generating component, a first input terminal of the conduction time generating component is connected to the input voltage, and a second input terminal of the conduction time generating component is connected to the output voltage, so as to generate the duration of the upper field effect tube being turned on according to the actual situation of the voltage converter, when the time of the upper field effect tube being turned on reaches the duration, the upper field effect tube is turned off, the output terminal of the conduction time generating component is connected to the first input terminal (R terminal) of the trigger, the output terminal of the first comparator is connected to the second input terminal (S terminal) of the trigger, the first output terminal (Q terminal) of the trigger is connected to the input terminal of the buffer, and the output terminal of the buffer is connected to the gate of the upper field effect tube, so that the first comparator controls the turning on of the upper field effect tube.
[0049] It can be understood that: the voltage compensation module also includes a second comparator, the voltage regulation component is connected between the first capacitor and the first switch through the positive input terminal of the second comparator, the reverse input terminal of the second comparator is grounded, the output terminal of the second comparator is connected to the voltage regulation component, and the second comparator is used to determine whether the first capacitor has completed discharging.
[0050] For example, in some embodiments, reference Figure 1In this embodiment, U6 is a second comparator, the output end of the second comparator is connected to the first input end of the voltage regulating component, the positive input end of the second comparator is connected between the first capacitor and the first switch to collect the voltage state of the charging and discharging component, and the reverse input end of the second comparator is grounded, so as to facilitate the detection of the discharge of the charging and discharging component to the ground, that is, the end of the discharge, and reflect it to the voltage regulating component.
[0051] It can be understood that: the voltage converter also includes a lower field effect tube and a third comparator, the output end of the third comparator is connected to the gate of the lower field effect tube, the positive input end of the third comparator is connected to the induced voltage of the voltage converter, the reverse input end of the third comparator is grounded, and the third comparator is used to control the lower field effect tube to turn off.
[0052] For example, in some embodiments, reference Figure 3 In this embodiment, MOS_LS is the lower field effect tube, U4 is the third comparator, the positive input terminal of the third comparator is connected between the inductor coil and the first resistor, and the reverse input terminal of the third comparator is connected to the reference ground point, so as to measure the induced voltage generated by the induction coil and indirectly detect the current zero-crossing moment when the induced current is zero. The output terminal of the third comparator is connected to the first input terminal of the AND gate after taking the negation value, and the second output terminal (XQ terminal) of the trigger is connected to the second input terminal of the AND gate. The output terminal of the AND gate is connected to the gate of the lower field effect tube, so as to realize that when the opening time of the upper field effect tube reaches the duration, the upper field effect tube is turned off and the lower field effect tube is turned on at the same time. When the third comparator indirectly detects that the inductor current of the inductor coil is zero, that is, the current zero-crossing moment, the lower field effect tube is turned off, thereby realizing the control of the trigger on the upper field effect tube and the lower field effect, so as to control the generation of the output voltage.
[0053] refer to Figure 4 , Figure 4 It is a step flow chart of the voltage regulation method of an embodiment of the present application. In the second aspect, an embodiment of the present application provides a voltage regulation method, which is applied to the control circuit in the embodiment of the first aspect. The method includes but is not limited to steps S101 to S102.
[0054] Step S101, when it is detected that the upper field effect tube is turned on, the charge and discharge component is controlled to start charging; and when it is detected that the output voltage of the voltage converter is equal to the preset reference voltage, the charge and discharge component is controlled to start discharging until the charge and discharge component is discharged.
[0055] Step S102, when the discharge end time of the charge and discharge assembly is detected to be earlier than the current zero crossing time of the voltage converter, the compensation voltage is reduced; when the current zero crossing time is detected to be earlier than the discharge end time, the compensation voltage is increased.
[0056] Steps S101 to S102 shown in the embodiment of the present application refer to Figure 5 , ON is the logic signal waveform of the upper field effect tube, IL is the waveform of the inductor current, VOUT is the waveform of the output voltage, NetCap is the voltage waveform of the first capacitor, the red line is the case where the current zero-crossing moment is earlier than the discharge end moment, t5 is the discharge end moment, t1 is the upper field effect tube opening moment, T2 is the current zero-crossing moment; t4 is the moment when the output voltage is equal to the preset reference voltage, wherein the first capacitor is charged in the time period from t1 to t4, and discharged in the time period from t4 to T2. In the VOUT waveform and the NetCap waveform, the blue line is the case where the discharge end moment is earlier than the current zero-crossing moment, and the black line is the case where the discharge end moment is equal to the current zero-crossing moment. The charging and discharging time required for the charging and discharging components is the same. When the output voltage is equal to the preset reference voltage, it switches to the discharge state, which is convenient for comparing the relationship between the mean value of the output voltage and the preset reference voltage. According to Figure 5 , it can be seen from the blue line that when the discharge end time occurs earlier than the current zero crossing time, the output voltage is higher than the preset reference voltage most of the time, so the average value of the output voltage is greater than the preset reference voltage. At this time, it is necessary to reduce the compensation voltage, and then reduce the output voltage, so that the average value of the output voltage is equal to the preset reference voltage. It can be seen from the red line that when the current zero crossing moment occurs but the discharge end moment has not yet occurred, that is, the discharge end moment is later than the current zero crossing moment, it can be seen that the output voltage is lower than the preset reference voltage most of the time, so the average value of the output voltage is less than the preset reference voltage. At this time, it is necessary to increase the compensation voltage, and then increase the output voltage, so that the output voltage The mean is equal to the preset reference voltage, and it can be seen from the black line that when the current zero-crossing moment and the discharge end moment occur at the same time, it can be seen from the black line corresponding to the output voltage waveform that the time when the output voltage is greater than and less than the preset reference voltage is equal, so the mean of the output voltage is equal to the preset reference voltage at this time. Therefore, by judging the sequence of the current zero-crossing moment and the discharge end moment, the relationship between the output voltage mean and the preset reference voltage can be compared to adjust the compensation voltage, and then the output voltage mean can be adjusted by adjusting the compensation voltage, so that the output voltage mean is equal to the preset reference voltage, so as to enable the voltage converter to maintain a stable working state.
[0057] It should be noted that after completing step 102, the process goes back to step S101 to implement a loop, thereby continuously adjusting the compensation voltage, thereby driving the adjustment of the output voltage, until the error between the mean value of the output voltage and the preset reference voltage is less than the preset error.
[0058] According to the voltage regulation method of the embodiment of the present application, at least the following beneficial effects are achieved: when the upper field effect tube is detected to be turned on, the charge and discharge component is synchronously controlled to start charging, and when the output voltage is detected to be equal to the preset reference voltage, the charge and discharge component is switched to the discharge state until the discharge component is discharged, so as to obtain the discharge end time of the charge and discharge component discharge completion, and when the discharge end time of the charge and discharge component discharge completion is detected, it appears earlier than the current zero crossing time of the voltage converter, the output compensation voltage is reduced to synchronously reduce the error amplification voltage, thereby causing the output feedback voltage to be equal to the error amplification voltage earlier, so that the opening time of the upper field effect tube is shortened, thereby driving the output voltage to decrease; and when the discharge completion time of the charge and discharge component is detected, it appears later than the current zero crossing time of the voltage converter, the output compensation voltage is increased to synchronously reduce and increase the error amplification voltage, thereby causing the output feedback voltage to be equal to the error amplification voltage later, so that the opening time of the upper field effect tube is extended, thereby driving the output voltage to increase. In this way, through the voltage regulation method of the present application, the automatic adjustment of the compensation voltage can be realized, and the preset reference voltage and the mean value of the output voltage are equal, thereby stabilizing the working state of the converter.
[0059] refer to Figure 6 , in step S101 of some embodiments, including but not limited to steps S201 to S202.
[0060] Step S201, controlling the first switch to close and the second switch to open by the switch control component, so that the charging and discharging component is in a charging state.
[0061] Step S202, the output voltage is compared with a preset reference voltage by the charge-discharge component. When the output voltage is equal to the preset reference voltage, the switch control component controls the first switch to be opened and the second switch to be closed, so that the charge-discharge component is in a discharge state.
[0062] In step S201 of some embodiments, when the charging and discharging assembly needs to be switched to a charging state, the switch controller controls the first switch to be closed and the second switch to remain in an open state.
[0063] In step S202 of some embodiments, when the charging and discharging assembly needs to be switched to a discharging state, the switch controller controls the second switch to be closed and the first switch to remain in an open state.
[0064] In steps S201 to S202 shown in the embodiment of the present application, the controller controls the switching of the charging and discharging states of the charging and discharging components to obtain the discharge end time when the charging and discharging components have completed discharging, so as to facilitate subsequent judgment and operation.
[0065] In a third aspect, the present application provides a voltage regulation device, comprising the control circuit of the embodiment of the first aspect of the present application.
[0066] The embodiment of the fourth aspect of the present application further provides an electronic device, the electronic device includes a memory 1102 and a processor 1101, the memory 1102 stores a computer program, and the processor 1101 implements the voltage regulation method of the above-mentioned second aspect embodiment when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0067] Reference Figure 7 , Figure 7 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. The electronic device includes:
[0068] The processor 1101 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0069] The memory 1102 can be implemented in the form of a read-only memory, a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1102 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1102, and the processor 1101 is called to execute the television frame laser method of the embodiment of this application;
[0070] Input / output interface 1103, used to implement information input and output;
[0071] The communication interface 1104 is used to realize the communication interaction between the device and other devices, and the communication can be realized by wired mode or wireless mode;
[0072] Bus 1105, which transmits information between the various components of the device;
[0073] The processor 1101 , the memory 1102 , the input / output interface 1103 and the communication interface 1104 are connected to each other in communication within the device via the bus 1105 .
[0074] The fifth aspect embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the voltage regulation method of the above-mentioned second aspect embodiment.
[0075] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0076] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0077] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0078] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0079] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0080] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0081] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0082] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0083] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0084] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0085] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0086] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A control circuit, characterized in that: The control circuit comprises: A voltage converter, wherein the voltage converter is provided with a first comparator and an upper field effect transistor, the positive input terminal of the first comparator is connected to an error amplification voltage, and the reverse input terminal of the first comparator is connected to an output feedback voltage of the voltage converter; the output terminal signal of the first comparator is used to control the opening of the upper field effect transistor; the error amplification voltage represents the error between the output voltage of the voltage converter and a preset reference voltage; A voltage compensation module, the voltage compensation module comprising a switch control component, a voltage regulation component and a charge-discharge component, the switch control component is connected to the charge-discharge component, and the voltage regulation component is used to output a compensation voltage to the positive input terminal of the first comparator; The switch control component is used to control the charge-discharge component to start charging when it is detected that the upper field effect transistor is turned on; and to control the charge-discharge component to start discharging when it is detected that the output voltage of the voltage converter is equal to the preset reference voltage, until the charge-discharge component completes discharging; The voltage regulating component is used to reduce the compensation voltage when it is detected that the discharge end time of the charging and discharging component is earlier than the current zero crossing time of the voltage converter; and increase the compensation voltage when it is detected that the current zero crossing time is earlier than the discharge end time.
2. The control circuit according to claim 1, characterized in that: The charge and discharge component includes a first switch, a second switch, a first capacitor, a first current source, and a second current source. One end of the first capacitor is connected to the first current source through the first switch, and the other end of the first capacitor is grounded. The voltage regulating component is connected between the first capacitor and the first switch. One end of the second current source is connected between the first capacitor and the first switch through the second switch, and the other end of the second current source is grounded. The switch control component is connected to the first switch and the second switch.
3. The control circuit according to claim 1, characterized in that: The voltage converter also includes a conduction time generating component and a trigger, wherein the output end of the conduction time generating component is connected to the first input end of the trigger, the input end of the conduction time generating component is connected to the input voltage and output voltage of the voltage converter, the first comparator is connected to the second input end of the trigger, the first output end of the trigger is connected to the gate of the upper field effect transistor, and the conduction time generating component is used to generate the duration of the upper field effect transistor being turned on.
4. The control circuit according to claim 2, characterized in that: The voltage compensation module also includes a second comparator, the voltage regulation component is connected between the first capacitor and the first switch through the positive input terminal of the second comparator, the reverse input terminal of the second comparator is grounded, the output terminal of the second comparator is connected to the voltage regulation component, and the second comparator is used to determine whether the first capacitor has been discharged.
5. The control circuit according to claim 1, characterized in that: The voltage converter also includes a lower field effect tube and a third comparator, wherein the output end of the third comparator is connected to the gate of the lower field effect tube, the positive input end of the third comparator is connected to the induced voltage of the voltage converter, the reverse input end of the third comparator is grounded, and the third comparator is used to control the lower field effect tube to be turned off.
6. A voltage regulation method, characterized in that: The voltage regulation method is applied to the control circuit described in any one of claims 1 to 5; The method comprises: When it is detected that the upper field effect transistor is turned on, the charging and discharging component is controlled to start charging; and when it is detected that the output voltage of the voltage converter is equal to the preset reference voltage, the charging and discharging component is controlled to start discharging until the charging and discharging component completes discharging; When it is detected that the discharge end time of the charging and discharging component is earlier than the current zero crossing time of the voltage converter, the compensation voltage is reduced; when it is detected that the current zero crossing time is earlier than the discharge end time, the compensation voltage is increased.
7. The voltage regulation method according to claim 6, characterized in that: The step of controlling the charging and discharging component to start charging; and controlling the charging and discharging component to start discharging when detecting that the output voltage of the voltage converter is equal to the preset reference voltage, comprises: The switch control component controls the first switch to be closed and the second switch to be opened, so that the charging and discharging component is in a charging state; The output voltage is compared with the preset reference voltage by the charge and discharge component. When the output voltage is equal to the preset reference voltage, the switch control component controls the first switch to be opened and the second switch to be closed, so that the charge and discharge component is in a discharge state.
8. A voltage regulating device, characterized in that: include: A control circuit as claimed in any one of claims 1 to 5.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the voltage regulation method according to any one of claims 6 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the voltage regulation method according to any one of claims 6 to 7 is implemented.