Power circuit, chip, intelligent switch and power supply method

文档序号:1299783 发布日期:2020-08-07 浏览:4次 中文

阅读说明:本技术 电源电路、芯片、智能开关及电源供电方法 (Power circuit, chip, intelligent switch and power supply method ) 是由 孙顺根 江儒龙 郜小茹 于 2019-01-31 设计创作,主要内容包括:本申请提供一种电源电路、芯片、智能开关及电源供电方法。其中的电源电路,用于藉由整流电路所输出的整流电信号为一供电电源供电,所述电源电路包括:变压电路,包含原边输入单元和副边输出单元,其中所述原边输入单元连接所述整流电路,所述副边输出单元用于向所述供电电源供电;电源管理电路,连接所述原边输入单元并获取用于反映所述供电电源所输出的供电信号的第一采样信号,并基于所述第一采样信号控制流经所述原边输入单元中的电流,以便所述副边输出单元所提供的供电稳定。本申请藉由变压电路的反激式供电方式,实现芯片内部低能耗的稳定供电。(The application provides a power supply circuit, a chip, an intelligent switch and a power supply method. The power circuit is used for supplying power to a power supply by the rectified electrical signal output by the rectifying circuit, and comprises: the voltage transformation circuit comprises a primary side input unit and a secondary side output unit, wherein the primary side input unit is connected with the rectifying circuit, and the secondary side output unit is used for supplying power to the power supply; and the power supply management circuit is connected with the primary side input unit, acquires a first sampling signal for reflecting a power supply signal output by the power supply, and controls the current flowing through the primary side input unit based on the first sampling signal so as to stabilize the power supply provided by the secondary side output unit. This application is through the flyback power supply mode of vary voltage circuit, realizes the stable power supply of the inside low energy consumption of chip.)

1. A power circuit for supplying a power supply with a rectified electrical signal output from a rectifying circuit, the power circuit comprising:

the voltage transformation circuit comprises a primary side input unit and a secondary side output unit, wherein the primary side input unit is connected with the rectifying circuit, and the secondary side output unit is used for supplying power to the power supply;

and the power supply management circuit is connected with the primary side input unit, acquires a first sampling signal for reflecting a power supply signal output by the power supply, and controls the current flowing through the primary side input unit based on the first sampling signal so as to stabilize the power supply provided by the secondary side output unit.

2. The power supply circuit of claim 1, wherein the power management circuit comprises:

the adjusting module is positioned on a line between the primary side input unit and a voltage ground and is used for controlling the on-off or current change of the line between the primary side input unit and the voltage ground;

and the first control module is connected with the adjusting module and used for controlling the adjusting module based on the first sampling signal.

3. The power supply circuit of claim 2, wherein the first control module comprises:

the detection submodule is used for outputting a detection signal by detecting the first sampling signal;

and the control submodule is connected with the detection submodule and used for controlling the adjusting module based on the detection signal.

4. The power supply circuit of claim 3, wherein the detection submodule comprises any of:

the comparison sub-circuit is used for comparing the voltage of the first sampling signal with a preset reference voltage and outputting a detection signal based on the comparison result;

and the differential sub-circuit is used for generating an error signal of a voltage difference between the voltage of the first sampling signal and a preset reference voltage and outputting a detection signal based on the error signal.

5. The power supply circuit of claim 3, wherein the control sub-module controls at least one of a current change frequency, an on-off frequency, an on-time, and an off-time of the regulating module based on the detection signal.

6. The power supply circuit of claim 1, wherein the power management circuit further obtains a third sampling signal reflecting a line electrical signal in a line of the primary side input unit, and controls a current flowing through the primary side input unit based on the first sampling signal and the third sampling signal.

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

8. The power supply circuit of claim 6, wherein the power management circuit comprises:

the adjusting module is positioned on a line between the primary side input unit and a voltage ground and is used for controlling the on-off or current change of the line between the primary side input unit and the voltage ground;

and the second control module is connected with the adjusting module and used for controlling the on-time of the adjusting module based on the first sampling signal and controlling the off-time of the adjusting module based on the first sampling signal and the third sampling signal.

9. The power supply circuit of claim 8, wherein the second control module comprises:

the conduction control sub-circuit is used for detecting the acquired first sampling signal, acquiring a corresponding detection signal and outputting a clock signal according to the voltage of the acquired detection signal; wherein the frequency of the clock signal is related to the voltage of the resulting detection signal;

the off control sub-circuit is used for comparing the third sampling signal with the detection signal output by the on control sub-circuit and outputting a logic signal corresponding to the obtained comparison result;

and the control logic sub-circuit is used for controlling the adjustment module to be switched on or switched off based on the clock signal and the logic signal corresponding to the comparison result.

10. The power supply circuit of claim 1, wherein the power management circuit further comprises:

and the third protection module is used for detecting an electric signal for reflecting a power supply signal of the power supply and providing circuit protection for the power management circuit according to a detection result.

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

12. The power supply circuit of claim 11, wherein the unidirectional conducting module comprises a diode, or the diode and a capacitor connected between the diode and a voltage ground.

13. The power supply circuit of claim 1, further comprising a first self-powered circuit for providing power to the power management circuit via the power supply during an off period of the switching circuit.

14. The power supply circuit of claim 13, wherein the first self-powered circuit comprises a diode coupled to the output of the secondary output unit and a capacitor coupled between the diode and a voltage ground.

15. The power supply circuit according to claim 1, further comprising: and the first sampling circuit is connected between the secondary output unit and the power management circuit and used for sampling the output side of the secondary output unit and generating a first sampling signal.

16. The power supply circuit according to any one of claims 1 to 15, wherein the rectifying circuit is connected to a switching circuit and rectifies an alternating current flowing to the switching circuit to obtain a first rectified electrical signal during a period in which the switching circuit is turned off; wherein said first rectified electrical signal is one of said rectified electrical signals;

the power management circuit is electrically connected with the primary side input unit and used for acquiring the first sampling signal during the disconnection period of the switch circuit and controlling the current flowing through the primary side input unit based on the first sampling signal.

17. The power supply circuit of claim 16, further comprising: and the selection circuit is arranged on the alternating current line on the output end side of the switch circuit and is used for selecting the switch circuit to be connected into the first line or the second line during the conduction period of the switch circuit so as to respectively form a corresponding electrifying loop.

And when the selection circuit is switched to the second circuit, the power management circuit converts the acquired rectification electric signal into a power supply signal of a power supply so as to continuously supply power to the power supply.

18. The power supply circuit of claim 17, further comprising a second sampling circuit for sampling an electrical signal reflecting the ac electrical signal in the second line or a power supply signal of a power supply to generate a second sampled signal and output to the power management circuit; correspondingly, the power management circuit comprises:

and the shunt control module is connected with the selection circuit and used 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 line and the second line.

19. The power supply circuit of claim 18, wherein the shunt control module comprises:

the comparison sub-circuit is used for comparing the voltage of the second sampling signal with a reference voltage interval and generating a corresponding comparison result;

and the control sub-circuit is connected with the comparison sub-circuit and used for outputting the shunt control signal based on the comparison result so as to control the selection circuit to switch from the second line to the first line.

20. The power supply circuit of claim 19, wherein the control subcircuit comprises: and the timer is used for timing based on the received comparison result and adjusting the shunt control signal to control the selection circuit to switch from the first line to the second line when the timing reaches a timing threshold value.

21. The power supply circuit of claim 20, wherein the timing threshold is a fixed time threshold or is set based on a length of time that the selection circuit selects the first line during at least one switching cycle.

22. The power supply circuit of claim 19, wherein the reference voltage interval comprises: zero crossing voltage interval.

23. The power supply circuit of claim 17, wherein the selection circuit comprises:

and the switch unit is arranged on the alternating current circuit and is controlled to be switched off based on the received shunt control signal so as to enable the switch circuit to be communicated with the second circuit and switched on based on the shunt control signal so as to enable the switch circuit to be communicated with the first circuit.

24. The power supply circuit of claim 23, wherein the selection circuit further comprises: and a phase limiting unit which delays or immediately performs a switching operation of switching the switching circuit from accessing the first line to accessing the second line according to the phase of the current alternating current when the switching unit is turned off.

25. The power supply circuit of claim 18, wherein the power management circuit further comprises:

and the first protection module is used for detecting the voltage of the second sampling electric signal and controlling the selection circuit to be switched from the second line to the first line when the voltage of the second sampling electric signal is higher than a preset protection voltage threshold value.

26. The power supply circuit of claim 17, wherein the power management circuit further comprises: and the second protection module is used for providing overcurrent protection for the power supply.

27. The power supply circuit according to claim 1, further comprising: and the zero-crossing detection circuit is used for detecting the phase of the current alternating current signal based on the zero-crossing phase region and outputting a zero-crossing detection signal.

28. A chip is used for controlling a transformation circuit connected with a rectification circuit, wherein the transformation circuit comprises a primary input unit and a secondary output unit, the primary input unit is connected with the rectification circuit, and the secondary output unit is used for supplying power to a power supply, and the chip is characterized by comprising:

the first pin is connected with a primary side input unit of the voltage transformation circuit;

the second pin is used for acquiring a first sampling signal for reflecting a power supply signal output by the power supply;

the power management circuit according to any of claims 1-13, wherein the primary input unit of the transformer circuit is connected via the first pin, and the first sampled signal is obtained via the second pin.

29. The chip of claim 28, further integrated with a first sampling circuit, connected to the secondary side output unit through the second pin, for sampling an output side of the secondary side output unit and generating a first sampling signal; or the chip is connected with the first sampling circuit through the second pin, and the first sampling circuit is also connected with the secondary output unit.

30. The chip according to claim 28 or 29, wherein the rectifying circuit is connected to a switching circuit, and rectifies an alternating current flowing to the switching circuit during an off period of the switching circuit to obtain a first rectified electrical signal; and the rectified electrical signal received by the primary side input unit comprises the first rectified electrical signal;

the power management circuit is used for acquiring the first sampling signal during the switching-off period of the switching circuit and controlling the current flowing through the primary side input unit based on the first sampling signal.

31. The chip of claim 30, further comprising a third pin for connecting a selection circuit provided on an alternating current line on an output side of the switching circuit; the selection circuit is used for selecting the switch circuit to be connected to the first line or the second line during the conduction period of the switch circuit so as to respectively form an electrifying loop of the alternating current line;

when the power management circuit controls the selection circuit to be switched to the second circuit through the third pin, the power management circuit converts the obtained rectification electric signal into a power supply signal so as to continuously supply power to the power supply.

32. The chip of claim 31, further comprising a fourth pin for connecting to a second sampling circuit; the second sampling circuit is used for sampling an electric signal used for reflecting an alternating current signal in the second line or a power supply signal of a power supply to generate a second sampling signal and outputting the second sampling signal to the power supply management circuit; or the second sampling circuit is integrated in the chip and is connected with the rectifying circuit or the power supply through a fourth pin;

correspondingly, the power management circuit comprises: and the shunt control module is connected with the selection circuit and used 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 line and the second line.

33. The chip of claim 32, wherein the shunt control module comprises:

the comparison sub-circuit is used for comparing the voltage of the second sampling signal with a reference voltage interval and generating a corresponding comparison result;

and the control sub-circuit is connected with the comparison sub-circuit and used for outputting the shunt control signal based on the comparison result so as to control the selection circuit to switch from the second line to the first line.

34. The chip of claim 33, wherein the control subcircuit comprises: and the timer is used for timing based on the received comparison result and adjusting the shunt control signal to control the selection circuit to switch from the first line to the second line when the timing is overtime.

35. The chip of claim 33, wherein the reference voltage interval comprises: zero crossing voltage interval.

36. The chip of claim 32, further integrated with the selection circuit, the selection circuit comprising:

and the switch unit is arranged on the alternating current circuit and is controlled to be switched off based on the received shunt control signal so as to enable the switch circuit to be communicated with the second circuit and switched on based on the shunt control signal so as to enable the switch circuit to be communicated with the first circuit.

37. The chip of claim 36, wherein the selection circuit further comprises: and the phase limiting unit is connected with the switching unit in parallel and used for limiting the conduction time of the first line based on the alternating current phase when the first line is switched to.

38. The chip of claim 32, wherein the power management circuit further comprises:

and the first protection module is used for detecting the voltage of the second sampling electric signal and controlling the selection circuit to be switched from the second line to the first line when the voltage of the second sampling electric signal is higher than a preset protection voltage threshold value.

39. The chip of claim 1, wherein the power management circuit further comprises: and the second protection module is used for providing overcurrent protection for the power supply.

40. The chip of claim 28, further comprising: the zero-crossing detection circuit is used for acquiring an electric signal reflecting the current alternating current electric signal through a chip pin, detecting the phase of the electric signal based on a zero-crossing phase region and outputting a zero-crossing detection signal.

41. An intelligent switch for connecting to an ac line over which a load is located, the intelligent switch comprising:

the switching circuit is connected to the alternating current circuit and controlled to be switched on or off;

the rectification circuit is used for respectively rectifying the accessed alternating current and outputting a rectified electric signal in the off period and the on period of the switching circuit;

the power supply circuit as claimed in any one of claims 1-27, connected to said rectifying circuit for powering a power supply source by means of the obtained rectified electrical signal;

and the control circuit at least controls the switch circuit to be switched on or switched off under the power supply of the power supply source.

42. The intelligent switch of claim 41, wherein the rectifying circuit comprises at least one of:

the first rectifying unit is connected to an alternating current circuit connected to the input end of the switching circuit and used for rectifying alternating current 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 rectifying circuit;

the second rectifying unit is connected to an alternating current circuit connected to the output end of the switching circuit and used for rectifying the connected alternating current and outputting a second rectified electrical signal; wherein the second rectified electrical signal is another rectified electrical signal provided by the rectifying circuit.

43. The intelligent switch of claim 42, wherein the rectification circuit comprises a first rectification unit and a second rectification unit; wherein the first rectifying unit provides a first rectified electrical signal during the switching circuit being off, and the second rectifying unit provides the second rectified electrical signal during the switching circuit being on.

44. The intelligent switch of claim 42, wherein the first and second rectifying units each comprise a rectifier bridge and a filter capacitor; and the conduction voltage of the rectifier bridge in the first rectifying unit is higher than that of the rectifier bridge in the second rectifying unit.

45. The intelligent switch of claim 41, wherein the switching circuit comprises a relay; the relay provides power supply by the power circuit.

46. A power supply method for supplying power to a power supply source by a rectified electrical signal output by a rectification circuit, comprising:

the primary side input unit and the secondary side output unit which are connected into the rectifying circuit provide power supply;

acquiring a first sampling signal for reflecting a power supply signal output by the power supply;

and controlling the current flowing through the primary side input unit based on the first sampling signal so as to stabilize the power supply provided by the secondary side output unit.

47. The method of claim 46, wherein the step of controlling the current flowing through the primary input unit based on the first sampled signal comprises any one of:

comparing the voltage of the first sampling signal with a preset reference voltage, and controlling the on-off or current change of a line between the primary side input unit and a voltage ground based on a comparison result;

and generating an error signal of the voltage difference between the voltage of the first sampling signal and a preset reference voltage, and controlling the on-off or current change of a line between the primary side input unit and a voltage ground based on the error signal.

48. The method of claim 47, wherein the step of controlling the on/off or current change of the line between the primary input unit and the voltage ground comprises: and controlling at least one of the current change frequency of the line where the primary side input unit is located, the on-off time of the line where the primary side input unit is located and the off-off time of the line where the primary side input unit is located based on the detection signal.

49. The method of claim 46, wherein the step of controlling the current flowing through the primary input unit based on the first sampled signal comprises:

acquiring a third sampling signal for reflecting a line electric signal in a line on which the primary side input unit is positioned;

and controlling the current flowing through the primary side input unit based on the first sampling signal and the third sampling signal.

50. The method of claim 49, wherein the step of controlling the current flowing through the primary input unit based on the first sampled signal and the third sampled signal comprises:

controlling the conduction of a line where the primary side input unit is located based on the first sampling signal; and

and controlling the line where the primary side input unit is located to be disconnected based on the first sampling signal and the third sampling signal.

51. The method of claim 46, further comprising: maintaining self-power with the power supply and/or the alternating current signal.

52. A method as defined in any one of claims 46 to 51, wherein said rectifying circuit is connected to a switching circuit and rectifies an alternating current flowing to said switching circuit to obtain a first rectified electrical signal during an off period of said switching circuit, and wherein said rectified electrical signal received by said primary input unit comprises said first rectified electrical signal; the method is performed during the switching off of the switching circuit.

53. The power supply method of claim 52, further comprising:

selecting to connect the switch circuit into a first line or a second line during the conduction period of the switch circuit so as to respectively form a power-on loop of the switch circuit;

when the second circuit is switched to, the rectified electrical signal is used for providing power for a power supply.

54. A power supply method as claimed in claim 53, wherein the step of selecting the switching circuit to be switched into the first line or the second line during the time that the switching circuit is switched on comprises:

sampling an electric signal used for reflecting the alternating current signal in the second line or a power supply signal of a power supply source to generate a second sampling signal;

switching between the first line and the second line based on a detection result obtained by detecting the second sampling signal.

55. A power supply method as claimed in claim 54, wherein the step of switching between the first line and the second line based on the detection result obtained by detecting the second sampling signal comprises:

comparing the voltage of the second sampling signal with a reference voltage interval, and generating a corresponding comparison result;

selecting the switch circuit to be connected to a first line or a second line based on the comparison result; wherein the rectifying circuit is positioned on a second line; a zero line of alternating current is located on the first line.

56. A power supply method as claimed in claim 55, wherein said step of selecting whether to switch the switching circuit into the first line or into the second line comprises:

switching operation of the switching circuit from accessing the second line to accessing the first line based on the comparison result.

57. A power supply method as claimed in claim 55, wherein the step of selectively switching the switching circuit into the first line or into the second line comprises: and timing based on the received comparison result, and adjusting the shunt control signal to control the selection circuit to switch from the first line to the second line when the timing reaches a timing threshold.

58. A power supply method as claimed in claim 57, wherein said step of selecting said switching circuit to switch into said first line or into said second line comprises: when the timing reaches a timing threshold value, the switching operation of switching the switch circuit from accessing the first line to accessing the second line is delayed or immediately executed according to the phase of the current alternating current.

59. A power supply method according to claim 46, and further comprising the step of detecting the phase of the current AC signal based on a zero crossing phase interval, and outputting a zero crossing detection signal.

Technical Field

The present disclosure relates to the field of circuit control technologies, and in particular, to a power circuit, a chip, an intelligent switch, and a power supply method.

Background

The intelligent household appliance is a household appliance product formed by introducing a microprocessor, a sensor technology and a network communication technology into household appliance equipment, has the functions of automatically sensing the space state of a house, the self state of the household appliance and the service state of the household appliance, and can automatically control and receive control information of a house user in the house or in a remote place; meanwhile, the intelligent household appliance is used as a component of the intelligent home, and can be interconnected with other household appliances, homes and facilities in a house to form a system, so that the function of the intelligent home is realized.

At present, common remote control devices for intelligent household appliances, such as universal remote controllers and mobile terminals, all adopt a mode of integrating control information to realize control with household appliances, and do not relate to installation circuits of the intelligent household appliances. With the increase of the types of intelligent household appliances, a panel type intelligent switch integrates the control management of the intelligent household appliances and the traditional household appliances, so that the defect that a remote control device cannot control the traditional household appliances is overcome, and a new internal power supply problem is also generated.

Disclosure of Invention

In view of the above-mentioned shortcomings of the prior art, the present application aims to provide a power supply circuit, a chip, an intelligent switch and a power supply method, which are used for solving the problem of power supply inside the chip in the prior art.

To achieve the above and other related objects, a first aspect of the present application provides a power supply circuit for supplying a power supply source with a rectified electrical signal output from a rectification circuit, the power supply circuit comprising: the voltage transformation circuit comprises a primary side input unit and a secondary side output unit, wherein the primary side input unit is connected with the rectifying circuit, and the secondary side output unit is used for supplying power to the power supply; and the power supply management circuit is connected with the primary side input unit, acquires a first sampling signal for reflecting a power supply signal output by the power supply, and controls the current flowing through the primary side input unit based on the first sampling signal so as to stabilize the power supply provided by the secondary side output unit.

A 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, the primary input unit is connected to the rectifier circuit, the secondary output unit is configured to supply power to a power supply, and the chip includes: the first pin is connected with a primary side input unit of the voltage transformation circuit; the second pin is used for acquiring a first sampling signal for reflecting a power supply signal output by the power supply; the power management circuit according to the first aspect is connected to the primary side input unit of the transformer circuit through the first pin, and obtains the first sampling signal through the second pin.

A third aspect of the present application provides an intelligent switch for connecting to an ac line where a load is located, the intelligent switch comprising: the switching circuit is connected to the alternating current circuit and controlled to be switched on or off; the rectification circuit is used for respectively rectifying the accessed alternating current and outputting a rectified electric signal in the off period and the on period of the switching circuit; the power supply circuit of the first aspect, connected to the rectifying circuit, for supplying power to a power supply source by the obtained rectified electrical signal; and the control circuit at least controls the switch circuit to be switched on or switched off under the power supply of the power supply source.

A fourth aspect of the present application provides a power supply method for supplying power to a power supply source by a rectified electrical signal output by a rectification circuit, including: the primary side input unit and the secondary side output unit which are connected into the rectifying circuit provide power supply; acquiring a first sampling signal for reflecting a power supply signal output by the power supply; and controlling the current flowing through the primary side input unit based on the first sampling signal so as to stabilize the power supply provided by the secondary side output unit.

As described above, the power supply circuit, the chip, the intelligent switch and the power supply method of the present application have the following beneficial effects: by means of the flyback power supply mode of the voltage transformation circuit, stable power supply with low energy consumption in the chip is achieved. In addition, the mutual inductance efficiency is greatly improved in the mode that the primary side input unit and the secondary side output unit of the transformation circuit are grounded. In addition, the power management circuit controls the current in the primary side input unit by adopting the first sampling signal fed back by the secondary side output unit, and the accuracy of stable power supply of the power supply is effectively improved.

Drawings

Fig. 1 is a schematic circuit diagram of a power circuit according to an embodiment of the present invention.

Fig. 2 is a schematic circuit diagram of a power supply circuit according to an embodiment of the present invention.

Fig. 3 is a schematic circuit diagram of a power supply circuit according to another embodiment of the present invention.

Fig. 4 is a schematic circuit diagram of a power supply circuit according to another embodiment of the present invention.

Fig. 5 is a schematic circuit diagram of a power circuit according to another embodiment of the present invention.

Fig. 6 is a schematic circuit diagram of a power supply circuit according to another embodiment of the present invention.

Fig. 7 is a schematic circuit diagram illustrating the power circuit, the switch circuit and the load during the on period of the switch circuit according to the present invention.

Fig. 8 is a schematic circuit diagram of a power supply circuit according to another embodiment of the present invention.

Fig. 9 is a schematic circuit diagram of a power supply circuit according to another embodiment of the present invention.

Fig. 10 is a schematic circuit diagram of a power supply circuit according to another embodiment of the present invention.

Fig. 11 is a schematic circuit diagram of a power supply circuit according to another embodiment of the present invention.

Fig. 12 is a waveform diagram of a node of the circuit of fig. 11.

Fig. 13 is a schematic circuit diagram of a first zero-crossing detection unit in the zero-crossing detection circuit according to the present application.

Fig. 14 is a schematic circuit diagram of a power supply circuit according to another embodiment of the present invention.

Fig. 15 is a schematic circuit diagram of a second zero-crossing detection unit in the zero-crossing detection circuit according to an embodiment of the present invention.

Fig. 16 is a schematic circuit diagram of the zero-crossing detection circuit according to the present application.

Fig. 17 is a schematic diagram illustrating a frame structure of an intelligent switch according to an embodiment of the present invention.

Fig. 18 is a schematic circuit diagram of an intelligent switch according to an embodiment of the present invention.

Fig. 19 is a schematic circuit diagram of an intelligent switch according to another embodiment of the present invention.

Fig. 20 is a schematic circuit diagram of an intelligent switch according to another embodiment of the present invention.

Fig. 21 is a flowchart illustrating a power supply method according to an embodiment of the present invention.

Fig. 22 is a schematic circuit diagram of a zero-crossing detection circuit according to an embodiment of the present disclosure.

Detailed Description

The following description of the embodiments of the present application is provided for illustrative purposes, and other advantages and capabilities of the present application will become apparent to those skilled in the art from the present disclosure.

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

Also, 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 will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning 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 ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.

In order to handle various intelligent household appliances and traditional household appliances, the intelligent switch is internally compatible with a switch type control circuit of the traditional household appliance and a logic control circuit (which can correspond to the control circuit mentioned below) of the intelligent household appliance. Wherein the switch-mode control circuit comprises a switch circuit and a control circuit of the switch circuit. The switch circuit includes, for example, a relay (or a power transistor, etc.) and a driver thereof. The control circuit of the switching circuit comprises a control circuit for adjusting at least one of the on-time, the off-time and the on-off frequency of the switching circuit, and the like. The logic control circuit controls the corresponding electronic equipment by the indication content in the control information, so that the electronic equipment converts the corresponding working state according to the indicated content. Wherein, the control information includes but is not limited to at least one of the following: the indication contents such as on/off information, temperature information, duration information, timing information, mode information, position information, brightness information and the like which can be identified by the intelligent household appliance. The logic control circuit includes but is not limited to a processor, a signal transceiver, an external circuit, and the like. The processor includes, for example, a CPU, an FPGA, an MCU, or a chip integrated with any of the processors of the examples. The signal transceiver includes, but is not limited to, a short-distance communication module such as an RF communication module, a WiFi communication module, an infrared communication module, a bluetooth communication module, etc., a communication module that can access a wide area network such as an optical fiber, a broadband, etc., and a communication module that uses a mobile phone card to access a mobile network, etc. The external circuit includes but is not limited to: a power supply circuit for supplying operating power to the processor, the signal transceiver, etc., and other peripheral circuits, etc. Wherein the other peripheral circuits include, but are not limited to, at least one of: other first circuits which are not integrated in the chip and can provide preset electric signals to the chip, wherein the electric signals provided by the first circuits comprise sampling signals for example; and the second circuit is used for processing the electric signal output by the chip, wherein the second circuit is used for modulating, dividing, amplifying, filtering and the like the electric signal output by the chip.

Because the logic control circuit inside the intelligent switch is difficult to obtain power supply for maintaining operation during the off period of the switch-type control circuit, two independent circuits are usually adopted in the intelligent switch to realize logic control and switch-type control, so that the integration level of the intelligent switch is very low, and meanwhile, complex construction wiring needs to be provided on the periphery.

For example, the intelligent switch is arranged on an alternating current power line supplying L ED lamp.

It should be noted that any of the above examples, as well as the ac power lines, the power circuits of the ac power lines, etc. mentioned below, should be considered to include the power lines required for accessing the city power grid, which include the neutral line, the live line, the ground line, etc. for example, L ED lights and the smart switch accessing the ac power lines may constitute a power circuit.

Therefore, the power supply circuit is provided to solve the problem that at least part of circuits in the intelligent switch can always receive the power support of the power supply. Here, the power supply circuit is a circuit that supplies internal power to the logic control circuit or the switching control circuit and the logic control circuit, and supplies weak power to the logic control circuit or the switching control circuit and the logic control circuit by a rectified current signal output from the rectifying circuit. Wherein, according to the working voltage of the actual logic control circuit or the switch type control circuit and the logic control circuit, the voltage provided by the power supply is below 15v for example. Here, the power supply may be a terminal that outputs a power supply signal, the power supply circuit is a circuit that provides a stable power supply output to the terminal, and the power supply provides a working voltage that enables the power supply to operate to a circuit connected to the power supply circuit by the power supply provided by the power supply circuit.

The rectification circuit acquires an alternating current signal in an alternating current electrifying loop, and rectifies the acquired alternating current signal to output a rectified electrical signal. Wherein the rectification circuit includes but is not limited to: a full-wave rectifier circuit or a half-wave rectifier circuit, etc. In addition, the alternating current electrifying loop at least comprises a load and a switch circuit, wherein the switch circuit is a circuit for controlling the on-off of a load power supply loop, and the switch circuit and the load are connected in series between a zero line and a live line of the alternating current. For example, a live wire connected to a residential electric grid is connected to a switching circuit and a load in sequence, and the load is connected to a neutral wire of the electric grid to form an alternating current energizing circuit. For another example, a live wire connected to a residential power grid is sequentially connected to a load and a switching circuit, and the switching circuit is connected to a zero line wire of the power grid to form an alternating current power-on loop. The load can be a single load, or a connection mode based on series or parallel connection, or a connection mode based on series and parallel combination, and the like, connected on the power supply loop. The switch circuit can be used for controlling the power supply of the loads individually or configured on an alternating current circuit commonly connected with a plurality of loads so as to control the power supply of the loads. In some embodiments, a plurality of loads are provided, each load is connected in series with a switching circuit, and the series-connected switching circuits and the loads are connected in parallel with other series-connected switching circuits and the loads to the alternating current line together so as to control the power supply of the plurality of loads.

In some examples, the load is a load circuit that includes a voltage (or current) converter circuit therein for converting alternating current to a supply voltage (or supply current), the load being turned into an operational state when the supply voltage (or supply current) reaches an operational voltage (or operational current), the load being turned out of the operational state when the supply voltage (or supply current) does not reach the operational voltage (or operational current). examples of the load include L ED lamps, motorized window shades, power adapters, etc. examples of the switch circuit include a relay and a relay controller, the load is L ED lamp, the relay is a circuit for controlling the L ED lamp to be on or off, when the relay is on, the current flowing through the L ED lamp reaches its operational current of L ED (light emitting diode), the L ED lamp is on, when the relay is off, the current flowing through the L ED lamp does not reach its operational current of L ED, the L ED lamp is off, and in yet another example, the load is a pure incandescent lamp.

To realize that the power circuit supplies power to the power supply during the off period and the on period of the switch circuit, please refer to fig. 1, which is a schematic circuit diagram of the power circuit in one embodiment. The power supply circuit includes at least: a transformer circuit 11 and a power management circuit 12.

The transformer circuit 11 comprises a primary input unit and a secondary output unit, the primary input unit and the secondary output unit respectively comprise a primary winding and a secondary winding which are arranged based on the mutual inductance principle, the primary input unit is connected with the rectifying circuit, and the secondary output unit is used for outputting and supplying power to the power supply.

In order to maximize the secondary winding to output the converted electric energy and improve the conversion efficiency of the transformer circuit, the secondary output unit includes: the transformer comprises a secondary winding connected with a voltage ground and a unidirectional conduction module connected with the output end of the secondary winding. The output end of the secondary winding is connected with the unidirectional conduction module, and the unidirectional conduction module and the secondary winding are connected in a common ground mode. The unidirectional conduction module is used for preventing the current of a loop where the secondary winding is located from flowing backwards. In some examples, the unidirectional conducting module comprises a diode and optionally a capacitor. Referring to fig. 2, a circuit structure of the power circuit in an embodiment is shown, in which the unidirectional conducting module includes a diode D11 and a capacitor C11. The cathode of the diode D11 is connected to one end of the secondary winding, the anode is connected to one end of the capacitor C11 and constitutes the output terminal of the secondary output unit 112, and the other end of the capacitor C11 is grounded to the other end of the secondary winding. The secondary winding converts the induced energy into electric energy to the maximum extent and supplies power to the power supply after filtering through the capacitor C11.

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

Here, the power management circuit may be integrated on a PCB board through a discrete device to form the power management circuit, or formed on a wafer through a semiconductor process and packaged into a chip.

Here, to accurately reflect the fluctuation condition of the power supply signal, the power management circuit collects the first sampling signal from the line on which the secondary output unit is located. For example, the first sampling signal may be directly derived from the power supply signal output by the secondary output unit, and is used for directly reflecting the power supply signal of the power supply. Or the first sampling signal is from a power supply pin of an electric device operated by the power supply provided by the power supply, such as a power supply pin of a CPU chip operated by the power supply provided by the power supply, which indirectly reflects the power supply signal provided by the secondary output unit by using a standard power supply signal of the electric device to be powered. Here, the first sampling signal may be a voltage signal or a current signal, depending on the actual design of the sampling circuit that collects the first sampling signal. For example, a current sampling device is used for collecting the current of the output end of the secondary side output unit to obtain a current signal, namely a first sampling signal; controlling a current flowing through the primary side input unit based on the first sampling signal; or converting the first sampling signal into a voltage signal by using a current-to-voltage device when appropriate, and controlling the current flowing through the primary side input unit by using the voltage signal. For another example, a voltage sampling device is used for collecting the voltage at the output end of the secondary side output unit to obtain a voltage signal, namely a first sampling signal; controlling a current flowing through the primary side input unit based on the first sampling signal; or converting the first sampling signal into a current signal by using a voltage-to-current device when appropriate, and controlling the current flowing through the primary side input unit by using the current signal.

In some examples, the power 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 an output side of the secondary output unit and obtain a first sampling signal. For example, the first sampling circuit 14 includes voltage dividing resistors R11 and R12 connected between the secondary side output unit 112 and the voltage ground, and outputs the first sampling signal FB1 from the connection of the resistors R11 and R12.

Here, the first sampling circuit may be separately configured and connected to a chip pin in a chip of a power management circuit in the integrated power supply circuit. For example, the first sampling circuit is externally connected to a first sampling pin of a chip where the power management circuit is located and an output end of the secondary output unit, and the chip directly obtains the first sampling signal after voltage division processing. Or the first sampling circuit is integrated with the power management circuit. For example, the power management circuit and the first sampling circuit are integrated in a chip, a first sampling pin of the chip is connected to an output end of the secondary output unit, and the first sampling circuit integrated in the chip is used to perform voltage division processing on the electrical signal acquired by the first sampling pin, so that the sampling signal after voltage division processing is obtained as the first sampling signal.

The power management circuit controls the current flowing through the primary side input unit based on the first sampling signal. Here, the power management circuit is a control circuit of the transformer circuit, and performs current control on a loop where a primary side input unit of the transformer circuit is located by using a voltage (or a current) capable of reflecting a first sampling signal of the power supply to change a current flowing through a primary side winding in the primary side input unit, so that a power supply voltage output to the power supply by a secondary side output unit converted through mutual inductance is maintained within a stable voltage interval. For example, the power management circuit controls the current flowing through the primary winding in a mode of controlling the on-off of a loop where the primary side input unit is located based on the voltage of the first sampling signal.

To this end, the power management circuit obtains a first sampling signal by any of the aforementioned examples, and adjusts the current in the primary winding according to the voltage (or current) of the first sampling signal. The power supply circuit includes: the device comprises a regulating module and a control module. For the convenience of distinguishing other control modules in the power management circuit, the control module in the power management circuit is referred to as a first control module. Such as the first control module 122 of fig. 2.

As shown in fig. 2, the adjusting module 121 is located on a line between the primary side input unit 111 and the voltage ground, and is configured to control on/off or current variation of the line between the primary side input unit 111 and the voltage ground.

In one example, the regulation module 121 includes a resistor and a controlled switch connected in series and connected between the primary winding and voltage ground. The controlled switch is exemplified by any one or a combination of a triode (BJT), a Junction Field Effect Transistor (JFET), a depletion MOS power transistor, a thyristor, and the like. In another example, the adjusting module 121 includes a plurality of gate lines and gates connected between the primary input unit 111 and a voltage ground, wherein each gate line is provided with a resistor with a different resistance value, the gates are controlled to switch to different gate lines, and the current flowing through the primary input unit changes correspondingly. Wherein the gate includes but is not limited to: switching devices, etc. For example, the adjusting module 121 includes two gate lines, one of the gate lines is a conductive line, and the other gate line is provided with a resistor and a switching device; when the default switching device is turned off, the primary side input unit is grounded via a wire, and when the switching device is turned on, the primary side input unit 111 is grounded via a resistor.

The first control module is connected to the adjustment module for controlling the adjustment module based on the first sampling signal.

Specifically, the first control module is connected with a control end of the adjusting module, and the on-off or current adjusting of the adjusting module is controlled by detecting the first sampling signal. To this end, the first control module includes a detection sub-module and a control sub-module. The detection submodule is used for outputting a detection signal by detecting the voltage of the first sampling signal; and the control sub-module is used for controlling the adjusting module based on the detection signal.

In some examples, the detection signal may be a logic signal reflecting a comparison result between a voltage of the first sampling signal and a preset reference voltage. To this end, the detection sub-module includes a comparison sub-circuit that compares a voltage of the first sampling signal with a preset reference voltage and outputs a detection signal based on a comparison result. Wherein the reference voltage may be a reference voltage interval or a reference voltage value set based on a supply voltage of the power supply.

The comparison sub-circuit utilizes analog devices of the logic device and the auxiliary logic device to represent detection logic between the first sampling signal and the reference voltage and output a corresponding detection signal. Wherein the detection signal is a logic signal which 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, the comparison sub-circuit includes logic devices such as comparators, inverters, flip-flops, and gates, and not gates, etc., as required by the logic expression of the logic signals between the actual comparison sub-circuit and the control sub-module. The comparator is, for example, a hysteresis comparator or a voltage comparator. The flip-flop is exemplified by a D flip-flop or the like.

It should be noted that, the above-mentioned manner of using a single level signal as the detection signal is only an example, in fact, the detection signal may be a plurality of logic signals, and the control sub-module uses the control type expressed by the plurality of logic signals to select a corresponding control manner to control the regulating module.

In other examples, the detection signal is an analog signal or a digital signal reflecting a voltage difference between a voltage of the first detection signal and a preset reference voltage. For this, the detection submodule includes a differential sub-circuit for generating an error signal of a voltage difference between a voltage of the first sampling signal and a preset reference voltage, and outputting a detection signal based on the error signal. Here, the differential sub-circuit includes at least an error amplifier, which includes, by way of example and not limitation: the error amplifier including the transconductor and the filter capacitor includes an error amplifier such as a subtractor, an integrator, a counter, and a digital-to-analog converter. The differential sub-circuit may further comprise an amplifier coupled to the output of the error amplifier for amplifying the error voltage signal for fine control by the control sub-module.

In fact, according to whether the received detection signal is a logic signal or an error signal, the control sub-module provides a corresponding circuit structure to control at least one of the on-off frequency, the on-off duration and the off-off duration of the adjusting module; or controlling the adjusting module to adjust the changing frequency of the current. In some examples in which the detection signal is a logic signal, taking adjustment of on/off of the regulating module as an example, the control sub-module adjusts a duty ratio of the internal PWM signal according to a detection result that the supply voltage indicated by the detection signal is too high or too low, so as to adjust an on-time ratio and an off-time ratio of the regulating module, thereby adjusting the supply voltage output by the voltage transformation circuit. In other examples where the detection signal is a logic signal, taking adjustment of on/off of the regulation module as an example, the control sub-module adjusts on/off frequency of the regulation module according to a detection result that the supply voltage indicated by the detection signal is too high or too low, thereby adjusting the supply voltage output by the voltage transformation circuit. For example, the control sub-module includes an adjustable frequency divider, adjusts the frequency divider according to the received detection signal to change the frequency of the control signal, and controls the on-off frequency of the adjustment module based on the control signal with the changed frequency. In still other examples where the detection signal is a logic signal, for example, to adjust a current variation of the regulating module, the control sub-module adjusts a duty ratio of the internal PWM signal according to a detection result that the supply voltage indicated by the detection signal is too high or too low, wherein durations of high and low levels of the PWM signal respectively correspond to durations of the time for which the regulating module selects one of the gating lines and the other gating line. The purpose of stabilizing the power supply voltage output by the voltage transformation circuit is achieved through the scheme of regulating the current provided by any one of the above examples.

In some examples in which the detection signal is an error signal, taking adjustment of on/off of the adjustment module as an example, the control sub-module includes a timer therein, and the timer uses a voltage of the detection signal as a reference voltage, and times at least one of durations of on states and off states of the adjustment module, so as to control the adjustment module to switch between the on state and the off state according to an overtime signal generated at a corresponding timed overtime time. The timer is exemplified by a timing circuit comprising a capacitor and a charging and discharging circuit thereof; or the timer is exemplified by a timing circuit comprising a clock generator, a counter and a digital-to-analog converter. In still other examples where the detection signal is an error signal, the control sub-module adjusts the duty cycle of the internal PWM signal according to the error voltage indicated by the detection signal, for example, by adjusting a current change of the regulation module, wherein durations of high and low levels of the PWM signal each correspond to a duration of the regulation module selecting one of the gating lines and the other of the gating lines. The purpose of stabilizing the power supply voltage output by the voltage transformation circuit is achieved through the scheme of regulating the current provided by any one of the above examples.

Based on the above examples and taking fig. 2 as an example, the working processes of the voltage converter circuit and the power management circuit in the power supply circuit are as follows: during the off period of the switching circuit, the rectifying circuit outputs the rectified electrical signal to a primary side input unit 111 in the voltage transformation circuit; by utilizing the mutual inductance principle, the primary and secondary windings in the transformer circuit perform energy conversion, and a secondary output unit 112 in the transformer circuit provides a power supply signal (with a voltage of Vout1) to a power supply, wherein a detection submodule in the first control module 122 acquires a first sampling signal FB1 sampled by the first sampling circuit 14 and used for reflecting the power supply, and outputs an error voltage between the voltage of the first sampling signal FB1 and a preset reference voltage as a detection signal to a control submodule when the adjustment module 121 is turned on, and the control submodule makes the timer time the on-state duration of the adjustment module 121 according to the voltage provided by the detection signal as a reference voltage for timing, and controls the adjustment module 121 to turn off and reset the timer when the timing is overtime; and when the adjusting module 121 is turned off, the timer is timed according to a preset fixed time length, and when the timing is overtime, the adjusting module 121 is controlled to be turned on and reset the timer. Therefore, the purpose of providing power supply inside the power supply circuit by using the voltage transformation circuit is achieved.

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

In some examples, the power management circuit controls a line on which the primary input unit is located to be turned on (or off) based on the first sampling signal, and controls the line on which the primary input unit is located to be turned off (or on) based on the third sampling signal. In still other examples, the power circuit controls a line on which the primary side input unit is located to be turned on based on the first sampling signal, and controls a line on which the primary side input unit is located to be turned off based on the first sampling signal and the third sampling signal.

In some embodiments, please refer to fig. 3, which shows a schematic circuit diagram of a power circuit in another embodiment. The power management circuit includes a regulating module 121 and a second control module 125, and the power management circuit further includes a third sampling circuit 16. For example, the third sampling circuit 16 includes a controlled switch and a sampling resistor, an input end of the controlled switch is connected to an input end of the adjusting module 121, an output end of the controlled switch is grounded through the sampling resistor, and a control end of the controlled switch is connected to a control end of the adjusting module 121 to synchronously receive control of the second control module 125. The adjusting module 121 is the same as or similar to the circuit structure and the implementation process of the adjusting module 121 shown in fig. 2, and will not be described in detail here. The second control module 125 controls the adjusting module 121 to be turned on based on the first sampling signal FB1 and controls the adjusting 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 adjustment module 121 based on the first sampling signal, and controls the off-time of the adjustment module 121 based on the first sampling signal FB1 and the third sampling signal CS. For example, the second control module 125 adjusts a response time length for performing a corresponding on or off control operation by adjusting a frequency of the internal clock signal, so as to adjust a corresponding on time length and off time length by a change of the response time length; the second control module 125 determines the on-time by detecting the change of the electrical signals at the two sides of the primary side input unit and the secondary side 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 turn-off time by monitoring the change of the electrical signal output by the secondary output unit, i.e. by comparing the voltage of the first sampling signal FB1 with a preset reference voltage, thereby adjusting the turn-on time.

In other examples, the second control module includes an on control sub-circuit, an off control sub-circuit, and a control logic sub-circuit.

The conduction control sub-circuit is used for detecting the acquired first sampling signal, acquiring a corresponding detection signal and outputting a clock signal according to the voltage of the acquired detection signal; wherein the frequency of the clock signal is related to the resulting detected signal voltage. The off control sub-circuit is used for comparing the third sampling signal with the detection signal output by the on control sub-circuit and outputting a logic signal corresponding to the obtained comparison result. The control logic subcircuit is used for controlling the adjusting module to be switched on or switched off based on the clock signal and the logic signal corresponding to the comparison result. In other words, the control logic subcircuit monitors the first logic signal indicative of turning off the conditioning module based on the clock signal while maintaining the conditioning module on. And the disconnection control sub-circuit compares the third sampling signal with the detection signal output by the connection control sub-circuit, and outputs a logic signal corresponding to the obtained comparison result to the control logic sub-circuit. When the logic signal corresponding to the comparison result represents a first logic signal for switching off the adjusting module, the control logic sub-circuit controls the adjusting module to be switched off based on the first logic signal and the clock signal; and when the logic signal corresponding to the comparison result does not represent the first logic signal, the control logic sub-circuit controls the conduction of the adjusting module based on a preset second logic signal and a clock signal.

Please refer to fig. 4, which is a schematic circuit diagram illustrating a power circuit in another embodiment, wherein the turn-on control sub-circuit performs a low-pass filtering process on the acquired voltage of the first sampling signal FB1 to obtain a detection signal COMP corresponding to the first sampling signal, and outputs a clock signal according to the voltage of the detection signal COMP; wherein the frequency of the clock signal is related to the voltage of the detection signal COMP. And taking the clock signal as a clock reference of the control logic subcircuit responding to the received logic signal, and monitoring a first logic signal for indicating that the regulating module is disconnected based on the clock signal during the period of keeping the regulating module on. Meanwhile, the detection signal COMP is also directly output to the disconnection control sub-circuit as COMP _ CS, or is processed according to a preset proportion and then converted into COMP _ CS to be output to the disconnection control sub-circuit. The disconnection control sub-circuit outputs a logic signal corresponding to a comparison result of the third sampling signal CS and the COMP _ CS to the control logic sub-circuit; when the logic signal corresponding to the comparison result represents a first logic signal for switching off the adjusting module, the control logic sub-circuit controls the adjusting module to be switched off based on the first logic signal and the clock signal; and when the logic signal corresponding to the comparison result does not represent the first logic signal, the control logic sub-circuit controls the conduction of the adjusting module based on a preset second logic signal and a clock signal.

It should be noted that the on and off operations of the adjusting module may also be replaced by switching operations among a plurality of lines, where resistors with different resistance values are provided on each line, so as to change the current flowing through the primary side input unit based on the first logic signal and the second logic signal. And will not be described in detail herein.

Please refer to fig. 5, which is a schematic circuit diagram of another embodiment of a power circuit, wherein the power management circuit includes a third protection module 124, a regulation module 121, and a second control module 125 ″. The adjusting module 121 adjusts the current of the line where the primary side input unit is located in an on-off manner, which is not described in detail herein.

The second control module 125 ″ controls the adjusting module 121 to be turned on and off correspondingly. In some examples, the second control module 125 ″ of FIG. 5 may be similar to the second control module 125' of FIG. 4, except that at least some of the electrical components of the second control module 125 ″ of FIG. 5 are switched between an inactive state and an active state based on the protection logic signal generated by the third protection module 124. Wherein the inactive state includes, but is not limited to: at least some of the electrical devices are controlled by the enable of the protected logic signal and do not respond to the state in which the input signal is present, or at least some of the electrical devices are controlled by the supply of the protected logic signal and are not in power-on operation. In some more specific examples, at least one of the on control sub-circuit, the off control sub-circuit, and the control logic sub-circuit in the second control module 125 ″ includes an enable terminal, and receives the protection logic signal via the enable terminal, and the corresponding sub-circuit switches between an active state or an inactive state based on whether the protection logic signal is active or inactive, such that the adjusting module is controlled to be on and off during the period when each sub-circuit is in the active state; and the regulating module 121 is controlled to be switched off during the period in which at least one sub-circuit is in an inactive state. For example, the conduction control sub-circuit includes an enable terminal and receives a protection logic signal, and is controlled by the protection logic signal, and when the conduction control sub-module is in a working state, the conduction control sub-circuit outputs a clock signal corresponding to the first sampling signal; when the conduction control sub-module is in an inoperative state, the conduction control sub-circuit does not output clock signals. For another example, the disconnection control sub-circuit includes an enable terminal and receives a protection logic signal, and is controlled by the protection logic signal, and when the disconnection control sub-circuit is in a working state, the disconnection control sub-circuit outputs a corresponding logic signal based on a comparison result of a third sampling signal CS and COMP _ CS; when the disconnection control sub-module is in a non-operating state, the disconnection control sub-circuit keeps outputting a first logic signal which indicates that the regulating module is disconnected. For another example, the control logic sub-circuit includes an enable terminal and receives a protection logic signal, and is controlled by the protection logic signal, and when the control logic sub-circuit is in a working state, the control logic sub-circuit controls the adjusting module to correspondingly turn off or on based on the received first logic signal or second logic signal; when the control logic sub-module is in an off state, the control logic sub-circuit keeps the adjusting module disconnected.

The third protection module 124 is configured to detect an electrical signal reflecting a power supply signal of the power supply, and provide circuit protection for the power management circuit according to a detection result. The electrical signal reflecting the power supply signal of the power supply source may be the first sampling signal FB1 or a detection signal COMP provided by the conduction control sub-circuit. The third protection module 124 protects some electrical devices in the power management circuit by detecting the first sampling signal FB1 or the detection signal COMP so that the line where the primary side input unit is located is disconnected during the protection. Here, the third protection module 124 determines whether the power supply is over-voltage and/or over-load 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, during a light load of the power supply, the third protection module 124 detects whether the first sampling signal is higher than a preset overvoltage protection threshold, and if so, outputs a valid first protection logic signal, so that the sub-circuit in the corresponding second control module 125 ″ is turned into an inactive state based on the valid first protection logic signal; the third protection module 124 outputs an invalid first protection logic signal according to the detection result of the real-time detection of the first sampling signal and the preset over-voltage reset logic, so that the second control module 125 ″ is restored to the working state. Wherein the over-voltage reset logic examples include at least one of: the reset logic is set based on the detection result, and the reset logic is set based on a preset timing duration. The reset logic set based on the detection result includes, for example, continuously performing signal detection, and outputting an invalid first protection logic signal once the detection result changes. Examples of the reset logic set based on the preset timing duration include starting timing when the protection logic signal is valid, and outputting an invalid first protection logic signal when the timing reaches a preset timing threshold. In still other examples, during a heavy load of the power supply, the third protection module 124 detects whether the first sampling signal is lower than a preset overload protection threshold, and if so, outputs a valid second protection logic signal, so that the sub-circuits in the corresponding second control module 125 ″ transition to an inactive state based on the valid second protection logic signal; the third protection module 124 outputs an invalid second protection logic signal according to the detection result of the real-time detection of the first sampling signal and the preset overload reset logic, so that the second control module 125 ″ is restored to the working state. Wherein the overload reset logic instance comprises at least one of: the reset logic is set based on the detection result, and the reset logic is set based on a preset timing duration. The reset logic set based on the detection result includes, for example, continuously performing signal detection, and outputting an invalid second protection logic signal once the detection result changes. Examples of the reset logic set based on the preset timing duration include 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.

It should be noted that the protection threshold and the detection logic set by the third protection module are related to a signal obtained by an actual circuit structure, and are not limited in the above examples, for example, the third protection module detects the voltage of the detection signal COMP, and determines to output the first protection logic signal when detecting that the voltage of the detection signal COMP is lower than a preset overvoltage protection threshold, thereby achieving the purpose of enabling the chip where the power management circuit is located to be in a standby state and/or effectively maintaining the power supply capability of the chip. And are not described in detail herein.

In other examples, the protection logic signal generated by the third protection module controls the adjustment module to maintain an open state (not shown). For example, the third protection module is connected to the control terminal of the switch in the regulation module, and when the third protection module outputs the protection logic signal, the corresponding switch maintains the off state.

In some practical circuits, the power management circuit is in the form of a chip, and referring to fig. 6, it is shown as a schematic circuit structure diagram of an embodiment of the power management circuit according to the integrated situation of the chip, and the first self-powered circuit 15 may be externally connected between the secondary output unit 112 and the power pin VCC of the power management circuit 12. Or at least part of the devices in the first self-power supply circuit are integrated in a chip where the power management circuit is located. For example, the diodes and/or the voltage dividing resistors in the first self-powered circuit are integrated in the power management circuit. And as another example, the first self-power supply circuit is integrated in the chip where the power management circuit is located.

In practical applications, in order to make the power circuit provided in any of the above examples obtain a rectified electrical signal under any circumstances, the aforementioned rectifying circuit needs to output a rectified electrical signal during the on and off periods of the connected ac power line. In some examples, the ac line is further provided with a switching circuit and a load, when the switching circuit is turned on, the ac line forms an energizing loop of the ac, and the load operates based on the ac power supply, in other words, the load is in an operating state when an operating voltage is reached based on the ac power supply during the turning on of the switching circuit; when the switching circuit is opened, the alternating current line cannot constitute a current circuit for alternating current, and the load cannot operate, in other words, the load is in an inoperative state during the opening of the switching circuit.

Considering that the intelligent switch containing the power circuit has certain randomness during actual installation, the randomness is represented by the sequence of the switch circuit and the load to be connected into the live wire, for example, the switch circuit is connected into the live wire before the load; as another example, the switching circuit switches in the hot line after the load. Therefore, the rectifying circuit is connected to at least the ac line on the input side of the switching circuit. For example, the rectifying circuit is electrically connected to an input terminal of the switching circuit. For another example, the rectifying circuit is electrically connected to both the input terminal and the output terminal of the switching circuit.

In some embodiments, the rectifying circuit comprises at least a first rectifying 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 supplied to the transforming circuit as the aforementioned rectified electrical signal. The first rectifying unit includes a full-wave rectifying bridge or a half-wave rectifying bridge, and the first rectifying unit further includes a filter capacitor.

In order to ensure that the load is not operated by the operation of the power supply circuit during the off period of the switching circuit, in one example, the on voltage of the rectifier bridge in the first rectifying unit is lower than the operating voltage of the load, and the power supply circuit operates in a voltage interval in which the ac voltage is lower than the operating voltage of the load. In another example, the impedance of the transformer circuit in the power circuit is large enough so that the current flowing through the load is not sufficient to drive the load to operate.

The power supply circuit described with any of the foregoing examples can provide stable power supply to the power supply source during the period in which the switching circuit is off. Taking fig. 2 as an example, the first rectifying unit rectifies the ac power, outputs a first rectified electrical signal (i.e., a rectified electrical signal in the figure), and flows into the primary side input unit in the voltage transformation circuit, and initially, the controlled switch in the adjusting module is in a conducting state, so that the first rectified electrical signal flows through the primary side input unit and flows to a voltage ground, and thus the primary side input unit and the secondary side output unit generate an induced current by mutual inductance. The induced current is output to the power supply by the processing of the secondary output unit. Meanwhile, the first sampling circuit samples the power supply signal output by the secondary output unit and returns the power supply signal to the first control module in each power supply management circuit in the form of a first sampling signal, the first control module controls the on-off frequency of the controlled switch in the adjusting module by comparing the voltage of the first sampling signal with a preset reference voltage if the voltage of the first sampling signal is greater than the preset reference voltage, and otherwise, the on-off frequency of the controlled switch in the adjusting module is maintained.

Taking fig. 3 as an example, the first rectifying unit rectifies the ac power, outputs a first rectified electrical signal (i.e., a rectified electrical signal in the figure), and flows into the primary side input unit in the voltage transformation circuit, and initially, the controlled switch in the adjusting module is in a conducting state, so that the first rectified electrical signal flows through the primary side input unit and flows to a voltage ground, and thus the primary side input unit and the secondary side output unit generate an induced current by mutual inductance. The induced current is output to the power supply by the processing of the secondary output unit. Meanwhile, the first sampling circuit samples the power supply signal output by the secondary output unit and returns the power supply signal to the second control module in each power supply management circuit in the form of the first sampling signal. A conduction control sub-circuit in the second control module performs low-pass filtering processing on the acquired voltage of the first sampling signal to obtain a detection signal COMP corresponding to the first sampling signal, and outputs a clock signal according to the voltage of the detection signal COMP; wherein the frequency of the clock signal is related to the voltage of the detection signal COMP. And taking the clock signal as a clock reference of a control logic subcircuit in the second control module responding to the received logic signal, and monitoring a first logic signal for indicating that the regulating module is disconnected based on the clock signal during the period of keeping the regulating module on. Meanwhile, the detection signal COMP is also directly output to the disconnection control sub-circuit as COMP _ CS, or is processed according to a preset proportion and then converted into COMP _ CS to be output to the disconnection control sub-circuit. The disconnection control sub-circuit outputs a logic signal corresponding to a comparison result of the third sampling signal CS and the COMP _ CS to the control logic sub-circuit; when the logic signal corresponding to the comparison result represents a first logic signal for switching off the adjusting module, the control logic sub-circuit controls the adjusting module to be switched off based on the first logic signal and the clock signal; and when the logic signal corresponding to the comparison result does not represent the first logic signal, the control logic sub-circuit controls the conduction of the controlled switch in the adjusting module based on a preset second logic signal and a clock signal.

Taking fig. 5 as an example, the first rectifying unit rectifies the ac power, outputs a first rectified electrical signal (i.e., a rectified electrical signal in the figure), and flows into the primary side input unit in the voltage transformation circuit, and initially, the controlled switch in the adjusting module is in a conducting state, so that the first rectified electrical signal flows through the primary side input unit and flows to the voltage ground, and thus the primary side input unit and the secondary side output unit generate an induced current by mutual inductance. The induced current is output to the power supply by the processing of the secondary output unit. Meanwhile, the first sampling circuit samples the power supply signal output by the secondary output unit and returns the power supply signal to the second control module and the third protection module in each power supply management circuit in the form of the first sampling signal. The third sampling circuit samples the electric signal of the primary side input unit and returns the electric signal to the second control module in each power supply management circuit in the form of a third sampling signal.

The working process of the second control module is as described in fig. 4, and is not described herein again. And the third protection module determines whether the power supply is in overvoltage and/or overload by detecting the first sampling signal and outputs a protection logic signal corresponding to a detection result. At least one of the on control sub-circuit, the off control sub-circuit and the control logic sub-circuit in the second control module 125 ″ includes an enable terminal, and receives the protection logic signal through the enable terminal, and the corresponding sub-circuit switches between an active state and an inactive state based on whether the protection logic signal is active or inactive, so that the adjusting module is controlled to be on and off during the active state of each sub-circuit; and the regulating module 121 is controlled to be switched off during the period in which at least one sub-circuit is in an inactive state.

In order to enable the power management circuit to start up quickly during the switch-off period of the switching circuit, in some practical circuits, the power circuit further comprises a start-up power supply circuit for providing a start-up power supply to the power management circuit. The provided starting power supply comprises a reference voltage, a chip starting voltage and the like which are provided for the power management circuit. In some examples, the start-up power supply circuit includes a capacitor and a charging unit for the capacitor. The charging unit generates a charging power supply for charging the capacitor by using the voltage changed by the rectified electrical signal provided by the rectifying circuit until the capacitor is charged and reaches a starting voltage, so as to realize the purposes of starting the chip and the like. During the period that the switch circuit is disconnected, the power management circuit carries out corresponding control operation by means of the power supply provided by the voltage transformation circuit. For example, the control circuit continuously monitors whether control information is received by using the power supplied by the power supply source so as to control the switch circuit to be conducted. As another example, during the off period of the switching circuit, the control circuit continuously monitors whether the control information is received using the power supplied from the power supply source to output a control signal to the pre-configured air conditioner in accordance with the air conditioner and the temperature indicated in the control information.

During the conduction period of the switching circuit, in order to make the rectifying circuit, such as the aforementioned first rectifying unit, continuously obtain the alternating current and provide the rectified electrical signal, in some embodiments, the switching circuit may be connected to the zero line of the alternating current wire through an impedance device. Therefore, the rectifying circuit can obtain the alternating current signal obtained by shunting by the impedance device.

In other embodiments, the power circuit further comprises: 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 the switching circuit to be connected to the first line or the second line during the on period of the switching circuit, so as to form a corresponding energizing circuit. The rectifier circuit is arranged on the second line, and when the alternating current voltage flowing through the switch circuit reaches the breakover voltage of a rectifier bridge in the rectifier circuit, a circuit loop where the second line is located is conducted.

Please refer to fig. 7, which is a schematic circuit diagram illustrating the power circuit, the switch circuit and the load during the on period of the switch circuit. When the selection circuit 21 selects to connect the switch circuit 31 to the second line, the load 32, the switch circuit 31, the rectification circuit 32 (such as the first rectification unit), and the power management circuit 23 form a power loop, in other words, the ac signal flows to the voltage ground through the load 32, the switch circuit 31, the rectification circuit 32 (such as the first rectification unit), and the power management circuit 23; when the selection circuit 21 selects to switch the switching circuit 31 into the first line, a further energized loop is formed by the load 32, the switching circuit 31 and the urban power network, in other words, the alternating current signal flows via the load 33, the switching circuit 31 and the selection circuit 21 to the voltage ground in the urban power network.

In order to ensure normal operation of the load, for example, the reference voltage interval is selected to be a voltage interval outside the load operating voltage interval, including but not limited to, a zero-crossing voltage interval, a peak voltage interval, or other voltage intervals, etc. taking the L ED lamp as an example of the load, the reference voltage interval is selected to be a zero-crossing voltage interval.

In one example, the selection circuit includes a switch unit M1, wherein the switch unit M1 is disposed on the ac line where the switch circuit is located. Wherein the switching unit M1 is configured to be controlled to be turned on or off based on the received shunt control signal to at least immediately respond to a switching operation for switching the switching circuit from accessing the second line to accessing the first line. The switching unit is controlled to be switched off based on the received shunt control signal so that the switching circuit is immediately or delayed to be switched into the second line, and is controlled to be switched on based on the shunt control signal so that the switching circuit is immediately switched into the first line. In some examples, an on-off control device is further disposed inside the selection circuit, and generates a shunt control signal by detecting a phase of the alternating current, and outputs the shunt control signal to the switch unit M1. In other examples, the shunt control signal is output by the power management circuit to the switching unit. The switching unit M1 includes a power tube, wherein a control end of the power tube is configured to receive a shunt control signal, the shunt control signal is a voltage signal, when the shunt control signal indicates that the switching unit is turned on, the power tube is turned on, so that the load and the switching circuit are connected to a zero line through a first line, and then the load and the switching circuit are connected between a live line and a zero line of alternating current; when the shunt control signal indicates to open the switching unit, the power tube is opened, so that the load and the switching circuit are connected with the voltage ground in the power management circuit through the second line, and the load and the switching circuit are connected between the live wire and the voltage ground.

In order to maximize the efficiency of using the active power of the alternating current, the structure of the selection circuit is related to the rectifier circuit, the load and the like in the application. Taking the rectifying circuit as a full-wave rectifying circuit as an example, when the phase of the alternating current falls within a preset phase interval, the selection circuit immediately selects the second line based on the time-sharing control signal, and when the phase of the alternating current exceeds the phase interval, the selection circuit immediately selects the first line based on the time-sharing control signal. Still taking the rectifier circuit as a full-wave rectifier circuit as an example, when the voltage of the power supply falls into a preset reference voltage interval, the selection circuit immediately selects the second line based on the time-sharing control signal, and otherwise, the selection circuit immediately selects the first line based on the time-sharing control signal.

Referring to fig. 8, a circuit diagram of an embodiment of a power supply circuit is shown according to an actual circuit structure of a rectifier circuit and a power management circuit, in which the selection circuit 21 further includes: a phase limiting unit. For example, the rectifier circuit is a half-wave rectifier circuit, and the phase restriction unit forces the alternating current signal in the negative half period of the power frequency cycle to flow through the first line.

Here, the phase restriction unit may be constituted by a separate electric device, or provided by a parasitic diode in a semiconductor device in the switching unit M1. In some examples, the phase restriction unit is a separate electric device and is connected in parallel with the switching unit, and is configured to delay or immediately perform a switching operation of switching the switching circuit from accessing the first line to accessing the second line according to a phase of the current alternating current when the switching unit is turned off. The phase limiting unit comprises a diode D1 which is connected in parallel with the switch unit M1, and the cathode is connected with the live wire and the anode is connected with the zero wire. When the switch unit M1 is turned on, the switch circuit and the load are connected between the live line and the neutral line of the alternating current by the conductive connection of the switch unit M1, and the diode D1 is short-circuited, that is, the selection circuit 21 is connected to the first line; when the switch unit M1 is switched off, in a half power frequency period of a-180-0 phase interval in the same power frequency period, the diode D1 is switched on, and the switch circuit and the load are connected between a live wire and a zero wire of alternating current, in other words, the selection circuit 21 is maintained in a first line; when the switch unit M1 is turned on and the diode D1 is turned off, the selection circuit switches from the first line to the second line, and as the phase of the alternating current changes, the voltage difference between the two ends of the rectifying circuit of the second line is greater than the turn-on voltage thereof, and the second line is turned on.

As can be seen from the above example, if the phase of the alternating current at the moment of turning off the switching unit falls within the negative half cycle (-180-0 degrees) of the power frequency cycle, the selection circuit delays switching to the second line when the phase of the alternating current enters the positive half cycle (0-180 degrees) of the power frequency cycle, and the second line is turned on when the alternating current voltage reaches the turn-on voltage of the rectifier bridge in the rectifier circuit. If the phase of the alternating current at the moment of disconnection of the switching unit falls within the positive half cycle (0-180 degrees) of the power frequency cycle, the selection circuit immediately switches to the second line, and when the alternating current voltage reaches the conduction voltage of the rectifier bridge in the rectifier circuit, the second line is conducted.

It should be noted that, according to the selection of the rectifier circuit, the selection circuit, the power management circuit and other electrical devices, for example, the selection of the operating voltage of the diode, the power tube and other semiconductor devices, when the selection circuit switches between the first line and the second line, the selection circuit is limited by the operating voltage of the corresponding semiconductor device, which may cause the corresponding line to be momentarily non-conductive, for example, when the phase is 0, -180, 180 degrees, and the voltage of the ac electrical signal near each phase cannot reach the operating voltage of the diode, the selection circuit should be regarded as having selected the first line or the second line, and be in the non-conductive state of the corresponding line only momentarily. However, this does not affect the technical idea mentioned in this application that the power management circuit can output stable power supply by sharing ac power in a time-sharing manner. Similarly, when the selection circuit is switched between the first line and the second line, due to the limitation of the operating voltage of the corresponding semiconductor device, the charging and discharging of the parasitic capacitance, and the like, the switching operation of the first line and the second line in the actual circuit may not be completely consistent with the above example in a transient situation, for example, the first line and the second line are both turned on and off, and the like, which should not affect the technical idea that the power management circuit can output stable power supply by sharing the alternating current in time division as mentioned in this application. And will not be repeated later.

In some examples, to obtain an alternating current signal within a preset phase interval of the alternating current to obtain a second rectified electrical signal, the power circuit further comprises: the second sampling circuit and the power management circuit comprise a shunt control module.

The second sampling circuit is used for sampling the electric signal reflecting the alternating current signal in the second line or sampling the power supply signal of the power supply to generate a second sampling signal and outputting the second sampling signal to the power supply management circuit. In some examples, the second sampling circuit directly samples the ac electrical signal to obtain a second sampled signal and provides the second sampled signal to the shunt control module. In other examples, the second sampling circuit 25 includes first voltage dividing resistors R21 and R22 disposed between the second rectified electrical signal output of the rectification circuit and voltage ground. The second sampling circuit 25 may further include second voltage dividing resistors R23 and R24 connected in parallel to the voltage dividing resistor R22. In still other examples, the second sampling circuit collects a power supply signal from a power supply side and provides the resulting second sampling signal to a power management circuit.

Please refer to fig. 9, which is a schematic circuit diagram of the power supply circuit in an embodiment, wherein the second sampling circuit may be fully or partially integrated in a chip where the power management circuit is located. For example, the first voltage dividing resistors R21 and R22 in the second sampling circuit 25 are externally connected between the rectifying circuit 32 and the chip through the chip pin FB2, and provide a first voltage dividing signal of the second rectified electrical signal to the chip FB2 pin, and the second voltage dividing resistors R23 and R24 in the second sampling circuit are integrated in the chip, and divide the first voltage dividing signal again through the pin FB2 to obtain a second sampling signal, and provide the second sampling signal to the branch control module inside the chip.

The shunt control module is connected with the selection circuit and used for outputting a shunt control signal to the selection circuit by detecting an alternating current signal or a power supply signal of a power supply source during the conduction period of the switch circuit so as to control the selection circuit to switch between the first line and the second line. According to the position sampled by the second sampling circuit, in some examples, the second sampling signal represents a power supply signal, and the shunt control module may detect the voltage of the power supply signal by detecting the voltage of the second sampling signal; in still other examples, the second sampled signal represents an ac electrical signal, and the shunt control module may detect a voltage of a corresponding phase of the ac electrical signal by detecting a voltage of the second sampled signal. In still other examples, the second sampling circuit collects a power supply signal from a power supply side and provides the resulting second sampling signal to a power management circuit. Such as power pins from a CPU chip operating with power provided by the power supply, indirectly reflect the power supply signal provided by the power supply with a standard power signal of the electrical device being powered. Here, the second sampling signal may be a voltage signal or a current signal, depending on the actual design of the sampling circuit that collects the second sampling signal. For example, a current sampling device is used for collecting the current output by the power management circuit to obtain a current signal, namely a second sampling signal; controlling the current or voltage output by the power management circuit based on the second sampling signal; or converting the second sampling signal into a voltage signal by using a current-to-voltage device when appropriate, and controlling the current or the voltage output by the power management circuit by using the voltage signal. For another example, a voltage sampling device is used for collecting the voltage output by the power management circuit to obtain a voltage signal, namely a second sampling signal; controlling the current or voltage output by the power management circuit based on the second sampling signal; or converting the second sampling signal into a current signal by using a voltage-to-current device when appropriate, and controlling the current or the voltage output by the power management circuit by using the current signal.

Taking the shunt control module as an example, which can detect the phase of the alternating current electrical signal correspondingly by detecting the voltage of the second rectified electrical signal, the selection circuit is connected to the second line by default, the rectification circuit outputs the full-wave rectified electrical signal, and when the shunt control module detects that the voltage of the second rectified electrical signal exceeds the reference voltage interval, the shunt control module outputs a shunt control signal to control the selection circuit to switch from the second line to the first line; and simultaneously starting timing, and after the timing reaches a timing threshold value, the shunt control module adjusts the shunt control signal to control the selection circuit to be switched from the first line to the second line. The timing threshold is related to the duration of the output module for maintaining the power supply voltage, the power frequency cycle of the alternating current and the like. For example, if the voltage transformation circuit and the power management circuit maintain the supply voltage to the power supply for t milliseconds based on the second rectified electrical signal within the received reference voltage interval, the timing threshold may be less than or equal to t milliseconds. For another example, the timing threshold is smaller than half of the power frequency cycle, so as to meet the zero-crossing detection requirement of the zero-crossing detection circuit mentioned later.

In conjunction with the selection circuit shown in fig. 8, the selection circuit 21 is connected to the second line by default, and the rectification circuit outputs a half-wave rectification signal, and when the shunt control module 233 detects that the voltage of the second sampling signal exceeds the reference voltage interval, the shunt control signal is output to control the switch unit M1 to be turned on, that is, the selection circuit is switched from the second line to the first line; and after a time delay, the shunt control module 233 adjusts the shunt control signal to turn off the switch unit M1, at the turn-off time of the switch unit M1, if the ac power is in the negative half cycle (-180-0 degrees), the switch circuit is kept connected to the first line by the phase restriction unit in the time interval from the turn-off time to the end time of the negative half cycle, during which the voltage of the second rectified electrical signal detected by the shunt control module 233 does not exceed the reference voltage interval until the ac power phase enters the positive half cycle (0-180 degrees), and the selection circuit is switched to the second line; when the voltage difference between the two ends of the rectifier bridge in the rectifier circuit is greater than the conduction voltage, the second line is conducted, at this time, the voltage of the second sampling signal starts to change, and when the voltage exceeds the reference voltage interval, the shunt control module 233 controls the switch unit M1 to be conducted again.

As shown in fig. 9, the shunt control module 233 includes a comparison sub-circuit and a control sub-circuit. The comparison sub-circuit is used for comparing the voltage of the second sampling signal with the reference voltage interval and generating 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 Vref 3. When the comparison sub-circuit detects that the voltage of the second sampling signal is higher than Vref3, the output detection signal (such as high level) 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 output detection signal (e.g., low level) indicates that the voltage of the second sampling signal is within the zero-crossing voltage interval.

The control sub-circuit is connected with the comparison sub-circuit and used for outputting the shunt control signal based on the comparison result so as to control the selection circuit to switch from the second line to the first line even if the switch circuit is connected to the first line or the second line. Wherein the control sub-circuit comprises a logic device (group) that outputs a shunt control signal based on control logic set by the received detection signal. Wherein the logic device(s) include, but are not limited to: logic gates, flip-flops, etc. For example, when the control sub-circuit receives a high level signal, a shunt control signal for switching the selection circuit from the second line to the first line is output according to a preset control logic. As shown in fig. 6, taking an example that the switch unit M1 in the selection circuit includes an N-type power transistor, when the shunt control signal output by the control sub-circuit through the pin GATE is a high level signal, which indicates that the N-type power transistor is turned off, the selection circuit is switched from the second line to the first line.

The control sub-circuit further comprises a timer, the timer is controlled by the detection signal output by the comparison sub-circuit, 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 counted time length reaches a timing threshold value, an overtime detection signal is output, and a logic device (group) in the control sub-circuit adjusts the shunt control signal based on the detection signal output by the comparison sub-circuit and the control logic of the overtime detection signal, so that the selection circuit is switched from the first line to the second line. In connection with the example shown in fig. 9 and the switching unit M1, the N-type power transistor is turned on when the shunt control signal goes from high level to low level, so that 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 may be a fixed time threshold or set according to the length of time that the selection circuit selects the first line in at least one switching cycle. Here, the switching cycle refers to a period of time that the selection circuit experiences one switching from the first line to the second line and from the second line to the first line.

When the selection circuit 21 is switched to the second line, the rectifying circuit outputs a second rectified electrical signal. Thus, the transformer circuits (111 and 112) and the power management circuit 12 may provide power to the power supply by the received second rectified electrical signal. Here, the circuit structure and operation of the voltage transformation circuit and the power management circuit may be any of the above-mentioned examples, and will not be described in detail here.

In another example, to improve the accuracy of the timer, the control sub-circuit further includes a timer controller for monitoring a time period t ' required from the turning-on of the switch unit M1 until the selection circuit switches to the second line, storing the time period t ', and adjusting the time period of the delay timer based on the monitored at least one time period t '. Wherein the timer controller comprises at least: latches and logic devices (groups), resets for timers, etc. Wherein the logic device(s) include, but are not limited to, at least one or a combination of: comparators, gate devices, amplifiers, adders, subtractors, etc. For example, the timer starts timing by using the shunt control signal for turning on the switch unit M1 as a trigger signal, and when the rectifier circuit turn-on time is detected, the timer finishes timing and stores the current timing t' of the timer into the latch as the timing reference threshold of the next period. For another example, the timer period of the timer (i.e., the time interval between the conduction timing of the switching unit M1 and the conduction timing of the rectifier circuit) in a plurality of cycles is detected, and the timing reference threshold value of the subsequent cycle is calculated from the timer periods of the plurality of cycles.

In other examples, to prevent the voltage of the received rectified electrical signal from being too high when the selection circuit is switched to the second line, which may damage devices in the power management circuit and devices supplied by the power supply, the power management circuit further includes a first protection module configured to detect the voltage of the second sampling signal, and control the selection circuit to switch from the second line to the first line when the voltage of the second sampling signal is higher than a preset protection voltage threshold.

Please refer to fig. 10, which is a schematic diagram illustrating a power management circuit according to another embodiment. The first protection module 234 is connected in parallel with the shunt control module 233 and detects the voltage of the second sampled signal. Here, the first protection module 234 may directly compare the voltage of the second sampling signal with a preset protection voltage threshold, or compare the second sampling signal with the protection voltage threshold after voltage division or amplification. And when the voltage of the second sampling signal is higher than a preset protection voltage threshold value, controlling the selection circuit to switch from the second line to the first line. Wherein the protection voltage threshold is higher than or equal to the upper voltage limit of the reference voltage interval.

For example, the first protection module 234 includes a comparator a5 and a controlled switch M5; 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, the other input terminal receives the protection voltage threshold, and 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 conducted, the voltage of the control end of the selection circuit 21 is forcibly set to the preset voltage, therefore, the selection circuit is forcibly selected to be switched to the first line, namely, the switching circuit, the load and the zero line form an electrified loop, and meanwhile or slightly delayed, the shunt control module also outputs a shunt control signal for switching the selection circuit to the first line and maintains the shunt control signal for a delay time; 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 of the control end of the selection circuit is determined by the voltage output by the shunt control module, and therefore the selection circuit switches between the first line and the second line according to the control of the shunt control module.

In still other examples, the power management circuit further includes a second protection module 231 for providing overcurrent protection to the power supply. For example, the second protection module includes a protection resistor disposed between the rectifier circuit and the output terminal of the power supply, and a comparator OCP that detects a voltage difference across the protection resistor. When the comparator OCP detects that the voltage difference between the two ends of the protection resistor exceeds a preset protection voltage threshold value, determining that abnormity occurs, and outputting an overcurrent protection detection signal. The overcurrent protection detection signal is used for controlling the switch circuit to be forcibly disconnected. For example, the overcurrent protection detection signal is output to a control circuit powered by the power supply in the intelligent switch, and the control circuit controls the switch circuit to be switched off. The second protection module may also be formed by other circuits including a transistor and/or a triode, which is not illustrated here.

In order for the rectifier circuit to continuously acquire alternating current and provide a rectified electrical signal, in further embodiments, the rectifier circuit includes a first rectifying unit (i.e., the first rectifying unit mentioned in any of the preceding examples) dedicated to providing the rectified electrical signal during the off period of the switching circuit, and a second rectifying unit dedicated to providing the rectified electrical signal during the on period of the switching circuit. Wherein the second rectifying unit is connected to an output side of the switching circuit. According to the actual circuit design, the second rectifying unit can perform full-wave rectification or half-wave rectification processing. Thus, in order to prevent the first rectifying unit and the second rectifying unit from outputting the rectified electrical signal during the conduction period of the switching circuit, the first rectifying unit and the second rectifying unit can adopt rectifying bridges with different conduction voltages. For example, the conduction voltage of the rectifier bridge in the first rectifying unit is higher than the conduction voltage of the rectifier bridge in the second rectifying unit.

Correspondingly, the power circuit also comprises an output module which is used for continuously supplying power to the power supply source during the conduction period of the switch circuit and is used for continuously supplying power based on the received second rectified electrical signal. To this end, in some examples, the output module may directly output the second rectified electrical signal to the power supply according to a voltage interval of the second rectified electrical signal output by the rectification circuit. For example, the output module is a wire. In other examples, please refer to fig. 11, which shows a circuit structure diagram of a power circuit in another embodiment. The output module 232 includes at least one of a filter capacitor and a voltage dividing resistor, so that the voltage of the supplied power signal matches the power supply voltage required by the power supply.

The power supply circuit may include the selection circuit and shunt control module of fig. 9-10 and the corresponding descriptions. Taking fig. 11 as an example and combining the waveform diagram of the circuit shown in fig. 12, the operation process of the power supply circuit during the conduction period of the switching circuit is as follows: the selection circuit 21 defaults to connect the switching circuit 31 to the second line to provide the alternating current electrical signal to the second rectifying unit, the second rectifying unit outputs the second rectified electrical signal, and the second sampling circuit 25 samples the second rectified electrical signal and outputs the second sampling signal; a comparison sub-circuit 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 a control sub-circuit, which correspondingly outputs a shunt control signal for maintaining the connection of the selection circuit to the second line, during which the output module 232 converts the voltage of the second rectified electrical signal into a supply voltage until the comparison sub-circuit compares that the voltage of the second sampling signal 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, the control sub-circuit on one hand adjusts the voltage of the shunt control signal (the voltage output by the Gate pin) to control the selection circuit 21 to be switched from the second line to the first line, so that the second rectified electrical signal is phase-cut, on the other hand, the delay timing is started, and the voltage of the shunt control signal is adjusted to be converted into the high level when the delay timing is overtime, so that the rectification circuit outputs the second rectified electrical signal to the output module, meanwhile, the second sampling circuit 21 continues to output the second sampling signal to the comparison sub-circuit, and the process is repeatedly executed.

In the embodiment where the power management circuit includes the output module and the shunt control module, and the power circuit further includes the selection circuit, as shown in fig. 11, the power management circuit may further include a first protection module 234 corresponding to fig. 10, which is connected in parallel with the shunt control module 233, and 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 234 controls the selection circuit 21 to switch from the second line to the first line; at the same time or with a slightly delayed response, the shunt control module 233 controls the selection circuit 21 to switch from the second line to the first line and maintain the counted time period. And will not be described in detail herein.

In an embodiment where the power management circuit includes an output module, the power management circuit may further include a second protection module 231, configured to provide overcurrent protection for the power supply. For example, the second protection module 231 includes a protection resistor disposed between the rectifying circuit and the output terminal of the power supply source, and a comparator OCP that detects a voltage difference across the protection resistor. When the voltage difference between the two ends of the protection resistor exceeds the preset protection voltage threshold value, the comparator OCP determines that an abnormality occurs and outputs an overcurrent protection detection signal, which is not described in detail herein.

In order to maintain the conditions of instantaneous current interruption or current backflow and the like caused by power supply switching of the power supply at the moment that the switching circuit is switched from off to on, diodes are respectively arranged 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 side output unit and a power supply; and the other diode is connected between the output end of the output module and a power supply. And the power supply side is also provided with an energy storage circuit so as to discharge at the switching moment, thereby realizing the uninterrupted power supply of the power supply. The electric devices used by the power management circuit during the period of the switch circuit being turned off include active electric devices or electric devices requiring signal processing by continuous power supply, and for this purpose, the power management circuit itself also supplies power by the power supply of the transformer circuit. The power circuit further includes a second self-power circuit for supplying power to the power management circuit during conduction of the switching circuit. In some examples, for example, the second self-powered circuit may be a wire connected at power terminals of the power supply and the power management circuit. Also, for example, according to the actual operating voltage of the power management circuit, the second self-powered circuit may further include: at least one of a divider resistor and a low dropout regulator. In other examples, the input terminal of the second self-powered circuit is connected to the ac power line, or the output terminal of the rectifier circuit, or the output terminal of the power supply source through a second line, and the output terminal of the second self-powered circuit is electrically connected to the power supply terminal of the power supply management circuit.

It should be noted that the above examples related to the output module are not mutually exclusive and may be combined according to the actual circuit design, and furthermore, for the principle of circuit optimization, the electric devices mentioned in the foregoing examples may combine the corresponding functions of the rectifier circuit and other circuit units in the intelligent switch. For example, the filter capacitor is shared with a capacitor in the rectifier circuit. The electric devices described in the examples of the present application are understood by those skilled in the art from the role that circuit devices have in circuit configuration.

In some practical applications, when a load is powered on or off in the peak region of the ac voltage, the semiconductor devices and the switching circuits in the load are easily broken down by the instantaneous high voltage to cause damage to the load. Therefore, a zero-crossing detection circuit is further integrated in the power supply circuit, and is used for detecting the phase of the current alternating current electric signal based on the zero-crossing phase region and outputting a zero-crossing detection signal; the zero-crossing detection signal is used for providing time information of the alternating current near a zero phase, and other circuits which are connected with the power circuit and are powered by the power circuit can execute the operation of load control based on the zero-crossing detection signal. For example, the power circuit supplies power to a control circuit, the control circuit also receives the zero-crossing detection signal, and the control circuit controls the switching circuit to be switched on or off based on the zero-crossing detection signal and after receiving control information. Wherein the control signal information is obtainable based on control logic processing of at least one logic signal. Wherein, the sources of the logic signals include but are not limited to: the detection signal is generated based on an on-off instruction sent by a wireless device such as a remote controller and an intelligent terminal, generated based on a mechanical on-off operation, generated based on an electric signal sent by a touch panel, generated based on detection of the zero-crossing detection signal, or generated by other devices including a timer. The manner of outputting the control signal by the control circuit based on the preset control logic for the at least one logic signal will be described in the following examples.

Here, the zero-crossing detecting circuit may be connected to the rectifying circuit, and detect the zero-crossing phase of the current ac power by detecting the zero-crossing phase of the obtained rectified electrical signal. The zero-crossing detection circuit can directly detect whether the voltage of the received rectified electrical signal conforms to a zero-crossing voltage interval corresponding to a zero-crossing phase interval or carry out voltage detection after sampling the rectified electrical signal; and when the detected voltage falls into the zero-crossing voltage interval, outputting a zero-crossing detection signal. The zero-crossing detection circuit can be separately configured outside the chip where the power management circuit is located, or at least partially integrated on the chip.

In some embodiments, the zero-crossing detection circuit performs zero-crossing detection of the alternating current during a switching-off period of the switching circuit, and the zero-crossing detection signal provided during the switching-off period can be used for preventing a load from accessing a voltage peak interval of the alternating current at a switching-on instant of the switching circuit. To this end, the zero-crossing detection circuit includes a first zero-crossing detection unit. The first zero-crossing detection unit is used for detecting whether a first detection signal used for reflecting the current alternating current phase falls into a zero-crossing phase interval or not during the disconnection of the switching circuit and outputting a zero-crossing detection signal.

In some examples, the first zero-crossing detection unit obtains a first detection signal by collecting the rectified ac electrical signal, detects whether the first detection signal falls into a zero-crossing phase interval, and outputs a zero-crossing detection signal. In particular, the first detection signal may be sampled from a first rectified electrical signal. For example, the first zero-crossing detection unit includes a sampling resistor connected to the rectifying circuit, and a first detection signal capable of describing a voltage change of the first rectified electrical signal in real time is obtained by voltage division processing of the sampling resistor.

In other examples, in order for the first zero-cross detection unit to obtain the rectified electrical signal with a more significant waveform, the first zero-cross detection unit directly obtains the ac electrical signal on the ac electrical line during the disconnection of the switching circuit, obtains a first detection signal capable of reflecting the first rectified electrical signal, and outputs a corresponding zero-cross detection signal by detecting a voltage of the first detection signal.

Here, the zero-crossing detection signal is generated based on a comparator in the first zero-crossing detection unit, one input terminal of the comparator receives the first detection signal, and the other input terminal receives an upper voltage limit of the zero-crossing voltage interval, and when the voltage of the first detection signal is lower than the upper voltage 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 upper voltage limit, the comparator outputs a high level, that is, the zero-crossing detection signal indicates that the phase of the currently rectified electrical signal is near the zero phase; when the voltage of the first detection signal is higher than the upper voltage 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 the zero phase, and the subsequent logic unit may provide corresponding detection logic based on the logic expressed by the level of the zero-crossing detection signal and output the zero-crossing detection signal.

In order to reduce the internal consumption of the zero-crossing detection circuit, the first zero-crossing detection unit provided by the 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-cross detection unit may sample the first rectified electrical signal or the alternating current electrical signal at sampling intervals smaller than a variation period of the rectified electrical signal to obtain a first detection signal, and output the corresponding zero-cross detection signal by detecting a voltage of the first detection signal sampled at the intervals. Or, the first zero-crossing detection unit performs voltage detection on the first detection signal sampled in real time at intervals by using a detection interval smaller than the change period of the rectified electrical signal, and outputs a corresponding zero-crossing detection signal. The sampling interval or the detection interval smaller than the change period of the rectified electrical signal is used for ensuring that the first zero-crossing detection unit can acquire the first detection signal corresponding to the first rectified electrical signal or the alternating current electrical signal in the zero-crossing voltage interval. For example, the sampling interval or detection interval is set using the power frequency cycle of the alternating current.

Therefore, please refer to fig. 13, which is a schematic circuit diagram of the first zero-crossing detection unit. The first zero-crossing detection unit 41 includes a first detection signal generation module and a first zero-crossing detection module 413.

The first detection signal generation module generates first detection signals corresponding to the current alternating current phase at intervals; wherein the first detection signal reflects at least the alternating current signal in the zero-crossing phase interval.

Here, continuing with some of the aforementioned embodiments of the rectifier circuit, during the period in which the switching circuit is off, the rectified electrical signal output by the rectifier circuit is the first rectified electrical signal. According to a circuit structure of a first rectifying unit in the rectifying circuit for outputting a first rectified electrical signal, the first detection signal generating module may directly obtain the first rectified electrical signal to sample the first rectified electrical signal at intervals and obtain a first detection signal.

In some examples, to meet the circuit configuration requirement that a voltage transformation circuit in the power supply circuit provides power to a power supply, the first detection signal generation module includes: the sampling submodule 411 and the control submodule 412 are arranged to obtain the ac electrical signal during the disconnection period of the switching circuit from the ac electrical line to which the switching circuit is connected at intervals, thereby obtaining a first detection signal reflecting the phase of the ac electrical signal.

The sampling submodule at least comprises a switch M2, the switch M2 is arranged on a line for performing the acquisition operation, for example, the switch M2 is arranged on a sampling line connected to an alternating current line. For another example, the switch M2 is disposed on a sampling line connected to a rectifying circuit. When the switch M2 is conducted, the sampling submodule executes acquisition operation; otherwise, the sampling submodule stops executing the acquisition operation. Therefore, the sampling operation can be regarded as an execution process of the sampling submodule capable of generating the first detection signal by the collected sampling signal; stopping the acquisition operation may be regarded as an execution process in which the sampling submodule cannot obtain the sampling signal. The process that the sampling submodule executes interval acquisition operation in one power frequency period of alternating current means that the switch M2 executes at least one group of on-off operation in one power frequency period. The set of on-off operations can only occur when the phase of the alternating current signal is within the zero-crossing phase interval, or only occur when the phase of the alternating current signal is outside the zero-crossing phase interval, or occur during the period when the phase of the alternating current signal enters the zero-crossing phase interval from inside the zero-crossing phase interval.

The sampling submodule here comprises a rectifier bridge, a switch and a sampling resistor. The rectifier bridge is connected to an alternating current circuit connected with the input end of the switch circuit and connected with the switch and the sampling resistor. The sampling Resistor HV _ Resistor collects a rectification electric signal output by a rectification bridge RB3 and outputs a first detection signal in the switching-off period of the switch circuit and the switching-on period of the switch M2; when the switch is turned off, the sampling Resistor HV _ Resistor cannot output the first detection signal corresponding to the phase of the rectified electrical signal, thereby intermittently outputting the first detection signal. The switch M2 is an N-pole power transistor. In fact, it should be readily understood by those skilled in the art that the switch M2 can be replaced by a P-type power transistor, a triode, etc. according to the actual circuit design.

Taking the sampling submodule 411 including the rectifier bridge RB3, the switch M2 and the 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 sub-module 412 is connected to a control terminal of the switch M2, and is configured to output a sampling control signal by detecting the first detection signal or the zero-crossing detection signal to control the switch. Here, to ensure that the sampling submodule 411 outputs the first detection signal when the phase of the current alternating current falls into the zero-crossing phase interval, the control submodule 412 controls the on or off duration of the switch by detecting the voltage of the first detection signal, wherein the control submodule 412 outputs the sampling control signal indicating the control on or off duration by the electrical connection with the control terminal of the switch M2. The control sub-module 412 presets a reference voltage interval covering a zero-crossing voltage interval corresponding to the zero-crossing phase interval. For example, the upper voltage limit V1 of the reference voltage interval is equal to or greater than the upper voltage limit V2 of the zero-crossing voltage interval, and the lower voltage limit V1 'of the reference voltage interval is equal to or less than 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 equal to or greater than 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. As another example, the reference voltage interval is equal to the zero-crossing voltage interval.

In some examples, the control sub-module controls the switch to be turned on at intervals according to a preset time interval, detects the voltage of the first detection signal during the turn-on period, and when the voltage of the first detection signal falls into the reference voltage interval, the control sub-module continuously outputs the sampling control signal to enable the switch in the sampling sub-module to be turned on all the time until zero detection that the voltage of the first detection signal exceeds the reference voltage interval, controls the switch to be turned off, and controls the switch to be turned on at intervals according to the preset time interval. For example, the control submodule includes a signal generator, a comparator, a gate and the like, wherein the comparator compares the voltage V of the first detection signal with an upper voltage limit V1, and when the voltage V of the first detection signal is greater than or equal to the upper voltage limit V1, the gate selects to connect the signal generator and the control terminal 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 switched on and off according to a preset on-off period; when the voltage V of the first detection signal is less than the upper voltage limit V1, the gate selectively connects the control terminal of the switch to a constant voltage terminal based on the comparison result output by the comparator, so that the control terminal of the switch is always turned on by the constant voltage signal provided by the constant voltage terminal. Wherein, the constant voltage terminal can be a voltage ground terminal or an output terminal of a reference voltage source according to the type of the switch in the actual circuit design.

In still other examples, the control sub-module controls the switch to be turned on at intervals according to a preset time interval, detects the voltage of the first detection signal during the turn-on period, and adjusts at least one of the duty ratio and the frequency of the sampling control signal when the voltage of the first detection signal falls within the reference voltage interval to ensure that the voltage of the first detection signal output by the sampling sub-module falls within the zero-crossing voltage interval. For example, the control submodule includes an adjustable signal generator, a comparator and the like, wherein the comparator compares the voltage V of the first detection signal with an upper voltage limit V1, and when the voltage V of the first detection signal is less than or equal to the upper voltage limit V1, based on a comparison result output by the comparator, the adjustable signal generator outputs a sampling control signal with a first duty ratio to the control terminal of the switch, so that the switch is controlled by the square wave control signal output by the signal generator and is switched on and off according to a period of the square wave control signal; when the voltage V of the first detection signal is greater than the upper voltage limit V1, based on the comparison result output by the comparator, the adjustable signal generator adjusts the duty ratio of the sampling control signal to a second duty ratio, and outputs the second duty ratio to the control end of the switch; wherein the second duty cycle is less than the first duty cycle.

In some particular examples, the control sub-module outputs the sampling control signal by detecting a zero crossing detection signal. When the control sub-module detects that the zero-crossing detection signal is valid, the control sub-module outputs a sampling control signal for controlling the switch to be switched off, and starts a sampling interval timer; and when the sampling interval timing reaches a sampling interval threshold value, the control submodule adjusts the sampling control signal to control the switch to be conducted.

The first detection signal output by any of the above examples is transferred to a first zero-crossing detection module, which is configured to detect whether the voltage of the first detection signal falls within the zero-crossing voltage interval, and output a zero-crossing detection signal according to 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 an upper voltage limit V2 of a zero-crossing voltage interval, and when the voltage V of the first detection signal is less than or equal to the upper voltage limit V2, the output zero-crossing detection signal indicates that the phase of the current alternating current is within the zero-crossing phase interval, whereas 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 is described by using a pulse width signal composed of high and low levels according to a circuit design of an actual first zero-crossing detection module, and a time length of the pulse width signal used for representing an effective pulse width of a zero-crossing phase interval may be small. In some examples, a duration of an effective pulse width of the zero-crossing detection signal is determined based on a duration for which the detection signal falls within the zero-crossing voltage interval. For example, if the first detection signal is continuously output in a 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; and 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 still other examples, the duration of the effective pulse width of the zero-crossing detection signal is determined based on an operating duration of a control submodule in the shunt control module or the first detection signal generation module. For example, the shunt control module controls the switch unit in the selection circuit to be turned on when receiving a valid zero-crossing detection signal, and the selection circuit selects to switch to the first line when the switch unit is turned on, so that the zero-crossing detection signal is changed from valid to invalid due to no alternating current signal flowing in the second line, and thus it can be seen that the duration of the valid 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 above description of the examples, the zero-crossing detection signal may be a square wave signal having a longer effective pulse width duration or a pulse signal having a shorter effective pulse width duration.

It should be noted that, according to the example provided in fig. 13 and the related example mentioned above, the first zero-crossing detection unit may also provide the zero-crossing detection signal during the conduction period of the switching circuit. For example, please refer to fig. 14, which is a schematic circuit diagram of an embodiment of the power circuit, wherein the power circuit includes: a voltage transformation circuit (111 and 112), a power management circuit 12, a zero-crossing detection circuit 41, and a selection circuit 21. During the conduction period of the switching circuit, the shunt control module in the power management circuit controls the selection circuit to switch between the first line and the second line based on the zero-crossing phase interval. Under the control of the shunt control module, when the selection circuit selects the second line, a first zero-crossing detection unit in the zero-crossing detection circuit obtains a first detection signal reflecting the alternating current phase, and outputs a zero-crossing detection signal when the voltage of the first detection signal is determined to fall into a zero-crossing voltage interval corresponding to the zero-crossing phase interval. Meanwhile, the transformation circuit supplies power to the power supply.

The application also provides a zero-crossing detection circuit, which is used for carrying out zero-crossing detection during the conduction period of the switching circuit, and the zero-crossing detection circuit comprises a second zero-crossing detection unit and is used for providing a zero-crossing detection signal during the conduction period of the switching current, so that the possibility of damage to a load and devices in the switching circuit caused by the moment of disconnection of the switching circuit in the voltage peak interval of the alternating current can be effectively reduced. To this end, the second detection unit performs zero-crossing detection during the on-period of the switching circuit to output a corresponding zero-crossing detection signal. The second zero-crossing detection unit detects whether a second detection signal for reflecting the current alternating current phase falls into a zero-crossing phase interval or not during the conduction period of the switching circuit, and outputs a zero-crossing detection signal.

Please refer to fig. 15, which is a schematic circuit diagram of the second zero-crossing detection unit according to an embodiment. The second zero-crossing detection unit includes a second detection signal generation module 421 and a second zero-crossing detection module 422.

The second detection signal generation module generates a second detection signal reflecting the current alternating current phase. Here, the second detection signal generation module may include a sampling electric device (group). In some examples, during the on period of the switch circuit, the second detection signal generation module synchronously acquires the alternating current signal output by the switch circuit by using the (group of) sampling electric devices, and outputs the sampled sampling signal as the second detection signal. In another example, continuing with some of the aforementioned implementations of the rectifier circuit, during the time that the switching circuit is conducting, the rectified electrical signal output by the rectifier circuit is the second rectified electrical signal. Correspondingly, in some examples, the second detection signal generation module samples the second rectified electrical signal or directly samples the alternating current electrical signal by using (a group of) sampling electrical devices, and outputs the sampled signal as the second detection signal.

In still other examples, the phase interval of the second rectified electrical signal received by the second detection signal generation module corresponds to the phase interval of the power management circuit during phase-cut control, under the phase-cut limitation of the power management circuit. In one example, the phase interval selected by the power management circuit based on the purpose of power supply includes a zero-crossing phase interval, and the second detection signal generation module outputs the second sampling signal provided by the second sampling circuit as a second detection signal; or sampling the second sampling signal again to obtain the second detection signal and outputting the second detection signal. For example, the second detection signal generating module 421 includes voltage dividing resistors R23 and R24 and is connected between the second sampling circuit 25 and the voltage ground, and the second detection signal output by the second detection signal generating module 421 is an electrical signal collected between the voltage dividing resistors R23 and R24. According to the actual circuit structure design requirement and the circuit simplification purpose, the second sampling circuit and the second detection signal generation module can share all or part of resistors, for example, share a resistor for voltage division.

The second zero-crossing detection module is connected to the second detection signal generation module, and is configured to detect a voltage of the second detection signal based on a zero-crossing voltage interval corresponding to the zero-crossing phase interval, and output the zero-crossing detection signal based on a detection result. For example, the second zero-crossing detection module includes a comparator, one input terminal of the comparator receives the second detection signal and the other input terminal receives the upper voltage limit V3 of the zero-crossing voltage interval, when the voltage V' of the second detection signal is lower than or equal to the upper voltage limit V3, the output second detection signal indicates that the phase of the current alternating current is within the zero-crossing phase interval, and 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 of which compares the voltage of the rectified electrical signal with the reference voltage Vref4, and outputs the zero crossing detection signal when the logic signals output by the two comparators indicate that the phase of the current ac power falls into the zero crossing phase interval.

In order to prevent the other logic devices in the zero-crossing detection circuit from being disturbed by the voltage to generate the misoperation related to the zero-crossing detection signal, in some examples, please refer to fig. 16, which is a schematic diagram of a circuit structure of the 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 configured to perform logic processing based on the zero-crossing detection signals output by the first zero-crossing detection unit 41 and the second zero-crossing detection unit 42, and output the zero-crossing detection signal that can be recognized by the control circuit 24. The logic unit 43 includes, for example, an exclusive or process, so as to output the zero-crossing detection signal that can be identified by the control circuit only when the first zero-crossing detection unit 41 or the second zero-crossing detection unit 42 outputs the zero-crossing detection signal indicating that the current alternating current is in the zero-crossing phase interval.

In the zero-crossing detection circuit designed based on the teachings of the technical solution provided in the present application, the effective duration of the output zero-crossing detection signal may be short, and the response may be missed by a control circuit in a power-saving state, a standby state, a sleep state, or the like, where the control circuit is, for example, a circuit including a CPU, a circuit including an enable controller, or the like. Therefore, the detection circuit of the present application further includes a zero-crossing detection signal output module, which is configured to amplify the zero-crossing detection signal output by the zero-crossing detection module or the logic module. Here, the amplification process includes an amplification process based on a voltage amplitude, and/or an amplification process based on an effective time period. In some examples, the zero-crossing detection signal output module includes an amplifier that amplifies a voltage amplitude of the zero-crossing detection signal to match a voltage requirement to wake up a subsequent control circuit.

In still other examples, the zero-crossing detection circuit further comprises: and the zero-crossing detection signal output module is used for prolonging the effective time of the zero-crossing detection signal. Here, the zero-crossing detection signal output module converts the zero-crossing detection signal with the effective pulse width provided by the zero-crossing detection module into a zero-crossing detection signal with a preset duration; and the duration of the effective pulse width is less than the preset duration.

The zero-cross detection signal output module comprises a duration prolonging device (group), and even can comprise a triggering/resetting device (group) of the duration prolonging device (group) and the like. Examples of the duration extension device(s) include a monostable flip-flop (also referred to as one-shot). Examples of the trigger/reset device(s) of the duration extension device(s) include a timer, a flip-flop, and the like. The trigger/reset device(s) outputs a trigger signal based on the zero-crossing detection signal provided by the zero-crossing detection module, starts a reset timing based on the zero-crossing detection signal provided by the zero-crossing detection module, and outputs a reset signal when the reset timing is over. The duration extension device(s) outputs a zero-cross detection signal based on the trigger signal and performs resetting based on the reset signal. Wherein the duration extension device(s) outputs the zero-crossing detection signal based on a preset duration to achieve the purpose of extending the duration. Wherein the preset duration may be a fixed value or based on a time interval between the trigger signal and the reset signal of the duration extension device(s).

Taking the example that the zero-crossing detection signal output module only receives 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) is a pulse signal, the trigger/reset device (group) outputs a trigger signal, and the trigger duration extension device (group) outputs an effective zero-crossing detection signal within a preset duration; wherein the preset time length is longer than the time length of the first zero-crossing detection signal; meanwhile, the triggering/resetting device(s) performs reset timing based on the first zero-cross detection signal, and outputs a reset signal to reset the duration extension device(s) when the reset timing is timed out. The reset timing duration is greater than or equal to the preset duration provided by the duration extension device (group), and is required to be less than the power frequency period.

Taking the example that the zero-cross detection signal output module only receives the second zero-cross detection signal provided by the second zero-cross detection module, when the zero-cross detection signal provided by the second zero-cross detection module and received by the duration extension device (group) is a pulse signal, the duration extension device (group) outputs the zero-cross detection signal whose effective pulse width is the preset duration; the preset duration is greater than the duration (namely, the duration of the effective pulse width) of the pulse signal and is less than the power frequency period. Wherein the duration extension device(s) automatically resets after outputting a zero-crossing detection signal having an effective pulse width of a preset duration.

Taking the zero-crossing detection signal output module including the aforementioned logic unit, a first trigger/reset device (group) corresponding to the first zero-crossing detection module, a second trigger/reset device (group) corresponding to the second zero-crossing detection module, and a duration extension device (group) as an example, please refer to fig. 22, which shows a schematic circuit structure diagram of the zero-crossing detection circuit in an embodiment, wherein an output end of the first zero-crossing detection module is connected to the first trigger/reset device (group), an output end of the second zero-crossing detection module is connected to the second trigger/reset device (group), 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 an output end of the logic unit is connected to the duration extension device (group); here, the second zero cross detection module does not output the second zero cross detection signal during the switching circuit is turned off, correspondingly, the output terminal of the second trigger/reset device (group) is regarded as outputting the second reset signal, when the first zero-crossing detection module outputs a first zero-crossing detection signal (such as a pulse signal), the first trigger/reset device(s) outputs a first trigger signal to the logic unit, and starts the 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 length prolonging device (group) outputs a zero-crossing detection signal with preset time length (namely, a zero-crossing detection signal with effective pulse width as preset time length) based on the trigger logic signal; when the reset timing of the first trigger/reset device (group) is overtime, a first reset signal is output, the logic unit outputs a reset logic signal corresponding to the first reset signal according to the control logic, and then the duration prolonging device (group) is reset. During the on-state of the switching circuit, the first zero-crossing detection module does not output a first zero-crossing detection signal, correspondingly, the output end of the first trigger/reset device (group) is regarded as outputting a first reset signal, when the second zero-crossing detection module outputs a second zero-crossing detection signal (such as 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 according to the control logic of the preset first trigger signal, the preset first reset signal, the preset second trigger signal and the preset second reset signal, and the duration extension device (group) outputs a zero-crossing detection signal with preset duration (namely, a zero-crossing detection signal with an effective pulse width as preset duration) based on the trigger logic signal; and the second trigger/reset device (group) outputs a second reset signal when the reset timing is overtime, the logic unit outputs a reset logic signal corresponding to the second reset signal according to the control logic, and the duration prolonging device (group) is reset.

With the above described power supply circuit, the present application also provides a chip that may integrate at least part of the electrical devices of the above power supply circuit. For example, the chip is integrated with a power management circuit in the power circuit. Here, in order to match the circuit configuration of the aforementioned voltage transformation circuit, the chip at least includes: the power supply comprises a first pin used for being connected with a primary side input unit, a second pin used for obtaining a first sampling signal reflecting a power supply signal output by the power supply, a chip pin used for being connected with a voltage ground and the like. The power management circuit integrated in the chip is connected with the primary side input unit through the first pin and acquires the first sampling signal through the second pin, so that the power management circuit controls the current flowing through the primary side input unit based on the first sampling signal, and the power supply provided by the secondary side output unit is stable. Here, the operation and circuit structure of the power management circuit are the same as or similar to those mentioned above with reference to fig. 1 to 8 and the corresponding description, and will not be described in detail here.

Wherein the first sampling signal is collectable by the first sampling circuit. In some examples, the first sampling circuit is externally disposed on a chip, the first sampling circuit is connected between the secondary side 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 in a chip, and the first sampling circuit is connected to the secondary output unit through a second pin, and is configured to sample an output side of the secondary output unit and generate a first sampling signal.

The aforementioned power management circuit, when incorporated in a line with a switching circuit, can continuously supply power to the power supply source directly during the off period of the switching circuit. In some applications, the chip utilizes a first self-powered circuit to draw power from a power supply to maintain its operation. The first self-powered circuitry may be external to the chip, and to this end, the chip has chip pins for connection to the first self-powered circuitry. The first self-powered circuit may be integrated in a chip, for which purpose the chip has chip pins for connection to a power supply. The circuit structure of the first self-powered circuit and the connection relationship with the power management circuit are the same as or similar to those of the corresponding solutions mentioned above, and are not repeated here.

In some examples during the on-period of the switching circuit, the chip may further include a third pin for connecting a selection circuit provided on the alternating-current line on the output side of the switching circuit; the selection circuit is used for selecting the switch circuit to be connected to the first line or the second line during the conduction period of the switch circuit so as to respectively form an electrifying loop of the alternating current line. When the power management circuit controls the selection circuit to be switched to the second circuit through the third pin, the power management circuit converts the obtained rectification electric signal into a power supply signal so as to continuously supply power to the power supply.

In other examples during the switching circuit being on, the chip further integrates the selection circuit and includes a chip pin for accessing an alternating current line. The selection circuit and the power management circuit can be integrated together by a PCB and packaged in a chip.

The circuit structure and operation of the selection circuit mentioned in any of the above examples can be shown in fig. 9 and 10 and their corresponding descriptions, and will not be repeated here.

In order to control the selection circuit to perform the switching operation, on one hand, the power management circuit further obtains a second sampling signal, wherein the second sampling signal is transmitted to the power management circuit in the chip through a fourth pin of the chip. On the other hand, a power management circuit in the chip comprises a shunt control module; the shunt control module is connected with the selection circuit through an internal data line or a chip pin and used for outputting a shunt control signal to the selection circuit by detecting the phase of the second sampling signal so as to control the selection circuit to switch between the first line and the second line. For this purpose, a fourth pin of the chip may be connected to a second sampling circuit, where the second sampling circuit is configured to sample an electrical signal in the second line for reflecting the ac electrical signal 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; or the second sampling circuit is integrated in the chip and is connected with the rectifying circuit through a fourth pin.

The circuit structure and operation of the second sampling circuit, the shunt control module, etc. mentioned above are the same as those of fig. 9-11 and the corresponding description, and will not be repeated here. In addition, the power management circuit also integrates the first protection module described in the foregoing fig. 11, which is not repeated here.

In other embodiments, according to the foregoing fig. 10 to 11 and the corresponding description, the power management circuit further includes a second protection module, configured to provide overcurrent protection for the power supply. The operation and circuit structure of the second protection module can be as shown in fig. 10-11 and the corresponding description, and will not be repeated here. The over-current protection detection signal generated by the second protection module can be output through a chip pin so as to be used for other circuits connected with the chip to execute corresponding response operations, for example, the aforementioned control circuit controls the switch circuit to be switched off based on the over-current protection detection signal.

According to the aforementioned power circuit, the chip may further integrate a zero-crossing detection circuit, and the chip further provides a plurality of chip pins for providing an electrical signal reflecting the current ac electrical 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 operation of the zero-crossing detection circuit are shown in fig. 13 to 16 and the corresponding descriptions, and will not be described in detail here.

Utilize the power supply circuit that above-mentioned provided, this application still provides an intelligence switch. The intelligent switch can be used for being installed on an indoor alternating current circuit. The ac electrical line can deliver ac power to a load and provide a conductive carrier for the ac power to return to ground. The intelligent switch is connected to the alternating current circuit, so that the conduction or disconnection of an electrifying loop for supplying power to the corresponding load by alternating current is controlled. Wherein the load comprises a lamp and any terminal electrical appliance plugged into an electrical outlet. The terminal electric appliance includes: power adapters, air conditioners, refrigerators, televisions, kitchen appliances, and the like. Moreover, the intelligent switch can also output a control instruction to a terminal electric appliance in communication connection with the intelligent switch based on pre-configuration; wherein, the terminal electric appliance includes: intelligent curtain, air conditioner, TV, rice cooker, robot of sweeping the floor etc..

Please refer to fig. 17, which is a schematic diagram of a frame structure of an intelligent switch according to an embodiment. The intelligent switch includes a switch circuit 51, a rectifying circuit 52, a power supply circuit 53, and a control circuit 54. Wherein the power supply circuit is adaptable according to the actual circuit design of the aforementioned power supply circuit and the switching circuit and rectifying circuit.

Referring to fig. 18, a circuit configuration diagram of an intelligent switch in an embodiment is shown, wherein a power circuit includes a transformer circuit 531 for providing an internal power supply during an off period of a switch circuit 51, a power management circuit 532, a first self-power supply circuit 534, and a first sampling circuit 533, wherein a circuit module of the power management circuit 532 for controlling the transformer circuit 531 during the off period of the switch circuit 51 includes a regulating module 541 and a second control module 542'. the power circuit further includes a power management circuit 532 for providing an internal power supply during an on period of the switch circuit 51, a second sampling circuit 537, a selecting circuit 535, and a second self-power supply circuit 538, wherein a circuit module of the power management circuit 532 for providing power to the power supply sequentially during the on period of the switch circuit 51 includes a second protection module 544, an output module 543, and a shunt control module 545. the power circuit further includes a tank circuit 540 disposed at an output side of the power supply circuit 540 for filtering the power supply signals, and for maintaining an output voltage of the power supply at a low voltage adjustment signal output by the power supply 357. the power supply circuit also includes a linear regulator circuit 551, a linear regulator circuit for maintaining an output voltage adjustment of the linear regulator circuit 551 and a linear regulator circuit for maintaining a low voltage adjustment signal output of the linear regulator circuit 539 (for maintaining the output adjustment circuit).

The intelligent switch is connected to the live wire and used for being controlled to be switched on or switched off, when the intelligent switch is switched off, the load of the line where the intelligent switch is located is in a stop state, and when the intelligent switch is switched on, the load can be switched into an operating state under the driving of the driving circuit of the intelligent switch, wherein the stop state refers to a state where the load cannot receive alternating current power supply, for example, an L ED lamp is in a non-lighting state during the switching-off period of the switch circuit, the operating state refers to a state where the load achieves a use purpose through the operation of an internal circuit after receiving the alternating current power supply, for example, a L ED lamp is in a lighting state during the switching-on period of the switch circuit, and the operating state is not limited to one state and can be adjusted according to an actual control instruction.

In some examples, the switching circuit includes a relay; wherein the relay is operated by the power supply of the power supply. Two ends of a switch in the relay are connected to an alternating current circuit, and a control end is connected with a control circuit in the power circuit. When the control circuit controls the switch circuit to be conducted based on the control information, the control circuit can achieve the conduction of the relay by improving the power supply current output to the control end of the relay; when the control circuit controls the switching circuit to be turned off based on the control information, the control circuit may realize the relay turn-off by reducing the supply current output to the relay control terminal.

The rectification circuit is connected with the switching circuit and used for rectifying the accessed alternating current and outputting a rectification electric signal during the disconnection period and the conduction period of the switching circuit. The rectification electrical signal output by the rectification circuit can be a rectification electrical signal obtained by rectifying an alternating current signal through a half-wave rectification bridge or a full-wave rectification bridge. The rectification circuit can be connected to a live wire on one side of the input end of the switching circuit so as to shunt alternating current signals to obtain rectification electric signals during the disconnection and the conduction of the switching circuit.

In some embodiments, as shown in fig. 18, the rectification circuit includes a first rectification unit 521. The first rectifying unit 521 is connected to an ac line connected to an input end of the switching circuit, and is configured to rectify 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 rectification circuit.

In order to ensure that the load maintains the stop state during the off period of the switching circuit, the voltage interval of the alternating current signal received by the first rectifying unit is lower than the working voltage interval required to be reached during the load working state. A technician may ensure that the load maintains its rest state while the first rectifying unit outputs the first rectified electrical signal by selecting electrical device parameters in the first rectifying unit. In some examples, the first rectification unit includes a rectifier bridge and a filter capacitor. Wherein, the rectifier bridge includes a half-wave rectifier bridge or a full-wave rectifier bridge. Taking the first rectifying unit 521 as a half-wave rectifying bridge as an example, an output end of the rectifying bridge in the first rectifying unit 521 is connected to a filter capacitor, and the other end of the filter capacitor is grounded.

The first rectified electrical signal output via the first rectifying unit is transmitted to a transforming circuit in the power circuit. The power management circuit may control the transforming circuit to convert the received first rectified electrical signal into energy according to any of the aforementioned examples to obtain a power supply for supplying power to internal electrical devices of the intelligent switch, such as the power management circuit, the control circuit, and the switching circuit.

Taking the circuit structure of the intelligent switch shown in fig. 18 as an example, the circuit structures and the operation processes of the first rectifying 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 at the input end of the switch circuit, the output end of the half-wave rectifier bridge is connected to the primary side input unit in the transformer circuit 531 through the filter capacitor, and the secondary side output unit outputs a power supply signal as the output end of the power supply by utilizing the transformation processing of the primary side input unit and the secondary side output unit; the primary side input unit is grounded through the power management circuit; the secondary side output unit also adopts a grounding mode to reduce internal consumption caused during energy conversion. The power management circuit comprises a grounded adjusting module 541 and a second control module 542' for controlling the on-off of the adjusting module 541; the secondary output unit comprises a secondary winding connected with a voltage ground and a one-way conduction module connected with the output end of the secondary winding. A first sampling circuit 533 is arranged on the power supply side of the secondary output unit, and is used for collecting the power supply voltage of the power supply and generating a first sampling signal FB1, and transmitting the first sampling signal to a second control module 542'; meanwhile, the second control module 542' further obtains a third sampling signal CS collected from the primary side input unit through a third sampling circuit 552.

The working process of the circuit structure is as follows: during the off period of the switching circuit, the alternating current signal is half-wave rectified and low-pass filtered by the filter capacitor by the on voltage interval limitation of the rectifier diode in the first rectifier unit 521, and then is output to the transformer circuit as a first rectified electrical signal; the first rectified electrical signal is transformed by the mutual inductance windings in the primary input unit and the secondary output unit of the transformer circuit 531, wherein the secondary winding of the secondary output unit is grounded, so that the converted power supply is unidirectionally and stably output by the diode and the capacitor in the unidirectional conduction module. The second control module 542' controls the on/off of the adjusting 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 acquired voltage of the first sampling signal to obtain a detection signal COMP corresponding to the first sampling signal, and outputs a clock signal according to the voltage of the detection signal COMP, wherein the frequency of the clock signal is related to the voltage of the detection signal COMP. Meanwhile, the detection signal COMP is also directly used as COMP _ CS or is converted into COMP _ CS after being processed according to a preset proportion to be compared with the third sampling signal CS, and a corresponding logic signal is generated based on the comparison result. The power management circuit sets the maximum on-time of the adjusting module, the power management circuit controls the adjusting module to be on according to the clock signal, timing is started at the on-time, when the second control module 542' indicates that the adjusting module 541 is turned off by comparing the comparison result obtained by the comparison between CS and COMP _ CS, the adjusting module 541 is controlled to be turned off, timing is reset, and when the adjusting module is not turned off before the maximum on-time is timed, the adjusting module is turned off when the timing is finished.

It should be noted that the description of fig. 18 is only an example, and in fact, the connection relationship and the working process of the first control module and the adjustment module, etc. described in fig. 2 and correspondingly can also implement a control manner similar to that of the second control module, and will not be described in detail herein. In addition, according to the second control module and the third protection module described in fig. 18 and corresponding description, not only the stable power supply of the secondary output unit output can be realized by the control of the second control module on the adjustment module, but also the circuit protection can be provided for the normal operation of the internal electric device by the third protection module, which is not described in detail herein.

During the period that the switch circuit is disconnected, the control circuit and the power management circuit in the power circuit carry out corresponding control operation by means of the power supply provided by the voltage transformation circuit. For example, as shown in fig. 18, the control circuit 536 continuously monitors whether control information is received by using the power supplied from the power supply source to control the switching circuit 51 to be turned on. As another example, the control circuit 536 continuously monitors whether control information is received using power supplied from the power supply during the off period of the switching circuit 51 to output control signals to the pre-configured air conditioners in accordance with the air conditioners and temperatures indicated in the control information.

To this end, the control circuit 536 includes: an interaction unit and a processing unit (not shown). The interaction unit is used for acquiring control information; the processing unit is connected with the interaction unit and used for controlling the switch circuit to be switched on or switched off at least based on the control information.

Here, in some examples, the interaction unit may include a human-machine interaction module for receiving a user operation to obtain the control information. The man-machine interaction module comprises an interaction panel with a touch medium, wherein the touch medium comprises but is not limited to: touch screen, buttons, light sensing devices, etc. In still other examples, the interaction unit may include a communication module to receive wireless signals containing control information and to transmit wireless signals containing control information. Wherein the communication module includes at least one of: short-distance communication modules such as an RF communication module, a WiFi communication module, an infrared communication module and a Bluetooth communication module, communication modules which can be accessed to wide area networks such as optical fibers and broadband, communication modules which are accessed to a mobile network by using a mobile phone card, and the like. The above examples may be combined or separately configured in the interaction unit. For example, the interaction unit comprises a button for controlling the switch circuit and a wireless communication module for acquiring a wireless signal, the interaction unit determines that control information for turning on the switch circuit is received by monitoring a pulse signal generated by the button, and the interaction unit acquires the carried control information by demodulating and decoding the wireless signal. Here, the control information acquired by the wireless communication module may include control information for turning on the switch circuit, control information for controlling the switch circuit on another line, control information for controlling the smart appliance to perform adjustment, on/off, and the like. The interactive unit provides the obtained control information to the processing unit, and the processing unit converts the control information into a control signal which can be recognized by the corresponding electric device or the switch circuit and outputs the control signal.

Here, the processing unit includes a processing module capable of processing numerical operations, logical operations, and data processing, and examples thereof include an MCU, a CPU, a programmable logic device, and the like. The processing unit may be electrically connected to the switching circuit or may communicate data via an interaction unit according to a pin function of a chip actually selected to package the corresponding processing module. The processing unit analyzes the received control information during the off period of the switching circuit by the power supply provided by the voltage transformation circuit to determine the controlled object and the timing of executing the control. The processing unit may further include a timer, a clock signal generator, a buffer, and other hardware modules for assisting the processing module in performing corresponding control operations.

Here, the above examples describe the internal power supply of the switch control circuit during the off period of the switch circuit and the control circuit structure and operation process for controlling at least the switch circuit. During the on-time of the switching circuit, the switching control circuit is still able to provide an internal power supply and an off-control of at least the switching circuit, etc.

In order to prevent the first rectifying unit from being unable to output the first rectified electrical signal due to short circuit during the conduction period of the switching circuit, in some embodiments, a shunt electrical device (such as a resistor) is included in the switching circuit, so that the first rectifying unit obtains the shunted alternating current during the conduction period of the switching circuit.

In some embodiments, in order to continuously supply power to the internal power supply source of the power supply circuit during the on period of the switching circuit, the power supply circuit switches the switching circuit and the load between the first line and the second line by time division, so that the rectifying circuit rectifies the received ac signal and outputs a corresponding rectified electrical signal (hereinafter referred to as a second rectified electrical signal). As shown in fig. 18, the power circuit includes a selection circuit 535 disposed on the ac line, and correspondingly, a shunt control module 545 is included in the power management circuit to control the selection circuit 535. The selection circuit 535 is connected to the second line by default, and when the shunt control module 545 detects that the voltage of the second rectified electrical signal exceeds the reference voltage interval, the selection circuit 535 is controlled to switch from the second line to the first line; and 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. Wherein the duration of the delay is related to the duration of the energy storage circuit 540 maintaining the supply voltage. Correspondingly, the control circuit 536 may monitor the control information in real time under the power supply of the power supply, and when monitoring that the control information is obtained, perform corresponding control operations according to the content in the control information. For example, the control circuit 536 controls the switch circuit 51 to be turned on when receiving a control message indicating that the switch circuit 51 is turned on.

In other embodiments, to make it easier to switch between the second rectified electrical signal and the output power of the power supply, please refer to fig. 19, which shows a schematic circuit diagram of an intelligent switch in yet another embodiment. The rectifying circuit further includes a second rectifying unit 522 connected to the live line connected to the output terminal of the switching circuit 51. For example, the second rectifying unit 522 and the first rectifying unit 521 are provided at both ends of the switching circuit 51, respectively.

The second rectifying unit 522 is configured to rectify the accessed ac signal and output a second rectified electrical signal during the on period of the switching circuit 51. The second rectifying unit 522 includes a rectifying 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 end of the rectifier bridge and the voltage ground so as to perform low-pass filtering processing 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 rectifying circuit.

As also shown in fig. 19, the second rectifying unit 522 outputs the second rectified electrical signal during the time-division switching of the ac line on which the switching circuit and the load are located to the second line by means of the power supply circuit. Meanwhile, in order to prevent the first and second rectified electrical signals from being output together by the second and first rectifying units 522 and 521, and thus the supply voltage inside the power management circuit is too high, the conduction voltage of the rectifying bridge in the first rectifying unit 521 is higher than that of the rectifying bridge in the second rectifying unit. Correspondingly, the upper voltage limit of the preset reference voltage interval in the power management circuit should be lower than the turn-on voltage of the rectifier bridge in the first rectifying unit 521. And when the power management circuit detects that the voltage of the second rectified electrical signal reaches the upper limit of the voltage of the reference voltage interval, the power management circuit switches the alternating current circuit where the switch circuit and the load are located to the first circuit. The upper voltage limit may correspond to an upper voltage limit of a reference voltage interval for phase-cut control in the aforementioned power management circuit.

Taking the circuit configuration shown in fig. 19 as an example, during the on period of the switch circuit, the selection circuit 535 in the power management circuit is connected to the ac line on which the switch circuit 51 is located, and selects to switch the load and the switch circuit to the second line to constitute a power-on loop. The second rectifying unit 522 obtains the ac signal from the second line, converts the ac signal into a second rectified electrical signal, and outputs the second rectified electrical signal to the output module 543 of the power management circuit, so that the second rectified electrical signal is directly used as a power supply signal output by the power supply; meanwhile, a second sampling circuit 537 in the power circuit collects a second sampling signal reflecting the voltage of the second rectified electrical signal and provides the second sampling signal to a shunt control module 545 in the power management circuit, and when the shunt control module 545 detects that the voltage of the second sampling signal reaches the upper voltage limit of a preset reference voltage interval, the shunt control module 545 controls a switch unit M1 in the selection circuit 535 to be turned on, so that the switch circuit is switched from being connected to the second line to be connected to the first line and starts timing; when the timing duration reaches the timing threshold, the shunt control module 545 controls the switch unit M1 in the selection circuit 535 to be turned off, and according to the phase interval (-180-0 degrees or 0-180 degrees) where the alternating current is currently located, the selection circuit 535 delays or immediately switches from the first line to the second line, and when the voltage difference between the two ends of the rectification circuit is greater than the conduction voltage of the rectification circuit, the conduction loop where the second line is located is turned on. The measured time period is related to the ac power frequency, the discharge time period of the capacitor in the second rectifying unit 522, and the like.

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, and when the voltage of the second sampling signal provided at the output 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 line to the first line; at the same time, or in slightly delayed response, the shunt control module 545 controls the selection circuit 535 to switch from the second line to the first line and maintain the counted length of time.

During the on period of the switching circuit, with the continued power supply of the power management circuit 532, the control circuit 536 in the power circuit can perform control operations similar to those during the off period of the switching circuit 51, for example, perform a control operation of adjusting the temperature of the air conditioner, perform a control operation of timing the start/stop of the electronic equipment, and perform a control operation of turning off the switching circuit, and the like. And will not be described in detail herein.

In addition to the above-described intelligent switches, the power supply circuit in the intelligent switch further performs zero-cross detection in at least one of an off period and an on period of the switching circuit. Here, the zero-crossing detection circuit in the intelligent switch is the same as or similar to the zero-crossing detection circuit mentioned in the foregoing of the present application, and is not described in detail here.

Please refer to fig. 20, which is a schematic circuit diagram of an intelligent switch according to an embodiment. Taking the first zero-crossing detection unit in the zero-crossing detection circuit as an example during the off period of the switching circuit, the working process of the intelligent switch is described as follows: in conjunction with fig. 13, during the off period of the switching circuit, the first rectifying unit 521, the transforming circuit 531 and the power management circuit 532 in the intelligent switch provide power to the electric devices inside the intelligent switch, and will not be described in detail here. Under the stable power supply of the power supply, a first detection signal generation module 561 in the first zero-crossing detection unit directly collects an alternating current signal flowing through an alternating current line during the disconnection of the switch circuit 51 to obtain a first detection signal; the control sub-module 565 in the first zero-crossing detection unit controls the first detection signal generation module 561 to acquire the first detection signal, for example, the control sub-module 565 controls the first detection signal generation module 561 to acquire the first detection signal according to a preset time interval or controls the first detection signal generation module 561 to acquire the first detection signal in a full period; the first zero-crossing detection module 562 detects the voltage of the first detection signal in each acquisition period to determine whether the phase of the current alternating current is in a zero-crossing phase region, and outputs a zero-crossing detection signal according to the detection result; in some embodiments, the control sub-module 565 does not adjust the acquisition time interval when the detection determines that the phase of the current ac power does not fall within the zero-crossing phase interval, and the control sub-module 565 adjusts the acquisition time interval to extend the acquisition duration when the detection determines that the phase of the current ac power falls within the zero-crossing phase interval. The control circuit 536 receives the zero-crossing detection signal, and generates a delay timer for control information based on a preset response delay of the switching circuit and the zero-crossing detection signal, and when the control circuit 536 receives the control information for controlling the switching circuit to be turned on, the delay timer is started until the zero-crossing detection signal is received to indicate that the phase of the current alternating current is in the zero-crossing phase region, so as to control the switching circuit 51 to be turned on.

Taking the second zero-crossing detection unit in the zero-crossing detection circuit as an example during the conduction period of the switching circuit, the working process of the intelligent switch is described as follows: in conjunction with fig. 20, during the conduction period of the switching circuit, the second rectifying unit 522 in the intelligent switch and the power management circuit in the power management circuit provide power to the electric devices inside the intelligent switch, and will not be described in detail here. Under the stable power supply of the power supply, a second detection signal generation module 563 in the second zero-crossing detection unit acquires a second rectified electrical signal to obtain a second detection signal, a second zero-crossing detection module 564 detects a voltage of the second detection signal to determine whether the phase of the current alternating current is within a zero-crossing phase region, and outputs a zero-crossing detection signal according to a detection result, the control circuit 536 receives the zero-crossing detection signal, and generates a delay timer for control information based on a preset response delay of the switch circuit 51 and the zero-crossing detection signal, and when the control circuit 536 receives the control information for controlling the switch circuit to be turned on, the delay timer is started until the zero-crossing detection signal is received to indicate that the phase of the current alternating current is within the zero-crossing phase region, so as to control the switch circuit to be turned on.

It should be noted that the second detection signal generation module 563 may also directly obtain the ac signal flowing from the switch circuit and obtain the second detection signal during the period when the selection circuit selects the second line.

It should be further noted that, since the second rectifying unit outputs the second rectified electrical signal in the preset reference voltage interval, in order to consider both the zero-crossing detection signal and the power supply of the power supply, the reference voltage interval may cover the zero-crossing voltage interval, and thus the reference voltage interval ensures that the corresponding second zero-crossing detection unit can output the second zero-crossing detection signal during the period in which the second rectifying unit outputs the second rectified electrical signal.

In some practical applications, when a load is powered on or off in the peak region of the ac voltage, the semiconductor devices and the switching circuits in the load are easily broken down by the instantaneous high voltage to cause damage to the load. Therefore, a zero-crossing detection circuit is further integrated in the intelligent switch, and is used for detecting the phase of the current alternating current electric signal based on the zero-crossing phase region and outputting a zero-crossing detection signal to the control circuit; and the control circuit controls the switching circuit to be switched on or off based on the zero-crossing detection signal and after receiving control information. Wherein the control signal is derived based on control logic processing of at least one logic signal. Wherein, the sources of the logic signals include but are not limited to: the detection signal is generated based on an on-off instruction sent by a wireless device such as a remote controller and an intelligent terminal, generated based on a mechanical on-off operation, generated based on an electric signal sent by a touch panel, generated based on detection of the zero-crossing detection signal, or generated by other devices including a timer. The control circuit outputs the control signal based on preset control logic aiming at the at least one logic signal.

In some examples, the control circuit may control the switching circuit to be turned on or off by using a zero-crossing detection signal generated after receiving the control information as a trigger. In another example, the control circuit presets a response delay time of the switching circuit, the control circuit predicts a time of switching on or off of the switching circuit in a time interval of a subsequent zero-crossing detection signal through a time interval of a plurality of zero-crossing detection signals, and performs corresponding control operation when timing is overtime if control information is received during the timing period, that is, controls the switching circuit to be switched on or off; if the control information is received during the timing period, the timing is reset when the timing is overtime and the timing start time of the timing is determined again. For example, the time interval of a plurality of continuously received zero-crossing detection signals is recorded, abnormal time intervals, such as time intervals with overlong or overlong intervals, are eliminated, the average time interval of the zero-crossing detection signals is calculated, the time of controlling the switching circuit to be switched on or switched off when the subsequent alternating current phase approaches the zero phase is predicted based on the average time interval and the response delay time length of the switching circuit, corresponding timing is started, when control information for controlling the switching circuit is received during the timing, corresponding control operation is executed when the timing is overtime, otherwise, the timing is reset, the time for executing the control operation next time is calculated, and the corresponding timing is started again.

The application also provides a power supply method. Please refer to fig. 21, which is a flowchart illustrating a power supply method according to an embodiment. The power supply method can be executed by a power circuit, and the power circuit supplies power to a power supply by virtue of the rectified electrical signal output by the rectifying circuit. The power supply circuit may be any one of the power supply circuits mentioned above, or may be any one of the power supply circuits that can implement the power supply method.

In step S110, a primary input unit and a secondary output unit connected to the rectifying circuit provide power.

The transformation circuit supplies power to the power supply source through the rectified electrical signal provided by the rectification circuit. The circuit structure of the transforming circuit may be the same as or similar to that of the transforming circuit shown in fig. 2 and described correspondingly, and will not be described in detail herein.

In step S120, a first sampling signal reflecting a power supply signal output by the power supply source is acquired. The first sampling signal is derived from the circuit structure of the first sampling circuit shown in fig. 2 and described correspondingly, and is not described in detail herein.

In step S130, the current flowing through the primary side input unit is controlled based on the first sampling signal, so that the power supplied by the secondary side output unit is stable.

In some embodiments, controlling the current in the primary input unit of the transformer circuit based on the first sampling signal comprises: and comparing the voltage of the first sampling signal with a preset reference voltage, and controlling the on-off or current change of a line where the primary side input unit is located based on the comparison result. Here, the voltage of the first sampling signal is compared with a preset reference voltage to obtain a logic signal, and the current in the line connected to the primary side input unit is controlled according to the detection logic expressed by the logic signal.

In some examples, the detection logic between the first sampling signal and the reference voltage is represented by logic devices inside the power circuit and analog devices of the auxiliary logic devices, the voltage of the first sampling signal is compared with a preset reference voltage, and the current in the primary side input unit is controlled based on the comparison result. Wherein the reference voltage may be a reference voltage interval or a reference voltage value set based on a supply voltage of the power supply. In a specific example, the aforementioned power circuit includes a circuit structure that can generate the corresponding detection signal and the control signal according to the above process, and details thereof are not described herein.

In other embodiments, controlling the current in the primary input unit of the transformer circuit based on the first sampling signal comprises: and controlling the on-off or current change of the line where the primary side input unit is located based on the error between the voltage of the first sampling signal and a preset reference voltage. Here, the drift amount of the power supply voltage actually output by the power supply source can be described by detecting an error between the voltage of the first sampling signal and a preset reference voltage, and the current of the line where the primary side input unit is located is controlled according to an analog signal or a digital signal representing the drift amount. In a specific example, the aforementioned power circuit includes a circuit structure that can generate the corresponding detection signal and the control signal according to the above process, and details thereof are not described herein.

The detection method mentioned in any of the above examples includes, but is not limited to, the following methods for controlling the current of the line on which the primary input unit is located: controlling the on-off of the line or the current change. In some examples, the control methods include, but are not limited to: and controlling at least one of current change frequency, on-off duration and off-off duration of a line on which the primary side input unit is positioned. The steps can be executed by the aforementioned first control module and the aforementioned adjusting module, and are not described in detail herein.

In still other embodiments, the step of the power circuit controlling the current in the primary input unit based on the first sampling signal further comprises: acquiring a third sampling signal for reflecting a line electric signal in a line on which the primary side input unit is positioned; and controlling the current flowing through the primary side input unit based on the first sampling signal and the third sampling signal.

The first sampling signal reflects the current power supply output information provided by the secondary output unit, the third sampling signal reflects the current energy input information provided by the primary input unit, and the power management circuit controls the current in the circuit of the primary input unit according to the two sampling signals, so that the output stability of the power supply can be improved. The third sampling signal is acquired by an acquisition device (group) connected to the primary input unit, and may be a voltage or current signal.

In some examples, the step of controlling the current flowing through the primary side input unit based on the first and third sampling signals comprises: and controlling the line of the primary side input unit to be switched on based on the first sampling signal, and controlling the line of the primary side input unit to be switched off based on the first sampling signal and the third sampling signal. Here, this step can be performed according to the circuit structure of the power management circuit provided in fig. 3-5 and the related description, and will not be described in detail here.

In some applications, the power circuit performing the power supply method provided by any of the above examples can be used in an intelligent switch with a switching circuit. Steps S110 to S130 in the power supply method enable the power supply circuit to provide power during the off period of the switching circuit, and in order to still provide power during the on period of the switching circuit, the power supply method further includes steps S140 and S150.

In step S140, the switch circuit is selectively connected to the first line or the second line during the on period of the switch circuit, so as to form a current-carrying loop of the switch circuit.

The selection circuit in the power supply circuit controls the output end of the switch circuit to switch between the first line and the second line, so that the load and the switch circuit form a corresponding energizing loop by the first line and the second line in a time-sharing manner. The rectifying circuit is arranged on the second line, acquires an alternating current electric signal during the period that the second line is connected to the power-on loop, and outputs a corresponding rectifying electric signal. The rectified electrical signal received during the on period of the switching circuit is now referred to as the second rectified electrical signal, in order to distinguish it from the rectified electrical signal received during the off period of the switching circuit.

In some examples, the step S140 includes: sampling an electric signal used for reflecting the alternating current signal in the second line or a power supply signal of a power supply source to generate a second sampling signal; and controlling the selection circuit to switch between the first line and the second line based on a detection result obtained by detecting the second sampling signal.

Here, the shunt control module in the power management circuit may detect a phase of the second rectified electrical signal by detecting a voltage of the second rectified electrical signal. The step S140 includes: comparing the voltage of the second sampling signal with a reference voltage interval, and generating a corresponding comparison result; selecting the switch circuit to be connected to a first line or a second line based on the comparison result; wherein the rectifying circuit is positioned on a second line; a zero line of alternating current is located on the first line. Reference voltage interval

Here, this step may be performed by a selection circuit and a shunt control module in the power supply circuit. The structure of the selection circuit, and the operation processes of the selection circuit and the shunt control module can be implemented as shown in fig. 7-11 and the corresponding descriptions, and are not described in detail herein.

In some examples, when the comparison result indicates that the voltage of the second sampling signal does not fall within a preset reference voltage interval, switching the switching circuit from being switched into the second line to being switched into the first line; and otherwise, switching the switch circuit from accessing the first line to accessing the second line. Taking the rectifying circuit as a full-wave rectifying circuit as an example, when the voltage of the alternating current falls within a preset reference voltage interval, the selection circuit immediately selects the second line based on the time-sharing control signal, and when the voltage of the alternating current exceeds the reference voltage interval, the selection circuit immediately selects the first line based on the time-sharing control signal.

In still other examples, the selecting, in step S140, a manner of accessing the switching circuit to the second line where the rectifying circuit is located includes: and timing based on the received comparison result, and adjusting the shunt control signal to control the selection circuit to switch from the first line to the second line when the timing reaches a timing threshold. For example, a selection circuit in the power circuit is connected to the second line by default, and 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 be switched from the second line to the first line; and starting timing, and when the timing reaches a timing threshold value, the shunt control module adjusts the shunt control signal to control the selection circuit to switch from the first line to the second line. Wherein the timing threshold is related to a duration of time that the output module maintains the supply voltage. For example, if the voltage transformation circuit and the power management circuit maintain the supply voltage to the power supply for t milliseconds based on the received second rectified electrical signal within the phase interval, the timing threshold may be less than or equal to t milliseconds. The circuit structure and operation of the shunt control module can be shown in fig. 9-11 and the related description thereof, and will not be described in detail herein.

On this basis, the selecting the manner of accessing the switching circuit to the second line where the rectifying circuit is located in step S140 includes: when the timing reaches a timing threshold value, the switching operation of switching the switch circuit from accessing the first line to accessing the second line is delayed or immediately executed according to the phase of the current alternating current. Here, in order to maximize the use efficiency of active power of the alternating current, the structure of the selection circuit is related to the rectifier circuit, the load, and the like in the present application. Here, this step can be implemented in conjunction with the aforementioned fig. 8-10 and the corresponding description, and will not be described in detail here.

In step S150, when the selection circuit is switched to the second line, the rectified electrical signal is used to provide power to a power supply.

In some examples, when the selection circuit is switched to the second line, power is supplied by a primary side input unit and a secondary side output unit which are connected to the rectification circuit. The circuit structure and operation of the transformer circuit and the power management circuit described in fig. 8-10 and related descriptions may be used for this step, and will not be described in detail here.

In other examples, when the selection circuit is switched to the second line, power is provided to a power supply source through an output module in a power management circuit. The circuit structure and operation of the power management circuit shown in fig. 11 and described in connection therewith can be used in this step, and are not described in detail here.

During the power supply circuit performing the power supply method, the power supply method further includes: maintaining self-power with the power supply and/or the alternating current signal. In some examples, a power management circuit in the power circuit self-powers the power management circuit with a first self-powering circuit. In other examples, during the switch circuit is open, a power management circuit in the power circuit is self-powered with a first self-powering circuit to the power management circuit; and during the conducting period of the switch circuit, the power management circuit in the power circuit adopts a second self-powered circuit to carry out self-power on the power management circuit. The first self-powered circuit and the second self-powered circuit may be as shown in the corresponding circuits mentioned above, and will not be described in detail here.

During the execution of the power supply method, the power supply circuit further performs the step of detecting the phase of the current alternating current electric signal based on the zero-cross phase section, and outputting a zero-cross detection signal. Here, this step may be performed by using a zero-crossing detection circuit in the power supply circuit, and will not be described in detail here.

In summary, the power supply circuit, the chip, the intelligent switch and the power supply method provided by the application realize stable power supply with low energy consumption inside the chip by the flyback power supply mode of the voltage transformation circuit. In addition, the mutual inductance efficiency is greatly improved in the mode that the primary side input unit and the secondary side output unit of the transformation circuit are grounded. In addition, the power management circuit controls the current in the primary side input unit by adopting the first sampling signal fed back by the secondary side output unit, and the accuracy of stable power supply of the power supply is effectively improved.

The above embodiments are merely illustrative of the principles and utilities of the present application and are not intended to limit the application. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical concepts disclosed in the present application shall be covered by the claims of the present application.

58页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种空间矢量脉宽调制方法、装置以及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类