PD controller and PD adapter
By designing a PD controller that includes voltage sampling, difference calculation, hold, conversion, and comparison branches, the problem that USB PD controllers cannot detect the primary side information of flyback power supplies is solved, short-circuit protection and overcurrent protection are achieved, safety requirements are met, and safety is improved.
Patent Information
- Application Number
- CN202411047899.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-08-01
AI Technical Summary
Existing USB PD controllers cannot accurately and effectively detect the primary-side information of flyback power supplies, resulting in the inability to meet safety regulations for short-circuit protection and overcurrent protection functions.
A PD controller was designed, which includes a voltage sampling branch, a voltage difference branch, a sample-and-hold branch, a level conversion branch, and a comparison branch. Through the combination of these branches, the primary side information of the flyback power supply can be accurately detected, including the effective value of the input power supply and the switching frequency, on-time, and off-time of the switching transistor.
It achieves accurate information detection of flyback power supplies, meets safety regulations, and provides short-circuit and overcurrent protection, thus improving the safety of using USB PD adapters.
Smart Images

Figure CN118944455A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electronic circuit technology, and in particular to a PD controller and a PD adapter. Background Art
[0002] The USB Power Delivery (PD) protocol is a power transmission protocol launched by the USB standardization organization. Due to the widespread use of this protocol and the popularity of gallium nitride (GaN) material technology, GaN-based USB PD adapters have wider compatibility and more portable form factors.
[0003] The USB PD adapter is equipped with a USB PD controller and a flyback power supply. As the power transmission power continues to increase, safety regulations require that the USB PD controller can accurately and effectively detect the primary side information of the flyback power supply, such as the bus voltage, the switching frequency of the switch connected to the primary side of the flyback power supply, the on-time and off-time, etc., and requires the USB PD controller to monitor the transmission power of the system in real time based on this information, and realize system short-circuit protection, over-current protection and other functions, so as to keep the USB PD adapter safe.
[0004] However, the current USB PD controller cannot detect the above information, which results in failure to meet safety regulations. Summary of the invention
[0005] The embodiments of the present application provide a PD controller and a PD adapter, which can accurately and effectively detect the primary side information of the flyback power supply, thereby realizing functions such as short circuit protection and overcurrent protection, and complying with safety regulations.
[0006] In a first aspect, an embodiment of the present application provides a PD controller, which is applied to a flyback power supply, wherein the flyback power supply includes a flyback transformer, a freewheeling unit, a first switch tube, and a second switch tube, wherein the opposite-name end of the primary side of the flyback transformer is connected to the positive electrode of the input power supply, the same-name end of the primary side of the flyback transformer is grounded through the first switch tube, and the same-name end of the secondary side of the flyback transformer outputs a first voltage through the freewheeling unit and the second switch tube, and the PD controller includes:
[0007] a voltage sampling branch, connected to the same-name terminal of the secondary side of the flyback transformer and the second switch tube respectively, and configured to output a third voltage that is N times the first voltage, and output a fourth voltage that is N times the second voltage of the same-name terminal of the secondary side of the flyback transformer, wherein N is greater than 0 and less than 1;
[0008] a voltage difference branch, connected to the voltage sampling branch, and configured to output a fifth voltage based on a difference between the third voltage and the fourth voltage;
[0009] a sampling and holding branch connected to the voltage difference branch, configured to sample the fifth voltage in response to a sampling signal, and to hold the sampled fifth voltage in response to a holding signal;
[0010] a level conversion branch, connected to the voltage sampling branch, configured to increase the third voltage by a preset voltage value and output a sixth voltage, and to increase the fourth voltage by the preset voltage value and output a seventh voltage;
[0011] a comparison branch, connected to the level conversion branch, and configured to output a comparison result between the sixth voltage and the seventh voltage;
[0012] A control branch is connected to the comparison branch and the sample-and-hold branch, respectively, and is configured to output the sampling signal when the comparison result is switching from the first level to the second level, and to output the holding signal when the comparison result is switching from the second level to the first level, and to determine the primary side information of the flyback power supply based on the fifth voltage that has been sampled and held and the comparison result, wherein when the sixth voltage is less than or equal to the seventh voltage, the comparison result is the first level, and when the sixth voltage is greater than the seventh voltage, the comparison result is the second level, and the primary side information of the flyback power supply includes the effective value of the input power supply and the switching frequency, on-time and off-time of the first switch tube.
[0013] In one or more embodiments, the control branch is further configured to:
[0014] When the comparison result is a delay of a preset time period when switching from the first level to the second level, and when the preset time period ends, the sampling signal is output;
[0015] When the comparison result is that the second level switches to the first level, the preset time period is delayed, and the holding signal is output when the preset time period ends.
[0016] In one or more embodiments, the PD controller further comprises:
[0017] An analog-to-digital converter is connected between the sampling and holding branch and the control branch, and is configured to convert the fifth voltage that has been sampled and held into a digital signal, and input the digital signal into the control branch, so that the control branch determines the primary side information of the flyback power supply based on the digital signal.
[0018] In one or more embodiments, the voltage sampling branch includes:
[0019] a first voltage dividing unit connected to the second switch tube, configured to divide the first voltage and output the third voltage, and the voltage division ratio is N;
[0020] The second voltage dividing unit is connected to the same-name terminal of the secondary side of the flyback transformer, and is configured to output the fourth voltage after dividing the second voltage, and the voltage division ratio is N.
[0021] In one or more embodiments, the first voltage dividing unit includes a first resistor and a second resistor, and the second voltage dividing unit includes a third resistor and a fourth resistor;
[0022] The first resistor and the second resistor are connected in series between the second end of the second switch tube and the ground, and the third resistor and the fourth resistor are connected in series between the same-name end of the secondary side of the flyback transformer and the ground.
[0023] In one or more embodiments, the voltage difference branch includes a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor and a first operational amplifier;
[0024] The fifth resistor and the sixth resistor are connected in series between one end of the voltage sampling branch outputting the third voltage and the ground, the connection point between the fifth resistor and the sixth resistor is connected to the first input end of the first operational amplifier, the seventh resistor and the eighth resistor are connected in series between one end of the voltage sampling branch outputting the fourth voltage and the output end of the first operational amplifier, the connection point between the seventh resistor and the eighth resistor is connected to the second input end of the first operational amplifier, and the output end of the first operational amplifier is connected to the sampling and holding branch.
[0025] In one or more embodiments, the sample-and-hold branch includes a first transmission gate, a second transmission gate, a first capacitor, a second capacitor, and a buffer;
[0026] The input end of the first transmission gate is connected to the voltage difference branch, the output end of the first transmission gate is respectively connected to the input end of the second transmission gate and the first end of the first capacitor, the control end of the first transmission gate is connected to the control branch, the output end of the second transmission gate is respectively connected to the first end of the second capacitor and the input end of the buffer, the control end of the second transmission gate is connected to the control branch, the second end of the first capacitor and the second end of the second capacitor are both grounded, and the output end of the buffer is connected to the control branch.
[0027] In one or more embodiments, the voltage conversion branch includes a first transistor, a second transistor, a ninth resistor, a tenth resistor, a first current source, and a second current source;
[0028] The first end of the first transistor is connected to an end of the voltage sampling branch that outputs the third voltage, the second end of the first transistor is connected to the positive electrode of the first current source through the ninth resistor, the third end of the first transistor and the third end of the second transistor are both grounded, the negative electrode of the first current source is connected to the first power supply, the positive electrode of the first current source is connected to the comparison branch, the second end of the second transistor is connected to the positive electrode of the second current source through the tenth resistor, the third end of the second transistor is grounded, the negative electrode of the second current source is connected to the first power supply, and the positive electrode of the second current source is connected to the comparison branch.
[0029] In one or more embodiments, the comparison branch includes a comparator;
[0030] The first input terminal of the comparator is connected to an end of the level conversion branch outputting the sixth voltage, the second input terminal of the comparator is connected to an end of the level conversion branch outputting the seventh voltage, and the output terminal of the comparator is connected to the control branch.
[0031] In a second aspect, an embodiment of the present application provides a PD adapter, including a flyback power supply and the PD controller as described above.
[0032] The beneficial effects of the present application are as follows: the PD controller of the embodiment of the present application includes a voltage sampling branch, a voltage difference branch, a sampling and holding branch, a level conversion branch, a comparison branch and a control branch. The voltage sampling branch is configured to output a third voltage that is N times the first voltage, and output a fourth voltage that is N times the second voltage of the same-name end of the secondary side of the flyback transformer, wherein N is greater than 0 and less than 1. The voltage difference branch is configured to output a fifth voltage based on the difference between the third voltage and the fourth voltage. The sampling and holding branch is configured to sample the fifth voltage in response to a sampling signal, and to hold the sampled fifth voltage in response to a holding signal. The level conversion branch is configured to increase the third voltage by a preset voltage value and output a sixth voltage, and increase the fourth voltage by a preset voltage value and output a seventh voltage. The comparison branch is configured to output a comparison result between the sixth voltage and the seventh voltage. The control branch is configured to output a sampling signal when the comparison result is a switch from the first level to the second level, and to output a holding signal when the comparison result is a switch from the second level to the first level, and to determine the primary side information of the flyback power supply based on the fifth voltage sampled and held and the comparison result, wherein the comparison result is the first level when the sixth voltage is less than or equal to the seventh voltage, and the comparison result is the second level when the sixth voltage is greater than the seventh voltage, and the primary side information of the flyback power supply includes the effective value of the input power supply and the switching frequency, on-time and off-time of the first switch tube. The effective value of the input power supply can be obtained based on the fifth voltage, and the switching frequency, on-time and off-time of the first switch tube can be determined based on the eighth voltage. It can be seen that through the above process, the primary side information of the flyback power supply can be accurately and effectively detected, thereby realizing functions such as short-circuit protection and overcurrent protection, and meeting safety requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] One or more embodiments are exemplarily described by the figures in the corresponding drawings, and these exemplary descriptions are not intended to limit the embodiments. Elements with the same reference numerals in the drawings represent similar elements.
[0034] Figure 1 It is a schematic diagram of a block diagram of a PD adapter provided in an embodiment of the present application;
[0035] Figure 2 Schematic diagram of the circuit structure of a flyback power supply provided in an embodiment of the present application;
[0036] Figure 3 yes Figure 2 A schematic diagram of various signals in the circuit structure of the flyback power supply shown;
[0037] Figure 4 This is a schematic diagram of the composition block diagram of the PD controller provided in the embodiment of the present application. Figure 1 ;
[0038] Figure 5 This is a schematic diagram of the composition block diagram of the PD controller provided in the embodiment of the present application. Figure 2 ;
[0039] Figure 6 is with Figure 5 The circuit structure corresponding to the block diagram of the PD controller shown;
[0040] Figure 7 yes Figure 6 Schematic diagram of various signals in the circuit structure of the PD controller shown. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be described clearly and in detail in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] It should be noted that, when an element is described as being “connected to” another element, it may be directly connected to the other element, or one or more intervening elements may exist therebetween.
[0043] In addition, the technical features involved in the various embodiments of the present application described below can be combined with each other as long as there is no structural conflict between them.
[0044] Please refer to Figure 1 , Figure 1 This is a schematic diagram of a block diagram of a PD adapter provided in an embodiment of the present application. Figure 1 As shown, the PD adapter 1000 includes the PD controller 100 and the flyback power supply 200 in any embodiment of the present application.
[0045] The PD controller 100 is connected to the flyback power supply 200. The PD controller 100 is used to control the components (such as the switch tube) in the flyback power supply 200. The PD controller 100 is also used to obtain various information in the flyback power supply 200, such as the switching frequency, the on-time and the off-time of the switch tube in the flyback power supply 200.
[0046] Please refer to Figure 2 , Figure 2 A circuit structure of a flyback power supply 200 is shown as an example. Figure 2 As shown, the flyback power supply 200 includes a flyback transformer T1 , a freewheeling unit 201 , a first switch tube Q1 , and a second switch tube Q2 .
[0047] The opposite-name end of the primary side of the flyback transformer T1 is connected to the positive pole of the input power supply VIN, and the negative pole of the input power supply VIN is grounded. The same-name end of the primary side of the flyback transformer T1 is grounded GND through the first switch tube Q1, that is, the same-name end of the primary side of the flyback transformer T1 is connected to the third end of the first switch tube Q1, and the second end of the first switch tube Q1 is grounded GND. The first end of the first switch tube Q1 inputs a pulse width modulation (PWM) signal F1, so as to be alternately turned on and off under the action of the pulse width modulation signal F1. The same-name end of the secondary side of the flyback transformer T1 outputs the first voltage V1 through the freewheeling unit 201 and the second switch tube Q2, that is, the same-name end of the secondary side of the flyback transformer T1 is connected to the first end of the freewheeling unit 201, the second end of the freewheeling unit 201 is connected to the third end of the second switch tube Q2, and the second end of the second switch tube Q2 is the positive electrode of the first voltage V1, which can be understood as the second end of the second switch tube Q2 outputs the first voltage V1. The first end of the second switch tube Q2 is connected to the PD controller 100, so as to be turned on or off by the signal output by the PD controller 100.
[0048] In this embodiment, the PD controller 100 is also connected to the same-name terminal of the secondary side of the flyback transformer T1 and the second end of the second switch tube Q2, respectively, to obtain the second voltage V2 and the first voltage V1, respectively. Then, the PD controller 100 can determine various information in the flyback power supply 200 based on the first voltage V1 and the second voltage V2, such as the effective value of the input power supply VI N (i.e., the effective value of the voltage of the input power supply VI N), the switching frequency of the first switch tube Q1, the on-time and the off-time, and other information, and based on the obtained signal, it can realize short-circuit protection, overcurrent protection and other functions to meet safety requirements. The specific implementation process will be described later. Among them, safety requirements refer to safety standards and specifications that must be followed when designing, manufacturing and using various products. These standards ensure that the product will not cause harm to users during normal use and can reduce potential safety risks.
[0049] In this embodiment, the freewheeling unit 201 includes a first diode D1, an anode of the first diode D1 is connected to the same-name terminal of the secondary side of the flyback transformer T1, and a cathode of the first diode D1 is connected to the third terminal of the second switch tube Q2. In other embodiments, the freewheeling unit 201 may also include a switch tube (such as an NMOS tube), which is controlled by the PD controller 100 and is turned on when freewheeling is required, and turned off when freewheeling is not required.
[0050] In this embodiment, the flyback power supply 200 further includes a first filter capacitor CA1 and a second filter capacitor CA2 for filtering, wherein the first filter capacitor CA1 is connected between the positive electrode and the negative electrode of the input power supply VI N, and the second filter capacitor CA2 is connected between the third terminal of the second switch tube Q2 and the ground GND.
[0051] In this embodiment, the first switch tube Q1 and the second switch tube Q2 are MOS tubes as an example. The gate of the MOS tube is the first end of the first switch tube Q1 and the second switch tube Q2, the source of the MOS tube is the second end of the first switch tube Q1 and the second switch tube Q2, and the drain of the MOS tube is the third end of the first switch tube Q1 and the second switch tube Q2.
[0052] In addition, the first switch tube Q1 and the second switch tube Q2 can be any controllable switches, such as insulated gate bipolar transistor (IGBT) devices, integrated gate commutated thyristor (IGCT) devices, gate turn-off thyristor (GTO) devices, silicon controlled rectifier (SCR) devices, junction gate field effect transistor (JFET) devices, MOS controlled thyristor (MCT) devices, etc.
[0053] The following combination Figure 3 right Figure 2 The principle of the circuit structure of the flyback power supply 200 shown in FIG. Figure 3 Schematic diagram showing various parameters of the flyback power supply 200 when the flyback power supply 200 has been running for a certain period and is in a stable state. Figure 3 As shown, the horizontal axis is time, the unit is s (seconds); the vertical axis is voltage, the unit is v (volts). The parameters in the flyback power supply 200 include the first voltage V1, the second voltage V2 and the pulse width modulation signal F1. In addition, in this embodiment, the PD controller 100 controls the second switch tube Q2 to remain turned on as an example.
[0054] like Figure 3 and Figure 2 As shown, when the pulse width modulation signal F1 is at a high level, the first switch tube Q1 is turned on (for example, the first switch tube Q1 is turned on in the time period TON), the input voltage VIN is applied to the primary side of the flyback transformer T1, and the primary side of the flyback transformer T1 is charged, and the energy is stored in the magnetic core of the flyback transformer T1 in the form of magnetic energy. Since the same-name ends of the primary and secondary sides of the flyback transformer T1 are reversed, the first diode D1 is reverse biased at this time, and the voltage of the same-name end of the secondary side of the flyback transformer T1 is -VIN*(NP / NS). Among them, NP / NS is the turns ratio of the primary and secondary sides of the flyback transformer T1, and VIN is the effective value of the input power VIN.
[0055] When the pulse width modulation signal F1 is at a low level, the first switch tube Q1 is turned off (for example, the first switch tube Q1 is turned off in the time period TOFF), the primary side of the flyback transformer T1 is open, the first diode D1 is forward biased, and the energy stored in the magnetic core of the flyback transformer T1 is transmitted to the load by the first diode D1 through the second switch tube Q2. At this time, the voltage of the same-name terminal of the secondary side of the flyback transformer T1 is V1+VD1, and VD1 is the conduction voltage drop of the first diode D1.
[0056] It can be seen that the flyback power supply 200 includes information such as the effective value of the input power supply VI N, the switching frequency of the first switch tube Q1, the on-time and the off-time, etc., all of which are information related to the primary side of the flyback transformer T1. For example, the input power supply VI N is the power input to the primary side, and the first switch tube Q1 is the switch tube connected to the primary side, so it is called primary side information. With the continuous improvement of power transmission power, based on safety regulations, the PD controller needs to accurately and effectively detect the above information, and also needs to be able to implement short-circuit protection, overcurrent protection and other functions based on this information to improve the safety of the PD adapter. Based on this, the PD controller provided in the embodiment of the present application is provided with a corresponding circuit structure to realize the detection of the above information.
[0057] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of the block diagram of the PD controller provided in the embodiment of the present application. The PD controller is applied to a flyback power supply. The flyback power supply includes a flyback transformer, a freewheeling unit, a first switch tube and a second switch tube. The opposite-name terminals of the primary side of the flyback transformer are connected to the positive pole of the input power supply, the same-name terminals of the primary side of the flyback transformer are grounded through the first switch tube, and the same-name terminals of the secondary side of the flyback transformer output a first voltage through the freewheeling unit and the second switch tube. The specific implementation process of the flyback power supply can be referred to the Figure 2 and Figure 3 The description will not be repeated here.
[0058] like Figure 4 As shown, the PD controller includes a voltage sampling branch 101, a voltage difference branch 102, a sampling and holding branch 103, a level conversion branch 104, a comparison branch 105 and a control branch 106. In a specific embodiment, the control branch 106 can be a micro control unit (MCU).
[0059] Among them, the voltage sampling branch 103 is respectively connected to the same-name terminal of the secondary side of the flyback transformer T1 and the second switch tube Q2, the voltage difference branch 102 is connected to the voltage sampling branch 101, the sampling and holding branch 103 is connected to the voltage difference branch 102, the level conversion branch 104 is connected to the voltage sampling branch 101, the comparison branch 105 is connected to the level conversion branch 104, and the control branch 105 is respectively connected to the comparison branch 105 and the sampling and holding branch 103.
[0060] Specifically, the first end of the voltage sampling branch 103 is connected to the same-name end of the secondary side of the flyback transformer T1, and the second voltage V2 is input. The second end of the voltage sampling branch 103 is connected to the second end of the second switch tube Q2, and the first voltage V1 is input. The first end of the voltage difference branch 102 is respectively connected to the third end of the voltage sampling branch 101 and the first end of the level conversion branch 104. The second end of the voltage difference branch 102 is respectively connected to the fourth end of the voltage sampling branch 101 and the second end of the level conversion branch 104. The third end of the voltage difference branch 102 is connected to the first end of the sampling and holding branch 103. The second end of the sampling and holding branch 103 is connected to the first end of the control branch 106. The second end of the control branch 106 is connected to the second end of the sampling and holding branch 103, and outputs the sampling signal S1 to the second end of the sampling and holding branch 103. The third end of the control branch 106 is connected to the third end of the sample and hold branch 103, and outputs the hold signal H1 to the second end of the sample and hold branch 103. The fourth end of the control branch 106 is connected to the first end of the comparison branch 105, the second end of the comparison branch 105 is connected to the third end of the level conversion branch 104, and the third end of the comparison branch 105 is connected to the fourth end of the level conversion branch 104.
[0061] Specifically, the voltage sampling branch 101 is configured to output a third voltage V3 that is N times the first voltage V1, and output a fourth voltage V4 that is N times the second voltage V2 of the same-name end of the secondary side of the flyback transformer T1, wherein N is greater than 0 and less than 1. The voltage difference branch 102 is configured to output a fifth voltage V5 based on the difference between the third voltage V3 and the fourth voltage V4. The sampling and holding branch 103 is configured to sample the fifth voltage V5 in response to the sampling signal S1, and to hold the sampled fifth voltage V5 in response to the holding signal H1. The level conversion branch 104 is configured to increase the third voltage V3 by a preset voltage value and output a sixth voltage V6, and to increase the fourth voltage V4 by a preset voltage value and output a seventh voltage V7. The preset voltage value is a pre-set voltage value, which can be set based on the actual application scenario, and the embodiment of the present application does not impose specific restrictions on this. The comparison branch 105 is configured to output the comparison result between the sixth voltage V6 and the seventh voltage V7. The control branch 106 is configured to output a sampling signal S1 when the comparison result is switching from the first level to the second level, and output a holding signal H1 when the comparison result is switching from the second level to the first level, wherein the first level and the second level are different levels, when the first level is a high level, the second level is a low level; when the first level is a low level, the second level is a high level. The control branch 106 is also configured to determine information of the flyback power supply 200 based on the fifth voltage V5 sampled and held and the comparison result (i.e., the eighth voltage V8), and the information of the flyback power supply 200 includes the effective value of the input power supply VI N and the switching frequency, on-time, and off-time of the first switch tube Q1. Among them, when the sixth voltage V6 is less than or equal to the seventh voltage V7, the comparison result is the first level, and when the sixth voltage V6 is greater than the seventh voltage V7, the comparison result is the second level. Combined with the above description of the flyback power supply 200, it can be obtained that the time period when the sixth voltage V6 is greater than the seventh voltage V7 corresponds to the time period when the first switch tube Q1 is turned on, and the time period when the sixth voltage V6 is less than or equal to the seventh voltage V7 corresponds to the time period when the first switch tube Q1 is turned off. It can be obtained that the control branch 106 can output the sampling signal S1 when the first switch tube Q1 is turned on, and can output the holding signal H1 when the first switch tube Q1 is turned off.
[0062] Through the above process, firstly, the switching frequency, the on-time and the off-time of the first switch tube Q1 can be determined based on the eighth voltage V8. Secondly, the difference between the third voltage V3 and the fourth voltage V4 can be obtained based on the fifth voltage V5, that is, the relationship between the third voltage V3 and the fourth voltage V4 can be obtained, and then the relationship between the first voltage V1 and the second voltage V2 can be obtained. When the first switch tube Q1 is turned on, the second voltage V2 can be obtained by the effective value of the input power supply VI N and the turns ratio of the primary side and the secondary side of the flyback transformer T1, that is, V2 = -VI N*(NP / NS). Since the relationship between the first voltage V1 and the second voltage V2 is determined, the relationship between the second voltage V2 and the effective value of the input power supply VI N when the first switch tube Q1 is turned on is also determined, and then the relationship between the first voltage V1 and the effective value of the input power supply VI N can be determined. Since the first voltage V1 is a constant voltage, the effective value of the input power supply VI N can be determined based on the relationship between the first voltage V1 and the effective value of the input power supply VI N. It can be seen that through the above process, the information of the flyback power supply 200 can be accurately and effectively detected, so that the functions such as short circuit protection and overcurrent protection can be realized, which meets the safety requirements. Taking short circuit protection as an example, a current detection circuit (usually realized by setting a detection resistor) is usually set in the circuit to detect the current, and the current is fed back, and the on-time of the first switch tube Q1 is controlled in combination with the feedback. However, when the current detection circuit fails (for example, the detection resistor is short-circuited) and cannot receive relevant feedback, the on-time of the first switch tube Q1 will continue to increase. Then, by determining the on-time of the first switch tube Q1, when its on-time is greater than the preset time threshold, it can be judged as a short circuit, and then short circuit protection can be realized (for example, the first switch tube Q1 is kept off).
[0063] In some embodiments, the control branch 106 is further configured to: delay for a preset time period when the comparison result is switching from the first level to the second level, and output a sampling signal at the end of the preset time period; delay for a preset time period when the comparison result is switching from the second level to the first level, and output a hold signal at the end of the preset time period.
[0064] The preset duration is a preset duration, which can be set based on actual application scenarios, and the present application embodiment does not impose specific restrictions on this. By setting the preset duration, an anti-shake effect can be achieved to eliminate the influence of the erroneous output of the comparison branch 105 caused by the resonant ripple of the second voltage V2, so that the sampling and holding circuit 103 will not be triggered by mistake, and the signal output by the sampling and holding circuit 103 is more accurate and stable.
[0065] In one embodiment, if Figure 5 As shown, the PD controller 100 further includes an analog-to-digital converter 107 .
[0066] The analog-to-digital converter 107 is connected between the sample-hold branch 103 and the control branch 106. The analog-to-digital converter 107 is configured to convert the sampled and held fifth voltage V5 into a digital signal, and input the digital signal to the control branch 106, so that the control branch 106 determines the information of the flyback power supply 200 based on the digital signal. The analog-to-digital converter (ADC) 107 is an electronic device that converts a continuously changing analog signal into a digital signal.
[0067] Please refer to Figure 6 , Figure 6 An example is shown with Figure 5 A circuit structure corresponding to the block diagram shown in FIG. Figure 5 As shown, the voltage sampling branch 101 includes a first voltage dividing unit 1011 and a second voltage dividing unit 1012 .
[0068] The first voltage dividing unit 1011 is connected to the second end of the second switch tube Q2 and inputs the first voltage V1. The first voltage dividing unit 1011 is configured to output a third voltage V3 after dividing the first voltage V1, and the voltage dividing ratio is N.
[0069] The second voltage dividing unit 1012 is connected to the same-name terminal of the secondary side of the flyback transformer T1 and inputs the second voltage V2 . The second voltage dividing unit 1012 is configured to output a fourth voltage V4 after dividing the second voltage V2 , and the voltage dividing ratio is N.
[0070] In this embodiment, the first voltage dividing unit 1011 includes a first resistor R1 and a second resistor R2 , and the second voltage dividing unit 1012 includes a third resistor R3 and a fourth resistor R4 .
[0071] The first resistor R1 and the second resistor R2 are connected in series between the second end of the second switch tube Q2 and the ground GND, and the third resistor R3 and the fourth resistor R4 are connected in series between the same-name end of the secondary side of the flyback transformer T1 and the ground GND. R1 / (R1+R2)=R3 / (R3+R4)=N.
[0072] In this embodiment, the voltage difference branch 102 includes a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8 and a first operational amplifier U1.
[0073] Among them, the fifth resistor R5 and the sixth resistor R6 are connected in series between one end of the voltage sampling branch 101 outputting the third voltage V3 and the ground GND, the connection point between the fifth resistor R5 and the sixth resistor R6 is connected to the first input end of the first operational amplifier U1, the seventh resistor R7 and the eighth resistor R8 are connected in series between one end of the voltage sampling branch 101 outputting the fourth voltage V4 and the output end of the first operational amplifier U1, the connection point between the seventh resistor R7 and the eighth resistor R8 is connected to the second input end of the first operational amplifier U1, and the output end of the first operational amplifier U1 is connected to the sampling and holding branch 103. In this embodiment, the first input end of the first operational amplifier U1 is taken as the in-phase input end, and the second input end is the inverting input end as an example.
[0074] In this embodiment, the sample-and-hold branch 103 includes a first transmission gate TG1 , a second transmission gate TG2 , a first capacitor C1 , a second capacitor C2 , and a buffer U3 .
[0075] Among them, the input end of the first transmission gate TG1 is connected to the voltage difference branch 102, the output end of the first transmission gate TG1 is respectively connected to the input end of the second transmission gate TG2 and the first end of the first capacitor C1, the control end of the first transmission gate TG1 is connected to the control branch 106, the output end of the second transmission gate TG2 is respectively connected to the first end of the second capacitor C2 and the input end of the buffer U3, the control end of the second transmission gate TG2 is connected to the control branch 106, the second end of the first capacitor C1 and the second end of the second capacitor C2 are both grounded GND, and the output end of the buffer U3 is connected to the control branch 106 through the analog-to-digital converter 107.
[0076] Among them, the first transmission gate TG1 and the second transmission gate TG2 are an electronic switching circuit, which are usually used in digital logic design. They allow data signals to pass under the activation of control signals. For example, the first transmission gate TG1 allows the fifth voltage V5 to pass under the activation of the sampling signal S1 to charge the first capacitor C1; the first transmission gate TG1 allows the voltage VS1 on the first capacitor C1 to pass under the activation of the holding signal H1 to charge the second capacitor C2.
[0077] In this embodiment, the voltage conversion branch 104 includes a first transistor PM1 , a second transistor PM2 , a ninth resistor R9 , a tenth resistor R10 , a first current source I1 , and a second current source I2 .
[0078] Among them, the first end of the first transistor PM1 is connected to an end of the voltage sampling branch 101 that outputs the third voltage V3, the second end of the first transistor PM1 is connected to the positive electrode of the first current source I1 through the ninth resistor R9, the third end of the first transistor PM1 and the third end of the second transistor PM2 are both grounded GND, the negative electrode of the first current source I1 is connected to the first power supply VA1, the positive electrode of the first current source I1 is connected to the comparison branch 105, the second end of the second transistor PM2 is connected to the positive electrode of the second current source I2 through the tenth resistor R10, the third end of the second transistor PM2 is grounded GND, the negative electrode of the second current source I2 is connected to the first power supply VA1, and the positive electrode of the second current source I2 is connected to the comparison branch 105.
[0079] Specifically, the third voltage V3 is input to the gate of the first transistor PM1 to turn on the first transistor PM1. The magnitude of the voltage between the gate and the source of the first transistor PM1 is the threshold voltage Vth of the first transistor PM1, and the threshold voltage Vth is the minimum voltage difference between the gate and the source at which the first transistor PM1 starts to turn on. The fourth voltage V4 is input to the gate of the second transistor PM2 to turn on the second transistor PM2. The magnitude of the voltage between the gate and the source of the second transistor PM2 is the threshold voltage Vth of the second transistor PM2, and the threshold voltage Vth is the minimum voltage difference between the gate and the source at which the second transistor PM2 starts to turn on. In summary, V6=V3+Vth+I 1*R9, V7=V4+Vth+I 2*R10, and I1*R9=I2*R10 should be configured here. It can be understood that Vth+I 1*R9=Vth+I 2*R10, and is the preset voltage value in the above embodiment.
[0080] In this embodiment, the comparison branch 105 includes a comparator U2.
[0081] The first input terminal of the comparator U2 is connected to an end of the level conversion branch 104 outputting the sixth voltage V6 , the second input terminal of the comparator U2 is connected to an end of the level conversion branch 104 outputting the seventh voltage V7 , and the output terminal of the comparator U2 is connected to the control branch 106 .
[0082] The following will be combined Figure 7 right Figure 6 The principle of the circuit structure shown in FIG. Figure 7 FIG. 2 is a schematic diagram showing various signals in the PD controller 100 when the flyback power supply 200 has been running for a certain period and is in a stable state. Figure 7As shown, the horizontal axis is time, the unit is s (seconds); the vertical axis is voltage, the unit is v (volts). The signals in the PD controller 100 include a first voltage V1, a second voltage V2, a fifth voltage V5, a sixth voltage V6, a seventh voltage V7, an eighth voltage V8, a ninth voltage V9, a sampling signal S1 and a holding signal H1. In addition, in this embodiment, it is taken as an example that the PD controller 100 controls the second switch tube Q2 to remain turned on.
[0083] like Figure 6 and Figure 7 As shown, when the first switch tube Q1 is turned on, the first voltage V1 is -VI N*NP / NS (negative value), and the third voltage V3 after passing through the voltage sampling branch 101 is still negative, then the negative voltage can be converted into a positive voltage through the level conversion circuit 104, that is, the sixth voltage V6 is a positive value. Among them, it can be obtained from the above embodiment: V6 = V3 + Vth + I 1*R9, V7 = V4 + Vth + I 2*R10. Then, the comparator U2 compares the sixth voltage V6 and the seventh voltage V7. When the first switch tube Q1 is turned on, V6>V7, and the output of the comparator U2 is a high level (that is, the first level in this embodiment is a high level), that is, V8=1, for example, V8=1 is maintained in the time period between time T1 and time T5 or in the time period between time T6 and time T7; when the first switch tube Q1 is turned off, V6≤V7, and the output of the comparator U2 is a low level (that is, the second level in this embodiment is a low level), that is, V8=0, for example, V8=0 is maintained in the time period between time T5 and time T6. Then, the control branch 106 performs statistics and analysis on the output of the comparator U2 (i.e., V8) in a plurality of consecutive cycles, and the specific contents include: calculating the time interval between two consecutive high levels of V8 to obtain the switching frequency of the first switch tube Q1, for example, the switching frequency of the first switch tube Q1 can be determined based on the time interval between the high level of V8 in the time period between time T1 and time T5 and the high level of V8 in the time period between time T6 and time T7; calculating the duration of any high level of V8 to obtain the on-time of the first switch tube Q1, for example, the duration of the high level of V8 in the time period between time T1 and time T5 is the on-time of the first switch tube Q1; calculating the duration of any low level of V8 to obtain the off-time of the first switch tube Q1, for example, the duration of the low level of V8 in the time period between time T5 and time T7 is the on-time of the first switch tube Q1.
[0084] It can be known from the working principle of the flyback power supply 200 that the second voltage V2 contains the information of the input power supply VI N only during the time when the first switch tube Q1 is turned on, so the second voltage V2 must be sampled during the time when the first switch tube Q1 is turned on. Among them, the voltage difference branch 102 can convert the second voltage V2 within the time when the first switch tube Q1 is turned on into V1+VI N*NP / NS by performing a difference operation on the third voltage V3 and the fourth voltage V3. Of course, in some embodiments, it can also be amplified by K*(V1+VI N*NP / NS) for subsequent processing, where K is the amplification multiple. Since the fifth voltage V5 converted by the voltage difference branch 102 is a pulse signal, the high-level information of the pulse signal needs to be taken out and held by the sampling and holding branch 103.
[0085] In the sampling and holding branch 103, the control signal of the first transmission gate TG1 is the sampling signal S1, which is generated by the control branch 106. When the output of the comparator U2 is converted from a low level to a high level, the control branch 106 first performs anti-shake processing on the rising edge of the output of the comparator U2, which can be specifically achieved by delaying the preset duration. After the preset duration ends, a pulse signal with a fixed pulse width is generated, and its pulse width is less than the conduction duration of the first switch tube Q1. This pulse signal is the sampling signal S1. For example, at time T1, V8 is converted from a low level to a high level, and the preset duration begins to be delayed until time T2, when the preset duration ends, and a pulse signal is generated from time T2 until the pulse signal ends at time T3, wherein the time period between time T2 and time T3 is the pulse width of the pulse signal (i.e., the sampling signal S1). It can be understood that the reason for the anti-shake processing here is to eliminate the influence of the erroneous output of the comparator U2 caused by the resonant ripple (for example, the part of the second voltage V2 that fluctuates up and down and the fluctuation range gradually decreases is the resonant ripple), so as not to erroneously trigger the sampling and holding branch 103, so that the obtained sampling signal is more accurate and stable. When the sampling signal S1 is at a high level, the first transmission gate TG1 is turned on, and the first capacitor C1 samples the fifth voltage V5 to obtain the sampling voltage VS1. At this time, the holding signal H1 is at a low level to keep the second transmission gate TG2 in a disconnected state; when the sampling signal S1 is at a low level, the first transmission gate TG1 is disconnected.
[0086] When the output of the comparator U2 is converted from a high level to a low level, the control branch 106 first performs anti-shake processing on the lower rising edge of the output of the comparator U2, which can be specifically achieved by delaying the preset duration. After the preset duration ends, a pulse signal with a fixed pulse width is generated, and its pulse width is the turn-off duration of the first switch tube Q1. This pulse signal is the holding signal H1. For example, at time T4, V8 is converted from a low level to a high level, and the preset duration begins to be delayed until time T5, when the preset duration ends, and a pulse signal is generated from time T5 until the pulse signal ends at time T6, wherein the time period between time T5 and time T6 is the pulse width of the pulse signal (i.e., the holding signal H1). When the holding signal H1 is at a high level, the second transmission gate TG2 is turned on, and the sampling voltage VS1 stored in the first capacitor C1 is transmitted to the second capacitor C2, that is, the sampling voltage VS1 is kept on the second capacitor C2, and the holding voltage VH1 is obtained; when the holding signal H1 is at a low level, the second transmission gate TG2 is disconnected. Then, the output of the sample-hold branch 103 is converted into digital by the back-end analog-to-digital converter 107, and the converted digital signal is transmitted to the control branch 106. The control branch 106 can calculate the effective value of the input power supply VI N based on the received digital signal. In this embodiment, in order to improve the conversion accuracy of the digital-to-analog converter 107, a buffer U3 is also provided to isolate the holding voltage VH1 from the sample voltage of the digital-to-analog converter 107.
[0087] At this point, the process of acquiring information such as the effective value of the input power supply VI N, the switching frequency, the on-time and the off-time of the first switch tube Q1 is realized, and then the short circuit protection, overcurrent protection and other functions can be realized based on the acquired information.
[0088] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
[0089] The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them. Under the idea of the present application, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order. It should be understood by ordinary technicians in this field that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A PD controller, characterized in that: Applied to a flyback power supply, the flyback power supply includes a flyback transformer, a freewheeling unit, a first switch tube and a second switch tube, the opposite-name end of the primary side of the flyback transformer is connected to the positive electrode of the input power supply, the same-name end of the primary side of the flyback transformer is grounded through the first switch tube, the same-name end of the secondary side of the flyback transformer outputs a first voltage through the freewheeling unit and the second switch tube, and the PD controller includes: a voltage sampling branch, connected to the same-name terminal of the secondary side of the flyback transformer and the second switch tube respectively, and configured to output a third voltage that is N times the first voltage, and output a fourth voltage that is N times the second voltage of the same-name terminal of the secondary side of the flyback transformer, wherein N is greater than 0 and less than 1; a voltage difference branch, connected to the voltage sampling branch, and configured to output a fifth voltage based on a difference between the third voltage and the fourth voltage; a sampling and holding branch connected to the voltage difference branch, configured to sample the fifth voltage in response to a sampling signal, and to hold the sampled fifth voltage in response to a holding signal; a level conversion branch, connected to the voltage sampling branch, configured to increase the third voltage by a preset voltage value and output a sixth voltage, and to increase the fourth voltage by the preset voltage value and output a seventh voltage; a comparison branch, connected to the level conversion branch, and configured to output a comparison result between the sixth voltage and the seventh voltage; A control branch is connected to the comparison branch and the sample-and-hold branch, respectively, and is configured to output the sampling signal when the comparison result is switching from the first level to the second level, and to output the holding signal when the comparison result is switching from the second level to the first level, and to determine the primary side information of the flyback power supply based on the fifth voltage that has been sampled and held and the comparison result, wherein when the sixth voltage is less than or equal to the seventh voltage, the comparison result is the first level, and when the sixth voltage is greater than the seventh voltage, the comparison result is the second level, and the primary side information of the flyback power supply includes the effective value of the input power supply and the switching frequency, on-time and off-time of the first switch tube.
2. The PD controller according to claim 1, characterized in that: The control branch is further configured as: When the comparison result is a delay of a preset time period when switching from the first level to the second level, and when the preset time period ends, the sampling signal is output; When the comparison result is that the second level switches to the first level, the preset time period is delayed, and the holding signal is output when the preset time period ends.
3. The PD controller according to claim 1, characterized in that: The PD controller further includes: An analog-to-digital converter is connected between the sampling and holding branch and the control branch, and is configured to convert the fifth voltage that has been sampled and held into a digital signal, and input the digital signal into the control branch, so that the control branch determines the primary side information of the flyback power supply based on the digital signal.
4. The PD controller according to any one of claims 1 to 3, characterized in that: The voltage sampling branch comprises: a first voltage dividing unit connected to the second switch tube, configured to divide the first voltage and output the third voltage, and the voltage division ratio is N; The second voltage dividing unit is connected to the same-name terminal of the secondary side of the flyback transformer, and is configured to output the fourth voltage after dividing the second voltage, and the voltage division ratio is N.
5. The PD controller according to claim 4, characterized in that: The first voltage dividing unit includes a first resistor and a second resistor, and the second voltage dividing unit includes a third resistor and a fourth resistor; The first resistor and the second resistor are connected in series between the second end of the second switch tube and the ground, and the third resistor and the fourth resistor are connected in series between the same-name end of the secondary side of the flyback transformer and the ground.
6. The PD controller according to any one of claims 1 to 3, characterized in that: The voltage difference branch includes a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor and a first operational amplifier; The fifth resistor and the sixth resistor are connected in series between one end of the voltage sampling branch outputting the third voltage and the ground, the connection point between the fifth resistor and the sixth resistor is connected to the first input end of the first operational amplifier, the seventh resistor and the eighth resistor are connected in series between one end of the voltage sampling branch outputting the fourth voltage and the output end of the first operational amplifier, the connection point between the seventh resistor and the eighth resistor is connected to the second input end of the first operational amplifier, and the output end of the first operational amplifier is connected to the sampling and holding branch.
7. The PD controller according to any one of claims 1 to 3, characterized in that: The sample-hold branch includes a first transmission gate, a second transmission gate, a first capacitor, a second capacitor and a buffer; The input end of the first transmission gate is connected to the voltage difference branch, the output end of the first transmission gate is respectively connected to the input end of the second transmission gate and the first end of the first capacitor, the control end of the first transmission gate is connected to the control branch, the output end of the second transmission gate is respectively connected to the first end of the second capacitor and the input end of the buffer, the control end of the second transmission gate is connected to the control branch, the second end of the first capacitor and the second end of the second capacitor are both grounded, and the output end of the buffer is connected to the control branch.
8. The PD controller according to any one of claims 1 to 3, characterized in that: The voltage conversion branch includes a first transistor, a second transistor, a ninth resistor, a tenth resistor, a first current source and a second current source; The first end of the first transistor is connected to an end of the voltage sampling branch that outputs the third voltage, the second end of the first transistor is connected to the positive electrode of the first current source through the ninth resistor, the third end of the first transistor and the third end of the second transistor are both grounded, the negative electrode of the first current source is connected to the first power supply, the positive electrode of the first current source is connected to the comparison branch, the second end of the second transistor is connected to the positive electrode of the second current source through the tenth resistor, the third end of the second transistor is grounded, the negative electrode of the second current source is connected to the first power supply, and the positive electrode of the second current source is connected to the comparison branch.
9. The PD controller according to any one of claims 1 to 3, characterized in that: The comparison branch includes a comparator; The first input terminal of the comparator is connected to an end of the level conversion branch outputting the sixth voltage, the second input terminal of the comparator is connected to an end of the level conversion branch outputting the seventh voltage, and the output terminal of the comparator is connected to the control branch.
10. A PD adapter, characterized in that: It comprises a flyback power supply and a PD controller as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Emulated current ramp for DC-DC converter
CN104009630A
Isolated switching converter and controller and control method thereof
CN115173710A
Switching converter and corresponding control method and control circuit thereof
CN115528653A
Overcurrent protection circuit and power supply equipment
CN117878827A
Emulated current ramp for DC-DC converter
US20140239924A1
