CN108896813A - A kind of detection method of zero cross signal, system, device and computer storage medium - Google Patents
A kind of detection method of zero cross signal, system, device and computer storage medium Download PDFInfo
- Publication number
- CN108896813A CN108896813A CN201810720766.5A CN201810720766A CN108896813A CN 108896813 A CN108896813 A CN 108896813A CN 201810720766 A CN201810720766 A CN 201810720766A CN 108896813 A CN108896813 A CN 108896813A
- Authority
- CN
- China
- Prior art keywords
- zero cross
- cross signal
- timing
- timer
- signal
- 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.)
- Pending
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
Abstract
The embodiment of the invention discloses a kind of detection method of zero cross signal, the method includes:When obtaining zero cross signal, the acquisition function of zero cross signal is closed to interrupt acquisition zero cross signal;When the duration of the acquisition function of the closing zero cross signal reaches preset duration, the acquisition function of the zero cross signal is opened to regain zero cross signal.The embodiment of the invention also discloses a kind of detection system of zero cross signal, device and computer storage mediums.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of detection method of zero cross signal, system, device and calculating
Machine storage medium.
Background technique
By the available zero cross signal of the monitoring of zero cross detection circuit, zero cross signal can be used as silicon-controlled or relay
The control of device drives.The source of zero cross signal is supply frequency signal, and when occurring interference signal on power supply, zero cross signal holds very much
Vulnerable to the interference of power supply disturbance signal, cause silicon-controlled or relay etc. can not be just by the device that zero cross signal is driven
Often work, it is out of hand, cause product to occur abnormal.
Summary of the invention
To solve existing technical problem, an embodiment of the present invention is intended to provide a kind of detection method of zero cross signal,
Device and computer storage medium.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
The embodiment of the invention provides a kind of detection method of zero cross signal, the method includes:Believe when getting zero passage
Number when, close the acquisition function of zero cross signal to interrupt acquisition zero cross signal;When the acquisition function of closing the zero cross signal
When duration reaches preset duration, the acquisition function of the zero cross signal is opened to regain zero cross signal.
In above scheme, it is described close zero cross signal acquisition function when, the method also includes:Start timer;Institute
The duration for stating the acquisition function of closing zero cross signal reaches preset duration, including:The timing of the timer arrives.
In above scheme, the method also includes:The timing of the timer is set.
In above scheme, the timing of the setting timer, including:The frequency of the zero cross signal is obtained,
According to the timing of timer described in the set of frequency;
Wherein, the timing of the timer meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timer;f0For the frequency of the zero cross signal.
In above scheme, the timing of the timer then, the method also includes:Off Timer timing function
Energy.
The embodiment of the invention provides a kind of detection system of zero cross signal, the system comprises:
Signal detection module, for sending zero cross signal to control module;
Control module closes zero cross signal when for obtaining the zero cross signal of the signal detection module transmission
Function is obtained to interrupt acquisition zero cross signal;When the duration for the acquisition function of closing the zero cross signal reaches preset duration
When, the acquisition function of the zero cross signal is opened to regain zero cross signal.
In above scheme, the system also includes timers;The control module is also used to:When obtaining for closing zero cross signal
When taking function, start the timer;The control module is used for:When the timer timing then, described in unlatching
The acquisition function of zero cross signal is to regain zero cross signal.
In above scheme, the control module is also used to:The timing of the timer is set.
In above scheme, the control module is also used to:The frequency for obtaining the zero cross signal, according to the set of frequency
The timing of the timer;
Wherein, the timing of the timer meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timer;f0For the frequency of the zero cross signal.
In above scheme, the control module is also used to:When the timing of the timer arrives, Off Timer timing
Function.
The embodiment of the invention provides a kind of detection device of zero cross signal, described device includes:Acquiring unit and function
Control unit;Wherein, the acquiring unit is used for:Obtain zero cross signal;The function control unit is used for:When the acquisition is single
When member gets zero cross signal, the acquisition function of the zero cross signal of the acquiring unit is closed to interrupt the acquiring unit and obtain
Zero cross signal;When the closing duration of the acquisition function of the zero cross signal reaches preset duration, it is single to open the acquisition
The acquisition function of the zero cross signal of member is so that the acquiring unit regains zero cross signal.
In above scheme, described device further includes timing unit;The function control unit is also used to:List is obtained when closing
When the acquisition function of the zero cross signal of member, start the timing unit;The function control unit is also used to:When the timing list
Member timing then, open the acquisition function of the zero cross signal of the acquiring unit so that the acquiring unit again
Obtain zero cross signal.
In above scheme, the function control unit is also used to:The timing of the timing unit is set.
In above scheme, the function control unit is also used to:The frequency for obtaining the zero cross signal, according to the frequency
The timing of the timing unit is set;
Wherein, the timing of the timer meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timer;f0For the frequency of the zero cross signal.
In above scheme, the function control unit is also used to:
When the timing of the timing unit arrives, the clocking capability of timeing closing unit.
The embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer program (instruction),
The step of the method for the embodiment of the present invention is realized when the program is executed by processor.
The embodiment of the invention provides a kind of detection device of zero cross signal, including memory, processor and it is stored in
On reservoir and the computer program that can run on a processor, the processor execute when running the executable program and realize this
The step of inventive embodiments the method.
The detection method of zero cross signal provided by the embodiment of the present invention, the method includes:When getting zero cross signal
When, the acquisition function of zero cross signal is closed to interrupt acquisition zero cross signal;When holding for the acquisition function of closing the zero cross signal
When continuous duration reaches preset duration, the acquisition function of the zero cross signal is opened to regain zero cross signal.In this way, pass through by
The zero cross signal got no longer receives zero cross signal as down trigger in preset duration, until after reaching preset duration,
Again zero cross signal is received, namely obtains zero cross signal according to the preset duration, thus is avoided that receive and be believed by power supply disturbance
Number interference zero cross signal, thus avoid the problem that based on interference zero cross signal driving device can not work normally so that
The part zero cross signal being disturbed can be filtered using the device of the detection method, improve the anti-interference of zero cross signal processing
Ability.
Detailed description of the invention
Fig. 1 is the flow diagram one of the detection method of the zero cross signal of the embodiment of the present invention;
Fig. 2 is the composed structure schematic diagram of the detection system of the zero cross signal of the embodiment of the present invention;
Fig. 3 is the flow diagram two of the detection method of the zero cross signal of the embodiment of the present invention;
Fig. 4 is the composed structure schematic diagram of the zero cross detection circuit of the embodiment of the present invention;
Fig. 5 is the schematic diagram of the zero cross signal of the embodiment of the present invention;
Fig. 6 is the composed structure schematic diagram of the detection device of the zero cross signal of the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described in further detail.
The embodiment of the invention provides a kind of detection methods of zero cross signal, as shown in Figure 1, the method includes:
Step 110:When getting zero cross signal, the acquisition function of zero cross signal is closed to interrupt acquisition zero cross signal;
Here, it may include control module and timer using the system of detection method provided in this embodiment, work as detection
To after zero cross signal, the zero cross signal is sent to control module;After the control module receives the zero cross signal,
The control module closes the acquisition function of zero cross signal, and opening timing device.
Specifically, can detect zero cross signal by the rising edge and failing edge of detection zero cross signal.When detecting
When zero-signal, the zero cross signal that the zero cross signal of sine wave is converted into square is sent to control module.Control mould
It, can be by closing itself external interrupt Trigger Function, to close the function for obtaining zero cross signal after block receives zero cross signal
Energy.
For example, detecting zero cross signal by the rising edge and failing edge of detection signal, the zero cross signal being sent to
Control module.After control module gets zero cross signal, the external interrupt Trigger Function of the control module is closed, is obtained to close
The function of zero cross signal is taken, while starting timer.
Step 120:When the duration of the acquisition function of the closing zero cross signal reaches preset duration, described in unlatching
The acquisition function of zero cross signal is to regain zero cross signal.
Here, the timing of control module setting timer, the timing that timer is arranged in control module include:It obtains
The frequency for taking the zero cross signal, according to the timing of timer described in the set of frequency;
Wherein, the timing of the timer meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timer;f0For the frequency of the zero cross signal.
Specifically, carrying out zero passage after control module receives zero cross signal according to the zero cross signal and interrupting control, fixed
When device timing in carry out interrupt operation, interrupt operation include control module close zero cross signal acquisition function.In addition,
Control module can carry out driving operation in timing, such as drive the load of silicon-controlled or relay.
Such as an implementation, it with described in above-described embodiment, after control module receives zero cross signal, obtains
To the frequency of the zero cross signal, it is assumed that the frequency of the zero cross signal is 100 hertz, according to the frequency of the zero cross signal,
The timing T of timer is set1, the timing T of the timerfMeet:
0<Tf<1/f0
In general, timing TfShould be positive integer, then according to the frequency of zero cross signal obtain the signal period be 10
Millisecond, then the timing T of the timerfMeet and is greater than 0 less than 10 milliseconds.As an example, when predefining
Between precision be 1 millisecond, the upper limit for the time range that the timing of timer meets is subtracted into time precision, when calculating timing
Between T1It is 8 milliseconds.That is, the range limit of the timing of the timer meets period and the preset time of the zero cross signal
The difference of precision.
As another embodiment, the frequency with supply frequency of zero cross signal are related, when power supply signal frequency
When being 50 hertz, zero cross signal frequency is 100 hertz, then at this point, the timing maximum value of control module setting can be 9
Millisecond.When power supply signal frequency is 60 hertz, the frequency of zero cross signal is 120 hertz, then at this point, what control module was arranged
The maximum value of timing can be 7 milliseconds.
Here, when the timing of the timer then, i.e., the acquisition function that control module closes zero cross signal is held
Continuous duration reaches preset duration, and control module opens the acquisition function of zero cross signal, the clocking capability of Off Timer.
Specifically, control module enters timer interrupt routine, timer after the timing of control module setting timer
Timing be control module close zero cross signal acquisition function duration, in the timer interrupt routine,
Control module can carry out corresponding operation, such as drive the load of silicon-controlled or relay.When the timing of the timer
Then, control module to open the acquisition function of zero cross signal, and is closed by the external interrupt Trigger Function of opening itself
The clocking capability of timer.
For example, the timing time of timer reaches timing T1Afterwards, the clocking capability of control module Off Timer, and
The external interrupt Trigger Function of itself is opened, to continue to obtain the zero cross signal of signal detection module transmission.
In this way, the zero cross signal by will acquire no longer receives zero cross signal as down trigger in preset duration,
Until receiving zero cross signal again after reaching preset duration, namely obtain zero cross signal according to the preset duration, thus being avoided that
The zero cross signal by power supply disturbance signal interference is received, so that the device for avoiding the zero cross signal based on interference from driving can not be just
Often the problem of work, allow the part zero cross signal for filtering and being disturbed using the device of the detection method, improved
The anti-interference ability of zero-signal processing.
It is described in further detail below with reference to the good effect that specific example generates the present invention;
Specific example one
A kind of detection system of zero cross signal provided in an embodiment of the present invention, Fig. 2 are the zero cross signal of the embodiment of the present invention
Detection system composed structure schematic diagram;As shown in Fig. 2, the detection system 20 of the zero cross signal includes:Signal detection mould
Block 21, for sending zero cross signal to control module 22;Control module 22, for obtaining the transmission of signal detection module 21
When the zero cross signal, the acquisition function of zero cross signal is closed to interrupt acquisition zero cross signal;When the closing zero cross signal
When the duration of acquisition function reaches preset duration, the acquisition function of the zero cross signal is opened to regain zero passage letter
Number.
Here, the system 20 further includes timer 23;The control module 22 is also used to:When obtaining for closing zero cross signal
When taking function, start the timer 23;When the timer 23 timing then, open the acquisition of the zero cross signal
Function is to regain zero cross signal;The timing of the timer 23 is set.
Here, the control module 22 is also used to:The frequency for obtaining the zero cross signal, according to the set of frequency
The timing of timer 23;
Wherein, the timing of the timer 23 meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timer 23;f0For the frequency of the zero cross signal.
Here, the control module 22 is also used to:When the timing of the timer 33 arrives, 23 timing of Off Timer
Function.
Here, the describing mode of system embodiment reference method embodiment.
Signal detection module 21, control module 22 in the embodiment of the present invention, in the detection system 20 of the zero cross signal
It, in practical applications can be by central processing unit (CPU, Central Processing Unit), digital signal with timer 23
Processor (DSP, Digital Signal Processor), micro-control unit (MCU, Microcontroller Unit) or can
Gate array (FPGA, Field-Programmable Gate Array) is programmed to realize.
It should be noted that:The detection system of zero cross signal provided by the above embodiment is in the detection for carrying out zero cross signal
When, only with the division progress of above-mentioned each program module for example, can according to need in practical application and divide above-mentioned processing
With by different program module completions, i.e., the internal structure of system is divided into different program modules, to complete above description
All or part of processing.In addition, the detection system of zero cross signal provided by the above embodiment and the detection side of zero cross signal
Method embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Specific example two
The detection system of zero cross signal based on specific example one kind, the embodiment of the invention also provides a kind of zero cross signals
Detection method, specific steps as shown in figure 3,
Step 300:Signal detection module is initialized;
Step 301:Timer is initialized;
Step 302:Signal detection module has detected whether zero cross signal;When having detected zero cross signal, step is executed
304;When zero cross signal has been not detected, step 303 is executed;
Step 303:When signal detection module does not detect zero cross signal, then signal detection module continues to detect;
Step 304:When signal detection module detects zero cross signal, then the zero cross signal is sent to control module, controlled
Molding block enters zero passage interrupt control routine;
Step 305:Control module closes the acquisition function of zero cross signal based on zero passage interrupt control routine;
Here, when signal detection module detects zero cross signal, after the zero cross signal is sent to control module, control
Module enters zero passage interrupt control routine, closes the acquisition function of the zero cross signal of control module.
Step 306:Control module is based on the triggering timer starting of zero passage interrupt control routine, wherein the timing of timer
Time is set in advance as timing f0;
Here, the timing f of the timer according to zero cross signal set of frequency0, the timing f of the timer0
Meet:
0<Tf<1/f0
Wherein, f0For the timing of the timer;f0For the frequency of the zero cross signal.
Step 307:Judge the timing T of timerfWhether reach;When the result judged is is, step is executed
309;When the judgment result is no, step 308 is executed;
Step 308:When not reaching the timing f0, then continue waiting for, until the timing of timer arrives;
Step 309:When reaching the timing f0Afterwards, control module enters Interruption control program;
Step 310:Clocking capability of the control module based on Interruption control stop timer;
Step 311:Control module reopens the acquisition function of zero cross signal based on Interruption control program, jumps to
Step 302.
In the above embodiment of the present invention, it's not limited to that for the execution sequence of step 305 and step 306, in control module
Into after zero passage interrupt control routine, timer starting can also be first triggered, the acquisition function of zero cross signal is turned off;Certainly,
Timer starting can also be triggered simultaneously and closes the acquisition function of zero cross signal.Similarly, step 310 and step 311 are held
It's not limited to that for row sequence, after control module enters Interruption control program, can also first reopen zero cross signal
Acquisition function, the clocking capability of timer is turned off, it is of course also possible to which triggering reopens the acquisition function of zero cross signal simultaneously
The clocking capability of energy and Off Timer.
Here, control module starts timer, and timing T is arrangedf, as the timing T of timerfThen, mould is controlled
Block enters Interruption control program, and the external interrupt Trigger Function of Off Timer, open control module obtained to open
The function of zero-signal.
Specifically, signal detection module can be realized by specific zero cross detection circuit, zero cross detection circuit it is specific
It constitutes as shown in figure 4, can detect zero cross signal by the rising edge and failing edge of detection zero cross signal.As shown in figure 5,
When detecting zero cross signal, the zero cross detection circuit converts the zero cross signal of sine wave to the zero passage of square
Signal is sent to control module.The control module can be realized using chips such as single-chip microcontrollers, and pass through phase in single-chip microcontroller
The function of timer may be implemented in the setting answered, and carries out timing.
The embodiment of the present invention also provides a kind of detection device of zero cross signal, as shown in fig. 6, the detection of the zero cross signal
Device 60 includes:Acquiring unit 61 and function control unit 62;The acquiring unit 61 is used for:Obtain zero cross signal;The function
It can control unit 62 to be used for:When the acquiring unit 61 gets zero cross signal, the zero passage letter of the acquiring unit 61 is closed
Number acquisition function obtain zero cross signal to interrupt the acquiring unit 61;When the closing of the acquisition function of the zero cross signal is held
When continuous duration reaches preset duration, the acquisition function of the zero cross signal of the acquiring unit 61 is opened so that the acquisition is single
Member 61 regains zero cross signal.
In one embodiment, described device 60 further includes timing unit 63;The function control unit 62 is also used to:Work as pass
When closing the acquisition function of the zero cross signal of acquiring unit 61, start the timing unit 63;When the timing of the timing unit 63
Time then, opens the acquisition function of the zero cross signal of the acquiring unit 61 so that the acquiring unit 61 regains
Zero cross signal.
In one embodiment, the function control unit 62 is also used to:The timing of the timing unit 63 is set.
In one embodiment, the function control unit 62 is also used to:The frequency for obtaining the zero cross signal, according to described
The timing of timing unit 63 described in set of frequency;
Wherein, the timing of the timing unit 63 meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timing unit 63;f0For the frequency of the zero cross signal.
In one embodiment, the function control unit 62 is also used to:When the timing of the timing unit 63 arrives, close
Close the clocking capability of timing unit 63.
Here, the describing mode of Installation practice reference method embodiment.
Acquiring unit 61, function control unit 62 in the embodiment of the present invention, in the detection device 60 of the zero cross signal
With timing unit 63, can be realized in practical applications by CPU, DSP, MCU or FPGA.
It should be noted that:The detection device of zero cross signal provided by the above embodiment is in the detection for carrying out zero cross signal
When, only with the division progress of above-mentioned each program module for example, can according to need in practical application and divide above-mentioned processing
With by different program module completions, i.e., the internal structure of device is divided into different program modules, to complete above description
All or part of processing.In addition, the detection device of zero cross signal provided by the above embodiment and the detection side of zero cross signal
Method embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with executable program, described
Executable code processor realizes the detection method of any of the above-described zero cross signal when executing.
The embodiment of the invention also provides a kind of detection device of zero cross signal, which includes:Processor and for depositing
The memory of the enough computer programs run on a processor of energy storage, wherein the processor operation is for running the calculating
When machine program, the detection method for any zero cross signal that the embodiment of the present invention is realized is executed.
It is appreciated that memory can be by any kind of volatibility or non-volatile memory device or their group
It closes to realize.Wherein, nonvolatile memory can be read-only memory (ROM, Read Only Memory), may be programmed it is read-only
Memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM,
Erasable Programmable Read-Only Memory), electrically erasable programmable read-only memory (EEPROM,
Electrically Erasable Programmable Read-Only Memory), magnetic RAM (FRAM,
Ferromagnetic Random Access Memory), flash memory (Flash Memory), magnetic surface storage, light
Disk or CD-ROM (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be disk and deposit
Reservoir or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access Memory),
It is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random
Access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM,
Synchronous Static Random Access Memory), dynamic random access memory (DRAM, Dynamic
Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random
Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data Rate
Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory
(ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links dynamic random are deposited
Access to memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus arbitrary access are deposited
Reservoir (DRRAM, Direct Rambus Random Access Memory).The memory of description of the embodiment of the present invention is intended to wrap
Include but be not limited to the memory of these and any other suitable type.
The method that the embodiments of the present invention disclose can be applied in processor, or be realized by processor.Processor
It may be a kind of IC chip, the processing capacity with signal.During realization, each step of the above method can lead to
The instruction of the integrated logic circuit or software form of crossing the hardware in processor is completed.Above-mentioned processor can be general place
Manage device, DSP or other programmable logic device, discrete gate or transistor logic, discrete hardware components etc..Processing
Device may be implemented or execute disclosed each method, step and logic diagram in the embodiment of the present invention.General processor can be with
It is microprocessor or any conventional processor etc..It the step of method in conjunction with disclosed in the embodiment of the present invention, can be direct
Be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination execute completion.
Software module can be located in storage medium, which is located at memory, and processor reads the information in memory, in conjunction with
Its hardware completes the step of preceding method.
In the exemplary embodiment, the detection device of zero cross signal can be by one or more application specific integrated circuit
(ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD,
Programmable Logic Device), Complex Programmable Logic Devices (CPLD, Complex Programmable Logic
Device), FPGA, general processor, controller, MCU, microprocessor (Microprocessor) or other electronic components are real
It is existing, for executing preceding method.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, such as:Multiple units or components can combine, or
It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion
Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit
Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit
The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists
In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also
To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned
Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:It is movable storage device, read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or
The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product
When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with
It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention.
And storage medium above-mentioned includes:Movable storage device, ROM, RAM, magnetic or disk etc. are various to can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (17)
1. a kind of detection method of zero cross signal, which is characterized in that the method includes:
When getting zero cross signal, the acquisition function of zero cross signal is closed to interrupt acquisition zero cross signal;
When the duration of the acquisition function of the closing zero cross signal reaches preset duration, obtaining for the zero cross signal is opened
Function is taken to regain zero cross signal.
2. the method according to claim 1, wherein it is described close zero cross signal acquisition function when, the side
Method further includes:Start timer;
The duration of the acquisition function of closing zero cross signal reaches preset duration, including:When the timing of the timer
Between arrive.
3. according to the method described in claim 2, it is characterized in that, the method also includes:The timing of the timer is set
Time.
4. according to the method described in claim 3, it is characterized in that, the timing of the setting timer, including:
The frequency for obtaining the zero cross signal, according to the timing of timer described in the set of frequency;
Wherein, the timing of the timer meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timer;f0For the frequency of the zero cross signal.
5. according to the method described in claim 2, it is characterized in that, the timing of the timer then, the method is also
Including:Off Timer clocking capability.
6. a kind of detection system of zero cross signal, which is characterized in that the system comprises:
Signal detection module, for sending zero cross signal to control module;
Control module closes the acquisition of zero cross signal when for obtaining the zero cross signal of the signal detection module transmission
Function is to interrupt acquisition zero cross signal;When the duration of the acquisition function of the closing zero cross signal reaches preset duration,
The acquisition function of the zero cross signal is opened to regain zero cross signal.
7. system according to claim 6, which is characterized in that the system also includes timers;
The control module is also used to:When closing the acquisition function of zero cross signal, start the timer;
The control module is used for:When the timer timing then, open the acquisition function of the zero cross signal with
Regain zero cross signal.
8. system according to claim 7, which is characterized in that the control module is also used to:The timer is set
Timing.
9. system according to claim 8, which is characterized in that the control module is also used to:
The frequency for obtaining the zero cross signal, according to the timing of timer described in the set of frequency;
Wherein, the timing of the timer meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timer;f0For the frequency of the zero cross signal.
10. system according to claim 7, which is characterized in that the control module is also used to:When determining for the timer
When the time arrive, Off Timer clocking capability.
11. a kind of detection device of zero cross signal, which is characterized in that described device includes:Acquiring unit and function control unit;
Wherein,
The acquiring unit is used for:Obtain zero cross signal;
The function control unit is used for:When the acquiring unit gets zero cross signal, the mistake of the acquiring unit is closed
The acquisition function of zero-signal obtains zero cross signal to interrupt the acquiring unit;When the closing of the acquisition function of the zero cross signal
When duration reaches preset duration, the acquisition function of the zero cross signal of the acquiring unit is opened so that the acquisition is single
Member regains zero cross signal.
12. device according to claim 11, which is characterized in that described device further includes timing unit;
The function control unit is also used to:When closing the acquisition function of zero cross signal of acquiring unit, start the timing
Unit;
The function control unit is also used to:When the timing unit timing then, open the institute of the acquiring unit
The acquisition function of zero cross signal is stated so that the acquiring unit regains zero cross signal.
13. device according to claim 12, which is characterized in that the function control unit is also used to:It is described fixed to be arranged
The timing of Shi Danyuan.
14. device according to claim 13, which is characterized in that the function control unit is also used to:Obtain the mistake
The frequency of zero-signal, according to the timing of timing unit described in the set of frequency;
Wherein, the timing of the timer meets:
0<Tf<1/f0
Wherein, TfFor the timing of the timer;f0For the frequency of the zero cross signal.
15. device according to claim 12, which is characterized in that the function control unit is also used to:
When the timing of the timing unit arrives, the clocking capability of timeing closing unit.
16. a kind of computer readable storage medium is stored thereon with computer program (instruction), which is characterized in that the program quilt
The step of any one of claim 1 to 5 the method is realized when processor executes.
17. a kind of detection device of zero cross signal, including memory, processor and storage are on a memory and can be on a processor
The computer program of operation, which is characterized in that perform claim requires 1 to 5 when the processor runs the executable program
The step of one the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810720766.5A CN108896813A (en) | 2018-06-29 | 2018-06-29 | A kind of detection method of zero cross signal, system, device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810720766.5A CN108896813A (en) | 2018-06-29 | 2018-06-29 | A kind of detection method of zero cross signal, system, device and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108896813A true CN108896813A (en) | 2018-11-27 |
Family
ID=64347378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810720766.5A Pending CN108896813A (en) | 2018-06-29 | 2018-06-29 | A kind of detection method of zero cross signal, system, device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108896813A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109856448A (en) * | 2019-02-01 | 2019-06-07 | 电子科技大学中山学院 | Method and device for capturing effective zero-crossing signal of alternating current |
CN111148286A (en) * | 2019-12-24 | 2020-05-12 | 追觅科技(上海)有限公司 | Equipment control method, device and storage medium |
CN112713885A (en) * | 2020-12-25 | 2021-04-27 | 珠海格力电器股份有限公司 | Driving method and driving device of silicon controlled rectifier and heating appliance |
CN113190073A (en) * | 2021-05-10 | 2021-07-30 | 深圳市海和科技股份有限公司 | Load control method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101943714A (en) * | 2009-07-10 | 2011-01-12 | 戴维逊磁疗技术(厦门)有限公司 | Precise detection method of thyristor AC signal zero passage time sequence and device |
CN103186150A (en) * | 2011-12-30 | 2013-07-03 | 北大方正集团有限公司 | Alternating current heater control device and method |
CN104090151A (en) * | 2014-04-14 | 2014-10-08 | 西安工程大学 | Zero-crossing-point accurate detection method for AC power-grid voltage signals |
CN104299480A (en) * | 2013-07-02 | 2015-01-21 | 海尔集团公司 | Smart switch, control method thereof, smart control network |
CN107561349A (en) * | 2017-08-18 | 2018-01-09 | 九阳股份有限公司 | The zero passage detection and voltage sampling method and circuit of electromagnetic heater |
-
2018
- 2018-06-29 CN CN201810720766.5A patent/CN108896813A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101943714A (en) * | 2009-07-10 | 2011-01-12 | 戴维逊磁疗技术(厦门)有限公司 | Precise detection method of thyristor AC signal zero passage time sequence and device |
CN103186150A (en) * | 2011-12-30 | 2013-07-03 | 北大方正集团有限公司 | Alternating current heater control device and method |
CN104299480A (en) * | 2013-07-02 | 2015-01-21 | 海尔集团公司 | Smart switch, control method thereof, smart control network |
CN104090151A (en) * | 2014-04-14 | 2014-10-08 | 西安工程大学 | Zero-crossing-point accurate detection method for AC power-grid voltage signals |
CN107561349A (en) * | 2017-08-18 | 2018-01-09 | 九阳股份有限公司 | The zero passage detection and voltage sampling method and circuit of electromagnetic heater |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109856448A (en) * | 2019-02-01 | 2019-06-07 | 电子科技大学中山学院 | Method and device for capturing effective zero-crossing signal of alternating current |
CN109856448B (en) * | 2019-02-01 | 2021-03-30 | 电子科技大学中山学院 | Method and device for capturing effective zero-crossing signal of alternating current |
CN111148286A (en) * | 2019-12-24 | 2020-05-12 | 追觅科技(上海)有限公司 | Equipment control method, device and storage medium |
CN112713885A (en) * | 2020-12-25 | 2021-04-27 | 珠海格力电器股份有限公司 | Driving method and driving device of silicon controlled rectifier and heating appliance |
CN112713885B (en) * | 2020-12-25 | 2022-02-25 | 珠海格力电器股份有限公司 | Driving method and driving device of silicon controlled rectifier and heating appliance |
CN113190073A (en) * | 2021-05-10 | 2021-07-30 | 深圳市海和科技股份有限公司 | Load control method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108896813A (en) | A kind of detection method of zero cross signal, system, device and computer storage medium | |
CN104272283A (en) | Systems and methods for DQS gating | |
CN110416641A (en) | Battery pack overheat protector control method, device, storage medium and controller | |
CN104747309A (en) | Engine position management system and management method | |
CN106546809B (en) | It is a kind of based on without filtering phase current sampling circuit control method and device | |
US4233666A (en) | Drive power sequencing | |
CN104597314A (en) | Anti-interference method and device for zero-crossing point detection of household appliance and household appliance | |
CN104836209B (en) | A kind of digital power protection circuit and device | |
US20190071816A1 (en) | Device and method for controlling automatic opening and closing of upper cover of washing machine | |
CN105759763A (en) | Method and system for controlling multi-leaf collimator | |
CN108983069A (en) | chip scanning system and method | |
CN108134559A (en) | Switching frequency adjusting method, device, storage medium and servo drive system | |
CN103683888A (en) | Safety control method of system having precharging circuit, safety control device of system having precharging circuit, and system with safety control device | |
CN102820002B (en) | Display drive method, display driver circuit and system thereof | |
CN109062033A (en) | A kind of methods of self-tuning of PID system | |
CN103888158B (en) | The low frequency carrier signal of band filtering receives device and method | |
CN109445380A (en) | A kind of control method and device, storage medium and the processor of lathe automatic shutdown | |
WO2023040353A1 (en) | Method and apparatus for controlling centrifuge, centrifuge, and storage medium | |
CN106559249A (en) | Check the method and device of security baseline | |
CN108679675A (en) | Folding equipment closes control method, device, range hood and storage medium | |
CN110196678A (en) | Data stores determination device | |
CN106506074A (en) | A kind of method and apparatus of detection optical port state | |
CN101229611A (en) | Method of controlling welding torch transverse swing | |
CN206920878U (en) | A kind of controller based on ARM chips | |
CN112432318B (en) | Air purification assembly, control method and device thereof, air conditioner and storage medium |
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 |