DCDC primary feedback voltage detection setting circuit and method
By stabilizing the reference current and sampling current generation circuits and using matched resistor pairs for error amplification, the problem of output voltage waveform distortion and accuracy of the primary-side feedback flyback switching power supply under extremely light loads is solved, achieving high-precision and stable output. Voltage.
Patent Information
- Application Number
- CN201910320919.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2039-04-21
AI Technical Summary
Under extremely light load conditions, the output voltage detection of the primary-side feedback flyback switching power supply has problems with waveform distortion and low accuracy. In particular, the RC delay and poor anti-interference ability caused by parasitic capacitance make it difficult to maintain the stability of the output voltage. sex.
The voltage-stabilizing reference current generation circuit and the sampling current generation circuit are used to amplify the error through the matching resistor pair (resistors RB and RS), modulate the duty cycle to stabilize the output voltage, and use the matching resistors inside the chip to reduce the influence of parasitic capacitance, and pass The accuracy of the reference current enables high-precision output voltage.
It achieves high-precision output voltage stability, avoids waveform distortion and poor anti-interference ability caused by parasitic capacitance, and ensures the accuracy and stability of the output voltage of the switching power supply.
Smart Images

Figure CN109980947B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of DCDC primary-side feedback flyback switching power supplies, and in particular relates to a DCDC primary-side feedback voltage detection and setting circuit and method thereof. Background Art
[0002] The basic principle of primary feedback technology is to use the proportional characteristics of the voltages between the various windings of the flyback transformer during the demagnetization stage, so that the voltage value of another winding can be detected by detecting the voltage of one winding. Therefore, for an isolated flyback switching power supply, as long as the demagnetization voltage of the primary winding is detected, the size of the isolated secondary voltage can be sensed, and then the duty cycle of the power switch tube can be controlled through PMW modulation to achieve the purpose of stabilizing the output voltage.
[0003] like Figure 1 As shown in the figure, during the demagnetization stage, the voltage difference between the two ends of the transformer main winding and the auxiliary winding N A The voltage of the auxiliary winding N is proportional to the voltage on the secondary winding. Since the absolute voltage of the main winding, that is, the common mode voltage, is very high, it is difficult to detect the voltage difference between the two ends of the winding. A The voltage on the secondary winding is used to sense the voltage on the secondary winding. In order for the control chip to also draw power from the auxiliary winding, the voltage on the winding is generally designed to be relatively high, exceeding the working range of the control chip detection pin, so a resistor divider is needed for sampling. However, with the further development of the semiconductor industry, there are more and more BCD semiconductor processes that integrate LDMOS power devices and other high-voltage devices. The devices used to design differential sampling under high input common-mode voltage have a withstand voltage of 100V or even higher. The voltage difference of the main winding of the sampling transformer can be used to sense the output voltage. A high-voltage LDO can also be designed to realize chip self-powering. In this way, the auxiliary winding can be removed, the transformer design can be simplified, the volume can be reduced, and the cost can be saved.
[0004] like Figure 2 As shown, the primary feedback flyback switching power supply detects the main winding of the transformer to sample the output voltage. N:1 is the turns ratio of the main winding to the secondary winding of the transformer, VOS is the voltage across the secondary winding, and the resistor R REF The voltage V REF The ideal waveform is as follows Figure 3 As shown in the figure, the waveform in the demagnetization stage has a small downward slope, which is caused by the voltage generated by the output current on the output diode resistance and other parasitic resistances. As the demagnetization current decreases, the voltage generated on such resistances gradually decreases. Therefore, the voltage at the inflection point near the end of demagnetization, often called the end of demagnetization, is generally selected to sense the output voltage, because at this time the current is close to zero and the influence of the diode resistance and parasitic resistance can be ignored. At this time, the voltage across the secondary winding VOS and VRFE The relationship between them is:
[0005]
[0006] Under normal working conditions of the power supply, the sampled voltage V REF The differential amplification is performed with the reference voltage 1V to generate a PWM modulated pulse width signal to control the duty cycle of the power tube switch, which will eventually turn V REF The voltage is stabilized at 1V, which eventually makes VOS stabilize at:
[0007]
[0008] Output voltage V OUT There is only a diode voltage drop difference between VOS and VOS, which is a more accurate fixed value. Therefore, if VOS is stabilized, V OUT It is also stable.
[0009] It can be seen that by setting the resistance R FB and R REF The size of the switching power supply output voltage can be set, but this resistor R REF The demagnetization waveform of the winding generated on the pin for sampling has major defects at extremely light loads: First, because the REF There will always be parasitic capacitance at the junction. In particular, in order to increase the anti-interference ability or the stability of the loop, a capacitor is connected in parallel here, which will cause RC delay, which is easy to cause waveform distortion at high frequencies, especially when the demagnetization time is very short under extremely light loads. As a result, the waveform finally detected is not the ideal waveform that truly reflects the output voltage. The actual sampled voltage is lower than the ideal one, which causes the output voltage of the switching power supply to float high. Second, the power consumption required for sampling and the anti-interference ability of the signal are not easy to compromise. If R REF Designed to be smaller, it has the excellent characteristics of small RC delay and strong anti-interference ability, but this will obviously increase the sampling power consumption and the design difficulty of the differential sampling circuit. REF The larger the design, the lower the power consumption, but the RC delay is large and the anti-interference ability is poor.
[0010] To solve the above technical problems, Lingte designed a chip LT8303, such as Figure 4 As shown, it puts the resistor R REFDesigned inside the chip, because the parasitic capacitance inside the chip is very small, the interference is also very small, even if there is interference, it is regarded as a common mode signal and is greatly suppressed, which solves the above problem better. However, this method causes the problem of poor output voltage accuracy, because it is difficult to control the ion injection concentration in the integrated circuit and it is difficult to make the resistor accurate. The accuracy is generally outside ±15%, which directly leads to poor output voltage accuracy. Of course, the resistor can also be corrected by electrical adjustment or laser adjustment, but to correct the resistor with an accuracy outside ±15% to the required ±1%, the technical problem is that the adjustment cost is too high. Summary of the invention
[0011] In order to have a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended to be a general review, nor is it intended to identify key / important components or to delineate the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.
[0012] The present invention adopts the following technical solution:
[0013] In some optional embodiments, a DCDC primary feedback voltage detection setting circuit is provided, comprising:
[0014] The voltage-stabilized reference current generating circuit is used to generate a reference current based on the internal reference voltage of the chip and the external reference current generating resistor R IB A reference current source is generated on the circuit, and then a proportional reference current is imaged through a current mirror;
[0015] The sampling current generation circuit is used to sample the output voltage of the chip external resistor R FB A sampling current reflecting the output voltage of the switching power supply is generated;
[0016] A matching resistor pair, the matching resistor pair comprising: a resistor R B And the resistor R S , the resistor R B connected to the output end of the voltage-stabilized reference current generating circuit, the resistor R S connected to the output end of the sampling current generating circuit;
[0017] Duty cycle modulation circuit, used to obtain the resistance R B And the resistor R S The voltage on the switch is amplified, the error is amplified, and the duty cycle is modulated according to the output voltage of the switching power supply.
[0018] In some optional embodiments, the voltage-stabilized reference current generating circuit includes: an amplifier AMP, an N-channel MOS transistor NM1 and a first current mirror;
[0019] The output end of the amplifier AMP is connected to the gate of the N-channel MOS transistor NM1, the inverting input end of the amplifier AMP is connected to the source of the N-channel MOS transistor NM1 and to the RIB pin of the chip, the internal reference voltage of the chip is used as the forward input voltage of the amplifier AMP, the drain of the N-channel MOS transistor NM1 is connected to the input node of the first current mirror, and the output node of the first current mirror outputs the reference current;
[0020] The RIB pin of the chip is connected to the reference current generating resistor R IB To the ground.
[0021] In some optional embodiments, the sampling current generating circuit includes: a P-channel MOS transistor PM1 and a P-channel MOS transistor PM2 constituting a second current mirror;
[0022] The source of the P-channel MOS tube PM1 is connected to the chip V IN The source of the P-channel MOS tube PM2 is connected to the chip R FB The gate of the P-channel MOS transistor PM1 is connected to the gate of the P-channel MOS transistor PM2, and the drain of the P-channel MOS transistor PM2 outputs the sampling current;
[0023] Chip V IN The pin is connected to the input voltage VIN of the switching power supply, and the chip R FB The output voltage is sampled through the resistor R FB Then it is connected to the chip power tube drain pin DRN and the output port of the transformer main winding.
[0024] In some optional embodiments, the resistor R B One end is connected to the output node of the first current mirror of the voltage-stabilized reference current generating circuit, and the other end is grounded; the resistor R S One end is connected to the drain of the P-channel MOS transistor PM2 of the sampling current generating circuit, and the other end is grounded.
[0025] In some optional embodiments, the DCDC primary feedback voltage detection setting circuit further includes: a power switch NMO;
[0026] The duty cycle modulation circuit includes: an error amplifier and a duty cycle control module; the input end of the duty cycle control module is connected to the output end of the error amplifier, and the output end of the duty cycle control module is connected to the gate of the power switch NMO; the output port of the voltage-stabilized reference current generating circuit is connected to the same-direction input end of the error amplifier; the output port of the sampling current generating circuit is connected to the reverse input end of the error amplifier; the drain of the power switch NMO is connected to the DRN pin of the chip.
[0027] In some optional embodiments, the input port of the transformer main winding is connected to the input voltage VIN of the switching power supply and the input capacitor C IN The positive end of the transformer secondary winding and the output rectifier diode D OUT and output capacitor C OUT A secondary side output rectification circuit is formed to form a flyback switching power supply topology.
[0028] In some optional embodiments, a DCDC primary feedback voltage detection setting method is provided, comprising:
[0029] The voltage-stabilized reference current generation circuit is based on the reference voltage inside the chip and the reference current generation resistor R IB A reference current source is generated on the chip, and then a proportional reference current is imaged through a current mirror. The reference current is reflected by the resistor R in the matching resistor pair inside the chip. B Generate a regulated reference voltage;
[0030] The sampling current generation circuit has an output voltage sampling resistor R FB The sampling current that reflects the output voltage of the switching power supply is generated on the chip. The sampling current is connected to the resistor R in the matching resistor pair inside the chip. S Get the sampling resistor voltage;
[0031] Duty cycle modulation circuit to obtain resistance R B And the resistor R S The voltage on the switch is amplified, and the duty cycle is modulated according to the output voltage of the switching power supply;
[0032] Adjust the output voltage sampling resistor R FB And the reference current generating resistor R IB Set the output voltage of the switching power supply.
[0033] The beneficial effects brought by the present invention are as follows: after the sampling current generated by the reflected voltage and the reference current generate voltage on the matching resistor pair, error amplification is performed, which is equivalent to the comparison between the sampling current and the reference current, and is independent of the accuracy and temperature coefficient of the resistor. It is only necessary to properly design the resistance value of the matching resistor pair so that the generated voltage does not exceed the working range of the error amplifier. Therefore, as long as a relatively high-precision reference current is obtained, a switching power supply output voltage of corresponding accuracy can be achieved, and there is no problem of affecting the accuracy of the switching power supply output voltage; at the same time, since the matching resistor pair is a resistor inside the chip, it has the advantage of small parasitic capacitance, and the waveform is not easily distorted when the load is very light and the demagnetization time is very short, thereby avoiding the problem of no-load high drift and poor anti-interference ability caused by parasitic capacitance, and even if the static bias current after stabilization is set to be relatively small, it is not easy to cause the sampling waveform to be interfered; the sampling speed is fast and not easy to deform, and the technical problem of the output voltage of the switching power supply deviating from the set stable value is effectively avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is the application schematic diagram of the existing ACDC isolated switching power supply;
[0035] Figure 2 It is an application principle diagram of a primary feedback flyback switching power supply of the prior art that detects the main winding of a transformer to sample the output voltage;
[0036] Figure 3 yes Figure 2 Medium resistance R REF Voltage waveform during the demagnetization stage;
[0037] Figure 4 It is a simplified application diagram of the prior art chip LT8303;
[0038] Figure 5 It is a principle block diagram of the DCDC primary feedback voltage detection setting circuit of the present invention;
[0039] Figure 6 The circuit diagram of the DCDC primary feedback voltage detection setting circuit of the present invention. DETAILED DESCRIPTION
[0040] In order to better understand the problem solved by the present invention, the following is described by specific embodiments, so as to better understand the content of the present invention. However, some specific parameter designs involved therein, such as the proportional coefficient of the current mirror, the proportional coefficient of the resistor, etc., are only for a more intuitive understanding and are not intended to limit the content of the present invention.
[0041] like Figure 5As shown, in some illustrative embodiments, a DCDC primary feedback voltage detection setting circuit is provided, including: a voltage stabilization reference current generating circuit, a sampling current generating circuit, a matching resistor pair, a duty cycle modulation circuit and a power switch NMO.
[0042] The voltage-stabilized reference current generating circuit is used to generate a reference current source on the reference current generating resistor RIB outside the chip based on the reference voltage VREF inside the chip, and then mirror out a proportional reference current through a current mirror.
[0043] The voltage-stabilized reference current generating circuit includes an input port 101, a reference current generating port 102, and a reference current output port 103. The input port 101 is connected to the internal reference voltage VREF of the chip, the reference current generating port 102 is connected to the RIB pin of the chip, the reference current output port 103 is connected to the first input port 104 of the matching resistor pair and the voltage-stabilized reference voltage input port 110 of the duty cycle modulation circuit, and the reference current output port 103 outputs a reference current.
[0044] The sampling current generating circuit is used to generate a sampling current reflecting the output voltage of the switching power supply on the output voltage sampling resistor RFB external to the chip.
[0045] The sampling current generating circuit includes an input voltage port 108, a reflected voltage clamping port 107, and a sampling current output port 106. The input voltage port 108 is connected to the chip VIN pin, the reflected voltage clamping port 107 is connected to the chip RFB pin, the sampling current output port 106 is connected to the second input port 105 of the matching resistor pair and the voltage input port 109 sampled by the duty cycle modulation circuit, and the sampling current output port 106 outputs the sampling current.
[0046] The duty cycle modulation circuit is used to obtain the voltage across the resistor RB and the resistor RS, perform error amplification, and modulate the duty cycle according to the output voltage of the switching power supply.
[0047] The duty cycle modulation circuit includes: a voltage input port 109, a regulated reference voltage input port 110, and an output port 111. The output port 111 is connected to the gate of the power switch NMO. The drain and source of the power switch NMO are respectively connected to the chip DRN pin and the chip GND pin.
[0048] The RIB pin of the chip is connected to the reference current generating resistor R IB To ground, chip V IN The pin is connected to the input voltage VIN of the switching power supply, and the chip R FB The pin is connected through the output voltage sampling resistor R FBThen it is connected to the chip power tube drain pin DRN and the output port of the transformer main winding. The input port of the transformer main winding is connected to the input voltage VIN of the switching power supply and the input capacitor C IN The positive end of the transformer secondary winding and the output rectifier diode D OUT and output capacitor C OUT A secondary side output rectification circuit is formed to form a flyback switching power supply topology.
[0049] like Figure 6 As shown, the voltage-stabilized reference current generating circuit 201 includes: an amplifier AMP, an N-channel MOS transistor NM1 and a first current mirror.
[0050] The output end of the amplifier AMP is connected to the gate of the N-channel MOS tube NM1, the reverse input end of the amplifier AMP is connected to the source of the N-channel MOS tube NM1 and to the RIB pin of the chip, and the internal reference voltage V REF As the positive input voltage of the amplifier AMP, the drain of the N-channel MOS transistor NM1 is connected to the input node of the first current mirror, and the output node of the first current mirror outputs the reference current.
[0051] The amplifier AMP and the N-channel MOS tube NM1 form a unity gain amplifier. The reference voltage V REF As the unity gain amplifier input voltage, V REF The reference current is copied to the external reference current generating resistor R IB The bias current source I RIB , bias current source I RIB Then the first current mirror generates a reference current I proportional to it. REF The reference voltage VREF inside the chip and the operational amplifier AMP generate a resistor R IB The first current mirror generates a proportional reference current. IREF , and this current generates a regulated reference voltage on the reference resistor inside the chip. The reference resistor inside the chip refers to the resistor R in the matching resistor pair 203. B .
[0052] The sampling current generating circuit 202 includes: a P-channel MOS transistor PM1 and a P-channel MOS transistor PM2. The P-channel MOS transistor PM1 and the P-channel MOS transistor PM2 form a second current mirror.
[0053] PM1 is a diode connection method, and I B As a bias current, the source of the P-channel MOS tube PM1 is connected to the chip V IN The source of the P-channel MOS tube PM2 is connected to the chip R FBThe gate of the P-channel MOS tube PM1 is connected to the gate of the P-channel MOS tube PM2, and the drain of the P-channel MOS tube PM2 outputs the sampling current I Samp , and the sampling current I Samp The sampling resistor voltage is obtained on the sampling resistor inside the chip. The sampling resistor inside the chip refers to the resistance R of the matching resistor pair 203. S .
[0054] The reference current generating resistor R IB And the chip's external output voltage sampling resistor R FB It means that the resistors are connected to the outside of the chip pins, rather than being semiconductor process devices designed for chip circuits. They can obtain high-precision resistance values.
[0055] The matching resistor pair 203 includes: a resistor R B And the resistor R S . Resistance R B Connected to the output end of the voltage-stabilized reference current generating circuit, that is, the resistor R B Connected to the reference current output port 103 of the voltage-stabilized reference current generating circuit 201. S Connected to the output end of the sampling current generating circuit, that is, the resistor R S The resistor R is connected to the sampling current output port 106 of the sampling current generating circuit 202. B One end is connected to the output node of the first current mirror of the voltage-stabilized reference current generating circuit 201, and the other end is grounded; S One end is connected to the drain of the P-channel MOS transistor PM2 of the sampling current generating circuit 202, and the other end is grounded. B And the resistor R S The output voltage of the power supply is stabilized by controlling the duty cycle of the switching power supply through error amplification.
[0056] The resistor R in the matching resistor pair 203 B And the resistor R S It refers to the same type of resistors used in the semiconductor process used to design the chip, and they are matched on the layout so that their characteristics are basically the same. B The reference current I generated by the inductive voltage-stabilized reference current generating circuit 201 REF , resistor R S The sampling current I generated by the sensing sampling current generating circuit 202 Samp .
[0057] The duty cycle modulation circuit 204 includes: an error amplifier EA and a duty cycle control module. The duty cycle control module can modulate the duty cycle, which is a function that the switch power supply control should have and will not be described in detail here. The input end of the duty cycle control module is connected to the output end of the error amplifier EA, and the output end of the duty cycle control module is connected to the gate of the power switch NMO; the output port of the voltage stabilization reference current generating circuit is connected to the same-direction input end of the error amplifier EA; the output port of the sampling current generating circuit is connected to the reverse input end of the error amplifier EA; and the drain of the power switch NMO is connected to the DRN pin of the chip.
[0058] The working principle of the technical solution of the present invention is:
[0059] The reference voltage V inside the chip REF The reference voltage is copied to the chip pin RIB through the voltage follower composed of the operational amplifier, generating a reference voltage V REF and the reference current generating resistor R IB A current source is determined which can be proportionally copied to produce a regulated reference current;
[0060] The sampling current generation circuit clamps the voltage of the chip pin RFB at the same voltage as VIN, so it is necessary to pass the chip external output voltage sampling resistor R FB The current absorbed by the sampling current then flows out from the sampling current output port 106 to generate the sampling current I Samp , sampling current I Samp Reflects the output voltage of the switching power supply. Since the chip pin RFB is clamped at the same voltage as VIN, the output voltage sampling resistor R FB The voltage across the two ends is equal to the voltage of the transformer's primary winding, and its magnitude is in a turns ratio relationship with the voltage of the transformer's secondary winding.
[0061] The voltage reference current is in the matched resistor pair R B The reference voltage is generated on the chip, which is very inaccurate due to the poor precision and large temperature coefficient of the internal resistance of the chip. At the same time, the sampling current I Samp The resistance R of the matched resistor pair S The sampled voltage is generated on the resistor pair. Similarly, it is also very inaccurate, but due to the resistance R B and resistor R S They are resistors of the same type in the same semiconductor process and have matching layouts. B and resistor R S The deviation of the resistance value and the temperature coefficient cancel each other out and do not affect the accuracy of the output voltage of the switching power supply.
[0062] In some illustrative embodiments, a DCDC primary feedback voltage detection setting method is provided, comprising:
[0063] The voltage reference current generation circuit is based on the internal reference voltage V REF , the reference current generating resistor R IB The reference current source is generated on the current mirror, and then a proportional reference current I is imaged through the current mirror. REF , reference current I REF The resistance R in the matching resistor pair inside the chip B Generate a regulated reference voltage;
[0064] The sampling current generation circuit has an output voltage sampling resistor R FB The sampling current I that reflects the output voltage of the switching power supply is generated Samp , sampling current I Samp The resistor R in the matching resistor pair inside the chip S Get the sampling resistor voltage;
[0065] Duty cycle modulation circuit to obtain resistance R B And the resistor R S The voltage on the switch is amplified, and the duty cycle is modulated according to the output voltage of the switching power supply;
[0066] Adjust the output voltage sampling resistor R FB And the reference current generating resistor R IB Set the output voltage of the switching power supply.
[0067] The reason why the above method can achieve the purpose of the present invention is that: the integrated circuit can design a very accurate reference voltage, so it is relatively easy to generate a more accurate reference current together with an external accurate resistor. Even if the accuracy cannot meet the design requirements, it can be further improved through simple adjustments. The induced current generated by the reflected voltage and the reference current I REF The error is amplified after the voltage is generated on the same type of precisely proportional resistor, which is equivalent to the sampling current I Samp With the reference current I REF The comparison is independent of the accuracy and temperature coefficient of the resistor. As long as the resistance value of the resistor is properly designed so that the generated voltage does not exceed the working range of the error amplifier, the output voltage of the switching power supply with corresponding accuracy can be achieved as long as a high-precision reference current is obtained. The accuracy of the reference current has been explained above and is easy to obtain. At the same time, due to the resistor R S With R BIt is the resistor inside the chip. It has the characteristics of small parasitic capacitance and the voltage signal on it is not easily disturbed. Therefore, it has fast sampling speed and is not easy to deform, effectively preventing the output voltage of the switching power supply from deviating from the set stable value.
[0068] For the convenience of calculation, it is assumed that the current mirror ratio coefficient in the voltage reference current generation circuit is 1:1, and the matching resistor pair R B : R S =k, the reference current output by the voltage-stabilized reference current generating circuit is:
[0069]
[0070] According to the principle of switching power supply, after the loop is stable, the input voltage of the error amplifier EA is approximately equal, that is, the resistor R B With R S The voltages on the
[0071] I samp *R S =I REF *R B ;
[0072] Thus:
[0073]
[0074] It can be seen that after the switching power supply loop is stable, the sampling current I Samp It is only related to the proportional coefficient of resistance RB and RS, and has nothing to do with the absolute value of its resistance. Therefore, R B and R S The resistance deviation and temperature coefficient do not affect the stable sampling current, and thus will not affect the output voltage of the switching power supply, because the sampling current ISam p The response relationship directly reflects the output voltage of the switching power supply. This can be obtained by the following calculation. Because the chip pin RFB is clamped at the same voltage as VIN, the resistor R added during the demagnetization phase FB The voltage on the transformer is equal to the reflected voltage V on the transformer main winding. OR ,so:
[0075] V OR =I Samp *R FB ;
[0076] The voltage V on the transformer main winding OR and the secondary voltage V OS The output voltage of the switching power supply can be obtained by forming a turns ratio relationship:
[0077]
[0078] Where N is the transformer main winding N P With the secondary winding N S The turns ratio, V BE is the voltage drop of the output diode. It can be seen that the output voltage V OUT and is not affected by the internal sampling resistor R S By adjusting the external resistor R FB and R IB The output voltage can be set, and the output voltage is related to their proportional coefficients. Proportional coefficients k, N, reference voltage V REF , external resistor R FB and R IB , diode voltage drop V BE They are relatively accurate, so that the output voltage accuracy of the primary feedback can be obtained, which is not affected by the sampling resistor R S At the same time, due to the resistance R S It is inside the chip, with small parasitic capacitance. When the load is light and the demagnetization time is short, the waveform is not easily distorted. The sampling is accurate and will not cause the output voltage of the switching power supply to drift high. Even if the static bias current after stabilization is set to a smaller value, it is not easy to cause the sampling waveform to be disturbed.
[0079] Those skilled in the art will also appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments herein can all be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the interchangeability between hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above around their functions. Whether such functions are implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. A skilled person can implement the described functions in an alternative manner for each specific application, but such implementation decisions should not be interpreted as departing from the scope of protection of the present disclosure.
Claims
1. DCDC primary feedback voltage detection setting circuit, characterized in that: include: The voltage-stabilized reference current generating circuit is used to generate a reference current based on the internal reference voltage of the chip and the external reference current generating resistor R IB A reference current source is generated on the circuit, and then a proportional reference current is imaged out through a current mirror; wherein the current mirror only inputs the reference current, and the output current is not used for other purposes; The sampling current generation circuit is used to sample the output voltage of the chip external resistor R FB The sampling current that reflects the output voltage of the switching power supply is generated on the chip; the sampling current generating circuit connects the chip pin R FB The voltage is clamped at V IN The same voltage is applied to the output voltage sampling resistor R during the demagnetization stage. FB The voltage across the two ends is equal to the voltage of the transformer main winding, making the output voltage sampling resistor R FB The voltage of is in a turns ratio relationship with the voltage of the secondary winding of the transformer; A matching resistor pair, the matching resistor pair comprising: a resistor R B And the resistor R S , the resistor R B connected to the output end of the voltage-stabilized reference current generating circuit, the resistor R S connected to the output end of the sampling current generating circuit; wherein the resistor R B One end is connected to the output node of the first current mirror of the voltage-stabilized reference current generating circuit, and the other end is grounded; S One end is connected to the drain of the P-channel MOS tube PM2 of the sampling current generating circuit, and the other end is grounded; A duty cycle modulation circuit, the duty cycle modulation circuit comprising: an error amplifier and a duty cycle control module; the input end of the duty cycle control module is connected to the output end of the error amplifier, the output end of the duty cycle control module is connected to the gate of a power switch NMO; the output port of the voltage-stabilized reference current generating circuit is connected to the same-direction input end of the error amplifier; the output port of the sampling current generating circuit is connected to the reverse input end of the error amplifier; the drain of the power switch NMO is connected to the DRN pin of the chip; wherein the voltage generated by the resistor RB and the resistor RS does not exceed the working range of the error amplifier, and the error amplifier is used to obtain the resistor R B And the resistor R S The voltage on the switching power supply is used to amplify the error, and the duty cycle control module modulates the duty cycle according to the output voltage of the switching power supply.
2. The DCDC primary feedback voltage detection setting circuit according to claim 1, characterized in that: The voltage-stabilized reference current generating circuit comprises: an amplifier AMP, an N-channel MOS tube NM1 and a first current mirror; The output end of the amplifier AMP is connected to the gate of the N-channel MOS transistor NM1, the inverting input end of the amplifier AMP is connected to the source of the N-channel MOS transistor NM1 and to the RIB pin of the chip, the internal reference voltage of the chip is used as the forward input voltage of the amplifier AMP, the drain of the N-channel MOS transistor NM1 is connected to the input node of the first current mirror, and the output node of the first current mirror outputs the reference current; The RIB pin of the chip is connected to the reference current generating resistor R IB To the ground.
3. The DCDC primary feedback voltage detection setting circuit according to claim 2, characterized in that: The sampling current generating circuit comprises: a P-channel MOS transistor PM1 and a P-channel MOS transistor PM2 constituting a second current mirror; The source of the P-channel MOS transistor PM1 is connected to the chip VIN pin, the source of the P-channel MOS transistor PM2 is connected to the chip RFB pin, the gate of the P-channel MOS transistor PM1 is connected to the gate of the P-channel MOS transistor PM2, and the drain of the P-channel MOS transistor PM2 outputs the sampling current; The chip VIN pin is connected to the input voltage VIN of the switching power supply, and the chip RFB pin is connected to the output voltage sampling resistor R FB Then it is connected to the chip power tube drain pin DRN and the output port of the transformer main winding.
4. The DCDC primary feedback voltage detection setting circuit according to claim 3, characterized in that: The input port of the main winding of the transformer is connected to the input voltage VIN of the switching power supply and the positive end of the input capacitor CIN. The secondary winding of the transformer, the output rectifier diode DOUT and the output capacitor COUT constitute a secondary output rectifier circuit, forming a flyback switching power supply topology.
5. A primary feedback voltage detection and setting method based on the DCDC primary feedback voltage detection and setting circuit according to claim 1, characterized in that: include: The voltage-stabilized reference current generation circuit is based on the reference voltage inside the chip and the reference current generation resistor R IB A reference current source is generated on the chip, and then a proportional reference current is imaged through a current mirror. The reference current is reflected by the resistor R in the matching resistor pair inside the chip. B Generate a regulated reference voltage; The sampling current generation circuit has an output voltage sampling resistor R FB The sampling current that reflects the output voltage of the switching power supply is generated on the chip. The sampling current is connected to the resistor R in the matching resistor pair inside the chip. S Get the sampling resistor voltage; Duty cycle modulation circuit to obtain resistance R B And the resistor R S The voltage on the switch is amplified, and the duty cycle is modulated according to the output voltage of the switching power supply; Adjust the output voltage sampling resistor R FB And the reference current generating resistor R IB Set the output voltage of the switching power supply.
