Power supply circuit, chip, intelligent switch and power supply method

Through the combination of transformer circuit and power management circuit, the current is controlled by rectified current signals and sampled signals, the power supply problem of smart switches during disconnection is solved, low energy consumption and stable power supply and efficient mutual induction are achieved, and construction wiring is simplified.

CN111510003BActive Publication Date: 2025-08-22SHANGHAI BRIGHT POWER SEMICONDUCTOR CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201910100402.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-31
Publication Date
2025-08-22
Estimated Expiration
2039-01-31

AI Technical Summary

Technical Problem

It is difficult for the smart switch to maintain power supply to the logic control circuit during disconnection, resulting in low integration and complex construction wiring.

Method used

The combination of a transformer circuit and a power management circuit is adopted to supply power to the power supply through the rectifier current signal output by the rectifier circuit, and the sampling signal feedback from the secondary side output unit is used to control the current of the primary side input unit to achieve stable power supply.

Benefits of technology

It realizes stable power supply with low energy consumption within the chip, improves mutual inductance efficiency and the stability of power supply, and simplifies construction wiring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111510003B_ABST
    Figure CN111510003B_ABST
Patent Text Reader

Abstract

The present application provides a power supply circuit, chip, intelligent switch and power supply method. The power supply circuit is used to supply power to a power supply by means of a rectified electrical signal output by a rectifier circuit, and the power supply circuit includes: a transformer circuit, comprising a primary input unit and a secondary output unit, wherein the primary input unit is connected to the rectifier circuit, and the secondary output unit is used to supply power to the power supply; a power management circuit, connected to the primary input unit and obtaining a first sampling signal for reflecting the power supply signal output by the power supply, and based on the first sampling signal, controlling the current flowing through the primary input unit, so that the power supply provided by the secondary output unit is stable. The present application realizes a stable power supply with low energy consumption inside the chip by means of a flyback power supply method of a transformer circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of circuit control technology, and in particular to a power supply circuit, a chip, an intelligent switch, and a power supply method. Background Art

[0002] Smart home appliances are home appliances that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the ability to automatically sense the status of the residential space, the status of the home appliances themselves, and the status of home appliances services. They can automatically control and receive control information from residential users inside the home or remotely. At the same time, as an integral part of a smart home, smart home appliances can be interconnected with other home appliances, homes, and facilities in the home to form a system and realize smart home functions.

[0003] Currently, common remote control devices for smart home appliances, such as universal remote controls and mobile terminals, all use integrated control information to control home appliances. These devices do not involve the installation wiring of smart appliances. Therefore, smart appliances maintain a standby state to promptly process received control information. With the increasing variety of smart home appliances, panel-type smart switches have emerged that integrate control management for both smart and traditional appliances. This addresses the limitation of remote controls that cannot control traditional appliances, but also creates new internal power supply issues. Summary of the Invention

[0004] In view of the above-mentioned shortcomings of the prior art, the purpose of this application is to provide a power supply circuit, a chip, an intelligent switch and a power supply method to solve the problem of internal power supply of the chip in the prior art.

[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a power supply circuit for supplying power to a power supply by means of a rectified electrical signal output by a rectifier circuit, the power supply circuit comprising: a transformer circuit comprising a primary input unit and a secondary output unit, wherein the primary input unit is connected to the rectifier circuit, and the secondary output unit is used to supply power to the power supply; a power management circuit, connected to the primary input unit and obtaining a first sampling signal for reflecting the power supply signal output by the power supply, and controlling the current flowing through the primary input unit based on the first sampling signal so that the power supply provided by the secondary output unit is stable.

[0006] The second aspect of the present application provides a chip for controlling a transformer circuit connected to a rectifier circuit, wherein the transformer circuit includes a primary input unit and a secondary output unit, wherein the primary input unit is connected to the rectifier circuit, and the secondary output unit is used to supply power to the power supply, wherein the chip includes: a first pin, connected to the primary input unit of the transformer circuit; a second pin, obtaining a first sampling signal for reflecting the power supply signal output by the power supply; the power management circuit as described in the first aspect is connected to the primary input unit of the transformer circuit through the first pin, and obtains the first sampling signal through the second pin.

[0007] In a third aspect, the present application provides an intelligent switch for connecting to an AC line where a load is located. The intelligent switch includes: a switching circuit connected to the AC line and controlled to be turned on or off; a rectifier circuit for rectifying the connected AC power and outputting a rectified electrical signal during the disconnection period and the on period of the switching circuit; a power supply circuit as described in the first aspect, connected to the rectifier circuit, and used to power a power supply using the acquired rectified electrical signal; and a control circuit for at least controlling the switching circuit to be turned on or off when powered by the power supply.

[0008] The fourth aspect of the present application provides a power supply method for supplying power to a power supply by means of a rectified electrical signal output by a rectifier circuit, comprising: providing power supply by means of a primary input unit and a secondary output unit connected to the rectifier circuit; obtaining a first sampling signal for reflecting the power supply signal output by the power supply; and controlling the current flowing through the primary input unit based on the first sampling signal so that the power supply provided by the secondary output unit is stable.

[0009] As described above, the power supply circuit, chip, intelligent switch, and power supply method of the present application have the following beneficial effects: A low-energy, stable power supply is achieved within the chip through the flyback power supply method of the transformer circuit. Furthermore, the common grounding of the primary input unit and the secondary output unit of the transformer circuit greatly improves the mutual inductance efficiency. Furthermore, the power management circuit uses the first sampling signal fed back from the secondary output unit to control the current in the primary input unit, effectively improving the accuracy of the stable power supply of the power supply. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 Shown is a circuit framework schematic diagram of a power supply circuit in one embodiment of the present application.

[0011] Figure 2 Shown is a schematic diagram of the circuit structure of the power supply circuit of the present application in one embodiment.

[0012] Figure 3Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0013] Figure 4 Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0014] Figure 5 Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0015] Figure 6 Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0016] Figure 7 It shows a schematic diagram of the circuit structure of the power supply circuit, the switching circuit and the load during the conduction period of the switching circuit of the present application.

[0017] Figure 8 Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0018] Figure 9 Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0019] Figure 10 Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0020] Figure 11 Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0021] Figure 12 Display as Figure 11 Waveform diagram of the circuit nodes.

[0022] Figure 13 Shown is a circuit structure schematic diagram of the first zero-crossing detection unit in the zero-crossing detection circuit of the present application.

[0023] Figure 14 Shown is a circuit structure schematic diagram of the power supply circuit of the present application in another embodiment.

[0024] Figure 15 Shown is a circuit structure diagram of the second zero-crossing detection unit in the zero-crossing detection circuit of the present application in one embodiment.

[0025] Figure 16 Shown is a circuit structure schematic diagram of the zero-crossing detection circuit of the present application.

[0026] Figure 17 Shown is a schematic diagram of the framework structure of the smart switch of the present application in one embodiment.

[0027] Figure 18 Shown is a schematic diagram of the circuit structure of the smart switch of the present application in one embodiment.

[0028] Figure 19 Shown is a schematic diagram of the circuit structure of another embodiment of the smart switch of the present application.

[0029] Figure 20 Shown is a schematic diagram of the circuit structure of another embodiment of the smart switch of the present application.

[0030] Figure 21 Shown is a flow chart of an embodiment of the power supply method of the present application.

[0031] Figure 22 Shown is a circuit structure diagram of a zero-crossing detection circuit in one embodiment of the present application. DETAILED DESCRIPTION

[0032] The following describes the implementation of the present application through specific embodiments. People familiar with this technology can easily understand other advantages and effects of the present application from the contents disclosed in this specification.

[0033] Although in some instances the terms first, second, etc. are used to describe various elements in this document, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first preset threshold value can be referred to as a second preset threshold value, and similarly, a second preset threshold value can be referred to as a first preset threshold value without departing from the scope of the various described embodiments. The first preset threshold value and the preset threshold value are both describing a threshold value, but unless the context clearly indicates otherwise, they are not the same preset threshold value. Similar situations also include a first volume and a second volume.

[0034] Furthermore, as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, steps, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, "A, B, or C" or "A, B, and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B, and C". Exceptions to this definition occur only when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.

[0035] To handle a variety of smart and traditional appliances, smart switches must be compatible with both the switch-type control circuits of traditional appliances and the logic control circuits of smart appliances (which may correspond to the control circuits mentioned below). The switch-type control circuit includes a switch circuit and a control circuit for the switch circuit. Examples of switch circuits include relays (or power transistors, etc.) and their drivers. Examples of the switch circuit control circuit include a control circuit for adjusting at least one of the switch circuit's on-time, off-time, and on-off frequency. The logic control circuit controls the corresponding electronic device based on the instructions in the control information, causing the electronic device to switch to the corresponding operating state according to the instructions. The control information includes, but is not limited to, at least one of the following: on / off information, temperature information, duration information, timing information, mode information, location information, brightness information, and other instructions that can be recognized by smart appliances. The logic control circuit includes, but is not limited to, a processor, a signal transceiver, and external circuitry. Examples of the processor include a CPU, FPGA, MCU, or a chip integrating any of the example processors. The signal transceiver includes, but is not limited to, short-range communication modules such as RF, WiFi, infrared, and Bluetooth; communication modules capable of accessing wide-area networks such as optical fiber and broadband; and communication modules capable of accessing mobile networks using mobile phone cards. The external circuits include, but are not limited to, power supply circuits for providing operating power to the processor, signal transceiver, and other peripheral circuits. These other peripheral circuits include, but are not limited to, at least one of the following: a first circuit not integrated into the chip that provides a preset electrical signal to the chip, wherein the electrical signal provided by the first circuit includes, for example, a sampling signal; and a second circuit for processing the electrical signal output by the chip, wherein the second circuit performs, for example, modulation, voltage division, amplification, filtering, and other processing on the electrical signal output by the chip.

[0036] Since the logic control circuit inside the smart switch is difficult to obtain power to maintain operation during the period when the switch control circuit is disconnected, two independent circuits are usually used in the smart switch to realize logic control and switch control. This makes the integration of the smart switch very low and also requires complex construction wiring to be provided externally.

[0037] In some applications, the smart switch is independently configured on an AC power circuit or integrated into a smart device. For example, a smart switch is installed on the AC power line that powers an LED light. In another example, a smart switch is integrated into a smart device such as a television or air conditioner.

[0038] It should be noted that any of the above examples and the following references to AC power lines, AC circuits, and the power circuits within which AC circuits reside should be considered to include the power lines required to connect to the city power grid, including the neutral wire, live wire, and ground wire. For example, an LED light and a smart switch connected to an AC power line can form a power circuit.

[0039] To this end, the present application provides a power supply circuit to solve the problem of ensuring that at least part of the circuit in the intelligent switch can always receive power support from the power supply. Here, the power supply circuit is a circuit that can provide internal power supply to the logic control circuit, or the switch control circuit and the logic control circuit, and it provides a weak power supply to the logic control circuit, or the switch control circuit and the logic control circuit through the rectified electrical signal output by the rectifier circuit. According to the actual operating voltage of the logic control circuit, or the switch control circuit and the logic control circuit, the voltage provided by the power supply is, for example, below 15V. Here, the power supply can be a terminal that outputs a power supply signal, and the power supply circuit is a circuit that provides a stable power output to the terminal. Through the power provided by the power supply circuit, the power supply provides the circuit connected to it with an operating voltage that enables it to operate.

[0040] The rectifier circuit acquires an AC signal from an AC power circuit and rectifies the acquired AC signal to output a rectified signal. The rectifier circuit includes, but is not limited to, a full-wave rectifier circuit or a half-wave rectifier circuit. Furthermore, the AC power circuit includes at least a load and a switching circuit. The switching circuit is a circuit for controlling the on / off state of the load power supply circuit and is connected in series with the load between the neutral and live wires of the AC power supply. For example, the live wire connected to the residential power grid is sequentially connected to the switching circuit and the load, and the load is connected to the neutral wire of the grid to form an AC power circuit. For another example, the live wire connected to the residential power grid is sequentially connected to the load and the switching circuit, and the switching circuit is connected to the neutral wire of the grid to form an AC power circuit. The load can be a single load, or connected to the power supply circuit in series, in parallel, or in a combination of series and parallel. The switching circuit can be used to control the power supply to a load individually, or configured on an AC line to which multiple loads are connected to control the power supply to the multiple loads. In some embodiments, multiple loads are provided, each of which is connected in series with a switching circuit. The series switching circuits and loads are connected in parallel with other series switching circuits and loads to control the power supply to the multiple loads.

[0041] In some examples, the load is a load circuit that includes a voltage (or current) conversion circuit, wherein the conversion circuit is used to convert alternating current into a supply voltage (or supply current). When the supply voltage (or supply current) reaches the operating voltage (or operating current), the load enters the working state, and when the supply voltage (or supply current) does not reach the operating voltage (or operating current), the load switches out of the working state. Examples of loads include LED lights, electric curtains, power adapters, etc. Examples of switching circuits include relays and relay controllers. Taking an LED light as the load and a relay as an example for controlling the on or off of the circuit where the LED light is located, when the relay is on, the current flowing through the LED light reaches the operating current of its LED (light-emitting diode), and the LED light turns on; when the relay is off, the current flowing through the LED light does not reach the operating current of its LED, and the LED light turns off. In some other examples, the load is a purely resistive device, such as an incandescent lamp.

[0042] To ensure that the power circuit provides power to the power supply during both the off and on periods of the switch circuit, refer to Figure 1 , which shows a schematic diagram of a circuit framework of the power supply circuit in one embodiment. The power supply circuit at least includes: a voltage conversion circuit 11 and a power management circuit 12.

[0043] Among them, the transformer circuit 11 includes a primary input unit and a secondary output unit, and the primary input unit and the secondary output unit respectively include a primary winding and a secondary winding arranged based on the principle of mutual inductance, and the primary input unit is connected to the rectifier circuit, and the secondary output unit is used to output power to the power supply.

[0044] To maximize the output of the converted electrical energy from the secondary winding and improve the conversion efficiency of the transformer circuit, the secondary output unit includes: a secondary winding connected to the voltage ground, and a unidirectional conduction module connected to the output end of the secondary winding. The output end of the secondary winding is connected to the unidirectional conduction module, and the unidirectional conduction module and the secondary winding are connected to a common ground. The unidirectional conduction module is used to prevent current backflow in the loop where the secondary winding is located. In some examples, the unidirectional conduction module includes a diode and, optionally, a capacitor. See [referring to a unidirectional conduction module]. Figure 2 , which shows a schematic diagram of the circuit structure of a power supply circuit in one embodiment, wherein the unidirectional conduction module includes a diode D11 and a capacitor C11. The cathode of the diode D11 is connected to one end of the secondary winding, and the anode is connected to one end of the capacitor C11 and constitutes the output end of the secondary output unit 112, while the other end of the capacitor C11 is grounded with the other end of the secondary winding. In this way, the secondary winding maximizes the conversion of the induced energy into electrical energy, which is then filtered by the capacitor C11 and provided to the power supply.

[0045] The power management circuit 12 is at least connected to the primary input unit and obtains a first sampling signal for reflecting the power supply signal output by the power supply, and controls the current flowing through the primary input unit based on the first sampling signal so that the power supply provided by the secondary output unit is stable.

[0046] Here, the power management circuit can be formed by integrating discrete devices on a PCB board, or by forming the power management circuit on a wafer through a semiconductor process and packaging it into a chip.

[0047] To accurately reflect fluctuations in the power supply signal, the power management circuit collects the first sampling signal from the line where the secondary output unit is located. For example, the first sampling signal can be derived directly from the power supply signal output by the secondary output unit, directly reflecting the power supply signal of the power supply. Alternatively, the first sampling signal can be derived from the power pin of an electrical device powered by the power supply, such as the power pin of a CPU chip powered by the power supply, indirectly reflecting the power supply signal provided by the secondary output unit by utilizing the standard power supply signal of the powered electrical device. Depending on the actual design of the sampling circuit for collecting the first sampling signal, the first sampling signal can be a voltage signal or a current signal. For example, a current sampling device can be used to sample the current at the output terminal of the secondary output unit to obtain a current signal, i.e., the first sampling signal; the current flowing through the primary input unit is controlled based on the first sampling signal; or, if appropriate, a current-to-voltage device can be used to convert the first sampling signal into a voltage signal, and the voltage signal is used to control the current flowing through the primary input unit. For another example, a voltage sampling device is used to collect the voltage at the output end of the secondary output unit to obtain a voltage signal, i.e., a first sampling signal; the current flowing through the primary input unit is controlled based on the first sampling signal; or when appropriate, a voltage-to-current device is used to convert the first sampling signal into a current signal, and the current signal is used to control the current flowing through the primary input unit.

[0048] In some examples, the power supply circuit further includes a first sampling circuit connected between the secondary output unit and the power management circuit, the first sampling circuit being configured to sample the output side of the secondary output unit and obtain a first sampling signal. For example, the first sampling circuit 14 includes voltage divider resistors R11 and R12 connected between the secondary output unit 112 and voltage ground, and outputs the first sampling signal FB1 from the connection between resistors R11 and R12.

[0049] Here, the first sampling circuit can be configured separately and connected to a chip pin in the chip of the power management circuit in the integrated power supply circuit. For example, the first sampling circuit is externally located and connected to the first sampling pin of the chip where the power management circuit is located and the output end of the secondary output unit, and the chip directly obtains the first sampling signal after voltage division. Alternatively, the first sampling circuit is integrated with the power management circuit. For example, if the power management circuit and the first sampling circuit are integrated into a single chip, the first sampling pin of the chip is connected to the output end of the secondary output unit, and the first sampling circuit integrated within the chip performs voltage division processing on the electrical signal obtained by the first sampling pin, and the sampling signal obtained after voltage division processing is the first sampling signal.

[0050] The power management circuit controls the current flowing through the primary input unit based on the first sampling signal. Here, the power management circuit is a control circuit of a transformer circuit, and uses the voltage (or current) of the first sampling signal that can reflect the power supply to control the current in the loop of the primary input unit of the transformer circuit, so as to change the current flowing through the primary winding in the primary input unit, so that the power supply voltage output by the secondary output unit to the power supply through mutual inductance can be maintained within a stable voltage range. For example, the power management circuit controls the change in current flowing through the primary winding by controlling the on / off of the loop of the primary input unit based on the voltage of the first sampling signal.

[0051] To this end, the power management circuit obtains a first sampling signal through any of the examples mentioned above, and adjusts the current in the primary winding according to the voltage (or current) of the first sampling signal. The power circuit includes: a regulation module and a control module. In order to facilitate the distinction between other control modules in the power management circuit, the control module in the power circuit is referred to as the first control module. For example Figure 2 The first control module 122 in.

[0052] like Figure 2 As shown, the regulating module 121 is located on the line between the primary input unit 111 and the voltage ground, and is used to control the on / off state or current change of the line between the primary input unit 111 and the voltage ground.

[0053] In one example, the regulation module 121 includes a resistor and a controlled switch, which are connected in series between the primary winding and the voltage ground. Examples of the controlled switch include any one or a combination of a bipolar junction transistor (BJT), a junction field effect transistor (JFET), a depletion-mode MOS power transistor, a thyristor, and the like. In another example, the regulation module 121 includes multiple gate circuits and a gate connected between the primary input unit 111 and the voltage ground, wherein each gate circuit is provided with a resistor of different resistance. The gate is controlled to switch to a different gate circuit, and the current flowing through the primary input unit changes accordingly. The gate includes, but is not limited to, a switching device. For example, the regulation module 121 includes two gate circuits, one of which is a wire, and the other is provided with a resistor and a switching device. When the switching device is off by default, the primary input unit is grounded via the wire. When the switching device is on, the primary input unit 111 is grounded via the resistor.

[0054] Here, the first control module is connected to the regulating module and is configured to control the regulating module based on the first sampling signal.

[0055] Specifically, the first control module is connected to the control terminal of the regulation module and controls the regulation module to turn on or off or adjust the current by detecting a first sampling signal. To this end, the first control module includes a detection submodule and a control submodule. The detection submodule is configured to output a detection signal by detecting the voltage of the first sampling signal; and the control submodule is configured to control the regulation module based on the detection signal.

[0056] In some examples, the detection signal can be a logic signal reflecting a comparison result between the voltage of the first sampling signal and a preset reference voltage. To this end, the detection submodule includes a comparison subcircuit that compares the voltage of the first sampling signal with a preset reference voltage and outputs a detection signal based on the comparison result. The reference voltage can be a reference voltage range or a reference voltage value set based on the power supply voltage of the power supply.

[0057] The comparison subcircuit uses analog devices of logic devices and auxiliary logic devices to represent the detection logic between the first sampling signal and the reference voltage, and outputs a corresponding detection signal. The detection signal is a logic signal that uses a level signal to represent the detection result. For example, when the voltage of the first sampling signal is higher than the reference voltage Vref, the detection signal outputs a high level; when the voltage of the first sampling signal is lower than the reference voltage Vref, the detection signal outputs a low level. In fact, according to the actual logical expression requirements of the logic signal between the comparison subcircuit and the control submodule, the comparison subcircuit includes logic devices such as comparators, inverters, triggers, AND gates, and NOT gates. Examples of the comparator are hysteresis comparators or voltage comparators. Examples of the trigger are D flip-flops.

[0058] It should be noted that the above-mentioned method of using a single level signal as a detection signal is only an example. In fact, the detection signal can be multiple logic signals. The control submodule uses the control type expressed by the multiple logic signals to select the corresponding control method to control the adjustment module.

[0059] In other examples, the detection signal is an analog signal or digital signal that reflects the voltage difference between the voltage of the first detection signal and a preset reference voltage. To this end, the detection submodule includes a differential subcircuit for generating an error signal of the voltage difference between the voltage of the first sampling signal and the preset reference voltage, and outputting a detection signal based on the error signal. Here, the differential subcircuit includes at least an error amplifier, and examples of the error amplifier include but are not limited to: an error amplifier composed of a transconductance and a filter capacitor, an error amplifier including a subtractor, an integrator, a counter, and a digital-to-analog converter, etc. The differential subcircuit may also include an amplifier connected to the output of the error amplifier to amplify the error voltage signal so that the control submodule can perform fine control.

[0060] In fact, depending on whether the received detection signal is a logic signal or an error signal, the control submodule provides a corresponding circuit structure to control at least one of the on-off frequency, on-duration, and off-duration of the regulating module; or to control the frequency of change of the regulating current regulated by the regulating module. In some examples where the detection signal is a logic signal, for example, adjusting the on-off of the regulating module, the control submodule adjusts the duty cycle of the internal PWM signal based on the detection result of the detection signal indicating that the supply voltage is too high or too low, thereby adjusting the ratio of the on-duration to the off-duration of the regulating module, thereby adjusting the supply voltage output by the transformer circuit. In other examples where the detection signal is a logic signal, for example, adjusting the on-off of the regulating module, the control submodule adjusts the on-duration frequency of the regulating module based on the detection result of the detection signal indicating that the supply voltage is too high or too low, thereby adjusting the supply voltage output by the transformer circuit. For example, the control submodule includes an adjustable frequency divider, which is adjusted based on the received detection signal to change the frequency of the control signal, and controls the on-duration frequency of the regulating module based on the control signal with the changed frequency. In some other examples where the detection signal is a logic signal, taking the example of adjusting the current change of the regulation module, the control submodule adjusts the duty cycle of the internal PWM signal based on the detection result of the detection signal indicating that the power supply voltage is too high or too low, wherein the duration of the high and low levels of the PWM signal respectively corresponds to the duration of the regulation module selecting one gating circuit and the other gating circuit. The purpose of stabilizing the power supply voltage output by the voltage conversion circuit is achieved by the current regulation scheme provided in any of the above examples.

[0061] In some examples where the detection signal is an error signal, for example, adjusting the on / off state of the regulating module, the control submodule includes a timer internally. The timer uses the voltage of the detection signal as a reference voltage and times at least one of the durations of the on state and the off state of the regulating module. Then, based on a timeout signal generated at the corresponding timeout moment, the regulating module is controlled to switch between the on state and the off state. The timer is exemplified by a timing circuit including a capacitor and its charging and discharging circuit; or the timer is exemplified by a timing circuit including a clock generator, a counter, and a digital-to-analog converter. In still other examples where the detection signal is an error signal, for example, adjusting the current change of the regulating module, the control submodule adjusts the duty cycle of the internal PWM signal based on the error voltage represented by the detection signal, wherein the durations of the high and low levels of the PWM signal respectively correspond to the durations of the regulating module selecting one gating circuit and the other gating circuit. The current regulation scheme provided by any of the above examples achieves the purpose of stabilizing the power supply voltage output by the transformer circuit.

[0062] Based on the above examples and Figure 2For example, the working process of the transformer circuit and the power management circuit in the power supply circuit is as follows: when the switch circuit is off, the rectifier circuit outputs the rectified electrical signal to the primary input unit 111 in the transformer circuit; using the principle of mutual inductance, the primary and secondary windings in the transformer circuit perform energy conversion, and the secondary output unit 112 in the transformer circuit provides a power supply signal (voltage is Vout1) to the power supply, wherein the detection submodule in the first control module 122 obtains the first sampling signal FB1 sampled by the first sampling circuit 14 for reflecting the power supply, and when the adjustment module 121 is turned on, the error voltage between the voltage of the first sampling signal FB1 and the preset reference voltage is used as the detection signal and output to the control submodule, the control submodule uses the voltage provided by the detection signal as the reference voltage for timing, controls the timer to count the on-time of the adjustment module 121, and controls the adjustment module 121 to turn off and reset the timer when the timing times out; and when the adjustment module 121 is turned off, the timer counts according to the preset fixed time, and controls the adjustment module 121 to turn on and reset the timer when the timing times out. Thereby, the purpose of using the voltage conversion circuit to provide internal power supply for the power supply circuit is achieved.

[0063] In other embodiments, the power management circuit further obtains a third sampling signal reflecting the line electrical signal in the circuit where the primary input unit is located, and controls the current flowing through the primary input unit based on the first sampling signal and the third sampling signal. The first sampling signal reflects the power output information currently provided by the secondary output unit, and the third sampling signal reflects the energy input information currently provided by the primary input unit. The power management circuit controls the current in the circuit where the primary input unit is located based on these two sampling signals, thereby improving the output stability of the power supply. The third sampling signal is acquired by an acquisition device (group) connected to the primary input unit and can be a voltage or current signal.

[0064] In some examples, the power management circuit controls the connection (or disconnection) of the circuit where the primary input unit is located based on the first sampling signal, and controls the disconnection (connection) of the circuit where the primary input unit is located based on the third sampling signal. In other examples, the power management circuit controls the connection of the circuit where the primary input unit is located based on the first sampling signal, and controls the disconnection of the circuit where the primary input unit is located based on the first sampling signal and the third sampling signal.

[0065] For some specific examples, see Figure 3, which is a schematic diagram of the circuit structure of the power supply circuit in another embodiment. The power management circuit includes a regulating module 121 and a second control module 125, and the power supply circuit also includes a third sampling circuit 16. The third sampling circuit 16 collects the voltage or current signal of the circuit where the primary input unit is located. For example, the third sampling circuit 16 includes a controlled switch and a sampling resistor, wherein the input end of the controlled switch is connected to the input end of the regulating module 121, the output end of the controlled switch is grounded through the sampling resistor, and the control end of the controlled switch is connected to the control end of the regulating module 121 to synchronously receive the control of the second control module 125. The regulating module 121 is connected to the aforementioned Figure 2 The circuit structure and execution process of the regulation module 121 shown are the same or similar and will not be described in detail here. The second control module 125 controls the regulation module 121 to be turned on based on the first sampling signal FB1, and controls the regulation module 121 to be turned off based on the first sampling signal FB1 and the third sampling signal CS. In some more specific examples, the second control module 125 controls the on-time of the regulation module 121 based on the first sampling signal, and controls the off-time of the regulation module 121 based on the first sampling signal FB1 and the third sampling signal CS. For example, the second control module 125 adjusts the response time for performing the corresponding on-or-off control operation by adjusting the frequency of the internal clock signal, so as to adjust the corresponding on-time and off-time by changing the response time; and the second control module 125 determines the on-time by detecting the changes in the electrical signals on both sides of the primary input unit and the secondary output unit, that is, by comparing the voltage between the third sampling signal CS and the COMP_CS signal obtained based on the first sampling signal, thereby adjusting the off-time; and the second control module 125 determines the off-time by monitoring the changes in the electrical signal output by the secondary output unit, that is, by comparing the voltage of the first sampling signal FB1 with the preset reference voltage, thereby adjusting the on-time.

[0066] In some other examples, the second control module includes a conduction control subcircuit, a disconnection control subcircuit, and a control logic subcircuit.

[0067] The conduction control subcircuit is used to detect the acquired first sampling signal and obtain a corresponding detection signal, and output a clock signal based on the voltage of the obtained detection signal; wherein the frequency of the clock signal is related to the voltage of the obtained detection signal. The disconnection control subcircuit is used to compare the third sampling signal with the detection signal output by the conduction control subcircuit, and output a logic signal corresponding to the obtained comparison result. The control logic subcircuit is used to control the conduction or disconnection of the regulation module based on the clock signal and the logic signal corresponding to the comparison result. In other words, while maintaining the conduction of the regulation module, the control logic subcircuit monitors the first logic signal for indicating that the regulation module should be disconnected based on the clock signal. The disconnection control subcircuit compares the third sampling signal with the detection signal output by the conduction control subcircuit, and outputs the logic signal corresponding to the obtained comparison result to the control logic subcircuit. Among them, when the logic signal corresponding to the comparison result represents the first logic signal that causes the regulation module to be disconnected, the control logic sub-circuit controls the regulation module to be disconnected based on the first logic signal and the clock signal; when the logic signal corresponding to the comparison result does not represent the first logic signal, the control logic sub-circuit controls the regulation module to be turned on based on the preset second logic signal and the clock signal.

[0068] See also Figure 4 , which shows a schematic diagram of the circuit structure of another embodiment of the power supply circuit, wherein the conduction control subcircuit performs low-pass filtering on the voltage of the acquired first sampling signal FB1 to obtain a detection signal COMP corresponding to the first sampling signal, and outputs a clock signal based on the voltage of the detection signal COMP; wherein the frequency of the clock signal is related to the voltage of the detection signal COMP. The control logic subcircuit uses the clock signal as a clock reference for responding to received logic signals. While maintaining the conduction of the regulation module, the control logic subcircuit monitors the first logic signal indicating the need to disconnect the regulation module based on the clock signal. Simultaneously, the detection signal COMP is either directly output as COMP_CS to the disconnection control subcircuit, or converted into COMP_CS after being processed according to a preset ratio and output to the disconnection control subcircuit. The disconnection control subcircuit outputs a logic signal corresponding to a comparison result of the third sampling signal CS and COMP_CS to the control logic subcircuit; wherein, when the logic signal corresponding to the comparison result represents a first logic signal for disconnecting the regulation module, the control logic subcircuit controls the regulation module to disconnect based on the first logic signal and the clock signal; when the logic signal corresponding to the comparison result does not represent the first logic signal, the control logic subcircuit controls the regulation module to connect based on a preset second logic signal and the clock signal.

[0069] It should be noted that the on / off operation of the aforementioned regulation module can also be replaced by a switching operation between multiple circuits, wherein each circuit is provided with a resistor of a different resistance value, so as to achieve a change in the current flowing through the primary input unit based on the first logic signal and the second logic signal. Detailed description is not provided here.

[0070] See also Figure 5 , which is a schematic diagram of the circuit structure of a power supply circuit in another embodiment, wherein the power management circuit includes a third protection module 124, a regulating module 121, and a second control module 125. The regulating module 121 adjusts the current of the circuit where the primary input unit is located in an on-off manner, which will not be described in detail here.

[0071] The second control module 125" controls the regulating module 121 to be turned on and off. In some examples, Figure 5 The second control module 125" shown can be connected to Figure 4 The second control module 125' is similar to the one shown, except that: Figure 5At least some of the electrical devices in the second control module 125" shown are switched between a non-working state and a working state based on the protection logic signal generated by the third protection module 124. The non-working state includes but is not limited to: a state in which at least some of the electrical devices are controlled by the enable of the protection logic signal and do not respond to the input signal, or a state in which at least some of the electrical devices are controlled by the power supply of the protection logic signal and cannot be powered on and operated. In some more specific examples, at least one of the conduction control subcircuit, the disconnection control subcircuit and the control logic subcircuit in the second control module 125" includes an enable terminal, and receives the protection logic signal through the enable terminal, and the corresponding subcircuit switches between a working state and a non-working state based on whether the protection logic signal is valid or invalid, thereby making the adjustment module controlled to be turned on and off during the period when each subcircuit is in the working state; and the adjustment module 121 is controlled to be disconnected during the period when at least one subcircuit is in the non-working state. For example, the conduction control subcircuit includes an enable terminal and receives a protection logic signal. Under the control of the protection logic signal, when the conduction control submodule is in an operating state, the conduction control subcircuit outputs a clock signal corresponding to the first sampling signal; when the conduction control submodule is in a non-operating state, the conduction control subcircuit does not output a clock signal. For another example, the disconnection control subcircuit includes an enable terminal and receives a protection logic signal. Under the control of the protection logic signal, when the disconnection control subcircuit is in an operating state, the disconnection control subcircuit outputs a corresponding logic signal based on a comparison result between the third sampling signal CS and COMP_CS; when the disconnection control submodule is in a non-operating state, the disconnection control subcircuit maintains outputting the first logic signal indicating that the regulation module should be disconnected. For another example, the control logic sub-circuit includes an enable terminal and receives a protection logic signal. Under the control of the protection logic signal, when the control logic sub-circuit is in a working state, the control logic sub-circuit controls the corresponding disconnection or conduction operation of the regulation module based on the received first logic signal or second logic signal; when the control logic sub-circuit is in a non-working state, the control logic sub-circuit maintains the disconnection of the regulation module.

[0072] The third protection module 124 is used to detect an electrical signal reflecting the power supply signal of the power supply, and provide circuit protection for the power management circuit based on the detection result. The electrical signal reflecting the power supply signal of the power supply can be the first sampling signal FB1, or the detection signal COMP provided by the conduction control subcircuit. The third protection module 124 protects some electrical components in the power management circuit by detecting the first sampling signal FB1 or the detection signal COMP so that the circuit where the primary input unit is located is disconnected during the protection period. Here, the third protection module 124 determines whether the power supply is overvoltage and / or overloaded by detecting the voltage or current of the first sampling signal FB1 or the detection signal COMP, and outputs a protection logic signal corresponding to the detection result. In some examples, when the power supply is lightly loaded, the third protection module 124 detects whether the first sampling signal is higher than a preset overvoltage protection threshold. If so, it outputs a valid first protection logic signal, causing the corresponding sub-circuit in the second control module 125″ to enter a non-operating state based on the valid first protection logic signal. Based on the real-time detection result of the first sampling signal and preset overvoltage reset logic, the third protection module 124 outputs an invalid first protection logic signal, thereby restoring the second control module 125″ to an operating state. Examples of the overvoltage reset logic include at least one of the following: reset logic configured based on the detection result, and reset logic configured based on a preset timing duration. Examples of the reset logic configured based on the detection result include continuously performing signal detection and outputting an invalid first protection logic signal if the detection result changes. Examples of the reset logic configured based on a preset timing duration include starting timing from the time the protection logic signal becomes valid and outputting an invalid first protection logic signal when the timing reaches a preset timing threshold. In some other examples, when the power supply is overloaded, the third protection module 124 detects whether the first sampling signal is lower than a preset overload protection threshold. If so, a valid second protection logic signal is output, so that the sub-circuit in the corresponding second control module 125" is switched to a non-working state based on the valid second protection logic signal; the third protection module 124 outputs an invalid second protection logic signal based on the real-time detection result of the first sampling signal and the preset overload reset logic, thereby restoring the second control module 125" to a working state. Among them, the overload reset logic example includes at least one of the following: a reset logic set based on the detection result, and a reset logic set based on a preset timing duration. Among them, the reset logic set based on the detection result example includes continuously performing signal detection and outputting an invalid second protection logic signal once the detection result changes.An example of the reset logic set based on a preset timing duration includes starting timing from when the protection logic signal is valid, and outputting an invalid second protection logic signal when the timing reaches a preset timing threshold.

[0073] It should be noted that the protection threshold and detection logic set by the third protection module should be related to the signals obtained by the actual circuit structure, and are not limited to the above examples. For example, the third protection module detects the voltage of the detection signal COMP and, when it detects that the voltage of the detection signal COMP is lower than a preset overvoltage protection threshold, determines to output a first protection logic signal, thereby achieving the purpose of placing the chip where the power management circuit is located in a standby state and / or effectively maintaining the power supply capability of the chip. This will not be described in detail here.

[0074] In other examples, the protection logic signal generated by the third protection module controls the regulating module to maintain an off state (not shown). For example, the third protection module is connected to a control terminal of a switch in the regulating module, and when the third protection module outputs the protection logic signal, the corresponding switch remains in an off state.

[0075] In some actual circuits, the power management circuit is in the form of a chip. According to the integration of the chip, please refer to Figure 6 , which shows a schematic diagram of the circuit structure of a power supply circuit in one embodiment. The first self-power supply circuit 15 can be externally connected between the secondary output unit 112 and the power supply pin VCC of the power management circuit 12. Alternatively, at least some components of the first self-power supply circuit are integrated into the chip where the power management circuit is located. For example, the diode and / or voltage divider resistor in the first self-power supply circuit are integrated into the power management circuit. In another example, the first self-power supply circuit is entirely integrated into the chip where the power management circuit is located.

[0076] In practical applications, in order for the power supply circuit provided in any of the above examples to obtain a rectified electrical signal under all circumstances, the aforementioned rectifier circuit must be able to output a rectified electrical signal both when the connected AC power line is on and when it is off. In some examples, the AC line is further provided with a switching circuit and a load. When the switching circuit is on, the AC line forms an AC power circuit, and the load operates based on the AC power supply. In other words, during the on-state period of the switching circuit, the load is in an operating state when the AC power supply reaches an operating voltage. When the switching circuit is off, the AC line cannot form an AC power circuit, and the load cannot operate. In other words, during the off-state period of the switching circuit, the load is in an inoperative state.

[0077] Considering that the actual installation of a smart switch containing the power supply circuit is somewhat arbitrary, this arbitrariness can be reflected in the order in which the switch circuit and the load are connected to the live wire. For example, the switch circuit may be connected to the live wire before the load; in another example, the switch circuit may be connected to the live wire after the load. Therefore, the rectifier circuit is connected to at least the AC line on the input side of the switch circuit. For example, the rectifier circuit is electrically connected to the input terminal of the switch circuit. In another example, the rectifier circuit is electrically connected to both the input terminal and the output terminal of the switch circuit.

[0078] In some embodiments, the rectifier circuit includes at least a first rectifier unit, which is connected to the AC line on the input side of the switching circuit and outputs a first rectified electrical signal, wherein the first rectified electrical signal is provided to the transformer circuit as the aforementioned rectified electrical signal. The first rectifier unit may include, for example, a full-wave rectifier bridge or a half-wave rectifier bridge, and may further include a filter capacitor.

[0079] It should be noted that to ensure that the load does not operate due to the operation of the power supply circuit during the off-state period of the switching circuit, in one example, the conduction voltage of the rectifier bridge in the first rectifier unit is lower than the operating voltage of the load, and the power supply circuit operates within a voltage range where the AC voltage is lower than the operating voltage of the load. In another example, the impedance of the transformer circuit in the power supply circuit is sufficiently large so that the current flowing through the load is insufficient to drive the load.

[0080] During the period when the switch circuit is off, the power supply circuit described in any of the above examples can provide stable power to the power supply. Figure 2 For example, the first rectifier unit rectifies the alternating current and outputs a first rectified electrical signal (i.e., the rectified electrical signal in the figure), which flows into the primary input unit in the transformer circuit. Initially, the controlled switch in the regulation module is in the on state, so that the first rectified electrical signal flows through the primary input unit and flows to the voltage ground. In this way, the primary input unit and the secondary output unit generate an induced current using mutual inductance. The induced current is processed by the secondary output unit and output to the power supply. At the same time, the first sampling circuit samples the power supply signal output by the secondary output unit and returns it to the first control module in each power management circuit in the form of a first sampling signal. The first control module compares the voltage of the first sampling signal with the preset reference voltage. If the voltage of the first sampling signal is greater than the preset reference voltage, the on-off frequency of the controlled switch in the regulation module is controlled. Otherwise, the on-off frequency of the controlled switch in the regulation module is maintained.

[0081] by Figure 3For example, the first rectifier unit rectifies the alternating current and outputs a first rectified electrical signal (i.e., the rectified electrical signal in the figure), which flows into the primary input unit in the transformer circuit. Initially, the controlled switch in the regulation module is in the on state, so that the first rectified electrical signal flows through the primary input unit and flows to the voltage ground. In this way, the primary input unit and the secondary output unit generate an induced current using mutual inductance. The induced current is output to the power supply through the processing of the secondary output unit. At the same time, the first sampling circuit samples the power supply signal output by the secondary output unit and returns it to the second control module in each power management circuit in the form of a first sampling signal. The conduction control subcircuit in the second control module performs low-pass filtering on the voltage of the acquired first sampling signal to obtain a detection signal COMP corresponding to the first sampling signal, and outputs a clock signal based on the voltage of the detection signal COMP; wherein the frequency of the clock signal is related to the voltage of the detection signal COMP. The clock signal serves as a clock reference for the control logic subcircuit in the second control module to respond to received logic signals. While maintaining the regulation module on, the control logic subcircuit monitors, based on the clock signal, a first logic signal indicating that the regulation module should be disconnected. Simultaneously, the detection signal COMP is directly output to the disconnection control subcircuit as COMP_CS, or converted to COMP_CS after processing according to a preset ratio and output to the disconnection control subcircuit. The disconnection control subcircuit outputs a logic signal corresponding to a comparison result between the third sampling signal CS and COMP_CS to the control logic subcircuit. When the logic signal corresponding to the comparison result indicates the first logic signal indicating that the regulation module should be disconnected, the control logic subcircuit controls the regulation module to be disconnected based on the first logic signal and the clock signal. When the logic signal corresponding to the comparison result does not indicate the first logic signal, the control logic subcircuit controls the controlled switch in the regulation module to be on based on a preset second logic signal and the clock signal.

[0082] by Figure 5 For example, the first rectifier unit rectifies the alternating current and outputs a first rectified electrical signal (i.e., the rectified electrical signal in the figure), which flows into the primary input unit in the transformer circuit. Initially, the controlled switch in the regulation module is in the on state, so that the first rectified electrical signal flows through the primary input unit and flows to the voltage ground. In this way, the primary input unit and the secondary output unit generate an induced current using mutual inductance. The induced current is processed by the secondary output unit and output to the power supply. At the same time, the first sampling circuit samples the power supply signal output by the secondary output unit, and returns it to the second control module and the third protection module in each power management circuit in the form of a first sampling signal. The third sampling circuit samples the electrical signal of the primary input unit, and returns it to the second control module in each power management circuit in the form of a third sampling signal.

[0083] The working process of the second control module is as follows: Figure 4 The above will not be repeated here. The third protection module determines whether the power supply is overvoltage and / or overloaded by detecting the first sampling signal, and outputs a protection logic signal corresponding to the detection result. At least one of the conduction control subcircuit, the disconnection control subcircuit and the control logic subcircuit in the second control module 125" includes an enable terminal, and receives the protection logic signal through the enable terminal. The corresponding subcircuit switches between the working state and the non-working state based on whether the protection logic signal is valid or invalid, thereby making the adjustment module controlled to be turned on and off during the period when each subcircuit is in the working state; and the adjustment module 121 is controlled to be disconnected during the period when at least one subcircuit is in the non-working state.

[0084] To enable the power management circuit to quickly start up while the switch circuit is disconnected, in some practical circuits, the power circuit also includes a startup power supply circuit for providing startup power to the power management circuit. This startup power supply includes providing a reference voltage, a chip startup voltage, and other information to the power management circuit. In some examples, the startup power supply circuit includes a capacitor and a charging unit for the capacitor. The charging unit utilizes the varying voltage of the rectified electrical signal provided by the rectifier circuit to generate a charging power supply that charges the capacitor until the capacitor is charged and reaches the startup voltage, thereby achieving chip startup and other purposes. During the disconnection period of the switch circuit, the power management circuit relies on the power supply provided by the transformer circuit to perform corresponding control operations. For example, the control circuit utilizes the power provided by the power supply to continuously monitor whether control information has been received in order to control the conduction of the switch circuit. In another example, during the disconnection period of the switch circuit, the control circuit utilizes the power provided by the power supply to continuously monitor whether control information has been received in order to output a control signal to a pre-configured air conditioner according to the air conditioner and temperature indicated in the control information.

[0085] During the on-state period of the switching circuit, in order for the rectifier circuit, such as the aforementioned first rectifier unit, to continuously receive AC power and provide a rectified electrical signal, in some embodiments, the switching circuit can be connected to the neutral line of the AC power line via an impedance device. Thus, the rectifier circuit can obtain the divided AC signal via the impedance device.

[0086] In some other embodiments, the power supply circuit further includes a selection circuit. The selection circuit is connected to the AC line on the output side of the switching circuit and is configured to select whether to connect the switching circuit to the first line or the second line during the on-state of the switching circuit, thereby forming a corresponding power-on loop. The rectifier circuit is provided on the second line, and when the voltage of the AC power flowing through the switching circuit reaches the turn-on voltage of the rectifier bridge in the rectifier circuit, the power-on loop of the second line is turned on.

[0087] See also Figure 7 , which shows a schematic diagram of the circuit structure of the power circuit, the switch circuit, and the load during the conduction period of the switch circuit. Specifically, when the selection circuit 21 selects to connect the switch circuit 31 to the second line, the load 32, the switch circuit 31, the rectifier circuit 32 (such as the first rectifier unit), and the power management circuit 23 form a power-on loop. In other words, the AC signal flows to the voltage ground via the load 32, the switch circuit 31, the rectifier circuit 32 (such as the first rectifier unit), and the power management circuit 23. When the selection circuit 21 selects to connect the switch circuit 31 to the first line, the load 32, the switch circuit 31, and the city power grid form another power-on loop. In other words, the AC signal flows to the voltage ground in the city power grid via the load 33, the switch circuit 31, and the selection circuit 21.

[0088] Here, to distinguish it from the first rectified electrical signal mentioned above, the rectified electrical signal received during the conduction period of the switch circuit is now referred to as the second rectified electrical signal. The selection circuit selects to connect the switch circuit to the second line within a preset reference voltage range of the alternating current, and to connect the switch circuit to the first line outside the reference voltage range. The reference voltage range can be determined based on the actual circuit design. For example, to ensure the normal operation of the load, the reference voltage range is selected as a voltage range outside the load operating voltage range, including but not limited to: a zero-crossing voltage range, a peak voltage range, or other voltage ranges. Taking an LED lamp as an example of a load, the reference voltage range is selected as a zero-crossing voltage range.

[0089] In one example, the selection circuit includes a switch unit M1, wherein the switch unit M1 is arranged on the AC line where the switch circuit is located. The switch unit M1 is used to be controlled to be turned on or off based on the received shunt control signal, so as to at least immediately respond to the switching operation of switching the switch circuit from accessing the second line to accessing the first line. Here, the switch unit is controlled to be turned off based on the received shunt control signal, so that the switch circuit is immediately or delayed to access the second line, and is controlled to be turned on based on the shunt control signal, so that the switch circuit is immediately connected to the first line. In some examples, an on-off control device is further provided inside the selection circuit, which generates a shunt control signal by detecting the phase of the AC power and outputs it to the switch unit M1. In other examples, the shunt control signal is output to the switch unit by the power management circuit. The switch unit M1 includes a power tube, wherein the control end of the power tube is used to receive a shunt control signal, and the shunt control signal is a voltage signal. When the shunt control signal indicates that the switch unit is turned on, the power tube is turned on, so that the load and the switch circuit are connected to the neutral line via the first line, and the load and the switch circuit are connected between the live wire and the neutral line of the AC power; when the shunt control signal indicates that the switch unit is turned off, the power tube is turned off, so that the load and the switch circuit are connected to the voltage ground in the power management circuit via the second line, and the load and the switch circuit are connected between the live wire and the voltage ground.

[0090] To maximize the efficiency of active power utilization of the AC power, the structure of the selection circuit is related to the rectifier circuit, load, and other components in this application. Taking the example of a full-wave rectifier circuit, when the AC power phase falls within a preset phase interval, the selection circuit immediately selects the second circuit based on a time-sharing control signal. Furthermore, when the AC power phase exceeds the phase interval, the selection circuit immediately selects the first circuit based on the time-sharing control signal. Still taking the example of a full-wave rectifier circuit, when the power supply voltage falls within a preset reference voltage interval, the selection circuit immediately selects the second circuit based on the time-sharing control signal. Otherwise, the selection circuit immediately selects the first circuit based on the time-sharing control signal.

[0091] According to the actual circuit structure of the rectifier circuit and power management circuit, please refer to Figure 8 , which shows a circuit diagram of a power supply circuit in one embodiment, wherein the selection circuit 21 further includes a phase limiting unit. For example, the rectifier circuit is a half-wave rectifier circuit, and the phase limiting unit forces the AC signal in the negative half-cycle of the power frequency cycle to flow through the first line.

[0092] Here, the phase limiting unit can be formed by a separate electrical component or provided by a parasitic diode in a semiconductor device within the switch unit M1. In some examples, the phase limiting unit is a separate electrical component connected in parallel with the switch unit and is configured to, when the switch unit is disconnected, delay or immediately switch the switching circuit from the first line to the second line, depending on the current phase of the AC power. The phase limiting unit includes a diode D1 connected in parallel with the switch unit M1, with its cathode connected to the live line and its anode connected to the neutral line. When the switch unit M1 is turned on, the switch circuit and the load are connected between the live wire and the neutral wire of the AC power through the conductive connection of the switch unit M1, and the diode D1 is short-circuited. In other words, the selection circuit 21 is connected to the first circuit; when the switch unit M1 is turned off, within half the power frequency cycle in the phase range of -180 to 0 within the same power frequency cycle, the diode D1 is turned on and the switch circuit and the load are connected between the live wire and the neutral wire of the AC power. In other words, the selection circuit 21 is maintained in the first circuit; when the switch unit M1 is turned on and the diode D1 is turned off, the selection circuit switches from the first circuit to the second circuit, and as the phase of the AC power changes, the voltage difference across the rectifier circuit in the second circuit is greater than its conduction voltage, and the second circuit is turned on.

[0093] As can be seen from the above example, if the phase of the AC power falls within the negative half-cycle (-180-0 degrees) of the power frequency cycle when the switch unit is disconnected, the selection circuit delays switching to the second circuit until the AC power phase enters the positive half-cycle (0-180 degrees) of the power frequency cycle, and the second circuit is turned on when the AC power voltage reaches the turn-on voltage of the rectifier bridge in the rectifier circuit. If the phase of the AC power falls within the positive half-cycle (0-180 degrees) of the power frequency cycle when the switch unit is disconnected, the selection circuit immediately switches to the second circuit, and the second circuit is turned on when the AC power voltage reaches the turn-on voltage of the rectifier bridge in the rectifier circuit.

[0094] It should be noted that, depending on the selection of electrical components such as the rectifier circuit, the selection circuit, and the power management circuit, such as the operating voltage of semiconductor devices such as diodes and power transistors, when the selection circuit switches between the first and second circuits, the operating voltage of the corresponding semiconductor devices may limit the switching of the corresponding circuits, which may result in the corresponding circuits being momentarily non-conductive. For example, if the voltage of the AC signal corresponding to phases of 0, -180, 180 degrees, and near these phases cannot reach the operating voltage of the diode, the selection circuit should be deemed to have selected the first or second circuit, and the corresponding circuit is only in a non-conductive state at the corresponding moment. However, this does not affect the technical concept of the present application, which is to achieve stable power supply output by the power management circuit by time-sharing AC power. Similarly, when the selection circuit switches between the first and second circuits, the operating voltage of the corresponding semiconductor devices, the charging and discharging of parasitic capacitance, etc. may cause the switching operation of the first and second circuits in the actual circuit to be inconsistent with the instantaneous situation in the above example, such as the first and second circuits being both conductive or both disconnected. This also does not affect the technical concept of the present application, which is to achieve stable power supply output by the power management circuit by time-sharing AC power. It will not be repeated later.

[0095] In some examples, to obtain an AC signal within a preset AC phase interval to obtain a second rectified electrical signal, the power supply circuit further includes: a second sampling circuit, and the power management circuit includes a shunt control module.

[0096] The second sampling circuit is used to sample the electrical signal in the second circuit that reflects the AC signal or to sample the power supply signal of the power supply to generate a second sampling signal and output it to the power management circuit. In some examples, the second sampling circuit directly samples the AC signal to obtain the second sampling signal, and provides the second sampling signal to the shunt control module. In other examples, the second sampling circuit 25 includes first voltage divider resistors R21 and R22 arranged between the second rectified electrical signal output terminal of the rectifier circuit and the voltage ground. The second sampling circuit 25 may also include second voltage divider resistors R23 and R24 connected in parallel with the voltage divider resistor R22. In some other examples, the second sampling circuit collects the power supply signal from the power supply side and provides the obtained second sampling signal to the power management circuit.

[0097] See also Figure 9, which shows a schematic diagram of the circuit structure of the power supply circuit in one embodiment, wherein the second sampling circuit may be fully or partially integrated into the chip containing the power management circuit. For example, the first voltage-dividing resistors R21 and R22 in the second sampling circuit 25 are externally connected between the rectifier circuit 32 and the chip via chip pin FB2, and provide a first voltage-divided signal of the second rectified electrical signal to the chip pin FB2. The second voltage-dividing resistors R23 and R24 in the second sampling circuit are integrated into the chip and further divide the first voltage-divided signal via pin FB2 to obtain a second sampling signal, which is provided to the shunt control module within the chip.

[0098] The shunt control module is connected to the selection circuit and is configured to detect an AC signal or a power supply signal from the power supply during the on-state period of the switching circuit and output a shunt control signal to the selection circuit to control the selection circuit to switch between the first and second paths. Depending on the location sampled by the second sampling circuit, in some examples, the second sampled signal represents a power supply signal, and the shunt control module can detect the voltage of the power supply signal by detecting the voltage of the second sampled signal. In other examples, the second sampled signal represents an AC signal, and the shunt control module can detect the voltage of the corresponding phase of the AC signal by detecting the voltage of the second sampled signal. In yet other examples, the second sampling circuit collects the power supply signal from the power supply and provides the obtained second sampled signal to the power management circuit. For example, the second sampled signal can come from the power pin of a CPU chip that operates with power provided by the power supply, and the second sampled signal can indirectly reflect the power supply signal provided by the power supply by using the standard power supply signal of the powered electrical device. Depending on the actual design of the sampling circuit that collects the second sampled signal, the second sampled signal can be a voltage signal or a current signal. For example, a current sampling device is used to sample the current output by the power management circuit to obtain a current signal, i.e., a second sampling signal; the current or voltage output by the power management circuit is controlled based on the second sampling signal; or, when appropriate, a current-to-voltage device is used to convert the second sampling signal into a voltage signal, and the voltage signal is used to control the current or voltage output by the power management circuit. For another example, a voltage sampling device is used to sample the voltage output by the power management circuit to obtain a voltage signal, i.e., a second sampling signal; the current or voltage output by the power management circuit is controlled based on the second sampling signal; or, when appropriate, a voltage-to-current device is used to convert the second sampling signal into a current signal, and the current or voltage output by the power management circuit is controlled based on the second sampling signal.

[0099] Taking the example that the shunt control module can detect the phase of the AC signal by detecting the voltage of the second rectified electrical signal, the selection circuit is connected to the second circuit by default, and the rectifier circuit outputs a full-wave rectified electrical signal. When the shunt control module detects that the voltage of the second rectified electrical signal exceeds the reference voltage range, it outputs a shunt control signal to control the selection circuit to switch from the second circuit to the first circuit; at the same time, a timing is started, and after the timing reaches a timing threshold, the shunt control module adjusts the shunt control signal to control the selection circuit to switch from the first circuit to the second circuit. The timing threshold is related to the duration of the output module maintaining the power supply voltage, the AC power frequency cycle, etc. For example, the transformer circuit and the power management circuit maintain the power supply voltage for t milliseconds based on the received second rectified electrical signal within the reference voltage range, and the timing threshold can be less than or equal to t milliseconds. For another example, the timing threshold is less than half a power frequency cycle to take into account the zero-crossing detection needs of the zero-crossing detection circuit mentioned later.

[0100] Combine Figure 8 The selection circuit shown in the figure, the selection circuit 21 is connected to the second circuit by default, and the rectifier circuit outputs a half-wave rectifier signal. When the shunt control module 233 detects that the voltage of the second sampling signal exceeds the reference voltage range, it outputs a shunt control signal to control the switch unit M1 to be turned on, that is, the selection circuit switches from the second circuit to the first circuit; and after a delay, the shunt control module 233 adjusts the shunt control signal to disconnect the switch unit M1. At the time when the switch unit M1 is disconnected, if the AC power is in the negative half cycle (-180-0 degrees), then from the disconnection time to the negative half cycle During the time interval from the end of the period, the phase limiting unit is used to keep the switching circuit connected to the first line. During this period, the voltage of the second rectified electrical signal detected by the shunt control module 233 does not exceed the reference voltage range until the AC phase enters the positive half cycle (0-180 degrees), and the selection circuit switches to the second line; when the voltage difference across the rectifier bridge in the rectifier circuit is greater than its conduction voltage, the second line is turned on, and at this time the voltage of the second sampling signal begins to change, and when the voltage exceeds the reference voltage range, the shunt control module 233 controls the switch unit M1 to turn on again.

[0101] like Figure 9As shown, the branch control module 233 includes a comparison subcircuit and a control subcircuit. The comparison subcircuit is used to compare the voltage of the second sampling signal with the reference voltage interval and generate a corresponding comparison result. The voltage interval may include upper and lower voltage thresholds, or only include an upper voltage threshold (or a lower voltage threshold). Taking the reference voltage interval as a zero-crossing voltage interval as an example, the lower voltage threshold is zero voltage or a voltage value close to zero voltage, and the upper voltage threshold is a reference voltage Vref3. When the comparison subcircuit detects that the voltage of the second sampling signal is higher than Vref3, the detection signal (such as a high level) output by the comparison subcircuit indicates that the voltage of the second rectified electrical signal exceeds the zero-crossing voltage interval; when the voltage of the second sampling signal is detected to be lower than or equal to Vref3, the detection signal (such as a low level) output by the comparison subcircuit indicates that the voltage of the second sampling signal is within the zero-crossing voltage interval.

[0102] The control subcircuit is connected to the comparison subcircuit, and is used to output the shunt control signal based on the comparison result to control the selection circuit to switch from the second circuit to the first circuit, even if the switch circuit is connected to the first circuit or the second circuit. Wherein, the control subcircuit includes a logic device (group), which outputs a shunt control signal based on the control logic set by the received detection signal. Wherein, the logic device (group) includes but is not limited to: logic gates, triggers, etc. For example, when the control subcircuit receives a high-level signal, it outputs a shunt control signal that causes the selection circuit to switch from the second circuit to the first circuit according to the preset control logic. Figure 6 As shown, taking the switching unit M1 in the selection circuit including an N-type power tube as an example, when the branch control signal output by the control subcircuit through the pin GATE is a high-level signal, it indicates that the N-type power tube is disconnected, and the selection circuit switches from the second circuit to the first circuit.

[0103] The control subcircuit also includes a timer, which is controlled by the detection signal output by the comparison subcircuit. When the detection signal indicates that the voltage of the second rectified electrical signal exceeds the reference voltage interval, the timer is started, and when the timed duration reaches a timing threshold, a timeout detection signal is output. The logic device (group) in the control subcircuit adjusts the branch control signal based on the detection signal output by the comparison subcircuit and the control logic of the timeout detection signal, so that the selection circuit switches from the first circuit to the second circuit. Figure 9The example shown and the switch unit M1 include an N-type power transistor. When the branch control signal changes from a high level to a low level, the N-type power transistor is turned on, and the selection circuit 21 switches from the first line to the second line during the positive half-cycle of the AC power. Similar to the timing threshold described above, the timing threshold can be a fixed time threshold or set based on the duration that the selection circuit selects the first line within at least one switching cycle. Here, the switching cycle refers to the duration that the selection circuit experiences a switch from the first line to the second line, and then from the second line to the first line.

[0104] When the selection circuit 21 switches to the second line, the rectifier circuit outputs a second rectified electrical signal. Thus, the voltage conversion circuit (111 and 112) and the power management circuit 12 can provide power to the power supply via the received second rectified electrical signal. The circuit structure and operating process of the voltage conversion circuit and the power management circuit can be the same as any of the examples mentioned above and will not be described in detail here.

[0105] In another example, to improve the accuracy of timer timing, the control subcircuit further includes a timer controller for monitoring the time t' required from the time switch unit M1 turns on until the selection circuit switches to the second line, storing the time t', and adjusting the delay timing duration based on at least one of the monitored time t's. The timer controller includes at least a latch, a logic device (group), and a timer resetter. The logic device (group) includes, but is not limited to, at least one of the following or a combination of a comparator, a gate device, an amplifier, an adder, and a subtractor. For example, the timer starts timing using the branch control signal that turns on the switch unit M1 as a trigger signal. The timer ends timing when the rectifier circuit turns on, and the current timer time t' is stored in the latch as a timing reference threshold for the next cycle. For another example, the timer duration (i.e., the time interval between the time switch unit M1 turns on and the time rectifier circuit turns on) over multiple cycles is detected, and the timing reference threshold for the subsequent cycle is calculated based on the time durations of the multiple cycles.

[0106] In other examples, in order to prevent the voltage of the received rectified electrical signal from being too high when the selection circuit switches to the second circuit, which may easily cause damage to the devices within the power management circuit and the devices powered by the power supply, the power management circuit also includes a first protection module for detecting the voltage of the second sampling signal and controlling the selection circuit to switch from the second circuit to the first circuit when the voltage of the second sampling signal is higher than a preset protection voltage threshold.

[0107] See also Figure 10, which shows a schematic diagram of the structure of a power management circuit in another embodiment. The first protection module 234 is connected in parallel with the branch control module 233 and detects the voltage of the second sampling signal. Here, the first protection module 234 can directly compare the voltage of the second sampling signal with a preset protection voltage threshold, or divide or amplify the second sampling signal and then compare it with the protection voltage threshold. When the voltage of the second sampling signal is higher than the preset protection voltage threshold, the selection circuit is controlled to switch from the second circuit to the first circuit. The protection voltage threshold is higher than or equal to the voltage upper limit of the aforementioned reference voltage range.

[0108] For example, the first protection module 234 includes a comparator A5 and a controlled switch M5; wherein the controlled switch M5 is connected between the control terminal of the selection circuit and a preset voltage. One input terminal of the comparator A5 receives the second sampling signal, and the other input terminal receives the protection voltage threshold. The output terminal of the comparator A5 is connected to the control terminal of the controlled switch M5. When the comparator A5 detects that the voltage of the second sampling signal is higher than the protection voltage threshold, the controlled switch M5 is controlled to be turned on, and the voltage at the control terminal of the selection circuit 21 is forcibly set to the preset voltage. As a result, the selection circuit is forced to switch to the first line, that is, the switching circuit, the load, and the neutral line form a power-on loop. At the same time or with a slight delay, the shunt control module also outputs a shunt control signal that causes the selection circuit to switch to the first line and maintains the shunt control signal for a delay period. When the comparator A5 detects that the voltage of the second sampling signal is not higher than the protection voltage threshold, the controlled switch M5 is controlled to be turned off. The voltage at the control terminal of the selection circuit is determined by the voltage output by the shunt control module. As a result, the selection circuit switches between the first line and the second line according to the control of the shunt control module.

[0109] In some other examples, the power management circuit also includes a second protection module 231 for providing overcurrent protection for the power supply. For example, the second protection module includes a protection resistor arranged between the rectifier circuit and the output end of the power supply, and a comparator OCP for detecting the voltage difference across the protection resistor. When the comparator OCP detects that the voltage difference across the protection resistor exceeds the preset protection voltage threshold, it determines that an abnormality has occurred and outputs an overcurrent protection detection signal. The overcurrent protection detection signal is used to control the forced disconnection of the switch circuit. For example, the overcurrent protection detection signal is output to a control circuit in the intelligent switch that is powered by the power supply, and the control circuit controls the disconnection of the switch circuit. The second protection module can also be composed of other circuits including transistors and / or triodes, which are not listed one by one here.

[0110] In order to enable the rectifier circuit to continuously obtain alternating current and provide a rectified electrical signal, in some further embodiments, the rectifier circuit includes a first rectifier unit (i.e., the first rectifier unit mentioned in any of the aforementioned examples) specifically for providing a rectified electrical signal during the period when the switch circuit is disconnected, and a second rectifier unit specifically for providing a rectified electrical signal during the period when the switch circuit is on. The second rectifier unit is connected to the output side of the switch circuit. Depending on the actual circuit design, the second rectifier unit can perform full-wave rectification or half-wave rectification. In this way, in order to prevent the first rectifier unit and the second rectifier unit from both outputting rectified electrical signals during the period when the switch circuit is on, the first rectifier unit and the second rectifier unit can use rectifier bridges with different conduction voltages. For example, the conduction voltage of the rectifier bridge in the first rectifier unit is higher than the conduction voltage of the rectifier bridge in the second rectifier unit.

[0111] Correspondingly, the power supply circuit further includes an output module that continues to provide power to the power supply during the on-state of the switch circuit, and is used to continue to supply power based on the received second rectified electrical signal. To this end, in some examples, the output module can directly output the second rectified electrical signal to the power supply according to the voltage range of the second rectified electrical signal output by the rectifier circuit. For example, the output module is a wire. In other examples, see Figure 11 , which is a schematic diagram of the circuit structure of a power supply circuit in another embodiment. The output module 232 includes at least one of a filter capacitor and a voltage divider resistor to match the voltage of the provided power supply signal with the power supply voltage required by the power supply.

[0112] The power supply circuit may include Figure 9-10 And the corresponding selection circuit and branch control module. Figure 11 Take as an example and combine Figure 12As shown in the circuit waveform diagram, the working process of the power supply circuit during the conduction period of the switch circuit is exemplified as follows: the selection circuit 21 connects the switch circuit 31 to the second line by default to provide an AC signal to the second rectifier unit, the second rectifier unit outputs a second rectified electrical signal, and the second sampling circuit 25 samples the second rectified electrical signal and outputs a second sampling signal; the comparison subcircuit in the shunt control module 233 compares whether the voltage of the second sampling signal falls within a preset zero-crossing voltage interval, and if so, outputs a level signal to the control subcircuit, and the control subcircuit correspondingly outputs a shunt control signal for maintaining the selection circuit connected to the second line. During this period, the output module 232 converts the voltage of the second rectified electrical signal into a power supply voltage , until the comparison sub-circuit compares the voltage of the second sampling signal and finds that it exceeds the zero-crossing voltage interval; when the voltage of the second sampling signal exceeds the zero-crossing voltage interval, the comparison sub-circuit outputs another level to the control sub-circuit. On the one hand, the control sub-circuit adjusts the voltage of the shunt control signal (the voltage output by the Gate pin) to control the selection circuit 21 to switch from the second circuit to the first circuit, so that the second rectified electrical signal is phase-cut. On the other hand, the delay timing is started, and when the delay timing times out, the voltage of the shunt control signal is adjusted to a high level, so that the rectifier circuit outputs the second rectified electrical signal to the output module, and the second sampling circuit 21 continues to output the second sampling signal to the comparison sub-circuit, and the above process is repeated.

[0113] In an embodiment where the power management circuit includes an output module and a branch control module, and the power circuit further includes a selection circuit, Figure 11 As shown, the power management circuit may also include Figure 10 The corresponding first protection module 234 is connected in parallel with the shunt control module 233. When the voltage of the second sampling signal provided by the output terminal of the second sampling circuit exceeds the preset protection voltage threshold, the first protection module 234 controls the selection circuit 21 to switch from the second circuit to the first circuit. At the same time or with a slight delay, the shunt control module 233 controls the selection circuit 21 to switch from the second circuit to the first circuit and maintain the time duration. This will not be described in detail here.

[0114] In embodiments where the power management circuit includes an output module, the power management circuit may further include a second protection module 231 for providing overcurrent protection for the power supply. For example, the second protection module 231 may include a protection resistor disposed between the rectifier circuit and the output terminal of the power supply, and a comparator (OCP) for detecting a voltage differential across the protection resistor. When the comparator (OCP) detects that the voltage differential across the protection resistor exceeds a preset protection voltage threshold, it determines an abnormality and outputs an overcurrent protection detection signal. This will not be further described here.

[0115] To prevent instantaneous current interruption or current backflow caused by the power supply switching from off to on in the switching circuit, diodes are provided at the output end of the secondary output unit and the output end of the output module. One diode is connected between the output end of the secondary output unit and the power supply; the other diode is connected between the output end of the output module and the power supply. A storage circuit is also provided on the power supply side to discharge energy at the moment of switching, thereby achieving uninterrupted power supply. Because the electrical components used by the aforementioned power management circuit during the off-state period of the switching circuit include active electrical components or electrical components that require continuous power for signal processing, the power management circuit itself is also powered by the power supply of the transformer circuit. The power circuit also includes a second self-powered circuit for supplying power to the power management circuit during the on-state period of the switching circuit. In some examples, for example, the second self-powered circuit can be a wire connected between the power supply and the power supply end of the power management circuit. For another example, depending on the actual operating voltage of the power management circuit, the second self-powered circuit may further include at least one of a voltage divider resistor and a low-dropout linear regulator, connected between the output of the power supply and the power supply of the power management circuit. In other examples, the input of the second self-powered circuit is connected to an AC power line via a second circuit, or to the output of a rectifier circuit, or to the output of the power supply, and the output of the second self-powered circuit is electrically connected to the power supply of the power management circuit.

[0116] It should be noted that the above examples of output modules are not mutually exclusive and can be used in combination depending on the actual circuit design. Furthermore, based on circuit optimization principles, the electrical components mentioned in the above examples can also take into account the corresponding functions of the rectifier circuit and other circuit units in the intelligent switch. For example, the filter capacitor can be shared with the capacitor in the rectifier circuit. Those skilled in the art should understand the electrical components described in the examples of this application based on the role they play in the circuit structure.

[0117] In some practical applications, when the load is powered on or off in the peak area of ​​the AC voltage, the semiconductor devices and switching circuits in the load are easily broken down due to the instantaneous high voltage, causing damage to the load. Therefore, a zero-crossing detection circuit is also integrated in the power supply circuit mentioned in the present application, which is used to detect the phase of the current AC signal based on the zero-crossing phase interval and output a zero-crossing detection signal; the zero-crossing detection signal is used to provide the time information of the AC near the zero phase, and other circuits connected to the power supply circuit and powered by the power supply circuit can perform load control operations based on the zero-crossing detection signal. For example, the power supply circuit provides power to a control circuit, and the control circuit also receives the zero-crossing detection signal. The control circuit controls the switching circuit to be turned on or off based on the zero-crossing detection signal and after receiving a control information. Wherein, the control signal information can be obtained based on the control logic processing of at least one logic signal. The source of the logic signal includes, but is not limited to, a signal generated based on an on / off command issued by a wireless device such as a remote control or a smart terminal, a signal generated based on a mechanical on / off operation, an electrical signal generated by a touch panel, a signal generated based on detecting the zero-crossing detection signal, or a signal generated by another device such as a timer. The control circuit outputs the control signal based on preset control logic for at least one of the above logic signals, and the manner in which the control circuit outputs the control signal will be described below with examples.

[0118] Here, the zero-crossing detection circuit can be connected to the rectifier circuit to detect the zero-crossing phase of the current AC power by detecting the zero-crossing phase of the acquired rectified electrical signal. The zero-crossing detection circuit can directly detect whether the voltage of the received rectified electrical signal conforms to the zero-crossing voltage interval corresponding to the zero-crossing phase interval, or perform the voltage detection after sampling the rectified electrical signal; when the detected voltage falls within the zero-crossing voltage interval, a zero-crossing detection signal is output. The zero-crossing detection circuit can be separately configured outside the chip where the power management circuit is located, or at least partially integrated into the chip.

[0119] In some embodiments, the zero-crossing detection circuit performs zero-crossing detection of the AC power during the period when the switch circuit is disconnected. The zero-crossing detection signal provided during this period can be used to prevent the load from being connected to the AC power voltage peak interval at the moment the switch circuit is turned on. To this end, the zero-crossing detection circuit includes a first zero-crossing detection unit. The first zero-crossing detection unit is configured to detect whether the first detection signal reflecting the current AC power phase falls within the zero-crossing phase interval during the period when the switch circuit is disconnected, and to output a zero-crossing detection signal.

[0120] In some examples, the first zero-crossing detection unit obtains a first detection signal by collecting a rectified alternating current signal, detects whether the first detection signal falls within a zero-crossing phase interval, and outputs a zero-crossing detection signal. Specifically, the first detection signal may be sampled from the first rectified electrical signal. For example, the first zero-crossing detection unit includes a sampling resistor connected to a rectifier circuit, and a first detection signal capable of describing voltage changes of the first rectified electrical signal in real time is obtained by voltage division processing of the sampling resistor.

[0121] In other examples, in order to enable the first zero-crossing detection unit to obtain a rectified electrical signal with a more significant waveform, the first zero-crossing detection unit directly obtains the AC signal on the AC line during the period when the switching circuit is disconnected, and obtains a first detection signal that can reflect the first rectified electrical signal, and then outputs a corresponding zero-crossing detection signal by detecting the voltage of the first detection signal.

[0122] Here, the zero-crossing detection signal is generated based on the comparator in the first zero-crossing detection unit. One input end of the comparator receives the first detection signal, and the other input end receives the voltage upper limit of the zero-crossing voltage interval. When the voltage of the first detection signal is lower than the voltage upper limit, the zero-crossing detection signal is output. The zero-crossing detection signal is a logic signal, and the comparison result of the comparator is represented by high and low levels. For example, when the voltage of the first detection signal is lower than or equal to the voltage upper limit, the comparator outputs a high level, that is, the zero-crossing detection signal indicates that the phase of the current rectified electrical signal is near zero phase; when the voltage of the first detection signal is higher than the voltage upper limit, the comparator outputs a low level, that is, the zero-crossing detection signal indicates that the phase of the current rectified electrical signal is not near zero phase. The subsequent logic unit can provide corresponding detection logic based on the logic expressed by the high and low levels of the zero-crossing detection signal and output the zero-crossing detection signal.

[0123] In order to reduce the internal friction of the zero-crossing detection circuit, the first zero-crossing detection unit provided in the present application can detect the phase of the first detection signal at intervals and output a zero-crossing detection signal corresponding to the zero-crossing phase interval. Here, the first zero-crossing detection unit can sample the first rectified electrical signal or AC signal at a sampling interval that is less than the variation period of the rectified electrical signal to obtain a first detection signal, and output a corresponding zero-crossing detection signal by detecting the voltage of the first detection signal sampled at intervals. Alternatively, the first zero-crossing detection unit uses a detection interval that is less than the variation period of the rectified electrical signal to perform interval voltage detection on the first detection signal sampled in real time and output a corresponding zero-crossing detection signal. The purpose of using a sampling interval or detection interval that is less than the variation period of the rectified electrical signal is to ensure that the first zero-crossing detection unit can obtain the first detection signal corresponding to the first rectified electrical signal or AC signal within the zero-crossing voltage interval. For example, the sampling interval or detection interval is set using the power frequency period of the AC power.

[0124] To do this, see Figure 13 , which is a schematic diagram of the circuit structure of the first zero-crossing detection unit. The first zero-crossing detection unit 41 includes a first detection signal generating module and a first zero-crossing detection module 413.

[0125] The first detection signal generating module generates a first detection signal corresponding to the current AC power phase at intervals; wherein the first detection signal at least reflects the AC power signal within the zero-crossing phase interval.

[0126] Here, continuing with some of the aforementioned embodiments of the rectifier circuit, during the off-state of the switch circuit, the rectifier circuit outputs a first rectified electrical signal. Based on the circuit structure of the first rectifier unit in the rectifier circuit for outputting the first rectified electrical signal, the first detection signal generation module can directly acquire the first rectified electrical signal to periodically sample the first rectified electrical signal and obtain the first detection signal.

[0127] In some examples, in order to take into account the circuit structure requirements of the transformer circuit in the power supply circuit to provide power to the power supply, the first detection signal generation module includes: a sampling submodule 411 and a control submodule 412, so as to intermittently obtain the AC signal during the period when the switching circuit is disconnected from the AC line to which the switching circuit is connected, thereby obtaining a first detection signal for reflecting the phase of the AC signal.

[0128] In which, the sampling submodule includes at least one switch M2, and the switch M2 is set on the circuit for performing the acquisition operation. For example, the switch M2 is set on the sampling circuit connected to the AC circuit. For another example, the switch M2 is set on the sampling circuit connected to the rectifier circuit. When the switch M2 is turned on, the sampling submodule performs the acquisition operation; otherwise, the sampling submodule stops performing the acquisition operation. It can be seen that performing the acquisition operation can be regarded as the execution process in which the sampling submodule can generate the first detection signal through the acquired sampling signal; stopping the acquisition operation can be regarded as the execution process in which the sampling submodule cannot obtain the sampling signal. The process in which the sampling submodule performs the interval acquisition operation within one power frequency cycle of the AC power refers to the switch M2 performing at least one set of on-off operations within one power frequency cycle. In which, the set of on-off operations may only occur when the phase of the AC signal is within the zero-crossing phase interval, or only occur when the phase of the AC signal is outside the zero-crossing phase interval, or occur during the period when the phase of the AC signal enters the zero-crossing phase interval from outside the zero-crossing phase interval, or occur during the period when the phase of the AC signal enters the zero-crossing phase interval from within the zero-crossing phase interval.

[0129] Here, the sampling submodule includes a rectifier bridge, a switch and a sampling resistor. The rectifier bridge is connected to the AC line connected to the input end of the switch circuit, and is connected to the switch and the sampling resistor. During the period when the switch circuit is disconnected and the switch M2 is on, the sampling resistor HV_Resistor collects the rectified electrical signal output by the rectifier bridge RB3 and outputs a first detection signal; when the switch is disconnected, the sampling resistor HV_Resistor cannot output the first detection signal corresponding to the phase of the rectified electrical signal, thereby outputting the first detection signal intermittently. The switch M2 is an N-type power tube. In fact, it should be easy for those skilled in the art to understand that the switch M2 can be replaced by a P-type power tube, a transistor, etc. according to the actual circuit design requirements.

[0130] Taking the sampling submodule 411 including a rectifier bridge RB3, a switch M2, and a sampling resistor HV_Resistor as an example, the control submodule 412 controls the switch M2 to be turned on or off. To this end, the control submodule 412 is connected to the control end of the switch M2 and is used to output a sampling control signal by detecting the first detection signal or the zero-crossing detection signal to control the switch. Here, in order to ensure that the sampling submodule 411 outputs the first detection signal when the phase of the current AC power falls into the zero-crossing phase interval, the control submodule 412 controls the duration of the switch being turned on or off by detecting the voltage of the first detection signal, wherein the control submodule 412 outputs a sampling control signal for indicating the duration of the control on or off by being electrically connected to the control end of the switch M2. Wherein, the control submodule 412 presets a reference voltage interval, which covers the zero-crossing voltage interval corresponding to the zero-crossing phase interval. For example, the upper voltage limit V1 of the reference voltage interval is greater than or equal to the upper voltage limit V2 of the zero-crossing voltage interval, and the lower voltage limit V1' of the reference voltage interval is less than or equal to the lower voltage limit V2' of the zero-crossing voltage interval. For another example, the upper voltage limit V1 of the reference voltage interval is greater than or equal to the upper voltage limit V2 of the zero-crossing voltage interval, and the lower voltage limit V1' of the reference voltage interval falls within the zero-crossing voltage interval. For another example, the reference voltage interval is equal to the zero-crossing voltage interval.

[0131] In some examples, the control submodule first controls the switch interval to be turned on according to a preset time interval, and detects the voltage of the first detection signal during the conduction period. When the voltage of the first detection signal falls into the reference voltage range, the control submodule continuously outputs a sampling control signal to keep the switch in the sampling submodule turned on all the time until the voltage of the first detection signal exceeds the reference voltage range at zero detection, controls the switch to be turned off, and controls the switch interval to be turned on according to the preset time interval. For example, the control submodule includes a signal generator, a comparator, and a gate, wherein the comparator compares the voltage v of the first detection signal with the voltage upper limit V1. When the voltage v of the first detection signal is greater than or equal to the voltage upper limit V1, the gate selects to connect the signal generator and the control end of the switch based on the comparison result output by the comparator, so that the switch is controlled by the sampling control signal (such as a square wave signal) output by the signal generator and is turned on and off according to a preset on-off cycle; when the voltage v of the first detection signal is less than the voltage upper limit V1, the gate selects to connect the control end of the switch to a constant voltage end based on the comparison result output by the comparator, so that the control end of the switch is always turned on by the constant voltage signal provided by the constant voltage end. According to the type of the switch in the actual circuit design, the constant voltage end can be a voltage ground end or an output end of a reference voltage source.

[0132] In some other examples, the control submodule first controls the switch interval to be turned on according to a preset time interval, and detects the voltage of the first detection signal during the conduction period. When the voltage of the first detection signal falls into the reference voltage interval, at least one of the duty cycle and frequency of the sampling control signal is adjusted to ensure that the voltage of the first detection signal output by the sampling submodule falls within the zero-crossing voltage interval. For example, the control submodule includes an adjustable signal generator and a comparator, etc., wherein the comparator compares the voltage v of the first detection signal with the voltage upper limit V1. When the voltage v of the first detection signal is less than or equal to the voltage upper limit V1, based on the comparison result output by the comparator, the adjustable signal generator outputs a sampling control signal with a first duty cycle to the control end of the switch, so that the switch is controlled by the square wave control signal output by the signal generator and is turned on and off according to the period of the square wave control signal; when the voltage v of the first detection signal is greater than the voltage upper limit V1, based on the comparison result output by the comparator, the adjustable signal generator adjusts the duty cycle of the sampling control signal to a second duty cycle and outputs it to the control end of the switch; wherein the second duty cycle is less than the first duty cycle.

[0133] In some further specific examples, the control submodule outputs the sampling control signal by detecting a zero-crossing detection signal. Here, when the control submodule detects that the zero-crossing detection signal is valid, it outputs the sampling control signal for controlling the switch to be turned off and starts a sampling interval. When the sampling interval reaches a sampling interval threshold, the control submodule adjusts the sampling control signal to control the switch to be turned on.

[0134] The first detection signal outputted by any of the above examples is transmitted to a first zero-crossing detection module, which is used to detect whether the voltage of the first detection signal falls within the zero-crossing voltage interval and output a zero-crossing detection signal based on the comparison result. For example, the first zero-crossing detection module includes a comparator that compares the voltage v of the first detection signal with the voltage upper limit V2 of the zero-crossing voltage interval. When the voltage v of the first detection signal is less than or equal to the voltage upper limit V2, the output zero-crossing detection signal indicates that the phase of the current alternating current is within the zero-crossing phase interval. Otherwise, the output zero-crossing detection signal indicates that the phase of the current alternating current is not within the zero-crossing phase interval. Here, the zero-crossing detection signal level signal, according to the actual circuit design of the first zero-crossing detection module, uses a pulse width signal composed of high and low levels to describe the zero-crossing detection signal. The duration of the effective pulse width used to indicate the zero-crossing phase interval can be very small. In some examples, the duration of the effective pulse width of the zero-crossing detection signal is determined based on the duration of the detection signal falling into the zero-crossing voltage interval. For example, if the first detection signal is continuously output within the reference voltage interval, the zero-crossing detection module detects the first detection signal based on the zero-crossing voltage interval to obtain a zero-crossing detection signal; wherein, the duration of the effective pulse width of the zero-crossing detection signal is less than or equal to the duration of the detection signal falling into the zero-crossing voltage interval. In some other examples, the duration of the effective pulse width of the zero-crossing detection signal is determined based on the operation duration of the control submodule in the shunt control module or the first detection signal generation module. For example, when the shunt control module receives a valid zero-crossing detection signal, it controls the switch unit in the selection circuit to turn on. When the switch unit is turned on, the selection circuit chooses to switch to the first circuit. In this way, since there is no AC signal flowing into the second circuit, the zero-crossing detection signal changes from valid to invalid. It can be seen that the duration of the effective pulse width of the zero-crossing detection signal is related to the response duration of the shunt control module and the switch unit. According to the description of the above examples, the zero-crossing detection signal can be a square wave signal with a longer effective pulse width or a pulse signal with a shorter effective pulse width.

[0135] It should be noted that according to Figure 13 In the examples provided and the related examples mentioned above, during the conduction period of the switch circuit, the first zero-crossing detection unit can also provide a zero-crossing detection signal. For example, see Figure 14, which shows a schematic diagram of the circuit structure of the power supply circuit in one embodiment, wherein the power supply circuit includes: a voltage conversion circuit (111 and 112), a power management circuit 12, a zero-crossing detection circuit 41, and a selection circuit 21. During the on-state period of the switch circuit, the shunt control module in the power management circuit controls the selection circuit to switch between the first circuit and the second circuit based on the zero-crossing phase interval. Under the control of the shunt control module, when the selection circuit selects the second circuit, the first zero-crossing detection unit in the zero-crossing detection circuit obtains a first detection signal reflecting the phase of the AC power, and outputs a zero-crossing detection signal when it is determined that the voltage of the first detection signal falls within the zero-crossing voltage interval corresponding to the zero-crossing phase interval. At the same time, the voltage conversion circuit provides power to the power supply.

[0136] The present application also provides a zero-crossing detection circuit for performing zero-crossing detection during the conduction period of the switching circuit. The zero-crossing detection circuit includes a second zero-crossing detection unit for providing a zero-crossing detection signal during the conduction period of the switching current. This can effectively reduce the chance of damage to the load and components in the switching circuit caused by the moment the switching circuit is disconnected within the voltage peak interval of the alternating current. To this end, the second detection unit performs zero-crossing detection during the conduction period of the switching circuit to output a corresponding zero-crossing detection signal. The second zero-crossing detection unit detects whether the second detection signal reflecting the current AC phase falls within the zero-crossing phase interval during the conduction period of the switching circuit, and outputs a zero-crossing detection signal.

[0137] See also Figure 15 , which is a schematic diagram of the circuit structure of the second zero-crossing detection unit in one embodiment. The second zero-crossing detection unit includes a second detection signal generating module 421 and a second zero-crossing detection module 422.

[0138] Wherein, the second detection signal generating module generates a second detection signal for reflecting the current AC phase. Here, the second detection signal generating module may include a sampling electrical device (group). In some examples, during the conduction period of the switching circuit, the second detection signal generating module uses the sampling electrical device (group) to synchronously obtain the AC signal output by the switching circuit, and outputs the sampled signal as the second detection signal. In another example, continuing with the implementation methods of some of the rectifier circuits mentioned above, during the conduction period of the switching circuit, the rectified electrical signal output by the rectifier circuit is a second rectified electrical signal. Correspondingly, in some examples, the second detection signal generating module uses the sampling electrical device (group) to sample the second rectified electrical signal or directly sample the AC signal, and outputs the sampled signal as the second detection signal.

[0139] In yet other examples, due to the phase-switching restrictions of the power management circuit, the phase interval of the second rectified electrical signal received by the second detection signal generation module corresponds to the phase interval during which the aforementioned power management circuit performs phase-switching control. In one example, the phase interval selected by the power management circuit for power supply purposes includes a zero-crossing phase interval. The second detection signal generation module uses the second sampling signal provided by the second sampling circuit as the second detection signal and outputs it; or it resamples the second sampling signal to obtain and output the second detection signal. For example, the second detection signal generation module 421 includes voltage-dividing resistors R23 and R24 and is connected between the second sampling circuit 25 and voltage ground. The second detection signal output by the second detection signal generation module 421 is the electrical signal collected between the voltage-dividing resistors R23 and R24. Depending on the actual circuit structure design requirements and the purpose of circuit simplicity, the second sampling circuit and the second detection signal generation module may share all or part of the resistors, for example, the resistors used for voltage division.

[0140] The second zero-crossing detection module is connected to the second detection signal generating module, and is used to detect the voltage of the second detection signal based on the zero-crossing voltage interval corresponding to the zero-crossing phase interval, and output the zero-crossing detection signal based on the detection result. For example, the second zero-crossing detection module includes a comparator, one input end of the comparator receives the second detection signal and the other input end receives the voltage upper limit V3 of the zero-crossing voltage interval. When the voltage v' of the second detection signal is lower than or equal to the voltage upper limit V3, the output second detection signal indicates that the phase of the current alternating current is within the zero-crossing phase interval. Otherwise, the output second detection signal indicates that the phase of the current alternating current does not fall within the zero-crossing phase interval. For another example, the second zero-crossing detection module 422 includes two comparators, one of which compares the voltage of the second detection signal with the voltage of the reference voltage Vref3, and the other comparator compares the voltage of the rectified electrical signal with the reference voltage Vref4, and when the logic signals output by the two comparators both indicate that the phase of the current alternating current falls within the zero-crossing phase interval, the zero-crossing detection signal is output.

[0141] To prevent other logic devices in the zero-crossing detection circuit from being disturbed by voltage and causing erroneous operation of the zero-crossing detection signal, in some examples, refer to Figure 16, which shows a circuit structure diagram of a zero-crossing detection circuit. The first zero-crossing detection unit 41 and the second zero-crossing detection unit 42 of the zero-crossing detection circuit are further connected to a logic unit 43, which is used to perform logic processing based on the zero-crossing detection signals respectively output by the first zero-crossing detection unit 41 and the second zero-crossing detection unit 42, and output a zero-crossing detection signal that can be recognized by the control circuit 24. Among them, the logic unit 43 includes, for example, an exclusive OR processing, so that the zero-crossing detection signal that can be recognized by the control circuit is output only when the first zero-crossing detection unit 41 or the second zero-crossing detection unit 42 outputs a zero-crossing detection signal that indicates that the current AC power is in the zero-crossing phase interval.

[0142] In the zero-crossing detection circuit designed based on the technical solution provided by the present application, the effective duration of the zero-crossing detection signal outputted by it can be very short, so short that the control circuit in the energy-saving state, or the standby state, or the dormant state may miss the response, wherein the control circuit is exemplified by a circuit including a CPU, a circuit including an enable controller, etc. For this purpose, the detection circuit of the present application also includes a zero-crossing detection signal output module, which is used to amplify the zero-crossing detection signal outputted by the zero-crossing detection module or the logic module. Here, the amplification process includes an amplification process based on the voltage amplitude, and / or an amplification process based on the effective duration. In some examples, the zero-crossing detection signal output module includes an amplifier, which amplifies the voltage amplitude of the zero-crossing detection signal to match the voltage requirement for waking up the subsequent control circuit.

[0143] In some other examples, the zero-crossing detection circuit further includes a zero-crossing detection signal output module configured to extend the effective duration of the zero-crossing detection signal. The zero-crossing detection signal output module converts the zero-crossing detection signal having an effective pulse width provided by the zero-crossing detection module into a zero-crossing detection signal having a preset duration; wherein the effective pulse width is less than the preset duration.

[0144] The zero-crossing detection signal output module includes a time extension device (group), and may even include a trigger / reset device (group) of the time extension device (group). Examples of the time extension device (group) include a monostable trigger (also known as one-shot). Examples of the trigger / reset device (group) of the time extension device (group) include a timer, a trigger, etc. The trigger / reset device (group) outputs a trigger signal based on the zero-crossing detection signal provided by the zero-crossing detection module, and starts a reset timer based on the zero-crossing detection signal provided by the zero-crossing detection module, and outputs a reset signal when the reset timer times out. The time extension device (group) outputs a zero-crossing detection signal based on the trigger signal, and resets based on the reset signal. The time extension device (group) outputs the zero-crossing detection signal based on a preset time length to achieve the purpose of extending the time length. The preset time length can be a fixed value, or determined based on the time interval between the trigger signal and the reset signal of the time extension device (group).

[0145] Taking the example of the zero-crossing detection signal output module receiving only the first zero-crossing detection signal provided by the first zero-crossing detection module, and the first zero-crossing detection signal received by the trigger / reset device (group) being a pulse signal, the trigger / reset device (group) outputs a trigger signal to trigger the duration extension device (group) to output a valid zero-crossing detection signal within a preset duration; wherein the preset duration is greater than the duration of the first zero-crossing detection signal; at the same time, the trigger / reset device (group) performs a reset timing based on the first zero-crossing detection signal, and outputs a reset signal when the reset timing times out to reset the duration extension device (group). The duration of the reset timing is greater than or equal to the preset duration provided by the duration extension device (group), and must be less than the power frequency cycle.

[0146] Taking the example of the zero-crossing detection signal output module receiving only the second zero-crossing detection signal provided by the second zero-crossing detection module, when the zero-crossing detection signal provided by the second zero-crossing detection module received by the time extension device (group) is a pulse signal, the time extension device (group) outputs a zero-crossing detection signal having an effective pulse width of a preset duration; wherein the preset duration is greater than the duration of the pulse signal (i.e., the duration of the effective pulse width) and less than the power frequency period. The time extension device (group) automatically resets after outputting the zero-crossing detection signal having an effective pulse width of the preset duration.

[0147] Taking the zero-crossing detection signal output module including the aforementioned logic unit, the first trigger / reset device (group) corresponding to the first zero-crossing detection module, the second trigger / reset device (group) corresponding to the second zero-crossing detection module, and the time extension device (group) as an example, please refer to Figure 22, which shows a circuit structure diagram of the zero-crossing detection circuit in one embodiment, wherein the output end of the first zero-crossing detection module is connected to the first trigger / reset device (group), the output end of the second zero-crossing detection module is connected to the second trigger / reset device (group), the two input ends of the logic unit are respectively connected to the first trigger / reset device (group) and the second trigger / reset device (group), and the output end of the logic unit is connected to the time extension device (group); here, during the period when the switch circuit is disconnected, the second zero-crossing detection module does not output the second zero-crossing detection signal, and correspondingly, the output end of the second trigger / reset device (group) is deemed to output the second reset signal. When the first zero-crossing detection module outputs the first zero-crossing detection signal (such as a pulse When a reset timing is exceeded, the first trigger / reset device (group) outputs a first trigger signal to the logic unit and starts a first reset timing. The logic unit outputs a trigger logic signal corresponding to the first trigger signal according to the preset control logic of the first trigger signal, the first reset signal, the second trigger signal, and the second reset signal. The time extension device (group) outputs a zero-crossing detection signal of a preset time length (i.e., a zero-crossing detection signal with an effective pulse width of a preset time length) based on the trigger logic signal. When the reset timing times out, the first trigger / reset device (group) outputs a first reset signal. The logic unit outputs a reset logic signal corresponding to the first reset signal according to the control logic, and the time extension device (group) is reset. During the on-state period of the switch circuit, the first zero-crossing detection module does not output the first zero-crossing detection signal. Correspondingly, the output end of the first trigger / reset device (group) is deemed to output the first reset signal. When the second zero-crossing detection module outputs the second zero-crossing detection signal (e.g., a pulse signal), the second trigger / reset device (group) outputs a second trigger signal to the logic unit and starts a second reset timing. The logic unit outputs a trigger logic signal corresponding to the second trigger signal based on the preset control logic of the first trigger signal, the first reset signal, the second trigger signal, and the second reset signal. The duration extension device (group) outputs a zero-crossing detection signal of a preset duration (i.e., a zero-crossing detection signal with an effective pulse width of a preset duration) based on the trigger logic signal. When the reset timing times out, the second trigger / reset device (group) outputs a second reset signal. The logic unit outputs a reset logic signal corresponding to the second reset signal based on the control logic, and the duration extension device (group) is reset.

[0148] Utilizing the power supply circuit described above, the present application also provides a chip that can integrate at least some of the electrical components of the power supply circuit. For example, the chip integrates a power management circuit in the power supply circuit. Here, in order to cooperate with the circuit setting of the aforementioned transformer circuit, the chip at least includes: a first pin for connecting to the primary input unit, a second pin for obtaining a first sampling signal reflecting the power supply signal output by the power supply, a chip pin for connecting to the voltage ground, etc. The power management circuit integrated in the chip is connected to the primary input unit through the first pin, and obtains the first sampling signal through the second pin. Thus, the power management circuit controls the current flowing through the primary input unit based on the first sampling signal, so that the power supply provided by the secondary output unit is stable. Here, the working process and circuit structure of the power management circuit are the same as those mentioned above. Figure 1-8 The contents are the same or similar to the corresponding descriptions and will not be described in detail here.

[0149] The first sampling signal can be collected by a first sampling circuit. In some examples, the first sampling circuit is external to the chip and connected between the secondary output unit and a second pin, and the power management circuit obtains the first sampling signal through the second pin. In other examples, the first sampling circuit is integrated into the chip and connected to the secondary output unit via the second pin, for sampling the output side of the secondary output unit and generating the first sampling signal.

[0150] When the aforementioned power management circuit is connected to a circuit with a switching circuit, it can directly and continuously provide power to the power supply while the switching circuit is disconnected. In some applications, the chip uses a first self-powered circuit to obtain power from the power supply to maintain its own operation. The first self-powered circuit can be external to the chip, and for this purpose, the chip has chip pins for connecting to the first self-powered circuit. The first self-powered circuit can be integrated into the chip, and for this purpose, the chip has chip pins for connecting to the power supply. The circuit structure of the first self-powered circuit and its connection relationship with the power management circuit are the same or similar to those of the corresponding solutions mentioned above and will not be repeated here.

[0151] In some examples during the on-state of the switching circuit, the chip may further include a third pin configured to connect to a selection circuit disposed on an AC line at the output terminal of the switching circuit; wherein the selection circuit is configured to select whether to connect the switching circuit to the first line or the second line during the on-state of the switching circuit, thereby forming a power circuit for the AC line. When the power management circuit controls the selection circuit to switch to the second line via the third pin, the power management circuit converts the acquired rectified electrical signal into a power supply signal to continue supplying power to the power supply.

[0152] In some other examples during the on-state of the switch circuit, the chip further integrates the selection circuit and includes chip pins for accessing an AC power line. The selection circuit and the power management circuit can be integrated together via a PCB and packaged in the chip.

[0153] The circuit structure and working process of the selection circuit mentioned in any of the above examples can be as follows: Figure 9 、 10 and the corresponding descriptions thereof, which will not be repeated here.

[0154] To control the switching operation of the selection circuit, the power management circuit also obtains a second sampling signal, wherein the second sampling signal is transmitted to the power management circuit in the chip via the fourth pin of the chip. Furthermore, the power management circuit in the chip includes a shunt control module; the shunt control module is connected to the selection circuit via an internal data line or a chip pin, and is configured to detect the phase of the second sampling signal and output a shunt control signal to the selection circuit to control the selection circuit to switch between the first and second lines. To this end, the fourth pin of the chip can be connected to a second sampling circuit, wherein the second sampling circuit is configured to sample an electrical signal reflecting an AC signal in the second line or a power supply signal to generate a second sampling signal and output it to the power management circuit; or the second sampling circuit can be integrated into the chip and connected to the rectifier circuit via the fourth pin.

[0155] The circuit structure and working process of the second sampling circuit, shunt control module, etc. mentioned above are the same as those of the aforementioned Figure 9-11 In addition, the power management circuit also integrates the aforementioned Figure 11 The first protection module described will not be repeated here.

[0156] In other embodiments, according to the above Figure 10-11 And the corresponding description, the power management circuit also includes a second protection module for providing overcurrent protection for the power supply. Wherein, the working process and circuit structure of the second protection module can be as follows Figure 10-11 The overcurrent protection detection signal generated by the second protection module can be output through the chip pin to enable other circuits connected to the chip to perform corresponding response operations, such as the aforementioned control circuit controlling the switch circuit to disconnect based on the overcurrent protection detection signal.

[0157] According to the aforementioned power supply circuit, the chip can also integrate a zero-crossing detection circuit. The chip also provides a plurality of chip pins for providing an electrical signal reflecting the current AC power signal to the zero-crossing detection circuit, and outputting a zero-crossing detection signal to the zero-crossing detection circuit. Here, the circuit structure and working process of the zero-crossing detection circuit are as follows: Figure 13-16 and the corresponding descriptions are shown and will not be described in detail here.

[0158] Utilizing the power supply circuit provided above, the present application also provides a smart switch. The smart switch can be installed on an indoor AC line. The AC line can transmit AC power to the load and provide a conductive carrier for the AC power to return to the ground. The smart switch is connected to the AC line, thereby controlling the conduction or disconnection of the power circuit for the AC power supply to the corresponding load. The load includes a lamp and any terminal appliance plugged into a power socket. Examples of the terminal appliances include: power adapters, air conditioners, refrigerators, televisions, kitchen appliances, etc. In addition, the smart switch can also output control instructions to the terminal appliances connected to it based on pre-configuration; examples of the terminal appliances include: smart curtains, air conditioners, televisions, rice cookers, sweeping robots, etc.

[0159] See also Figure 17 , which shows a schematic diagram of the framework structure of an intelligent switch in one embodiment. The intelligent switch includes a switching circuit 51, a rectifier circuit 52, a power circuit 53, and a control circuit 54. The power circuit can be adapted based on the actual circuit design of the aforementioned power circuit and the switching circuit and rectifier circuit.

[0160] See also Figure 18, which shows a schematic diagram of the circuit structure of an intelligent switch in one embodiment. The power supply circuit includes a voltage conversion circuit 531 for providing internal power when the switch circuit 51 is off, a power management circuit 532, a first self-power supply circuit 534, and a first sampling circuit 533. The circuit module in the power management circuit 532 that controls the voltage conversion circuit 531 during the off-state period of the switch circuit 51 includes a regulation module 541 and a second control module 542'. The power supply circuit also includes a power management circuit 532 for providing internal power when the switch circuit 51 is on, a second sampling circuit 537, a selection circuit 535, and a second self-power supply circuit 538. The circuit module in the power management circuit 532 that continues to provide power to the power supply during the on-state period of the switch circuit 51 includes a second protection module 544, an output module 543, and a branch control module 545. The power supply circuit also includes an energy storage circuit 540, disposed on the output side of the power supply, which filters the power supply signal and maintains the output voltage of the power supply when the voltage of the power supply signal decreases. For example, during the switching moment between the switching circuit being disconnected and being connected, the energy storage circuit 540 maintains the output power signal. For another example, during the period when the selection circuit switches to the first line, the energy storage circuit 540 maintains the output power signal. The power supply circuit also includes a first voltage adjustment circuit 539 configured to match the supply voltage of the control circuit 536, and a second voltage adjustment circuit 551 configured to match the supply voltage of the switching circuit 51. The first voltage adjustment circuit 539 and the second voltage adjustment circuit 551 may be circuits including low dropout regulators (LDOs).

[0161] Here, the switch circuit is connected to the live wire and is used to controllably turn on or off. When disconnected, the load of the circuit where the intelligent switch is located is in a stopped state. When connected, the load can enter a working state under the drive of its driving circuit. The stopped state refers to the state in which the load is unable to receive AC power supply; for example, the LED lamp is in a non-lighting state during the period when the switch circuit is disconnected. The working state refers to the state in which the load receives AC power supply and operates through the internal circuit to achieve the purpose of use; for example, the LED lamp is in a lit state during the period when the switch circuit is turned on. Here, the working state is not limited to one state, but will be adjusted according to the actual control instructions. For example, the working state of an LED lamp is not only the lit state, but also includes the state after adjusting the brightness and color. For another example, the working state of a TV includes standby state and play state.

[0162] In some examples, the switching circuit includes a relay, wherein the relay operates with power from the power supply. The relay has two switch terminals connected to an AC power line, and a control terminal connected to a control circuit in the power supply circuit. When the control circuit controls the switching circuit to conduct based on control information, the control circuit can achieve relay conduction by increasing the supply current output to the relay control terminal. When the control circuit controls the switching circuit to disconnect based on the control information, the control circuit can achieve relay disconnection by reducing the supply current output to the relay control terminal.

[0163] The rectifier circuit is connected to the switch circuit and is used to rectify the AC power received and output a rectified electrical signal both when the switch circuit is off and when it is on. The rectified electrical signal output by the rectifier circuit can be a rectified electrical signal obtained by rectifying the AC signal through a half-wave rectifier bridge or a full-wave rectifier bridge. In order to continuously output the rectified electrical signal both when the switch circuit is off and when it is on, the rectifier circuit can be connected to the live wire on one side of the input end of the switch circuit so that the AC signal can be shunted to obtain the rectified electrical signal both when the switch circuit is off and when it is on.

[0164] In some embodiments, as Figure 18 As shown, the rectifier circuit includes a first rectifier unit 521. The first rectifier unit 521 is connected to the AC power line connected to the input end of the switching circuit, and is used to rectify the AC power flowing to the switching circuit and output a first rectified electrical signal; wherein the first rectified electrical signal is a rectified electrical signal provided by the rectifier circuit.

[0165] In order to ensure that the load maintains its stopped state during the period when the switch circuit is disconnected, the voltage interval of the AC signal received by the first rectifier unit should be lower than the operating voltage interval required to be reached during the load working state. Technicians can ensure that the load maintains its stopped state when the first rectifier unit outputs the first rectifier signal by selecting the parameters of the electrical components in the first rectifier unit. In some examples, the first rectifier unit includes a rectifier bridge and a filter capacitor. The rectifier bridge includes, for example, a half-wave rectifier bridge or a full-wave rectifier bridge. Taking the first rectifier unit 521 as a half-wave rectifier bridge as an example, the output end of the rectifier bridge in the first rectifier unit 521 is connected to the filter capacitor, and the other end of the filter capacitor is grounded.

[0166] The first rectified electrical signal output by the first rectifier unit is transmitted to the transformer circuit in the power supply circuit. The power management circuit can control the transformer circuit according to any of the aforementioned examples to perform energy conversion on the received first rectified electrical signal to generate a power supply for supplying power to the power management circuit, control circuit, switch circuit, and other internal electrical components of the intelligent switch.

[0167] by Figure 18 Taking the circuit structure of the intelligent switch shown as an example, the circuit structure and working process of the first rectifier unit 521 and the power management circuit 532 are as follows: the half-wave rectifier bridge of the first rectifier unit 521 is connected to the live wire of the input end of the switch circuit, and the output end of the half-wave rectifier bridge is connected to the primary input unit in the transformer circuit 531 via a filter capacitor. The primary input unit and the secondary output unit are used for transformer processing, and the secondary output unit serves as the output end of the power supply to output the power supply signal; wherein, the primary input unit is grounded through the power management circuit; and the secondary output unit is also grounded to reduce the internal friction caused during energy conversion. wherein, the power management circuit includes a grounded regulation module 541 and a second control module 542' for controlling the on and off of the regulation module 541; the secondary output unit includes a secondary winding connected to the voltage ground and a unidirectional conduction module connected to the output end of the secondary winding. A first sampling circuit 533 is provided on the power supply side of the secondary output unit, which collects the power supply voltage of the power supply and generates a first sampling signal FB1, and transmits the first sampling signal to the second control module 542'; at the same time, the second control module 542' also obtains a third sampling signal CS collected from the primary input unit through the third sampling circuit 552.

[0168] The operating process of the above circuit structure is as follows: During the off-state period of the switching circuit, the first rectifier unit 521 performs half-wave rectification on the AC signal, which is then low-pass filtered via a filter capacitor and output as a first rectified signal to the transformer circuit. The mutual inductance winding in the primary input unit and the secondary output unit of the transformer circuit 531 transforms the first rectified signal. Since the secondary winding in the secondary output unit is grounded, the diode and capacitor in the unidirectional conduction module ensure that the converted power supply is output unidirectionally and stably. The second control module 542' controls the on / off of the regulation module 541 by detecting the first sampling signal FB1 and the third sampling signal CS. Specifically, the second control module 542' performs error amplification and / or low-pass filtering on the voltage of the acquired first sampling signal to obtain a detection signal COMP corresponding to the first sampling signal, and outputs a clock signal based on the voltage of the detection signal COMP, wherein the frequency of the clock signal is related to the voltage of the detection signal COMP. At the same time, the detection signal COMP is directly used as COMP_CS, or converted to COMP_CS after being processed according to a preset ratio, and compared with the third sampling signal CS. A corresponding logic signal is generated based on the comparison result. The power management circuit sets the maximum on-time of the regulation module. The power management circuit controls the regulation module to turn on according to the clock signal, and timing begins at the on-time. When the comparison result obtained by the second control module 542', obtained by comparing CS with COMP_CS, indicates that the regulation module 541 should be disconnected, the regulation module 541 is controlled to disconnect and the timing is reset. If the regulation module has not been disconnected before the maximum on-time is reached, the regulation module is disconnected at the end of the timing.

[0169] It should be noted that Figure 18 The description is only an example. In fact, according to Figure 2 The connection relationship and working process of the first control module and the adjustment module described above can also realize the control mode similar to that of the second control module, which will not be described in detail here. Figure 18 The corresponding second control module and third protection module can not only realize stable power supply to the secondary output unit with the help of the second control module's control over the regulation module, but also provide circuit protection for the normal operation of internal electrical components with the help of the third protection module, which will not be described in detail here.

[0170] During the period when the switch circuit is off, the control circuit and the power management circuit in the power circuit perform corresponding control operations based on the power supply provided by the transformer circuit. Figure 18As shown, the control circuit 536 uses the power provided by the power supply to continuously monitor whether the control information is received, so as to control the switching circuit 51 to be turned on. For another example, when the switching circuit 51 is turned off, the control circuit 536 uses the power provided by the power supply to continuously monitor whether the control information is received, so as to output a control signal to the pre-configured air conditioner according to the air conditioner and temperature indicated in the control information.

[0171] To this end, the control circuit 536 includes an interaction unit and a processing unit (not shown). The interaction unit is used to obtain control information; the processing unit is connected to the interaction unit and is used to control at least the switching circuit to be turned on or off based on the control information.

[0172] In some examples, the interaction unit may include a human-computer interaction module for receiving user operations to obtain the control information. Examples of such human-computer interaction modules include an interactive panel with a touch-sensitive medium, including but not limited to a touch screen, buttons, and optical sensors. In other examples, the interaction unit may include a communication module for receiving and transmitting wireless signals containing control information. Examples of such communication modules include at least one of: a short-range communication module such as an RF communication module, a WiFi communication module, an infrared communication module, and a Bluetooth communication module; a communication module capable of accessing wide-area networks such as optical fiber and broadband; and a communication module capable of accessing mobile networks using a SIM card. Each of the above examples may be configured in the interaction unit in combination or separately. For example, the interaction unit may include a button for controlling a switch circuit and a wireless communication module for acquiring wireless signals. The interaction unit may monitor the pulse signal generated by the button to determine receipt of the control information for turning on the switch circuit, and the interaction unit may obtain the control information by demodulating and decoding the wireless signal. Here, the control information obtained by the wireless communication module may include control information for turning on a switch circuit, control information for controlling switch circuits on other circuits, and control information for controlling smart appliances to adjust, turn on, and off. The interaction unit provides the obtained control information to the processing unit, which converts the control information into a control signal recognizable by the corresponding electrical device or switch circuit and outputs it.

[0173] Here, the processing unit includes a processing module that can handle numerical operations, logical operations, and data processing, examples of which include MCU, CPU, programmable logic device, etc. According to the pin function of the chip that encapsulates the corresponding processing module, the processing unit can be electrically connected to the switching circuit, or communicate data through the interactive unit. The processing unit uses the power supply provided by the transformer circuit to analyze the received control information during the period when the switching circuit is disconnected to determine the controlled object and the timing of executing the control. The processing unit may also include a timer, a clock signal generator, a buffer, and other hardware modules for assisting the processing module in performing the corresponding control operations.

[0174] The above examples describe the structure and operation of the switch control circuit for providing internal power and controlling at least the switch circuit during the switch circuit off period. During the switch circuit on period, the switch control circuit can still provide internal power and control the disconnection of at least the switch circuit.

[0175] During the conduction period of the switching circuit, in order to prevent the first rectifier unit from being unable to output the first rectified electrical signal due to a short circuit, in some embodiments, the switching circuit includes a shunt electrical device (such as a resistor) so that the first rectifier unit can obtain shunt alternating current during the conduction period of the switching circuit.

[0176] In some other embodiments, in order to ensure that the internal power supply of the power supply circuit continues to supply power while the switch circuit is turned on, the power supply circuit switches the switch circuit and the load between the first circuit and the second circuit in a time-sharing manner, so that the rectifier circuit rectifies the received AC signal and outputs a corresponding rectified electrical signal (hereinafter referred to as the second rectified electrical signal). Figure 18 As shown, the power supply circuit includes a selection circuit 535 disposed on the AC line. Correspondingly, the power management circuit includes a shunt control module 545 to control the selection circuit 535. The selection circuit 535 is connected to the second line by default. When the shunt control module 545 detects that the voltage of the second rectified electrical signal exceeds a reference voltage range, it controls the selection circuit 535 to switch from the second line to the first line. After a delay, the shunt control module 545 adjusts the shunt control signal to control the selection circuit 535 to switch from the first line to the second line. The duration of the delay is related to the duration that the energy storage circuit 540 maintains the supply voltage. Accordingly, the control circuit 536, while powered by the power supply, can monitor control information in real time. Upon detecting control information, it executes corresponding control operations according to the content of the control information. For example, upon receiving control information indicating that the switch circuit 51 is to be turned on, the control circuit 536 controls the switch circuit 51 to be turned on.

[0177] In other embodiments, to facilitate conversion between the second rectified electrical signal and the output power of the power supply, see Figure 19 , which shows a circuit diagram of another embodiment of the intelligent switch. The rectifier circuit further includes a second rectifier unit 522 connected to the live wire connected to the output end of the switch circuit 51. For example, the second rectifier unit 522 and the first rectifier unit 521 are disposed at opposite ends of the switch circuit 51.

[0178] The second rectifier unit 522 is used to rectify the incoming AC signal while the switch circuit 51 is on and output a second rectified electrical signal. The second rectifier unit 522 includes a rectifier bridge and a filter capacitor. Examples of the rectifier bridge include a half-wave rectifier bridge or a full-wave rectifier bridge. The filter capacitor is connected between the output terminal of the rectifier bridge and voltage ground to perform low-pass filtering on the rectified electrical signal output by the rectifier bridge to obtain a second rectified electrical signal. The second rectified electrical signal is another rectified electrical signal provided by the rectifier circuit.

[0179] Still Figure 19 As shown, while the power circuit switches the AC line containing the switching circuit and the load to the second line in a time-sharing manner, the second rectifier unit 522 outputs a second rectified electrical signal. Simultaneously, to prevent the second rectifier unit 522 and the first rectifier unit 521 from jointly outputting the first and second rectified electrical signals, thereby causing the internal power supply voltage of the power management circuit to be excessively high, the conduction voltage of the rectifier bridge in the first rectifier unit 521 is higher than the conduction voltage of the rectifier bridge in the second rectifier unit. Accordingly, the upper voltage limit of the reference voltage interval preset in the power management circuit should be lower than the conduction voltage of the rectifier bridge in the first rectifier unit 521. When the power management circuit detects that the voltage of the second rectifier signal reaches the upper voltage limit of the reference voltage interval, it switches the AC line containing the switching circuit and the load to the first line. The upper voltage limit may correspond to the upper voltage limit of the reference voltage interval used for phase switching control in the aforementioned power management circuit.

[0180] by Figure 19Taking the circuit structure shown in as an example, during the on-state of the switch circuit, the selection circuit 535 in the power management circuit is connected to the AC line where the switch circuit 51 is located, and selects to switch the load and the switch circuit to the second line to form a power-on loop. The second rectifier unit 522 obtains the AC signal from the second line, converts it into a second rectified signal, and then outputs it to the output module 543 in the power management circuit, so that the second rectified signal is directly used as the power signal output by the power supply. At the same time, the second sampling circuit 537 in the power supply circuit collects a second sampling signal reflecting the voltage of the second rectified signal and provides it to the shunt control module 545 in the power management circuit. When the shunt control module 545 detects that the voltage of the second sampling signal reaches the upper voltage limit of the preset reference voltage range, it controls the switch unit M1 in the selection circuit 535 to turn on, causing the switching circuit to switch from the second line to the first line and start timing. When the timing reaches the timing threshold, the shunt control module 545 controls the switch unit M1 in the selection circuit 535 to turn off. Depending on the current phase range of the AC power (-180-0 degrees or 0-180 degrees), the selection circuit 535 delays or immediately switches from the first line to the second line. When the voltage difference between the two ends of the rectifier circuit is greater than its turn-on voltage, the power circuit of the second line is turned on. The measured duration is related to the AC power frequency, the discharge duration of the capacitor in the second rectifier unit 522 , and the like.

[0181] In some cases, the first protection module 546 can also be used in a power management circuit including an output module, which is connected in parallel with the shunt control module 545. When the voltage of the second sampling signal provided by the output end of the second sampling circuit is greater than the preset protection voltage threshold, the first protection module 546 controls the selection circuit 535 to switch from the second circuit to the first circuit; at the same time or with a slightly delayed response, the shunt control module 545 controls the selection circuit 535 to switch from the second circuit to the first circuit and maintain the timing duration.

[0182] During the on-state of the switch circuit, the control circuit 536 in the power supply circuit can utilize the continued power supply from the power management circuit 532 to perform control operations similar to those during the off-state of the switch circuit 51, such as adjusting the temperature of the air conditioner, starting / stopping electronic devices at a scheduled time, and disconnecting the switch circuit. This will not be described in detail here.

[0183] Based on the aforementioned intelligent switches, the power circuit in the intelligent switch further performs zero-crossing detection during at least one of the switch circuit's off and on periods. The zero-crossing detection circuit in the intelligent switch is identical or similar to the zero-crossing detection circuit previously described in this application and will not be described in detail here.

[0184] See also Figure 20, which shows a schematic diagram of the circuit structure of an intelligent switch in one embodiment. Taking the first zero-crossing detection unit in the aforementioned zero-crossing detection circuit as an example during the disconnection period of the switch circuit, the working process of the intelligent switch is described as follows: Figure 13 During the period when the switch circuit is disconnected, the first rectifier unit 521, the voltage conversion circuit 531 and the power management circuit 532 in the intelligent switch provide power to the electrical components inside the intelligent switch, which will not be described in detail here. Under the stable power supply of the power supply, the first detection signal generating module 561 in the first zero-crossing detection unit directly collects the AC signal flowing through the AC line during the period when the switch circuit 51 is disconnected to obtain a first detection signal; the control submodule 565 in the first zero-crossing detection unit controls the first detection signal generating module 561 to collect the first detection signal, for example, the control submodule 565 controls the first detection signal generating module 561 to collect the first detection signal at a preset time interval or controls the first detection signal generating module 561 to collect the first detection signal within a full cycle; the first zero-crossing detection module 562 detects the voltage of the first detection signal during each collection period to determine whether the current AC phase is within the zero-crossing phase interval, and outputs a zero-crossing detection signal based on the detection result; in some embodiments, when it is determined that the current AC phase does not fall within the zero-crossing phase interval, the control submodule 565 does not adjust the collection time interval; when it is determined that the current AC phase falls within the zero-crossing phase interval, the control submodule 565 adjusts the collection time interval to extend the collection time. The control circuit 536 receives the zero-crossing detection signal and generates a delay timing for the control information based on the preset response delay of the switching circuit and the zero-crossing detection signal. When the control circuit 536 receives the control information for controlling the switching circuit to be turned on, the delay timing is started until the zero-crossing detection signal is received indicating that the phase of the current AC power is within the zero-crossing phase interval, and the switching circuit 51 is controlled to be turned on.

[0185] Taking the second zero-crossing detection unit in the aforementioned zero-crossing detection circuit as an example during the conduction period of the switch circuit, the working process of the intelligent switch is described as follows: Figure 20During the on-state period of the switch circuit, the second rectifier unit 522 in the intelligent switch and the power management circuit in the power management circuit provide power to the electrical components within the intelligent switch, which will not be described in detail here. Under the stable power supply of the power supply, the second detection signal generation module 563 in the second zero-crossing detection unit collects the second rectified electrical signal to generate a second detection signal. The second zero-crossing detection module 564 detects the voltage of the second detection signal to determine whether the current phase of the AC power is within the zero-crossing phase interval and outputs a zero-crossing detection signal based on the detection result. The control circuit 536 receives the zero-crossing detection signal and generates a delay timer for the control information based on the preset response delay of the switch circuit 51 and the zero-crossing detection signal. When the control circuit 536 receives the control information for controlling the on-state of the switch circuit, the delay timer is started until the zero-crossing detection signal is received, indicating that the current phase of the AC power is within the zero-crossing phase interval, and the switch circuit is controlled to be on.

[0186] It should be noted that, during the period when the selection circuit selects the second line, the second detection signal generating module 563 can also directly obtain the AC signal flowing out of the switch circuit and obtain the second detection signal.

[0187] It should also be noted that since the second rectifier unit outputs the second rectified electrical signal in a preset reference voltage range, in order to take into account both the zero-crossing detection signal and the power supply, the reference voltage range can cover the zero-crossing voltage range. The reference voltage range thus ensures that during the period when the second rectifier unit outputs the second rectified electrical signal, the corresponding second zero-crossing detection unit can output the second zero-crossing detection signal.

[0188] In some practical applications, when the load is powered on or off in the AC voltage peak region, the semiconductor devices and switch circuits in the load are easily broken down due to the instantaneous high voltage, causing damage to the load. Therefore, the smart switch mentioned in the present application is also integrated with a zero-crossing detection circuit, which is used to detect the phase of the current AC signal based on the zero-crossing phase interval and output a zero-crossing detection signal to the control circuit; the control circuit controls the switching circuit to be turned on or off based on the zero-crossing detection signal and after receiving a control information. The control signal can be obtained based on the control logic processing of at least one logic signal. The source of the logic signal includes but is not limited to: based on the on-off instruction issued by a wireless device such as a remote control or a smart terminal, generated based on a mechanical on-off operation, generated based on the electrical signal emitted by a touch panel, generated based on detecting the zero-crossing detection signal, or generated by other devices such as a timer. The control circuit outputs the control signal based on the preset control logic for at least one of the above logic signals.

[0189] In some examples, the control circuit can be triggered by a zero-crossing detection signal generated after receiving control information to control the switching circuit to be turned on or off. In another example, the control circuit has a preset response delay time for the switching circuit. The control circuit predicts the time when the switching circuit is turned on or off within the time interval of subsequent zero-crossing detection signals based on the time intervals of multiple zero-crossing detection signals, and performs corresponding timing. If control information is received during this timing period, the corresponding control operation is performed when the timing expires, that is, the switching circuit is controlled to be turned on or off; if control information is received during this timing period, the timing is reset when the timing expires and the timing start time of the timing is re-determined. For example, the time intervals of multiple continuously received zero-crossing detection signals are recorded, and abnormal time intervals, such as time intervals that are too long or too short, are eliminated, and the average time interval of the zero-crossing detection signals is calculated. Based on this average time interval and the response delay of the switching circuit, the moment when the subsequent AC power phase approaches the zero phase is predicted to control the switching circuit to be turned on or off, and the corresponding timing is started. When control information for controlling the switching circuit is received during this timing period, the corresponding control operation is performed when the timing times out. Otherwise, the timing is reset and the next time the control operation can be performed is calculated and the corresponding timing is started again.

[0190] This application also provides a power supply method. Figure 21 , which shows a flow chart of a power supply method in one embodiment. The power supply method can be performed by a power supply circuit, which supplies power to a power source via a rectified electrical signal output by a rectifier circuit. The power supply circuit can be any of the power supply circuits mentioned above, or any power supply circuit capable of implementing the power supply method.

[0191] In step S110 , power is provided by connecting the primary input unit and the secondary output unit of the rectifier circuit.

[0192] The transformer circuit provides power to the power supply via the rectified electrical signal provided by the rectifier circuit. Figure 2 The circuit structures of the transformer circuits shown and described above are the same or similar and will not be described in detail here.

[0193] In step S120, a first sampling signal reflecting the power supply signal output by the power supply is obtained. Figure 2 The circuit structures of the first sampling circuit shown and described above are the same or similar and will not be described in detail here.

[0194] In step S130 , the current flowing through the primary input unit is controlled based on the first sampling signal, so that the power supply provided by the secondary output unit is stable.

[0195] In some embodiments, controlling the current in the primary input unit of the voltage conversion circuit based on the first sampling signal includes comparing the voltage of the first sampling signal with a preset reference voltage, and controlling the on / off state or current change of a circuit in which the primary input unit resides based on the comparison result. Here, the voltage of the first sampling signal is compared with the preset reference voltage to generate a logic signal, and the current in the circuit in which the primary input unit resides is controlled based on the detection logic expressed by the logic signal.

[0196] In some examples, logic devices within the power supply circuit and analog devices supporting the logic devices represent the detection logic between the first sampling signal and a reference voltage, compare the voltage of the first sampling signal with a preset reference voltage, and control the current in the primary input unit based on the comparison result. The reference voltage may be a reference voltage range or a reference voltage value set based on the power supply voltage. In one specific example, the aforementioned power supply circuit includes a circuit structure capable of generating corresponding detection signals and control signals according to the above process, which will not be described in detail here.

[0197] In other embodiments, the method for controlling the current in the primary input unit of the transformer circuit based on the first sampling signal includes: controlling the on / off state or current change of the circuit in which the primary input unit is located based on the error between the voltage of the first sampling signal and a preset reference voltage. Here, by detecting the error between the voltage of the first sampling signal and the preset reference voltage, the drift of the power supply voltage actually output by the power supply can be described, and the current of the circuit in which the primary input unit is located is controlled according to the analog signal or digital signal representing the drift. In one specific example, the aforementioned power supply circuit includes a circuit structure that can generate corresponding detection signals and control signals according to the above process, which will not be described in detail here.

[0198] According to any of the detection methods described in the examples above, methods for controlling the current in the circuit containing the primary input unit include, but are not limited to, controlling the on / off state of the circuit or current variation. In some examples, the control method includes, but is not limited to, controlling at least one of the current variation frequency, on / off frequency, on-duration, and off-duration of the circuit containing the primary input unit. This step can be performed by the aforementioned first control module and regulation module and will not be further described here.

[0199] In some further embodiments, the step of the power supply circuit controlling the current in the primary input unit based on the first sampling signal also includes: obtaining a third sampling signal for reflecting the line electrical signal in the line where the primary input unit is located; and controlling the current flowing through the primary input unit based on the first sampling signal and the third sampling signal.

[0200] The first sampling signal reflects the current power output information provided by the secondary output unit, and the third sampling signal reflects the current energy input information provided by the primary input unit. The power management circuit controls the current in the circuit where the primary input unit is located based on these two sampling signals, thereby improving the output stability of the power supply. The third sampling signal is collected by a collection device (group) connected to the primary input unit and can be a voltage or current signal.

[0201] In some examples, the step of controlling the current flowing through the primary input unit based on the first sampling signal and the third sampling signal includes: controlling the circuit where the primary input unit is located to be turned on based on the first sampling signal, and controlling the circuit where the primary input unit is located to be turned off based on the first sampling signal and the third sampling signal. Here, this step can be based on the following example: Figure 3-5 The circuit structure of the power management circuit provided in the related description is used for execution and will not be described in detail here.

[0202] In some applications, a power supply circuit implementing any of the power supply methods provided in the above examples can be used in a smart switch with a switching circuit. Steps S110-S130 in the power supply method can enable the power supply circuit to provide power while the switching circuit is off. To enable the power supply circuit to continue providing power while the switching circuit is on, the power supply method further includes steps S140 and S150.

[0203] In step S140 , while the switch circuit is on, the switch circuit is selectively connected to a first circuit or a second circuit to respectively form a power-on loop of the switch circuit.

[0204] Here, a selection circuit in the power supply circuit controls the output end of the switching circuit to switch between the first and second circuits, so that the load and the switching circuit form corresponding power circuits via the first and second circuits in a time-sharing manner. The rectifier circuit is provided on the second circuit and receives an AC signal while the second circuit is connected to the power circuit, and outputs a corresponding rectified signal. To distinguish it from the rectified signal received during the switching circuit's off state, the rectified signal received during the switching circuit's on state is referred to as the second rectified signal.

[0205] In some examples, step S140 includes: sampling the electrical signal in the second circuit for reflecting the AC signal or sampling the power supply signal of the power supply to generate a second sampling signal; and controlling the selection circuit to switch between the first circuit and the second circuit based on the detection result obtained by detecting the second sampling signal.

[0206] Here, the shunt control module in the power management circuit can detect the phase of the second rectified electrical signal by detecting the voltage of the second rectified electrical signal. The step S140 includes: comparing the voltage of the second sampling signal with the reference voltage interval and generating a corresponding comparison result; based on the comparison result, selecting the switch circuit to connect to the first line or the second line; wherein the rectifier circuit is located in the second line; the neutral line of the AC power is located in the first line. Reference voltage interval Reference voltage interval Reference voltage interval

[0207] Here, this step can be performed by the selection circuit and the branch control module in the power supply circuit. The structure of the selection circuit and the working process of the selection circuit and the branch control module can be as follows: Figure 7-11 The corresponding description implementation will not be described in detail here.

[0208] In some examples, when the comparison result indicates that the voltage of the second sampling signal does not fall within a preset reference voltage range, the switch circuit is switched from accessing the second line to accessing the first line; otherwise, the switch circuit is switched from accessing the first line to accessing the second line. Taking the rectifier circuit as a full-wave rectifier circuit as an example, when the voltage of the AC power falls within a preset reference voltage range, the selection circuit immediately selects the second line based on a time-sharing control signal, and when the voltage of the AC power exceeds the reference voltage range, the selection circuit immediately selects the first line based on the time-sharing control signal.

[0209] In some further examples, the method of selecting the switching circuit to be connected to the second circuit where the rectifier circuit is located in step S140 includes: timing based on the received comparison result, and adjusting the shunt control signal to control the selection circuit to switch from the first circuit to the second circuit when the timing reaches a timing threshold. For example, the selection circuit in the power supply circuit is connected to the second circuit by default. When the shunt control module detects that the voltage of the second rectified electrical signal exceeds the reference voltage interval, the selection circuit is controlled to switch from the second circuit to the first circuit; and a timing is started. When the timing reaches the timing threshold, the shunt control module adjusts the shunt control signal to control the selection circuit to switch from the first circuit to the second circuit. The timing threshold is related to the length of time the output module maintains the power supply voltage. For example, the transformer circuit and the power management circuit maintain a power supply voltage of t milliseconds to the power supply based on the second rectified electrical signal within the received phase interval, and the timing threshold may be less than or equal to t milliseconds. The circuit structure and working process of the shunt control module may be as follows. Figure 9-11 and its related descriptions are shown and will not be described in detail here.

[0210] On this basis, the method of selecting the switch circuit to connect to the second line where the rectifier circuit is located in step S140 includes: when the timing reaches a timing threshold, according to the current phase of the AC power, delaying or immediately executing the switching operation of the switch circuit from connecting to the first line to connecting to the second line. Here, in order to maximize the efficiency of the active power of the AC power, the structure of the selection circuit is related to the rectifier circuit, load, etc. in this application. Here, this step can be combined with the aforementioned Figure 8-10 The corresponding description implementation will not be described in detail here.

[0211] In step S150 , when the selection circuit switches to the second line, power is provided to a power supply via the rectified electrical signal.

[0212] In some examples, when the selection circuit switches to the second line, power is provided by connecting the primary input unit and the secondary output unit of the rectifier circuit. Figure 8-10 The circuit structure and working process of the voltage conversion circuit and power management circuit described in the related description will not be described in detail here.

[0213] In other examples, when the selection circuit switches to the second line, the output module in the power management circuit provides power to the power supply. Figure 11 The circuit structure and working process of the power management circuit described in the related description will not be described in detail here.

[0214] While the power supply circuit is executing the power supply method, the power supply method further includes: maintaining self-power supply using the power supply source and / or the AC power signal. In some examples, the power management circuit in the power supply circuit uses a first self-power supply circuit to self-power the power management circuit. In other examples, when the switch circuit is off, the power management circuit in the power supply circuit uses the first self-power supply circuit to self-power the power management circuit; and when the switch circuit is on, the power management circuit in the power supply circuit uses a second self-power supply circuit to self-power the power management circuit. The first self-power supply circuit and the second self-power supply circuit can be as shown in the corresponding circuits mentioned above and will not be described in detail here.

[0215] During the execution of the power supply method, the power supply circuit further performs a step of detecting the phase of the current AC power signal based on the zero-crossing phase interval and outputting a zero-crossing detection signal. Here, this step can be performed using the zero-crossing detection circuit in the power supply circuit and will not be described in detail here.

[0216] In summary, the power supply circuit, chip, intelligent switch, and power supply method provided by the present application achieve low-energy stable power supply inside the chip through the flyback power supply method of the transformer circuit. In addition, the common grounding method of the primary input unit and the secondary output unit of the transformer circuit greatly improves the mutual inductance efficiency. Furthermore, the power management circuit uses the first sampling signal fed back by the secondary output unit to control the current in the primary input unit, effectively improving the accuracy of the stable power supply of the power supply.

[0217] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical concepts disclosed in this application shall be covered by the claims of this application.

Claims

1. A power supply circuit for supplying power to a power supply by means of a rectified electrical signal output by a rectifier circuit, characterized in that: The power supply circuit comprises: A voltage conversion circuit, comprising a primary input unit and a secondary output unit, wherein the primary input unit is connected to the rectifier circuit, the secondary output unit is used to supply power to the power supply, and the primary input unit and the secondary output unit of the voltage conversion circuit share a common ground; a power management circuit connected to the primary input unit and acquiring a first sampling signal reflecting the power supply signal output by the power supply, and controlling the on / off state or current change of a line between the primary input unit and the voltage ground based on the first sampling signal, thereby controlling the current flowing through the primary input unit so as to stabilize the power supply provided by the secondary output unit; a first self-powered circuit, configured to supply power to the power management circuit via the power supply; The power management circuit further obtains a third sampling signal for reflecting a line electrical signal in a line where the primary input unit is located, and controls a current flowing through the primary input unit based on the first sampling signal and the third sampling signal.

2. The power supply circuit according to claim 1, wherein: The power management circuit includes: A regulating module is located on the line between the primary input unit and the voltage ground, and is used to control the on / off state or current change of the line between the primary input unit and the voltage ground; A first control module is connected to the regulating module and is configured to control the regulating module based on the first sampling signal.

3. The power supply circuit according to claim 2, wherein: The first control module includes: a detection submodule, configured to output a detection signal by detecting the first sampling signal; The control submodule is connected to the detection submodule and is used to control the adjustment module based on the detection signal.

4. The power supply circuit according to claim 3, wherein: The detection submodule includes any of the following: a comparison subcircuit, configured to compare the voltage of the first sampling signal with a preset reference voltage, and output a detection signal based on a comparison result; The differential subcircuit is configured to generate an error signal representing a voltage difference between the voltage of the first sampling signal and a preset reference voltage, and output a detection signal based on the error signal.

5. The power supply circuit according to claim 3, wherein: The control submodule controls at least one of the current change frequency, on-off frequency, on-time, and off-time of the regulation module based on the detection signal.

6. The power supply circuit according to claim 1, wherein: The power management circuit controls the line where the primary input unit is located to be turned on based on the first sampling signal, and controls the line where the primary input unit is located to be turned off based on the first sampling signal and the third sampling signal.

7. The power supply circuit according to claim 1, wherein: The power management circuit includes: A regulating module is located on the line between the primary input unit and the voltage ground, and is used to control the on / off state or current change of the line between the primary input unit and the voltage ground; The second control module is connected to the regulating module and is used to control the on-time of the regulating module based on the first sampling signal, and to control the off-time of the regulating module based on the first sampling signal and a third sampling signal.

8. The power supply circuit according to claim 7, wherein: The second control module includes: a conduction control subcircuit, configured to detect the acquired first sampling signal and obtain a corresponding detection signal, and output a clock signal according to the voltage of the obtained detection signal; wherein the frequency of the clock signal is related to the voltage of the obtained detection signal; a disconnection control subcircuit, configured to compare the third sampling signal with the detection signal output by the conduction control subcircuit, and output a logic signal corresponding to the comparison result; A control logic sub-circuit is used to control the adjustment module to be turned on or off based on the clock signal and a logic signal corresponding to the comparison result.

9. The power supply circuit according to claim 1, wherein: The power management circuit further includes: The third protection module is used to detect an electrical signal reflecting the power supply signal of the power supply, and provide circuit protection for the power management circuit according to the detection result.

10. The power supply circuit according to claim 1, wherein: The secondary output unit includes: a secondary winding connected to a voltage ground, and a unidirectional conduction module connected to an output end of the secondary winding.

11. The power supply circuit according to claim 10, wherein: The unidirectional conduction module includes a diode, or the diode and a capacitor connected between the diode and a voltage ground.

12. The power supply circuit according to claim 1, wherein: It also includes a first self-powered circuit, which is used to supply power to the power management circuit by means of the power supply when the switch circuit connected to the rectifier circuit is disconnected.

13. The power supply circuit according to claim 12, wherein: The first self-power supply circuit includes a diode connected to the output end of the secondary output unit, and a capacitor connected between the diode and a voltage ground.

14. The power supply circuit according to claim 1, wherein: Also includes: The first sampling circuit is connected between the secondary output unit and the power management circuit, and is used to sample the output side of the secondary output unit and generate a first sampling signal.

15. The power supply circuit according to any one of claims 1 to 14, characterized in that: The rectifier circuit is connected to a switch circuit and rectifies the alternating current flowing to the switch circuit during the off period of the switch circuit to obtain a first rectified electrical signal; wherein the first rectified electrical signal is a type of the rectified electrical signal; The power management circuit is electrically connected to the primary input unit, and is configured to obtain the first sampling signal during a period when the switch circuit is disconnected, and control a current flowing through the primary input unit based on the first sampling signal.

16. The power supply circuit according to claim 15, wherein: Also includes: A selection circuit is provided on the AC line on the output end side of the switching circuit, for selecting whether to connect the switching circuit to the first line or the second line during the conduction period of the switching circuit, so as to form a corresponding power-on circuit respectively; When the selection circuit switches to the second line, the power management circuit converts the acquired rectified electrical signal into a power supply signal of the power supply to continue supplying power to the power supply.

17. The power supply circuit according to claim 16, wherein: The device further includes a second sampling circuit for sampling an electrical signal reflecting an AC signal in the second circuit or a power supply signal of a power supply to generate a second sampling signal and output the second sampling signal to the power management circuit; correspondingly, the power management circuit includes: The shunt control module is connected to the selection circuit and is used to output a shunt control signal to the selection circuit by detecting the second sampling signal, so as to control the selection circuit to switch between the first circuit and the second circuit.

18. The power supply circuit according to claim 17, wherein: The branch control module includes: a comparison sub-circuit, configured to compare the voltage of the second sampling signal with a reference voltage interval and generate a corresponding comparison result; The control subcircuit is connected to the comparison subcircuit and is used to output the branch control signal based on the comparison result to control the selection circuit to switch from the second circuit to the first circuit.

19. The power supply circuit according to claim 18, wherein: The control subcircuit includes: a timer for timing based on the received comparison result, and adjusting the branch control signal to control the selection circuit to switch from the first line to the second line when the timing reaches a timing threshold.

20. The power supply circuit according to claim 19, wherein: The timing threshold is a fixed time threshold, or is set according to the duration of time that the selection circuit selects the first line in at least one switching cycle.

21. The power supply circuit according to claim 18, wherein: The reference voltage interval includes: a zero-crossing voltage interval.

22. The power supply circuit according to claim 16, wherein: The selection circuit includes: The switch unit is provided on the AC line and is used to be controlled to be disconnected based on the received shunt control signal so that the switch circuit is connected to the second line, and to be controlled to be turned on based on the shunt control signal so that the switch circuit is connected to the first line.

23. The power supply circuit according to claim 22, wherein: The selection circuit further includes a phase limiting unit, which, when the switch unit is disconnected, delays or immediately performs a switching operation of switching the switch circuit from accessing the first line to accessing the second line according to the phase of the current AC power.

24. The power supply circuit according to claim 17, wherein: The power management circuit further includes: The first protection module is configured to detect the voltage of the second sampling signal and control the selection circuit to switch from the second circuit to the first circuit when the voltage of the second sampling signal is higher than a preset protection voltage threshold.

25. The power supply circuit according to claim 16, wherein: The power management circuit further includes: a second protection module, configured to provide overcurrent protection for the power supply.

26. The power supply circuit according to claim 1, wherein: Also includes: The zero-crossing detection circuit is used to detect the phase of the current AC power signal based on the zero-crossing phase interval and output a zero-crossing detection signal.

27. A chip for controlling a voltage conversion circuit connected to a rectifier circuit, wherein: The voltage conversion circuit includes a primary input unit and a secondary output unit, wherein the primary input unit is connected to the rectifier circuit, and the secondary output unit is used to supply power to the power supply. It is characterized in that the primary input unit and the secondary output unit of the voltage conversion circuit share a common ground, and the chip includes: A first pin connected to the primary input unit of the transformer circuit; A second pin is used to obtain a first sampling signal reflecting the power supply signal output by the power supply; The power management circuit and the first self-powered circuit of the power supply circuit according to any one of claims 1 to 12 are connected to the primary input unit of the transformer circuit through the first pin, and obtain the first sampling signal through the second pin.

28. The chip according to claim 27, characterized in that A first sampling circuit is also integrated, and the first sampling circuit is connected to the secondary output unit through the second pin, and is used to sample the output side of the secondary output unit and generate a first sampling signal; or the chip is connected to the first sampling circuit through the second pin, and the first sampling circuit is also connected to the secondary output unit.

29. The chip according to claim 27 or 28, characterized in that The rectifier circuit is connected to a switch circuit and rectifies the alternating current flowing to the switch circuit during an off period of the switch circuit to obtain a first rectified electrical signal; and the rectified electrical signal received by the primary input unit includes the first rectified electrical signal; The power management circuit is used to obtain the first sampling signal during the period when the switch circuit is turned off, and to control the current flowing through the primary input unit based on the first sampling signal.

30. The chip according to claim 29, characterized in that The device further includes a third pin for connecting to a selection circuit provided on an AC line on the output side of the switching circuit; wherein the selection circuit is used to select whether the switching circuit is connected to the first line or the second line during the conduction period of the switching circuit, so as to respectively form a power-on circuit of the AC line; When the power management circuit controls the selection circuit to switch to the second line through the third pin, the power management circuit converts the acquired rectified electrical signal into a power supply signal to continue to supply power to the power supply.

31. The chip according to claim 30, characterized in that The chip further includes a fourth pin for connecting to a second sampling circuit; wherein the second sampling circuit is used to sample the electrical signal reflecting the AC signal in the second circuit or to sample the power supply signal of the power supply to generate a second sampling signal and output it to the power management circuit; or the second sampling circuit is integrated in the chip and connected to the rectifier circuit or the power supply through the fourth pin; Correspondingly, the power management circuit includes: a shunt control module connected to the selection circuit, for outputting a shunt control signal to the selection circuit by detecting the second sampling signal, so as to control the selection circuit to switch between the first circuit and the second circuit.

32. The chip according to claim 31, characterized in that The branch control module includes: a comparison sub-circuit, configured to compare the voltage of the second sampling signal with a reference voltage interval and generate a corresponding comparison result; The control subcircuit is connected to the comparison subcircuit and is used to output the branch control signal based on the comparison result to control the selection circuit to switch from the second circuit to the first circuit.

33. The chip according to claim 32, characterized in that The control subcircuit includes: a timer for timing based on the received comparison result, and adjusting the branch control signal when the timing times out to control the selection circuit to switch from the first line to the second line.

34. The chip according to claim 32, characterized in that The reference voltage interval includes: a zero-crossing voltage interval.

35. The chip according to claim 31, characterized in that The selection circuit is also integrated, and the selection circuit includes: The switch unit is provided on the AC line and is used to be controlled to be disconnected based on the received shunt control signal so that the switch circuit is connected to the second line, and to be controlled to be turned on based on the shunt control signal so that the switch circuit is connected to the first line.

36. The chip according to claim 35, characterized in that The selection circuit further includes: a phase limiting unit connected in parallel with the switch unit, configured to limit the conduction time of the first line based on the AC phase when switching to the first line.

37. The chip according to claim 31, characterized in that The power management circuit further includes: The first protection module is configured to detect the voltage of the second sampling signal and control the selection circuit to switch from the second circuit to the first circuit when the voltage of the second sampling signal is higher than a preset protection voltage threshold.

38. The chip according to claim 30, characterized in that The power management circuit further includes: a second protection module, configured to provide overcurrent protection for the power supply.

39. The chip according to claim 27, characterized in that Also includes: The zero-crossing detection circuit is used to obtain an electrical signal reflecting the current AC signal through a chip pin, detect the phase of the electrical signal based on a zero-crossing phase interval, and output a zero-crossing detection signal.

40. An intelligent switch, characterized in that: Used to connect to an AC line where a load is located, the intelligent switch includes: A switch circuit, connected to the AC line and controlled to be turned on or off; a rectifier circuit for rectifying the incoming alternating current and outputting a rectified electrical signal during both the off and on periods of the switching circuit; The power supply circuit according to any one of claims 1 to 26, connected to the rectifier circuit, and configured to supply power to a power supply using the acquired rectified electrical signal; The control circuit at least controls the switch circuit to be turned on or off under the power supply of the power supply.

41. The intelligent switch according to claim 40, characterized in that: The rectifier circuit includes at least one of the following: a first rectifier unit connected to the AC line connected to the input end of the switching circuit, for rectifying the AC power flowing to the switching circuit and outputting a first rectified electrical signal; wherein the first rectified electrical signal is a rectified electrical signal provided by the rectifier circuit; The second rectifier unit is connected to the AC line connected to the output end of the switching circuit, and is used to rectify the connected AC power and output a second rectified electrical signal; wherein the second rectified electrical signal is another rectified electrical signal provided by the rectifier circuit.

42. The intelligent switch according to claim 41, characterized in that: The rectifier circuit includes a first rectifier unit and a second rectifier unit; wherein the first rectifier unit provides a first rectified electrical signal during the off period of the switch circuit, and the second rectifier unit provides the second rectified electrical signal during the on period of the switch circuit.

43. The intelligent switch according to claim 41, characterized in that The first rectifier unit and the second rectifier unit both include a rectifier bridge and a filter capacitor; wherein the conduction voltage of the rectifier bridge in the first rectifier unit is higher than the conduction voltage of the rectifier bridge in the second rectifier unit.

44. The intelligent switch according to claim 40, characterized in that The switch circuit includes a relay; the relay is provided with power supply via the power circuit.

45. A power supply method for supplying power to a power supply by using a rectified electrical signal output by a rectifier circuit, characterized in that: include: Providing power supply by connecting a primary input unit and a secondary output unit of the rectifier circuit, wherein the primary input unit and the secondary output unit share a common ground; Acquire a first sampling signal reflecting a power supply signal output by the power supply; Controlling the on / off state or current change of the line between the primary input unit and the voltage ground based on the first sampling signal, thereby controlling the current flowing through the primary input unit, so that the power supply provided by the secondary output unit is stable, and power is supplied to the power supply circuit connected to the primary input unit by means of the secondary output unit; The step of controlling the current flowing through the primary input unit based on the first sampling signal includes: Acquire a third sampling signal for reflecting a line electrical signal in the line where the primary input unit is located; The current flowing through the primary input unit is controlled based on the first sampling signal and the third sampling signal.

46. ​​The power supply method according to claim 45, wherein: The step of controlling the current flowing through the primary input unit based on the first sampling signal includes any one of the following: Comparing the voltage of the first sampling signal with a preset reference voltage, and controlling the on / off state or current change of the circuit between the primary input unit and the voltage ground based on the comparison result; An error signal representing the voltage difference between the voltage of the first sampling signal and a preset reference voltage is generated, and the on / off state or current change of the line between the primary input unit and the voltage ground is controlled based on the error signal.

47. The power supply method according to claim 46, wherein: The step of controlling the on / off state or current change of the circuit between the primary input unit and the voltage ground includes: controlling at least one of the current change frequency in the circuit where the primary input unit is located, the on / off frequency of the circuit where the primary input unit is located, the on-time of the circuit where the primary input unit is located, and the off-time of the circuit where the primary input unit is located based on a comparison result of the voltage of the first sampling signal and a preset reference voltage or an error signal of the voltage difference between the two.

48. The power supply method according to claim 45, wherein: The step of controlling the current flowing through the primary input unit based on the first sampling signal and the third sampling signal includes: Controlling the conduction of the circuit where the primary input unit is located based on the first sampling signal; and The circuit where the primary input unit is located is controlled to be disconnected based on the first sampling signal and the third sampling signal.

49. The power supply method according to claim 45, wherein: Also includes: The step of maintaining self-powering by utilizing the power supply and / or the AC signal.

50. The power supply method according to any one of claims 45 to 49, characterized in that: The rectifier circuit is connected to a switching circuit, and rectifies the alternating current flowing to the switching circuit to obtain a first rectified electrical signal during a period when the switching circuit is disconnected, and the rectified electrical signal received by the primary input unit includes the first rectified electrical signal; the method is performed during a period when the switching circuit is disconnected.

51. The power supply method according to claim 50, characterized in that: Also includes: During the conduction period of the switch circuit, the switch circuit is selectively connected to the first circuit or the second circuit to respectively form a power-on loop of the switch circuit; When switching to the second line, the rectified electrical signal is used to provide power to the power supply.

52. The power supply method according to claim 51, wherein: The step of selecting the switching circuit to be connected to the first circuit or the second circuit during the conduction period of the switching circuit comprises: sampling the electrical signal reflecting the alternating current signal in the second circuit or sampling the power supply signal of the power supply to generate a second sampling signal; Switching is performed between the first line and the second line based on a detection result obtained by detecting the second sampling signal.

53. The power supply method according to claim 52, wherein: The step of switching between the first circuit and the second circuit based on a detection result obtained by detecting the second sampling signal includes: comparing the voltage of the second sampling signal with a reference voltage interval and generating a corresponding comparison result; Based on the comparison result, the switch circuit is selected to be connected to the first line or the second line; wherein the rectifier circuit is located in the second line; and the neutral line of the alternating current is located in the first line.

54. The power supply method according to claim 53, wherein: The step of selecting the switch circuit to be connected to the first line or the second line comprises: Based on the comparison result, the switching circuit is switched from accessing the second line to accessing the first line.

55. The power supply method according to claim 53, wherein: The step of selecting whether the switch circuit is connected to the first line or the second line includes: timing based on the received comparison result, and controlling the selection circuit arranged on the AC line on the output end side of the switch circuit to switch from the first line to the second line when the timing reaches a timing threshold.

56. The power supply method according to claim 55, characterized in that: The step of selecting the switch circuit to access the first line or the second line includes: when the timing reaches a timing threshold, according to the phase of the current AC power, delaying or immediately executing the switching operation of switching the switch circuit from accessing the first line to accessing the second line.

57. The power supply method according to claim 45, wherein: The method also includes the steps of detecting the phase of the current AC power signal based on the zero-crossing phase interval and outputting a zero-crossing detection signal.

Citation Information

Patent Citations

  • Intelligent single live wire switch

    CN105093988A

  • Voltage tracking retainer on the basis of single-phase inversion

    CN105591459A

  • Power supply circuit, chip and intelligent switch

    CN209844850U