Constant current output control circuit, switching power supply controller and switching power supply system
By designing a constant current output control circuit in the switching power supply system, using a capacitor charge and discharge module and a logic control module, the maximum current value of the output when the output goes from constant voltage to constant current mode is achieved, and the current constant is solved when the peak voltage is uncertain. The problem.
Patent Information
- Application Number
- CN202010577870.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-22
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2040-06-22
AI Technical Summary
In various output control modes of the switching power supply system, how to ensure that the maximum output current value is constant when the output enters the constant current mode from the constant voltage, especially when the peak voltage Vcs is uncertain.
A constant current output control circuit is designed, including a secondary side conduction time detection module, a capacitance charge and discharge module, a comparator and a logic control module. The discharge current Idischg=(Vcs-Vref1)/R and the charge current Ichg=Vref1/ R, realize Vcs·Tons/Tsw=Vref1, thereby ensuring the output current is constant.
Under various output control modes of the switching power supply system, even if the peak voltage Vcs is uncertain, the maximum current output value of the system can be ensured to be constant and the constant of the switching power supply output current can be ensured.
Smart Images

Figure CN111585448B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of switching power supplies, and in particular to a constant current output control circuit, a switching power supply controller and a switching power supply. Background Art
[0002] Switching power supply products have been widely used due to their small size, light weight, high power conversion efficiency, etc. For example, the products are used in industrial automation and control equipment, military equipment, scientific research equipment, LED lighting, industrial equipment, communication equipment, electromechanical equipment, instrumentation equipment, medical equipment, semiconductor refrigeration and heating equipment, air purifiers, refrigerators, LCD screens, audio-visual products, computer cases, digital products and other fields.
[0003] The switching power supply is usually mainly composed of a switching controller and a power stage circuit. The switching controller controls the switching state of the main power tube in the power stage circuit so that the switching power supply outputs a basically constant output signal to supply the load, that is, the output of the switching power supply can achieve CV (constant voltage) / CC (constant current) output. For example, when the load is an LED lamp, the switching power supply outputs a constant current signal to drive the LED lamp to work normally. The switching controller usually has an SSR (secondary feedback control) scheme and a PSR (primary feedback control) scheme, wherein the so-called primary feedback control (PSR) scheme, that is, omitting the optocoupler and the secondary side constant voltage and constant current controller, only using the dedicated integrated circuit (that is, the dedicated controller chip) of the primary side of the power converter can achieve constant voltage and constant current control of the output voltage. For example, when the switching power supply is used to drive a light-emitting diode, the constant current output can ensure that the brightness of the light-emitting diode remains constant.
[0004] See also Figure 1 , which is a schematic diagram of a switching power supply system with a constant current output function in the prior art.
[0005] When the primary switch (also called the main power tube) Q1 of the transformer 103 is turned on, the primary peak current is converted into a voltage signal through the peak current detection resistor Rcs to the CS terminal of the first controller 102. The first controller 102 controls the DRI terminal to stop outputting the driving signal according to the voltage of the CS terminal, thereby controlling the primary switch Q1 to turn off.
[0006] The voltage at the FB terminal of the first controller 102 changes with the output voltage Vout, and the voltage on the sampling resistor R2 is input to the FB terminal as the feedback voltage of Vout. After being processed by the internal circuit of the first controller 102, the voltage at the FB terminal generates a signal Tons (referred to as the signal Tons reflecting the secondary side conduction time) reflecting the conduction time of the secondary side switch (which can be called the secondary power tube) Q2. Tons controls the corresponding proportion of the charge and discharge current, which can control the conduction time of the control signal of the primary side switch Q1 next time, thereby adjusting the ratio of Tons / Tsw, where Tsw is the switching period of the primary side switch Q1. Figure 1 The calculation method of the output current Iout of the primary-side controlled switching power supply shown is as follows:
[0007]
[0008] Wherein, Vcs is the peak voltage controlled by the first controller 102; Rcs is the peak resistance of the primary side; Np is the primary winding of the transformer 103; Ns is the secondary winding; Tons is the conduction time of the secondary winding; and Tsw is the system working cycle.
[0009] Please refer to Figure 2 ,when Figure 1 When the switching power supply shown in the figure works in the PFM (pulse frequency modulation) mode, the fixed Vcs and Tons / Tsw are usually preset in advance to ensure the constant output current of the system. This is because, when the system output changes from the constant voltage mode to the constant current mode, the peak voltage Vcs of the system remains unchanged and remains at CSmax. Therefore, as long as (Tons / Tsw) is limited max , it can ensure that the maximum output current of the system remains constant.
[0010] Please refer to Figure 3 As the control mode of CV (constant voltage) / CC (constant current) output of switching power supply system becomes more complex, AM (amplitude modulation), PFM, QR (quasi-resonance) mode and so on appear. Therefore, when the output of the system changes from constant voltage to constant current mode, the current peak voltage Vcs of the system is uncertain. It may be CSmax or not (for example, it may be CS4). Because, in order to ensure that the maximum output current of the system is constant, it is necessary to ensure Constant.
[0011] Therefore, in various output control modes of the switching power supply system, how to make the system output switch from constant voltage to constant current mode, even if Vcs is uncertain, to ensure that the maximum current of the system output remains constant, is a problem that technical personnel in this field need to solve. Summary of the invention
[0012] In view of this, an object of the present invention is to provide a constant current output control circuit, a switching power supply controller and a switching power supply system, which can accurately control the system output current to be a constant current.
[0013] To achieve the above-mentioned purpose, the present invention provides a constant current output control circuit, which is arranged on the primary side of the transformer of the switching power supply, and includes: a secondary side conduction time detection module for generating a signal reflecting the secondary side conduction time of the transformer; a capacitor charging and discharging module for generating a charging and discharging control signal according to a peak voltage corresponding to the primary side, the secondary side conduction time signal and a first reference voltage; a comparator for comparing a second reference voltage with the charging and discharging control signal; a charging and discharging capacitor for charging and discharging according to the charging and discharging control signal; and a logic control module for generating a constant current drive control signal for controlling the primary switch of the primary side according to the output of the comparator; wherein,
[0014] The input end of the secondary side conduction time detection module is connected to the voltage feedback end for feeding back the output voltage change of the secondary side of the transformer, the output end of the secondary side conduction time detection module is connected to the first input end of the capacitor charging and discharging module, the second input end of the capacitor charging and discharging module is connected to the first reference voltage, the third input end of the capacitor charging and discharging module is connected to the peak voltage, the output end of the capacitor charging and discharging module is connected to an input end of the comparator and one end of the charging and discharging capacitor, the other input end of the comparator is connected to the second reference voltage, and the other end of the charging and discharging capacitor is grounded;
[0015] The input end of the logic control module is connected to the output end of the comparator, and the output end of the logic control module is connected to the control end of the primary switch.
[0016] Optionally, the capacitor charging and discharging module includes: a transconductance amplifier, a first switch whose turn-on and turn-off are controlled by the secondary side conduction time signal, a second switch controlled by a complementary signal of the secondary side conduction time signal, and a load capacitor; wherein, one end of the first switch is connected to the peak voltage, the other end of the first switch is connected to one end of the second switch and an input end of the transconductance amplifier, the other input end of the transconductance amplifier is connected to the first reference voltage, the other end of the second switch is grounded, the output end of the transconductance amplifier is connected to one end of the load capacitor, the other end of the load capacitor is grounded, and the output end of the transconductance amplifier serves as the output end of the capacitor charging and discharging module.
[0017] Optionally, the capacitor charging and discharging module includes: a first amplifier, a second amplifier, first to eighth transistors, a first resistor, a second resistor, a main control switch whose on and off is controlled by the secondary side on-time signal, and a load capacitor; wherein one input end of the first amplifier is connected to the peak voltage, the output end of the first amplifier is connected to the control end of the first transistor, the other end of the switch path of the first transistor is connected to the other end of the switch path of the second transistor, the control end of the second transistor and the control end of the third transistor, and one end of the switch path of the first transistor is respectively connected to the other input end of the first amplifier and one end of the first resistor;
[0018] One end of the switch path of the second transistor, one end of the switch path of the third transistor, one end of the switch path of the sixth transistor and one end of the switch path of the seventh transistor are all connected to the same working voltage, and the other end of the switch path of the third transistor is connected to the other end of the switch path of the fourth transistor, the control end of the fourth transistor and the control end of the fifth transistor;
[0019] The other end of the switch path of the sixth transistor is connected to one end of the main control switch and one end of the load capacitor to form the output end of the capacitor charging and discharging module, and the other end of the main control switch is connected to the other end of the switch path of the fifth transistor;
[0020] The control end of the sixth transistor, the control end of the seventh transistor and the other end of the switch path of the seventh transistor are all connected to the other end of the switch path of the eighth transistor, and the control end of the eighth transistor is connected to the output end of the second amplifier;
[0021] One input end of the second amplifier is connected to the first reference voltage, and the other input end of the second amplifier is connected to one end of the switch path of the eighth transistor and one end of the second resistor;
[0022] The other end of the first resistor, one end of the switch path of the fourth transistor, one end of the switch path of the fifth transistor, the other end of the load capacitor and the other end of the second resistor are all grounded.
[0023] Optionally, the capacitor charging and discharging module includes: a first amplifier, a second amplifier, a series resistor, first to fifth transistors, a first switch and a second switch whose turn-on and turn-off are controlled by the secondary side conduction time signal, and a third switch and a fourth switch whose turn-on and turn-off are controlled by a complementary signal of the secondary side conduction time signal; wherein,
[0024] One end of the first switch is connected to the peak voltage, one end of the third switch is connected to the first reference voltage, the other end of the first switch and the other end of the third switch are connected to an input end of the first amplifier, and the output end of the first amplifier is connected to the control end of the first transistor;
[0025] One end of the switch path of the first transistor is respectively connected to one end of the series resistor and the other input end of the first amplifier, and the other end of the switch path of the first transistor is respectively connected to the other end of the switch path of the third transistor, the control end of the third transistor, the control end of the fourth transistor, and the control end of the fifth transistor; one end of the switch path of the third transistor, one end of the switch path of the fourth transistor, and one end of the switch path of the fifth transistor are all connected to the same working voltage, and the other end of the switch path of the fourth transistor and the other end of the switch path of the fifth transistor are connected to each other, and the connection node serves as the output end of the capacitor charging and discharging module;
[0026] The other end of the series resistor is respectively connected to one end of the second switch and one end of the fourth switch, the other end of the fourth switch is grounded, the other end of the second switch is connected to the other end of the switch path of the second transistor and an input end of the second amplifier, one end of the switch path of the second transistor is grounded, the control end of the second transistor is connected to the output end of the second amplifier, and the other input end of the second amplifier is connected to the first reference voltage.
[0027] Optionally, the corresponding transistor in the capacitor charging and discharging module is a triode or a MOS tube; when the transistor is a triode, the control end of the transistor is the base of the triode, one end of the switch path of the transistor is the emitter of the triode, and the other end of the switch path of the transistor is the collector of the triode; when the transistor is a MOS tube, the control end of the transistor is the gate of the MOS tube, one end of the switch path of the transistor is the source of the MOS tube, and the other end of the switch path of the transistor is the drain of the MOS tube.
[0028] Based on the same inventive concept, the present invention also provides a switching power supply controller, including the constant current output control circuit of the present invention.
[0029] Optionally, at least one of the following circuits is further provided inside or outside the switching power supply controller: an input voltage sampling circuit, an output voltage feedback circuit, a drive circuit and a peak detection circuit; wherein the drive circuit is connected to the output end of the logic control module of the constant current output control circuit, the input end of the peak detection circuit and the primary winding of the transformer, the input end of the input voltage sampling circuit is connected to the input voltage of the primary power supply of the transformer, the output end of the input voltage sampling circuit is connected to an input end of the output voltage feedback circuit, the other input end of the output voltage feedback circuit is connected to the primary winding of the transformer, the output end of the output voltage feedback circuit is the voltage feedback end and is connected to the input end of the secondary side conduction time detection module of the constant current output control circuit, and the output end of the peak detection circuit is connected to the third input end of the capacitor charging and discharging circuit of the constant current output control circuit.
[0030] Optionally, the input voltage sampling circuit includes an input sampling resistor and a sampling capacitor, one end of the input sampling resistor serves as the input end of the input voltage sampling circuit and is connected to the input voltage of the primary power supply of the transformer, the other end of the input sampling resistor serves as the output end of the input voltage sampling circuit and is connected to one end of the sampling capacitor and the other input end of the logic control module, and the other end of the sampling capacitor is grounded; the output voltage feedback circuit includes a diode, a first voltage-dividing resistor and a second voltage-dividing resistor, the anode of the diode is connected to one end of a primary winding of the transformer and one end of the first voltage-dividing resistor, the cathode of the diode is connected to the other end of the input sampling resistor, and the The other end of the first voltage-dividing resistor serves as the voltage feedback end and is connected to one end of the second voltage-dividing resistor, and the other end of a primary winding of the transformer and the other end of the second voltage-dividing resistor are grounded; the driving circuit includes a primary switch, the gate of the primary switch is connected to the output end of the logic control module, the drain of the primary switch is connected to one end of the other primary winding of the transformer, and the other end of the other primary winding of the transformer is connected to the input voltage of the primary power supply of the transformer; the peak detection circuit includes a peak detection resistor, one end of the peak detection resistor is respectively connected to the source of the primary switch and the third input end of the capacitor charging and discharging circuit, and the other end of the peak detection resistor is grounded.
[0031] Based on the same inventive concept, the present invention also provides a switching power supply system, including an AC power supply, a rectifier bridge, a transformer, the switching power supply controller described in the present invention, and a load, wherein the AC power supply, the rectifier bridge, the transformer, and the load are connected in sequence, and the switching power supply controller is connected to the primary winding of the transformer.
[0032] Optionally, the switching power supply system further comprises a secondary controller arranged on the secondary winding of the transformer, and the secondary controller is connected in series with the load via a secondary switch.
[0033] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0034] The constant current output control circuit of the present invention can utilize the discharge current Idischg=(Vcs-Vref1) / R and the charging current Ichg=Vref1 / R of a capacitor charge and discharge circuit to realize Vcs·Tons / Tsw=Vref1, thereby ensuring Constant, therefore, in various output control modes of the switching power supply system, when the system output changes from constant voltage to constant current mode, even if Vcs is uncertain, the maximum current output by the system can be guaranteed to be constant, that is, the output current of the switching power supply can be guaranteed to remain constant.
[0035] The switching power supply controller and the switching power supply system of the present invention adopt the constant current output control circuit of the present invention, so the output current can be kept constant. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a structural schematic diagram of an existing switching power supply system with a constant current output function;
[0038] Figure 2 A schematic diagram of a curve between the current output, the system switching frequency and the peak voltage in a PFM control mode of an existing switching power supply system with a constant current output function;
[0039] Figure 3 A schematic diagram of a curve between the current output, the system switching frequency and the peak voltage in other control modes of an existing switching power supply system with a constant current output function;
[0040] Figure 4 is a block diagram of a constant current output control circuit according to a specific embodiment of the present invention;
[0041] Figure 5 is an equivalent circuit diagram of a capacitor charging and discharging circuit in a constant current output control circuit of a specific embodiment of the present invention;
[0042] Figure 6 is a graph showing the output of a capacitor charging and discharging circuit in a constant current output control circuit according to a specific embodiment of the present invention changing with time;
[0043] Figure 7 is a circuit structure diagram of a capacitor charging and discharging circuit according to an embodiment of the present invention;
[0044] Figure 8 is a circuit structure diagram of a capacitor charging and discharging circuit according to another embodiment of the present invention;
[0045] Fig. 9 is a circuit structure diagram of a capacitor charging and discharging circuit according to another embodiment of the present invention;
[0046] Fig.10 1 is a circuit diagram of a switching power supply system according to a specific embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] As described in the background technology, the output current expression of the switching power supply system is:
[0049]
[0050] Among them, Vcs is the peak voltage controlled by the primary controller of the switching power supply system (that is, required by the constant current output control circuit); Rcs is the peak resistance of the primary side; Np is the primary winding of the transformer; Ns is the secondary winding; Tons is the conduction time of the secondary winding; Tsw is the system working cycle.
[0051] From the above expression of output current Iout, it can be seen that to ensure that the switching power supply has a constant current output, that is, the above Iout is constant, in addition to the system parameters Rcs, Np, Ns, it is necessary to ensure Constant, at this time, the working mode of the switching power supply system can be mainly PFM mode, that is, this circuit inputs the current Vcs value and the current working Tons value to calculate the current required system working cycle Tsw. Then, combined with the following derivation process, the required working mode can be derived, that is, the calculation of the current Tsw is realized through a controllable capacitor charging and discharging circuit, and the derivation process is specifically as follows:
[0052]
[0053] Combined with the derivation results, it can be seen that if the charging current Ichg and the discharging current Idischg are both fixed currents, then Tons / Tsw is a fixed value. If the discharging current Idischg = (Vcs-Vref1) / R and the charging current Ichg = Vref1 / R, then Vcs·Tons / Tsw = Vref1 can be achieved.
[0054] Based on this, an embodiment of the present invention provides a constant current output control circuit for a switching power supply system to control the duty cycle of the switching power supply system during constant current operation to ensure that the current output of the system is constant. Figure 4 and Fig.10 The constant current output control circuit 202 of this embodiment is arranged on the primary side of the transformer 203 of the switching power supply system, and includes: a logic control module 2021, a secondary side conduction time detection module 2022, a capacitor charge and discharge module 2023, a comparator U0, and a charge and discharge capacitor C0. The secondary side conduction time detection module 2022 is used to generate a secondary side conduction time signal Tons reflecting the transformer 203; the capacitor charge and discharge module 2023 generates a charge and discharge control signal Vramp according to the peak voltage Vcs corresponding to the primary side of the transformer 203, the secondary side conduction time signal Tons, and the first reference voltage Vref1; the comparator U0 is used to compare the second reference voltage Vref2 with the charge and discharge control signal Vramp; the charge and discharge capacitor C0 is used to charge and discharge according to the charge and discharge control signal Vramp; the logic control module 2021 is used to generate a constant current drive control signal DRI for controlling the primary switch Q1 of the primary side to be turned on and off according to the output CC_Comp of the comparator U0.
[0055] The input end of the secondary side conduction time detection module 2022 is connected to the voltage feedback end FB for feeding back the change of the output voltage Vout on the secondary side of the transformer 203, the output end of the secondary side conduction time detection module 2022 is connected to the first input end (not shown) of the capacitor charging and discharging module 2023, the second input end of the capacitor charging and discharging module 2023 is connected to the first reference voltage Vref1, the third input end CS of the capacitor charging and discharging module 2023 is connected to the peak voltage Vcs, the output end of the capacitor charging and discharging module 2023 outputs a charging and discharging control signal Vramp, the charging and discharging control signal Vramp is input to the negative input end (-) of the comparator U0 and one end of the charging and discharging capacitor C0, the positive input end (+) of the comparator U0 is connected to the second reference voltage Vref2, and the other end of the charging and discharging capacitor C0 is grounded.
[0056] The input end (not shown) of the logic control module 2021 is connected to the output end of the comparator U0, and the output end DRI of the logic control module 2021 is connected to the control end of the primary switch Q1 (when Q1 is a MOS tube, the control end of Q1 is the gate).
[0057] Please refer to Figure 5 As shown, the equivalent circuit of the capacitor charging and discharging module 2023 of this embodiment includes: a charging current source Ichg@Tons_n related to the complementary signal Tons_n of the secondary side conduction time signal Tons and a discharging current source Idischg@Tons related to the secondary side conduction time signal Tons. That is, the discharge time of the charging and discharging capacitor C0 is controlled by Tons, and the charging time is controlled by the complementary signal Tons_n of Tons. Figure 5 and 6 As shown in FIG. 2 , since Tons+Tons_n=Tsw, the ratio of Tons / Tsw can be controlled by controlling Tons, and the CC_Comp signal is the output signal of the comparator U0, reflecting the time period when the voltage on the charge and discharge capacitor C0 exceeds the second reference voltage Vref2. The CC_Comp signal is sent to the logic control module 2021, and the logic control module 2021 can directly control the next turn-on time of the primary switch Q1 according to the CC_Comp signal to maintain Fixed, that is, constant current output can be guaranteed.
[0058] Please refer to Figure 7In this embodiment, the capacitor charging and discharging module 2023 includes a transconductance amplifier U11, a first switch K_Tons, a second switch K_Tons_n and a load capacitor C11. The on and off of the first switch K_Tons is controlled by the secondary side on time signal Tons, and the on and off of the second switch K_Tons_n is controlled by the complementary signal Tons_n of the secondary side on time signal Tons. For example, when Tons is high, the first switch K_Tons is turned on, Tons_n is low, and the second switch K_Tons_n is turned off. Among them, the first switch K_Tons and the second switch K_Tons_n can both be three-terminal switches having a control end, one end of a switch path and the other end of the switch path. The control end of the first switch K_Tons is connected to the secondary side conduction time signal Tons, and the control end of the second switch K_Tons_n is connected to the complementary signal Tons_n. One end of the switch path of the first switch K_Tons is connected to the peak voltage Vcs, and the other end of the switch path of the first switch K_Tons is connected to one end of the switch path of the second switch K_Tons_n and the negative input end (—) of the transconductance amplifier U11. The positive input end (+) of the transconductance amplifier U11 is connected to the first reference voltage Vref1, and the other end of the switch path of the second switch K_Tons_n is grounded. The output end of the transconductance amplifier U11 serves as the output end of the capacitor charging and discharging module 2023, which is used to output Vramp. The output end of the transconductance amplifier U11 is connected to one end of the load capacitor C11, and the other end of the load capacitor C11 is grounded. The first switch K_Tons and the second switch K_Tons_n are switched alternately to input Vcs or 0 voltage to the negative input terminal (—) of the transconductance amplifier U11, and when the first switch K_Tons is turned on, the cooperation of the transconductance amplifier U11 and the load capacitor C11 can generate a discharge current source Idischg@Tons, and when K_Tons_n is closed, the cooperation of the transconductance amplifier U11 and the load capacitor C11 can generate a charging current source Ichg@Tons_n.
[0059] It should be noted that there are many ways to implement the above-mentioned charging current source Ichg@Tons_n and discharging current source Idischg@Tons in the present invention, and it is not limited to Figure 7 The embodiment shown.
[0060] For example, see Figure 8In another embodiment of the present invention, the capacitor charging and discharging module 2023 includes: a first amplifier U21, a second amplifier U22, first to eighth transistors M21-M28, a first resistor R21, a second resistor R22, a main control switch K_Tons whose on and off is controlled by the secondary side on-time signal, and a load capacitor C21. Among them, the first to eighth transistors M21~M28 are all MOS tubes, the main control switch K_Tons is a three-terminal switch having a control end, one end of the switch path and the other end of the switch path, the control end of the main control switch K_Tons is connected to the secondary side conduction time signal Tons, one input end (+) of the first amplifier U21 is connected to the peak voltage Vcs on the primary side, the output end of the first amplifier U21 is connected to the control end (i.e., the gate) of the first transistor M21, the other end (i.e., the source) of the switch path of the first transistor M21 is connected to the other end (drain) of the switch path of the second transistor M22, the control end (gate) of the second transistor M22 and the control end (gate) of the third transistor M23, and one end (source) of the switch path of the first transistor M21 is respectively connected to the other input end (-) of the first amplifier U21 and one end of the first resistor R21. One end (source) of the switch path of the second transistor M22, one end (source) of the switch path of the third transistor M23, one end (source) of the switch path of the sixth transistor M26, and one end (source) of the switch path of the seventh transistor M27 are all connected to the same working voltage Vdd, and the other end (drain) of the switch path of the third transistor M23 is connected to the other end (drain) of the switch path of the fourth transistor M24, the control end (gate) of the fourth transistor M24, and the control end (gate) of the fifth transistor M25; M22 and M23 can be common-gate transistors, M26 and M27 can be common-gate transistors, and M24 and M25 can be common-gate transistors. The other end (drain) of the switch path of the sixth transistor M26 is connected to one end of the main control switch K_Tons and one end of the load capacitor C21 to form the output end of the capacitor charging and discharging module 2023, which is used to output Vramp, and the other end (drain) of the switch path of the sixth transistor M26 is used as a charging current source Ichg@Tons_n. The other end of the main control switch K_Tons serves as a discharge current source Idischg@Tons, connected to the other end (drain) of the switch path of the fifth transistor M25. The control end (gate) of the sixth transistor M26, the control end (gate) of the seventh transistor M27, and the other end (drain) of the switch path of the seventh transistor M27 are all connected to the other end (drain) of the switch path of the eighth transistor M28, and the control end (gate) of the eighth transistor M28 is connected to the output end of the second amplifier U22.One input terminal (+) of the second amplifier U22 is connected to the first reference voltage Vref1, and the other input terminal (+) of the second amplifier U22 is connected to one end (source) of the switch path of the eighth transistor M28 and one end of the second resistor R22. The other end of the first resistor R21, one end (source) of the switch path of the fourth transistor M24, one end (source) of the switch path of the fifth transistor M25, the other end of the load capacitor C21 and the other end of the second resistor R22 are all grounded. In other embodiments of the present invention, any transistor among the first to eighth transistors M21-M28 can also be a triode, the control end of the transistor is the base of the triode, one end of the switch path of the transistor is the emitter of the triode, and the other end of the switch path of the transistor is the collector of the triode.
[0061] For another example, see Fig. 9In another embodiment of the present invention, the capacitor charging and discharging module 2023 includes: a first amplifier U31, a second amplifier U32, a series resistor R31, first to fifth transistors M31-M35, a first switch K31_Tons and a second switch K32_Tons whose turn-on and turn-off are controlled by the secondary side conduction time signal, and a third switch K31_Tons_n and a fourth switch K32_Tons_n whose turn-on and turn-off are controlled by a complementary signal of the secondary side conduction time signal. Among them, the first to fifth transistors M31~M35 are all MOS tubes, and the first switch K31_Tons, the second switch K32_Tons, the third switch K31_Tons_n and the fourth switch K32_Tons_n can all be three-terminal switches having a control end, one end of the switch path and the other end of the switch path. The control end of the first switch K31_Tons and the control end of the second switch K32_Tons are both connected to the secondary side conduction time signal Tons, and the control end of the third switch K31_Tons_n and the control end of the fourth switch K32_Tons_n are both connected to the complementary signal Tons_n. One end of the switch path of the first switch K31_Tons is connected to the peak voltage Vcs of the primary side, one end of the switch path of the third switch K31_Tons_n is connected to the first reference voltage Vref1, the other end of the switch path of the first switch K31_Tons and the other end of the third switch K31_Tons_n are connected to an input end (+) of the first amplifier U31, and the output end of the first amplifier U31 is connected to the control end (gate) of the first transistor M31. One end (source) of the switch path of the first transistor M31 is respectively connected to one end of the series resistor R31 and the other input end (-) of the first amplifier U31, and the other end (drain) of the switch path of the first transistor M31 is respectively connected to the other end (drain) of the switch path of the third transistor M33, the control end (gate) of the third transistor M33, the control end (gate) of the fourth transistor M34, and the control end (gate) of the fifth transistor M35; one end (source) of the switch path of the third transistor M33, one end (source) of the switch path of the fourth transistor M34, and One end (source) of the switch path of the fifth transistor M35 is connected to the same working voltage Vdd, the other end (drain) of the switch path of the fourth transistor M34 serves as a charging current source Ichg@Tons_n, and the other end (drain) of the switch path of the fifth transistor M35 serves as a discharging current source Idischg@Tons. The other end (drain) of the switch path of the fourth transistor M34 and the other end (drain) of the switch path of the fifth transistor M35 are connected to each other and the connection node serves as the output end of the capacitor charging and discharging module 2023, which is used to output the signal Vramp.The other end of the series resistor R31 is respectively connected to one end of the second switch K32_Tons and one end of the fourth switch K32_Tons_n, the other end of the fourth switch K32_Tons_n is grounded, the other end of the second switch K32_Tons is connected to the other end (drain) of the switch path of the second transistor M32 and an input end (-) of the second amplifier U32, one end (source) of the switch path of the second transistor M32 is grounded, the control end (gate) of the second transistor M32 is connected to the output end of the second amplifier U32, and the other input end (+) of the second amplifier U32 is connected to the first reference voltage Vref1.
[0062] The constant current output control circuit of this embodiment can utilize the discharge current Idischg=(Vcs-Vref1) / R and the charging current Ichg=Vref1 / R of a capacitor charge and discharge circuit to realize Vcs·Tons / Tsw=Vref1, thereby ensuring Constant, therefore, in various output control modes of the switching power supply system, when the system output changes from constant voltage to constant current mode, even if Vcs is uncertain, the maximum current output by the system can be guaranteed to be constant, that is, the output current of the switching power supply can be guaranteed to remain constant.
[0063] Please refer to Figures 4 to 10Based on the same inventive concept, an embodiment of the present invention also provides a switching power supply controller, including the constant current output control circuit 202 described in the present invention. The switching power supply controller is arranged on the primary side of the transformer 203 of the switching power supply system. In this embodiment, the switching power supply controller is an integrated chip, and an input voltage sampling circuit, an output voltage feedback circuit, a driving circuit and a peak detection circuit are also arranged on its periphery. The input voltage sampling circuit includes an input sampling resistor R1 and a sampling capacitor C2, one end of the input sampling resistor R1 serves as the input end of the input voltage sampling circuit and is connected to the input voltage Vin of the primary power supply of the transformer 203, and the input voltage Vin is obtained by rectifying an AC power supply Vac through a rectifier bridge 202 and filtering by a filter capacitor C1, the other end of the input sampling resistor R1 serves as the output end of the input voltage sampling circuit, and is connected to one end of the sampling capacitor C2 to provide a DC voltage VCC to the switching power supply controller, and the other end of the sampling capacitor C2 is grounded. The primary winding of the transformer 203 is composed of a first primary winding 2031 and a second primary winding 2032. The output voltage feedback circuit includes a diode D1, a first voltage-dividing resistor R2 and a second voltage-dividing resistor R3. The anode of the diode D1 is connected to the upper end of the second primary winding 2032 of the transformer 203 and one end of the first voltage-dividing resistor R2. The cathode of the diode D1 is connected to the other end of the input sampling resistor R1. The other end of the first voltage-dividing resistor R2 serves as the voltage feedback end FB and is connected to one end of the second voltage-dividing resistor R2. The lower end of the second primary winding 2032 of the transformer 203 and the other end of the second voltage-dividing resistor R2 are grounded respectively. The driving circuit includes a primary switch Q1. The gate of the primary switch Q1 is connected to the output end of the logic control module 2021. The drain of the primary switch Q1 is connected to the lower end of the first primary winding 2031 of the transformer 203. The upper end of the first primary winding 2031 is connected to one end of the input sampling resistor R1 to access the input voltage Vin. The peak detection circuit includes a peak detection resistor Rcs, one end of which is connected to the source of the primary switch Q1 and the third input terminal CS of the capacitor charge and discharge circuit 2023, and the other end of which is grounded.
[0064] The switching power supply controller of this embodiment can use the constant current output control circuit of the present invention to achieve Vcs·Tons / Tsw=Vref1, thereby ensuring Constant, thus, in various output control modes of the switching power supply system, when the system output changes from constant voltage to constant current mode, even if Vcs is uncertain, the maximum current output by the system can be guaranteed to be constant, that is, the output current of the switching power supply can be guaranteed to remain constant. Compared with the existing switching power supply controller, the switching power supply controller of this embodiment has the characteristics of simple application, fewer chip pins and peripheral components, low cost, high reliability and excellent performance.
[0065] It should be noted that in other embodiments of the present invention, at least one of the input voltage sampling circuit, the output voltage feedback circuit, the drive circuit and the peak detection circuit can be integrated into the chip of the switching power supply controller. Therefore, when the switching power supply controller is used in a switching power supply system, there is no need to build an input voltage sampling circuit, an output voltage feedback circuit, a drive circuit and a peak detection circuit for the switching power supply controller that are integrated into the chip of the switching power supply controller.
[0066] Please refer to Fig.10 Based on the same inventive concept, an embodiment of the present invention further provides a switching power supply system, including an AC power supply Vac, a rectifier bridge 201, a transformer 203, a switching power supply controller 202 of the present invention, and a load 204, wherein the AC power supply Vac, the rectifier bridge 201, the transformer 203, and the load 204 are connected in sequence, and the switching power supply controller 202 is connected to the primary winding 203 of the transformer.
[0067] In this embodiment, the switching power supply system further includes a secondary controller 205 disposed on the secondary winding 2033 of the transformer 203, the output end of the secondary controller 205 is connected to the gate of the secondary switch Q2, one end (i.e., source) of the switch path of the secondary switch Q2 is connected to the lower end of the load 204, the other end (i.e., drain) of the switch path of the secondary switch Q2 is connected to the lower end of the secondary winding 2033, the upper end of the load 204 is connected to the upper end of the secondary winding 2033, and the load 204 may include at least one LED lamp. The switching power supply system further includes a filter capacitor C3 and a filter resistor R4 connected in parallel between the upper and lower ends of the load 204, and the lower end of the load 204, the lower end of the filter capacitor C3, and the lower end of the filter resistor R4 are all grounded.
[0068] The AC power source Vac generates an input voltage Vin through the rectifier bridge 201, and the input voltage Vin is used to power the primary side of the transformer 203. The input voltage Vin is sampled by a circuit composed of an input sampling resistor R1 and a sampling capacitor C to obtain a DC voltage VCC required by the switching power supply controller 202. When the primary switch Q1 of the transformer 203 is turned on, the primary peak current is converted into a peak voltage Vcs to the CS end of the constant current output control circuit 202 through the peak detection resistor Rcs. The switching power supply controller 202 controls its DRI end (i.e., the output end of the constant current output control circuit 202) to stop outputting the drive signal according to the peak voltage Vcs at the CS end, thereby controlling the primary switch Q1 to turn off. The voltage at the FB end (i.e., the voltage feedback end) of the switching power supply controller 202 changes with the output voltage Vout, and the voltage on the second voltage-dividing resistor R2 is used as the voltage input to the FB end to feedback the change of Vout. After the FB terminal voltage is processed by the internal circuit module of the constant current output control circuit 202, a signal Tons (referred to as the signal Tons reflecting the secondary side conduction time) reflecting the conduction time of the secondary side switch (also known as the secondary power tube) Q2 is generated. Tons controls the corresponding proportion of the charge and discharge current, which can control the conduction time of the control signal of the primary side switch Q1 next time, thereby adjusting the ratio of Tons / Tsw, where Tsw is the switching period of the primary side switch Q1.
[0069] The switching power supply system of the present invention adopts the switching power supply controller having the constant current output control circuit of the present invention. Therefore, in various output control modes of the switching power supply system, when the system output changes from constant voltage to constant current mode, even if Vcs is uncertain, the maximum current output by the system can be kept constant, that is, the output current of the system can be kept constant. When the load is an LED lamp, the light emission of the LED lamp can be stabilized.
[0070] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A constant current output control circuit is arranged on the primary side of the transformer of the switching power supply. It is characterized in that include: A secondary side conduction time detection module for generating a signal reflecting the secondary side conduction time of the transformer; A capacitor charging and discharging module for generating a charging and discharging control signal according to the peak voltage corresponding to the primary side, the secondary side conduction time signal and a first reference voltage; a comparator for comparing a second reference voltage with the charge and discharge control signal; a charge and discharge capacitor for charging and discharging according to the charge and discharge control signal; and A logic control module for generating a constant current drive control signal for controlling the primary switch of the primary side according to the output of the comparator; wherein, The input end of the secondary side conduction time detection module is connected to the voltage feedback end for feeding back the output voltage change of the secondary side of the transformer, the output end of the secondary side conduction time detection module is connected to the first input end of the capacitor charging and discharging module, the second input end of the capacitor charging and discharging module is connected to the first reference voltage, the third input end of the capacitor charging and discharging module is connected to the peak voltage, the output end of the capacitor charging and discharging module is connected to one input end of the comparator and one end of the charging and discharging capacitor, the other input end of the comparator is connected to the second reference voltage, and the other end of the charging and discharging capacitor is grounded; The input end of the logic control module is connected to the output end of the comparator, and the output end of the logic control module is connected to the control end of the primary switch; The equivalent circuit of the capacitor charging and discharging module includes a charging current source and a discharging current source coupled to each other, and a connection node between the charging current source and the discharging current source serves as an output end of the capacitor charging and discharging module, and has: Ichg=Vref1 / R; Idischg=(Vcs-Vref1) / R; Idischg·Tons=Ichg·Tons_n; Tons+Tons_n=Tsw; Vcs·Tons / Tsw=Vref1; Among them, Idischg is the discharge current provided by the discharge current source, Ichg is the charging current provided by the charging current source, Vref1 is the first reference voltage, Tons is the secondary side conduction time signal, Tons_n is the complementary signal of the secondary side conduction time signal, Tsw is the system working cycle of the switching power supply, Vcs is the peak voltage corresponding to the primary side, R is the resistance value coupled between the charging current source and the discharge current source, the discharge time of the charging and discharging capacitor is controlled by Tons, and the charging time is controlled by Tons_n.
2. The constant current output control circuit as claimed in claim 1, It is characterized in that The capacitor charging and discharging module includes: a transconductance amplifier, a first switch whose on and off is controlled by the secondary side conduction time signal, a second switch controlled by a complementary signal of the secondary side conduction time signal, and a load capacitor; wherein, one end of the first switch is connected to the peak voltage, the other end of the first switch is connected to one end of the second switch and an input end of the transconductance amplifier, the other input end of the transconductance amplifier is connected to the first reference voltage, the other end of the second switch is grounded, the output end of the transconductance amplifier is connected to one end of the load capacitor, the other end of the load capacitor is grounded, and the output end of the transconductance amplifier serves as the output end of the capacitor charging and discharging module.
3. The constant current output control circuit as claimed in claim 1, It is characterized in that The capacitor charging and discharging module comprises: a first amplifier, a second amplifier, first to eighth transistors, a first resistor, a second resistor, a main control switch whose on and off is controlled by the secondary side on time signal, and a load capacitor; wherein, one input end of the first amplifier is connected to the peak voltage, the output end of the first amplifier is connected to the control end of the first transistor, the other end of the switch path of the first transistor is connected to the other end of the switch path of the second transistor, the control end of the second transistor and the control end of the third transistor, and one end of the switch path of the first transistor is respectively connected to the other input end of the first amplifier and one end of the first resistor; One end of the switch path of the second transistor, one end of the switch path of the third transistor, one end of the switch path of the sixth transistor and one end of the switch path of the seventh transistor are all connected to the same working voltage, and the other end of the switch path of the third transistor is connected to the other end of the switch path of the fourth transistor, the control end of the fourth transistor and the control end of the fifth transistor; The other end of the switch path of the sixth transistor is connected to one end of the main control switch and one end of the load capacitor to form the output end of the capacitor charging and discharging module, and the other end of the main control switch is connected to the other end of the switch path of the fifth transistor; The control end of the sixth transistor, the control end of the seventh transistor and the other end of the switch path of the seventh transistor are all connected to the other end of the switch path of the eighth transistor, and the control end of the eighth transistor is connected to the output end of the second amplifier; One input end of the second amplifier is connected to the first reference voltage, and the other input end of the second amplifier is connected to one end of the switch path of the eighth transistor and one end of the second resistor; The other end of the first resistor, one end of the switch path of the fourth transistor, one end of the switch path of the fifth transistor, the other end of the load capacitor and the other end of the second resistor are all grounded.
4. The constant current output control circuit as claimed in claim 1, It is characterized in that The capacitor charging and discharging module includes: a first amplifier, a second amplifier, a series resistor, first to fifth transistors, a first switch and a second switch whose turn-on and turn-off are controlled by the secondary side conduction time signal, and a third switch and a fourth switch whose turn-on and turn-off are controlled by a complementary signal of the secondary side conduction time signal; wherein, One end of the first switch is connected to the peak voltage, one end of the third switch is connected to the first reference voltage, the other end of the first switch and the other end of the third switch are connected to an input end of the first amplifier, and the output end of the first amplifier is connected to the control end of the first transistor; One end of the switch path of the first transistor is respectively connected to one end of the series resistor and the other input end of the first amplifier, and the other end of the switch path of the first transistor is respectively connected to the other end of the switch path of the third transistor, the control end of the third transistor, the control end of the fourth transistor, and the control end of the fifth transistor; one end of the switch path of the third transistor, one end of the switch path of the fourth transistor, and one end of the switch path of the fifth transistor are all connected to the same working voltage, and the other end of the switch path of the fourth transistor and the other end of the switch path of the fifth transistor are connected to each other, and the connection node serves as the output end of the capacitor charging and discharging module; The other end of the series resistor is respectively connected to one end of the second switch and one end of the fourth switch, the other end of the fourth switch is grounded, the other end of the second switch is connected to the other end of the switch path of the second transistor and an input end of the second amplifier, one end of the switch path of the second transistor is grounded, the control end of the second transistor is connected to the output end of the second amplifier, and the other input end of the second amplifier is connected to the first reference voltage.
5. The constant current output control circuit according to claim 3 or 4, It is characterized in that The corresponding transistor in the capacitor charging and discharging module is a triode or a MOS tube; when the transistor is a triode, the control end of the transistor is the base of the triode, one end of the switch path of the transistor is the emitter of the triode, and the other end of the switch path of the transistor is the collector of the triode; when the transistor is a MOS tube, the control end of the transistor is the gate of the MOS tube, one end of the switch path of the transistor is the source of the MOS tube, and the other end of the switch path of the transistor is the drain of the MOS tube.
6. A switching power supply controller, It is characterized in that The invention comprises the constant current output control circuit as described in any one of claims 1 to 5.
7. The switching power supply controller according to claim 6, It is characterized in that At least one of the following circuits is also provided inside or outside the switching power supply controller: an input voltage sampling circuit, an output voltage feedback circuit, a drive circuit and a peak detection circuit; wherein the drive circuit is connected to the output end of the logic control module of the constant current output control circuit, the input end of the peak detection circuit and the primary winding of the transformer, the input end of the input voltage sampling circuit is connected to the input voltage of the primary power supply of the transformer, the output end of the input voltage sampling circuit is connected to an input end of the output voltage feedback circuit, the other input end of the output voltage feedback circuit is connected to the primary winding of the transformer, the output end of the output voltage feedback circuit is the voltage feedback end and is connected to the input end of the secondary side conduction time detection module of the constant current output control circuit, and the output end of the peak detection circuit is connected to the third input end of the capacitor charging and discharging circuit of the constant current output control circuit.
8. The switching power supply controller as claimed in claim 7, It is characterized in that The input voltage sampling circuit includes an input sampling resistor and a sampling capacitor, one end of the input sampling resistor serves as the input end of the input voltage sampling circuit and is connected to the input voltage of the primary power supply of the transformer, the other end of the input sampling resistor serves as the output end of the input voltage sampling circuit and is connected to one end of the sampling capacitor, and the other end of the sampling capacitor is grounded; the output voltage feedback circuit includes a diode, a first voltage-dividing resistor and a second voltage-dividing resistor, the anode of the diode is connected to one end of a primary winding of the transformer and one end of the first voltage-dividing resistor, the cathode of the diode is connected to the other end of the input sampling resistor, and the other end of the first voltage-dividing resistor serves as The voltage feedback end is connected to one end of the second voltage-dividing resistor, and the other end of a primary winding of the transformer and the other end of the second voltage-dividing resistor are grounded; the driving circuit includes a primary switch, the gate of the primary switch is connected to the output end of the logic control module, the drain of the primary switch is connected to one end of the other primary winding of the transformer, and the other end of the other primary winding of the transformer is connected to the input voltage of the primary power supply of the transformer; the peak detection circuit includes a peak detection resistor, one end of the peak detection resistor is respectively connected to the source of the primary switch and the third input end of the capacitor charging and discharging circuit, and the other end of the peak detection resistor is grounded.
9. A switching power supply system, It is characterized in that It comprises an AC power supply, a rectifier bridge, a transformer, a switching power supply controller according to any one of claims 6 to 8, and a load, wherein the AC power supply, the rectifier bridge, the transformer and the load are connected in sequence, and the switching power supply controller is connected to the primary winding of the transformer.
10. The switching power supply system according to claim 9, It is characterized in that It also includes a secondary side controller arranged on the secondary side winding of the transformer, and the secondary side controller is connected to the load through a secondary side switch.
