CN107367633B - Zero-cross processing method, device and equipment for voltage zero-crossing detection circuit - Google Patents
Zero-cross processing method, device and equipment for voltage zero-crossing detection circuit Download PDFInfo
- Publication number
- CN107367633B CN107367633B CN201610312334.1A CN201610312334A CN107367633B CN 107367633 B CN107367633 B CN 107367633B CN 201610312334 A CN201610312334 A CN 201610312334A CN 107367633 B CN107367633 B CN 107367633B
- Authority
- CN
- China
- Prior art keywords
- along
- type
- triggering
- value
- timer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/175—Indicating the instants of passage of current or voltage through a given value, e.g. passage through zero
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
The application proposes a kind of zero-cross processing method, device and equipment for voltage zero-crossing detection circuit, wherein this method comprises: obtaining current triggering along type after interrupt response;Judge whether be greater than or equal to the first preset value along the clocking value of the first corresponding timer along the consistent triggering of type with the current triggering, and judges whether be greater than or equal to the second preset value along the clocking value of the second corresponding timer along the opposite triggering of type with the current triggering;If the clocking value of first timer be greater than or equal to first it is preset value and second timer clocking value be greater than or equal to the second preset value, be arranged trigger next time along type with it is described it is current trigger it is opposite along type.By the zero-cross processing method, device and equipment provided by the present application for voltage zero-crossing detection circuit, the filtering to zero passage down trigger edge is realized, the accuracy and reliability of zero passage interruption is improved, improves the reliability of system.
Description
Technical field
This application involves electronic technology field more particularly to a kind of zero passage processing sides for voltage zero-crossing detection circuit
Method, device and equipment.
Background technique
In the circuit for detecting voltage over zero using comparator, an input of the voltage to be detected as comparator,
When its zero crossing arrives, that is, the overturning of trigger comparator output level is understood, to trigger zero passage interruption.
But the level of the non-inverting input terminal of comparator differs 0.01V or more with the reference level of inverting input terminal, compares
Device output will be overturn, and export high level or low level.In practical applications, to be checked since circuit can have certain interference
The voltage of survey has fluctuation in zero crossing often, while 0.01V is the value of a variable quantity very little, is easy to cause the output of comparator
It is unstable, and then it is unstable to cause zero passage to judge, Yi Yinqi zero passage down trigger mistake, so that there are security risks for circuit.
Summary of the invention
The application is intended to solve at least some of the technical problems in related technologies.
For this purpose, first purpose of the application is to propose a kind of zero passage processing side for voltage zero-crossing detection circuit
Method improves the accuracy and reliability of zero passage interruption the method achieve the filtering to zero passage down trigger edge, improves and is
The reliability of system.
Second purpose of the application is to propose a kind of zero passage processing unit for voltage zero-crossing detection circuit.
The third purpose of the application is to propose a kind of equipment.
In order to achieve the above object, the application first aspect embodiment proposes a kind of zero passage for voltage zero-crossing detection circuit
Processing method, comprising:
After interrupt response, current triggering is obtained along type;
Judgement with it is described it is current trigger along the consistent triggering of type along the first corresponding timer clocking value whether
More than or equal to the first preset value, and judge current to trigger along the opposite triggering of type along the second corresponding timing with described
Whether the clocking value of device is greater than or equal to the second preset value;
If the clocking value of first timer is greater than or equal to the timing of the first preset value and second timer
Value be greater than or equal to the second preset value, then be arranged trigger next time along type with it is described it is current trigger it is opposite along type.
The zero-cross processing method for voltage zero-crossing detection circuit of the embodiment of the present application, it is first after response zero passage is interrupted
The type on current triggering edge is first obtained, then judges and currently triggers along the consistent triggering of type along corresponding first timer
Whether clocking value is greater than or equal to the first pre- preset value, and counts along the opposite triggering of type along corresponding second with current triggering
When device clocking value whether be greater than or equal to the second preset value, if so, setting is triggered along type and current triggering next time
It is opposite along type.Hereby it is achieved that the filtering to zero passage down trigger edge, the accuracy of zero passage interrupt response and reliable is improved
Property, improve the reliability of system.
In order to achieve the above object, the application second aspect embodiment proposes a kind of zero passage for voltage zero-crossing detection circuit
Processing unit, comprising:
Module is obtained, for after interrupt response, obtaining current triggering along type;
First judgment module, by judge with the current triggering along the consistent triggering of type based on corresponding first
When device clocking value whether be greater than or equal to the first preset value, and judge current to trigger along the opposite triggering edge of type with described
Whether the clocking value of the second corresponding timer is greater than or equal to the second preset value;
First processing module, if for first timer clocking value be greater than or equal to first it is preset value and it is described
The clocking value of second timer is greater than or equal to the second preset value, then is arranged and is triggered next time along type and the current triggering
It is opposite along type.
The zero passage processing unit for voltage zero-crossing detection circuit of the embodiment of the present application, it is first after response zero passage is interrupted
The type on current triggering edge is first obtained, then judges and currently triggers along the consistent triggering of type along corresponding first timer
Whether clocking value is greater than or equal to the first pre- preset value, and counts along the opposite triggering of type along corresponding second with current triggering
When device clocking value whether be greater than or equal to the second preset value, if so, setting is triggered along type and current triggering next time
It is opposite along type.Hereby it is achieved that the filtering to zero passage down trigger edge, the accuracy of zero passage interrupt response and reliable is improved
Property, improve the reliability of system.
In order to achieve the above object, the application third aspect embodiment proposes a kind of equipment, comprising: above-mentioned to be used for voltage zero-cross
The zero passage processing unit and voltage zero-crossing detection circuit of detection circuit.
The equipment of the embodiment of the present application obtains the type on current triggering edge after response zero passage is interrupted first, then judge with
Current triggering is preset along the consistent triggering of type along whether the clocking value of corresponding first timer is greater than or equal to first
Value, and whether be greater than or equal to second along the clocking value of corresponding second timer along the opposite triggering of type with current triggering
Preset value, if so, setting is triggered along type and currently triggering is opposite along type next time.Hereby it is achieved that in zero passage
The filtering on disconnected triggering edge, improves the accuracy and reliability of zero passage interrupt response, improves the reliability of system.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the process signal of the zero-cross processing method for voltage zero-crossing detection circuit of the application one embodiment
Figure;
Fig. 2 is the voltage zero-crossing detection circuit structural schematic diagram of the embodiment of the present application;
Fig. 3 (a) is the voltage waveform view of alternating current;
Fig. 3 (b) is comparator theory output voltage waveforms schematic diagram;
Fig. 3 (c) is comparator reality output schematic diagram;
Fig. 3 (d) is the voltage waveform view after rectification;
Fig. 4 is the process signal of the zero-cross processing method for voltage zero-crossing detection circuit of the application another embodiment
Figure;
Fig. 5 is the structural representation of the zero passage processing unit for voltage zero-crossing detection circuit of the application one embodiment
Figure;
Fig. 6 is the structural representation of the zero passage processing unit for voltage zero-crossing detection circuit of the application another embodiment
Figure;
Fig. 7 is the structural schematic diagram of the equipment of the application one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
Below with reference to the accompanying drawings the zero-cross processing method for voltage zero-crossing detection circuit, device of the embodiment of the present application are described
And equipment.
Fig. 1 is the process signal of the zero-cross processing method for voltage zero-crossing detection circuit of the application one embodiment
Figure.
As shown in Figure 1, the zero-cross processing method for being used for voltage zero-crossing detection circuit includes:
Step 101, after interrupt response, current triggering is obtained along type.
Specifically, the zero-cross processing method provided in this embodiment for voltage zero-crossing detection circuit, can be configured in use
In the zero passage processing unit of voltage zero-crossing detection circuit, wherein the type on current triggering edge is stored in advance in for voltage
In the zero passage processing unit of zero cross detection circuit, and updated after each zero passage interrupt response.
It is right first for convenience of the explanation to the zero-cross processing method provided in this embodiment for voltage zero-crossing detection circuit
Voltage zero-crossing detection circuit provided in this embodiment is illustrated.
Fig. 2 is voltage zero-crossing detection circuit structural schematic diagram provided by the embodiments of the present application.As shown in Fig. 2, diode D1
It is commercial power rectification diode with D2, resistance R1, R2 and C1 are bleeder circuit, the voltage after diode rectification, through resistance R1 and R2
After partial pressure, export to the positive input of comparator CMP, the reverse input end of comparator meets reference level Vref, comparator it is defeated
Outlet is connected to power supply by resistance R3, so that comparator is allow to export high level, when the voltage zero-cross of positive input,
Comparator output level overturning, to trigger zero passage interruption.At zero passage provided by the present application for voltage zero-crossing detection circuit
Device is managed, is connect with the output end of comparator.
It is understood that line voltage can also export after resistance R1 and R2 partial pressure to the reversed input of comparator
End, the positive input of comparator connects reference level at this time, and the present embodiment does not limit this.
Step 102, judge and the current meter triggered along the consistent triggering of type along the first corresponding timer
Whether duration is greater than or equal to the first preset value, and judges current to trigger along the opposite triggering of type along corresponding with described
Whether the clocking value of the second timer is greater than or equal to the second preset value.
Step 103, if the clocking value of first timer is greater than or equal to the first preset value and second timing
The clocking value of device is greater than or equal to the second preset value, then is arranged and is triggered next time along type with the current triggering along type phase
Instead.
Specifically, Fig. 3 (a) is the voltage waveform view of alternating current;Fig. 3 (b) is that comparator theory output voltage waveforms show
It is intended to;Fig. 3 (c) is comparator reality output schematic diagram.
As shown in Figure 3, in voltage zero-cross, the voltage of comparator positive input, which is likely to be, changes from positive to 0, it is also possible to
It is to become just from 0, thus trigger comparator output switching activity, i.e., triggering is along including two kinds: rising edge or failing edge.
Wherein, the first preset value can be positive number more than or equal to 7, the second preset value can for more than or equal to
1.8 positive number.
Specifically, at the voltage zero-cross moment, the output of comparator would generally include pulse train electricity as shown in Fig. 3 (c)
It is flat, if overturning all triggers a zero passage interruption every time, zero passage judgement inaccuracy will be made.
And if rectification circuit is using diode rectification shown in Fig. 2, for China's voltage, the frequency of alternating current
For 50HZ one-way communication electricity such as Fig. 3 (d), Fig. 3 of 100HZ are become using the voltage after rectifier circuit rectifies shown in Fig. 2
It (d) is the voltage waveform view after rectification, as shown in Fig. 3 (d), i.e., primary every 10ms voltage zero-cross, corresponding comparator
Output switching activity, i.e., it is identical overturning edge period be 10ms.And considering comparator is to have 0.01 volt between two input terminal
When special (V) voltage difference, it can just overturn, and before and after comparator input voltage zero passage, ratio may will lead to due to the fluctuation of voltage
Compared with the disturbing pulse level that device exports a string, at this point, two triggering edges in the same direction can be set in order to filter the disturbing pulse level
Time interval be greater than or equal to first preset time interval, such as 9ms, 9.1ms or 9.5ms etc..
And for the U.S., the frequency of alternating current is 60HZ becomes 120HZ after above-mentioned circuit rectifies shown in Fig. 2
One-way communication electricity, i.e., primary every 8.3ms voltage zero-cross, the first preset value can be for 7ms, 7.5ms or 8ms etc. at this time
Deng.
To sum up, the size of the first preset value, it is related with the frequency of alternating current.First preset value is more than or equal to 7
Positive number.
It is understood that if first it is preset value be positive integer, the first timer can be counter, the time every
1ms, clocking value add 1.
When determine triggering along corresponding timer clocking value be greater than or equal to the first preset value after, then judge with currently
Trigger the triggering edge opposite along type, the value of corresponding second timer, if be greater than or equal to the second preset value.
For example, from the figure 3, it may be seen that under normal condition, the adjacent overturning twice of comparator corresponds to different types of touching
Edge is sent out, is that the second timer can also be set since voltage fluctuation generates to prevent current triggering edge, it is current to judge
Whether triggering is along legal.
And in general, the time interval of two legal corresponding comparator output switching activities of opposite triggering edge triggering, minimum
1.8ms or so, therefore, it is positive number more than or equal to 1.8 that the second preset value, which can be set, for example, for 1.8ms, 1.9ms or
Person 2ms etc..
Specifically, can determine this when the clocking value for determining the first timer and the second timer is all met the requirements
It is legal that zero passage is interrupted, and setting is triggered next time along type and currently triggering is opposite along type.For example, if currently triggering edge
Type is failing edge, then be arranged trigger next time along type be rising edge.
The zero-cross processing method for voltage zero-crossing detection circuit of the embodiment of the present application, it is first after response zero passage is interrupted
The type on current triggering edge is first obtained, then judges and currently triggers along the consistent triggering of type along corresponding first timer
Whether clocking value is greater than or equal to the first pre- preset value, and counts along the opposite triggering of type along corresponding second with current triggering
When device clocking value whether be greater than or equal to the second preset value, if so, setting is triggered along type and current triggering next time
It is opposite along type.Hereby it is achieved that the filtering to zero passage down trigger edge, the accuracy of zero passage interrupt response and reliable is improved
Property, improve the reliability of system.
By above-mentioned analysis it is found that current triggering is stored in advance at the zero passage for voltage zero-crossing detection circuit along type
It manages in device, and be updated after each zero passage interrupt response.But when system powers on every time, pre-stored triggering
May be different along type from the triggering actually to arrive along type, thus there may be the case where triggering is along type error, be
The above problem is overcome, as shown in figure 4, the application implementation provides a kind of zero passage processing side for voltage zero-crossing detection circuit again
Method.
Fig. 4 is the process signal of the zero-cross processing method for voltage zero-crossing detection circuit of the application another embodiment
Figure.
As shown in figure 4, this is used for the zero-cross processing method of voltage zero-crossing detection circuit, comprising:
Step 201, after interrupt response, current triggering is obtained along type.
Step 202, judge and the current meter triggered along the consistent triggering of type along the first corresponding timer
Whether duration is greater than or equal to the first preset value, and judges current to trigger along the opposite triggering of type along corresponding with described
Whether the clocking value of the second timer is greater than or equal to the second preset value, if so, thening follow the steps 203, otherwise, executes step
211。
Step 203, setting triggers opposite along type along type and the current triggering next time.
Step 204, the clocking value of first timer is reset.
For example, if the first preset value is 9, the second preset value is 2.
When practical application, the zero passage processing unit for voltage zero-crossing detection circuit determines that current triggering edge is failing edge
When, then it can determine whether the clocking value of the first timer corresponding with failing edge is greater than or equal to 9 and rising edge corresponding second
Whether the value of timer is greater than or equal to 2, if so, the value of the first timer is reset, it is then that triggering is reversed along type, i.e.,
By triggering along rising edge is changed to, restart zero passage interruption.
When the output of comparator is overturn again, and triggering zero passage and interrupt, the triggering obtained at this time is rising edge along type,
Judge whether the value of corresponding second timer of rising edge is greater than or equal to 9 at this time, the value of corresponding first timer of failing edge
Whether it is greater than or equal to 2, and when meeting condition, the value of the second timer is reset, the type for triggering edge is changed by rising edge
For failing edge, and so on, come to triggering along being filtered.
It is understood that during system operation, the clocking value of the first timer and the second timer with when
Between variation becoming always, only in the corresponding triggering of each timer along triggering after a zero passage interrupts, the value of the timer
It is cleared, restarts timing.
It should be noted that preset triggering is along the possible mistake of type, thus corresponding since system is in initial power-on
The clocking value of timer may also mistake, thus, it is possible at system electrification initial stage to triggering along being corrected, for example, this example
In, by the way that the first counter is arranged, Lai Shixian is at the initial stage that powers on to triggering along the types corrective for carrying out third preset times.
Step 205, judge the count value of the first counter, if be greater than the preset value of third, if so, thening follow the steps
211, otherwise, execute step 206.
Wherein, the preset value of third can be set as needed, for example be 3,5 or 8 etc., wherein the preset value of third
For recording, comparator triggers edge continuously correct number.
Step 206, the count value of the first counter adds 1, and starts triggering along correction program.
For example, it if the preset value of third is 5, upon power-up of the system, after each zero passage interrupt response, first determines whether
Whether the count value of the first counter is greater than 5, if being not more than, then starting triggering is along correction program, and by the first counter
Count value adds 1.
Step 207, whether the output triggered next time described in judgement along type and comparator meets preset relationship, if
It is no, 208 are thened follow the steps, otherwise, executes step 210.
Step 208, by it is described trigger next time it is reversed along type.
Step 209, the clocking value of the clocking value of the first timer and the second timer is exchanged, and described first is counted
The count value of device is reset.
Wherein, preset relationship refers to, being triggered next time along type is rising edge, then the output of comparator is low level, under
Primary triggering is failing edge along type, then the output of comparator is high level.
Specifically, in the present embodiment, directly whether met along type by judging the output level of comparator with triggering pre-
If relationship, it is whether accurate along type come the triggering that judges determining.
For example, current triggering is failing edge along type, and the clocking value of the first timer corresponding with failing edge is
9, the clocking value of the second timer corresponding with rising edge is 2, then can set the type for triggering edge next time as rising edge, so
The count value for determining the first counter afterwards is 3, then when starting triggering along correction program, ratio corresponding with current failing edge triggering
Compared with device output should low level by judgement determine that the output of current comparator is low level, then can determine triggering along type standard
Really, so that end trigger is along correction program.
And if by judgement, determine current triggering along type error, then will trigger next time it is reversed along type, i.e., will be next
Secondary triggering is failing edge along Type Change, correspondingly, the clocking value of the first timer and the second timer is exchanged, and by first
The count value of counter is reset.
It is understood that in the embodiment of the present application, can comparator output switching activity for a period of time after, then under judging
Whether primary triggering meets preset relationship along the output of type and comparator.For example, after comparator output switching activity 1.5ms,
Judge to trigger next time again along whether the output of type and comparator meets preset relationship.
Step 210, triggering terminates along correction.
Step 211, zero passage interrupt response terminates.
The zero-cross processing method for voltage zero-crossing detection circuit of the embodiment of the present application, when initial power-on, in comparator
Output switching activity after, response triggering zero passage interrupt, first judge with currently trigger along corresponding first timer clocking value whether
More than or equal to the first preset value, and with current triggering along the opposite triggering of type along the clocking value of corresponding second timer
Whether the second preset value is greater than or equal to, if so, setting is triggered along type with the current triggering along type phase next time
Instead, while judging whether the count value of the first counter is greater than the preset value of third, if being not more than, start triggering along correction journey
Sequence carries out triggering along correction, and the count value of the first counter adds one, and works as determining to trigger next time along type and comparator
When preceding output is unsatisfactory for preset relation, will trigger next time it is reversed along type, and by the first timer and the second timer
Clocking value exchanges, and the count value of the first counter is reset.The filtering to zero passage down trigger edge is not only realized as a result, is improved
The accuracy and reliability of zero passage interrupt response, improves the reliability of system, and in system initial power-on, pass through touching
Hair is corrected processing along type along correction course, to triggering, further improves the accuracy and reliably of zero passage interrupt response
Property.
In order to realize above-described embodiment, the application also proposes a kind of zero passage processing dress for voltage zero-crossing detection circuit
It sets.
Fig. 5 is the structural representation of the zero passage processing unit for voltage zero-crossing detection circuit of the application one embodiment
Figure.
As shown in figure 5, this is used for the zero passage processing unit of voltage zero-crossing detection circuit, comprising:
Module 51 is obtained, for after interrupt response, obtaining current triggering along type;
First judgment module 52, for judge with the current triggering along the consistent triggering of type along corresponding first
Whether the clocking value of timer is greater than or equal to the first preset value, and judges current to trigger along the opposite triggering of type with described
Whether it is greater than or equal to the second preset value along the clocking value of the second corresponding timer;
First processing module 53, if the clocking value for first timer is greater than or equal to the first preset value and institute
The clocking value for stating the second timer is greater than or equal to the second preset value, then is arranged and is triggered next time along type and the current touching
It sends out opposite along type.
Wherein, the first preset value can be positive number more than or equal to 7, the second preset value can for more than or equal to
1.8 positive number.
It should be noted that the aforementioned explanation to the zero-cross processing method embodiment for voltage zero-crossing detection circuit
It is also applied for the zero passage processing unit for voltage zero-crossing detection circuit of the embodiment, details are not described herein again.
The zero passage processing unit for voltage zero-crossing detection circuit of the embodiment of the present application, it is first after response zero passage is interrupted
The type on current triggering edge is first obtained, then judges and currently triggers along the consistent triggering of type along corresponding first timer
Whether clocking value is greater than or equal to the first pre- preset value, and counts along the opposite triggering of type along corresponding second with current triggering
When device clocking value whether be greater than or equal to the second preset value, if so, setting is triggered along type and current triggering next time
It is opposite along type.Hereby it is achieved that the filtering to zero passage down trigger edge, the accuracy of zero passage interrupt response and reliable is improved
Property, improve the reliability of system.
Fig. 6 is the structural representation of the zero passage processing unit for voltage zero-crossing detection circuit of the application another embodiment
Figure.
As shown in fig. 6, this is used for the zero passage processing unit of voltage zero-crossing detection circuit on the basis of above-mentioned shown in fig. 5,
Further include:
Second judgment module 61, for judging the count value of the first counter, if be greater than the preset value of third;
Second processing module 62 if the count value of the first counter adds 1 for being not more than, and starts triggering along correction journey
Sequence.
Third judgment module 63, for judge it is described trigger next time whether meet along the output of type and comparator it is default
Relationship;
Third processing module 64, for if it is not, then by it is described trigger next time it is reversed along type.
Further, the third processing module 64, is also used to:
The clocking value of the clocking value of first timer and the second timer is exchanged, and by the counting of first counter
Value is reset.
Further, above-mentioned first processing module 53, is also used to:
The clocking value of first timer is reset.
It should be noted that the aforementioned explanation to the zero-cross processing method embodiment for voltage zero-crossing detection circuit
It is also applied for the zero passage processing unit for voltage zero-crossing detection circuit of the embodiment, details are not described herein again.
The zero passage processing unit for voltage zero-crossing detection circuit of the embodiment of the present application, when initial power-on, in comparator
Output switching activity after, response zero passage is interrupted, and first judges whether be greater than along the clocking value of corresponding first timer with currently triggering
Or be equal to the first preset value, and with current triggering along the opposite triggering of type along corresponding second timer clocking value whether
More than or equal to the second preset value, if so, setting is triggered along type and current triggering along type on the contrary, judging the next time
Whether the count value of one counter is greater than the preset value of third, if being not more than, starts triggering along correction program, carries out triggering edge
Correction, the count value of the first counter adds one, and is discontented with determining to trigger next time along type and the current output of comparator
It when sufficient preset relation, will trigger reversed along type, and the clocking value of the first timer and the second timer be exchanged, the next time
The count value of one counter is reset.The filtering to zero passage down trigger edge is not only realized as a result, improves zero passage interrupt response
Accuracy and reliability, improve the reliability of system, and in system initial power-on, by triggering along correction course,
Processing is corrected along type to triggering, further improves the accuracy and viewability of zero passage interrupt response.
The zero passage processing unit for voltage zero-crossing detection circuit provided based on the above embodiment, the application another further aspect
A kind of equipment is provided.
Fig. 7 is the device structure schematic diagram of the application one embodiment.As shown in fig. 7, the equipment 70, including it is used for voltage
The zero passage processing unit 71 and voltage zero-crossing detection circuit 72 of zero cross detection circuit.
Wherein, it can be provided using the above embodiment of the present invention for the zero passage processing unit of voltage zero-crossing detection circuit
Zero passage processing unit for voltage zero-crossing detection circuit.
It should be noted that the aforementioned explanation to the zero passage processing device embodiment for voltage zero-crossing detection circuit
The equipment for being also applied for the embodiment, details are not described herein again.
The equipment of the embodiment of the present application is interrupted for the zero passage processing unit of voltage zero-crossing detection circuit in response zero passage
Afterwards, the type on current triggering edge is obtained first, then judges to be counted along corresponding first along the consistent triggering of type with currently triggering
When device clocking value whether be greater than or equal to the first pre- preset value, and with current triggering along the opposite triggering of type along corresponding
Whether the clocking value of the second timer is greater than or equal to the second preset value, if so, setting trigger next time along type with work as
Preceding triggering is opposite along type.Hereby it is achieved that the filtering to zero passage down trigger edge, improves the accuracy of zero passage interrupt response
And reliability, improve the reliability of system.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means that specific features, structure or feature described in conjunction with this embodiment or example include
In at least one embodiment or example of the application.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application
Type.
Claims (7)
1. a kind of zero-cross processing method for voltage zero-crossing detection circuit characterized by comprising
After interrupt response, current triggering is obtained along type;
Whether judgement is greater than along the consistent triggering of type along the clocking value of the first corresponding timer with the current triggering
Or it is equal to the first preset value, and judge current to trigger along the opposite triggering of type along the second corresponding timer with described
Whether clocking value is greater than or equal to the second preset value;
If the clocking value of first timer is greater than or equal to the first preset value and the clocking value of second timer is big
In or equal to the second preset value, then it is arranged and is triggered next time along type and the current triggering along type on the contrary, and will be described
The clocking value of first timer is reset.
2. the method according to claim 1, wherein further include:
Judge the count value of the first counter, if be greater than the preset value of third;
If being not more than, the count value of the first counter adds 1, and starts triggering along correction program;
Whether the output triggered next time described in judgement along type and comparator meets preset relationship;
If it is not, then by it is described trigger next time it is reversed along type;
Wherein, preset relationship are as follows: described triggered next time along type is rising edge, then the output of the comparator is low electricity
Flat, described triggered next time along type is failing edge, then the output of the comparator is high level.
3. according to the method described in claim 2, it is characterized in that, it is described by it is described trigger next time along type it is reversed after,
Further include:
The clocking value of the clocking value of first timer and the second timer is exchanged, and the count value of first counter is clear
Zero.
4. a kind of zero passage processing unit for voltage zero-crossing detection circuit characterized by comprising
Module is obtained, for after interrupt response, obtaining current triggering along type;
First judgment module, for judge with the current triggering along the consistent triggering of type along the first corresponding timer
Clocking value whether be greater than or equal to the first preset value, and judge with the current triggering along the opposite triggering of type along it is right
Whether the clocking value for the second timer answered is greater than or equal to the second preset value;
First processing module, if the clocking value for first timer is greater than or equal to the first preset value and described second
The clocking value of timer is greater than or equal to the second preset value, then is arranged and is triggered next time along type and the current triggering along class
Type is on the contrary, and reset the clocking value of first timer.
5. device according to claim 4, which is characterized in that further include:
Second judgment module, for judging the count value of the first counter, if be greater than the preset value of third;
Second processing module if the count value of the first counter adds 1 for being not more than, and starts triggering along correction program;
Third judgment module, for judging described trigger along whether the output of type and comparator meets preset pass next time
System;
Third processing module, for if it is not, then by it is described trigger next time it is reversed along type;
Wherein, preset relationship are as follows: described triggered next time along type is rising edge, then the output of the comparator is low electricity
Flat, described triggered next time along type is failing edge, then the output of the comparator is high level.
6. device according to claim 5, which is characterized in that the third processing module is also used to:
The clocking value of the clocking value of first timer and the second timer is exchanged, and the count value of first counter is clear
Zero.
7. a kind of equipment, which is characterized in that including as described in claim 4 to 6 is any for voltage zero-crossing detection circuit
Zero passage processing unit and voltage zero-crossing detection circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610312334.1A CN107367633B (en) | 2016-05-11 | 2016-05-11 | Zero-cross processing method, device and equipment for voltage zero-crossing detection circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610312334.1A CN107367633B (en) | 2016-05-11 | 2016-05-11 | Zero-cross processing method, device and equipment for voltage zero-crossing detection circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107367633A CN107367633A (en) | 2017-11-21 |
CN107367633B true CN107367633B (en) | 2019-08-27 |
Family
ID=60304038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610312334.1A Active CN107367633B (en) | 2016-05-11 | 2016-05-11 | Zero-cross processing method, device and equipment for voltage zero-crossing detection circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107367633B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110376424B (en) * | 2018-04-12 | 2021-05-25 | 佛山市顺德区美的电热电器制造有限公司 | Electromagnetic heating system and voltage zero-crossing signal processing method and device thereof |
CN109655659B (en) * | 2019-01-30 | 2021-09-28 | 上海艾为电子技术股份有限公司 | BEMF zero-crossing region detection method and system for LRA motor |
CN111366779A (en) * | 2020-04-24 | 2020-07-03 | 宁波奥克斯电气股份有限公司 | Voltage zero-crossing detection device and air conditioner |
CN112230127B (en) * | 2020-11-04 | 2024-03-19 | 百富计算机技术(深圳)有限公司 | Circuit interference detection method and device, terminal equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101303376A (en) * | 2008-05-26 | 2008-11-12 | 深圳和而泰智能控制股份有限公司 | Method and apparatus for compensating voltage zero-cross detection |
EP2037580A1 (en) * | 2006-07-03 | 2009-03-18 | Toshiba Kikai Kabushiki Kaisha | Digital filter device, phase detection device, position detection device, ad conversion device, zero cross detection device, and digital filter program |
CN102590598A (en) * | 2012-02-15 | 2012-07-18 | 浙江大学 | Method for predicting zero crossing point of ultrasonic signal based on multi-threshold comparison |
CN103499732A (en) * | 2013-09-29 | 2014-01-08 | 湘潭大学 | Bidirectional zero-cross detection circuit and method thereof |
CN104360144A (en) * | 2014-12-08 | 2015-02-18 | 广东美的环境电器制造有限公司 | Method for determining zero crossing point of alternating current signal and system for determining zero crossing point of alternating current signal |
CN104597314A (en) * | 2013-10-31 | 2015-05-06 | 博西华电器(江苏)有限公司 | Anti-interference method and device for zero-crossing point detection of household appliance and household appliance |
-
2016
- 2016-05-11 CN CN201610312334.1A patent/CN107367633B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2037580A1 (en) * | 2006-07-03 | 2009-03-18 | Toshiba Kikai Kabushiki Kaisha | Digital filter device, phase detection device, position detection device, ad conversion device, zero cross detection device, and digital filter program |
CN101303376A (en) * | 2008-05-26 | 2008-11-12 | 深圳和而泰智能控制股份有限公司 | Method and apparatus for compensating voltage zero-cross detection |
CN102590598A (en) * | 2012-02-15 | 2012-07-18 | 浙江大学 | Method for predicting zero crossing point of ultrasonic signal based on multi-threshold comparison |
CN103499732A (en) * | 2013-09-29 | 2014-01-08 | 湘潭大学 | Bidirectional zero-cross detection circuit and method thereof |
CN104597314A (en) * | 2013-10-31 | 2015-05-06 | 博西华电器(江苏)有限公司 | Anti-interference method and device for zero-crossing point detection of household appliance and household appliance |
CN104360144A (en) * | 2014-12-08 | 2015-02-18 | 广东美的环境电器制造有限公司 | Method for determining zero crossing point of alternating current signal and system for determining zero crossing point of alternating current signal |
Also Published As
Publication number | Publication date |
---|---|
CN107367633A (en) | 2017-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107367633B (en) | Zero-cross processing method, device and equipment for voltage zero-crossing detection circuit | |
CN204634072U (en) | The zero passage of electromagnetic heating system and breaker in middle pipe thereof opens checkout gear | |
CN107576930B (en) | power supply and relay status detection circuit and method | |
TWI519049B (en) | Over-current protection circuit and pulse width modulator having the same | |
CN104821806A (en) | Clock control device and control method thereof | |
CN104969507B (en) | Dither circuit for serial data transmission | |
US20130293242A1 (en) | Circuit Integrity Detection System for Detecting The Integrity of A Sensing Wire in Electrically Heated Textiles | |
US8140726B2 (en) | Single wire transmission interface and method for the same | |
CN105958433B (en) | A kind of detection of relay zero-crossing, calibration method and device | |
CN103995618A (en) | Method and device for adjusting firmware parameter value of terminal touch screen anti-interference filtering module | |
CN104237657B (en) | Default phase inputting detecting method for three-phase inputting equipment | |
US11397201B2 (en) | Circuit assembly and method for monitoring sinusoidal alternating voltage signals | |
CN103257272A (en) | Power failure detection circuit and detection method for alternating current (AC) power supply | |
CN204442724U (en) | The zero passage of electromagnetic heating system and breaker in middle pipe thereof opens checkout gear | |
CN203455136U (en) | Electric pressure cooker and fault detection device thereof | |
CN105306038A (en) | Capacitive sensing touch control key and key judging method thereof | |
JP6155935B2 (en) | Power supply | |
TW201622321A (en) | Method for lossless brown-in/brown-out and bleeding resistor removal circuit | |
JP2011166240A (en) | System and device for detecting capacitance | |
CN104049143A (en) | Commercial power detection device and detection method | |
US11402411B2 (en) | Switching arrangement and method for monitoring AC signals | |
TWI554017B (en) | Method for voltage detection by b-duty | |
CN108809299A (en) | signal frequency measuring system | |
US20220224319A1 (en) | Circuit arrangement and method for monitoring a signal formed by alternating voltage | |
CN109900954A (en) | Electromagnetic heating system and its voltage sampling method, device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |