CN109062021A - It is a kind of to interrupt the method and air conditioner for generating time base by zero passage - Google Patents

It is a kind of to interrupt the method and air conditioner for generating time base by zero passage Download PDF

Info

Publication number
CN109062021A
CN109062021A CN201811104902.4A CN201811104902A CN109062021A CN 109062021 A CN109062021 A CN 109062021A CN 201811104902 A CN201811104902 A CN 201811104902A CN 109062021 A CN109062021 A CN 109062021A
Authority
CN
China
Prior art keywords
zero
interrupt
timing
zero passage
time base
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
Application number
CN201811104902.4A
Other languages
Chinese (zh)
Inventor
华洪香
孔进亮
邓舟舟
刘佰兰
黎俊宇
李坚
王桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811104902.4A priority Critical patent/CN109062021A/en
Publication of CN109062021A publication Critical patent/CN109062021A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04FTIME-INTERVAL MEASURING
    • G04F10/00Apparatus for measuring unknown time intervals by electric means
    • G04F10/04Apparatus for measuring unknown time intervals by electric means by counting pulses or half-cycles of an ac
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/61Control or safety arrangements characterised by user interfaces or communication using timers

Abstract

The invention discloses a kind of methods and air conditioner that generation time base is interrupted by zero passage.This method comprises: generating the zero-crossing pulse signal ZERO_CHECK of unit period when passing through the periodical zero passage voltage of zero cross detection circuit through zero crossing;Zero-crossing pulse signal is transmitted to the external interrupt mouth of Master control chip, generates interruption;In interrupt function, timing function is called, generates the when base TimerMs of unit period, generates time variable;According to the time variable value of generation, is compared with setting timing variable, start deliberate action.The present invention is interrupted by zero firewire zero passage and generates time base, timing, timing accuracy meet demand at the time of realizing accurate;Time base is generated simultaneously as interrupting using zero firewire zero passage, timing basis advantageously reduces hardware cost, cost of implementation saving independent of hardware crystal oscillator.

Description

It is a kind of to interrupt the method and air conditioner for generating time base by zero passage
Technical field
The invention belongs to pulse timing technical field, in particular to a kind of method and air conditioner for generating time base.
Background technique
The realization of timing function at present depends on crystal oscillator, i.e. crystal oscillator, and crystal oscillator refers to from one piece of quartz crystal On by certain azimuth cut thin slice (referred to as chip), and the crystal element that IC composition oscillating circuit is added inside encapsulation claims For crystal oscillator.Since crystal oscillator price ratio is high using ceramic resonator, it is unfavorable for save the cost.
The Chinese patent application of Publication No. CN85100400A discloses a kind of digital SCR trigger pulse apparatus. The device includes oscillation source, time counter, data register, sequence number counter, triggering function logics circuit, pulse generation Device, implementation method be, time counter, data register, the data in sequence number counter are sent into triggering function logics electricity simultaneously Lu Hou, the circuit are determined whether that output logical one or " 0 " signal remove one impulse generator of control, and output pulse goes to trigger Some is silicon-controlled as specified by sequence number counter.The digital SCR trigger pulse apparatus is convenient for and computer interface, saves The links such as digital-to-analogue conversion, comparator are gone, the triggering angle value by digital representation is directly exported by computer.The patent is counted by the time Several device timing do not solve the problem of how high efficiency and low cost real estate gives birth to time base.
The Chinese patent application of Publication No. CN101720143A discloses a kind of zero crossing point control method of relaying protection.The party The step of method includes: the zero-crossing timing of (1) main control chip real-time reception zero cross detection circuit output, when main control chip receives drive After the driving signal of motor type relay movement, into zero passage delay procedure;(2) main control chip timer internal timing, works as timer When timing time is equal to the zero crossing time, main control chip outputs control signals to relay, drives the actuating of relay.The patent is logical Timer timing is crossed, the problem of how high efficiency and low cost real estate gives birth to time base is not solved.
Summary of the invention
The technical problem to be solved by the present invention is timing basis depends on hardware crystal oscillator in the prior art, it is unfavorable for Reduce hardware cost.In order to solve this problem, the present invention provide it is a kind of by zero passage interrupt generate time base method and Air conditioner.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme:
The present invention provides a kind of method for interrupting generation time base by zero passage, comprising:
When by the periodical zero passage voltage of zero cross detection circuit through zero crossing, the zero-crossing pulse signal of unit period is generated ZERO_CHECK;
Zero-crossing pulse signal is transmitted to the external interrupt mouth of Master control chip, generates interruption;
In interrupt function, timing function is called, generates the when base TimerMs of unit period, generates time variable;
According to the time variable value of generation, is compared with setting timing variable, start deliberate action.
Further, in the timing function, the when base TimerMs of unit period is generated, TimerMs increases by 1 Unit alternation amount works as TimerMs >=T1When, second variable Timer1s increases by 1 unit alternation amount, works as Timer1s >=T2When, point Clock variable Timer1min increases by 1 unit alternation amount, works as Timer1min >=T3When, Timer1h increases by 1 unit alternation amount.
Further, when the time alternation amount is timing, the generation time variate-value by way of being incremented by;When described When time alternation amount is negative, the generation time variate-value by way of successively decreasing.
Further, the unit alternation amount, T1、T2、T3Value all in accordance with practical application choose.
Further, the voltage is provided by power supply.
Further, the waveform of the power supply is sine wave or square wave or triangular wave.
Further, the deliberate action includes startup and shutdown movement, heating and cooling movement.
The present invention also provides a kind of air conditioner, the air conditioner generates time base using above-mentioned interrupt by zero passage Method is timed.
By using above-mentioned technological means, the present invention is had the following technical effects:
The present invention is interrupted by zero firewire zero passage and generates time base, and timing at the time of realizing accurate, timing accuracy meets Demand;Time base is generated simultaneously as interrupting using zero firewire zero passage, timing basis has independent of hardware crystal oscillator Conducive to reduction hardware cost, cost of implementation saving.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is the embodiment of generation time variable of the invention.
Specific embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
For the problem that timing basis depends on hardware crystal oscillator in the prior art, it is unfavorable for reducing hardware cost, this Invention provides a kind of method and air conditioner interrupted by zero passage and generate time base.This method are as follows: pass through zero cross detection circuit Periodical zero passage voltage through zero crossing when, generate the zero-crossing pulse signal ZERO_CHECK of unit period;Zero-crossing pulse signal It is transmitted to the external interrupt mouth of Master control chip, generates interruption;In interrupt function, timing function is called, generates unit period When base TimerMs, generate time variable;According to the time variable value of generation, compared with setting timing variable, starting is default Movement.This method interrupts when base as timing using what zero cross signal generated, using base when this do moment timed power on/off or Other function.The method achieve it is accurate at the time of timing, timing accuracy meet demand;Simultaneously as using zero firewire zero passage It interrupts and generates time base, timing basis advantageously reduces hardware cost independent of hardware crystal oscillator, is implemented as this section About.
Method of the invention is suitable for air conditioner, but the scope of application is not limited to air conditioner, and present invention can apply to appoint This method, which can be used, in what is realized in the equipment of timing function.
Embodiment one
The present embodiment illustrates method of the invention so that the periodical zero passage voltage is provided by 50Hz alternating current as an example, The method for interrupting generation time base by zero passage is as shown in Figure 1, comprising:
Through zero cross detection circuit (when inputting the voltage of the circuit through zero crossing, it will one pulse signal of output is incited somebody to action The pulse output end is connected to master chip, can trigger interruption), generate the zero-crossing pulse signal ZERO_ that the period is 20ms CHECK;
Optionally, in the present invention, the input voltage for generating zero-crossing pulse signal is not limited to power supply and zero hot voltage, It can be the voltage of other available periodical zero passages.When the input voltage for generating zero-crossing pulse signal is provided by power supply When, power supply frequency be not limited to the present embodiment in 50HZ alternating current, the waveform of power supply is also not limited to sine wave, can be with It is the waveforms such as square wave, triangular wave.
Zero cross signal mouth is connected to the external interrupt mouth of Master control chip, generates interruption;
In interrupt function, timing function is called;
It should be noted that interruption herein only generates timing basis, other seconds or variation per minute on this basis Be incremented by and the movements such as related switch machine select suitable position to operate according to the actual situation, that is to say, that how to utilize the time The algorithm that timing is carried out on basis is not fixed, and is handled as the case may be.Only citing is illustrated below:
In timing function, generate 20ms when base TimerMs, TimerMs from plus 1, when TimerMs >=50 when, the second becomes Measure Timer1s from plus 1, when Timer1s >=60 when, minute variable Timer1min from plus 1, when Timer1min >=60 when, Timer1h adds 1 certainly.Referring to fig. 2.
It according to the second variation per minute value of generation, is compared with setting timing variable, generates the movement such as switching on and shutting down.
Optionally, the timing in the present invention is acted not necessarily for switching on and shutting down, can also be dynamic in heating and cooling movement, patterns of change It is used in the other functions such as work, quarter-bell movement.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention.It is all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (8)

1. a kind of interrupt the method for generating time base by zero passage characterized by comprising
When by the periodical zero passage voltage of zero cross detection circuit through zero crossing, the zero-crossing pulse signal of unit period is generated ZERO_CHECK;
Zero-crossing pulse signal is transmitted to the external interrupt mouth of Master control chip, generates interruption;
In interrupt function, timing function is called, generates the when base TimerMs of unit period, generates time variable;
According to the time variable value of generation, is compared with setting timing variable, start deliberate action.
2. according to claim 1 interrupt the method for generating time base by zero passage, which is characterized in that in the timing In function, when base TimerMs, TimerMs 1 unit alternation amount of increase of unit period is generated, TimerMs >=T is worked as1When, the second Variable Timer1s increases by 1 unit alternation amount, works as Timer1s >=T2When, minute variable Timer1min increases by 1 unit and passs Variable works as Timer1min >=T3When, Timer1h increases by 1 unit alternation amount.
3. according to claim 2 interrupt the method for generating time base by zero passage, which is characterized in that when the time Alternation amount is timing, the generation time variate-value by way of being incremented by;When the time alternation amount is negative, pass through the side successively decreased Formula generation time variate-value.
4. according to claim 2 interrupt the method for generating time base by zero passage, which is characterized in that the unit is passed Variable, T1、T2、T3Value all in accordance with practical application choose.
5. it is according to claim 1 by zero passage interrupt generate time base method, which is characterized in that the voltage by Power supply provides.
6. according to claim 5 interrupt the method for generating time base by zero passage, which is characterized in that the power supply electricity The waveform in source is sine wave or square wave or triangular wave.
7. according to claim 1 interrupt the method for generating time base by zero passage, which is characterized in that described default dynamic Make to include startup and shutdown movement, heating and cooling movement.
8. a kind of air conditioner, which is characterized in that the air conditioner uses to be passed through described in any one of claim 1 to 7 Zero, which interrupts the method for generating time base, is timed.
CN201811104902.4A 2018-09-21 2018-09-21 It is a kind of to interrupt the method and air conditioner for generating time base by zero passage Pending CN109062021A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811104902.4A CN109062021A (en) 2018-09-21 2018-09-21 It is a kind of to interrupt the method and air conditioner for generating time base by zero passage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811104902.4A CN109062021A (en) 2018-09-21 2018-09-21 It is a kind of to interrupt the method and air conditioner for generating time base by zero passage

Publications (1)

Publication Number Publication Date
CN109062021A true CN109062021A (en) 2018-12-21

Family

ID=64762388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811104902.4A Pending CN109062021A (en) 2018-09-21 2018-09-21 It is a kind of to interrupt the method and air conditioner for generating time base by zero passage

Country Status (1)

Country Link
CN (1) CN109062021A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113805463A (en) * 2021-09-08 2021-12-17 珠海格力电器股份有限公司 Method for calibrating timing time of air conditioner
CN115079553A (en) * 2022-06-28 2022-09-20 广州捷克易自动化设备有限公司 Time self-correction method for hot runner time schedule controller

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101603526A (en) * 2009-07-09 2009-12-16 宁波速沸电子科技有限公司 The flow control device of a kind of electromagnetic pump, electromagnetic pump and flow control method
CN102611183A (en) * 2012-03-01 2012-07-25 珠海天兆新能源技术有限公司 Method for detecting and protecting isolated island of grid-connected power generation system
JP2013066274A (en) * 2011-09-16 2013-04-11 Diamond Electric Mfg Co Ltd Power supply circuit
CN103675424A (en) * 2012-08-30 2014-03-26 海尔集团公司 Zero-crossing and standby zero consumption key detection circuit and washing machine
CN104821806A (en) * 2015-05-12 2015-08-05 广东美的厨房电器制造有限公司 Clock control device and control method thereof
CN105266598A (en) * 2014-06-24 2016-01-27 佛山市顺德区美的电热电器制造有限公司 Control method for cooking device, and cooking device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101603526A (en) * 2009-07-09 2009-12-16 宁波速沸电子科技有限公司 The flow control device of a kind of electromagnetic pump, electromagnetic pump and flow control method
JP2013066274A (en) * 2011-09-16 2013-04-11 Diamond Electric Mfg Co Ltd Power supply circuit
CN102611183A (en) * 2012-03-01 2012-07-25 珠海天兆新能源技术有限公司 Method for detecting and protecting isolated island of grid-connected power generation system
CN103675424A (en) * 2012-08-30 2014-03-26 海尔集团公司 Zero-crossing and standby zero consumption key detection circuit and washing machine
CN105266598A (en) * 2014-06-24 2016-01-27 佛山市顺德区美的电热电器制造有限公司 Control method for cooking device, and cooking device
CN104821806A (en) * 2015-05-12 2015-08-05 广东美的厨房电器制造有限公司 Clock control device and control method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113805463A (en) * 2021-09-08 2021-12-17 珠海格力电器股份有限公司 Method for calibrating timing time of air conditioner
CN115079553A (en) * 2022-06-28 2022-09-20 广州捷克易自动化设备有限公司 Time self-correction method for hot runner time schedule controller
CN115079553B (en) * 2022-06-28 2023-02-28 广州捷克易自动化设备有限公司 Time self-correction method for hot runner time schedule controller

Similar Documents

Publication Publication Date Title
Lakka et al. Development of an FPGA-based SPWM generator for high switching frequency DC/AC inverters
CN109062021A (en) It is a kind of to interrupt the method and air conditioner for generating time base by zero passage
CN105049008B (en) Signal modulation method and signal rectification and modulation device
CN108566104B (en) A kind of synchronous commutating control circuit
WO2020078209A1 (en) Frequency modulation device, switching power supply and frequency modulation method therefor
CN103394413A (en) Pulse power supply controller for electric dedusting
CN202275295U (en) Ultrasonic welding power source system
CN104201938A (en) Frequency converter soft start method based on CPLD
CN102447406B (en) Alternating current (AC)/direct current (DC) converter
Idris et al. Implementation of single-phase matrix converter as a direct AC-AC converter synthesized using sinusoidal pulse width modulation with passive load condition
JPS62174565A (en) Ignition control device for internal combustion engine
CN103529255A (en) High-voltage pulse power supply for measuring space charge under alternating-current electric field
CN101895087A (en) Circuit-breaker and method of controlling operation thereof
CN102130615B (en) Digital low-and-medium-frequency self-adaptive three-phase half-controlled rectifying device and triggering method thereof
CN103023464B (en) A kind of digitized triangular wave comparison method
CN104579111B (en) The control method of unit cascaded type frequency converter based on DSP and FPGA
JP4955196B2 (en) AC signal measuring device
CN203206121U (en) FPGA-based frequency conversion AC power-supply control apparatus
AU2003266085A1 (en) Electronic fuel conditioning device
CN201388307Y (en) Electromagnetic oven circuit
TWI699062B (en) Power module having wide-bandgap power switch
CN102130453B (en) Method for outputing high-precision synchronous signal by on-line parallel alternating current power supply module
CN107465337B (en) Driving synchronous control protection method and device applied to IGBT series power module
CN209514653U (en) A kind of finger detection circuit applied to capacitance type fingerprint detection system
CN102156171B (en) Broadband Lamb wave excitation signal generator applied to structural health monitoring

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181221