Power flipping detection circuit and electronic equipment
By designing a power reversal detection circuit to automatically monitor the reversal of the power signal of the power grid, the problem of low-frequency oscillation of the power grid caused by periodic low-frequency fluctuations in the active power of the generator set is solved, ensuring the stable operation of the generator set and the safety of the power system.
Patent Information
- Application Number
- CN202410802654.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-10
AI Technical Summary
Periodic low-frequency fluctuations in the active power of generating units are difficult to detect and eliminate in time, causing low-frequency oscillations in regional power grids and affecting the safe and stable operation of the power system.
Design a power reversal detection circuit, including a first differential circuit, a second differential circuit, a power maximum reversal indication circuit, a power minimum reversal indication circuit and a power reversal indication circuit. By automatically monitoring the reversal of the power grid power signal, it determines Whether power oscillation occurs in the power grid provides a basis for the stable operation of the generator set.
It realizes the automatic monitoring of the flip of the power signal of the power grid, provides a basis for judging whether power oscillation occurs in the power grid, ensures the stable operation of the generator set, and improves the safety and reliability of the power system.
Smart Images

Figure CN118624977A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of circuit technology, and in particular to a power flip detection circuit and an electronic device. Background Art
[0002] In the process of power production, the safe and stable operation of the power system grid and power sources (generators) is the primary task that must be guaranteed in production. It is related to the reliability of power supply and the national economy and people's livelihood. The low-frequency oscillation of the power grid is one of the important factors that undermine the safe and stable operation of the power system; a large part of the low-frequency oscillation of the regional power grid is caused by the periodic low-frequency fluctuation of the active power of the generator set on the power supply side due to various accidental reasons. In the production process, the periodic low-frequency fluctuation of the active power of the generator set is often not discovered and eliminated in time, which eventually leads to the occurrence of low-frequency oscillation of the regional power grid. Summary of the invention
[0003] The purpose of the present invention is to provide a power reversal detection circuit and electronic equipment, which are designed to automatically monitor the reversal of the power signal of the power grid, provide a basis for further judging whether power oscillation occurs in the power grid, and ensure the stable operation of the generator set.
[0004] In order to achieve the above-mentioned purpose, according to a first aspect of an embodiment of the present disclosure, there is provided a power reversal detection circuit, comprising: a first differential circuit, a second differential circuit, a power maximum reversal indication circuit, a power minimum reversal indication circuit and a power reversal indication circuit;
[0005] The first differential circuit is used to input a power oscillation signal and obtain a difference between a first amplitude value and a second amplitude value of the power oscillation signal;
[0006] The second differential circuit is connected to the first differential circuit, and is used to obtain the difference between the second amplitude value and the third amplitude value of the power oscillation signal, the first amplitude value, the second amplitude value and the third amplitude value are amplitude values of the power oscillation signal at three adjacent moments, wherein the first moment corresponding to the first amplitude value is greater than the second moment corresponding to the second amplitude value, and the second moment corresponding to the second amplitude value is greater than the third moment corresponding to the third amplitude value;
[0007] The power maximum value reversal indication circuit is connected to the second differential circuit, and is used for obtaining a power maximum value reversal indication of the power oscillation signal according to an output of the second differential circuit;
[0008] The power minimum value reversal indication circuit is connected to the second differential circuit, and is used to obtain a power minimum value reversal indication of the power oscillation signal according to an output of the second differential circuit;
[0009] The power reversal indication circuit is respectively connected to the first differential circuit, the second differential circuit, the power maximum reversal indication circuit and the power minimum reversal indication circuit, and is used to obtain the power reversal indication of the power oscillation signal.
[0010] Optionally, the first differential circuit comprises: a first delayer and a first subtractor;
[0011] The input end of the first delayer is used to input the power oscillation signal, and the output end of the first delayer is connected to the second input end of the first subtractor;
[0012] The first input terminal of the first subtractor is connected to the input terminal of the first delayer.
[0013] Optionally, the delay time of the first delayer is the difference between the first moment and the second moment.
[0014] Optionally, the second differential circuit comprises: a second delayer and a second subtractor;
[0015] The input end of the second delayer is connected to the output end of the first delayer of the first differential circuit, and the output end of the second delayer is connected to the second input end of the second subtractor;
[0016] The first input terminal of the second subtractor is connected to the input terminal of the second delayer.
[0017] Optionally, the delay time of the second delayer is the difference between the second moment and the third moment.
[0018] Optionally, the power maximum value reversal indication circuit comprises: a high limit monitor and a first AND gate;
[0019] The input end of the high limit monitor is connected to the output end of the second subtractor of the second differential circuit; the output end of the high limit monitor is connected to the first input end of the first AND gate, and the output end of the first AND gate is used to output the power maximum value reversal indication.
[0020] Optionally, the high limit monitor is used for, when the input value of the high limit monitor is greater than zero, the output of the high limit monitor is true;
[0021] In the event that the input value of the high limit monitor is less than or equal to zero, the output of the high limit monitor is false.
[0022] Optionally, the power minimum value flip indication circuit comprises: a first lower limit monitor and a second AND gate;
[0023] The input end of the first lower limit monitor is connected to the output end of the second subtractor of the second differential circuit; the output end of the first lower limit monitor is connected to the first input end of the second AND gate, and the output end of the second AND gate is used to output the power minimum value reversal indication.
[0024] Optionally, the power reversal indication circuit comprises: a multiplier, a second lower limit monitor and a pulse generator;
[0025] The first input end of the multiplier is connected to the output end of the first subtractor of the first differential circuit, and the second input end of the multiplier is connected to the output end of the second subtractor of the second differential circuit;
[0026] The input end of the second lower limit monitor is connected to the output end of the multiplier, the output end of the second lower limit monitor is connected to the input end of the pulse generator, and the output end of the pulse generator is respectively connected to the second input end of the first AND gate of the power maximum value flip indication circuit and the second input end of the second AND gate of the power minimum value flip indication circuit, for outputting the power flip indication.
[0027] Optionally, the lower limit monitor is used for, when the input value of the lower limit monitor is less than zero, the output of the lower limit monitor is true;
[0028] In the event that the input value of the low limit monitor is greater than or equal to zero, the output of the low limit monitor is false.
[0029] According to a second aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising the power flip detection circuit described in any one of the first aspects.
[0030] In summary, the embodiment of the present disclosure provides a power reversal detection circuit, including: a first differential circuit, a second differential circuit, a power maximum reversal indication circuit, a power minimum reversal indication circuit and a power reversal indication circuit; the first differential circuit is used to input a power oscillation signal and obtain the difference between the first amplitude value and the second amplitude value of the power oscillation signal; the second differential circuit is connected to the first differential circuit, and is used to obtain the difference between the second amplitude value and the third amplitude value of the power oscillation signal, the first amplitude value, the second amplitude value and the third amplitude value are the amplitude values of the power oscillation signal at three adjacent moments, wherein the first moment corresponding to the first amplitude value is greater than the second moment corresponding to the second amplitude value The second moment corresponding to the second amplitude value is greater than the third moment corresponding to the third amplitude value; the power maximum reversal indication circuit is connected to the second differential circuit, and is used to obtain the power maximum reversal indication of the power oscillation signal according to the output of the second differential circuit; the power minimum reversal indication circuit is connected to the second differential circuit, and is used to obtain the power minimum reversal indication of the power oscillation signal according to the output of the second differential circuit; the power reversal indication circuit is respectively connected to the first differential circuit, the second differential circuit, the power maximum reversal indication circuit and the power minimum reversal indication circuit, and is used to obtain the power reversal indication of the power oscillation signal. The disclosed embodiment can automatically monitor the reversal of the power signal of the power grid, provide a basis for further judging whether power oscillation occurs in the power grid, and ensure the stable operation of the generator set.
[0031] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0033] Figure 1 is a schematic diagram showing a power flip detection circuit according to an exemplary embodiment.
[0034] Figure 2 is a schematic diagram showing a power flip detection circuit according to an exemplary embodiment.
[0035] Figure 3 is a schematic diagram showing a power oscillation detection circuit according to an exemplary embodiment.
[0036] Figure 4 is a schematic diagram showing a power oscillation period detection circuit according to an exemplary embodiment.
[0037] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0038] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0039] It should be understood that the term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0040] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. The modifications of "one" and "multiple" mentioned in the present disclosure are illustrative and not restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more". In the description of the present disclosure, unless otherwise specified, "multiple" refers to two or more than two, and other quantifiers are similar; "at least one item", "one item or multiple items" or similar expressions refer to any combination of these items, including any combination of single items or plural items.
[0041] Although operations or steps are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood that it is required to perform these operations or steps in the specific order shown or in a serial order, or to perform all the operations or steps shown to obtain the desired results. In the embodiments of the present disclosure, these operations or steps can be performed in series; these operations or steps can also be performed in parallel; or some of these operations or steps can be performed.
[0042] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information. It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user in an appropriate manner in accordance with relevant laws and regulations and the user's authorization should be obtained. The present disclosure is described below in conjunction with specific embodiments.
[0043] Figure 1FIG. 1 is a schematic diagram of a power flip detection circuit according to an exemplary embodiment. Figure 1 As shown, an embodiment of the present disclosure provides a power reversal detection circuit, including: a first differential circuit 10, a second differential circuit 20, a power maximum reversal indication circuit 30, a power minimum reversal indication circuit 40 and a power reversal indication circuit 50.
[0044] The first differential circuit 10 is used to input a power oscillation signal and obtain a difference between a first amplitude value and a second amplitude value of the power oscillation signal.
[0045] The second differential circuit 20 is connected to the first differential circuit 10, and is used to obtain the difference between the second amplitude value and the third amplitude value of the power oscillation signal, wherein the first amplitude value, the second amplitude value and the third amplitude value are the amplitude values of three adjacent moments of the power oscillation signal, wherein the first moment corresponding to the first amplitude value is greater than the second moment corresponding to the second amplitude value, and the second moment corresponding to the second amplitude value is greater than the third moment corresponding to the third amplitude value. That is, the first moment, the second moment and the third moment are three adjacent moments, wherein the first moment is the latest moment.
[0046] The power maximum value reversal indication circuit 30 is connected to the second differential circuit 20 and is used to obtain a power maximum value reversal indication of the power oscillation signal according to the output of the second differential circuit 20 .
[0047] The power minimum value reversal indication circuit 40 is connected to the second differential circuit 20 , and is used to obtain a power minimum value reversal indication of the power oscillation signal according to the output of the second differential circuit 20 .
[0048] The power reversal indication circuit 50 is respectively connected to the first differential circuit 10, the second differential circuit 20, the power maximum reversal indication circuit 30 and the power minimum reversal indication circuit 40, and is used to obtain the power reversal indication of the power oscillation signal.
[0049] In summary, the embodiment of the present disclosure provides a power reversal detection circuit, including: a first differential circuit, a second differential circuit, a power maximum reversal indication circuit, a power minimum reversal indication circuit and a power reversal indication circuit; the first differential circuit is used to input a power oscillation signal and obtain the difference between the first amplitude value and the second amplitude value of the power oscillation signal; the second differential circuit is connected to the first differential circuit, and is used to obtain the difference between the second amplitude value and the third amplitude value of the power oscillation signal, the first amplitude value, the second amplitude value and the third amplitude value are the amplitude values of the power oscillation signal at three adjacent moments, wherein the first moment corresponding to the first amplitude value is greater than the second moment corresponding to the second amplitude value The second moment corresponding to the second amplitude value is greater than the third moment corresponding to the third amplitude value; the power maximum reversal indication circuit is connected to the second differential circuit, and is used to obtain the power maximum reversal indication of the power oscillation signal according to the output of the second differential circuit; the power minimum reversal indication circuit is connected to the second differential circuit, and is used to obtain the power minimum reversal indication of the power oscillation signal according to the output of the second differential circuit; the power reversal indication circuit is respectively connected to the first differential circuit, the second differential circuit, the power maximum reversal indication circuit and the power minimum reversal indication circuit, and is used to obtain the power reversal indication of the power oscillation signal. The disclosed embodiment can automatically monitor the reversal of the power signal of the power grid, provide a basis for further judging whether power oscillation occurs in the power grid, and ensure the stable operation of the generator set.
[0050] Figure 2 FIG. 1 is a schematic diagram of a power flip detection circuit according to an exemplary embodiment. Figure 2 As shown, the first differential circuit 10 includes: a first delayer L1 and a first subtractor M1.
[0051] The input end of the first delayer L1 is used to input the power oscillation signal, and the output end of the first delayer L1 is connected to the second input end of the first subtractor M1. The first input end of the first subtractor M1 is connected to the input end of the first delayer L1. The delay time of the first delayer L1 is the difference between the first moment and the second moment.
[0052] In some embodiments, the second differential circuit 20 includes: a second delayer L2 and a second subtractor M2.
[0053] The input end of the second delayer L2 is connected to the output end of the first delayer L1 of the first differential circuit 10, and the output end of the second delayer L2 is connected to the second input end of the second subtractor M2. The first input end of the second subtractor M2 is connected to the input end of the second delayer L2. The delay time of the second delayer L2 is the difference between the second moment and the third moment.
[0054] In some embodiments, the power reversal indication circuit 50 includes: a multiplier C1 , a second lower limit monitor D2 , and a pulse generator P1 .
[0055] A first input terminal of the multiplier C1 is connected to an output terminal of the first subtractor M1 of the first differential circuit 10 , and a second input terminal of the multiplier C1 is connected to an output terminal of the second subtractor M2 of the second differential circuit 20 .
[0056] The input end of the second lower limit monitor D2 is connected to the output end of the multiplier C1, the output end of the second lower limit monitor D2 is connected to the input end of the pulse generator P1, and the output end of the pulse generator P1 is respectively connected to the second input end of the first AND gate of the power maximum value flip indication circuit 30 and the second input end of the second AND gate of the power minimum value flip indication circuit 40, for outputting a power flip indication. The lower limit monitor is used to output a true value when the input value of the lower limit monitor is less than zero. When the input value of the lower limit monitor is greater than or equal to zero, the output of the lower limit monitor is false.
[0057] The working principle of the power reversal indication circuit 50 is as follows: when it is detected that the product of the output of the first differential circuit 10 and the output of the second differential circuit 20 is a negative value, the output of the second lower limit monitor D2 is true, then it is considered that the input signal (power oscillation signal) has undergone a power reversal, and a high level is output through the pulse generator P1 as a power reversal indication.
[0058] In some embodiments, the power maximum value reversal indication circuit 30 includes: a high limit monitor G1 and a first AND gate A1.
[0059] The input end of the high limit monitor G1 is connected to the output end of the second subtractor M2 of the second differential circuit 20. The output end of the high limit monitor G1 is connected to the first input end of the first AND gate A1, and the output end of the first AND gate A1 is used to output a power maximum value flip indication. The high limit monitor G1 is used to, when the input value of the high limit monitor G1 is greater than zero, the output of the high limit monitor G1 is true. When the input value of the high limit monitor G1 is less than or equal to zero, the output of the high limit monitor G1 is false.
[0060] The working principle of the power maximum reversal indication circuit 30 is: when it is detected that the input signal has a power reversal and the output of the second differential circuit 20 is greater than zero, the output of the first AND gate A1 is true, then it is considered that the power reversal of the input signal occurs at the maximum value, and a power maximum reversal indication is output.
[0061] In some embodiments, the power minimum value inversion indication circuit 40 includes: a first lower limit monitor D1 and a second AND gate A2.
[0062] The input end of the first low limit monitor D1 is connected to the output end of the second subtractor M2 of the second differential circuit 20. The output end of the first low limit monitor D1 is connected to the first input end of the second AND gate A2, and the output end of the second AND gate A2 is used to output a power minimum value flip indication.
[0063] The working principle of the power minimum reversal indication circuit 40 is: when it is detected that the input signal has a power reversal and the output of the second differential circuit 20 is less than zero, the output of the second AND gate A2 is true, then it is considered that the power reversal of the input signal occurs at the minimum value, and a power minimum reversal indication is output.
[0064] In summary, the embodiment of the present disclosure provides a power reversal detection circuit, including: a first differential circuit, a second differential circuit, a power maximum reversal indication circuit, a power minimum reversal indication circuit and a power reversal indication circuit; the first differential circuit is used to input a power oscillation signal and obtain the difference between the first amplitude value and the second amplitude value of the power oscillation signal; the second differential circuit is connected to the first differential circuit, and is used to obtain the difference between the second amplitude value and the third amplitude value of the power oscillation signal, the first amplitude value, the second amplitude value and the third amplitude value are the amplitude values of the power oscillation signal at three adjacent moments, wherein the first moment corresponding to the first amplitude value is greater than the second moment corresponding to the second amplitude value The second moment corresponding to the second amplitude value is greater than the third moment corresponding to the third amplitude value; the power maximum reversal indication circuit is connected to the second differential circuit, and is used to obtain the power maximum reversal indication of the power oscillation signal according to the output of the second differential circuit; the power minimum reversal indication circuit is connected to the second differential circuit, and is used to obtain the power minimum reversal indication of the power oscillation signal according to the output of the second differential circuit; the power reversal indication circuit is respectively connected to the first differential circuit, the second differential circuit, the power maximum reversal indication circuit and the power minimum reversal indication circuit, and is used to obtain the power reversal indication of the power oscillation signal. The disclosed embodiment can automatically monitor the reversal of the power signal of the power grid, provide a basis for further judging whether power oscillation occurs in the power grid, and ensure the stable operation of the generator set.
[0065] Figure 3 FIG. 1 is a schematic diagram showing a power oscillation detection circuit according to an exemplary embodiment. Figure 3 As shown, an embodiment of the present disclosure provides a power oscillation detection circuit, comprising: a power amplitude detection circuit 60, a power oscillation counting circuit 70 and a power oscillation alarm circuit 80 connected in sequence.
[0066] The power amplitude detection circuit 60 is used to detect the amplitude of the power oscillation signal, and output a power oscillation count enable signal when the amplitude of the power oscillation signal is greater than a first threshold. For example, the first threshold may be 10, that is, when the voltage oscillation amplitude of the input signal is detected to be greater than 10V, it is considered that the input signal has power oscillation, and a power oscillation count enable signal is output.
[0067] The power oscillation counting circuit 70 is used to count the number of power oscillations of the power oscillation signal and output the number of power oscillations when the power oscillation counting enable signal is true and the power reversal indication signal of the power oscillation signal is true. The power reversal indication signal is used to indicate that the input signal has undergone a power reversal, that is, the input signal has experienced a maximum value or a minimum value.
[0068] The power oscillation alarm circuit 80 is used to output a power oscillation alarm signal when the number of power oscillations is greater than a second threshold. For example, the second threshold may be 5, that is, when the number of power oscillations of the input signal counted is greater than 5, a power oscillation alarm signal is output.
[0069] The power amplitude detection circuit 60 includes: a first condition selector T1, a second condition selector T2, a third subtractor M3 and a second high limit monitor G2.
[0070] The first input end of the first condition selector T1 is used to input a power oscillation signal, the second input end of the first condition selector T1 is connected to the output end of the first condition selector T1, and the condition input end of the first condition selector T1 is used to input a power maximum value reversal indication signal of the power oscillation signal. The power maximum value reversal indication signal is used to indicate that the input signal is reversed at the maximum value.
[0071] The first input end of the second conditional selector T2 is used to input the power oscillation signal, the second input end of the second conditional selector T2 is connected to the output end of the second conditional selector T2, and the conditional input end of the second conditional selector T2 is used to input the power minimum value flip indication signal of the power oscillation signal. The power minimum value flip indication signal is used to indicate that the input signal flips at the minimum value.
[0072] The first input end of the third subtractor M3 is connected to the output end of the first condition selector T1, the second input end of the third subtractor M3 is connected to the output end of the second condition selector T2, the output end of the third subtractor M3 is connected to the input end of the second high limit monitor G2, and the output end of the second high limit monitor G2 is used to output a power oscillation count enable signal. The output of the third subtractor M3 is equal to the value of the first input end minus the value of the second input end.
[0073] The conditional selector is used to output a signal at a first input terminal of the conditional selector when the conditional input terminal of the conditional selector is true, and to output a signal at a second input terminal of the conditional selector when the conditional input terminal of the conditional selector is false.
[0074] The second high limit monitor G2 is used for, when the input value of the second high limit monitor G2 is greater than the first threshold value, the output of the second high limit monitor G2 is true. When the input value of the second high limit monitor G2 is less than or equal to the first threshold value, the output of the second high limit monitor G2 is false.
[0075] The working principle of the circuit is: the first condition selector T1 outputs the maximum value of the input signal, and the second condition selector T2 outputs the minimum value of the input signal. After the third subtractor M3 performs the difference, the amplitude value of the input signal can be obtained. After being processed by the high limit monitor G1, when the amplitude value of the input signal is greater than the first threshold value, the output power oscillation count enable signal is true.
[0076] The power oscillation counting circuit 70 includes: a third AND gate A3 and a reset accumulator S1. The first input terminal of the third AND gate A3 is connected to the power flip indication signal, and the second input terminal of the third AND gate A3 is connected to the power oscillation counting enable signal.
[0077] The first input terminal of the reset accumulator S1 is used to connect the accumulated number, the second input terminal Run of the reset accumulator S1 is connected to the output terminal of the third AND gate A3, and the output terminal of the reset accumulator S1 is used to output the number of power oscillations. Among them, the accumulated number is 1. The reset accumulator S1 is used to automatically accumulate the accumulated number 1 of the first input terminal once when the second input terminal Run is true. That is, whenever the second input terminal Run is true, 1 is automatically accumulated once to complete the counting.
[0078] The working principle of the circuit is: when the power flip indication signal is true and the power oscillation count enable signal is true, the reset accumulator S1 performs an accumulation count to count the number of oscillations of the input signal.
[0079] The power oscillation alarm circuit 80 includes: a third high limit monitor G3 and a first RS trigger S2. The input end of the third high limit monitor G3 is connected to the power oscillation times, the output end of the third high limit monitor G3 is connected to the set end of the first RS trigger S2, and the output end of the first RS trigger S2 is used to output a power oscillation alarm signal.
[0080] The third high limit monitor G3 is used to output true when the input value of the third high limit monitor G3 is greater than the second threshold value, and false when the input value of the third high limit monitor G3 is less than or equal to the second threshold value.
[0081] The working principle of the circuit is: when the number of power oscillations is greater than the second threshold, the output of the first RS trigger S2 is true, and a power oscillation alarm signal is output.
[0082] The power oscillation detection circuit further includes: a reset circuit 40 .
[0083] The reset circuit 40 is connected to the power oscillation counting circuit 70 and the power oscillation alarm circuit 80 . The reset circuit 40 is used to output a reset indication signal and reset the power oscillation counting circuit 70 and the power oscillation alarm circuit 80 .
[0084] The reset circuit 40 includes a reset keyboard K1 and a second pulse generator P2.
[0085] The output end of the reset keyboard K1 is connected to the input end of the second pulse generator P2, and the output end of the second pulse generator P2 is connected to the reset end of the reset accumulator S1 of the power oscillation counting circuit 70 and the reset end of the first RS trigger S2 of the power oscillation alarm circuit 80, for outputting a reset indication signal.
[0086] The working principle of the circuit is: when the reset keyboard K1 is manually pressed, the second pulse generator P2 outputs a high level to reset the reset accumulator S1, reset the reset accumulator S1, and simultaneously reset the first RS trigger S2 to reset / turn off the power oscillation alarm signal.
[0087] Figure 4 FIG. 1 is a schematic diagram of a power oscillation period detection circuit according to an exemplary embodiment. Figure 4 As shown, an embodiment of the present disclosure provides a power oscillation period detection circuit, which includes: a power oscillation period counting circuit 100, a power oscillation period output circuit 110 and a power oscillation period counting output control circuit 120, the power oscillation period counting circuit 100 is connected to the power oscillation period output circuit 110, and the power oscillation period counting output control circuit 120 is respectively connected to the power oscillation period counting circuit 100 and the power oscillation period output circuit 110.
[0088] The power oscillation cycle counting circuit 100 is used to count the cycle duration of the power oscillation signal according to the control of the power oscillation cycle counting output control circuit 120 .
[0089] The power oscillation period output circuit 110 is used to calculate the period duration of the power oscillation signal according to the output count of the power oscillation period counting circuit 100 , and output the calculated result of the period duration of the power oscillation signal according to the control of the power oscillation period counting output control circuit 120 .
[0090] The power oscillation period counting and output control circuit 120 is used to perform counting control on the power oscillation period counting circuit 100 and to perform output control on the power oscillation period output circuit 110 .
[0091] The power oscillation cycle counting circuit 100 includes: a third condition selector T3, a second multiplier C2 and an adder H1.
[0092] The first input terminal of the third conditional selector T3 is 1, the second input terminal of the third conditional selector T3 is zero, and the output terminal of the third conditional selector T3 is connected to the first input terminal of the second multiplier C2.
[0093] The second input terminal of the second multiplier C2 is connected to the output terminal of the adder H1 , and the output terminal of the second multiplier C2 is connected to the first input terminal of the adder H1 .
[0094] The second input terminal of the adder H1 is connected to the output terminal of the third condition selector T3 , and the output terminal of the adder H1 is used to output the counting result of the power oscillation period counting circuit 100 .
[0095] The output terminal of the second RS flip-flop S3 of the power oscillation cycle counting output control circuit 120 is connected to the condition input terminal of the third condition selector T3 of the power oscillation cycle counting circuit 100 .
[0096] The set end of the second RS flip-flop S3 is used for the power maximum flip indication of the input power oscillation signal, and the reset end of the second RS flip-flop S3 is used for the power minimum flip indication of the input power oscillation signal. Wherein, the power maximum flip indication is true, indicating that the input power oscillation signal flips at the maximum value, and the power minimum flip indication is true, indicating that the input power oscillation signal flips at the minimum value.
[0097] Among them, the third conditional selector T3 is used to output the value of the first input terminal of the third conditional selector T3 when the output of the second RS trigger S3 of the power oscillation period count output control circuit 120 is true, and to output the value of the second input terminal of the third conditional selector T3 when the output of the second RS trigger S3 of the power oscillation period count output control circuit 120 is false.
[0098] The working principle of the power oscillation cycle counting circuit 100 and the power oscillation cycle counting output control circuit 120 is: when the power maximum value flip indication is true, the cumulative counting starts, and when the power minimum value flip indication is true, the cumulative counting stops. Among them, the cumulative counting is the number of clock cycles that the input power oscillation signal of half a cycle continues, and the clock cycle is the clock cycle of the power oscillation cycle detection circuit. In this way, it can be obtained how many clock cycles the input power oscillation signal of half a cycle continues.
[0099] The power oscillation period output circuit 110 includes: a third delayer L3, a fourth condition selector T4 and a third multiplier C3.
[0100] The input end of the third delayer L3 is connected to the output end of the power oscillation cycle counting circuit 100, the output end of the third delayer L3 is connected to the first input end of the fourth condition selector T4, and the second input end of the fourth condition selector T4 is connected to the output end of the fourth condition selector T4.
[0101] The first input end of the third multiplier C3 is connected to the output end of the fourth condition selector T4, the second input end of the third multiplier C3 is used to input twice the value of the clock period of the power oscillation period detection circuit, and the output end of the third multiplier C3 is used to output the power oscillation period. Exemplarily, twice the value of the clock period of the power oscillation period detection circuit can be 0.2 seconds.
[0102] The power oscillation cycle counting output control circuit 120 includes: a second RS flip-flop S3, a NOT gate N1 and a third pulse generator P3.
[0103] The set end of the second RS trigger S3 is used for the power maximum flip indication of the input power oscillation signal, the reset end of the second RS trigger S3 is used for the power minimum flip indication of the input power oscillation signal, and the output end of the second RS trigger S3 is connected to the conditional input end of the third conditional selector T3 of the power oscillation period counting circuit 100.
[0104] The input end of the NOT gate N1 is connected to the output end of the second RS flip-flop S3 , the output end of the NOT gate N1 is connected to the input end of the third pulse generator P3 , and the output end of the third pulse generator P3 is connected to the conditional input end of the fourth conditional selector T4 of the power oscillation period output circuit 110 .
[0105] The third pulse generator P3 is used for, when the input terminal of the third pulse generator P3 is true, the output of the third pulse generator P3 is true. When the input terminal of the third pulse generator P3 is false, the output of the third pulse generator P3 is false.
[0106] The fourth conditional selector T4 is used to output the value of the first input terminal of the fourth conditional selector T4 when the output of the third pulse generator P3 of the power oscillation period count output control circuit 120 is true, and to output the value of the second input terminal of the fourth conditional selector T4 when the output of the third pulse generator P3 of the power oscillation period count output control circuit 120 is false.
[0107] The working principle of the power oscillation cycle output circuit 110 and the power oscillation cycle counting output control circuit 120 is as follows: when the power minimum value flip indication is true, the output of the second RS trigger S3 is false, and the output is true after passing through the NOT gate N1 and the third pulse generator P3, and the conditional input end of the fourth condition selector T4 is true, and the fourth condition selector T4 outputs the value of the first input end, that is, the count value output by the power oscillation cycle counting circuit 100 and the value output by the third delayer L3, which represents the number of clock cycles of the input power oscillation signal of half a cycle. This value is then multiplied by the third multiplier C3 with twice the value of the clock cycle of the power oscillation cycle detection circuit to obtain the duration of a full cycle of the input power oscillation signal, that is, the power oscillation cycle time.
[0108] The power oscillation period output circuit 110 further includes: a fifth condition selector T5.
[0109] The first input end of the fifth conditional selector T5 is connected to the output end of the third multiplier C3, the second input end of the fifth conditional selector T5 is zero, the conditional input end of the fifth conditional selector T5 is used to input the power flip indication of the power oscillation signal, and the output end of the fifth conditional selector T5 is used to output the power oscillation period.
[0110] The fifth condition selector T5 is used to output the value of the first input terminal of the fifth condition selector T5 when the power oscillation alarm is true. When the power oscillation alarm is false, the fifth condition selector T5 is used to output the value of the second input terminal of the fifth condition selector T5. The power oscillation alarm being true indicates that the input power oscillation signal has power oscillation.
[0111] This circuit indicates that the calculation result of the third multiplier C3, namely the power oscillation cycle time, is output only when the power oscillation alarm is true.
[0112] Figure 5 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 5 As shown, an embodiment of the present disclosure provides an electronic device 500, including the power flip detection circuit, the power oscillation detection circuit and the power oscillation period detection circuit described in any of the above embodiments. The electronic device 500 may be a DCS, and the electronic device 500 may include: a processor 501, a memory 502. The electronic device 500 may also include a multimedia component 503, an input / output (I / O) interface 504, and one or more of a communication component 505.
[0113] The processor 501 is used to control the overall operation of the electronic device 500, and the memory 502 is used to store various types of data to support the operation of the electronic device 500. These data may include, for example, instructions for any application or method used to operate on the electronic device 500, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 502 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 503 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 502 or sent through the communication component 505. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 504 provides an interface between the processor 501 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 505 is used for wired or wireless communication between the electronic device 500 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 505 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0114] In an exemplary embodiment, the electronic device 500 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components.
[0115] In another exemplary embodiment, a computer-readable storage medium including program instructions is further provided. For example, the computer-readable storage medium may be the above-mentioned memory 502 including program instructions, and the above-mentioned program instructions may be executed by the processor 501 of the electronic device 500 .
[0116] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0117] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0118] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A power reversal detection circuit, characterized in that: include: A first differential circuit, a second differential circuit, a power maximum value flip indication circuit, a power minimum value flip indication circuit and a power flip indication circuit; The first differential circuit is used to input a power oscillation signal and obtain a difference between a first amplitude value and a second amplitude value of the power oscillation signal; The second differential circuit is connected to the first differential circuit, and is used to obtain the difference between the second amplitude value and the third amplitude value of the power oscillation signal, the first amplitude value, the second amplitude value and the third amplitude value are amplitude values of the power oscillation signal at three adjacent moments, wherein the first moment corresponding to the first amplitude value is greater than the second moment corresponding to the second amplitude value, and the second moment corresponding to the second amplitude value is greater than the third moment corresponding to the third amplitude value; The power maximum value reversal indication circuit is connected to the second differential circuit, and is used for obtaining a power maximum value reversal indication of the power oscillation signal according to an output of the second differential circuit; The power minimum value reversal indication circuit is connected to the second differential circuit, and is used to obtain a power minimum value reversal indication of the power oscillation signal according to an output of the second differential circuit; The power reversal indication circuit is respectively connected to the first differential circuit, the second differential circuit, the power maximum reversal indication circuit and the power minimum reversal indication circuit, and is used to obtain the power reversal indication of the power oscillation signal.
2. The power reversal detection circuit according to claim 1, characterized in that: The first differential circuit comprises: a first delay device and a first subtractor; The input end of the first delayer is used to input the power oscillation signal, and the output end of the first delayer is connected to the second input end of the first subtractor; The first input terminal of the first subtractor is connected to the input terminal of the first delayer.
3. The power reversal detection circuit according to claim 2, characterized in that: The delay time of the first delay device is the difference between the first moment and the second moment.
4. The power reversal detection circuit according to claim 1, characterized in that: The second differential circuit comprises: a second delayer and a second subtractor; The input end of the second delayer is connected to the output end of the first delayer of the first differential circuit, and the output end of the second delayer is connected to the second input end of the second subtractor; The first input terminal of the second subtractor is connected to the input terminal of the second delayer.
5. The power reversal detection circuit according to claim 4, characterized in that: The delay time of the second delayer is the difference between the second moment and the third moment.
6. The power reversal detection circuit according to claim 1, characterized in that: The power maximum value reversal indication circuit comprises: a high limit monitor and a first AND gate; The input end of the high limit monitor is connected to the output end of the second subtractor of the second differential circuit; the output end of the high limit monitor is connected to the first input end of the first AND gate, and the output end of the first AND gate is used to output the power maximum value reversal indication.
7. The power reversal detection circuit according to claim 6, characterized in that: The high limit monitor is used for, when the input value of the high limit monitor is greater than zero, the output of the high limit monitor is true; In the event that the input value of the high limit monitor is less than or equal to zero, the output of the high limit monitor is false.
8. The power reversal detection circuit according to claim 1, characterized in that: The power minimum value reversal indication circuit comprises: a first lower limit monitor and a second AND gate; The input end of the first lower limit monitor is connected to the output end of the second subtractor of the second differential circuit; the output end of the first lower limit monitor is connected to the first input end of the second AND gate, and the output end of the second AND gate is used to output the power minimum value reversal indication.
9. The power reversal detection circuit according to claim 1, characterized in that: The power reversal indication circuit comprises: a multiplier, a second lower limit monitor and a pulse generator; The first input end of the multiplier is connected to the output end of the first subtractor of the first differential circuit, and the second input end of the multiplier is connected to the output end of the second subtractor of the second differential circuit; The input end of the second lower limit monitor is connected to the output end of the multiplier, the output end of the second lower limit monitor is connected to the input end of the pulse generator, and the output end of the pulse generator is respectively connected to the second input end of the first AND gate of the power maximum value flip indication circuit and the second input end of the second AND gate of the power minimum value flip indication circuit, for outputting the power flip indication.
10. The power reversal detection circuit according to claim 8 or 9, characterized in that: The lower limit monitor is used for, when the input value of the lower limit monitor is less than zero, the output of the lower limit monitor is true; In the event that the input value of the low limit monitor is greater than or equal to zero, the output of the low limit monitor is false.
11. An electronic device, characterized in that: The invention comprises the power flip detection circuit according to any one of claims 1 to 10.
