Primary controller with voltage compensation function

By introducing a clamping unit and a driving unit into the primary controller, a compensation voltage is generated according to the detected voltage changes, ensuring that the power switch of the flyback power converter is operated in the saturation zone, and the problem of reduced conversion efficiency of the power converter is solved.

CN119093738APending Publication Date: 2024-12-06LEADTREND TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310662404.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In a flyback power converter, the gate source voltage of the power switch decreases as the detection voltage increases, causing operation to de-saturate the region and reduce conversion efficiency.

Method used

Design a primary controller with voltage compensation function, including a gate control signal generation circuit, including a clamping unit and a driving unit, to generate a compensation voltage according to the detected voltage changes, to ensure that the potential level of the gate control signal does not decrease and maintain power The switch operates in the saturation zone.

Benefits of technology

In the case where the detection voltage changes dynamically, the power switch can still be operated in the saturation zone to avoid a decrease in conversion efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119093738A_ABST
    Figure CN119093738A_ABST
Patent Text Reader

Abstract

The invention discloses a primary controller with a voltage compensation function applied to a primary side of a power converter and an operation method of the primary controller. The primary controller comprises a grid control signal generating circuit, and the grid control signal generating circuit comprises a clamping unit and a driving unit. The grid control signal generating circuit is used for starting a grid control signal, wherein the grid control signal is used for starting the power switch. The clamping unit generates a compensation voltage according to a clamping voltage. The driving unit is used for generating the grid control signal according to the compensation voltage. The clamping voltage correspondingly varies with a detection voltage on a detection resistor coupled to the power switch. Therefore, compared with the prior art, under the condition that the detection voltage is dynamically changed, the power switch can still operate in a saturation region, so that the conversion efficiency of the power converter is not reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a primary controller with voltage compensation function and an operating method thereof, and more particularly to a primary controller and an operating method thereof that can enable a power switch of a power converter to operate in a saturation region when a detection voltage changes dynamically. Background Art

[0002] In the prior art, when the power switch on the primary side of a flyback power converter is turned on (conducted), the primary current flowing through the power switch will gradually increase from zero. Because the detection voltage determined by the detection resistor coupled to the source of the power switch and the primary current will also gradually increase from zero, the source voltage on the source of the power switch will also gradually increase from zero. At this time, if the potential level of the gate control signal applied to the gate of the power switch does not change, the gate-source voltage of the power switch will gradually decrease, causing the operation of the power switch to leave the saturation region and enter the triode region. In this way, the conversion efficiency of the flyback power converter will be reduced.

[0003] Therefore, how to solve the above problems in the prior art has become an important issue for designers of a primary controller applied to the primary side of the flyback power converter. Summary of the invention

[0004] An embodiment of the present invention discloses a primary controller with a voltage compensation function, wherein the primary controller is applied to the primary side of a power converter. The primary controller includes a gate control signal generating circuit, and the gate control signal generating circuit includes a clamping unit and a driving unit. The gate control signal generating circuit is coupled to a power switch arranged on the primary side of the power converter to enable a gate control signal, wherein the gate control signal is used to turn on the power switch. The clamping unit is used to generate a compensation voltage according to a clamping voltage. The driving unit is coupled between the clamping unit and the gate of the power switch to generate the gate control signal according to the compensation voltage, wherein the clamping voltage changes correspondingly with a detection voltage on a detection resistor coupled to the power switch.

[0005] Another embodiment of the present invention discloses a primary controller with a voltage compensation function, wherein the primary controller is applied to the primary side of a power converter. The primary controller includes a gate control signal generating circuit, and the gate control signal generating circuit includes a clamping unit and a driving unit. The gate control signal generating circuit is coupled to a power switch arranged on the primary side of the power converter to enable a gate control signal, wherein the gate control signal is used to turn on the power switch. The clamping unit is used to generate a compensation voltage according to a clamping voltage. The driving unit is coupled between the clamping unit and the gate of the power switch to generate the gate control signal according to the compensation voltage, wherein the clamping voltage changes correspondingly with a DC input voltage of the primary side of the power converter.

[0006] Another embodiment of the present invention discloses an operation method of a primary controller with a voltage compensation function, wherein the primary controller is applied to the primary side of a power converter, the primary controller includes a gate control signal generating circuit, and the gate control signal generating circuit includes a clamping unit and a driving unit. The operation method includes the clamping unit generating a compensation voltage according to a clamping voltage; and the driving unit generating the gate control signal according to the compensation voltage, wherein the gate control signal is used to turn on a power switch on the primary side of the power converter, and the clamping voltage changes correspondingly with a detection voltage on a detection resistor coupled to the power switch.

[0007] Another embodiment of the present invention discloses an operating method of a primary controller with a voltage compensation function, wherein the primary controller is applied to the primary side of a power converter, the primary controller includes a gate control signal generating circuit, and the gate control signal generating circuit includes a clamping unit and a driving unit. The operating method includes the clamping unit generating a compensation voltage according to a clamping voltage; and the driving unit generating the gate control signal according to the compensation voltage, wherein the clamping voltage changes correspondingly with a DC input voltage of the primary side of the power converter.

[0008] The present invention provides a primary controller with a voltage compensation function and an operating method thereof. The primary controller and the operating method can change the potential level of the gate control signal of the power switch applied to the primary side of a power converter with a detection voltage, so the gate-source voltage of the power switch will not decrease correspondingly with the increase of the detection voltage. Therefore, compared with the prior art, when the detection voltage changes dynamically, the power switch can still be operated in the saturation region, so the conversion efficiency of the power converter will not be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 It is a schematic diagram of a primary controller with a voltage compensation function disclosed in the first embodiment of the present invention.

[0010] Figure 2 is a timing diagram illustrating the waveforms of the control signal, the gate control signal, and the detection voltage.

[0011] Figure 3 It is a schematic diagram of a primary controller with a voltage compensation function disclosed in a second embodiment of the present invention.

[0012] Figure 4 is a schematic diagram illustrating a variable current source.

[0013] Figure 5 It is a timing diagram illustrating that the variable charging current changes positively with the turn-on time of the power switch.

[0014] Figure 6 is a timing diagram illustrating the waveforms of the control signal, the gate control signal, and the detection voltage.

[0015] Figure 7 is a schematic diagram of another variable current source applied to a clamping unit disclosed in the third embodiment of the present invention.

[0016] Figure 8 is a timing diagram illustrating the waveforms of the control signal, the gate control signal, and the detection voltage.

[0017] Fig. 9 It is a timing diagram illustrating the waveforms of the control signal, the gate control signal, the detection voltage and the gate-source voltage of the power switch when the AC voltage is turned off.

[0018] Fig.10 It is a timing diagram illustrating waveforms of a control signal, a gate control signal, a detection voltage, and a gate-source voltage of a power switch when a detection resistor is short-circuited.

[0019] Fig.11 is a flow chart of an operating method of a primary controller with a voltage compensation function disclosed in a fourth embodiment of the present invention.

[0020] Fig.12 It is a flow chart of an operating method of a primary controller with a voltage compensation function disclosed in a fifth embodiment of the present invention.

[0021] The reference numerals are described as follows:

[0022] 100, 300 Primary Controller

[0023] 102, 302 Gate control signal generating circuit

[0024] 1022, 3022 clamping unit

[0025] 10222, 3042 current source

[0026] 10224 First Switch

[0027] 10226, 30228, 3062, 3064, 4022, 4024 P-type metal oxide semiconductor transistors

[0029] 10228, 30226 Amplifier

[0030] 10230 Second switch

[0031] 1024 Drivers 10242 The first N-type metal oxide semiconductor transistor 10244 Second N-type metal oxide semiconductor transistor Pins 104, 106, 108

[0032] 200 Power Converter

[0033] 202 Power switch

[0034] 204 Detection resistor

[0035] 206 Auxiliary winding

[0036] 208 Bridge Rectifier

[0037] 210 Primary winding

[0038] 304, 404 Current-to-voltage unit

[0039] 305 Voltage to Current Unit

[0040] 306 First Current Mirror 3044, 3066 N-type metal oxide semiconductor transistor

[0041] 3046 Capacitor

[0042] 30222, 40222 variable current source

[0043] 30224, 3067 resistors

[0044] Node A and Node B

[0045] GCS gate control signal

[0046] GND1 Second voltage

[0047] GND2 Ground potential

[0048] IC charging current

[0049] IFB Feedback Current

[0050] IRAMP variable charge current

[0051] IRAMP(MAX) Maximum value of variable charging current

[0052] I1 Current

[0053] IBASE Base current

[0054] IPRI Primary current

[0055] PRI Primary Side

[0056] SEC Secondary Side

[0057] T1 time

[0058] TONMAX Maximum on time

[0059] VCC First Voltage

[0060] VC compensation voltage

[0061] VCS detection voltage

[0062] VCLAMP Clamping Voltage

[0063] VCLAMP(MAX) Maximum clamping voltage

[0064] VF Constant voltage

[0065] VFB Feedback Voltage

[0066] VAUX Auxiliary voltage

[0067] VTO ​​voltage VIN DC input voltage

[0068] VAC AC voltage

[0069] VGS Gate-Source Voltage

[0070] V1 First value

[0071] V2 Second value

[0072] V3 Third value

[0073] φ Control signal Inverting control signal

[0074] 1100~1104、1200~1210 Steps DETAILED DESCRIPTION

[0075] Please refer to Figure 1 , Figure 1 1 is a schematic diagram of a primary controller 100 with a voltage compensation function disclosed in the first embodiment of the present invention, wherein the primary controller 100 is applied to a primary side PRI of a power converter 200, and the power converter 200 is a flyback power converter. Figure 1 As shown, the primary controller 100 at least includes a gate control signal generating circuit 102, the gate control signal generating circuit 102 is coupled to a power switch 202 arranged on the primary side PRI of the power converter 200, and is used to enable a gate control signal GCS, wherein the gate control signal GCS is transmitted to the gate of the power switch 202 through the pin 104 of the primary controller 100, and the gate control signal GCS is used to turn on the power switch 202.

[0076] like Figure 1As shown, the gate control signal generating circuit 102 includes a clamping unit 1022 and a driving unit 1024, wherein the driving unit 1024 is coupled between the clamping unit 1022 and the gate of the power switch 202. The clamping unit 1022 includes a current source 10222, a first switch 10224, a P-type metal oxide semiconductor transistor 10226, an amplifier 10228 and a second switch 10230. The current source 10222 has a first terminal and a second terminal, wherein the first terminal of the current source 10222 receives a first voltage VCC, and the current source 10222 is used to provide a charging current IC; the first switch 10224 has a first terminal, a second terminal and a control terminal, wherein the first terminal of the first switch 10224 is coupled to the second terminal of the current source, and the control terminal of the first switch 10224 receives a control signal φ, and the control signal φ is related to the opening time of the power switch 2022; the P-type metal oxide semiconductor transistor 10226 has a first terminal, a second terminal and a third terminal, wherein the first terminal of the P-type metal oxide semiconductor transistor 10226 is coupled to the second terminal of the first switch 10224, and the third terminal of the P-type metal oxide semiconductor transistor 10226 is coupled to the second terminal of the first switch 10224. The three terminals receive a second voltage GND1, the first voltage VCC is greater than the second voltage GND1, and the second voltage GND1 is different from a ground potential GND2 of the secondary side SEC of the power converter 200; the amplifier 10228 has an input terminal and an output terminal, wherein the output terminal of the amplifier 10228 is coupled to the second terminal of the P-type metal oxide semiconductor transistor 10226, and the input terminal of the amplifier 10228 receives a clamping voltage VCLAMP; and the second switch 10230 has a first terminal, a second terminal and a control terminal, wherein the first terminal of the second switch 10230 is coupled to the second terminal of the first switch 10224 and the first terminal of the P-type metal oxide semiconductor transistor 10226, and the control terminal of the second switch 10230 receives an inverting control signal The second end of the second switch 10230 receives the second voltage GND1 and the inverting control signal is the inverted signal of the control signal φ.

[0077] like Figure 1As shown, the driving unit 1024 includes a first N-type metal oxide semiconductor transistor 10242 and a second N-type metal oxide semiconductor transistor 10244 . The first N-type metal oxide semiconductor transistor 10242 has a first terminal, a second terminal and a third terminal, wherein the first terminal of the first N-type metal oxide semiconductor transistor 10242 receives the first voltage VCC, the second terminal of the first N-type metal oxide semiconductor transistor 10242 is coupled to the clamping unit 1022 for receiving a compensation voltage VC, and the third terminal of the first N-type metal oxide semiconductor transistor 10242 is coupled to the gate of the power switch 202, wherein the first N-type metal oxide semiconductor transistor 10242 generates a gate control signal GCS according to the compensation voltage VC; the second N-type metal oxide semiconductor transistor 10244 has a first terminal, a second terminal and a third terminal, wherein the first terminal of the second N-type metal oxide semiconductor transistor 10244 is coupled to the third terminal of the first N-type metal oxide semiconductor transistor 10242, and the second terminal of the second N-type metal oxide semiconductor transistor 10244 is used to receive an inverting control signal And a third terminal of the second N-type metal oxide semiconductor transistor 10244 is used for receiving the second voltage GND1.

[0078] like Figure 1 As shown, when the inverting control signal When enabled (the control signal φ is turned off), the first switch 10224 is turned off and the second switch 10230 is turned on. At this time, the potential level of the compensation voltage VC on the node A is pulled down to the second voltage GND1 (that is, the ground potential of the primary side PRI of the power converter 200), so the first N-type metal oxide semiconductor transistor 10242 is turned off. In addition, because the inverting control signal is enabled, so the second N-type metal oxide semiconductor transistor 10244 is turned on, causing the potential level on the pin 104 to be pulled down to the second voltage GND1 (that is, the gate control signal GCS is turned off).

[0079] like Figure 1 As shown, when the control signal φ is enabled (the inverted control signal When the power switch 202 is turned off, the first switch 10224 is turned on and the second switch 10230 is turned off. The P-type metal oxide semiconductor transistor 10226 and the amplifier 10228 will charge the node A with the charging current IC according to the clamping voltage VCLAMP until the potential level of the compensation voltage VC is equal to the potential level of the clamping voltage VCLAMP, wherein the clamping voltage VCLAMP changes with a detection voltage VCS on a detection resistor 204 coupled to the power switch 202, that is, when the detection voltage VCS is less than a first reference voltage, the clamping voltage VCLAMP has a first value V1, when the detection voltage VCS is between the first reference voltage and a second reference voltage, the clamping voltage VCLAMP has a second value V2, and when the detection voltage VCS is greater than the second reference voltage, the clamping voltage VCLAMP has a third value V3, wherein the first value V1 is less than the second value V2, and the second value V2 is less than the third value V3. In addition, because when the control signal φ is enabled (the inverted control signal When the first N-type metal oxide semiconductor transistor 10242 is turned on and the second N-type metal oxide semiconductor transistor 10244 is turned off, the first N-type metal oxide semiconductor transistor 10242 can make the gate control signal GCS change accordingly with the potential level of the compensation voltage VC.

[0080] Therefore, if Figure 2 As shown, when the control signal φ is enabled, the clamping voltage VCLAMP changes correspondingly with the detection voltage VCS on the detection resistor 204, the potential level of the compensation voltage VC is equal to the potential level of the clamping voltage VCLAMP, and the gate control signal GCS changes positively with the potential level of the compensation voltage VC, so the gate control signal GCS increases stepwise with the increase of the detection voltage VCS. That is to say, when the detection voltage VCS increases, the gate-source voltage of the power switch 202 does not decrease correspondingly with the increase of the detection voltage VCS, so the power switch 202 can still operate in the saturation region.

[0081] In addition, if Figure 1 As shown, those skilled in the art should understand that the primary controller 100 only illustrates elements related to the present invention. That is, the primary controller 100 is not limited to only including the gate control signal generating circuit 102 .

[0082] In addition, if Figure 1 As shown, the first voltage VCC is generated according to the auxiliary voltage VAUX disposed on the auxiliary winding 206 of the primary side PRI of the power converter 200 , and the primary controller 300 receives the first voltage VCC through a pin 108 .

[0083] Also, please refer to Figure 3 , Figure 3 is a schematic diagram of a primary controller 300 with a voltage compensation function disclosed in a second embodiment of the present invention, wherein the primary controller 300 is also applied to the primary side PRI of the power converter 200. Figure 3 As shown, the difference between the primary controller 300 and the primary controller 100 is that a gate control signal generating circuit 302 includes a clamping unit 3022. The clamping unit 3022 includes a variable current source 30222, a resistor 30224, an amplifier 30226, and a P-type metal oxide semiconductor transistor 30228. The variable current source 30222 has a first terminal and a second terminal, wherein the first terminal of the variable current source 30222 receives the first voltage VCC, and the variable current source 30222 is used to provide a variable charging current IRAMP, and the variable charging current IRAMP is related to the turn-on time of the power switch 202; the resistor 30224 has a first terminal and a second terminal, wherein the first terminal of the resistor 30224 is coupled to the second terminal of the variable current source 30222 and has a clamping voltage VCLAMP; the amplifier 30226 has an input terminal and an output terminal, wherein the output terminal of the amplifier 30226 is coupled to the second terminal of the resistor 30224, and the amplifier 3022 6 receives a certain voltage VF, and the clamping voltage VCLAMP is determined by the constant voltage VF, the variable charging current IRAMP and the resistor 30224; the P-type metal oxide semiconductor transistor 30228 has a first end, a second end and a third end, wherein the second end of the P-type metal oxide semiconductor transistor 30228 is coupled to the first end of the resistor 30224, and the third end of the P-type metal oxide semiconductor transistor 30228 receives the second voltage GND1, wherein the P-type metal oxide semiconductor transistor 30228 generates a compensation voltage VC at the first end of the P-type metal oxide semiconductor transistor 30228 according to the clamping voltage VCLAMP.

[0084] In addition, if Figure 4 As shown, the variable current source 30222 includes a current-to-voltage unit 304, a voltage-to-current unit 305 and a first current mirror 306. The current-to-voltage unit 304 includes a current source 3042, an N-type metal oxide semiconductor transistor 3044 and a capacitor 3046, wherein the coupling relationship between the current source 3042, the N-type metal oxide semiconductor transistor 3044 and the capacitor 3046 can be referred to Figure 4 , I will not go into details here. Figure 4 As shown, the current-to-voltage unit 304 is used to convert the current into voltage according to the inverted control signal and a base current IBASE to generate a voltage VTO at a node B, wherein the base current IBASE is a certain current, and the voltage VTO is related to the turn-on time of the power switch 202 .

[0085] like Figure 4 As shown, the voltage-to-current unit 305 includes an N-type metal oxide semiconductor transistor 3066 and a resistor 3068, and the first current mirror 306 includes P-type metal oxide semiconductor transistors 3062 and 3064, wherein the coupling relationship between the P-type metal oxide semiconductor transistors 3062, 3064, the N-type metal oxide semiconductor transistor 3066 and the resistor 3068 can be referred to Figure 4 , and will not be repeated here. Figure 4 As shown, the voltage-to-current unit 305 can generate a current I1 according to the voltage VTO, wherein the voltage VTO is related to the turn-on time of the power switch 202, and the current I1 is also related to the turn-on time of the power switch 202; the first current mirror 306 is used to generate a variable charging current IRAMP related to the turn-on time of the power switch 202 according to the current I1, wherein those skilled in the art should understand that the variable charging current IRAMP can be determined by formula (1):

[0086]

[0087] As shown in equation (1), TON is the on time of the power switch 202, C3046 is the capacitance of the capacitor 3046, R3068 is the resistance of the resistor 3068, and K is the current scaling ratio of the first current mirror 306, where K can be changed according to the needs of the designer of the primary controller 300. Because IBASE, C3046, R3068, and K are all fixed values, the variable charging current IRAMP will change with the positive change of TON (such as Figure 5 As shown, since the control signal φ is related to the opening time of the power switch 2022, Figure 5 The control signal φ can be used to represent TON).

[0088] Next, Figure 3 As shown, the clamping voltage VCLAMP can be determined by equation (2):

[0089] VCLAMP=VF+IRAMP×R30224 (2)

[0090] As shown in formula (2), R30224 is the resistance value of resistor 30224, where because the variable charging current IRAMP changes positively with TON, the clamping voltage VCLAMP also changes positively with TON. In addition, Figure 3 As shown, because the P-type metal oxide semiconductor transistor 30228 can make the potential level of the compensation voltage VC equal to the potential level of the clamping voltage VCLAMP, the compensation voltage VC will also change positively with TON, causing the gate control signal GCS to change positively with TON (such as Figure 6Therefore, if Figure 6 As shown, although the detection voltage VCS changes positively with TON (that is, the detection voltage VCS increases with the increase of TON), because the gate control signal GCS also changes positively with TON, the gate-source voltage of the power switch 202 does not decrease correspondingly with the increase of the detection voltage VCS, that is, the power switch 202 can still operate in the saturation region.

[0091] In addition, please refer to Figure 7 , Figure 7 4 is a schematic diagram of another variable current source 40222 applied to the clamping unit 3022 disclosed in the third embodiment of the present invention, wherein the difference between the variable current source 40222 and the variable current source 30222 is that a second current mirror (composed of P-type metal oxide semiconductor transistors 4022 and 4024) in a current-to-voltage unit 404 of the variable current source 40222 can generate a base current IBASE according to a feedback current IFB, wherein the feedback current IFB is connected through a pin 106 (please refer to Figure 3 ) outflow. Figure 3 As shown, since the feedback current IFB is related to a feedback voltage VFB, and the feedback voltage VFB is related to an auxiliary voltage VAUX set on the auxiliary winding 206 of the primary side PRI of the power converter 200, the feedback current IFB is obviously related to the DC input voltage VIN of the primary side PRI of the power converter 200 (because the auxiliary voltage VAUX can be generated by the auxiliary winding 206, the primary side winding 210 of the primary side PRI of the power converter 200 and the DC input voltage VIN), wherein the DC input voltage VIN is generated by rectifying an AC voltage VAC by the bridge rectifier 208 of the power converter 200, and those skilled in the art should understand that the feedback current IFB can be expressed by formula (3):

[0092]

[0093] As shown in formula (3), RFB is the resistance value on pin 106, NPS is the turns ratio of the primary winding 210 and the auxiliary winding 206, and K is the current scaling ratio of the second current mirror. Therefore, it is obvious from formula (3) that the feedback current IFB will obviously change positively with the DC input voltage VIN. Figure 7 As shown, because the variable current source 40222 can generate a variable charging current IRAMP according to the feedback current IFB and the control signal φ, the variable charging current IRAMP will also change positively with the DC input voltage VIN. In addition, in another embodiment of the present invention, the current scaling ratio of the second current mirror is K1, wherein K1 is different from the current scaling ratio K of the first current mirror 306.

[0094] Therefore, if Figure 3 As shown in equation (2), since the variable charging current IRAMP changes positively with the DC input voltage VIN, the clamping voltage VCLAMP also changes positively with the DC input voltage VIN, causing the compensation voltage VC to change positively with the DC input voltage VIN. That is, the gate control signal GCS also changes positively with the DC input voltage VIN.

[0095] In addition, if Figure 3 As shown, since the detection voltage VCS is determined by the primary side current IPRI flowing through the primary side PRI of the power converter 200 and the detection resistor 204, the detection voltage VCS can be expressed by equation (4):

[0096]

[0097] As shown in equation (4), R204 is the resistance of the detection resistor 204, and L is the inductance of the primary winding 210 of the primary side PRI of the power converter 200. Therefore, it is obvious from equation (4) that the detection voltage VCS will also change positively with the DC input voltage VIN.

[0098] Therefore, although the detection voltage VCS will change positively with the DC input voltage VIN (that is, the detection voltage VCS will increase with the increase of the DC input voltage VIN), because the gate control signal GCS will also change positively with the DC input voltage VIN, the gate control signal GCS can change positively with the detection voltage VCS (such as Figure 8 That is to say, the gate-source voltage of the power switch 202 does not decrease correspondingly as the detection voltage VCS increases, so the power switch 202 can still operate in the saturation region.

[0099] Please refer to Fig. 9 and Fig.10 , Fig. 9 is a timing diagram illustrating waveforms of the control signal φ, the gate control signal GCS, the detection voltage VCS and the gate-source voltage of the power switch 202 when the AC voltage VAC is turned off (OFF), and Fig.10 2 is a timing diagram illustrating waveforms of the control signal φ, the gate control signal GCS, the detection voltage VCS and the gate-source voltage of the power switch 202 when the detection resistor 204 is short-circuited, wherein Fig. 9 and Fig.10 This corresponds to the third embodiment. Fig. 9As shown, when the AC voltage VAC is turned off (OFF), because the DC input voltage VIN is very small, the detection voltage VCS increases slowly (refer to formula (4)), resulting in the control signal φ corresponding to the maximum on time TOMAX of the power switch 202. Thus, from formula (1) and formula (2), it can be seen that the variable charging current IRAMP will continue to increase, so the clamping voltage VCLAMP will also continue to increase, resulting in the potential level of the gate control signal GCS also continuing to increase. Therefore, at a time T1, a clamping voltage maximum circuit (not shown) in the primary controller 300 (including the variable current source 40222) of the third embodiment is Figure 3 ) will limit the variable charging current IRAMP to a variable charging current maximum value IRAMP(MAX) so that the clamping voltage VCLAMP is also limited to a clamping voltage maximum value VCLAMP(MAX), so the gate control signal GCS will also be limited to the clamping voltage maximum value VCLAMP(MAX). In addition, from formula (2), it can be seen that the clamping voltage maximum value VCLAMP(MAX) can be determined by formula (5):

[0100] VCLAMP(MAX)=VF+IRAMP(MAX)×R30224 (5)

[0101] In addition, if Fig. 9 As shown, after time T1 , because the detection voltage VCS is still increasing slowly, but the clamping voltage VCLAMP is limited to the maximum clamping voltage VCLAMP(MAX), the gate-source voltage VGS of the power switch 202 will gradually decrease.

[0102] In addition, if Fig.10 As shown, when the detection resistor 204 is short-circuited (for example, the detection voltage VCS is continuously lower than a predetermined value (for example, 0.1V) for a predetermined time (for example, 2us)), the control signal φ will correspond to the maximum on time TOMAX of the power switch 202. At this time, a clamping voltage minimum circuit (not shown) in the primary controller 300 (including the variable current source 40222) of the third embodiment is Figure 3 ) will make the variable charging current IRAMP zero so that the clamping voltage VCLAMP is limited to a constant voltage VF, so the gate control signal GCS will also be limited to a constant voltage VF, resulting in the gate-source voltage VGS of the power switch 202 being fixed.

[0103] Please refer to Figure 1 , Figure 2 and Fig.11 , Fig.11 is a flow chart of an operating method of a primary controller with a voltage compensation function disclosed in a fourth embodiment of the present invention. Fig.11 The method of operation is to use Figure 1 The primary controller 100 and the power converter 200 are described in detail as follows:

[0104] Step 1100: Start;

[0105] Step 1102: The clamping unit 1022 generates a compensation voltage VC according to the clamping voltage VCLAMP;

[0106] Step 1104 : The driving unit 1024 generates a gate control signal GCS according to the compensation voltage VC, and the process returns to step 1102 .

[0107] In step 1102, if Figure 1 As shown, when the control signal φ is enabled (the inverted control signal When the power switch 202 is turned off), the first switch 10224 is turned on and the second switch 10230 is turned off, and the P-type metal oxide semiconductor transistor 10226 and the amplifier 10228 will charge the node A with the charging current IC according to the clamping voltage VCLAMP until the potential level of the compensation voltage VC is equal to the potential level of the clamping voltage VCLAMP, wherein the clamping voltage VCLAMP changes correspondingly with the detection voltage VCS on the detection resistor 204 coupled to the power switch 202, that is, when the detection voltage VCS is less than the first reference voltage, the clamping voltage VCLAMP has a first value V1, when the detection voltage VCS is between the first reference voltage and the second reference voltage, the clamping voltage VCLAMP has a second value V2, and when the detection voltage VCS is greater than the second reference voltage, the clamping voltage VCLAMP has a third value V3, wherein the first value V1 is less than the second value V2, and the second value V2 is less than the third value V3.

[0108] In step 1104, because when the control signal φ is enabled (the inverted control signal When the first N-type metal oxide semiconductor transistor 10242 is turned on and the second N-type metal oxide semiconductor transistor 10244 is turned off, the first N-type metal oxide semiconductor transistor 10242 can make the gate control signal GCS change accordingly with the potential level of the compensation voltage VC.

[0109] Therefore, if Figure 2As shown, when the control signal φ is enabled, the clamping voltage VCLAMP changes correspondingly with the detection voltage VCS on the detection resistor 204, the potential level of the compensation voltage VC is equal to the potential level of the clamping voltage VCLAMP, and the gate control signal GCS changes positively with the potential level of the compensation voltage VC, so the gate control signal GCS increases stepwise with the increase of the detection voltage VCS. That is to say, when the detection voltage VCS increases, the gate-source voltage of the power switch 202 does not decrease correspondingly with the increase of the detection voltage VCS, so the power switch 202 can still operate in the saturation region.

[0110] Please refer to Figure 3 , Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 , Fig. 9 , Fig.10 and Fig.12 , Fig.12 It is a flow chart of an operating method of a primary controller with a voltage compensation function disclosed in a fifth embodiment of the present invention. Fig.12 The method of operation is to use Figure 3 The primary controller 300, the power converter 200 and Figure 7 The variable current source 40222 is described in detail as follows:

[0111] Step 1200: Start;

[0112] Step 1202: The variable current source 30222 is controlled according to the inverted control signal and base current IBASE, generating a voltage VTO, where the inverting control signal Inversely related to the turn-on time of the power switch 202;

[0113] Step 1204: the variable current source 30222 generates a variable charging current IRAMP according to the voltage VTO; Step 1206: the clamping unit 1022 generates a clamping voltage VCLAMP according to the constant voltage VF, the variable charging current IRAMP and the resistor 30224;

[0114] Step 1208: The clamping unit 1022 generates a compensation voltage VC according to the clamping voltage VCLAMP;

[0115] Step 1210 : The driving unit 1024 generates a gate control signal GCS according to the compensation voltage VC, and then returns to step 1202 .

[0116] In step 1202, if Figure 4 As shown, the current-to-voltage unit 304 in the variable current source 30222 can be controlled according to the inverted control signal and the base current IBASE, a voltage VTO is generated at the node B, wherein the base current IBASE is a certain current, and the voltage VTO is related to the turn-on time of the power switch 202 .

[0117] In step 1204, if Figure 4 As shown, the voltage-to-current unit 305 in the variable current source 30222 can generate a current I1 according to the voltage VTO, wherein the voltage VTO is related to the turn-on time of the power switch 202, and the current I1 is also related to the turn-on time of the power switch 202; the first current mirror 306 in the variable current source 30222 can generate a variable charging current IRAMP related to the turn-on time of the power switch 202 according to the current I1, wherein the variable charging current IRAMP changes with the positive direction of TON (such as Figure 5 shown).

[0118] In step 1206 and step 1208, because the variable charging current IRAMP changes positively with TON, the clamping voltage VCLAMP also changes positively with TON. Figure 3 As shown, because the P-type metal oxide semiconductor transistor 30228 can make the potential level of the compensation voltage VC equal to the potential level of the clamping voltage VCLAMP, the compensation voltage VC will also change positively with TON, causing the gate control signal GCS to change positively with TON (such as Figure 6 Therefore, if Figure 6 As shown, although the detection voltage VCS changes positively with TON (that is, the detection voltage VCS increases with the increase of TON), because the gate control signal GCS also changes positively with TON, the gate-source voltage of the power switch 202 does not decrease correspondingly with the increase of the detection voltage VCS, that is, the power switch 202 can still operate in the saturation region.

[0119] In addition, in another embodiment of the present invention, Figure 7 As shown, the second current mirror (composed of P-type metal oxide semiconductor transistors 4022 and 4024) in the current-to-voltage unit 404 of the variable current source 40222 can generate a base current IBASE according to the feedback current IFB, wherein Figure 3As shown, since the feedback current IFB is related to the feedback voltage VFB, and the feedback voltage VFB is related to the auxiliary voltage VAUX set on the auxiliary winding 206 of the primary side PRI of the power converter 200, the feedback current IFB is obviously related to the DC input voltage VIN of the primary side PRI of the power converter 200 (because the auxiliary voltage VAUX can be generated by the auxiliary winding 206, the primary side winding 210 of the primary side PRI of the power converter 200 and the DC input voltage VIN). In addition, it is obvious from formula (3) that the feedback current IFB will obviously change positively with the DC input voltage VIN. In this way, Figure 7 As shown, since the variable current source 40222 can generate the variable charging current IRAMP according to the feedback current IFB and the control signal φ, the variable charging current IRAMP will also change positively with the DC input voltage VIN.

[0120] Therefore, if Figure 3 As shown in equation (2), since the variable charging current IRAMP changes positively with the DC input voltage VIN, the clamping voltage VCLAMP also changes positively with the DC input voltage VIN, causing the compensation voltage VC to change positively with the DC input voltage VIN. That is, the gate control signal GCS also changes positively with the DC input voltage VIN.

[0121] Therefore, although the detection voltage VCS will change positively with the DC input voltage VIN (that is, the detection voltage VCS will increase with the increase of the DC input voltage VIN), because the gate control signal GCS will also change positively with the DC input voltage VIN, the gate control signal GCS can change positively with the detection voltage VCS (such as Figure 8 That is to say, the gate-source voltage of the power switch 202 does not decrease correspondingly as the detection voltage VCS increases, so the power switch 202 can still operate in the saturation region.

[0122] In summary, because the primary controller with voltage compensation function and the operation method thereof provided by the present invention can make the potential level of the gate control signal of the power switch applied to the primary side of the power converter change with the detection voltage, the gate-source voltage of the power switch will not decrease correspondingly with the increase of the detection voltage. Therefore, compared with the prior art, in the case of dynamic change of the detection voltage, the power switch can still be operated in the saturation region, so the conversion efficiency of the power converter will not be reduced.

[0123] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A primary controller with a voltage compensation function, wherein the primary controller is applied to a primary side of a power converter, and the primary controller is characterized by comprising: A gate control signal generating circuit is coupled to a power switch disposed on the primary side of the power converter, and is used to enable a gate control signal, wherein the gate control signal is used to turn on the power switch, and the gate control signal generating circuit includes: a clamping unit for generating a compensation voltage according to a clamping voltage; and A driving unit is coupled between the clamping unit and the gate of the power switch, and is used to generate the gate control signal according to the compensation voltage, wherein the clamping voltage changes correspondingly with a detection voltage on a detection resistor coupled to the power switch.

2. The primary controller according to claim 1, characterized in that The clamping unit comprises: a current source having a first terminal and a second terminal, wherein the first terminal of the current source receives a first voltage, and the current source is used to provide a charging current; a first switch having a first terminal, a second terminal and a control terminal, wherein the first terminal of the first switch is coupled to the second terminal of the current source, the control terminal of the first switch receives a control signal, and the control signal is related to the turn-on time of the power switch; A P-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein a first terminal of the P-type metal oxide semiconductor transistor is coupled to a second terminal of the first switch, a third terminal of the P-type metal oxide semiconductor transistor receives a second voltage, and the first voltage is greater than the second voltage; an amplifier having an input terminal and an output terminal, wherein the output terminal of the amplifier is coupled to the second terminal of the P-type metal oxide semiconductor transistor, and the input terminal of the amplifier receives the clamping voltage; and a second switch having a first terminal, a second terminal and a control terminal, wherein the first terminal of the second switch is coupled to the second terminal of the first switch and the first terminal of the P-type metal oxide semiconductor transistor, and the control terminal of the second switch receives an inverted control signal, The second end of the second switch receives the second voltage, and the inverted control signal is an inverted signal of the control signal.

3. The primary controller according to claim 2, characterized in that When the detection voltage is less than a first reference voltage, the clamping voltage has a first value, when the detection voltage is between the first reference voltage and a second reference voltage, the clamping voltage has a second value, and when the detection voltage is greater than the second reference voltage, the clamping voltage has a third value, wherein the first value is less than the second value, and the second value is less than the third value.

4. The primary controller according to claim 2, characterized in that The driving unit comprises: a first N-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the first terminal of the first N-type metal oxide semiconductor transistor receives the first voltage, the second terminal of the first N-type metal oxide semiconductor transistor is coupled to the clamping unit to receive the compensation voltage, and the third terminal of the first N-type metal oxide semiconductor transistor is coupled to the gate of the power switch, wherein the first N-type metal oxide semiconductor transistor generates the gate control signal according to the compensation voltage; and a second N-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the first terminal of the second N-type metal oxide semiconductor transistor is coupled to the third terminal of the first N-type metal oxide semiconductor transistor, the second terminal of the second N-type metal oxide semiconductor transistor is used to receive the inverted control signal, and the third terminal of the second N-type metal oxide semiconductor transistor is used to receive the second voltage.

5. The primary controller according to claim 1, characterized in that The clamping unit comprises: a variable current source having a first terminal and a second terminal, wherein the first terminal of the variable current source receives a first voltage, and the variable current source is used to provide a variable charging current, And the variable charging current is related to the opening time of the power switch; a resistor having a first end and a second end, wherein the first end of the resistor is coupled to the second end of the variable current source and has the clamping voltage; an amplifier having an input terminal and an output terminal, wherein the output terminal of the amplifier is coupled to the second terminal of the resistor, and the input terminal of the amplifier receives a certain voltage, and the clamping voltage is determined by the certain voltage, the variable charging current and the resistor; and A P-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the second terminal of the P-type metal oxide semiconductor transistor is coupled to the first terminal of the resistor, the third terminal of the P-type metal oxide semiconductor transistor receives a second voltage, and the first voltage is greater than the second voltage; The P-type metal oxide semiconductor transistor generates the compensation voltage at the first end of the P-type metal oxide semiconductor transistor according to the clamping voltage.

6. The primary controller according to claim 5, characterized in that The variable current source comprises: a current-to-voltage unit, configured to generate a voltage according to an inverted control signal and a base current, wherein the voltage is related to a turn-on time of the power switch; a voltage-to-current unit, coupled to the current-to-voltage unit, for converting the voltage generating an electric current; and A first current mirror is coupled to the voltage-to-current unit and is used to generate the variable charging current according to the current.

7. The primary controller according to claim 6, characterized in that The driving unit comprises: a first N-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the first terminal of the first N-type metal oxide semiconductor transistor receives the first voltage, the second terminal of the first N-type metal oxide semiconductor transistor is coupled to the clamping unit to receive the compensation voltage, and the third terminal of the first N-type metal oxide semiconductor transistor is coupled to the gate of the power switch, wherein the first N-type metal oxide semiconductor transistor generates the gate control signal according to the compensation voltage; and a second N-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the first terminal of the second N-type metal oxide semiconductor transistor is coupled to the third terminal of the first N-type metal oxide semiconductor transistor, the second terminal of the second N-type metal oxide semiconductor transistor is used to receive the inverted control signal, and the third terminal of the second N-type metal oxide semiconductor transistor is used to receive the second voltage.

8. The primary controller of claim 6, wherein The basic current is generated according to a feedback current, and the feedback current is related to a DC input voltage of a primary side of the power converter.

9. The primary controller of claim 8, wherein The driving unit comprises: a first N-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the first terminal of the first N-type metal oxide semiconductor transistor receives the first voltage, the second terminal of the first N-type metal oxide semiconductor transistor is coupled to the clamping unit to receive the compensation voltage, and the third terminal of the first N-type metal oxide semiconductor transistor is coupled to the gate of the power switch, wherein the first N-type metal oxide semiconductor transistor generates the gate control signal according to the compensation voltage; and a second N-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the first terminal of the second N-type metal oxide semiconductor transistor is coupled to the third terminal of the first N-type metal oxide semiconductor transistor, the second terminal of the second N-type metal oxide semiconductor transistor is used to receive the inverted control signal, and the third terminal of the second N-type metal oxide semiconductor transistor is used to receive the second voltage.

10. A primary controller with a voltage compensation function, wherein the primary controller is applied to a primary side of a power converter, and the primary controller is characterized by comprising: A gate control signal generating circuit is coupled to a power switch disposed on the primary side of the power converter, and is used to enable a gate control signal, wherein the gate control signal is used to turn on the power switch, and the gate control signal generating circuit includes: a clamping unit for generating a compensation voltage according to a clamping voltage; and A driving unit is coupled between the clamping unit and the gate of the power switch, and is used to generate the gate control signal according to the compensation voltage, wherein the clamping voltage changes correspondingly with a DC input voltage of a primary side of the power converter.

11. The primary controller of claim 10, wherein The clamping unit comprises: a variable current source having a first terminal and a second terminal, wherein the first terminal of the current source receives a first voltage, and the variable current source is used to provide a variable charging current, and the variable charging current is related to the turn-on time of the power switch; a resistor having a first end and a second end, wherein the first end of the resistor is coupled to the second end of the variable current source and has the clamping voltage; an amplifier having an input terminal and an output terminal, wherein the output terminal of the amplifier is coupled to the second terminal of the resistor, and the input terminal of the amplifier receives a certain voltage, and the clamping voltage is determined by the certain voltage, the variable charging current and the resistor; and A P-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the second end of the P-type metal oxide semiconductor transistor is coupled to the first end of the resistor, the third end of the P-type metal oxide semiconductor transistor receives a second voltage, and the first voltage is greater than the second voltage; The P-type metal oxide semiconductor transistor generates the compensation voltage at the first end of the P-type metal oxide semiconductor transistor according to the clamping voltage.

12. The primary controller of claim 11, wherein The variable current source comprises: a current-to-voltage unit, configured to generate a voltage according to an inverted control signal and a base current, wherein the voltage is related to a turn-on time of the power switch; a voltage-to-current unit, coupled to the current-to-voltage unit, for converting the voltage generating an electric current; and A first current mirror is coupled to the voltage-to-current unit and is used to generate the variable charging current according to the current.

13. The primary controller of claim 12, wherein The basic current is generated according to a feedback current, and the feedback current is related to a DC input voltage of a primary side of the power converter.

14. The primary controller of claim 13, wherein The driving unit comprises: a first N-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the first terminal of the first N-type metal oxide semiconductor transistor receives the first voltage, the second terminal of the first N-type metal oxide semiconductor transistor is coupled to the clamping unit to receive the compensation voltage, and the third terminal of the first N-type metal oxide semiconductor transistor is coupled to the gate of the power switch, wherein the first N-type metal oxide semiconductor transistor generates the gate control signal according to the compensation voltage; and a second N-type metal oxide semiconductor transistor having a first terminal, a second terminal and a third terminal, wherein the first terminal of the second N-type metal oxide semiconductor transistor is coupled to the third terminal of the first N-type metal oxide semiconductor transistor, the second terminal of the second N-type metal oxide semiconductor transistor is used to receive the inverted control signal, and the third terminal of the second N-type metal oxide semiconductor transistor is used to receive the second voltage.

15. An operating method of a primary controller with a voltage compensation function, wherein the primary controller is applied to a primary side of a power converter, the primary controller comprises a gate control signal generating circuit, and the gate control signal generating circuit comprises a clamping unit and a driving unit, the operating method is characterized by comprising: The clamping unit generates a compensation voltage according to a clamping voltage; and The driving unit generates the gate control signal according to the compensation voltage, wherein the gate control signal is used to turn on a power switch on the primary side of the power converter, and the clamping voltage changes accordingly with a detection voltage on a detection resistor coupled to the power switch.

16. The operating method according to claim 15, characterized in that When the detection voltage is less than a first reference voltage, the clamping voltage has a first value, when the detection voltage is between the first reference voltage and a second reference voltage, the clamping voltage has a second value, and when the detection voltage is greater than the second reference voltage, the clamping voltage has a third value, wherein the first value is less than the second value, and the second value is less than the third value.

17. The operating method according to claim 15, characterized in that Also includes: generating a voltage according to an inverted control signal and a base current, wherein the voltage is related to a turn-on time of the power switch; generating a current according to the voltage; According to the current, a variable charging current is generated; and The clamping voltage is generated according to a certain voltage, the variable charging current and a resistor.

18. The operating method according to claim 17, characterized in that Also includes: The basic current is generated according to a feedback current, wherein the feedback current is related to a DC input voltage of a primary side of the power converter.

19. An operating method of a primary controller with a voltage compensation function, wherein the primary controller is applied to a primary side of a power converter, the primary controller comprises a gate control signal generating circuit, and the gate control signal generating circuit comprises a clamping unit and a driving unit, the operating method is characterized by comprising: The clamping unit generates a compensation voltage according to a clamping voltage; and The driving unit generates the gate control signal according to the compensation voltage, wherein the clamping voltage changes correspondingly with a DC input voltage of a primary side of the power converter.

20. The operating method according to claim 19, characterized in that Also includes: generating a voltage according to an inverted control signal and a base current, wherein the voltage is related to a turn-on time of the power switch; generating a current according to the voltage; According to the current, a variable charging current is generated; and The clamping voltage is generated according to a certain voltage, the variable charging current and a resistor.

21. The operating method according to claim 20, characterized in that Also includes: The basic current is generated according to a feedback current, wherein the feedback current is related to a DC input voltage of a primary side of the power converter.