An isolated primary voltage sampling method
By using transformers and diodes for voltage sampling in isolated switching power supplies, the problems of high primary voltage detection costs and difficult design are solved, accurate voltage sampling is achieved, component types and costs are reduced, and the power supply efficiency is maintained. Stability and ease of maintenance.
Patent Information
- Application Number
- CN201910360914.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2039-04-30
AI Technical Summary
When the existing isolated switching power supply detects the input voltage of the primary side, it is necessary to add a sampling microcontroller to the primary side and transmit it through the isolation unit, which increases the cost and design difficulty.
An isolated primary-side voltage sampling method is adopted, using a transformer and a diode for voltage sampling. By collecting the secondary-side voltage of the transformer, the input voltage is calculated, which reduces the design difficulty and cost and eliminates the need for the primary-side sampling calculation circuit and isolation chip. .
It achieves accurate primary voltage sampling, reduces system component types and costs, while maintaining the stability and ease of maintenance of the auxiliary power supply.
Smart Images

Figure CN109975723B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of electronic technology, and in particular relates to an isolated primary voltage sampling method. Background Art
[0002] With the rapid development of switching power supply technology, the requirements for the use of switching power supplies are getting higher and higher. Most isolated switching power supplies place the main control chip on the secondary side of the power supply, and the control circuit needs to detect the primary side voltage. At present, the more common practice of detecting the primary side input voltage is to add a sampling microcontroller to the primary side and then transmit the primary side voltage value to the secondary side through the isolation unit. However, since it involves the power supply of the primary side microcontroller and the isolation unit, it not only increases the cost but also increases the design difficulty.
[0003] In order to realize increasingly complex control and protection logic, isolated power supply systems need to integrate auxiliary power supply systems to power the control system and drive system on the secondary side. The primary side voltage sampling of the power supply generally adopts the primary side protection sensor and single-chip microcomputer method and then transmits it to the single-chip microcomputer on the secondary side through isolated serial port communication, which increases the circuit cost. Summary of the invention
[0004] The purpose of the present invention is to provide an isolated primary voltage sampling method, which solves the technical problem that there is no sampling chip on the primary side and the sampling circuit of the secondary side control chip is used without a common ground.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] An isolated primary voltage sampling circuit comprises a transformer T1, a primary circuit, a secondary main output circuit and a voltage sampling circuit;
[0007] The transformer T1 includes a primary coil Np, a first secondary coil Ns1 and a second secondary coil Ns. The two ends of the primary coil Np are pin 1 and pin 2 of the transformer T1. The two ends of the first secondary coil Ns1 are pin 3 and pin 4 of the transformer T1. The two ends of the second secondary coil Ns are pin 4 and pin 5 of the transformer T1.
[0008] The primary circuit includes a field effect transistor Q1 and a capacitor C5, wherein the S pole of the field effect transistor Q1 is connected to the ground wire AGND of the external switching power supply, the D pole is connected to the 2nd pin of the transformer T1, the 1st pin of the transformer T1 is connected to the positive voltage Vin output by the external switching power supply, the G pole of the field effect transistor Q1 is connected to the external switching power supply control signal DRV, one end of the capacitor C1 is connected to the ground wire AGND, and the other end is connected to the positive voltage Vin;
[0009] The secondary main output circuit includes a diode D2 and a capacitor C4. The positive electrode of the diode D2 is connected to the 3rd pin of the transformer T1, and the negative electrode outputs the power supply V1. The 4th pin of the transformer T1 outputs the ground wire EGND. One end of the capacitor C4 is connected to the ground wire EGND, and the other end is connected to the power supply V1;
[0010] The voltage sampling circuit includes a sampling output terminal Vin_adc, a resistor R1, a capacitor C1, a diode D1, a capacitor C2, a resistor R2, a resistor R3, a resistor R4, and a capacitor C3. The 5th pin of the transformer T1 is connected to the positive electrode of the diode D1 through the resistor R1. The negative electrode of the diode D1 is connected to the sampling output terminal Vin_adc through the resistor R3. The positive electrode of the diode D1 is also connected to the ground wire EGND through the capacitor C1. The negative electrode of the diode D1 is connected to the ground wire EGND through the parallel-connected capacitor C2 and resistor R2. The sampling output terminal Vin_adc is also connected to the ground wire through the parallel-connected resistor R4 and capacitor C3.
[0011] Preferably, the external switching power supply is an isolated flyback switching power supply, and the external switching power supply control signal DRV is provided by the isolated flyback switching power supply.
[0012] An isolated primary side voltage sampling method includes the following steps:
[0013] Step 1: Establish an isolated primary side voltage sampling circuit, and connect the sampling output terminal Vin_adc to the AD input terminal of the external controller;
[0014] Step 2: Set the capacitance value of the capacitor C1 as C1, the capacitance value of the capacitor C2 as C2, the resistance value of the resistor R1 as R1, the resistance value of the resistor R2 as R2, the resistance value of the resistor R3 as R3, and the resistance value of the resistor R4 as R4. Then the relationship between C1, C2, R1, R2, R3, and R4 is as follows: C1 < C2, R1 < [(R3 + R4) × R2) ÷ (R3 + R4 + R2)], τ1 = R1 × C1, τc = R1 × C2, τd = [(R3 + R4) × R2) ÷ (R3 + R4 + R2)] × C2; τ1 is the RC time constant, τd is the discharge time constant, τc is the charging time constant τc, and τc < τd;
[0015] Step 3: Set the voltage on the 5th pin of the transformer T1 as Vos. During the conduction period of the field effect transistor Q1, the relationship between the number of turns Np of the primary side of the transformer T1, the positive voltage Vin, the number of turns Ns of the second secondary side coil, and the voltage Vos is as follows:
[0016] Vin / Vos = Np / Ns;
[0017] Step 4: After the voltage Vos passes through the R1, C1 filtering circuit, it charges the capacitor C2 through the diode D1. The voltage drop of the diode D1 is 0.7V. The voltage across the capacitor C2 is set to Vc2, then: Vc2 = (Vos-0.7) × [1-exp(-t / τc)];
[0018] Step 5: During the off period of the field effect tube Q1, due to the isolation of the diode D1 and τc<τd, the voltage Vos across the capacitor C2 remains unchanged during the off period;
[0019] After time t, C2 is fully charged, t = n × T; n ≧ 5τc ÷ Ton, T is the switching period of field effect tube Q1, Ton is the on time of Q1; since the discharge time constant τd is greater than the charging time constant τc, the capacitor C2 maintains the maximum voltage Vc2max unchanged: Vc2max = Vos-0.7;
[0020] Step 6: The value of the sampled output terminal Vin_adc is calculated using the following formula:
[0021] Vin_adc=[R 4÷(R 3+R 4)]×Vc2max=[R4÷(R3+R4)]×(Vin×Ns÷Np-0.7);
[0022] Step 7: The external controller calculates the value of the positive voltage Vin and the power supply V1 according to the sampled output terminal Vin_adc through the formulas and methods provided in steps 2 to 6.
[0023] Preferably, the external controller is an ARM9 controller.
[0024] The isolated primary voltage sampling method described in the present invention solves the technical problem of using a diode to isolate and sample the transformer secondary voltage. The present invention collects the transformer secondary voltage to calculate the input voltage, thereby reducing the design difficulty and cost. The present invention realizes the accurate primary voltage sampling function in the integrated auxiliary power supply system through a relatively clever inductance principle and peak holding principle without adding additional costs and circuit logic, thereby eliminating the common primary sampling calculation circuit and some isolation chips in the middle. The types of system components are simplified, saving costs and space. At the same time, the stability and maintainability of the auxiliary power supply are not lost. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a circuit diagram of a voltage sampling circuit of the present invention. DETAILED DESCRIPTION
[0026] Embodiment 1:
[0027] like Figure 1An isolated primary voltage sampling circuit shown includes a transformer T1, a primary circuit, a secondary main output circuit and a voltage sampling circuit;
[0028] The transformer T1 includes a primary coil Np, a first secondary coil Ns1 and a second secondary coil Ns. The two ends of the primary coil Np are pin 1 and pin 2 of the transformer T1. The two ends of the first secondary coil Ns1 are pin 3 and pin 4 of the transformer T1. The two ends of the second secondary coil Ns are pin 4 and pin 5 of the transformer T1.
[0029] The primary circuit includes a field effect transistor Q1 and a capacitor C5, wherein the S pole of the field effect transistor Q1 is connected to the ground wire AGND of the external switching power supply, the D pole is connected to the 2nd pin of the transformer T1, the 1st pin of the transformer T1 is connected to the positive voltage Vin output by the external switching power supply, the G pole of the field effect transistor Q1 is connected to the external switching power supply control signal DRV, one end of the capacitor C1 is connected to the ground wire AGND, and the other end is connected to the positive voltage Vin;
[0030] The secondary side main output circuit includes a diode D2 and a capacitor C4, the positive electrode of the diode D2 is connected to the 3rd pin of the transformer T1, the negative electrode outputs the power supply V1, the 4th pin of the transformer T1 outputs the ground wire EGND, one end of the capacitor C4 is connected to the ground wire EGND, and the other end is connected to the power supply V1;
[0031] The voltage sampling circuit includes a sampling output terminal Vin_adc, a resistor R1, a capacitor C1, a diode D1, a capacitor C2, a resistor R2, a resistor R3, a resistor R4 and a capacitor C3. Pin 5 of the transformer T1 is connected to the positive electrode of the diode D1 through the resistor R1, the negative electrode of the diode D1 is connected to the sampling output terminal Vin_adc through the resistor R3, the positive electrode of the diode D1 is also connected to the ground line EGND through the capacitor C1, the negative electrode of the diode D1 is connected to the ground line EGND through the capacitor C2 and the capacitor R2 connected in parallel, and the sampling output terminal Vin_adc is also connected to the ground line through the resistor R4 and the capacitor C3 connected in parallel.
[0032] Preferably, the external switching power supply is an isolated flyback switching power supply, and the external switching power supply control signal DRV is provided by the isolated flyback switching power supply.
[0033] Embodiment 2:
[0034] The isolated primary voltage sampling method described in Example 2 is implemented by the isolated primary voltage sampling circuit shown in Example 1, and includes the following steps:
[0035] Step 1: Establish an isolated primary voltage sampling circuit and connect the sampling output terminal Vin_adc to the AD input terminal of the external controller;
[0036] Step 2: Set the capacitance value of the capacitor C1 as C1, the capacitance value of the capacitor C2 as C2, the resistance value of the resistor R1 as R1, the resistance value of the resistor R2 as R2, the resistance value of the resistor R3 as R3, and the resistance value of the resistor R4 as R4. Then, the relationship between C1, C2, R1, R2, R3, and R4 is as follows: C1 < C2, R1 < [(R3 + R4) × R2) ÷ (R3 + R4 + R2)], τ1 = R1 × C1, τc = R1 × C2, τd = [(R3 + R4) × R2) ÷ (R3 + R4 + R2)] × C2; τ1 is the RC time constant, τd is the discharge time constant, τc is the charging time constant τc, and τc < τd;
[0037] Step 3: Set the voltage on the 5th pin of the transformer T1 as Vos. During the conduction period of the field-effect transistor Q1, the relationship between the number of turns of the primary side Np of the transformer T1, the positive voltage Vin, the number of turns of the second secondary side coil Ns, and the voltage Vos is as follows:
[0038] Vin / Vos = Np / Ns;
[0039] Step 4: After the voltage Vos passes through the R1, C1 filter circuit, it charges the capacitor C2 through the diode D1. The voltage drop of the diode D1 is 0.7V. Set the voltage across the capacitor C2 as Vc2. Then: Vc2 = (Vos - 0.7) × [1 - exp(-t / τc)];
[0040] Step 5: During the off period of the field-effect transistor Q1, due to the isolation of the diode D1 and τc < τd, the voltage across the capacitor C2, Vos, remains unchanged during the off period;
[0041] After time t, C2 is fully charged, t = n × T; n ≥ 5τc ÷ Ton, T is the switching period of the field-effect transistor Q1, and Ton is the on time of Q1. Since the discharge time constant τd is greater than the charging time constant τc, the capacitor C2 then maintains the maximum voltage Vc2max unchanged: Vc2max = Vos - 0.7;
[0042] Step 6: The value of the sampling output terminal Vin_adc is calculated by the following formula:
[0043] Vin_adc = [R4 ÷ (R3 + R4)] × Vc2max = [R4 ÷ (R3 + R4)] × (Vin × Ns ÷ Np - 0.7);
[0044] Since R3, R4, Ns, and Np are constants, Vin_adc is linearly related to the input voltage Vin. When the input voltage changes, such as when the input voltage rises, C2 continues to charge, and after a period of time, the new peak value remains unchanged. When the input voltage drops, C2 discharges, and after a time t1 (t1>=5τd), the voltage across C2 drops to a new peak value and remains unchanged.
[0045] Step 7: The external controller calculates the value of the positive voltage Vin and the power supply V1 according to the sampled output terminal Vin_adc through the formulas and methods provided in steps 2 to 6.
[0046] Preferably, the external controller is an ARM9 controller.
[0047] The isolated primary voltage sampling method described in the present invention solves the technical problem of using a diode to isolate and sample the transformer secondary voltage. The present invention collects the transformer secondary voltage to calculate the input voltage, thereby reducing the design difficulty and cost. The present invention realizes the accurate primary voltage sampling function in the integrated auxiliary power supply system through a relatively clever inductance principle and peak holding principle without adding additional costs and circuit logic, thereby eliminating the common primary sampling calculation circuit and some isolation chips in the middle. The types of system components are simplified, saving costs and space. At the same time, the stability and maintainability of the auxiliary power supply are not lost.
Claims
1. An isolated primary voltage sampling method, characterized in that: It includes the following steps: Step 1: Establish an isolated primary-side voltage sampling circuit, including a transformer T1, a primary-side circuit, a secondary-side main output circuit, and a voltage sampling circuit; The transformer T1 includes a primary-side coil Np, a first secondary-side coil Ns1, and a second secondary-side coil Ns. The two ends of the primary-side coil Np are pin 1 and pin 2 of the transformer T1. The two ends of the first secondary-side coil Ns1 are pin 3 and pin 4 of the transformer T1. The two ends of the second secondary-side coil Ns are pin 4 and pin 5 of the transformer T1; The primary-side circuit includes a field-effect transistor Q1 and a capacitor C5. The S pole of the field-effect transistor Q1 is connected to the ground wire AGND of the external switching power supply. The D pole is connected to pin 2 of the transformer T1. Pin 1 of the transformer T1 is connected to the positive voltage Vin output by the external switching power supply. The G pole of the field-effect transistor Q1 is connected to the external switching power supply control signal DRV. One end of the capacitor C1 is connected to the ground wire AGND, and the other end is connected to the positive voltage Vin; The secondary-side main output circuit includes a diode D2 and a capacitor C4. The positive pole of the diode D2 is connected to pin 3 of the transformer T1, and the negative pole outputs the power supply V1. Pin 4 of the transformer T1 outputs the ground wire EGND. One end of the capacitor C4 is connected to the ground wire EGND, and the other end is connected to the power supply V1; The voltage sampling circuit includes a sampling output terminal Vin_adc, a resistor R1, a capacitor C1, a diode D1, a capacitor C2, a resistor R2, a resistor R3, a resistor R4, and a capacitor C3. Pin 5 of the transformer T1 is connected to the positive pole of the diode D1 through the resistor R1. The negative pole of the diode D1 is connected to the sampling output terminal Vin_adc through the resistor R3. The positive pole of the diode D1 is also connected to the ground wire EGND through the capacitor C1. The negative pole of the diode D1 is connected to the ground wire EGND through the parallel-connected capacitor C2 and capacitor R2. The sampling output terminal Vin_adc is also connected to the ground wire through the parallel-connected resistor R4 and capacitor C3; The external switching power supply is an isolated flyback switching power supply, and the external switching power supply control signal DRV is provided by the isolated flyback switching power supply; Connect the sampling output terminal Vin_adc to the AD input terminal of the external controller; Step 2: Set the capacitance value of the capacitor C1 as C1, the capacitance value of the capacitor C2 as C2, the resistance value of the resistor R1 as R1, the resistance value of the resistor R2 as R2, the resistance value of the resistor R3 as R3, and the resistance value of the resistor R4 as R4. Then the relationship between C1, C2, R1, R2, R3, and R4 is as follows: C1 < C2, R1 < [(R3 + R4) × R2) ÷ (R3 + R4 + R2)], τ1 = R1 × C1, τc = R1 × C2, τd = [(R3 + R4) × R2) ÷ (R3 + R4 + R2)] × C2; τ1 is the RC time constant, τd is the discharge time constant, τc is the charging time constant τc, and τc < τd; Step 3: Set the voltage on pin 5 of the transformer T1 as Vos. During the conduction period of the field-effect transistor Q1, the relationship between the number of turns of the primary side Np of the transformer T1, the positive voltage Vin, the number of turns of the second secondary-side coil Ns, and the voltage Vos is as follows: Vin / Vos=Np / Ns; Step 4: After the voltage Vos passes through the R1, C1 filtering circuit, it charges the capacitor C2 through the diode D1. The voltage drop of the diode D1 is 0.7V. The voltage across the capacitor C2 is set to Vc2, then: Vc2 = (Vos-0.7) × [1-exp(-t / τc)]; Step 5: During the off period of the field effect tube Q1, due to the isolation of the diode D1 and τc<τd, the voltage Vos across the capacitor C2 remains unchanged during the off period; After time t, C2 is fully charged, t = n × T; n ≧ 5τc ÷ Ton, T is the switching period of field effect tube Q1, Ton is the on time of Q1; since the discharge time constant τd is greater than the charging time constant τc, the capacitor C2 maintains the maximum voltage Vc2max unchanged: Vc2max = Vos-0.7; Step 6: The value of the sampled output terminal Vin_adc is calculated using the following formula: Vin_adc=[R 4÷(R 3+R 4)]×Vc2max=[R4÷(R3+R4)]×(Vin×Ns÷Np-0.7); Step 7: The external controller calculates the value of the positive voltage Vin and the power supply V1 according to the sampled output terminal Vin_adc through the formulas and methods provided in steps 2 to 6.
2. The isolated primary voltage sampling method according to claim 1, characterized in that: The external controller is an ARM9 controller.
Citation Information
Patent Citations
Control circuit and control method for light emitting diode (LED) driver
CN102340911A
Input voltage real-time sampling circuit and method suitable for secondary side control DC / DC converter
CN104065249A
Method and circuit for detecting input voltage of isolated flyback high-frequency switching power supply
CN104201892A
Digital constant current controller based on flyback primary side feedback
CN104993704A
DC high voltage isolation detection method
CN105486910A
