Power circuit, chip, intelligent switch and power supply method

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

阅读说明:本技术 电源电路、芯片、智能开关及电源供电方法 (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. Wherein, power supply circuit is used for supplying power for a power supply by the rectification electrical signal that rectifier circuit output, power supply circuit includes: a selection circuit, provided on an alternating current line for supplying an alternating current signal to the rectifier circuit, for causing the alternating current signal to flow through different current-carrying loops constituted by the first line or the second line in a time-division manner; wherein the first line and the second line have a common alternating current line, and the rectifier circuit is located in the second line; and the power supply management circuit is used for supplying power to the power supply based on the rectified electric signal output by the rectifying circuit when the selection circuit is switched to the second line. The power supply circuit effectively reduces the internal consumption of the power supply circuit by using the mode of supplying power to the power supply by using the alternating current acquired in time sharing.)

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

a selection circuit, provided on an alternating current line for supplying an alternating current signal to the rectifier circuit, for causing the alternating current signal to flow through different current-carrying loops constituted by the first line or the second line in a time-division manner; wherein the first line and the second line have a common alternating current line, and the rectifier circuit is located in the second line;

and the power supply management circuit is used for supplying power to the power supply based on the rectified electric signal output by the rectifying circuit when the selection circuit is switched to the second line.

2. The power supply circuit according to claim 1, 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, so that the power management circuit controls the selection circuit to perform an operation of switching between the first line and the second line based on the second sampled signal.

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

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;

and the output module is connected with the rectifying circuit and used for supplying power to the power supply based on the received rectifying electric signal.

4. The power supply circuit of claim 3, 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.

5. The power supply circuit of claim 4, 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.

6. The power supply circuit of claim 5, 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.

7. The power supply circuit of claim 5, wherein the control sub-circuit further comprises: a timer controller for adjusting the timing threshold value by at least one monitored duration; the monitored duration is the duration required from the conduction of the switch unit until the selection circuit is switched to the second line.

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

9. The power supply circuit according to claim 1 or 3, wherein the selection circuit comprises:

and the switching unit is arranged on the alternating current circuit and is used for being controlled to be switched on or switched off based on the received shunt control signal so as to at least immediately respond to the switching operation of switching the switching circuit from the access second circuit to the access first circuit.

10. The power supply circuit of claim 9, wherein the selection circuit further comprises: and the phase limiting unit is used for delaying or immediately switching from the first line to the second line according to the phase of the current alternating current when the switching unit is switched off.

11. The power supply circuit of claim 2, wherein the power management circuit further comprises: and the first protection module is used for detecting the voltage of the second sampling signal and controlling the selection circuit to be switched from the second line to the first line when the voltage of the second sampling signal is higher than a preset protection voltage threshold value.

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

13. The power supply circuit according to claim 1, further comprising at least one tank circuit for performing a tank operation based on the rectified electric signal output from the rectifying circuit during switching of the selection circuit to the second line and performing a tank release operation during switching of the selection circuit to the first line.

14. A power supply circuit according to claim 1, characterized in that the tank circuit is placed on the rectifying circuit side and/or on the supply power side.

15. The power supply circuit according to claim 1, wherein a switching circuit is further provided on the ac line, a rectified electrical signal outputted by the rectifying circuit during a conduction period of the switching circuit is referred to as a second rectified electrical signal, and the power supply circuit supplies power to the power supply source by the second rectified electrical signal during the conduction period of the switching circuit.

16. The power supply circuit according to claim 15, wherein the rectified electrical signal outputted from the rectifying circuit during the period in which the switching circuit is turned off is referred to as a first rectified electrical signal; the power circuit also provides power to a power supply source during the off period of the switching circuit by the first rectified electrical signal.

17. The power supply circuit according to claim 1 or 15, further comprising: at least one self-powered circuit for providing power to the power management circuit.

18. 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.

19. A chip for supplying power to a power supply source by a rectified electrical signal output from a rectifying circuit, the chip comprising:

a first pin for acquiring a rectified electrical signal; and

a power supply management circuit for supplying power to the power supply source based on a rectified electric signal output from the rectifying circuit when a selection circuit provided in an alternating current line for supplying alternating current to the rectifying circuit is switched to a second line;

the selection circuit enables alternating current to pass through different current-conducting loops formed by the first line or the second line in a time-sharing manner; wherein the first line and the second line have a common alternating current line, and the rectifying circuit is located in the second line.

20. The chip of claim 19, wherein a rectified electrical signal is provided to a power supply through the first pin; or

The chip further comprises: the second pin is used for outputting a power supply signal to the power supply; correspondingly, the power management circuit comprises: and the output module is integrated in the chip, is connected between the first pin and the second pin and is used for supplying power to the power supply source based on the received rectified electrical signal.

21. The chip of claim 20, wherein the first pin or the second pin is connected to a power supply through a tank circuit; wherein the energy storage circuit is used for carrying out energy storage operation based on the rectified electrical signal output by the rectifying circuit during the period that the selection circuit is switched to the second line and releasing the stored electrical energy during the period that the selection circuit is switched to the first line.

22. The chip according to any one of claims 19 to 21, further comprising a third pin for obtaining a second sampling signal provided by a second sampling circuit; the second sampling circuit samples an electric signal reflecting an alternating current signal in the second line or a power supply signal of a power supply source to generate a second sampling signal; or

The chip is further integrated with the second sampling circuit, and the second sampling circuit acquires an electric signal used for reflecting an alternating current signal in the second line or a power supply signal of a sampling power supply through the third pin and generates a second sampling signal;

the power management circuit controls the selection circuit to perform an operation of switching between the first line and the second line based on the second sampling signal.

23. The chip of claim 22, wherein 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.

24. The chip of claim 23, 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.

25. The chip of claim 24, 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.

26. The chip of claim 25, wherein the timing threshold is a fixed time threshold or is set according to a duration of time that the selection circuit selects the first line during at least one switching cycle.

27. The chip of claim 25, wherein the control subcircuit further comprises: a timer controller for adjusting the timing threshold value by at least one monitored duration; the monitored duration is the duration required from the conduction of the switch unit until the selection circuit is switched to the second line.

28. The chip of claim 24, wherein the reference voltage interval comprises: zero crossing voltage interval.

29. The chip of claim 19, wherein the selection circuit is packaged in the chip, and correspondingly, the chip comprises a chip pin for accessing the alternating current line; or the chip comprises chip pins for connection to a selection circuit for controlling the selection circuit.

30. The chip of claim 29, wherein the selection circuit comprises:

and the switching unit is arranged on the alternating current circuit and is used for being controlled to be switched on or switched off based on the received shunt control signal so as to at least immediately respond to the switching operation of switching the switching circuit from the access second circuit to the access first circuit.

31. The chip of claim 30, wherein the selection circuit further comprises: and the phase limiting unit is used for delaying or immediately executing the 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 switched off.

32. The chip of claim 22, wherein the power management circuit further comprises: and the first protection module is used for detecting the voltage of the second sampling signal and controlling the selection circuit to be switched from the second line to the first line when the voltage of the second sampling signal is higher than a preset protection voltage threshold value.

33. The chip of claim 19, wherein a switching circuit is further disposed on the ac circuit, a rectified electrical signal outputted by the rectifying circuit during the conduction period of the switching circuit is referred to as a second rectified electrical signal, and the power management circuit provides power to the power supply source by the second rectified electrical signal during the conduction period of the switching circuit.

34. The chip of claim 33, wherein the rectified electrical signal outputted by the rectifying circuit during the period when the switching circuit is turned off is referred to as a first rectified electrical signal; the power management circuit also controls the first rectified electrical signal to provide power to a power supply during an off period of the switching circuit.

35. The chip of claim 19, 33 or 34, further comprising: at least one self-powered pin for connecting to at least one self-powered circuit for supplying power to the chip; or at least one of said self-powered circuits is integrated in said chip and is externally powered through a respective self-powered pin.

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

37. The chip of claim 19, 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.

38. 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 rectifying the accessed alternating current and outputting a rectified electrical signal during the conduction period of the switching circuit;

the power supply circuit as claimed in any one of claims 1 to 18, connected to the rectifying circuit, for supplying a power supply source with 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.

39. The intelligent switch of claim 38, wherein the rectifier circuit comprises:

the second rectifying unit is connected to the second line and used for rectifying the accessed alternating current and outputting a second rectified electrical signal during the conduction period of the second line; wherein the second rectified electrical signal is a rectified electrical signal provided by the rectification circuit.

40. The intelligent switch of claim 39, wherein the rectifier circuit further comprises:

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 during the disconnection period of the switching circuit; wherein the first rectified electrical signal is another rectified electrical signal provided by the rectifying circuit.

41. The intelligent switch of claim 40, wherein the first rectifying unit and the second rectifying unit 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.

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

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

the alternating current signal flows through different power-on loops formed by a first line or a second line in a time-sharing manner; wherein the first line and the second line have a common alternating current line, and the rectifier circuit is located in the second line;

when switched to the second line, power is supplied to the power supply source based on the rectified electrical signal output by the rectifying circuit.

44. A method as claimed in claim 43, wherein the step of time-division passing the AC signal through different power loops formed by the first or second lines comprises:

sampling an electric signal used for reflecting the alternating current electric signal or a sampling power supply signal on the second line to generate a second sampling signal; and

comparing the voltage of the second sampling signal with a reference voltage interval;

based on the comparison result, a switching operation between the first line and the second line is performed.

45. The power supply method according to claim 44, wherein the step of performing the switching operation between the first line and the second line based on the comparison result further comprises:

immediately performing a switching operation from the second line to the first line based on the received comparison result; and

and timing based on the received comparison result, and performing switching operation from the first line to the second line when the timing reaches a timing threshold value.

46. A power supply method as claimed in claim 45, wherein the step of timing based on the received comparison result and performing a switching operation from the first line to the second line when the timing reaches a timing threshold comprises:

when the timing reaches a timing threshold value, the switching operation from the first line to the second line is immediately or delayed based on the phase of the current alternating current.

47. The power supply method of claim 44, further comprising the steps of: and detecting the voltage of the second sampling signal, and switching from the second line to the first line when the voltage of the second sampling signal is higher than a preset protection voltage threshold value.

48. The method of claim 43, wherein the first line and the second line share an AC line that includes a switching circuit; when the switch circuit is conducted, the time-division making alternating current signal flow through different current conducting loops formed by a first line or a second line is executed; and a step of supplying power to the power supply source based on the rectified electric signal output from the rectifying circuit when switching to the second line.

49. The method of claim 48, further comprising, during the time that the switching circuit is open: and converting the received rectified electrical signal into a power supply signal and outputting the power supply signal to the power supply.

50. The power supply method of claim 43, further comprising: and detecting the phase of the current alternating current electric signal based on the zero-crossing phase region, and outputting a zero-crossing detection signal.

51. The power supply method of claim 43, further comprising: maintaining self-power with the power supply and/or the alternating current 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 device is a household appliance product formed by introducing a microprocessor, a sensor technology and a network communication technology into household appliances, has the functions of automatically sensing the space state of a house, the self state of the household appliances and the service state of the household appliances, and can automatically control and receive control information of a house user in the house or in a remote place; meanwhile, the intelligent equipment 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 intelligent home function is realized.

At present, common remote control devices for intelligent equipment, 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 an installation line of the intelligent equipment, so that the intelligent equipment has a standby state so as to process received control information in time. With the increase of the types of intelligent equipment, a panel type intelligent switch integrates the control management of the intelligent equipment and the traditional household electrical appliance equipment, so that the defect that a remote control device cannot control the traditional household electrical appliance 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: a selection circuit, provided on an alternating current line for supplying an alternating current signal to the rectifier circuit, for causing the alternating current signal to flow through different current-carrying loops constituted by the first line or the second line in a time-division manner; wherein the first line and the second line have a common alternating current line, and the rectifier circuit is located in the second line; and the power supply management circuit is used for supplying power to the power supply based on the rectified electric signal output by the rectifying circuit when the selection circuit is switched to the second line.

The second aspect of the present application further provides a chip for supplying power to a power supply source by a rectified electrical signal output by a rectifying circuit, the chip comprising: a first pin for acquiring a rectified electrical signal; and a power supply management circuit for supplying power to the power supply source based on a rectified electric signal output from the rectifying circuit when a selection circuit provided in an alternating current line for supplying alternating current to the rectifying circuit is switched to a second line; the selection circuit enables alternating current to pass through different current-conducting loops formed by the first line or the second line in a time-sharing manner; wherein the first line and the second line have a common alternating current line, and the rectifying circuit is located in the second line.

A third aspect of the present application further 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 rectifying the accessed alternating current and outputting a rectified electrical signal during the conduction 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 alternating current signal flows through different power-on loops formed by a first line or a second line in a time-sharing manner; wherein the first line and the second line have a common alternating current line, and the rectifier circuit is located in the second line; when switched to the second line, power is supplied to the power supply source based on the rectified electrical signal output by the rectifying circuit.

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: the power supply circuit effectively reduces the internal consumption by using the mode of supplying power to the power supply by using the alternating current acquired in time division; in addition, through the control of the transformation circuit, the purpose that the power supply outputs stable power supply under the condition of not being influenced by the on-off of the accessed alternating current circuit is achieved, the construction wiring is simplified, and the integration level of the intelligent switch is 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 circuit diagram of a power 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 waveform diagram of a node of the circuit of fig. 3.

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

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

Fig. 7 is a schematic structural diagram of a power supply circuit according to another embodiment of 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 circuit according to an 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 first zero-crossing detection unit according to the present application.

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

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

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

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

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

Fig. 17 is a schematic circuit diagram of the zero-crossing detection circuit in an embodiment.

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.

The smart device internally contains a logic control circuit (may correspond to the control circuit mentioned below) for executing the control logic. 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 content of the intelligent device can be identified by on/off information, temperature information, duration information, timing information, mode information, position information, brightness information and the like. 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.

In order to make the logic control circuit inside the intelligent device operate normally, a power supply circuit which can bear the peak voltage of alternating current and supply power stably needs to be configured inside the intelligent device, so that the power supply circuit inside the intelligent switch consumes too much, and therefore the power supply circuit needs to be improved.

Therefore, the power supply circuit is provided for solving the problem of overlarge internal consumption of the power supply circuit in the intelligent equipment. Here, the power supply circuit is a circuit that can supply power internally to the logic control circuit or the switch circuit and the logic control circuit.

In some examples, at least a load is included in the electrified loop of the alternating current, and the load is connected between a zero line and a live line of the alternating current. For example, the load is a refrigerating apparatus of a refrigerator, the refrigerating apparatus is connected between a zero line and a live line of alternating current and is used for maintaining the temperature of a refrigerating chamber and a freezing chamber in the refrigerator, a logic control circuit in the refrigerator is used for executing control operation on the refrigerating apparatus according to refrigerator environment information provided by a temperature sensor and the like arranged in the refrigerator, and the power supply circuit can supply power to the logic control circuit. In still other examples, the energizing circuit of the alternating current includes a switching circuit and a load. The switch circuit is a circuit for controlling the on-off of a load power supply loop, and is connected in series with a load between a zero line and a live line of 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, which are connected on the electrified loop.

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) that transitions into an operational state when the supply voltage (or supply current) reaches an operational voltage (or operational current) and transitions 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 may also include L ED lamps, motorized window shades, power adapters, etc. examples of switching circuits mentioned in the above examples include relays and relay controllers. L ED lamps are used as the load, relays are used to control whether a loop in which a L ED lamp is on or off, L ED lamps reach their operational current of L ED (light emitting diodes), L ED lamps are on, and when relays are off, L ED lamps do not reach their operational current of L ED lamps, L ED lamps are off.

The power supply circuit supplies weak-current power supply to at least the logic control circuit and the like by means of the rectified electrical signal output by the rectifying circuit. Wherein, according to the working voltage of the actual logic control circuit, the voltage provided by the power supply is below 15 v. 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.

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.

Please refer to fig. 1, which is a schematic circuit diagram of the power circuit according to an embodiment. The power supply circuit includes a selection circuit 11 and a power management circuit 12.

The selection circuit 11 is arranged on an alternating current line for supplying an alternating current signal to the rectifying circuit 21 for time-divisionally passing the alternating current signal through different current paths of a first line or a second line, wherein the first line and the second line have a common alternating current line and the rectifying circuit is located in the second line.

As shown in fig. 1, when the selection circuit 11 selects the second line, the load 22, the rectifier circuit 21, and the power management circuit 12 form a power loop, in other words, the ac signal flows to the voltage ground through the load 22, the rectifier circuit 21, and the power management circuit 12; when the selection circuit 11 selects the first line, a further energized circuit is formed by the load 22 and the city electricity network, in other words, the alternating current signal flows via the load 22 and the selection circuit 11 to the voltage ground in the city electricity network.

As shown in fig. 1, when the selection circuit 11 selects the second line, the rectifier circuit 21 outputs a rectified electrical signal to the power management circuit 12. Thus, the power management circuit 12 supplies power to the power supply source based on the rectified electric signal output from the rectifier circuit 21. In some examples, the power management circuit may provide the rectified electrical signal directly to a power supply as a power supply signal. In still other examples, the power management circuit includes at least an output module for providing power to the power supply based on the received rectified electrical signal. In some examples, the output module may directly connect the rectified electrical signal to the output terminal of the power supply according to a voltage interval of the rectified electrical signal output by the rectification circuit. For example, the output module is a wire. For another example, the output module includes at least one of a filter capacitor and a voltage dividing resistor to match a voltage of the rectified electrical signal with a supply voltage of the power supply.

It should be noted that the above examples of the output modules are not mutually exclusive, and may be used in combination according to an actual circuit design, and moreover, for the principle of circuit optimization, the electric devices mentioned in the foregoing examples may give consideration to the corresponding functions of the rectifier circuit and the electric devices in the power supply circuit. 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.

For example, to ensure the normal operation of the load, the reference voltage interval is selected as a voltage interval outside the load operating voltage interval, which includes, but is 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 as a zero-crossing phase 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 load 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 load from the incoming second line to the incoming first line. The switching unit is controlled to be switched off based on the received shunt control signal to enable the load to be switched into the second line immediately or with delay, and is controlled to be switched on based on the shunt control signal to enable the load to be switched into the first line immediately. 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, and when the shunt control signal is a high voltage, the power tube is turned on, so that the load is connected to a zero line through a first line, and the load is connected between a live line and a zero line of alternating current; when the shunt control signal is low voltage, the power tube is disconnected, so that the load is connected with the voltage ground in the power management circuit through the second line, and the load is 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 voltage corresponding to the phase of the alternating current falls within a reference voltage 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. 2, a circuit diagram of a power supply circuit according to an embodiment of an actual circuit structure of a rectifier circuit and a power management circuit is shown, wherein the selection circuit 21 further includes: a phase limiting unit. For example, the rectifier circuit is a half-wave rectifier circuit, and the phase 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 electrical device and is connected in parallel with the switching unit for delaying or immediately switching from the first line to the second line, i.e. delaying or immediately switching the load from accessing the first line to accessing the second line, depending on the phase of the current alternating current when the switching unit M1 is open. For example, the phase restriction unit includes a diode D1 connected in parallel with the switching unit M1, and having a cathode connected to the hot wire and an anode connected to the neutral wire. When the switch unit M1 is turned on, the load is 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, i.e. 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 load is connected between a live wire and a zero wire of alternating current, in other words, the selection circuit 21 is maintained in the 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 M1 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 electronic devices such as the rectifying circuit, the selection circuit, the power management circuit, etc., for example, the selection of the operating voltage of the semiconductor device such as the diode, the power tube, etc., 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, etc., 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, it should be regarded that the selection circuit has selected the first line or the second line, and is in the non-conductive temporary 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 completely coincide with the above example in a transient situation, for example, the transient situation occurs, such as the first line and the second line are both on and off, and this should not affect the technical idea that the power management circuit can output stable power supply by sharing the alternating current in time. 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 rectified electrical signal, as shown in fig. 2, the power circuit further includes: the second sampling circuit 25 controls the selection circuit to perform an operation of switching between the first line and the second line based on the second sampling signal.

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 power management circuit. In other examples, the second sampling circuit 25 includes first voltage dividing resistors R21 and R22 disposed between the rectified electrical signal output of the rectification circuit 32 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. As shown in fig. 2, the second sampling circuit 25 may be fully or partially integrated in the chip where the power management circuit 23 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 perform voltage dividing again on the first voltage dividing signal through the pin FB2 to obtain a second sampling signal, and provide the second sampling signal to the power management circuit inside the chip. 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.

The power management circuit comprises a shunt control module which 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. 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 phase of the ac electrical signal by detecting a voltage of the second sampled signal.

Taking the shunt control module as an example, which can detect the alternating current signal correspondingly by detecting the voltage of the second sampling 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 rectified electrical signal exceeds the reference voltage interval, the shunt control module outputs the 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 value represents the duration of the first line selected by the selection circuit, and is related to the duration of the power supply voltage maintained by the output module, the power frequency cycle of the alternating current and the like. For example, if the power management circuit maintains the supply voltage to the power supply for t milliseconds based on the second rectified electrical signal within the received reference voltage interval, then 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. 2, the selection circuit 21 is connected to the second line by default, and the rectification circuit 32 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 a negative half cycle (-180-0 degrees), the load 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 a 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.

Referring to fig. 3, which is a schematic circuit diagram of a power circuit according to another embodiment of the present application, 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 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. Taking the 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 also 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 rectified electrical signal exceeds the reference voltage interval, the timer is started, and when the counted time 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. 3 and the switching unit M1 includes an N-type power transistor, when the shunt control signal changes from high level to low level, the N-type power transistor is turned on, and the selection circuit 21 switches from the first line to the second line during the positive half cycle of the alternating current. 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 is switched to the second line, the rectification circuit outputs a rectified electrical signal. Therefore, the power management circuit can provide power to the power supply by the received rectified electrical signal.

Taking fig. 3 as an example and combining the waveform diagram of the circuit shown in fig. 4, the working process of the power supply circuit is as follows: the selection circuit 21 connects the switching circuit 31 to the second line by default to supply the alternating-current electric signal to the rectifying circuit 32, the rectifying circuit 32 outputs the second rectified electric signal, and the second sampling circuit 25 samples the second rectified electric 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 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 timing period of the timer (i.e., the time interval between the conduction time of the switching unit M1 and the conduction time of the rectifier circuit) in a plurality of cycles is detected, and the timing reference threshold value of the current cycle is calculated from the timing periods of the plurality of cycles.

On the basis of any example, since the power circuit cannot continuously obtain the rectified electrical signal, in order to maintain the continuous power supply of the power supply, the power circuit further includes at least one energy storage circuit, which is used for performing an energy storage operation based on the rectified electrical signal output by the rectification circuit during the switching of the selection circuit to the second line and performing an energy storage release operation during the switching of the selection circuit to the first line. Wherein, according to the position of the energy storage circuit in the circuit, the energy storage circuit at least comprises a capacitor.

In some embodiments, please refer to fig. 5, which is a schematic circuit diagram of a power circuit according to an embodiment. The rectifier circuit comprises a rectifier circuit, a rectifier bridge, a selection circuit, a rectifier bridge and a power management circuit, wherein the rectifier circuit is arranged on the side of the rectifier circuit, the capacitor is arranged on the side of the rectifier circuit, the rectifier bridge can be used as a filter capacitor in the rectifier circuit, the energy storage circuit is used for storing electric energy in the energy storage circuit, when the selection circuit is switched to a second circuit, the rectifier bridge outputs a half-wave rectification processed rectifier electric signal, after the rectifier electric signal is filtered and stored by the capacitor, the electric signal is still output when the selection circuit is switched to a first circuit, and.

In still other specific examples, as shown in fig. 5, the tank circuit is provided on the power supply source side, and during the switching of the selection circuit to the second line, the rectifier bridge outputs a half-wave rectified electrical signal, which is output to the tank circuit via the power management circuit, so as to charge the capacitor in the tank circuit on the one hand and supply power to the power supply source output on the other hand; the charged capacitor begins to discharge during the switching of the selection circuit to the first line, thereby enabling the power management circuit to continue to supply power. In order to prevent the current from flowing backwards, the energy storage circuit also comprises a diode connected with the capacitor.

It should be noted that the two specific examples are not mutually exclusive, and some actual power circuits may include the at least one energy storage circuit according to actual circuit requirements, such as requirements of power supply capability of the power supply source. And will not be described in detail herein.

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. 6, which is a schematic diagram illustrating a power 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 some examples, the power management circuit further includes a second protection module configured to provide overcurrent protection for 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.

According to the description of the electric devices used in the power management circuit, the power management circuit includes a source electric device or an electric device that needs to be continuously supplied with power to perform signal processing, and for this purpose, the power management circuit itself also supplies power by the power supply of the voltage transformation 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, it is connected between an output of the power supply and a power supply terminal of the power management circuit. For example, the second self-powered circuit may be a wire connected to the power supply and the power management circuit at the power terminals. 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.

In some practical applications, a switch circuit is further disposed on the ac line where the load is located. The switching circuit is used for controlling alternating current to supply power to a load. 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. The power supply circuit may provide power to the power supply source during the conduction of the switching circuit. Here, in order to distinguish between the rectified electrical signal output from the rectifying circuit during the on period of the switching circuit and the rectified electrical signal output from the rectifying circuit during the off period of the switching circuit, the rectified electrical signal output from the rectifying circuit during the on period of the switching circuit is referred to as a second rectified electrical signal, and the rectified electrical signal output from the rectifying circuit during the off period of the switching circuit is referred to as a first rectified electrical signal.

Here, the circuit structure and operation of the power management circuit for providing power to the power supply based on the second rectified electrical signal received during the switching of the selection circuit to the second line are the same as or similar to those of the previous examples, and are not described in detail herein.

In order to enable the power supply source to provide continuous power supply during the on and off periods of the switching circuit, the rectifying circuit comprises a first rectifying unit which is specially used for providing a rectifying electric signal during the off period of the switching circuit and a second rectifying unit which is specially used for providing the rectifying electric signal during the on period of the switching circuit. Wherein the first rectifying unit is connected to an input side of the switching circuit, and 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 management circuit controls the first rectified electrical signal to provide power to a power supply during the switch circuit off period. To this end, please refer to fig. 7, which is a schematic circuit diagram of the power circuit according to an embodiment. The power supply circuit includes: a transformer circuit 11 and a power management circuit 23.

The transformer circuit 11 is connected to the first rectifying unit, and is configured to provide power to a power supply source by the first rectified electrical signal. The transformer circuit comprises a primary input unit 111 and a secondary output unit 112, the primary input unit 111 and the secondary output unit 112 respectively comprise a primary winding and a secondary winding which are arranged based on the mutual inductance principle, the primary input unit 111 is connected with the rectifying circuit, and the secondary output unit 112 is used for outputting a power supply. Here, the transforming circuit 11 converts the first rectified electrical signal into the power supply signal of the power supply source by using the principle of mutual inductance of the inductor during the off period of the switching circuit 31. Wherein the voltage of the supply signal is equal to or slightly higher than the maximum value of the operating voltages of the power consuming electrical devices. The power consuming device includes devices operating according to a preset working voltage, examples of which include semiconductor devices such as a chip and a power tube, and a relay.

Here, since the transforming circuit is used as a power supply during the period when the switching circuit is turned off, and considering that the intelligent switch including the power supply circuit has a certain randomness in actual installation, it is necessary to ensure that the transforming circuit has high power conversion efficiency. Wherein the randomness is expressed in the sequence of the switch circuit and the load being switched into the live wire, e.g. the switch circuit is switched into the live wire before the load; as another example, the switching circuit switches in the hot line after the load.

In the assembly structure of connecting to the live wire after the load, during the off period of the switch circuit, in order to form a power supply loop in the power circuit, a current lower than the working voltage of the load is required to form a power-on loop with the power circuit and the voltage ground. In order to prevent the load from abnormally working due to the excessive current in the loop of the current-carrying circuit, the primary side input unit and the secondary side output unit of the voltage transformation circuit need to maximally convert energy. To this end, in some examples, the secondary output unit includes a secondary winding and a unidirectional conducting module. 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, so that the secondary winding outputs converted electric energy to the maximum extent, and the purpose of improving the conversion efficiency of the transformation circuit is achieved. 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. As shown in fig. 7, 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. Thereby maximizing the ability of the secondary winding to convert the induced energy into electrical energy and provide power to the power supply after filtering by capacitor C11.

In order to control the transformation circuit to provide stable power supply during the off period of the switching circuit, the power management circuit is at least connected with the primary side input unit, and the power management circuit is used for acquiring a first sampling signal reflecting a power supply signal output by the power supply during the off period of the switching circuit and controlling the current flowing through the primary side input unit based on the first sampling signal so as to ensure that the power supply output 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 based on the power supply provided by the power supply source, such as a power supply pin of a CPU chip operated by the power supply provided by the power supply source, which indirectly reflects the power supply signal provided by the secondary output unit 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. The first sampling circuit 14 includes voltage dividing resistors R11 and R12 connected between the secondary side output unit 112 and voltage ground, and outputs a 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 the integrated power management 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, during the off period of the switching circuit, 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, so as to change a current flowing through a primary side winding in the primary side input unit, so that a supply voltage of a secondary side output power supply converted by 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.

In some embodiments, to ensure that alternating current is obtained during the period when the switching circuit is turned off, the rectifying circuit comprises a first rectifying unit which is connected to the alternating current line on the input side of the switching circuit and supplies a first rectified electrical signal to the transforming circuit. The power management circuit is also electrically connected with the primary side input unit and is used for acquiring the first sampling signal during the disconnection period of the switching circuit and controlling the current flowing through the primary side input unit based on the first sampling signal.

Here, the power management circuit obtains a first sampling signal by any of the aforementioned examples, and adjusts a current in the primary winding according to a voltage (or a current) of the first sampling signal. Referring to fig. 8, which is a schematic circuit diagram of the power circuit according to an embodiment of the present invention, the power management circuit further includes: a regulation module 121 and a first control module 122. The adjusting module 121 is located on a line between the primary side input unit 111 and a voltage ground, and is configured to control on/off or current change 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 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 comprises two gating lines, wherein one gating line is a conducting wire, and the other gating line is provided with a resistor and a switching device; and when the default switching device is switched off, the primary side input unit is grounded through a wire, and when the switching device is switched on, the primary side input unit is grounded through 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. 8 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 a first rectified electrical signal (corresponding to the rectified electrical signal in the figure) to the primary side input unit 111 in the transformer 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. The purpose of providing power supply inside the power supply circuit by using the voltage transformation circuit during the disconnection of the switch 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 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.

In some embodiments, please refer to fig. 9, which shows a schematic circuit diagram of a power circuit in another embodiment. The power management circuit further 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. 8, 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.

Referring to fig. 10, a circuit structure diagram of a power circuit in another embodiment is shown, in which 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 performs 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. 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. 10, which is a circuit diagram of a power management circuit according to another embodiment. The power management circuit comprises a third protection module, a regulation module and a second control module. The adjusting module adjusts the current of the line where the primary side input unit is located in an on-off mode, and details are not described here.

And the second control module controls the corresponding connection and disconnection of the adjusting module. In some examples, the second control module 125 ″ of FIG. 10 may be similar to the second control module 125' of FIG. 9, except that at least some of the electrical components of the second control module 125 ″ of FIG. 10 are switched between the inactive state and the 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, in order to maintain the operation of the active devices or the devices requiring continuous power supply in the power management circuit during the period when the switching circuit is opened, as shown in fig. 7 to 10, the power circuit further includes: and a first self-powered circuit 15, which may be externally connected between the secondary output unit and a power pin VCC of the power management circuit. 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 first self-powered circuit comprises a diode and/or a voltage divider resistor, which may be at least partially integrated in the chip on which the power management circuit is located.

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.

In still other practical circuits, when a load is powered on or off in the region of a peak of the ac voltage, the semiconductor devices and switching circuits in the load are susceptible to breakdown due to the momentary high voltage to cause damage to the load. Therefore, a zero-cross detection circuit is further integrated in the power supply circuit mentioned in the present application, and is configured to detect a phase of the current ac electrical signal based on the zero-cross phase region, and output a zero-cross 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 further receives the zero-crossing detection signal, and the control circuit may control the switching circuit to be turned on or off based on the zero-crossing detection signal and after receiving a control message. Wherein the control 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 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 excessively long or excessively short intervals, are eliminated, the average time interval of the zero-crossing detection signals is calculated, the time for 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.

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 an off period of the switching circuit to prevent a load from accessing a voltage peak interval of the alternating current at a moment when the switching circuit is turned on. To this end, the zero-crossing detection circuit includes a first zero-crossing detection unit. The first zero-crossing detection unit is 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. 11, 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, in order to meet the circuit configuration requirement that the voltage transformation circuit in the power supply circuit supplies power to the power supply, as shown in fig. 11, 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.

Here, the sampling submodule 411 includes a rectifying bridge RB3, a switch M2, and a sampling Resistor HV _ Resistor. The rectifier bridge RB3 is connected to an alternating current circuit connected to the input end of the switch circuit 31 and is connected with the switch M2 and the sampling Resistor HV _ Resistor. The sampling Resistor HV _ Resistor collects a rectified electrical signal output by a rectifying bridge RB3 and outputs a first detection signal during the period that the switch circuit 31 is turned off and the switch M2 is turned on; when the switch M2 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 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. For this purpose, 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, so as to control the switch M2. 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 M2 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 electrically connecting to 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 submodule 412 first controls the switch M2 to be turned on at intervals according to a preset time interval, and detects the voltage of the first detection signal during the period when the switch M2 is turned on, when the voltage of the first detection signal falls into the reference voltage interval, the control submodule 412 continuously outputs the sampling control signal to make the switch M2 in the sampling submodule 411 be turned on all the time until zero detects that the voltage of the first detection signal exceeds the reference voltage interval, controls the switch M2 to be turned off, and controls the switch M2 to be turned on at intervals according to the preset time interval. For example, the control sub-module 412 includes a signal generator, a comparator, a gate, and the like, where the comparator compares the voltage V of the first detection signal with the 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, 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 M2 is controlled by the sampling control signal (e.g., a square wave signal) output by the signal generator, and is turned on and off according to a preset on-off period; when the voltage V of the first detection signal is greater than the upper voltage limit V1, the gate selects to connect the control terminal of the switch M2 to a constant voltage terminal based on the comparison result output by the comparator, so that the control terminal of the switch M2 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 412 controls the switch M2 to be turned on at intervals according to a preset time interval, detects the voltage of the first detection signal during the turn-on, 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 411 falls within the zero-crossing voltage interval. For example, the control sub-module 412 includes an adjustable signal generator, a comparator, and the like, where 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 turned on and off according to a preset on-off period; 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 cycle of the sampling control signal to a second duty cycle, and outputs the second duty cycle to the control terminal of the switch M2; wherein the second duty cycle is greater 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.

As shown in fig. 11, the first detection signal output by any of the above examples is transmitted to a first zero-crossing detection module 413, which is configured to detect whether the voltage of the first detection signal falls into 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 413 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, and otherwise the output zero-crossing detection signal indicates that the phase of the current alternating current is not within the zero-crossing phase interval. Here, the zero-crossing detection signal level signal 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.

The zero-cross detection signal generated based on any of the above examples is output to a control circuit that can output a control signal for controlling the switching circuit by a control logic designed by preset received control information on the switching circuit and the zero-cross detection signal.

In some examples, the control circuit controls the switching circuit to be turned on during an active period of the zero-cross detection signal when control information received by the control circuit indicates that the switching circuit is turned on during an off period of the switching circuit. For example, the processing unit in the control circuit generates and maintains a logic signal valid based on the received control information, and outputs a conducting control signal to the switch circuit by using a preset control logic corresponding to the two signals when receiving the zero-crossing detection signal.

When the switching circuit is conducted, the first zero-crossing detection unit is short-circuited by the switching circuit, and the zero-crossing detection circuit further provides a second zero-crossing detection unit for reducing the possibility of damage to the load and devices in the switching circuit caused by the moment of controlling the switching circuit to be disconnected in the voltage peak interval of the alternating current. In other words, the second zero-cross detection unit provides the control circuit with AC phase information so that the control circuit controls the switching circuit to be turned off in the vicinity of the AC zero phase, thereby extending the service life of the switching circuit, the load, and the like. 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 to the control circuit. 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. 12, 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 generating module 421 generates a second detection signal reflecting the current phase of the alternating current. Here, the second detection signal generation module 421 may include a sampling electric device (group). In some examples, during the period that the switch circuit 31 is turned on, the second detection signal generation module 421 synchronously obtains the ac signal output by the switch circuit by using the sampling electrical device(s), and outputs the sampled signal as the second detection signal. In another example, continuing with some of the aforementioned rectifier circuit embodiments, during the time that the switching circuit 31 is conducting, the rectified electrical signal output by the rectifier circuit 32 is the second rectified electrical signal. Correspondingly, in some examples, the second detection signal generation module 421 samples the second rectified electrical signal or directly samples the ac electrical signal by using a sampling electrical device(s), and outputs the sampled signal as the second detection signal.

In still other examples, under the shunt control of the shunt control module 233, the second rectified electrical signal received by the second detection signal generation module 421 corresponds to the second rectified electrical signal output by the second rectification unit during the selection of the second line by the aforementioned selection circuit. Based on the aforementioned switching operation of the selection circuit, the second detection signal generation module 421 obtains the alternating current signal including the zero-crossing phase interval through the operation of selecting the second line in one power frequency cycle by the selection circuit. In an example, the phase interval selected by the shunt control module 233 based on the purpose of power supply includes a zero-crossing phase interval, and the second detection signal generation module 421 outputs the second sampling signal provided by the second sampling circuit 25 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 422 is connected to the second detection signal generation module 421, 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 422 includes a comparator, one input of which receives the second detection signal and the other input of which 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 vice versa, 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. 13, 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 logic device (group), etc., so as to output the zero-crossing detection signal that can be recognized 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 unit. 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. 17, 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.

Based on the above mentioned examples of the power supply circuit, the present application also provides a chip, which 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. In order to cooperate with the circuit design of the rectifier circuit, the chip at least comprises the following chip pins: a first pin for obtaining a rectified electrical signal; a ground pin for connecting a voltage ground; a second pin for outputting a supply signal, etc. A power management circuit integrated in the chip will provide power to a power supply based on the obtained rectified electrical signal. The power supply can be a terminal for outputting a power supply signal, the power supply circuit is a circuit for providing stable power supply output for the terminal, and the power supply provides working voltage capable of enabling the power supply to operate for the circuit connected with the power supply circuit by the power supply provided by the power supply circuit. Wherein the rectifier circuit outputs a rectified electrical signal when switching to a second line on which the rectifier circuit is located, by means of switching operation of a selection circuit provided on the alternating current line between the first line and the second line. Wherein the first line and the second line have a common alternating current line, for example, the first line and the second line share an alternating current line connected to a load, when the selection circuit selects to connect the load to the second line, the load, the rectification circuit, the chip and the voltage ground form a power-on loop, in other words, an alternating current signal flows to the voltage ground through the load, the rectification circuit and the chip; when the selection circuit selects to switch the load into the first line, a further energized circuit is formed by the load, the selection circuit and the urban power network, in other words, the alternating current signal flows via the load and the selection circuit to the voltage ground in the urban power network.

The selection circuit can be packaged in the chip, and correspondingly, the chip comprises a chip pin for accessing the alternating current circuit. Wherein, the selection circuit and the power management circuit can be packaged together by a PCB board. The selection circuit may be as shown in the foregoing fig. 1-2 and described correspondingly, and will not be described in detail herein.

In order to control the selection circuit to perform switching operation, 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 third 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 second sampling signal so as to control the selection circuit to switch between the first line and the second line. For this purpose, a third 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 an alternating current phase 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 third 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. 2-3 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. 6, which is not repeated here.

In some examples, the first pin and/or the second pin of the chip are also used for externally connecting a corresponding energy storage circuit. The circuit structure of the tank circuit can be as shown in fig. 5 and the corresponding description, and is not described in detail here.

Based on the examples mentioned in the above embodiments, if a switching circuit is further provided on the ac line, and the rectified electrical signal output by the rectifying circuit during the on period of the switching circuit is referred to as a second rectified electrical signal, the power management circuit in the chip supplies power to the power supply source by the second rectified electrical signal during the on period of the switching circuit.

Here, the rectifying circuit includes a first rectifying unit and a second rectifying unit, wherein the first rectifying unit outputs a rectified electrical signal during the switching-off period of the switching circuit and is referred to as a first rectified electrical signal; the second rectifying unit outputs a rectified electrical signal during the conduction period of the switching circuit, and is referred to as a second rectified electrical signal.

During the conduction period of the switching circuit, the output module in the chip provides a power supply signal to the power supply according to the received second rectified electrical signal. According to the circuit design requirement of the chip, the output module can be integrated in the chip, or externally connected between a first pin and a second pin of the chip, or externally connected between the first pin (or the second pin) and a power supply.

The power management circuitry in the chip also controls the first rectified electrical signal during the off-time of the switching circuit to provide power to a power supply. Taking the description corresponding to fig. 7 as an example, the chip is further provided with chip pins respectively used for connecting the transforming circuit and obtaining the first sampling signal, and the chip pins are connected with the transforming circuit through corresponding chip pins so as to control the transforming circuit to output the power supply signal according to at least the first sampling signal. The adjusting module, the first control module, the second control module, etc. for controlling the voltage transformation circuit in the chip are the same as or similar to the aforementioned circuit structures and working processes of the respective modules, and are not described in detail herein.

Based on the above examples, the power management circuit further includes a second protection module, configured to provide overcurrent protection for the power supply. The working process and circuit structure of the second protection module can be shown as a power circuit and corresponding description, and are not 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. 11 to 12 and the corresponding description, and will not be described in detail here.

The intelligent switch comprises a switch circuit, a rectifying circuit, a power circuit and a control circuit. 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. 14, 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 signal, and for maintaining an output voltage of the power supply at a low voltage adjustment signal output by the power supply 357, for adjusting the output voltage of the power supply circuit 35539, wherein the output voltage adjustment circuit is set for maintaining the output voltage adjustment circuit 551 and the output voltage adjustment circuit for maintaining the output of the linear output adjustment circuit for maintaining the low voltage regulator circuit such as a linear output adjustment circuit 539 and a linear adjustment circuit for maintaining the output of the output voltage regulator circuit 540.

The switch circuit 51 is connected to the alternating current circuit and used for controlled connection or disconnection, when the switch circuit 51 is disconnected, the load is in a stop state, when the switch circuit 51 is connected, the load can be switched into an operating state under the drive of a drive circuit (such as the switching circuit mentioned above), 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 disconnection of the switch circuit, the operating state refers to a state where the load achieves a use purpose through operation of the drive circuit after receiving the alternating current power supply, for example, a L ED lamp is in a lighting state during conduction of the switch circuit, the operating state is not limited to one state and can be adjusted according to an actual control command, for example, the operating state of the L ED lamp is not only in the lighting state, but also includes the states after brightness and color adjustment, and the operating state of a television includes a standby state, a play state and the like.

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. 14, 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. 14 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. 14 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. 8 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. 14 and corresponding description, not only the output of the secondary output unit can be stably supplied 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. 14, the control circuit 536 continuously monitors whether control information is received by using the power supplied from the power supply 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 power supply circuit during the off period of the switching circuit and the control circuit structure and operation process for controlling at least the switching circuit. During the on-time of the switching circuit, the power supply circuit is still able to provide an internal power supply and an off-control of at least the switching circuit, etc.

The rectifying circuit further comprises 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.

During the conduction period of the switching circuit, in order to enable the internal power supply of the power supply circuit to continuously supply power during the conduction period of the switching circuit, the power supply circuit switches the switching circuit and the load between the first line and the second line in a time-sharing manner, so that the second rectifying unit rectifies the received alternating current signal and outputs a corresponding second rectified electrical signal. As shown in fig. 14, 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. And the time length of the time delay is related to the time length of the energy storage circuit for maintaining the power supply voltage. The output module 543 outputs the power supply signal to the energy storage circuit 540 during the period when the selection circuit is switched to the second line, so that the power supply circuit 540 maintains outputting the power supply signal during the period when the selection circuit is switched to the first line. 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 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. 15, 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. 14, 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 acquires an alternating current signal flowing to the first rectification unit 521 during the disconnection period 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. 14, 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, thereby ensuring that the corresponding second zero-crossing detection unit may 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. 16, 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, ac power signals are time-divisionally passed through different power-on circuits formed by the first line or the second line. Wherein the first line and the second line have partially overlapping alternating current lines, and the rectifying circuit is located in the second line.

This step can be performed by the aforementioned selection circuit, wherein the circuit structure and operation of the selection circuit are shown in fig. 1-2, and will not be described in detail herein.

This step can also be executed by the shunt control module and the selection circuit in the power management circuit. The circuit structure and the operation process of the shunt control module are shown in fig. 2-3, and are not described in detail here. The shunt control module outputs a shunt control signal to the selection circuit to realize that the selection circuit switches between the first line and the second line.

In some examples, the step S110 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; comparing the voltage of the second sampling signal with a reference voltage interval; based on the comparison result, a switching operation between the first line and the second line is performed.

Wherein the second sampling signal can be obtained by sampling with a second sampling circuit as shown in fig. 2-5, and will not be described in detail here. The shunt circuit control module compares the voltage of the second sampling signal with a reference voltage interval, and controls the selection circuit to be switched from the second line to the first line when the comparison result shows that the voltage of the second sampling signal exceeds the upper limit of the voltage interval or does not reach the lower limit of the voltage interval; or when the comparison result shows that the voltage of the second sampling signal falls within the voltage interval, controlling the selection circuit to switch from the first line to the second line. The coordinated operation of the shunt control module and the selection circuit is related to the provided rectified electrical signal of the rectification circuit.

Taking the rectified electrical signal as a full-wave rectified electrical signal as an example, the shunt control module outputs a corresponding shunt control signal according to the comparison result, and the selection circuit immediately performs switching operation from the first line to the second line or from the second line to the first line based on the shunt control signal.

When the selection circuit is switched to the first line, the rectifying circuit does not output a rectifying electric signal, so that the shunt control module can execute the following steps: immediately performing a switching operation from the second line to the first line based on the received comparison result; and timing based on the received comparison result, and executing switching operation from the first line to the second line when the timing reaches a timing threshold value. Here, the shunt control module may perform the above steps as shown in fig. 2 to 3 and the corresponding description, and will not be described in detail herein.

In some practical applications, in order to maximize the active power provided by the alternating current, the circuit structures of the rectifying circuit and the selection circuit are designed in a matching way, taking the rectified electrical signal as a half-wave rectified electrical signal as an example, and the selection circuit comprises a phase limiting unit. The circuit structure and operation of the phase restriction unit can be as shown in fig. 2 and the corresponding description, and are not described in detail here. When the timing reaches the timing threshold, the step S110 includes: the switching operation from the first line to the second line is performed immediately or with a delay based on the phase of the current alternating current. Here, in some examples, if the timing threshold is not set based on the power frequency cycle of the rectifier circuit, when the timing reaches the timing threshold, the shunt control module outputs the shunt control signal to disconnect the switch unit M1 in the selection circuit, and at this time, if the current ac power is in the negative half cycle (-180-0 degrees) of the power frequency cycle, because the phase restriction unit is still connected to the first line, the selection circuit delays to the positive half cycle (0-180 degrees) of the current ac power in the power frequency cycle, and performs the switching operation from the first line to the second line by disconnecting the phase restriction unit. In still other examples, if the timing threshold is set based on the power frequency cycle of the rectifier circuit, when the timing reaches the timing threshold, the shunt control module outputs the shunt control signal so that the switching unit M1 in the selection circuit is turned off, and at this time, if the current ac is in the positive half cycle (0 to 180 degrees) of the power frequency cycle, since the phase restriction unit cannot be turned on, the selection circuit immediately performs the switching operation from the first line to the second line, where the second line is turned on when the ac voltage reaches the on voltage of the rectifier circuit located on the second line, and the second line is turned off otherwise.

When the selection circuit is switched to the second line, step S120 is performed.

In step S120, when switching to the second line, power is supplied to the power supply source based on the rectified electric signal output by the rectifying circuit. Here, this step can be performed by the power management circuit, and is not described in detail herein.

In the power supply method provided by each of the above examples, a switch circuit is further provided on the ac line shared by the first line and the second line, and the above steps S110 and S120 may be performed during the on period of the switch circuit.

During the switching off of the switching circuit, the method further comprises step S130: and converting the received rectified electrical signal into a power supply signal and outputting the power supply signal to the power supply. Here, the step S130 may be executed by the power management circuit and the voltage transformation circuit in cooperation, and here, the circuit structures and the operation processes of the power management circuit and the voltage transformation circuit may be shown in fig. 7 and the corresponding description, and will not be described in detail here.

During the execution of the power supply method using any of the above examples, the power supply circuit executing the power supply method includes the operation of the source device or the electrical device to be continuously powered, and for this purpose, the power supply method further includes the step of maintaining self-power using the power supply and/or the alternating current signal. Here, this step can be performed by the second self-supply circuit during the switching circuit being on, and/or by the first self-supply circuit during the switching circuit being off. Here, the circuit structure and the operation process of the second self-powered circuit and the first self-powered circuit can be shown by the corresponding description in the foregoing power circuit, and will not be described in detail here.

During the power supply method performed using any of the above examples, the power supply method further includes a step of detecting a phase of the current alternating current signal based on the zero-crossing phase interval, and outputting a zero-crossing detection signal. This step may be performed by a zero-crossing detection circuit, wherein the circuit structure and operation of the zero-crossing detection circuit may be shown in fig. 11 to 12 and the corresponding description, and will not be described in detail herein.

In summary, the power supply circuit, the chip, the intelligent switch and the power supply method provided by the application utilize the alternating current obtained in a time-sharing manner to supply power to the power supply, so that the internal consumption of the power supply circuit is effectively reduced; in addition, through the control to the voltage transformation circuit, the power supply can output stable power supply during the working and non-working periods of the load, so that the construction wiring is greatly simplified, and the integration level of the intelligent switch is 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.

48页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:电源电路、芯片、智能开关及电源供电方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类