Switching power supply primary feedback device and switching power supply primary feedback control method
By using primary feedback method in the switching power supply, the transformer primary winding voltage is collected and compared, and the dynamic adjustment of the input voltage is achieved, which solves the problems of complex feedback loops and poor dynamic responses in the existing technology, and improves the dynamic response of the switching power supply. Effect.
Patent Information
- Application Number
- CN202410984854.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-01
AI Technical Summary
In the existing switching power supply flyback technology, the feedback loop is complex, there are many components, high costs, and has poor dynamic response. It can only detect the secondary voltage during the primary switching tube shutdown, and the dynamic response is poor.
The primary feedback method is adopted, and the transformer's primary winding voltage is collected through the sampling circuit, the selection circuit compares the two voltages, the switch control circuit determines the feedback signal type based on the comparison results, triggers the switch tube to turn on, and sends the target primary winding voltage to the power supply control chip to realize Dynamic adjustment of the input voltage.
The feedback circuit is simplified, the number of components is reduced, the cost is reduced, and the dynamic response effect is improved. The secondary voltage can be detected when the switch tube is turned on and off, which improves the dynamic response difference.
Smart Images

Figure CN118889864A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of switching power supplies, and in particular to a switching power supply primary feedback device and a switching power supply primary feedback control method. Background Art
[0002] Currently, most flyback switching power supplies use a secondary-side feedback solution, using optocouplers and TL431 as feedback loops to collect the output voltage back to the power control chip. This solution has a complex circuit, many components, low reliability, high cost, and occupies a large PCB wiring area. Figure 1 is a schematic diagram of a secondary feedback circuit of a switching power supply in the prior art, such as Figure 1 As shown in the circuit diagram, when the system is powered on, the output voltage is divided by the voltage divider circuit and then compared with the diode D2 (TL431), and then the feedback signal is output through the optocoupler isolation. This scheme of optocoupler isolation device and TL431 requires an optocoupler drive circuit and a TL431 drive and compensation circuit ( Figure 1 (not shown), the circuit is relatively complex and the reliability is low.
[0003] There is also the use of auxiliary winding for feedback, which can also be classified as primary side feedback. This solution can only indirectly reflect the secondary output voltage when the primary switch is turned off. The dynamic response is relatively low. At the same time, due to the limitations of some transformer skeletons, the auxiliary winding is difficult to wind or the skeleton pins are insufficient. Figure 2 is a schematic diagram of a primary auxiliary winding feedback circuit of a switching power supply in the prior art, such as Figure 2 As shown in the circuit diagram, when the system is powered on, MOS tube Q1 is turned on, at this time, the secondary winding and auxiliary winding voltages are mapped by the primary winding, and the auxiliary winding voltage cannot well feedback the secondary winding voltage; MOS tube Q2 is turned off, at this time, the auxiliary winding and the secondary winding form a transformer, and the auxiliary winding voltage is mapped by the secondary winding. At this stage, the auxiliary winding voltage can detect the secondary winding voltage. Due to the addition of the auxiliary winding, D is the same as the primary winding, eliminating the optocoupler and TL431 devices and other circuits, but increasing the size of the transformer. At the same time, the secondary voltage can only be projected when the MOS tube is turned off, and the collection feedback is poor, and the dynamic performance is poor.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a primary feedback device of a switching power supply and a primary feedback control method of a switching power supply, so as to at least solve the technical problem in the related art that the switching power supply can only detect the secondary voltage during the period when the primary switch tube is turned off and has poor dynamic response.
[0006] According to one aspect of an embodiment of the present invention, a primary feedback device of a switching power supply is provided, comprising: a sampling circuit, for collecting a primary winding voltage of a transformer in a switching power supply within a predetermined time period; a selection circuit, connected to the sampling circuit, for comparing two primary winding voltages received after receiving the primary winding voltage collected by the sampling circuit to obtain a first comparison result; a switch control circuit, connected to the sampling circuit and the selection circuit, for determining a signal type of a feedback signal to be output according to a magnitude relationship between the two primary winding voltages in the first comparison result, and triggering a corresponding switch in the selection circuit to turn on according to the signal type, so as to send a target primary winding voltage of the two primary winding voltages collected by the sampling circuit to a power control chip, wherein the power control chip is a chip provided in the switch control circuit; the power control chip, for comparing the target primary winding voltage with a primary winding voltage threshold after receiving the target primary winding voltage to obtain a second comparison result, and adjusting the input voltage of the switching power supply according to the second comparison result.
[0007] Optionally, the sampling circuit includes: a first voltage acquisition subcircuit, connected to the primary winding of the transformer, and used to acquire a first primary winding voltage of the primary winding; and a second voltage acquisition subcircuit, connected to the primary winding of the transformer, and used to acquire a second primary winding voltage of the primary winding.
[0008] Optionally, the first voltage acquisition subcircuit includes: a first resistor and a second resistor, the first resistor is connected to the second resistor, the second resistor is connected to the primary winding, and is used to acquire the first primary winding voltage; the second voltage acquisition subcircuit includes a third resistor and a fourth resistor, the third resistor is connected to the fourth resistor, the fourth resistor is connected to the primary winding, and is used to acquire the second primary winding voltage.
[0009] Optionally, the selection circuit includes: a comparator connected to the first voltage acquisition sub-circuit and the second voltage acquisition sub-circuit, used to receive the first primary winding voltage acquired by the first voltage acquisition sub-circuit and the second primary winding voltage acquired by the second voltage acquisition sub-circuit, and compare the first primary winding voltage with the second primary winding voltage to obtain the first comparison result; a first transistor connected to the comparator, used to enter a conduction state when the first comparison result indicates that the first primary winding voltage is greater than the second primary winding voltage, and send the first primary winding voltage to the power control chip; a second transistor connected to the comparator, used to enter a conduction state when the first comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage, and send the second primary winding voltage to the power control chip.
[0010] Optionally, the switch control circuit includes: the power supply control chip, connected to the first transistor and the second transistor, and used to trigger the first transistor or the second transistor to turn on according to the first comparison result of the comparator, so as to obtain the target primary winding voltage among the two primary winding voltages collected by the sampling circuit through the first transistor or the second transistor; a third transistor, connected to the transformer, entering the on state after the system where the switching power supply is located is powered on, so that the transformer enters the excitation stage; after the excitation stage ends, entering the off state.
[0011] Optionally, the power control chip includes: a feedback pin connected to the first transistor and the second transistor, and used to receive the target primary winding voltage from the two primary winding voltages collected by the sampling circuit through the first transistor or the second transistor; a switch pin connected to the third transistor, and used to output a pulse width modulation signal corresponding to the target primary winding voltage when the third transistor is turned on.
[0012] Optionally, the power control chip is also used to increase the pulse width modulation signal to increase the output voltage of the switching power supply when the feedback signal corresponding to the target primary winding voltage is lower than the feedback signal threshold; and to reduce the pulse width modulation signal to reduce the output voltage of the switching power supply when the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold.
[0013] According to another aspect of an embodiment of the present invention, a primary feedback control method for a switching power supply is provided, which is applied to any one of the primary feedback devices for the switching power supply described above, and comprises: collecting the primary winding voltage of the transformer in the switching power supply within a predetermined time period through a sampling circuit in the initial feedback device for the switching power supply; after receiving the primary winding voltage, the selection circuit in the initial feedback device for the switching power supply compares the two primary winding voltages received to obtain a first comparison result; determining the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result through a switch control circuit in the feedback device for the switching power supply, and triggering the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage of the two primary winding voltages collected by the sampling circuit to a power control chip, wherein the power control chip is a chip provided in the switch control circuit; comparing the target primary winding voltage with the primary winding voltage threshold through the power control chip to obtain a second comparison result, and adjusting the input voltage of the switching power supply according to the second comparison result.
[0014] Optionally, after the selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, the two received primary winding voltages are compared to obtain a first comparison result, including: comparing the first primary winding voltage with the second primary winding voltage of the two primary winding voltages to obtain the first comparison result, wherein the first primary winding voltage is a voltage divided by a first resistor and a second resistor in the sampling circuit, and the second primary winding voltage is a voltage divided by a third resistor and a fourth resistor in the sampling circuit.
[0015] Optionally, the switch control circuit in the switching power supply feedback device determines the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power supply control chip, including: when the comparison result indicates that the first primary winding voltage is greater than the second primary winding voltage, determining that the signal type of the feedback signal to be output is a low level, and triggering the first transistor in the selection circuit to turn on according to the low level, so as to send the first primary winding voltage as the target primary winding voltage to the power supply control chip; when the comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage, determining that the signal type of the feedback signal to be output is a high level, and triggering the second transistor in the selection circuit to turn on according to the high level, so as to send the second primary winding voltage as the target primary winding voltage to the power supply control chip.
[0016] Optionally, the target primary winding voltage is compared with a primary winding voltage threshold by the power control chip to obtain a second comparison result, and the input voltage of the switching power supply is adjusted according to the second comparison result, including: when the second comparison result indicates that the target primary winding voltage is lower than the feedback signal threshold, increasing the pulse width modulation signal to increase the output voltage of the switching power supply; when the second comparison result indicates that the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold, reducing the pulse width modulation signal to reduce the output voltage of the switching power supply.
[0017] According to another aspect of an embodiment of the present invention, a switching power supply primary feedback control device is provided, which is applied to any one of the above-mentioned switching power supply primary feedback control methods, and includes: a collection unit, which is used to collect the primary winding voltage of the transformer in the switching power supply within a predetermined time period through a sampling circuit in the switching power supply initial feedback device; a comparison unit, which is used to compare the two received primary winding voltages after the selection circuit in the switching power supply initial feedback device receives the primary winding voltage, so as to obtain a first comparison result; a first processing unit, which is used to determine the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result through the switch control circuit in the switching power supply feedback device, and trigger the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage of the two primary winding voltages collected by the sampling circuit to the power supply control chip, wherein the power supply control chip is a chip provided in the switch control circuit; a second processing unit, which is used to compare the target primary winding voltage with the primary winding voltage threshold through the power supply control chip, so as to obtain a second comparison result, and adjust the input voltage of the switching power supply according to the second comparison result.
[0018] Optionally, the comparison unit includes: a comparison module, used to compare the first primary winding voltage with the second primary winding voltage of the two primary winding voltages to obtain the first comparison result, wherein the first primary winding voltage is the voltage divided by the first resistor and the second resistor in the sampling circuit, and the second primary winding voltage is the voltage divided by the third resistor and the fourth resistor in the sampling circuit.
[0019] Optionally, the first processing unit includes: a first determination module, used to determine that the signal type of the feedback signal to be output is a low level when the comparison result indicates that the first primary winding voltage is greater than the second primary winding voltage, and trigger the first transistor in the selection circuit to turn on according to the low level, so as to send the first primary winding voltage as the target primary winding voltage to the power control chip; a second determination module, used to determine that the signal type of the feedback signal to be output is a high level when the comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage, and trigger the second transistor in the selection circuit to turn on according to the high level, so as to send the second primary winding voltage as the target primary winding voltage to the power control chip.
[0020] Optionally, the second processing unit includes: a first processing module, used to increase the pulse width modulation signal to increase the output voltage of the switching power supply when the second comparison result indicates that the target primary winding voltage is lower than the feedback signal threshold; and a second processing module, used to reduce the pulse width modulation signal to reduce the output voltage of the switching power supply when the second comparison result indicates that the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold.
[0021] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned primary feedback control methods for a switching power supply.
[0022] According to another aspect of an embodiment of the present invention, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned primary feedback control methods for a switching power supply when running.
[0023] According to another aspect of an embodiment of the present invention, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned primary feedback control methods for a switching power supply is executed.
[0024] In an embodiment of the present invention, a sampling circuit in an initial feedback device of a switching power supply collects a primary winding voltage of a transformer in a switching power supply within a predetermined time period; after a selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, the two received primary winding voltages are compared to obtain a first comparison result; a switch control circuit in the feedback device of the switching power supply determines a signal type of a feedback signal to be output according to a magnitude relationship between the two primary winding voltages in the first comparison result, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send a target primary winding voltage among the two primary winding voltages collected by the sampling circuit to a power control chip, wherein the power control chip is a chip provided in the switch control circuit; the target primary winding voltage is compared with a primary winding voltage threshold by the power control chip to obtain a second comparison result, and the input voltage of the switching power supply is adjusted according to the second comparison result. Through the above-mentioned technical scheme provided by the present invention, the feedback loop of the switching power supply is fed back from the primary side. After collecting the voltage of the primary winding, a voltage feedback signal is provided to the power control chip through the primary feedback circuit to dynamically adjust the input voltage input to the switching power supply, thereby improving the dynamic response effect of the switching power supply, and further solving the technical problem in the related art that the switching power supply can only detect the secondary voltage during the period when the primary switch tube is turned off and has a poor dynamic response. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 It is a schematic diagram of a secondary feedback circuit of a switching power supply in the prior art;
[0027] Figure 2 It is a schematic diagram of a primary auxiliary winding feedback circuit of a switching power supply in the prior art;
[0028] Figure 3 is a schematic diagram of a primary feedback device of a switching power supply according to an embodiment of the present invention;
[0029] Figure 4 is a schematic diagram of an optional primary feedback device of a switching power supply according to an embodiment of the present invention;
[0030] Figure 5 It is a hardware structure block diagram of a mobile terminal of a primary feedback control method of a switching power supply according to an embodiment of the present invention;
[0031] Figure 6 is a flow chart of a primary feedback control method of a switching power supply according to an embodiment of the present invention;
[0032] Figure 7 is a flow chart of an optional switching power supply primary feedback control method according to an embodiment of the present invention;
[0033] Figure 8 is a schematic diagram of a primary feedback control device of a switching power supply according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] As introduced in the background technology, in the related art, the switching power supply can only detect the secondary voltage during the period when the primary switch tube is turned off, and the dynamic response is poor. In view of the above defects, in the embodiments of the present invention, a switching power supply primary feedback device, a switching power supply primary feedback control method and device, a computer readable storage medium, a processor and a computer program product are provided.
[0037] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0038] According to one aspect of an embodiment of the present invention, a primary feedback device for a switching power supply is provided. Figure 3 is a schematic diagram of a primary feedback device of a switching power supply according to an embodiment of the present invention. Figure 3 As shown, including:
[0039] The sampling circuit 301 is used to collect the primary winding voltage of the transformer in the switching power supply within a predetermined time period.
[0040] In this embodiment, after the system is powered on, the sampling circuit 301 can be used to collect the primary winding voltage of the transformer in the switching power supply within a predetermined time period.
[0041] The primary winding voltage here refers to the voltage generated on the primary winding of the transformer, which depends on the voltage of the input power supply and the transformation ratio of the transformer.
[0042] The selection circuit 303 is connected to the sampling circuit 301 and is used for comparing the two received primary winding voltages after receiving the primary winding voltage collected by the sampling circuit to obtain a first comparison result.
[0043] In this embodiment, the selection circuit 303 can be connected to the sampling circuit 301, so that after receiving the primary winding voltage collected by the sampling circuit, the selection circuit can compare the two received primary winding voltages, thereby obtaining the size relationship between the two primary winding voltages, and then facilitating the determination of the size of the voltage that needs to be input to the transformer subsequently.
[0044] The switch control circuit 305 is connected to the sampling circuit and the selection circuit, and is used to determine the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result, and trigger the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power control chip, wherein the power control chip is a chip set in the switch control circuit.
[0045] In this embodiment, the switch control circuit 305 can be connected to the sampling circuit 301 and the selection circuit 303, so that the switch control circuit can determine the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages determined above, and then determine the conduction state of the corresponding switch in the selection circuit to send the corresponding primary winding voltage to the power control chip.
[0046] The power control chip 3051 is used to compare the target primary winding voltage with the primary winding voltage threshold after receiving the target primary winding voltage, obtain a second comparison result, and adjust the input voltage of the switching power supply according to the second comparison result.
[0047] In this embodiment, after receiving the target primary winding voltage, the power control chip 3051 may compare the target primary winding voltage with the primary winding voltage threshold, and then adjust the input voltage of the switching power supply.
[0048] The primary winding voltage threshold may be a threshold preset according to actual conditions.
[0049] As can be seen from the above, in the embodiment of the present invention, a sampling circuit, a selection circuit and a switch control circuit can be set in the primary feedback device of the switching power supply, so as to use the sampling circuit to collect the primary winding voltage of the transformer in the switching power supply within a predetermined time period; after receiving the primary winding voltage collected by the sampling circuit, the selection circuit connected to the sampling circuit compares the two primary winding voltages received to obtain a first comparison result; and the switch control circuit connected to the sampling circuit and the selection circuit determines the signal type of the feedback signal to be output according to the magnitude relationship of the two primary winding voltages in the first comparison result, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to output the sampling circuit to the primary winding voltage. The circuit collects the target primary winding voltage from the two primary winding voltages and sends it to the power control chip, wherein the power control chip is a chip set in the switch control circuit; the power control chip can also be used to compare the target primary winding voltage with the primary winding voltage threshold after receiving the target primary winding voltage to obtain a second comparison result, and adjust the input voltage of the switching power supply according to the second comparison result, thereby realizing the feedback loop of the switching power supply from the primary feedback. After collecting the voltage of the primary winding, a voltage feedback signal is provided to the power control chip through the primary feedback circuit, so as to dynamically adjust the input voltage input to the switching power supply, thereby improving the dynamic response effect of the switching power supply.
[0050] Therefore, the above technical solution provided by the embodiment of the present invention solves the technical problem in the related art that the switching power supply can only detect the secondary voltage during the period when the primary switch tube is turned off and has poor dynamic response.
[0051] According to the above embodiment of the present invention, the sampling circuit may include: a first voltage acquisition sub-circuit, connected to the primary winding of the transformer, and used to acquire a first primary winding voltage of the primary winding; a second voltage acquisition sub-circuit, connected to the primary winding of the transformer, and used to acquire a second primary winding voltage of the primary winding.
[0052] Figure 4 is a schematic diagram of an optional primary feedback device of a switching power supply according to an embodiment of the present invention, such as Figure 4 As shown, the sampling circuit may include a first voltage acquisition subcircuit composed of a first resistor R1 and a second resistor R2, and a second voltage acquisition subcircuit composed of a third resistor R3 and a fourth resistor R4. The first voltage acquisition subcircuit here can acquire a first primary winding voltage of the primary winding, and the second voltage acquisition subcircuit here can acquire a second primary winding voltage of the primary winding.
[0053] In the above embodiment, the first voltage acquisition subcircuit includes: a first resistor and a second resistor, the first resistor is connected to the second resistor, the second resistor is connected to the primary winding, and is used to acquire the first primary winding voltage; the second voltage acquisition subcircuit includes a third resistor and a fourth resistor, the third resistor is connected to the fourth resistor, the fourth resistor is connected to the primary winding, and is used to acquire the second primary winding voltage.
[0054] As above Figure 4 As shown, the sampling circuit is mainly composed of resistors R1, R2, R3, and R4, and is used to detect the primary winding voltage of the transformer T1 in each time period (ie, a predetermined time period).
[0055] According to the above embodiment of the present invention, the above selection circuit may include: a comparator, connected to the first voltage acquisition sub-circuit and the second voltage acquisition sub-circuit, used to receive the first primary winding voltage acquired by the first voltage acquisition sub-circuit and the second primary winding voltage acquired by the second voltage acquisition sub-circuit, and compare the first primary winding voltage with the second primary winding voltage to obtain a first comparison result; a first transistor, connected to the comparator, used to enter a conduction state when the first comparison result indicates that the first primary winding voltage is greater than the second primary winding voltage, and send the first primary winding voltage to the power control chip; a second transistor, connected to the comparator, used to enter a conduction state when the first comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage, and send the second primary winding voltage to the power control chip.
[0056] like Figure 4 As shown, the selection circuit here mainly includes: a comparator U1, a PMOS tube Q2 (i.e., a first transistor) and an NMOS tube Q3 (i.e., a second transistor). The comparator U1 can compare the voltage V1 (i.e., the first primary winding voltage) obtained by dividing the resistors R1 and R2 and the voltage V2 (i.e., the second primary winding voltage) obtained by dividing the resistors R3 and R4.
[0057] When V1 is greater than V2, the PMOS tube Q2 enters the on state and sends V1 to the power control chip; otherwise, the NMOS tube Q3 is controlled to enter the on state and send V2 to the power control chip.
[0058] According to the above embodiment of the present invention, the switch control circuit includes: a power supply control chip, connected to the first transistor and the second transistor, and used to trigger the first transistor or the second transistor to turn on according to the first comparison result of the comparator, so as to obtain the target primary winding voltage among the two primary winding voltages collected by the sampling circuit through the first transistor or the second transistor; a third transistor, connected to the transformer, enters the on state after the system where the switching power supply is located is powered on, so that the transformer enters the excitation stage; after the excitation stage ends, enters the off state.
[0059] like Figure 4 As shown, the switch control circuit (i.e., the execution circuit) includes a power control chip U2 and a MOS tube Q1, which can be used to receive a feedback signal. Specifically, the power control chip U2 can trigger the PMOS tube Q2 or the NMOS tube Q3 to turn on according to the comparison result of the comparator U1, so as to obtain V1 or V2 through the PMOS tube Q2 or the NMOS tube Q3.
[0060] According to the above embodiment of the present invention, the power control chip may include: a feedback pin connected to the first transistor and the second transistor, used to receive the sampling circuit through the first transistor or the second transistor to collect the target primary winding voltage in the two primary winding voltages; a switch pin connected to the third transistor, used to output a pulse width modulation signal corresponding to the target primary winding voltage when the third transistor is turned on.
[0061] like Figure 4 As shown, the power control chip U2 may include a feedback pin FB and a switch pin SW; when the system is powered on, the MOS tube Q1 is turned on, and at this time, due to the effect of the output rectifier diode, the secondary winding has no current, and the primary winding voltage is the secondary winding voltage divided by the turns ratio. The polarity of the primary winding voltage is positive at the same end, that is, the voltage divided by the resistors R1 and R2 is high; similarly, the voltage detected by R3 and R4 is low, that is, V1>V2 on the comparator, the comparison output is low, the PMOS tube Q2 is turned on, and the voltage collected by R1 and R2 is sent to the feedback pin FB of the chip U2 through Q2.
[0062] After the transformer is magnetized, the MOS tube Q1 is turned off. At this time, the secondary winding is used as a power supply to charge the capacitor C1 through the rectifier diode D1 and provide an output voltage. There is no current in the primary winding, and the voltage is reflected from the secondary. The voltage at the same end is negative, that is, the voltage divided by the resistors R1 and R2 is low; similarly, the voltage detected by R3 and R4 is high, that is, V1≤V2 on the comparator, the comparison output is high, the NMOS tube Q3 is turned on, and the voltage collected by R3 and R4 is sent to the feedback pin FB of the chip U2 through Q3.
[0063] The switch pin SW can output a pulse width modulation PWM signal corresponding to V1 or V2.
[0064] According to the above embodiment of the present invention, the power supply control chip is also used to increase the pulse width modulation signal to increase the output voltage of the switching power supply when the feedback signal corresponding to the target primary winding voltage is lower than the feedback signal threshold; and to reduce the pulse width modulation signal to reduce the output voltage of the switching power supply when the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold.
[0065] In this embodiment, after one cycle is completed, the MOS tube Q1 continues to be turned on to enter the next cycle.
[0066] The power control chip U2 collects feedback signals through the FB pin and controls the SW pin to output a suitable PWM signal; if the feedback signal is lower than the threshold (ie, the feedback signal threshold), the duty cycle is increased; otherwise, the duty cycle is reduced.
[0067] Through the technical solutions provided in the above embodiments of the present invention, a sampling circuit, a comparison circuit, a selection circuit and an execution circuit can be set in the primary feedback device of the switching power supply. Figure 4 As shown, the sampling circuit is mainly composed of resistors R1, R2, R3, and R4, which are used to detect the primary winding voltage of the transformer T1 in each time period; the selection circuit is composed of a comparator U2, a PMOS tube Q2, and an NMOS tube Q3, which are used to compare the two voltages collected by the sampling circuit, determine the positive and negative of the primary winding voltage, transmit the positive voltage to the chip through the MOS tube, and cut off the other voltage; the execution circuit is composed of a power control chip U2 and a MOS tube Q1, which are used to receive feedback signals and output appropriate PWM wave control signals.
[0068] The primary feedback device of the switching power supply can use the primary winding for feedback, detect the secondary winding voltage in the whole cycle, and detect and feedback the secondary output voltage in the whole time period when the secondary winding has current, that is, the primary feedback can reflect the secondary winding voltage in the whole cycle, and reflect the output voltage during the existence of the secondary current, eliminating the auxiliary winding and having a wide range of applications. This method feeds back the switching power supply feedback loop from the primary, collects the primary voltage, and provides a voltage feedback signal to the power control chip through the primary feedback circuit. This method has a simple circuit, few components, low cost, high reliability, and a small transformer size. The secondary voltage can be collected when the switch tube is turned on and off, which greatly improves the problem of poor dynamic response.
[0069] Therefore, the above technical solution provided by the embodiment of the present invention solves the following problems: 1) The feedback loop of the flyback switching power supply is complex, the reliability is low, and the cost is high; 2) When the primary side feedback is used, due to the limitation of the transformer skeleton, the skeleton needs to be replaced or other power supply circuits need to be added; 3) When the primary side feedback is improved, the power supply can only detect the secondary voltage during the period when the primary switch tube is turned off, and the dynamic response is poor. At the same time, it has the following beneficial effects: 1) The feedback loop is built by the primary feedback method. Since the feedback is performed at the primary level, isolation is not required, and the complex feedback circuit of the secondary side feedback is omitted; 2) The primary feedback is directly used, and there is no need to wind the auxiliary winding on the transformer for feedback, which can effectively reduce the size of the transformer and effectively solve the PCB space limitation or transformer skeleton limitation; 3) The primary feedback is directly used, and the secondary voltage can be fed back when the switch tube is turned off and turned on. Compared with the auxiliary winding feedback, the problem of poor dynamic response is greatly improved.
[0070] The method embodiments provided in the embodiments of the present invention can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 5 1 is a hardware structure block diagram of a mobile terminal of a switching power supply primary feedback control method according to an embodiment of the present invention. Figure 5 As shown, the mobile terminal may include one or more ( Figure 5 Only one is shown in the figure) a processor 502 (the processor 502 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 504 for storing data, wherein the mobile terminal may also include a transmission device 506 and an input / output device 508 for communication functions. It can be understood by those skilled in the art that Figure 5 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 5 More or fewer components as shown, or with Figure 5 Different configurations shown.
[0071] The memory 504 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the primary feedback control method of the switching power supply in the embodiment of the present invention. The processor 502 executes various functional applications and data processing by running the computer program stored in the memory 504, that is, the above method is implemented. The memory 504 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 504 may further include a memory remotely arranged relative to the processor 502, and these remote memories can be connected to the mobile terminal via a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 506 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 506 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 506 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0072] According to an embodiment of the present invention, a method embodiment of a primary feedback control method for a switching power supply is provided. It should be noted that the primary feedback device of a switching power supply applied to any of the above items, the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and, although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that herein.
[0073] Figure 6 is a flow chart of a primary feedback control method of a switching power supply according to an embodiment of the present invention. Figure 6 As shown, the method comprises the following steps:
[0074] Step S602 : collecting the primary winding voltage of the transformer in the switching power supply within a predetermined time period through a sampling circuit in the initial feedback device of the switching power supply.
[0075] In this embodiment, after the system is powered on, a sampling circuit may be used to collect the primary winding voltage of the transformer in the switching power supply within a predetermined time period.
[0076] Step S604: after the selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, the two received primary winding voltages are compared to obtain a first comparison result.
[0077] In this embodiment, the selection circuit can be connected to the sampling circuit, so that after receiving the primary winding voltage collected by the sampling circuit, the selection circuit can compare the two received primary winding voltages, thereby obtaining the size relationship between the two primary winding voltages, and then facilitating the determination of the size of the voltage that needs to be input to the transformer subsequently.
[0078] Step S606, the switch control circuit in the switching power supply feedback device determines the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power supply control chip, wherein the power supply control chip is a chip set in the switch control circuit.
[0079] In this embodiment, the switch control circuit can be connected to the sampling circuit and the selection circuit, so that the switch control circuit can determine the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages determined above, and then determine the conduction state of the corresponding switch in the selection circuit to send the corresponding primary winding voltage to the power control chip.
[0080] Step S608: Compare the target primary winding voltage with the primary winding voltage threshold through the power control chip to obtain a second comparison result, and adjust the input voltage of the switching power supply according to the second comparison result.
[0081] In this embodiment, after receiving the target primary winding voltage, the power control chip may compare the target primary winding voltage with the primary winding voltage threshold, and then adjust the input voltage of the switching power supply.
[0082] As can be seen from the above, in the embodiment of the present invention, the sampling circuit in the initial feedback device of the switching power supply collects the primary winding voltage of the transformer in the switching power supply within a predetermined time period; after the selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, the two received primary winding voltages are compared to obtain a first comparison result; the switch control circuit in the feedback device of the switching power supply determines the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage in the two primary winding voltages collected by the sampling circuit to the power control chip, wherein the power control chip is a chip set in the switch control circuit; the target primary winding voltage is compared with the primary winding voltage threshold by the power control chip to obtain a second comparison result, and the input voltage of the switching power supply is adjusted according to the second comparison result, so as to realize the feedback loop of the switching power supply from the primary side, and after collecting the voltage of the primary winding, a voltage feedback signal is provided to the power control chip through the primary feedback circuit, so as to dynamically adjust the input voltage input to the switching power supply, thereby improving the dynamic response effect of the switching power supply.
[0083] Therefore, the above technical solution provided by the embodiment of the present invention solves the technical problem in the related art that the switching power supply can only detect the secondary voltage during the period when the primary switch tube is turned off and has poor dynamic response.
[0084] According to the above embodiment of the present invention, after the selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, the two received primary winding voltages are compared to obtain a first comparison result, including: comparing the first primary winding voltage with the second primary winding voltage of the two primary winding voltages to obtain the first comparison result, wherein the first primary winding voltage is a voltage divided by the first resistor and the second resistor in the sampling circuit, and the second primary winding voltage is a voltage divided by the third resistor and the fourth resistor in the sampling circuit.
[0085] In this embodiment, the comparator in the selection circuit can compare the first primary winding voltage with the second primary winding voltage of the two primary winding voltages, thereby determining the magnitude of the first primary winding voltage and the second primary winding voltage.
[0086] According to the above embodiment of the present invention, the switch control circuit in the switching power supply feedback device determines the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power supply control chip, including: when the comparison result indicates that the first primary winding voltage is greater than the second primary winding voltage, determining that the signal type of the feedback signal to be output is a low level, and triggering the first transistor in the selection circuit to turn on according to the low level, so as to send the first primary winding voltage as the target primary winding voltage to the power supply control chip; when the comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage, determining that the signal type of the feedback signal to be output is a high level, and triggering the second transistor in the selection circuit to turn on according to the high level, so as to send the second primary winding voltage as the target primary winding voltage to the power supply control chip.
[0087] In this embodiment, when the comparator determines that the voltage of the first primary winding is not greater than the voltage of the second primary winding, the feedback signal to be output is determined to be a high level, thereby controlling the second transistor in the selection circuit to be turned on to send the second primary winding voltage to the power control chip; otherwise, the feedback signal to be output is determined to be a low level, thereby controlling the first transistor in the selection circuit to be turned on, and the first primary winding voltage is sent to the power control chip.
[0088] According to the above embodiment of the present invention, the target primary winding voltage is compared with the primary winding voltage threshold through the power control chip to obtain a second comparison result, and the input voltage of the switching power supply is adjusted according to the second comparison result, including: when the second comparison result indicates that the target primary winding voltage is lower than the feedback signal threshold, the pulse width modulation signal is increased to increase the output voltage of the switching power supply; when the second comparison result indicates that the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold, the pulse width modulation signal is reduced to reduce the output voltage of the switching power supply.
[0089] In this embodiment, when it is determined that the first primary winding voltage or the second primary winding voltage is lower than the feedback signal threshold, the pulse width modulation signal PWM can be increased to increase the output voltage of the switching power supply; otherwise, the pulse width modulation signal is reduced to reduce the output voltage of the switching power supply.
[0090] Figure 7 is a flow chart of an optional switching power supply primary feedback control method according to an embodiment of the present invention, such as Figure 7As shown, when the system is powered on, the MOS tube Q1 (the third transistor in the execution circuit) is turned on. At this time, due to the effect of the output rectifier diode, there is no current in the secondary winding, and the primary winding voltage is the secondary winding voltage divided by the turns ratio. The polarity of the primary winding voltage is positive at the same end, that is, the voltage divided by the resistors R1 and R2 (the first primary winding voltage V1) is high; similarly, the voltage detected by R3 and R4 (the second primary winding voltage V2) is low, that is, V1>V2 on the comparator, the comparison output is low, the PMOS tube Q2 (the first transistor in the selection circuit) is turned on, and the voltage collected by R1 and R2 is sent to the feedback pin FB of the chip U2 (the power control chip in the execution circuit) through Q2.
[0091] After the transformer is magnetized, the MOS tube Q1 is turned off. At this time, the secondary winding is used as a power supply to charge the capacitor C1 through the rectifier diode D1 and provide an output voltage. There is no current in the primary winding, and the voltage is reflected from the secondary. The voltage at the same end is negative, that is, the voltage divided by the resistors R1 and R2 is low; similarly, the voltage detected by R3 and R4 is high, that is, V1≤V2 on the comparator, and the comparison output is high. The NMOS tube Q3 (the second transistor in the selection circuit) is turned on, and the voltage collected by R3 and R4 is sent to the feedback pin FB of the chip U2 through Q3.
[0092] It should be noted that after a cycle is completed, the MOS tube Q1 continues to conduct and enters the next cycle. The power control chip U2 collects the feedback signal through the FB pin and controls the SW to output a suitable PWM signal. If the feedback signal is lower than the threshold, the duty cycle is increased, otherwise the duty cycle is reduced.
[0093] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0095] According to an embodiment of the present invention, a switching power supply primary feedback control device for implementing the above-mentioned switching power supply primary feedback control method is also provided. Figure 8 is a schematic diagram of a primary feedback control device of a switching power supply according to an embodiment of the present invention. Figure 8 As shown, the switching power supply primary feedback control device comprises: a collection unit 801, a comparison unit 803, a first processing unit 805 and a second processing unit 807. The switching power supply primary feedback control device is described in detail below.
[0096] The acquisition unit 801 is used to acquire the primary winding voltage of the transformer in the switching power supply within a predetermined time period through a sampling circuit in the initial feedback device of the switching power supply.
[0097] The comparison unit 803 is used to compare the two received primary winding voltages after the selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, so as to obtain a first comparison result.
[0098] The first processing unit 805 is used to determine the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result through the switch control circuit in the switching power supply feedback device, and trigger the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power supply control chip, wherein the power supply control chip is a chip set in the switch control circuit.
[0099] The second processing unit 807 is used to compare the target primary winding voltage with the primary winding voltage threshold through the power control chip to obtain a second comparison result, and adjust the input voltage of the switching power supply according to the second comparison result.
[0100] It should be noted here that the above-mentioned acquisition unit 801, comparison unit 803, first processing unit 805 and second processing unit 807 correspond to steps S602 to S608 in the above-mentioned embodiments, and the four units and the corresponding steps implement the same instances and application scenarios, but are not limited to the contents disclosed in the above-mentioned embodiments.
[0101] As can be seen from the above, in the scheme recorded in the above-mentioned embodiment of the present invention, the acquisition unit can be used to collect the primary winding voltage of the transformer in the switching power supply within a predetermined time period through the sampling circuit in the initial feedback device of the switching power supply; after the selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, the comparison unit compares the two received primary winding voltages to obtain a first comparison result; the first processing unit determines the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result through the switch control circuit in the feedback device of the switching power supply, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to output the feedback signal. The sampling circuit collects the target primary winding voltage from the two primary winding voltages and sends it to the power control chip, wherein the power control chip is a chip set in the switch control circuit; the second processing unit compares the target primary winding voltage with the primary winding voltage threshold through the power control chip to obtain a second comparison result, and adjusts the input voltage of the switching power supply according to the second comparison result, thereby realizing the feedback loop of the switching power supply from the primary feedback. After collecting the voltage of the primary winding, a voltage feedback signal is provided to the power control chip through the primary feedback circuit, so as to dynamically adjust the input voltage input to the switching power supply, thereby improving the dynamic response effect of the switching power supply.
[0102] Therefore, the above technical solution provided by the embodiment of the present invention solves the technical problem in the related art that the switching power supply can only detect the secondary voltage during the period when the primary switch tube is turned off and has poor dynamic response.
[0103] Optionally, the comparison unit includes: a comparison module, used to compare the first primary winding voltage with the second primary winding voltage of the two primary winding voltages to obtain a first comparison result, wherein the first primary winding voltage is the voltage divided by the first resistor and the second resistor in the sampling circuit, and the second primary winding voltage is the voltage divided by the third resistor and the fourth resistor in the sampling circuit.
[0104] Optionally, the first processing unit includes: a first determination module, which is used to determine that the signal type of the feedback signal to be output is a low level when the comparison result indicates that the first primary winding voltage is greater than the second primary winding voltage, and trigger the first transistor in the selection circuit to turn on according to the low level, so as to send the first primary winding voltage as the target primary winding voltage to the power control chip; a second determination module, which is used to determine that the signal type of the feedback signal to be output is a high level when the comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage, and trigger the second transistor in the selection circuit to turn on according to the high level, so as to send the second primary winding voltage as the target primary winding voltage to the power control chip.
[0105] Optionally, the second processing unit includes: a first processing module, used to increase the pulse width modulation signal to increase the output voltage of the switching power supply when the second comparison result indicates that the target primary winding voltage is lower than the feedback signal threshold; a second processing module, used to reduce the pulse width modulation signal to reduce the output voltage of the switching power supply when the second comparison result indicates that the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold.
[0106] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium comprising a stored program, wherein the program executes any one of the above-mentioned primary feedback control methods for a switching power supply.
[0107] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the communication devices in a communication device group.
[0108] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: collecting the primary winding voltage of the transformer in the switching power supply within a predetermined time period through a sampling circuit in an initial feedback device of the switching power supply; after the selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, comparing the two received primary winding voltages to obtain a first comparison result; determining the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result through a switch control circuit in the feedback device of the switching power supply, and triggering the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power control chip, wherein the power control chip is a chip set in the switch control circuit; comparing the target primary winding voltage with the primary winding voltage threshold through the power control chip to obtain a second comparison result, and adjusting the input voltage of the switching power supply according to the second comparison result.
[0109] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: comparing a first primary winding voltage with a second primary winding voltage of two primary winding voltages to obtain a first comparison result, wherein the first primary winding voltage is a voltage divided by a first resistor and a second resistor in a sampling circuit, and the second primary winding voltage is a voltage divided by a third resistor and a fourth resistor in the sampling circuit.
[0110] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: when the comparison result indicates that the first primary winding voltage is greater than the second primary winding voltage, determining that the signal type of the feedback signal to be output is a low level, and triggering the first transistor in the selection circuit to turn on according to the low level, so as to send the first primary winding voltage as the target primary winding voltage to the power control chip; when the comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage, determining that the signal type of the feedback signal to be output is a high level, and triggering the second transistor in the selection circuit to turn on according to the high level, so as to send the second primary winding voltage as the target primary winding voltage to the power control chip.
[0111] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: when the second comparison result indicates that the target primary winding voltage is lower than the feedback signal threshold, increasing the pulse width modulation signal to increase the output voltage of the switching power supply; when the second comparison result indicates that the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold, reducing the pulse width modulation signal to reduce the output voltage of the switching power supply.
[0112] According to another aspect of an embodiment of the present invention, a processor is provided, and the processor is used to run a program, wherein when the program is run, any one of the above-mentioned primary feedback control methods for a switching power supply is executed.
[0113] According to another aspect of an embodiment of the present invention, there is further provided a computer program product, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned primary feedback control methods for a switching power supply is executed.
[0114] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0115] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0116] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, 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 units or modules, which can be electrical or other forms.
[0117] The units described 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0118] In addition, each functional unit in each embodiment of the present invention 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.
[0119] 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 invention, in essence, 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 a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0120] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A primary feedback device for a switching power supply, characterized in that: include: A sampling circuit for collecting the primary winding voltage of the transformer in the switching power supply within a predetermined time period; A selection circuit connected to the sampling circuit, and configured to compare the two primary winding voltages received after receiving the primary winding voltage collected by the sampling circuit, so as to obtain a first comparison result; a switch control circuit, connected to the sampling circuit and the selection circuit, for determining the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result, and triggering the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power control chip, wherein the power control chip is a chip provided in the switch control circuit; The power control chip is used to compare the target primary winding voltage with a primary winding voltage threshold after receiving the target primary winding voltage to obtain a second comparison result, and adjust the input voltage of the switching power supply according to the second comparison result.
2. The switching power supply primary feedback device according to claim 1, characterized in that: The sampling circuit comprises: A first voltage collection subcircuit is connected to the primary winding of the transformer and is used to collect a first path of the primary winding voltage of the primary winding; The second voltage collection subcircuit is connected to the primary winding of the transformer and is used for collecting the second primary winding voltage of the primary winding.
3. The switching power supply primary feedback device according to claim 2, characterized in that: The first voltage acquisition subcircuit includes: a first resistor and a second resistor, the first resistor is connected to the second resistor, the second resistor is connected to the primary winding, and is used to acquire the first primary winding voltage; the second voltage acquisition subcircuit includes a third resistor and a fourth resistor, the third resistor is connected to the fourth resistor, the fourth resistor is connected to the primary winding, and is used to acquire the second primary winding voltage.
4. The switching power supply primary feedback device according to claim 2 or 3, characterized in that: The selection circuit comprises: a comparator connected to the first voltage acquisition subcircuit and the second voltage acquisition subcircuit, configured to receive the first primary winding voltage acquired by the first voltage acquisition subcircuit and the second primary winding voltage acquired by the second voltage acquisition subcircuit, and compare the first primary winding voltage with the second primary winding voltage to obtain the first comparison result; a first transistor connected to the comparator, and configured to send the first primary winding voltage to the power control chip when the first comparison result indicates that the first primary winding voltage is greater than the second primary winding voltage and enters a conducting state; The second transistor is connected to the comparator and is used to send the second primary winding voltage to the power control chip when the first comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage and enters a conducting state.
5. The switching power supply primary feedback device according to claim 4, characterized in that: The switch control circuit comprises: The power control chip is connected to the first transistor and the second transistor, and is used to trigger the first transistor or the second transistor to turn on according to the first comparison result of the comparator, so as to obtain the target primary winding voltage of the two primary winding voltages collected by the sampling circuit through the first transistor or the second transistor; The third transistor is connected to the transformer, and enters the on state after the system where the switching power supply is powered on, so that the transformer enters the excitation stage; after the excitation stage ends, the third transistor enters the off state.
6. The switching power supply primary feedback device according to claim 5, characterized in that: The power control chip comprises: A feedback pin connected to the first transistor and the second transistor, and configured to receive the target primary winding voltage from among the two primary winding voltages collected by the sampling circuit through the first transistor or the second transistor; A switch pin is connected to the third transistor and is used to output a pulse width modulation signal corresponding to the target primary winding voltage when the third transistor is turned on.
7. The switching power supply primary feedback device according to claim 6, characterized in that: The power control chip is also used to increase the pulse width modulation signal to increase the output voltage of the switching power supply when the feedback signal corresponding to the target primary winding voltage is lower than the feedback signal threshold; and to reduce the pulse width modulation signal to reduce the output voltage of the switching power supply when the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold.
8. A primary feedback control method for a switching power supply, characterized in that: The switching power supply primary feedback device used in any one of claims 1 to 7 above comprises: The primary winding voltage of the transformer in the switching power supply within a predetermined time period is collected by a sampling circuit in the switching power supply initial feedback device; After receiving the primary winding voltage, the selection circuit in the initial feedback device of the switching power supply compares the received two primary winding voltages to obtain a first comparison result; The switch control circuit in the switch power supply feedback device determines the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power supply control chip, wherein the power supply control chip is a chip set in the switch control circuit; The target primary winding voltage is compared with a primary winding voltage threshold by the power control chip to obtain a second comparison result, and the input voltage of the switching power supply is adjusted according to the second comparison result.
9. The primary feedback control method of the switching power supply according to claim 8, characterized in that: After receiving the primary winding voltage, the selection circuit in the initial feedback device of the switching power supply compares the received two primary winding voltages to obtain a first comparison result, including: The first primary winding voltage and the second primary winding voltage of the two primary winding voltages are compared to obtain the first comparison result, wherein the first primary winding voltage is a voltage divided by the first resistor and the second resistor in the sampling circuit, and the second primary winding voltage is a voltage divided by the third resistor and the fourth resistor in the sampling circuit.
10. The primary feedback control method of the switching power supply according to claim 9, characterized in that: The switch control circuit in the switch power supply feedback device determines the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result, and triggers the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power supply control chip, including: When the comparison result indicates that the first path of the primary winding voltage is greater than the second path of the primary winding voltage, determining that the signal type of the feedback signal to be output is a low level, and triggering the first transistor in the selection circuit to turn on according to the low level, so as to send the first path of the primary winding voltage as the target primary winding voltage to the power control chip; When the comparison result indicates that the first primary winding voltage is not greater than the second primary winding voltage, it is determined that the signal type of the feedback signal to be output is a high level, and the second transistor in the selection circuit is triggered to turn on according to the high level, so as to send the second primary winding voltage as the target primary winding voltage to the power control chip.
11. The primary feedback control method of the switching power supply according to claim 8, characterized in that: The target primary winding voltage is compared with a primary winding voltage threshold value by the power control chip to obtain a second comparison result, and the input voltage of the switching power supply is adjusted according to the second comparison result, including: When the second comparison result indicates that the target primary winding voltage is lower than the feedback signal threshold, increasing the pulse width modulation signal to increase the output voltage of the switching power supply; When the second comparison result indicates that the feedback signal corresponding to the target primary winding voltage is not lower than the feedback signal threshold, the pulse width modulation signal is reduced to reduce the output voltage of the switching power supply.
12. A primary feedback control device for a switching power supply, characterized in that: The primary feedback control method of a switching power supply applied to any one of claims 8 to 11 above comprises: A collection unit, used to collect the primary winding voltage of the transformer in the switching power supply within a predetermined time period through a sampling circuit in the initial feedback device of the switching power supply; A comparison unit, configured to compare the two primary winding voltages received after the selection circuit in the initial feedback device of the switching power supply receives the primary winding voltage, to obtain a first comparison result; A first processing unit, configured to determine the signal type of the feedback signal to be output according to the magnitude relationship between the two primary winding voltages in the first comparison result through the switch control circuit in the switch power supply feedback device, and trigger the corresponding switch tube in the selection circuit to turn on according to the signal type, so as to send the target primary winding voltage among the two primary winding voltages collected by the sampling circuit to the power supply control chip, wherein the power supply control chip is a chip provided in the switch control circuit; The second processing unit is used to compare the target primary winding voltage with the primary winding voltage threshold through the power control chip to obtain a second comparison result, and adjust the input voltage of the switching power supply according to the second comparison result.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the primary feedback control method of the switching power supply according to any one of claims 8 to 11.
14. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by the processor, the switching power supply primary feedback control method according to any one of claims 8 to 11 is executed.
