A switching circuit and method, DCDC
By designing the switching circuit in DCDC and using the delay module and counting module to accurately determine load changes, the problem of DCDC mistakenly entering low-power mode during load transients is solved, and the accuracy of mode switching and power supply stability are improved.
Patent Information
- Application Number
- CN202410038444.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-10-08
AI Technical Summary
DCDC can easily enter low-power mode by mistake when the load changes transiently, resulting in inaccurate standby power control and affecting standby time and battery life.
Design a switching circuit, including a first delay module, a first counting module and a latch module. By obtaining the DCDC switching cycle signal and time value, calculate the number of consecutive occurrences, and output an indication signal when a specific value is reached to accurately judge Load changes, switching to or from low power mode to normal mode.
It improves the accuracy of DCDC entering low-power mode, reduces false switching caused by load transients, ensures output power stability and extends standby time.
Smart Images

Figure CN117879565B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electronic power technology, and in particular to a switching circuit and method, and a DCDC. Background Art
[0002] As energy becomes increasingly scarce, more portable devices hope to reduce the standby power consumption of the appliance itself when the load is light, thereby extending the standby time. For example, in wearable products, watches and bracelets, when communication and wake-up are not required, their standby power consumption can be reduced, thereby increasing the standby time, reducing the number of charging times, extending the internal battery life and enhancing the user experience.
[0003] As the lower power supply in such products, the control of DCDC standby power consumption is particularly important. For example, when it detects that the load current is small, DCDC first enters discontinuous conduction mode (DCM), the load current continues to decrease, and the switching cycle continues to increase. At this time, DCDC needs to switch to low power mode. In low power mode, most of the power-consuming modules in DCDC will be turned off, so that the power consumption can be reduced to less than 1uA. However, when DCDC switches working mode, it will mistakenly enter low power mode when load transient occurs, such as heavy load quickly to light load. Summary of the invention
[0004] The embodiments of the present application provide a switching circuit and method, and DCDC, which can improve the accuracy of DCDC entering a low power consumption mode.
[0005] In a first aspect, an embodiment of the present application provides a switching circuit applied to DCDC, the switching circuit comprising: a first delay module, used to obtain a periodic signal of a switch tube of the DCDC, and generate a first delay signal according to the periodic signal and a first time value; a first counting module, the input end of the first counting module is connected to the output end of the first delay module, the first counting module is used to calculate the first number of times the first delay signal is continuously generated, and output a first counting signal when the first number is greater than or equal to a first value; a latch module, the first input end of the latch module is connected to the output end of the first counting module, the latch module outputs a first indication signal through the first output end of the latch module based on the first counting signal, and the first indication signal is used to indicate that the DCDC switches from a normal mode to a low power consumption mode.
[0006] In some embodiments, the switching tube of the DCDC includes a rectifier tube and a synchronization tube, and the first delay module includes a NAND gate and a first delay unit; the first input end of the NAND gate is used to receive the control signal of the rectifier tube, the second input end of the NAND gate is used to receive the control signal of the synchronization tube, the output end of the NAND gate is connected to the input end of the first delay unit, and the output end of the first delay unit is connected to the input end of the first counting module; wherein the NAND gate outputs a logic signal to the first delay unit based on the control signal of the rectifier tube and the control signal of the synchronization tube; the first delay unit is used to generate the first delay signal to the first counting module based on the logic signal and the first time value.
[0007] In some embodiments, the first counting module includes N first DFFs; the clock input end of the first first DFF is connected to the output end of the first delay module, the reverse data output end of the nth first DFF is respectively connected to the data input end of the nth first DFF and the clock input end of the (n+1)th first DFF, the data output end of the Nth first DFF is connected to the first input end of the latch module, and the set end of each first DFF is connected to the second output end of the latch module; wherein the latch module outputs a clear signal to each first DFF through the second output end of the latch module based on the first counting signal, so as to clear each first DFF; N and the first value M1 have the following relationship:
[0008] M1=2 N-1 ;
[0009] N is an integer greater than or equal to 1, and 1≤n<N.
[0010] In some embodiments, the switching circuit also includes a second delay module; the first output end of the second delay module is connected to the second input end of the latch module; wherein the second delay module is used to obtain the periodic signal, and generate a second delay signal to the latch module according to the periodic signal and the second time value; the latch module outputs a second indication signal through the first output end of the latch module based on the second delay signal, and the second indication signal is used to indicate that the DCDC switches from a low power consumption mode to a normal mode.
[0011] In some embodiments, the switching circuit also includes a second counting module; the first output end of the second delay module is connected to the input end of the second counting module, and the output end of the second counting module is connected to the second input end of the latch module; wherein the second delay module is used to generate the second delay signal to the second counting module according to the periodic signal and the second time value; the second counting module is used to calculate the second number generated by the second delay signal, and output a second counting signal to the latch module when the second number is greater than or equal to the second value; the latch module outputs the second indication signal through the first output end of the latch module based on the second counting signal.
[0012] In some embodiments, the DCDC includes a synchronous tube, and the second delay module includes a second delay unit and a logic unit; the input end of the second delay unit and the first input end of the logic unit are used to receive the control signal of the synchronous tube, the output end of the second delay unit is connected to the second input end of the logic unit, and the third input end of the logic unit is connected to the third output end of the latch module;
[0013] Among them, the second delay unit generates a third delay signal to the logic unit based on the control signal of the synchronization tube and the second time value; the logic unit is used to output the second delay signal to the second counting module according to the control signal of the synchronization tube, the third delay signal and the output signal of the third output end of the latch module, and the output signal of the third output end of the latch module is opposite to the output signal level of the second output end of the latch module.
[0014] In some embodiments, the second delay unit includes: a rising edge delay subunit, a first falling edge delay subunit, a NOT gate and a NOR gate; the input end of the rising edge delay subunit is used to receive the control signal of the synchronization tube, the output end of the rising edge delay subunit is respectively connected to the input end of the first falling edge delay subunit and the first input end of the NOR gate, the output end of the first falling edge delay subunit is connected to the input end of the NOT gate, the output end of the NOT gate is connected to the second input end of the NOR gate, and the output end of the NOR gate is connected to the second input end of the logic unit.
[0015] In some embodiments, the logic unit includes an AND gate; the first input end of the AND gate is used to receive the control signal of the synchronization tube, the second input end of the AND gate is connected to the output end of the second delay unit, the third input end of the AND gate is connected to the third output end of the latch module, and the output end of the AND gate is connected to the input end of the second counting module.
[0016] In some embodiments, the second counting module includes K second DFFs; the clock input terminal of the first second DFF is connected to the first output terminal of the second delay module, the reverse data output terminal of the kth second DFF is respectively connected to the data input terminal of the kth second DFF and the clock input terminal of the (k+1)th second DFF, the data output terminal of the Kth second DFF is connected to the second input terminal of the latch module, and the set terminal of each second DFF is connected to the second output terminal of the second delay module; wherein K and the second value M2 have the following relationship:
[0017] M2=2 K-1 ;
[0018] K is an integer greater than or equal to 1, and 1≤k<K.
[0019] In some embodiments, the switching circuit also includes a first comparison module and a voltage adjustment module; the input end of the voltage adjustment module is connected to the output end of the DCDC, the output end of the voltage adjustment module is connected to the first input end of the first comparison module, the second input end of the first comparison module is used to connect to a reference voltage source, and the output end of the first comparison module is connected to the third input end of the latch module; wherein the voltage adjustment module outputs an adjustment voltage to the first comparison module based on the output voltage of the DCDC; the first comparison module outputs a comparison signal to the latch module based on the adjustment voltage and the reference voltage output by the reference voltage source; the latch module outputs a third indication signal through the first output end of the latch module based on the comparison signal, and the third indication signal is used to indicate that the DCDC switches from a low power consumption mode to a normal mode.
[0020] In some embodiments, the switching circuit also includes a second comparison module; the first input end of the second comparison module is connected to the output end of the DCDC, and the second input end of the second comparison module is used to connect to a reference voltage source; wherein the second comparison module outputs a control signal of the synchronous tube based on the output voltage of the DCDC and the reference voltage.
[0021] In a second aspect, an embodiment of the present application provides a switching method applied to DCDC, the switching method comprising: obtaining a switching period and a first time value of a switching tube of the DCDC; determining a first number of times that the switching period is continuously greater than the first time value; if the first number is greater than or equal to a first value, controlling the DCDC to switch from a normal mode to a low power consumption mode.
[0022] In some embodiments, the method further includes: acquiring a second time value; if the switching period is less than the second time value, controlling the DCDC to switch from a low power consumption mode to a normal mode.
[0023] In some embodiments, if the switching period is less than the second time value, the DCDC is controlled to switch from a low power mode to a normal mode, including: determining a second number of times that the switching period is less than the second time value; if the second number is greater than or equal to a second value, the DCDC is controlled to switch from a low power mode to a normal mode.
[0024] In some embodiments, the method further includes: obtaining the output voltage, drop voltage and reference voltage of the DCDC; obtaining an adjustment voltage based on the output voltage and the drop voltage; and controlling the DCDC to switch from a normal mode to a low power consumption mode based on the adjustment voltage and the reference voltage.
[0025] In some embodiments, the method further includes: outputting a control signal to a synchronous tube according to the output voltage and the reference voltage.
[0026] In a third aspect, an embodiment of the present application provides a control device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method as described in any one of the second aspects.
[0027] In a fourth aspect, an embodiment of the present application provides a DCDC, which includes the switching circuit as described in any one of the first aspect, or includes the control device as described in the third aspect.
[0028] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method described in any one of the second aspects above.
[0029] In the sixth aspect, an embodiment of the present invention further provides a computer program product, wherein the computer program product comprises a computer program stored on a computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes the method described in any one of the second aspects above.
[0030] Compared with the prior art, the beneficial effect of the present application is as follows: Different from the prior art, the embodiment of the present application provides a switching circuit and method, DCDC, and the switching circuit includes: a first delay module, a first counting module and a latch module connected in sequence. The first delay module is used to obtain the periodic signal of the switch tube of the DCDC, and generate a first delay signal according to the periodic signal and the first time value. The first counting module calculates the first number of times the first delay signal is continuously generated, and outputs a first counting signal to the latch module when the first number is greater than or equal to the first value, so that the latch module outputs a first indication signal to indicate that the DCDC switches from the normal mode to the low power mode. In this circuit, the low power mode is entered only when the number of times the switching cycle is greater than the first time value is greater than the first value, which can reduce the situation where the load transient changes from heavy load to light load and mistakenly enters the low power mode, and improve the accuracy of the DCDC entering the low power mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] 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 / modules and steps with the same reference numerals in the drawings are represented as similar elements / modules and steps. Unless otherwise specified, the figures in the drawings do not constitute proportional limitations.
[0032] Figure 1 is a structural block diagram of a switching circuit provided in an embodiment of the present application;
[0033] Figure 2 is a circuit diagram of a switching circuit provided in an embodiment of the present application;
[0034] Figure 3 is a schematic diagram of a curve showing the change of output inductor current over time provided in an embodiment of the present application;
[0035] Figure 4 is a structural block diagram of another switching circuit provided in an embodiment of the present application;
[0036] Figure 5 is a structural block diagram of another switching circuit provided in an embodiment of the present application;
[0037] Figure 6 is a partial circuit diagram of a switching circuit provided in an embodiment of the present application;
[0038] Figure 7 It is a structural block diagram of a control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The present application is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements can also be made without departing from the concept of the present application. These all belong to the protection scope of the present application.
[0040] For ease of understanding of the present application, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments. Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those generally understood by those skilled in the art of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not used to limit the present application. The term "and / or" used in this specification includes any and all combinations of one or more related listed items.
[0041] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional module division is performed in the device schematic, in some cases, the module division can be different from that in the device. In addition, the words "first", "second", etc. used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0042] In the lower-level power supply of wearable products, the control of DCDC's standby power consumption is particularly important. When it is detected that the load current is small, DCDC first enters DCM. Then, the load current continues to decrease, and the switching cycle will continue to increase. At this time, it is necessary to switch to ultra-low power mode. In this mode, most of the power-consuming modules in DCDC will be turned off, thereby entering ultra-low power operation, and the power consumption can be as low as 1uA. When the load current increases to the set value, it is necessary to jump out of the low power mode. Since the increase speed of the load current is unknown, it may change slowly or be overloaded quickly. Therefore, how to achieve smooth switching between ultra-low power mode and normal mode to ensure the stability of the output power supply, that is, the output fluctuation is small, and the mode will not be switched repeatedly under a certain load, becomes the key.
[0043] In order to solve the above technical problems, the embodiments of the present application provide a switching circuit and method, DCDC, which can switch from normal mode to low power mode when the load becomes lighter, and can also switch from low power mode to normal mode when the load slowly becomes heavier, so as to achieve smooth switching and ensure stable output, reduce output ripple and provide stable power supply for the lower-level circuit. In addition, when the load becomes heavier quickly, it can also ensure that the output drop meets the needs of the subsequent circuit.
[0044] In a first aspect, the present application provides a switching circuit for use in a DCDC. Figure 1 The switching circuit includes: a first delay module 10, a first counting module 20 and a latch module 30.
[0045] The input end of the first counting module 20 is connected to the output end of the first delay module 10, and the first input end of the latch module 30 is connected to the output end of the first counting module 20. The first delay module 10 is used to obtain the periodic signal of the switch tube of the DCDC, and generate a first delay signal according to the periodic signal and the first time value T1. The first counting module 20 is used to calculate the first number of times the first delay signal is continuously generated, and output a first counting signal when the first number is greater than or equal to the first value. The latch module 30 outputs a first indication signal through the first output end of the latch module 30 based on the first counting signal, and the first indication signal is used to indicate that the DCDC is switched from the normal mode to the low power mode.
[0046] DCDC, or direct current converter, can convert electrical energy of one voltage value into electrical energy of another voltage value. In normal mode, all comparators and loops used to control the circuit, such as the internal current source and reference source, work normally and consume current. In low power mode, all comparators and loops used to control the circuit, such as the internal current source and reference source, are in sleep mode and do not consume current, leaving only the circuits that must work in low power mode.
[0047] It can be understood that in DCDC, if the load becomes lighter (load impedance becomes larger), DCDC first enters DCM, and then, if the load continues to become lighter, the switching period of DCDC will gradually increase. Under the conditions of fixed input voltage vin, output voltage vout and inductance value L of inductor, the switching period of DCDC T 非 It is only related to the load current Io and the peak current Ipeak of the inductor, and the relationship is as follows:
[0048]
[0049]
[0050] T = ton + toff;
[0051]
[0052] Among them, ton is the conduction time of the synchronous tube of DCDC, toff is the turn-off time of the synchronous tube of DCDC, T 非 It is the switching cycle of the synchronous tube of DCDC.
[0053] Since the on-time ton of the synchronous tube of the DCDC is a constant value in the step-down DCDC of the constant on-time control mode, the peak current Ipeak of the inductor is constant. Then, in DCM, the switching period T of the DCDC is非 It is only related to the load current Io. In addition, in the step-down DCDC in the peak current mode control mode, the minimum peak current of the DCDC can be limited, so that when the DCDC enters the DCM mode, the peak current Ipeak of the inductor is also constant. Then, the switching period T of the DCDC 非 It is also only related to the load current Io. Similarly, in the boost DCDC in constant on-time control mode and the boost DCDC in peak current mode control mode, the switching period of DCDC is T 非 It is also only related to the load current Io, and the relationship is as follows:
[0054]
[0055]
[0056]
[0057] In summary, under DCM, the external load current Io and the switching period T 非 There is a certain relationship, that is, the switching cycle can be used to characterize the size of the external load current, that is, the larger the switching cycle, the smaller the load current entering the timing cycle count, and the lighter the load; the smaller the switching cycle, the larger the load current entering the timing cycle count, and the heavier the load. Therefore, by timing the switching cycle, it can be determined whether the DCDC switches from normal mode to low power mode, or whether it switches from low power mode to normal mode.
[0058] In this embodiment, the first delay module 10 can be used to obtain the periodic signal of the switch tube of the DCDC, and determine the switching period of the DCDC based on the periodic signal, that is, the period of the DCDC synchronous tube being turned on, that is, the working period of the DCDC, and also the time corresponding to the working frequency of the DCDC. Specifically, the first delay module 10 can simultaneously obtain the control signal Ison of the rectifier tube and the control signal hson of the synchronous tube, and compare the switching period and the first time value in the following manner: within a period, the timing is started from 0 when the rectifier tube and the synchronous tube are both turned off, that is, the timing is started from 0 when the control signal Ison of the rectifier tube and the control signal hson of the synchronous tube are both low level. If the current load current decreases, then after reaching the first time value T1, the control signal Ison of the rectifier tube and the control signal hson of the synchronous tube are still low level, then the first delay module 10 outputs the first delay signal to the first counting module 20, and the first counting module 20 will increase the first count by one. Then, the signal in the next cycle is calculated in the above manner until the first count calculated by the first counting module 20 is greater than or equal to the first value, the first counting module 20 will output the first counting signal, which means that the switching cycle of the DCDC is greater than the first time value T1 in the first value of consecutive cycles, and also indicates that the load is light in the first value of consecutive cycles. Then, the latch module 30 will output the first indication signal upon receiving the first counting signal to indicate that the DCDC is switched from the normal mode to the low power mode.
[0059] It is understandable that if the first delay module 10 does not continuously generate the first delay signal, the first counting module 20 will set the first count to 0. In practical applications, the first time value T1 and the first value can be set according to actual needs. For example, the first value can be any value between 2 and 9999.
[0060] In this embodiment, the current load condition is determined by calculating whether the switching period is greater than the first time value T1 according to the periodic signal, and the low power consumption mode is entered only when the number of times the switching period is greater than the first time value T1 is greater than the first value by continuously calculating. This can reduce the situation where the load transient changes from heavy load to light load and mistakenly enters the low power consumption mode, improve the accuracy of the DCDC entering the low power consumption mode, and realize smooth switching between the ultra-low power consumption mode and the normal mode, with small output fluctuations, thereby improving the stability of the DCDC output power supply.
[0061] In some embodiments, after entering the ultra-low power mode, it is necessary to ensure that the energy provided by the DCDC switch each time is slightly greater than or equal to that in the normal mode DCM, such as Figure 3 As shown, the energy provided to the output by each switching action must meet the following conditions:
[0062] Ipeak1 ≥ Ipeak0;
[0063] Among them, Ipeak1 is the peak current brought by each switch in the ultra-low power mode; and Ipeak0 is the peak current brought by each switch of the DCDC in the normal DCM mode. That is, for the COT DCDC, it is necessary to ensure that the conduction time of the synchronous tube of the DCDC in the low power mode remains unchanged or increases, and for the DCDC in the peak current mode, it is necessary to ensure that the peak current in the low power mode remains unchanged or increases, so as to achieve smooth switching between the ultra-low power mode and the normal mode, improve the stability of the output power supply, and reduce output fluctuations.
[0064] In some of these examples, see Figure 2 The latch module 30 includes a latch U3, a NOT gate U4 and a NOT gate U5, wherein the first input end of the latch U3 is connected to the output end of the first counting module 20, the output end of the latch U3 is connected to the input end of the NOT gate U4, and the output end of the NOT gate U4 is respectively connected to the input end of the NOT gate U5 and the first counting module 20.
[0065] The specific circuit structures of the latch U3, the NOT gate U4 and the NOT gate U5 can refer to the prior art and are not limited here. In the latch module 30, when the first input end of the latch U3 receives a high level, it outputs a high level to the NOT gate U4, and the NOT gate U4 outputs a low level to the NOT gate U5, and the NOT gate U5 outputs a high level (a first indication signal). In practical applications, the specific structure of the latch module 30 can be set according to actual needs, and it is not necessary to stick to the limitations in this embodiment.
[0066] In this embodiment, the latch U3 can maintain the previous state when the input signal does not change, thereby reducing the frequent switching of the DCDC working mode. In addition, the NOT gate U4 and the NOT gate U5 can improve the anti-interference ability of the output signal and the driving ability for the subsequent stage.
[0067] In some of these examples, see Figure 2 The switch tube of DCDC includes a rectifier tube and a synchronous tube, and the first delay module 10 includes a NAND gate U1 and a first delay unit. The first input end of the NAND gate U1 is used to receive the control signal Ison of the rectifier tube, the second input end of the NAND gate U1 is used to receive the control signal hson of the synchronous tube, the output end of the NAND gate U1 is connected to the input end of the first delay unit, and the output end of the first delay unit is connected to the input end of the first counting module 20.
[0068] The NAND gate U1 outputs a logic signal to the first delay unit based on the control signal Ison of the rectifier tube and the control signal hson of the synchronization tube. The first delay unit is used to generate a first delay signal to the first counting module 20 based on the logic signal and the first time value T1.
[0069] Specifically, the first delay unit includes a second falling edge delay subunit 11 and a NOT gate U2 , the input end of the second falling edge delay subunit 11 is connected to the output end of the NAND gate U1 , and the output end of the second falling edge delay subunit 11 is connected to the input end of the NOT gate U2 .
[0070] In the first delay module 10, the NAND gate U1 simultaneously receives the control signal Ison of the rectifier tube and the control signal hson of the synchronization tube, and when at least one of the control signal Ison of the rectifier tube and the control signal hson of the synchronization tube is at a low level, it outputs a high level to the second falling edge delay sub-unit 11; when the control signal Ison of the rectifier tube and the control signal hson of the synchronization tube are both at a high level, it outputs a low level to the second falling edge delay sub-unit 11.
[0071] The second falling edge delay subunit 11 is used to delay the falling edge of the signal output by the NAND gate U1, and output the delayed signal to the NOT gate U2. For example, if the falling edge of the signal output by the NAND gate U1 comes, due to the delay by the second falling edge delay subunit 11, the output signal of the second falling edge delay subunit 11 will not immediately become a low level, but will only change level after a period of time (first time value T1), so that the signal whose low level duration of the NAND gate U1 is less than the first time value T1 cannot pass through the second falling edge delay subunit 11. The NOT gate U2 is used to output a low level when the output signal of the second falling edge delay subunit 11 is a high level, and output a high level when the output signal of the second falling edge delay subunit 11 is a low level.
[0072] In this embodiment, through the above circuit, when the control signal Ison of the rectifier tube and the control signal hson of the synchronous tube are both at a low level, the first delay module 10 can start timing from 0. If the timing reaches the first time value T1, that is, the control signal Ison of the rectifier tube and the control signal hson of the synchronous tube are still at a low level, a high level is output to the first counting module 20, so that the first counting module 20 completes one count.
[0073] In some of these examples, see Figure 2 The first counting module 20 includes N first DFFs. The clock input terminal Clk of the first first DFF 21 is connected to the output terminal of the first delay module 10, and the reverse data output terminal of the nth first DFF is connected to the output terminal of the first delay module 10. The data input terminal D of the nth first DFF and the clock input terminal Clk of the (n+1)th first DFF are respectively connected, the data output terminal Q of the Nth first DFF2N is connected to the first input terminal of the latch module 30, and the set terminal Set of each first DFF is connected to the second output terminal of the latch module 30. The latch module 30 outputs a clear signal to each first DFF through the second output terminal of the latch module 30 based on the first counting signal, so that each first DFF is cleared. N and the first value M1 have the following relationship:
[0074] M1=2 N-1 ;
[0075] N is an integer greater than or equal to 1, and 1≤n<N.
[0076] Specifically, the data output terminal of the Nth first DFF is connected to the first input terminal of the latch U3, and the set terminal of each first DFF is connected to the output terminal of the NOT gate U4.
[0077] In this embodiment, when the first counting module 20 receives the first delay signal output by the first delay module 10, it will complete a count. When the accumulated first value M1 times are completed, the Nth first DFF2N will output a high-level signal to the latch module 30, so that the NOT gate U5 will output a high-level signal (first indication signal). It can be seen that the first counting module 20 can compare the number of consecutive times that the switching cycle is greater than the first time value T1 and the size of the first value, and output a high-level signal when it is greater than the first value; at the same time, the NOT gate U4 will output a low-level signal (clear signal) to each first DFF, set each first DFF to 0, and ensure the normal operation of the next count. The specific structure of the first DFF can refer to the prior art and is not limited here.
[0078] In some of these examples, see Figure 4 The switching circuit further includes a second delay module 40. The first output end of the second delay module 40 is connected to the second input end of the latch module 30. The second delay module 40 is used to obtain the periodic signal, and generate a second delay signal to the latch module 30 according to the periodic signal and the second time value. The latch module 30 outputs a second indication signal through the first output end of the latch module 30 based on the second delay signal, and the second indication signal is used to indicate that the DCDC is switched from the low power mode to the normal mode.
[0079] In this embodiment, the second delay module 40 can be used to obtain the control signal hson of the synchronous tube, and determine the switching cycle of the DCDC based on the control signal hson of the synchronous tube. In addition, the second delay module 40 compares the switching cycle and the second time value T2 in the following manner: within a cycle, the timing is started from 0 when the synchronous tube is turned off, that is, the timing is started from 0 when the control signal hson of the synchronous tube is at a low level. If the current load current increases, that is, the load becomes heavier, the time when the control signal hson of the synchronous tube is at a low level is less than the second time value T2, then the second delay module 40 outputs a second delay signal to the latch module 30. Then, the latch module 30 receives the second delay signal and outputs a second indication signal to indicate that the DCDC switches from a low power mode to a normal mode. In practical applications, the second time value T2 can be set according to actual needs.
[0080] It can be understood that when the load current output by the DCDC increases slowly and gradually, the switching period of the DCDC will gradually decrease. Therefore, in this embodiment, by comparing the timing of the switching period, when the switching period is less than the second time value T2, a second indication signal will be output to indicate that the DCDC exits the low power consumption mode.
[0081] In addition, the current I loadin for:
[0082]
[0083] Current I when exiting low power mode loadout for:
[0084]
[0085] Among them, Ipeak0 is the peak current when entering the low power mode, T is the conduction time of the synchronous tube of DCDC, and Ipeak1 is the peak current when exiting the low power mode. At this time, the second time value T2 can be made smaller than the first time value T1, so that the current entering the low power mode is smaller than the current exiting the low power mode, thereby achieving load current hysteresis in entering and exiting the low power mode, ensuring that the circuit will not repeatedly enter and exit the low power mode under a certain load, and improving the stability of the circuit.
[0086] In some of these examples, see Figure 5, the switching circuit also includes a second counting module 50. The first output end of the second delay module 40 is connected to the input end of the second counting module 50, and the output end of the second counting module 50 is connected to the second input end of the latch module 30. The second delay module 40 is used to generate a second delay signal to the second counting module 50 according to the periodic signal and the second time value. The second counting module 50 is used to calculate the second number generated by the second delay signal, and output a second counting signal to the latch module 30 when the second number is greater than or equal to the second value. The latch module 30 outputs a second indication signal through the first output end of the latch module 30 based on the second counting signal.
[0087] In this embodiment, the second delay module 40 can be used to obtain the periodic signal of the switching tube of the DCDC, and determine whether the period of the switching tube of the DCDC is less than the second time value. If so, the second delay module 40 outputs a second delay signal to the second counting module 50 so that the second counting module 50 completes a count.
[0088] Specifically, the second delay module 40 can obtain the control signal hson of the synchronous tube and count as follows: within a cycle, when the control signal hson of the synchronous tube is at a low level, the timing starts from 0. If the control signal hson of the synchronous tube is at a high level after reaching the second time value T2, the second delay module 40 outputs a second delay signal to the second counting module 50, and the second counting module 50 increases the second number by one. Then, the signal in the next cycle is calculated in the above manner until the second number calculated by the second counting module 50 is greater than or equal to the second value, and the second counting signal will be output, indicating that the periodic signal of the switch tube is less than the second time value T0 in the second value cycle, which also indicates that the current load is heavy. Then, the latch module 30 will output a second indication signal upon receiving the second counting signal to indicate that the DCDC switches from the low power mode to the normal mode.
[0089] It is understandable that if the second delay module 40 does not continuously generate the second delay signal, the second counting module 50 may not set the second value to 0. In practical applications, the second value can be set according to actual needs, for example, the second value can be any value between 2 and 9999. The second time value T2 can be equal to the first time value T1.
[0090] In this embodiment, the normal mode is entered only when the number of times the switching period is less than the second time value T2 calculated according to the periodic signal is greater than the second value, thereby avoiding the need for multiple switches due to insufficient energy transferred in each switching period in the low power consumption mode, thereby avoiding premature exit from the low power consumption mode and resulting in a decrease in efficiency, thereby improving the accuracy of the DCDC entering the normal mode, and realizing smooth switching between the ultra-low power consumption mode and the normal mode, with less output fluctuation, thereby improving the stability of the DCDC output power supply.
[0091] In some embodiments, the DCDC includes a synchronous tube, and the second delay module 40 includes a second delay unit and a logic unit. The input end of the second delay unit and the first input end of the logic unit are used to receive the control signal hson of the synchronous tube, the output end of the second delay unit is connected to the second input end of the logic unit, and the third input end of the logic unit is connected to the third output end of the latch module 30. The second delay unit generates a third delay signal to the logic unit based on the control signal of the synchronous tube and the second time value. The logic unit is used to output the second delay signal to the second counting module 50 according to the control signal of the synchronous tube, the third delay signal and the output signal of the third output end of the latch module 30, and the output signal of the third output end of the latch module 30 is opposite in level to the output signal of the second output end of the latch module 30.
[0092] For details, please refer to Figure 2 The second delay unit includes: a rising edge delay subunit 41, a first falling edge delay subunit 42, a NOT gate U6 and a NOR gate U7. The input end of the rising edge delay subunit 41 is used to receive the control signal hson of the synchronous tube, the output end of the rising edge delay subunit 41 is respectively connected to the input end of the first falling edge delay subunit 42 and the first input end of the NOR gate U7, the output end of the first falling edge delay subunit 42 is respectively connected to the input end of the NOT gate U6 and the set end of the second counting module 50, the output end of the NOT gate U6 is connected to the second input end of the NOR gate U7, and the output end of the NOR gate U7 is connected to the second input end of the logic unit.
[0093] The rising edge delay subunit 41 is used to output the rising edge after delaying the third time value T3 after receiving the rising edge. The third time value T3 is small and is mainly used to generate the high level of the pulse for counting. The first falling edge delay subunit 42 is used to delay the falling edge of the signal output by the rising edge delay subunit 41, and output the delayed signal to the NOT gate U6. For example, if the falling edge of the signal output by the rising edge delay subunit 41 comes, due to the delay of the first falling edge delay subunit 42, the output signal of the first falling edge delay subunit 42 will not immediately become a low level, but will only change level after a period of time (second time value T2), so that the signal whose low level duration is less than the second time value T2 output by the rising edge delay subunit 41 cannot pass through the first falling edge delay subunit 42. The NOT gate U6 is used to output a low level when the delay signal output by the rising edge delay subunit 41 is a high level, and output a high level when the delay signal output by the rising edge delay subunit 41 is a low level. The NOR gate U7 is used to output a high level when all input signals are at a low level, and to output a low level when any one input signal is at a high level.
[0094] The logic unit includes an AND gate U8. The first input end of the AND gate U8 is used to receive the control signal hson of the synchronous tube, the second input end of the AND gate U8 is connected to the output end of the second delay unit, the third input end of the AND gate U8 is connected to the third output end of the latch module 30, and the output end of the AND gate U8 is connected to the input end of the second counting module 50. That is, the second input end of the AND gate U8 is connected to the output end of the NOR gate U7, and the third input end of the AND gate U8 is connected to the output end of the latch U3. The AND gate U8 outputs a high level when all input signals are high level, otherwise it outputs a low level.
[0095] In this circuit, first, the rising edge delay subunit 41 delays the rising edge of the control signal hson of the synchronous tube, and then the first falling edge delay subunit 42 delays the falling edge. If the low level duration of the control signal hson of the synchronous tube is less than the second time value T2, the rising edge delay subunit outputs a low level to the first falling edge delay subunit 42 and the NOR gate U7, and the first falling edge delay subunit 42 will output a high level to the NOR gate U6, then the NOR gate U6 will output a low level to the NOR gate U7, and the NOR gate U7 will output a high level to the AND gate U8, and the control signal hson of the synchronous tube is a high level. At the same time, the AND gate U8 also receives the output signal of the latch U3. From the above analysis, it can be seen that after the DCDC enters the low power consumption mode, the output end of the latch U3 is a high level, then the three input ends of the AND gate U8 are all high levels, and at this time, the AND gate U8 will output a high level (the second delay signal) to the second counting module 50.
[0096] It can be seen that in this embodiment, through the above circuit, when the control signal hson of the synchronous tube is at a low level, the second delay module can be made to start timing from 0. If the control signal hson of the synchronous tube is at a high level after the second time value T2 is reached, the second delay module outputs the second delay signal to the second counting module 50. At the same time, the second counting module 50 will cumulatively calculate the second number of times the second delay signal appears, and enter the normal mode only when the number of times the switching cycle is less than the second time value T2 is greater than the second value, thereby avoiding the need for multiple switches due to insufficient energy transferred in each switching cycle in the low power consumption mode, thereby prematurely exiting the low power consumption mode and causing a decrease in efficiency, thereby improving the accuracy of DCDC entering the normal mode, and realizing smooth switching between the ultra-low power consumption mode and the normal mode, with small output fluctuations, thereby improving the stability of the DCDC output power supply.
[0097] In addition, in this circuit, the AND gate U8 determines whether to output the second delay signal based on the level of the control signal hson of the synchronous tube, the level output by the NOR gate U7, and the level output by the latch module 30, thereby improving the accuracy of outputting the second delay signal and ultimately improving the accuracy of outputting the second indication signal.
[0098] In some of these examples, see Figure 2 The second counting module 50 includes K second DFFs. The clock input terminal Clk of the first second DFF 51 is connected to the first output terminal of the second delay module 40, and the reverse data output terminal of the kth second DFF is connected to the first output terminal of the second delay module 40. The data input terminal D of the kth second DFF and the clock input terminal Clk of the (k+1)th second DFF are respectively connected, the data output terminal Q of the Kth second DFF52K is connected to the second input terminal of the latch module 30, and the set terminal Set of each second DFF is connected to the second output terminal of the second delay module 40. K and the second value M2 have the following relationship:
[0099] M2=2 K-1 ;
[0100] K is an integer greater than or equal to 1, and 1≤k<K.
[0101] Specifically, the output end of the first falling edge delay subunit 42 is connected to the set end Set of each second DFF respectively. In the second counting module 50, upon receiving the high level pulse output by the AND gate U8, a count will be completed. Since the set signal of each second DFF adopts the output signal of the first falling edge delay subunit 42, only when the K consecutive switching cycles are less than the second time value T2, the last DFF52K in the exit logic can output a high level to the latch U3, so that the NOT gate U5 outputs a low level to indicate that the DCDC switches from the low power mode to the normal mode, thereby ensuring that when the current changes slowly, the output voltage drop is reduced. The specific structure of the second DFF can refer to the prior art and is not limited here.
[0102] In some of these embodiments, please refer to Figure 6 and Figure 2 , the switching circuit also includes a first comparison module U9 and a voltage adjustment module 60. The input end of the voltage adjustment module 60 is connected to the output end VOUT of the DCDC, the output end of the voltage adjustment module 60 is connected to the first input end of the first comparison module U9, the second input end of the first comparison module U9 is used to connect the reference voltage source VREF, and the output end of the first comparison module U9 is connected to the third input end of the latch module 30. Among them, the voltage adjustment module 60 outputs an adjustment voltage to the first comparison module U9 based on the output voltage of the DCDC. The first comparison module U9 outputs a comparison signal to the latch module 30 based on the adjustment voltage and the reference voltage output by the reference voltage source VREF. The latch module 30 outputs a third indication signal through the first output end of the latch module 30 based on the comparison signal, and the third indication signal is used to instruct the DCDC to switch from the low power consumption mode to the normal mode.
[0103] Specifically, the first comparison module U9 is a comparator, the first input end of the first comparison module U9 is the negative input end of the comparator, the second input end of the first comparison module U9 is the positive input end of the comparator, and the voltage adjustment module 60 includes a resistor RO and a current source I0, wherein the current source I0 is respectively connected to the first end of the resistor R0 and the first input end of the first comparison module U9, the second input end of the first comparison module U9 is connected to the reference voltage source VREF, and the output end of the first comparison module U9 is connected to the third input end of the latch U3.
[0104] It is understandable that when the load increases rapidly, due to the limited energy delivered in each switching cycle in ultra-low power mode, the use of Figure 4 or Figure 5 When exiting the low power consumption mode in the manner shown in the embodiment shown, take counting twice as an example: if the counting method is adopted, it will result in the second time value T2 for which energy cannot be provided to the output, which will cause a larger drop in the output, and the output drop voltage is Vdrop=Idrop*T2, where Idrop is the drop current and T2 is the second time value.
[0105] In order to solve the problem of excessive drop, in this embodiment, by setting the first comparison module U9, the voltage adjustment module 60 and the reference voltage source VREF, when the difference between the output voltage Vout and the drop voltage Vo is less than the reference voltage Vref, the comparison signal is directly output to the latch module 30, so that the latch module 30 outputs a third indication signal to instruct the DCDC to quickly switch from the low power mode to the normal mode to reduce the output drop, wherein the drop voltage Vo=Ro*Io, wherein Ro is the resistance value of the resistor R0, and Io is the current of the current source I0.
[0106] In addition, after the DCDC switches from low power mode to normal mode, the synchronous tube can be controlled to open and its conduction time can be extended to increase the peak current of the first cycle after switching (the peak current must be greater than the maximum load current of the chip) to quickly replenish energy for the output, thereby reducing the output drop and improving the output stability.
[0107] In some of these examples, see Figure 6 The switching circuit further includes a second comparison module U10. A first input terminal of the second comparison module U10 is connected to an output terminal of the DCDC, and a second input terminal of the second comparison module U10 is used to connect to a reference voltage source VREF. The second comparison module U10 outputs a control signal of the synchronous tube based on the output voltage of the DCDC and the reference voltage.
[0108] Specifically, the second comparison module U10 may be a second comparator, the first input terminal of the second comparison module U10 is the negative input terminal of the second comparator, and the second input terminal of the second comparison module U10 is the positive input terminal of the second comparator.
[0109] In this switching circuit, if the reference voltage source VREF is greater than the output voltage of DCDC, a high level is output, which will instruct DCDC to turn on the synchronous tube, that is, the control signal of the synchronous tube is a high level. If the reference voltage source VREF is less than the output voltage of DCDC, a low level is output, which will instruct DCDC to turn off the synchronous tube, that is, the control signal of the synchronous tube is a low level. In this way, when the output voltage drops to the set value, the power switch can be quickly turned on to provide energy for the output, thereby keeping the output stable.
[0110] In a second aspect, an embodiment of the present application further provides a switching method, which is applied to DCDC. The execution subject of the switching method is the control device provided in the embodiment of the present application. The switching method includes:
[0111] Step S100: obtaining a switching period and a first time value of a switching tube of a DCDC.
[0112] The switching cycle of the switch tube of DCDC, that is, the period during which the synchronous tube of DCDC is turned on, is also the working cycle of DCDC, and is also the time corresponding to the working frequency of DCDC. The control device can obtain the control signal Ison of the rectifier tube and the control signal hson of the synchronous tube, and calculate the switching cycle of the switch tube of DCDC based on the two.
[0113] The first time value T1 may be pre-stored in the control device, so that the control device can call the memory to obtain the first time value T1, or it may be manually input into the control device so that the control device obtains the first time value T1.
[0114] Step S200: Determine a first number of times that the switching period is continuously greater than a first time value.
[0115] Next, when the control device obtains the switching period within a cycle, it will compare it with the first time value T0. If the switching period is greater than the first time value T1, the first count will be increased by one, and the size of the switching period within each cycle and the first time value T0 will be continuously calculated in the above manner. If the switching period is less than the first time value T1, the first count will be set to 0.
[0116] Step S300: If the first number is greater than or equal to the first value, control the DCDC to switch from the normal mode to the low power mode.
[0117] After calculating the first number, the control device will also compare the first number with the first value, and when the first number is greater than or equal to the first value, it will control the DCDC to switch from normal mode to low power mode. When the first number is less than the first value, steps S100-S200 will be repeated.
[0118] In this embodiment, the current load condition is determined by calculating whether the switching period is greater than the first time value T1, and the low power consumption mode is entered only when the number of times the switching period is greater than the first time value T1 is continuously calculated to be greater than a first value. This can reduce the situation where the load transient changes from heavy load to light load and mistakenly enters the low power consumption mode, improve the accuracy of DCDC entering the low power consumption mode, and realize smooth switching between the ultra-low power consumption mode and the normal mode, with small output fluctuations, thereby improving the stability of the DCDC output power supply.
[0119] In some embodiments, the method further comprises:
[0120] Step S400: Acquire a second time value.
[0121] The second time value T2 may be pre-stored in the control device, so that the control device may call the memory to obtain the second time value T2, or may be manually input into the control device so that the control device obtains the second time value T2.
[0122] Step S500: If the switching period is less than the second time value, control the DCDC to switch from the low power mode to the normal mode.
[0123] Next, when the control device obtains the switching period within a cycle, it compares it with the second time value T2. If the switching period is less than the second time value T2, the DCDC is controlled to switch from the low power consumption mode to the normal mode.
[0124] In this embodiment, by comparing the timing of the switching period, when the switching period is less than the second time value T2, the DCDC can be controlled to exit the low power consumption mode.
[0125] In addition, in some embodiments, the second time value T2 may be smaller than the first time value T1, so that the current for entering the low power mode is smaller than the current for exiting the low power mode, thereby achieving load current hysteresis in entering and exiting the low power mode, ensuring that the circuit does not repeatedly enter and exit the low power mode under a certain load, thereby improving the stability of the circuit.
[0126] In some embodiments, step S500 includes:
[0127] Step S510: Determine a second number of times that the switching period is less than a second time value.
[0128] Specifically, when the control device obtains the switching period within a cycle, it will compare it with the second time value T2. If the switching period is greater than the second time value T2, the second number will be increased by one, and the size of the switching period and the second time value T2 in each cycle will be continuously calculated in the above manner.
[0129] Step S520: If the second value is greater than or equal to the second value, the DCDC is switched from the low power mode to the normal mode.
[0130] After calculating the second number, the control device will compare the second number with the second value, and when the second number is greater than or equal to the second value, it will control the DCDC to switch from low power mode to normal mode. When the second number is less than the second value, steps S400-S510 will be repeated.
[0131] In this embodiment, the second time value T2 may be equal to the first time value T1, or less than the first time value T1. By calculating the number of times that the switching cycle is less than the second time value T2 and is greater than the second value, the normal mode is entered, so that the low power mode is prevented from being exited too early due to insufficient energy transfer in each switching cycle in the low power mode, resulting in multiple switches and a decrease in efficiency, and the accuracy of the DCDC entering the normal mode is improved, and smooth switching between the ultra-low power mode and the normal mode can be achieved, the output fluctuation is small, and the stability of the DCDC output power supply is improved.
[0132] In some embodiments, the method further comprises:
[0133] Step S600: obtaining the output voltage, dropout voltage and reference voltage of the DCDC.
[0134] Specifically, the control device can obtain the output voltage by sampling the voltage at the output end of the DCDC. The dropout voltage is the preset maximum voltage value that the DCDC allows the output to drop when the load increases rapidly after the DCDC enters the low power mode. The dropout voltage and the reference voltage can be stored in advance or manually input so that the control device can obtain them.
[0135] Step S700: obtaining an adjustment voltage according to the output voltage and the drop voltage.
[0136] Next, the control device will calculate the difference between the output voltage and the dropout voltage, and the difference is the adjustment voltage.
[0137] Step S800: Control the DCDC to switch from the normal mode to the low power mode according to the adjustment voltage and the reference voltage.
[0138] Finally, the control device will compare the adjusted voltage with the reference voltage. If the adjusted voltage is less than the reference voltage, the control device will control the DCDC to switch from the normal mode to the low power consumption mode.
[0139] In this embodiment, the control device can control the DCDC to exit the low power consumption mode in the above manner, so that the DCDC can be quickly switched from the low power consumption mode to the normal mode, thereby reducing the output drop.
[0140] In some embodiments, the method further comprises:
[0141] Step S900: output a control signal to the synchronous tube according to the output voltage and the reference voltage.
[0142] Specifically, the control device compares the output voltage with the reference voltage, and controls the synchronous tube to be turned off when the output voltage is greater than the reference voltage, and controls the synchronous tube to be turned on when the output voltage is less than the reference voltage. In this way, when the output voltage drops to the set value, the power switch can be quickly turned on to provide energy for the output, thereby maintaining output stability.
[0143] In a third aspect, the present application embodiment further provides a control device 100, see Figure 7 , which shows the hardware structure of the control device 100 capable of executing the switching method provided in the present application.
[0144] The control device 100 includes: at least one processor 110; and a memory 120 connected to the at least one processor 110 for communication. Figure 7 A processor 110 is taken as an example. The memory 120 stores instructions that can be executed by at least one processor 110, and the instructions are executed by at least one processor 110 so that at least one processor 110 can perform the switching method of any of the following embodiments. The processor 110 and the memory 120 can be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0145] The memory 120, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the switching method described in any one of the embodiments of the present application. The processor 110 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 120, that is, implementing the switching method of any one of the following embodiments.
[0146] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the server, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely arranged relative to the processor 110, and these remote memories may be connected to the server 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.
[0147] One or more modules are stored in the memory 120, and when executed by one or more processors 110, perform the switching method of any one of the embodiments of the second aspect above.
[0148] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0149] In a fourth aspect, an embodiment of the present application further provides a DCDC, which includes a switching circuit as described in any one of the first aspect, or includes a control device as described in the third aspect. In this embodiment, the switching circuit has the same structure and function as the switching circuit as described in any one of the first aspect, and the control device has the same structure and function as the control device as described in any one of the third aspect, which will not be repeated here.
[0150] In the fifth aspect, an embodiment of the present application further provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are executed by one or more processors, for example, to execute the switching method described in any one of the embodiments of the second aspect described above.
[0151] In the sixth aspect, an embodiment of the present application further provides a computer program product, comprising a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes the switching method described in any one of the embodiments of the second aspect above.
[0152] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be 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.
[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A switching circuit, characterized in that: Applied to DCDC, the switch tube of the DCDC includes a synchronous tube and a rectifier tube, and the switching circuit includes: A NAND gate and a first delay unit, wherein the first input end of the NAND gate is used to receive the control signal of the rectifier tube, the second input end of the NAND gate is used to receive the control signal of the synchronization tube, and the output end of the NAND gate is connected to the input end of the first delay unit, wherein the NAND gate outputs a logic signal to the first delay unit based on the control signal of the rectifier tube and the control signal of the synchronization tube, and the first delay unit is used to generate a first delay signal based on the logic signal and a first time value; A first counting module, wherein an input end of the first counting module is connected to an output end of the first delay unit, and the first counting module is used to calculate the first number of times the first delay signal is continuously generated, and output a first counting signal when the first number is greater than or equal to a first value; A latch module, wherein a first input end of the latch module is connected to an output end of the first counting module, and the latch module outputs a first indication signal through a first output end of the latch module based on the first counting signal, wherein the first indication signal is used to instruct the DCDC to switch from a normal mode to a low power consumption mode; A first comparison module and a voltage adjustment module, wherein the input end of the voltage adjustment module is connected to the output end of the DCDC, the output end of the voltage adjustment module is connected to the first input end of the first comparison module, the second input end of the first comparison module is used to connect to a reference voltage source, and the output end of the first comparison module is connected to the third input end of the latch module; wherein the voltage adjustment module outputs an adjustment voltage to the first comparison module based on the output voltage of the DCDC; the first comparison module outputs a comparison signal to the latch module based on the adjustment voltage and the reference voltage output by the reference voltage source; the latch module also outputs a third indication signal through the first output end of the latch module based on the comparison signal, and the third indication signal is used to instruct the DCDC to quickly switch from a low power consumption mode to a normal mode.
2. The switching circuit according to claim 1, characterized in that: The first counting module includes N first DFFs; The clock input end of the first first DFF is connected to the output end of the first delay unit, the reverse data output end of the nth first DFF is respectively connected to the data input end of the nth first DFF and the clock input end of the (n+1)th first DFF, the data output end of the Nth first DFF is connected to the first input end of the latch module, and the set end of each first DFF is connected to the second output end of the latch module; Wherein, the latch module outputs a reset signal to each of the first DFFs through a second output terminal of the latch module based on the first counting signal, so as to reset each of the first DFFs; N and the first value M1 have the following relationship: M1=2 N-1 ; N is an integer greater than or equal to 1, and 1≤n<N.
3. The switching circuit according to claim 2, characterized in that: The switching circuit also includes a second comparison module; The first input terminal of the second comparison module is connected to the output terminal of the DCDC, and the second input terminal of the second comparison module is used to connect to a reference voltage source; Wherein, the second comparison module outputs the control signal of the synchronous tube based on the output voltage of the DCDC and the reference voltage.
4. The switching circuit according to claim 3, characterized in that: The switching circuit also includes a second delay module; The first output end of the second delay module is connected to the second input end of the latch module; Wherein, the second delay module is used to obtain the control signal of the synchronization tube, and generate a second delay signal to the latch module according to the control signal of the synchronization tube and the second time value; The latch module outputs a second indication signal through a first output terminal of the latch module based on the second delay signal, and the second indication signal is used to instruct the DCDC to switch from a low power consumption mode to a normal mode.
5. The switching circuit according to claim 4, characterized in that: The switching circuit also includes a second counting module; The first output end of the second delay module is connected to the input end of the second counting module, and the output end of the second counting module is connected to the second input end of the latch module; Wherein, the second delay module is used to generate the second delay signal to the second counting module according to the control signal of the synchronization tube and the second time value; The second counting module is used to calculate the second number of times the second delay signal is generated, and output a second counting signal to the latch module when the second number is greater than or equal to a second value; The latch module outputs the second indication signal through a first output terminal of the latch module based on the second counting signal.
6. The switching circuit according to claim 5, characterized in that: The DCDC includes a synchronous tube, and the second delay module includes a second delay unit and a logic unit; The input end of the second delay unit and the first input end of the logic unit are used to receive the control signal of the synchronization tube, the output end of the second delay unit is connected to the second input end of the logic unit, and the third input end of the logic unit is connected to the third output end of the latch module; Wherein, the second delay unit generates a third delay signal to the logic unit based on the control signal of the synchronization tube and the second time value; The logic unit is used to output the second delay signal to the second counting module according to the control signal of the synchronization tube, the third delay signal and the output signal of the third output end of the latch module, and the output signal of the third output end of the latch module is opposite in level to the output signal of the second output end of the latch module.
7. The switching circuit according to claim 6, characterized in that: The second delay unit includes: a rising edge delay subunit, a first falling edge delay subunit, a NOT gate and a NOR gate; The input end of the rising edge delay subunit is used to receive the control signal of the synchronization tube, the output end of the rising edge delay subunit is respectively connected to the input end of the first falling edge delay subunit and the first input end of the NOR gate, the output end of the first falling edge delay subunit is connected to the input end of the NOR gate, the output end of the NOR gate is connected to the second input end of the NOR gate, and the output end of the NOR gate is connected to the second input end of the logic unit.
8. The switching circuit according to claim 6, characterized in that: The logic unit includes an AND gate; The first input end of the AND gate is used to receive the control signal of the synchronization tube, the second input end of the AND gate is connected to the output end of the second delay unit, the third input end of the AND gate is connected to the third output end of the latch module, and the output end of the AND gate is connected to the input end of the second counting module.
9. The switching circuit according to claim 7, characterized in that: The second counting module includes K second DFFs; The clock input terminal of the first second DFF is connected to the first output terminal of the second delay module, the reverse data output terminal of the kth second DFF is respectively connected to the data input terminal of the kth second DFF and the clock input terminal of the (k+1)th second DFF, the data output terminal of the Kth second DFF is connected to the second input terminal of the latch module, and the set terminals of each second DFF are connected to the second output terminal of the second delay module; The first output end of the second delay module is the output end of the logic unit, the second output end of the second delay module is the output end of the first falling edge delay sub-unit, and K and the second value M2 have the following relationship: M2=2 K-1 ; K is an integer greater than or equal to 1, and 1≤k<K.
10. A switching method, characterized in that: Applied to DCDC, the DCDC includes the switching circuit according to any one of claims 1 to 9, the switch tube of the DCDC includes a synchronous tube and a rectifier tube, and the switching method includes: Acquire a switching period and a first time value determined based on a control signal of the synchronization tube and a control signal of the rectifier tube; Determine a first number of times that a switching period determined based on a control signal of the synchronization tube and a control signal of the rectifier tube is continuously greater than the first time value; If the first number is greater than or equal to a first value, the DCDC is controlled to switch from a normal mode to a low power consumption mode.
11. The switching method according to claim 10, characterized in that: The method further comprises: Get the second time value; If the switching period determined based on the control signal of the synchronous tube is less than the second time value, the DCDC is controlled to switch from the low power consumption mode to the normal mode.
12. The switching method according to claim 11, characterized in that: If the switching period determined based on the control signal of the synchronous tube is less than the second time value, controlling the DCDC to switch from the low power consumption mode to the normal mode includes: Determine a second number of times that a switching period determined based on a control signal of the synchronization tube is less than the second time value; If the second number is greater than or equal to a second value, the DCDC is controlled to switch from a low power consumption mode to a normal mode.
13. The switching method according to any one of claims 10 to 12, characterized in that: The method further comprises: Obtaining the output voltage, dropout voltage and reference voltage of the DCDC; Obtaining an adjustment voltage according to the output voltage and the drop voltage; According to the adjustment voltage and the reference voltage, the DCDC is controlled to switch from a normal mode to a low power consumption mode.
14. The switching method according to claim 13, characterized in that: The method further comprises: A control signal is output to the synchronous tube according to the output voltage and the reference voltage.
15. A control device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 10 to 14.
16. A DCDC, characterized in that: Includes the switching circuit as described in any one of claims 1-9, or includes the control device as described in claim 15.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 10 to 14.
