An AC / DC adaptive input sampling circuit and switching power supply

By introducing an AC and DC adaptive adjustment unit into the input voltage sampling circuit of the switching power supply and using an optocoupler device to automatically adjust the resistance, the problem in the existing technology that the AC and DC voltages cannot be sampled at the same input point is solved, simplifying production and reducing costs. cost effect.

CN115483813BActive Publication Date: 2024-09-27WUXI OU RUIJIE ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211121789.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-15
Publication Date
2024-09-27
Estimated Expiration
2042-09-15

AI Technical Summary

Technical Problem

In the existing technology, the input sampling circuit of the switching power supply cannot support both AC and DC voltages at the same input point. It is necessary to set up two versions of DC and AC sampling circuits, which increases the cost and volume of the device.

Method used

An AC and DC adaptive input sampling circuit is designed. By introducing an AC and DC adaptive adjustment unit into the input voltage sampling circuit, a light-emitting diode and a phototransistor are used to form an optocoupler device, and the resistor connection is automatically adjusted according to the nature of the input voltage to achieve AC. Adaptive sampling of DC voltages.

Benefits of technology

It achieves fusion sampling of AC and DC voltages, simplifies the device production process, reduces cost and volume, and avoids the addition of additional devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115483813B
    Figure CN115483813B
Patent Text Reader

Abstract

The invention discloses an AC / DC adaptive input sampling circuit and a switching power supply. The circuit comprises: a first voltage signal detection circuit, comprising a first light emitting diode; a second voltage signal detection circuit, comprising a second light emitting diode; an input voltage sampling circuit, comprising a first voltage-dividing resistor unit connected to the output end of an input rectifying and filtering module, a second voltage-dividing resistor unit connected in series with the first voltage-dividing resistor unit, and an AC / DC adaptive adjustment unit connected in parallel with the second voltage-dividing resistor unit; the potential of a reference end of a voltage reference chip is a voltage-dividing potential; the AC / DC adaptive adjustment unit comprises an AC / DC adaptive adjustment resistor connected in series, a first photosensitive transistor forming an optical coupling device with the first light emitting diode, and a second photosensitive transistor forming an optical coupling device with the second light emitting diode; the AC / DC adaptive adjustment resistor is turned on when AC power is input, and is turned off when DC power is input; and the integration of AC / DC input sampling circuits is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of switching power supplies, and in particular to an AC / DC adaptive input sampling circuit and a switching power supply. Background Art

[0002] The switching power supply is mainly a power conversion circuit composed of some inductors, capacitors, transformers and switching tubes. It is used to convert the input voltage into the power supply voltage required by various electronic and electrical equipment and is widely used in modern power electronic systems.

[0003] The input voltage of the switching power supply can be either direct current or alternating current. When the input voltage needs to be sampled under special working conditions, the input sampling circuit provided in the prior art cannot achieve the same input point for both AC and DC. It is necessary to set up two versions of sampling circuits for DC and AC, which increases the cost and size of the device. Summary of the invention

[0004] The embodiments of the present invention provide an AC / DC adaptive input sampling circuit and a switching power supply, which integrate the circuits of AC / DC input sampling, simplify the production process of the device, and reduce the cost and volume of the device.

[0005] According to one aspect of the present invention, there is provided an AC / DC adaptive input sampling circuit, comprising:

[0006] A first voltage signal detection circuit, comprising a first light emitting diode connected between an input end and an output end of the first voltage signal detection circuit, and a first energy storage unit connected in parallel between two ends of the first light emitting diode;

[0007] A second voltage signal detection circuit, comprising a second light emitting diode connected between an input end and an output end of the second voltage signal detection circuit, and a second energy storage unit connected in parallel at both ends of the second light emitting diode;

[0008] An input voltage sampling circuit comprises an AC / DC adaptive adjustment unit, a first voltage-dividing resistor unit, a second voltage-dividing resistor unit, a first resistor and a voltage reference chip; the first end of the first voltage-dividing resistor unit is connected to the output end of an input rectifier and filter module in a switching power supply; the second end of the first voltage-dividing resistor unit is connected to the first end of the AC / DC adaptive adjustment unit, the first end of the second voltage-dividing resistor unit and the reference end of the voltage reference chip; the second end of the AC / DC adaptive adjustment unit, the second end of the second voltage-dividing resistor unit and the cathode of the voltage reference chip are all grounded; the anode of the voltage reference chip is connected to the bias voltage input end through the first resistor;

[0009] Wherein, the AC / DC adaptive adjustment unit comprises an AC / DC adaptive adjustment resistor, a first phototransistor and a second phototransistor which are sequentially connected in series between a first end and a second end of the AC / DC adaptive adjustment unit; the first light-emitting diode and the first phototransistor constitute a first optocoupler device; the second light-emitting diode and the second phototransistor constitute a second optocoupler device; when the input voltage of the switching power supply is DC, the input end of the first voltage signal detection circuit receives the positive voltage signal of the input voltage, the input end of the second voltage signal detection circuit receives the ground voltage signal of the input voltage, and the AC / DC adaptive adjustment resistor is disconnected; when the input voltage of the switching power supply is AC, the input end of the first voltage signal detection circuit receives the live line voltage signal of the input voltage; the input end of the second voltage signal detection circuit receives the zero line voltage signal of the input voltage, and the AC / DC adaptive adjustment resistor is turned on; the output end of the first voltage signal detection circuit and the output end of the second voltage signal detection circuit are both grounded; the AC / DC adaptive adjustment resistor is used to make the input voltage detection value on the reference end of the voltage reference chip when the input voltage is AC equal to the input voltage detection value on the reference end of the voltage reference chip when the input voltage is DC.

[0010] Optionally, the first voltage signal detection circuit further includes: a second resistor and a first diode; the first energy storage unit includes a first capacitor; the first diode, the second resistor and the first light-emitting diode are connected in series between the input end and the output end of the first voltage signal detection circuit; the first capacitor is connected in parallel with the second resistor and the first light-emitting diode;

[0011] The second voltage signal detection circuit also includes: a third resistor, a second diode; the second energy storage unit includes a second capacitor; the second diode, the third resistor and the second light-emitting diode are connected in series between the input and output ends of the second voltage signal detection circuit; the second capacitor is connected in parallel with the second resistor and the second light-emitting diode.

[0012] Optionally, the first voltage signal detection circuit further includes a fourth resistor, a fifth resistor and a sixth resistor; the anode end of the first diode serves as the input end of the first voltage signal detection circuit; the cathode end of the first diode is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to the first end of the sixth resistor, the second end of the sixth resistor is connected to the first end of the second resistor and the first end of the first capacitor; the second end of the second resistor is connected to the anode of the first light-emitting diode; the cathode of the first light-emitting diode and the second end of the first capacitor are both grounded;

[0013] The second voltage signal detection circuit also includes a seventh resistor, an eighth resistor and a ninth resistor; the anode end of the second diode serves as the input end of the second voltage signal detection circuit; the cathode end of the second diode is connected to the first end of the seventh resistor, the second end of the seventh resistor is connected to the first end of the eighth resistor, the second end of the eighth resistor is connected to the first end of the ninth resistor, the second end of the ninth resistor is connected to the first end of the third resistor and the first end of the second capacitor; the second end of the third resistor is connected to the anode of the second light-emitting diode; the cathode of the second light-emitting diode and the second end of the second capacitor are both grounded.

[0014] Optionally, the input voltage sampling circuit further includes: a third capacitor and a third diode; the third capacitor and the third diode are both connected in parallel between the reference terminal and the cathode of the voltage reference chip.

[0015] Optionally, the first voltage-dividing resistor unit includes: a tenth resistor, an eleventh resistor and a twelfth resistor; the second voltage-dividing resistor unit includes: a thirteenth resistor and a fourteenth resistor;

[0016] The first end of the tenth resistor is connected to the output end of the input rectifier and filter module in the switching power supply, and the second end of the tenth resistor is connected to the first end of the eleventh resistor; the second end of the eleventh resistor is connected to the first end of the twelfth resistor; the second end of the twelfth resistor is connected to the first end of the AC / DC adaptive regulating resistor, the first end of the thirteenth resistor, the first end of the fourteenth resistor, the cathode of the third diode, the first end of the third capacitor and the reference end of the voltage reference chip; the second end of the AC / DC adaptive regulating resistor is connected to the first end of the first phototransistor, and the second end of the first phototransistor is connected to the first end of the second phototransistor; the second end of the second phototransistor, the second end of the thirteenth resistor, the second end of the fourteenth resistor, the anode of the third diode and the second end of the third capacitor are all grounded.

[0017] Optionally, the common connection end of the first resistor and the anode of the voltage reference chip serves as a control end, connected to a main control chip in a switching power supply, and the control end is used to send a control signal to the main control chip to control the working state of the main control chip.

[0018] Optionally, the common connection end of the first resistor and the anode of the voltage reference chip is used as a control end and connected to an alarm module, and the control end is used to send a control signal to the alarm module to control the working state of the alarm module.

[0019] According to another aspect of the present invention, a switching power supply is provided, comprising the AC / DC adaptive input sampling circuit according to any embodiment of the present invention.

[0020] The technical solution provided by the embodiment of the present invention is to add a first voltage signal detection circuit and a second voltage signal detection circuit in the circuit, and to add an AC / DC adaptive adjustment unit in the input voltage sampling circuit, wherein the DC adaptive adjustment unit includes an AC / DC adaptive adjustment resistor, a first phototransistor and a second phototransistor connected in series in sequence; the first light-emitting diode and the first phototransistor in the first voltage signal detection circuit form a first optical coupler device; the second light-emitting diode and the second phototransistor in the second voltage signal detection circuit form a second optical coupler device; when the input voltage of the switching power supply is direct current, the input end of the first voltage signal detection circuit receives the positive voltage signal of the input voltage, and the input end of the second ... The first end receives the ground voltage signal of the input voltage, the AC / DC adaptive adjustment resistor is disconnected and does not participate in voltage division; when the input voltage of the switching power supply is AC, the input end of the first voltage signal detection circuit receives the live line voltage signal of the input voltage, the input end of the second voltage signal detection circuit receives the zero line voltage signal of the input voltage, the AC / DC adaptive adjustment resistor is turned on and participates in voltage division; by setting the resistance value of the AC / DC adaptive adjustment, the input voltage detection value when AC is input and the input voltage detection value when DC is input can be the same value, so as to achieve the purpose of AC / DC adaptive input sampling, thereby integrating the AC / DC input sampling circuit, simplifying the production process of the device, and reducing the cost and volume of the device.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 It is a circuit diagram of an input sampling circuit provided in the prior art;

[0024] Figure 2 It is a structural block diagram of an AC / DC adaptive input sampling circuit provided by an embodiment of the present invention;

[0025] Figure 3is a circuit diagram of an AC / DC adaptive input sampling circuit provided by an embodiment of the present invention;

[0026] Figure 4 is a circuit diagram of another AC / DC adaptive input sampling circuit provided by an embodiment of the present invention;

[0027] Figure 5 It is a circuit diagram of another AC / DC adaptive input sampling circuit provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] As mentioned in the background technology, the input voltage of the switching power supply can be direct current or alternating current. Under special working conditions, the input voltage needs to be collected. Figure 1 is a circuit diagram of an input sampling circuit provided in the prior art, referring to Figure 1 , VCC is the bias voltage terminal; VIN+ is the output terminal of the input rectifier and filter module in the switching power supply, and its output voltage is the DC voltage formed after the input voltage is processed by the input rectifier and filter module. When the input voltage of the switching power supply is higher than the set value, after voltage division, the voltage input at the reference terminal 1 of the voltage reference chip (AZ431) A6 can turn on the anode 3 and cathode 2 of the voltage reference chip A6, and the voltage at the second end of the resistor R1 is pulled down. When the input voltage is DC, the voltage of VIN+ is equal to the input voltage; when the input voltage is AC, the voltage of VIN+ is the input AC voltage. times. So in both input cases, the voltage of VIN+ is After the voltage of VIN+ is divided by the voltage divider resistor, the voltage at the reference terminal 1 of the voltage reference chip A6 in both cases is The relationship between the input voltage and the input voltage is multiple, that is, the value of the input voltage detection when the input is AC power is not the same as the value of the input voltage detection when the input is DC power. The input sampling circuit provided in the prior art cannot achieve AC and DC at the same input point, and two versions of DC and AC sampling circuits need to be set, which increases the cost and volume of the device.

[0031] In view of this, an embodiment of the present invention provides an AC / DC adaptive input sampling circuit, comprising:

[0032] The first voltage signal detection circuit 10 includes a first light emitting diode D11 connected between an input terminal A1 and an output terminal A2 of the first voltage signal detection circuit 10, and a first energy storage unit 11 connected in parallel at both ends of the first light emitting diode D11;

[0033] The second voltage signal detection circuit 20 includes a second light emitting diode D21 connected between the input terminal B1 and the output terminal B2 of the second voltage signal detection circuit 20, and a second energy storage unit 21 connected in parallel at both ends of the second light emitting diode D21;

[0034] The input voltage sampling circuit 30 includes an AC / DC adaptive adjustment unit 33, a first voltage-dividing resistor unit 31, a second voltage-dividing resistor unit 32, a first resistor R1 and a voltage reference chip A6; the first end of the first voltage-dividing resistor unit 31 is connected to the output end VIN+ of the input rectifier and filter module in the switching power supply; the second end of the first voltage-dividing resistor unit 31 is connected to the first end of the AC / DC adaptive adjustment unit 33, the first end of the second voltage-dividing resistor unit 32 and the reference end 1 of the voltage reference chip A6; the second end of the AC / DC adaptive adjustment unit 33, the second end of the second voltage-dividing resistor unit 32 and the cathode 2 of the voltage reference chip A6 are all grounded GND; the anode 3 of the voltage reference chip A6 is connected to the bias voltage input end VCC through the first resistor R1;

[0035] Among them, the AC / DC adaptive adjustment unit 33 includes an AC / DC adaptive adjustment resistor R0, a first phototransistor Q12 and a second phototransistor Q22 which are sequentially connected in series between the first end and the second end of the AC / DC adaptive adjustment unit 33; the first light-emitting diode D11 and the first phototransistor Q12 constitute a first optocoupler device; the second light-emitting diode D21 and the second phototransistor Q22 constitute a second optocoupler device; when the input voltage of the switching power supply is direct current, the input terminal A1 of the first voltage signal detection circuit 10 receives the positive voltage signal of the input voltage, and the input terminal B1 of the second voltage signal detection circuit 20 receives the ground voltage signal of the input voltage, and the AC / DC adaptive adjustment unit 33 is connected in series between the first end and the second end of the AC / DC adaptive adjustment unit 33. The resistor R0 is disconnected; when the input voltage of the switching power supply is AC, the input terminal A1 of the first voltage signal detection circuit 10 receives the voltage signal on the live line of the input voltage; the input terminal B1 of the second voltage signal detection circuit 20 receives the voltage signal on the neutral line of the input voltage, and the AC / DC adaptive adjustment resistor R0 is turned on; the output terminal A2 of the first voltage signal detection circuit 10 and the output terminal B2 of the second voltage signal detection circuit 20 are both grounded GND; the AC / DC adaptive adjustment resistor R0 is used to make the input voltage detection value on the reference terminal 1 of the voltage reference chip A6 when the input voltage is AC equal to the input voltage detection value on the reference terminal 1 of the voltage reference chip A6 when the input voltage is DC.

[0036] Specifically, the first voltage signal detection circuit 10 and the second voltage signal detection circuit 20 are used to determine whether the input voltage of the switching power supply is an AC voltage or a DC voltage. When the switching power supply inputs DC power, the voltage terminal L1 connected to the input terminal A1 of the first voltage signal detection circuit 10 is the positive terminal of the DC power, and the voltage terminal N1 connected to the input terminal B1 of the second voltage signal detection circuit 20 is the negative terminal of the DC power. The input terminal A1 of the first voltage signal detection circuit 10 receives the positive voltage signal of the DC power, and the input terminal B1 of the second voltage signal detection circuit 20 receives the negative voltage signal of the DC power. At this time, the positive voltage signal of the DC power flows into the anode of the first light-emitting diode D11, the cathode of the first light-emitting diode D11 is grounded, and the first light-emitting diode D11 can be turned on. And because the first light-emitting diode D11 and the first phototransistor Q12 form a first optocoupler device, the first phototransistor Q12 can be turned on after receiving the light signal of the first light-emitting diode D11. The negative voltage signal of direct current flows into the anode of the second light-emitting diode D21, and the cathode of the first light-emitting diode D11 is grounded. At this time, since the negative voltage and the ground voltage are of equal potential, the second light-emitting diode D21 cannot be turned on to emit light, so the second phototransistor Q22 that forms the second optocoupler device together with the second light-emitting diode D21 cannot receive the light signal, and the second phototransistor Q22 cannot be turned on. Since the AC / DC adaptive adjustment resistor R0, the first phototransistor Q12 and the second phototransistor Q22 are connected in series, the AC / DC adaptive adjustment resistor R0 is disconnected at this time and does not participate in the voltage division. The voltage collected by the reference terminal 1 of the voltage reference chip A6 is determined by the resistance value of the first voltage-dividing resistor unit 31 and the resistance value of the second voltage-dividing resistor unit 32.

[0037] When the switching power supply inputs AC power, the voltage terminal L1 connected to the input terminal A1 of the first voltage signal detection circuit 10 is the live line output terminal of the AC power, and the voltage terminal N1 connected to the input terminal B1 of the second voltage signal detection circuit 20 is the neutral line output terminal of the AC power. The input terminal of the first voltage signal detection circuit 10 receives the voltage signal on the live line; the input terminal of the second voltage signal detection circuit 20 receives the voltage signal on the neutral line. At this time, since the magnitude and direction of the AC power both change periodically, the waveform of the AC power is a sine wave or a sine wave-like waveform. The first voltage signal detection circuit 10 and the second voltage signal detection circuit 20 can both turn on and emit light in the positive half-cycle waveform stage of their respective AC waves. Since the first energy storage unit 11 and the second energy storage unit 21 can both be charged in the positive half-cycle waveform of their respective AC waves, the first voltage signal detection circuit 10 and the second voltage signal detection circuit 20 can be powered by their respective energy storage units to emit light in the negative half-cycle waveform stage of their respective AC waves. That is to say, when AC power is input, the light-emitting diodes in the first voltage signal detection circuit 10 and the second voltage signal detection circuit 20 remain in the on state. At this time, the first phototransistor Q12 and the second phototransistor Q22 can both remain in the on state, so that the AC / DC adaptive adjustment resistor R0 can be turned on to participate in voltage division. The voltage collected by the reference terminal 1 of the voltage reference chip A6 is determined by the resistance value of the first voltage-dividing resistor unit 31, the resistance value of the second voltage-dividing resistor unit 32, and the resistance value of the AC / DC adaptive adjustment resistor R0.

[0038] By setting the resistance value of the AC / DC adaptive adjustment resistor R0, the input voltage detection value when the input is AC and the input voltage detection value when the input is DC can be the same value, so as to achieve the purpose of AC / DC adaptive input sampling. The resistance value of the AC / DC adaptive adjustment resistor R0 is determined based on the following:

[0039]

[0040]

[0041] Wherein, Rs is the resistance of the first voltage-dividing resistor unit 31, Rt is the resistance of the second voltage-dividing resistor unit 32, R0 is the resistance of the AC / DC adaptive regulating resistor R0; Rx is the resistance of the AC / DC adaptive regulating resistor R0 and the second voltage-dividing resistor unit 32 in parallel; U is the voltage of VIN+ when the input is DC power, It is the voltage of VIN+ when the input is AC.

[0042] The AC / DC adaptive input sampling circuit provided by the embodiment of the present invention has a first voltage signal detection circuit and a second voltage signal detection circuit added to the circuit, and an AC / DC adaptive adjustment unit added to the input voltage sampling circuit, wherein the DC adaptive adjustment unit comprises an AC / DC adaptive adjustment resistor, a first phototransistor and a second phototransistor connected in series in sequence; the first light-emitting diode and the first phototransistor in the first voltage signal detection circuit form a first optocoupler device; the second light-emitting diode and the second phototransistor in the second voltage signal detection circuit form a second optocoupler device; when the input voltage of the switching power supply is DC, the input end of the first voltage signal detection circuit receives the positive voltage signal of the input voltage, the input end of the second voltage signal detection circuit receives the ground voltage signal of the input voltage, and the AC / DC adaptive adjustment resistor is disconnected and does not participate in voltage division; when the input voltage of the switching power supply is AC, the input end of the first voltage signal detection circuit receives the voltage signal on the live line of the input voltage, the input end of the second voltage signal detection circuit receives the voltage signal on the zero line of the input voltage, and the AC / DC adaptive adjustment resistor is turned on and participates in voltage division. By setting the resistance value of the AC / DC adaptive adjustment resistor, the voltage at VIN+ is U or When the input voltage is 10V, the reference terminal voltage of the voltage reference chip is the same, ensuring that the input voltage detection value when the input is AC is the same as the input voltage detection value when the input is DC, so as to achieve the purpose of AC and DC adaptive input sampling. This realizes the integration of AC and DC input sampling circuits, simplifies the production process of the device, and reduces the cost and volume of the device.

[0043] Optional, reference Figure 2 When the input voltage of the switching power supply is direct current, the input terminal A1 of the first voltage signal detection circuit 10 receives the negative voltage signal of the input voltage, the input terminal B1 of the second voltage signal detection circuit 20 receives the positive voltage signal of the input voltage, and the AC / DC adaptive adjustment resistor R0 is disconnected; when the input voltage of the switching power supply is alternating current, the input terminal A1 of the first voltage signal detection circuit 10 receives the voltage signal on the zero line of the input voltage; the input terminal B1 of the second voltage signal detection circuit 20 receives the voltage signal on the live line of the input voltage, and the AC / DC adaptive adjustment resistor R0 is turned on; the output terminal A2 of the first voltage signal detection circuit 10 and the output terminal B2 of the second voltage signal detection circuit 20 are both grounded to GND; by setting the resistance value of the AC / DC adaptive adjustment resistor R0, the input voltage detection value when the input is alternating current and the input voltage detection value when the input is direct current can also be made the same value, so as to achieve the purpose of AC / DC adaptive input sampling, thereby integrating the circuit of AC / DC input sampling, simplifying the production process of the device, and reducing the cost and volume of the device.

[0044] In one embodiment of the present invention, reference Figure 3, the first voltage signal detection circuit 10 also includes: a second resistor R2, a first diode D1; the first energy storage unit 11 includes a first capacitor C1; the first diode D1, the second resistor R2 and the first light-emitting diode D11 are connected in series between the input end and the output end of the first voltage signal detection circuit 10; the first capacitor C1 is connected in parallel with the second resistor R2 and the first light-emitting diode D11;

[0045] The second voltage signal detection circuit 20 also includes: a third resistor R3, a second diode D2; the second energy storage unit 21 includes a second capacitor C2; the second diode D2, the third resistor R3 and the second light-emitting diode D21 are connected in series between the input end and the output end of the second voltage signal detection circuit 20; the second capacitor C2 is connected in parallel with the second resistor R2 and the second light-emitting diode D21.

[0046] Optionally, the first voltage signal detection circuit 10 may further include a fourth resistor R4, a fifth resistor R5 and a sixth resistor R6; the anode end of the first diode D1 serves as the input end of the first voltage signal detection circuit 10; the cathode end of the first diode D1 is connected to the first end of the fourth resistor R4, the second end of the fourth resistor R4 is connected to the first end of the fifth resistor R5, the second end of the fifth resistor R5 is connected to the first end of the sixth resistor R6, the second end of the sixth resistor R6 is connected to the first end of the second resistor R2 and the first end of the first capacitor C1; the second end of the second resistor R2 is connected to the anode of the first light-emitting diode D11; the cathode of the first light-emitting diode D11 and the second end of the first capacitor C1 are both grounded GND;

[0047] The second voltage signal detection circuit 20 also includes a seventh resistor R7, an eighth resistor R8 and a ninth resistor R9; the anode end of the second diode D2 serves as the input end of the second voltage signal detection circuit 20; the cathode end of the second diode D2 is connected to the first end of the seventh resistor R7, the second end of the seventh resistor R7 is connected to the first end of the eighth resistor R8, the second end of the eighth resistor R8 is connected to the first end of the ninth resistor R9, the second end of the ninth resistor R9 is connected to the first end of the third resistor R3 and the first end of the second capacitor C2; the second end of the third resistor R3 is connected to the anode of the second light-emitting diode D21; the cathode of the second light-emitting diode D21 and the second end of the second capacitor C2 are both grounded GND.

[0048] In one embodiment of the present invention, reference Figure 3 The input voltage sampling circuit 30 further includes: a third capacitor C3 and a third diode D3; the third capacitor C3 and the third diode D3 are both connected in parallel between the reference terminal 1 and the cathode 2 of the voltage reference chip A6. The third capacitor C3 and the third diode D3 are used to stabilize the potential of the reference terminal 1 and the cathode 2 of the voltage reference chip A6.

[0049] In one embodiment of the present invention, the first voltage-dividing resistor unit 31 includes: a tenth resistor R10, an eleventh resistor R11 and a twelfth resistor R12; the second voltage-dividing resistor unit 32 includes: a thirteenth resistor R13 and a fourteenth resistor R14;

[0050] The first end of the tenth resistor R10 is connected to the output end of the input rectifier and filter module in the switching power supply, and the second end of the tenth resistor R10 is connected to the first end of the eleventh resistor R11; the second end of the eleventh resistor R11 is connected to the first end of the twelfth resistor R12; the second end of the twelfth resistor R12 is connected to the first end of the AC / DC adaptive adjustment resistor R0, the first end of the thirteenth resistor R13, the first end of the fourteenth resistor R14, the cathode of the third diode D3, the first end of the third capacitor C3 and the reference end 1 of the voltage reference chip A6; the second end of the AC / DC adaptive adjustment resistor R0 is connected to the first end of the first phototransistor Q12, and the second end of the first phototransistor Q12 is connected to the first end of the second phototransistor Q22; the second end of the second phototransistor Q22, the second end of the thirteenth resistor R13, the second end of the fourteenth resistor R14, the anode of the third diode D3, and the second end of the third capacitor C3 are all grounded GND.

[0051] In one embodiment of the present invention, reference Figure 4 , the common connection end of the first resistor R1 and the anode 3 of the voltage reference chip A6 is used as a control end, which is connected to the main control chip 40 in the switching power supply. The control end is used to send a control signal to the main control chip 40 to control the working state of the main control chip 40. For example, when the input voltage of the switching power supply is higher than the set value, after voltage division, the voltage collected by the reference end 1 of the voltage reference chip A6 can turn on the anode 3 and cathode 2 of the voltage reference chip A6, and the voltage of the control end is pulled down at this time. After the control end sends the low level to the main control chip 40, the main control chip 40 turns off the switching power supply to protect the switching power supply.

[0052] In one embodiment of the present invention, reference Figure 5 , the common connection end of the first resistor R1 and the cathode of the voltage reference chip A6 is used as a control end, which is connected to the alarm module 50. The control end is used to send a control signal to the alarm module 50 to control the working state of the alarm module 50. For example, when the input voltage of the switching power supply is higher than the set value, after voltage division, the voltage collected by the reference end 1 of the voltage reference chip A6 can turn on the anode 3 and cathode 2 of the voltage reference chip A6, and the voltage of the control end is pulled down. After the control end sends the low level to the alarm module 50, the alarm module 50 can make an audible and visual alarm to remind that the input voltage of the switching power supply exceeds the preset value.

[0053] The embodiment of the present invention further provides a switching power supply, comprising the AC / DC adaptive input sampling circuit described in any of the above embodiments, which has the same technical effect and will not be described in detail here.

[0054] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. An AC / DC adaptive input sampling circuit, characterized in that: include: A first voltage signal detection circuit, comprising a first light emitting diode connected between an input end and an output end of the first voltage signal detection circuit, and a first energy storage unit connected in parallel between two ends of the first light emitting diode; A second voltage signal detection circuit, comprising a second light emitting diode connected between an input end and an output end of the second voltage signal detection circuit, and a second energy storage unit connected in parallel at both ends of the second light emitting diode; An input voltage sampling circuit comprises an AC / DC adaptive adjustment unit, a first voltage-dividing resistor unit, a second voltage-dividing resistor unit, a first resistor and a voltage reference chip; the first end of the first voltage-dividing resistor unit is connected to the output end of an input rectifier and filter module in a switching power supply; the second end of the first voltage-dividing resistor unit is connected to the first end of the AC / DC adaptive adjustment unit, the first end of the second voltage-dividing resistor unit and the reference end of the voltage reference chip; the second end of the AC / DC adaptive adjustment unit, the second end of the second voltage-dividing resistor unit and the cathode of the voltage reference chip are all grounded; the anode of the voltage reference chip is connected to a bias voltage input end through the first resistor; Wherein, the AC / DC adaptive adjustment unit comprises an AC / DC adaptive adjustment resistor, a first phototransistor and a second phototransistor which are sequentially connected in series between the first end and the second end of the AC / DC adaptive adjustment unit; the first light-emitting diode and the first phototransistor constitute a first optocoupler device; the second light-emitting diode and the second phototransistor constitute a second optocoupler device; when the switching power supply inputs DC power, the input end of the first voltage signal detection circuit receives the positive voltage signal of the input voltage, the input end of the second voltage signal detection circuit receives the ground voltage signal of the input voltage, and the AC / DC adaptive adjustment resistor is disconnected; when the switching power supply inputs AC power, the input end of the first voltage signal detection circuit receives the live line voltage signal of the input voltage; the input end of the second voltage signal detection circuit receives the zero line voltage signal of the input voltage, and the AC / DC adaptive adjustment resistor is turned on; the output end of the first voltage signal detection circuit and the output end of the second voltage signal detection circuit are both grounded; the AC / DC adaptive adjustment resistor is used to make the input voltage detection value on the reference end of the voltage reference chip when the input voltage is AC power equal to the input voltage detection value on the reference end of the voltage reference chip when the input voltage is DC power.

2. The AC / DC adaptive input sampling circuit according to claim 1, characterized in that: The first voltage signal detection circuit further includes: a second resistor and a first diode; the first energy storage unit includes a first capacitor; the first diode, the second resistor and the first light-emitting diode are connected in series between the input end and the output end of the first voltage signal detection circuit; the first capacitor is connected in parallel with the second resistor and the first light-emitting diode; The second voltage signal detection circuit also includes: a third resistor, a second diode; the second energy storage unit includes a second capacitor; the second diode, the third resistor and the second light-emitting diode are connected in series between the input and output ends of the second voltage signal detection circuit; the second capacitor is connected in parallel with the second resistor and the second light-emitting diode.

3. The AC / DC adaptive input sampling circuit according to claim 2, characterized in that: The first voltage signal detection circuit also includes a fourth resistor, a fifth resistor and a sixth resistor; the anode end of the first diode serves as the input end of the first voltage signal detection circuit; the cathode end of the first diode is connected to the first end of the fourth resistor, the second end of the fourth resistor is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to the first end of the sixth resistor, the second end of the sixth resistor is connected to the first end of the second resistor and the first end of the first capacitor; the second end of the second resistor is connected to the anode of the first light-emitting diode; the cathode of the first light-emitting diode and the second end of the first capacitor are both grounded; The second voltage signal detection circuit also includes a seventh resistor, an eighth resistor and a ninth resistor; the anode end of the second diode serves as the input end of the second voltage signal detection circuit; the cathode end of the second diode is connected to the first end of the seventh resistor, the second end of the seventh resistor is connected to the first end of the eighth resistor, the second end of the eighth resistor is connected to the first end of the ninth resistor, the second end of the ninth resistor is connected to the first end of the third resistor and the first end of the second capacitor; the second end of the third resistor is connected to the anode of the second light-emitting diode; the cathode of the second light-emitting diode and the second end of the second capacitor are both grounded.

4. The AC / DC adaptive input sampling circuit according to claim 1, characterized in that: The input voltage sampling circuit further includes: a third capacitor and a third diode; the third capacitor and the third diode are both connected in parallel between the reference terminal and the cathode of the voltage reference chip.

5. The AC / DC adaptive input sampling circuit according to claim 4, characterized in that: The first voltage-dividing resistor unit includes: a tenth resistor, an eleventh resistor and a twelfth resistor; the second voltage-dividing resistor unit includes: a thirteenth resistor and a fourteenth resistor; The first end of the tenth resistor is connected to the output end of the input rectifier and filter module in the switching power supply, and the second end of the tenth resistor is connected to the first end of the eleventh resistor; the second end of the eleventh resistor is connected to the first end of the twelfth resistor; the second end of the twelfth resistor is connected to the first end of the AC / DC adaptive regulating resistor, the first end of the thirteenth resistor, the first end of the fourteenth resistor, the cathode of the third diode, the first end of the third capacitor and the reference end of the voltage reference chip; the second end of the AC / DC adaptive regulating resistor is connected to the first end of the first phototransistor, and the second end of the first phototransistor is connected to the first end of the second phototransistor; the second end of the second phototransistor, the second end of the thirteenth resistor, the second end of the fourteenth resistor, the anode of the third diode and the second end of the third capacitor are all grounded.

6. The AC / DC adaptive input sampling circuit according to claim 1, characterized in that: The common connection end of the first resistor and the anode of the voltage reference chip is used as a control end, which is connected to the main control chip in the switching power supply. The control end is used to send a control signal to the main control chip to control the working state of the main control chip.

7. The AC / DC adaptive input sampling circuit according to claim 1, characterized in that: The common connection end of the first resistor and the anode of the voltage reference chip is used as a control end and connected to the alarm module. The control end is used to send a control signal to the alarm module to control the working state of the alarm module.

8. A switching power supply, characterized in that: The invention comprises the AC / DC adaptive input sampling circuit according to any one of claims 1 to 7.