CN112214096B - Control method and control device capable of reducing power consumption of single-chip microcomputer, single-chip microcomputer and range hood - Google Patents

Control method and control device capable of reducing power consumption of single-chip microcomputer, single-chip microcomputer and range hood Download PDF

Info

Publication number
CN112214096B
CN112214096B CN202010934520.5A CN202010934520A CN112214096B CN 112214096 B CN112214096 B CN 112214096B CN 202010934520 A CN202010934520 A CN 202010934520A CN 112214096 B CN112214096 B CN 112214096B
Authority
CN
China
Prior art keywords
timing
module
singlechip
program module
bit
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
Application number
CN202010934520.5A
Other languages
Chinese (zh)
Other versions
CN112214096A (en
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.)
Vatti Co Ltd
Original Assignee
Vatti Co Ltd
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 Vatti Co Ltd filed Critical Vatti Co Ltd
Priority to CN202010934520.5A priority Critical patent/CN112214096B/en
Publication of CN112214096A publication Critical patent/CN112214096A/en
Application granted granted Critical
Publication of CN112214096B publication Critical patent/CN112214096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24CDOMESTIC STOVES OR RANGES ; DETAILS OF DOMESTIC STOVES OR RANGES, OF GENERAL APPLICATION
    • F24C15/00Details
    • F24C15/20Removing cooking fumes
    • F24C15/2021Arrangement or mounting of control or safety systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/06Clock generators producing several clock signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3237Power saving characterised by the action undertaken by disabling clock generation or distribution
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B30/00Energy efficient heating, ventilation or air conditioning [HVAC]
    • Y02B30/70Efficient control or regulation technologies, e.g. for control of refrigerant flow, motor or heating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • Motor And Converter Starters (AREA)
  • Microcomputers (AREA)

Abstract

The invention discloses a control method and a control device capable of reducing power consumption of a singlechip, the singlechip and a range hood, wherein the control method comprises the following steps: step S1: presetting a T of system timing interrupt Interrupt Call to T Interrupt Completing program operation of each functional module of the singlechip for each timing zone bit of the reference; step S2: judging whether the singlechip runs a complex algorithm program, if so, entering a step S3, otherwise, returning to the previous step S1; step S3: and calling a timing zone bit taking zero crossing detection as a reference as a timing zone bit of the running of part of the functional module programs. According to the invention, the two clock sources are matched with each other, so that the performance requirement on the singlechip is reduced, even if the singlechip can perform complex operation, the situation of flicker display and inaccurate timing can be avoided, and the singlechip with better performance does not need to be replaced, thereby reducing the cost.

Description

Control method and control device capable of reducing power consumption of single-chip microcomputer, single-chip microcomputer and range hood
Technical Field
The invention relates to the technical field of microcontrollers, in particular to a control method and device capable of reducing power consumption of a single-chip microcomputer, the single-chip microcomputer and a range hood.
Background
At present, a control core used by an electronic control system of a household appliance is generally a Micro Controller Unit (MCU), and the MCU is generally called a singlechip for short. The current mainstream home appliance controller uses 8 bit SCM, which is mainly used for processing logic processing of home appliance operation, output control of load, input detection of key information, displaying current machine state, etc.
For the conventional 8-bit singlechip of the household appliance, the resources are sufficient, such as the need of simple control of key information reading, temperature sampling and control, relay output control, power grid zero crossing signal detection, silicon controlled rectifier output driving and the like, and some complex algorithms can be made, such as: the accuracy requirement on the temperature is not high, for example, the accuracy is required to be 1 ℃ instead of 0.1 ℃, and the reaction speed requirement is not high, for example, the control of the executing mechanism by the algorithm calculation output only needs to be carried out in the period of each second, and then the PID algorithm can be realized by adopting an 8-bit singlechip.
However, when the response speed or precision of the control is required to be higher, namely the algorithm is required to be higher, more resources are required to be consumed by the singlechip, the resources of the singlechip are insufficient, for example, the precision required for temperature control reaches 0.1 ℃, if the PID algorithm is adopted, floating point operation is possibly required, for example, the rotating speed of a motor is required to be controlled, the response speed is required to be high, the precision is high, the resource consumption required when the singlechip carries out a complex algorithm is high, the resources are tense when the singlechip operates other functional modules, for example, the clock is inaccurate when the display scans, and the display flicker is caused; the timing clock is inaccurate, resulting in display time inaccuracy and the like. In this case, a singlechip with better performance is generally required to be replaced to perform more complicated operation. However, the singlechip with better replacement performance will increase the cost of the electric control system, will increase the cost of the whole machine, and is unfavorable for the competition of products in the market.
Disclosure of Invention
The invention provides a control method and a control device capable of reducing power consumption of a singlechip, the singlechip and a range hood, which can overcome the defect that the singlechip needs too large resources when running a complex algorithm.
In order to achieve the above purpose, the invention adopts the following technical scheme:
a control method capable of reducing power consumption of a singlechip comprises the following steps:
step S1: presetting a T of system timing interrupt Interrupt Call to T Interrupt Completing program operation of each functional module of the singlechip for each timing zone bit of the reference;
step S2: judging whether the singlechip runs a complex algorithm program, if so, entering a step S3, otherwise, returning to the previous step S1;
step S3: and calling a timing zone bit taking zero crossing detection as a reference as a timing zone bit for the running of the functional module program.
Preferably, in step S3, the method further comprises: judging the functional module of the singlechip ifWhen the timing update requirement of the functional module is less than 10ms, adopting the T of system timing interrupt Interrupt Each time zone bit as a reference is used as a timing zone bit of the operation of the time zone bit; and if the timing update requirement of the functional module is greater than 10ms, calling a timing zone bit taking zero crossing detection as a reference as a timing zone bit for running.
In the above control method capable of reducing the power consumption of the singlechip, in step S1, a timer interrupt setting of a system clock is used as a timing reference, and a clock source is an external crystal oscillator or an internal RC oscillator; setting a T of system timer interrupt Interrupt =125us。
Preferably: in step S1, according to T Interrupt The calculated timing mark bits are respectively btime125us, btime250us, btime0ms5, btime1ms, btime2ms, btime5ms, btime10ms, btime20ms, btime100ms, btime500ms, btime1s and btime1m.
Preferably: in step S3, with the time detected by the zero crossing point as a timing reference, each timing flag bit is set to f_zero_10ms, f_zero_20ms, f_zero_50ms, f_zero_100deg.ms, f_zero_200ms, f_zero_500ms, f_zero_1s, f_zero_1m.
A control device capable of reducing power consumption of a singlechip adopts the control method, which comprises the following steps:
timing reference module preset with T interrupted by system timing Interrupt The timing bit is a time zone bit which is a reference and a timing zone bit which is a reference of zero-crossing detection;
the control module detects the running information of each module of the singlechip and judges whether the singlechip runs a complex algorithm program, if so, a timing standard mark taking zero-crossing detection as a reference in the timing reference module is called as a timing mark bit of the running of the functional module, and if not, a T with system timing interruption is called Interrupt The time zone bit which is the reference is used as the timing zone bit of the function module.
A single chip microcomputer comprises the control device, a serial port communication program module, a key detection program module, a display content update program module, an execution part driving module and a time display timerThe control device detects the operation information of each module; when detecting that a complex algorithm program needs to be run, calling a timing standard mark taking zero-crossing detection as a reference in a timing reference module as a timing mark bit of the function module; if not, then call T with system timed interrupt Interrupt The time zone bit which is the reference is used as the timing zone bit of the function module.
The range hood comprises a range hood body, a power supply main control board and a display operation board, wherein the power supply main control board is used for providing a circuit for the display operation board and comprises a singlechip, a water pump driving program module, a temperature detection program module, a zero crossing detection program module, a motor rotating speed detection module and a motor speed regulation PID algorithm program module according to claim 7; the display operation panel is used for displaying and operating functions; when the system is started, when the power supply main control board does not receive the motor speed regulation instruction from the display operation board, the singlechip does not operate a motor speed regulation PID algorithm program module, and the module in the singlechip uses a system clock as a time zone bit for timing interruption to perform program operation; when the power supply main control board receives the motor speed regulation instruction from the display operation board, the singlechip needs to operate the motor speed regulation PID algorithm program module, and the zone bit taking zero crossing detection as a reference is used as a timing zone bit for the program operation of the functional module.
Preferably, in the above range hood, the timing flag bit of the zero-crossing detection program module and the motor rotation speed detection program module is preset to be 125us; program modules running with 1ms timing flag bit are: a communication program module; program modules running with a 10ms timing flag bit are: a water pump driving program module and a temperature detecting program module; program modules running with a 50ms timing flag bit are: a motor speed regulation PID algorithm program module; when the power supply main control board receives a motor speed regulation instruction from the display operation board, the water pump driving program module and the temperature detection program module perform zero crossing detection to be a 10ms timing mark bit of a timing reference for operation; the motor speed regulation PID algorithm program module runs with a 50ms timing flag bit; the communication program module, the zero crossing detection program module and the motor rotating speed detection program module run by taking a system clock as a 125us timing mark bit for timing interruption.
After implementing the technical scheme, the invention is implemented by presetting T which is interrupted by system timing Interrupt The clock system of the singlechip is used as the clock of all functions of the singlechip when the system does not need to run a complex algorithm, namely the system is used for timing interrupt T Interrupt The time mark bit serving as a reference is used as a clock of all functions of the singlechip; when the system needs to run a complex algorithm, the clock system of the singlechip is used as the clock for running the algorithm, and the clock systems required by other functions are realized through zero crossing signals, namely, the timing marker bit taking zero crossing detection as a reference is used as the clock required by the operation of other functions of the singlechip. According to the invention, the two clock sources are matched with each other, so that the performance requirement on the singlechip is reduced, the singlechip can perform complex operation, display flicker can be avoided, inaccurate timing is avoided, and the singlechip with better performance does not need to be replaced, thereby reducing the cost.
Drawings
FIG. 1 is a flow chart of a first embodiment of the present invention;
FIG. 2 is a block diagram of a second embodiment of the present invention;
fig. 3 is a block diagram of a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the application of the invention, an electric control system adopting an 8-bit singlechip as a control core in the field of household appliances is generally determined to be a more complex algorithm, which generally refers to: a direct current motor (BLDC) driving program, a temperature control algorithm with higher control precision (for example, the control precision is required to be 0.1 ℃ slowly), motor rotating speed control (the reaction speed is required to be high and the rotating speed deviation is small), an algorithm program for floating point operation, an FFT (fast Fourier transform) filtering algorithm, an SPWM sinusoidal inversion algorithm, a trigonometric function and other algorithms.
When the alternating current of the power grid in China is 50Hz, 50 times of waveforms are converted every second, the waveforms are sine waves, the time of each waveform is 20ms, the time of each half wave is 10ms, zero crossing points (20 ms for each zero crossing point) of the whole waveform or zero crossing points (10 ms for each zero crossing point) of the half wave can be detected through a zero crossing detection circuit, and the zero crossing points of the whole waveform of the sine waves or the zero crossing points of the time half waves can be used as timing bases according to the actual conditions of the system. For example, when complex arithmetic operation is required, the display function part can be refreshed by taking 10ms of zero crossing detection, the function keys can be scanned by taking 10ms as a reference, and the timing reference can be performed by taking 10ms or 20ms for displaying the system time and the like.
Example 1
As shown in fig. 1, the invention discloses a control method capable of reducing power consumption of a single chip microcomputer, comprising the following steps:
step S1: presetting a T of system timing interrupt Interrupt Call to T Interrupt Completing program operation of each functional module of the singlechip for each timing zone bit of the reference;
in the implementation, a timer interrupt setting of a system clock is used as a timing reference, and a clock source is an external crystal oscillator or an internal RC oscillator; setting a T of system timer interrupt Interrupt =125us。
According to T Interrupt The calculated timing zone bits are respectively btime125us, btime250us, btime0ms5, btime1ms, btime2ms, btime5ms, btime10ms, btime20ms, btime100ms, btime500ms, btime1s and btime1m so as to meet the timing requirement of each program module of the system.
Step S2: judging whether the singlechip runs a complex algorithm program, if so, entering a step S3, otherwise, returning to the previous step S1;
step S3: and calling a timing zone bit taking zero crossing detection as a reference as a timing zone bit for the running of the functional module program.
The time detected by the zero crossing is preset as a timing reference, and each timing mark bit is set to be f_zero_10ms, f_zero_20ms, f_zero_50ms, f_zero_100deg.ms, f_zero_200ms, f_zero_500ms, f_zero_1s and f_zero_1m.
In the specific implementation, the functional module of the singlechip is judged, and if the timing update requirement of the functional module is less than 10ms, the system timing interrupt T is adopted Interrupt Each time zone bit as a reference is used as a timing zone bit of the operation of the time zone bit; and if the timing update requirement of the functional module is greater than 10ms, calling a timing zone bit taking zero crossing detection as a reference as a timing zone bit for running.
The method is applied to an electric control system with a zero-crossing detection circuit, and when the system does not need to operate a more complex algorithm, the clock system of the singlechip is used as the clock of all functions of the singlechip; t by system timing interrupt Interrupt The time mark bit serving as a reference is used as a clock of all functions of the singlechip; when the system needs to run a complex algorithm, the clock system of the singlechip is used as the clock for running the algorithm, and the clock systems required by other functions are realized through zero crossing signals, namely, the timing marker bit taking zero crossing detection as a reference is used as the clock required by the operation of other functions of the singlechip. According to the invention, the two clock sources are matched with each other, so that the performance requirement on the singlechip is reduced, even if the singlechip can perform complex operation, the situation of flicker display and inaccurate timing can be avoided, and the singlechip with better performance does not need to be replaced, thereby reducing the cost.
Example 2
As shown in fig. 2, the invention also discloses a control device capable of reducing power consumption of a single-chip microcomputer, which adopts the control method of the first embodiment, and comprises the following steps:
the timing reference module is preset with: t with system timed interrupt Interrupt Time zone bit as reference and zero crossing detection as referenceA timing flag bit of the reference;
in specific implementation, setting a T of system timing interrupt Interrupt =125us。
According to T Interrupt The calculated timing zone bits are respectively btime125us, btime250us, btime0ms5, btime1ms, btime2ms, btime5ms, btime10ms, btime20ms, btime100ms, btime500ms, btime1s and btime1m so as to meet the timing requirement of each program module of the system.
The time detected by the zero crossing is preset as a timing reference, and each timing mark bit is set to be f_zero_10ms, f_zero_20ms, f_zero_50ms, f_zero_100deg.ms, f_zero_200ms, f_zero_500ms, f_zero_1s and f_zero_1m.
The control module detects the running information of each functional module of the singlechip and judges whether the singlechip runs a complex algorithm program, if so, a timing standard mark taking zero-crossing detection as a reference in the timing reference module is called as a timing mark bit of the functional module running, and if not, a T with system timing interruption is called Interrupt The time zone bit which is the reference is used as the timing zone bit of the function module.
In the specific implementation, on one hand, the control module judges the functional module of the singlechip, and if the timing update requirement of the functional module is less than 10ms, the system timing interrupt T is adopted Interrupt Each time zone bit as a reference is used as a timing zone bit of the operation of the time zone bit; and if the timing update requirement of the functional module is greater than 10ms, calling a timing zone bit taking zero crossing detection as a reference as a timing zone bit for running.
This controlling means, when the operation with each functional module of singlechip, through the mutual cooperation of two kinds of timing mark phase, reduced the performance requirement to the singlechip, even the singlechip both can carry out complicated operation, can avoid showing the scintillation again, the inaccurate condition of timing takes place, and need not change the better singlechip of performance to the cost is reduced.
Example 3
Referring to FIG. 3, the invention also discloses a singlechip, which comprises the control device and the serial communication program module of the second embodimentThe control device detects the running information of the modules; when detecting that a complex algorithm program needs to be run, calling a timing standard mark taking zero-crossing detection as a reference in a timing reference module as a timing mark bit of the function module; if not, then call T with system timed interrupt Interrupt The time zone bit which is the reference is used as the timing zone bit of the function module.
The singlechip is provided with two clock sources which are matched with each other, when the singlechip runs a temperature control algorithm similar to a direct current motor (BLDC) driving program and having higher control precision (for example, the control precision is required to be 0.1 ℃ slowly), the motor rotation speed is controlled (the reaction speed is required to be high and the rotation speed deviation is small), an algorithm program which is required to carry out floating point operation, an FFT (fast Fourier transform) filtering algorithm, an SPWM sinusoidal inversion algorithm, a trigonometric function and other algorithms are required to carry out complex algorithms, and when the timing update requirement is not high, a timing zone bit which takes zero-crossing detection as a reference is adopted as a clock required by other functions of the singlechip to run; the singlechip disclosed by the invention reduces the performance requirement on the singlechip when a complex algorithm is operated, not only can the singlechip perform complex operation, but also can avoid the conditions of flicker display and inaccurate timing, and the singlechip with better performance does not need to be replaced, thereby reducing the cost.
Example 4
The invention also discloses a range hood, which comprises a range hood body, a power supply main control board and a display operation board, wherein the power supply main control board is used for providing a circuit for the display operation board, and the display operation board is used for displaying and operating functions.
The range hood is provided with a zero-crossing detection circuit.
In this embodiment, the main program modules of the power supply main control board include the singlechip, the water pump driver module, the temperature detection program module, the zero-crossing detection program module, the motor rotation speed detection module and the motor speed regulation PID algorithm program module in the above embodiments; wherein:
the program modules running with the system clock as the 125us timing mark bit for timing the interrupt are as follows: zero crossing detection program module and motor rotation speed detection program module;
program modules running with 1ms timing flag bit are: serial port communication program module in the singlechip;
program modules running with a 10ms timing flag bit are: a water pump driving program module and a temperature detecting program module;
program modules running with a 50ms timing flag bit are: motor speed regulation PID algorithm program modules, etc.
The display operation panel is provided with 6 touch keys, the 6-bit nixie tube displays state information such as time, rotating speed and the like of the range hood, and the display operation panel and the power supply main control panel carry out information transmission through a serial port communication program module in the singlechip.
When the power supply main control board does not receive the indication of the display operation board for motor speed regulation at the beginning of system start, at the moment, the singlechip does not operate a motor speed regulation PID algorithm program module, and the module in the singlechip uses a system clock as a time marker bit for timing interruption to perform program operation; when the power supply main control board receives a motor speed regulation instruction from the display operation board, the singlechip is required to operate a motor speed regulation PID algorithm program module, and a zone bit taking zero crossing detection as a reference is used as a timing zone bit for the program operation of the functional module.
When the power supply main control board receives a motor speed regulation instruction from the display operation board, the water pump driving program module and the temperature detection program module perform zero crossing detection to be used as a timing reference for 10ms timing mark bits to operate; the motor speed regulation PID algorithm program module runs with a 50ms timing flag bit; the communication program module, the zero-crossing detection program module, the motor rotating speed detection program module and other modules with higher requirements for time updating are operated by taking a system clock as a 125us timing mark bit for timing interruption.
After the technical scheme is implemented, when the range hood is implemented, the internal electric control system of the range hood is controlled by presetting a T which is interrupted by the system at regular time Interrupt Time as referenceThe time-counting system comprises a zone bit and a timing zone bit taking zero-crossing detection as a reference, wherein when the system does not need to operate a complex algorithm, a clock system of the singlechip is used as clocks of all functions of the singlechip, namely T which is interrupted by system timing Interrupt The time mark bit serving as a reference is used as a clock of all functions of the singlechip; when the system needs to run a complex algorithm, the clock system of the singlechip is used as the clock for running the algorithm, and the clock systems required by other functions are realized through zero crossing signals, namely, the timing marker bit taking zero crossing detection as a reference is used as the clock required by the operation of other functions of the singlechip. Through the mutual cooperation of two clock sources, reduced the performance requirement to the singlechip, both made the singlechip can carry out complicated operation, can avoid showing the scintillation again, the inaccurate condition of timing takes place, and need not change the better singlechip of performance to the cost is reduced.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (2)

1. The range hood is characterized by comprising a range hood body, a power supply main control board and a display operation board, wherein the power supply main control board is used for providing a circuit for the display operation board and comprises a singlechip, a water pump driving program module, a temperature detection program module, a zero crossing detection program module, a motor rotating speed detection module and a motor speed regulation PID algorithm program module; the display operation panel is used for displaying and operating functions; when the system is started, when the power supply main control board does not receive the motor speed regulation instruction from the display operation board, the singlechip does not operate a motor speed regulation PID algorithm program module, and the module in the singlechip uses a system clock as a time zone bit for timing interruption to perform program operation; when the power supply main control board receives the motor speed regulation instruction from the display operation board, the singlechip needs to operate the motor speed regulation PID algorithm program module, and a zone bit taking zero crossing detection as a reference is used as a timing zone bit for the program operation of the functional module;
the singlechip comprises a control device, a serial port communication program module, a key detection program module, a display content updating program module, an execution part driving module and a time display timing module, wherein the control device detects the operation information of the modules; when the algorithm program is detected to be required to run, a timing standard mark taking zero crossing detection as a reference in the timing reference module is called as a timing mark bit of the function module to run; if not, then call T with system timed interrupt Interrupt The time zone bit which is the reference is used as a timing zone bit operated by the functional module;
the control device includes:
timing reference module preset with T interrupted by system timing Interrupt The timing bit is a time zone bit which is a reference and a timing zone bit which is a reference of zero-crossing detection;
the control module detects the running information of each functional module of the singlechip and judges whether the singlechip runs an algorithm program, if so, a timing standard mark taking zero-crossing detection as a reference in the timing reference module is called as a timing mark bit of the functional module running, and if not, a T with system timing interruption is called Interrupt The time zone bit which is the reference is used as a timing zone bit operated by the functional module;
the control device adopts a control method capable of reducing the power consumption of the singlechip, and comprises the following steps:
step S1: presetting a T of system timing interrupt Interrupt Call to T Interrupt Completing program operation of each functional module of the singlechip for each timing zone bit of the reference;
step S2: judging whether the singlechip runs an algorithm program, if so, entering a step S3, otherwise, returning to the previous step S1;
step S3: and calling a timing zone bit taking zero crossing detection as a reference as a timing zone bit of the program operation of each functional module.
2. A range hood according to claim 1, wherein: presetting timing zone bits of the zero-crossing detection program module and the motor rotating speed detection program module to be 125us; program modules running with 1ms timing flag bit are: a communication program module; program modules running with a 10ms timing flag bit are: a water pump driving program module and a temperature detecting program module; program modules running with a 50ms timing flag bit are: a motor speed regulation PID algorithm program module; when the power supply main control board receives a motor speed regulation instruction from the display operation board, the water pump driving program module and the temperature detection program module perform zero crossing detection to be a 10ms timing mark bit of a timing reference for operation; the motor speed regulation PID algorithm program module runs with a 50ms timing flag bit; the communication program module, the zero crossing detection program module and the motor rotating speed detection program module run by taking a system clock as a 125us timing mark bit for timing interruption.
CN202010934520.5A 2020-09-08 2020-09-08 Control method and control device capable of reducing power consumption of single-chip microcomputer, single-chip microcomputer and range hood Active CN112214096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010934520.5A CN112214096B (en) 2020-09-08 2020-09-08 Control method and control device capable of reducing power consumption of single-chip microcomputer, single-chip microcomputer and range hood

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010934520.5A CN112214096B (en) 2020-09-08 2020-09-08 Control method and control device capable of reducing power consumption of single-chip microcomputer, single-chip microcomputer and range hood

Publications (2)

Publication Number Publication Date
CN112214096A CN112214096A (en) 2021-01-12
CN112214096B true CN112214096B (en) 2023-08-11

Family

ID=74050164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010934520.5A Active CN112214096B (en) 2020-09-08 2020-09-08 Control method and control device capable of reducing power consumption of single-chip microcomputer, single-chip microcomputer and range hood

Country Status (1)

Country Link
CN (1) CN112214096B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008287530A (en) * 2007-05-18 2008-11-27 Panasonic Corp Servo control device
CN202075338U (en) * 2011-03-18 2011-12-14 深圳市振邦实业有限公司 Ultralow power-consumption AC zero passage detection circuit
CN104000578A (en) * 2014-06-11 2014-08-27 复旦大学 ASIC chip for electrocardiosignal QRS wave real-time detection
CN104406211A (en) * 2014-11-27 2015-03-11 苏州市职业大学 Device capable of reducing stop abnormal sound of range hood
CN104698929A (en) * 2015-02-10 2015-06-10 武汉阿迪克电子股份有限公司 Fee-control intelligent ammeter real-time control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008287530A (en) * 2007-05-18 2008-11-27 Panasonic Corp Servo control device
CN202075338U (en) * 2011-03-18 2011-12-14 深圳市振邦实业有限公司 Ultralow power-consumption AC zero passage detection circuit
CN104000578A (en) * 2014-06-11 2014-08-27 复旦大学 ASIC chip for electrocardiosignal QRS wave real-time detection
CN104406211A (en) * 2014-11-27 2015-03-11 苏州市职业大学 Device capable of reducing stop abnormal sound of range hood
CN104698929A (en) * 2015-02-10 2015-06-10 武汉阿迪克电子股份有限公司 Fee-control intelligent ammeter real-time control method

Also Published As

Publication number Publication date
CN112214096A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
KR940009376B1 (en) Microprocessor with low power comsumption
US20100254827A1 (en) Method and Auto-control System on Improving Pumping System Performance
CN112530056B (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
CN112994581B (en) Motor system control method, motor system, control device, and storage medium
CN112214096B (en) Control method and control device capable of reducing power consumption of single-chip microcomputer, single-chip microcomputer and range hood
CN104216500A (en) Embedded controller and power-saving control method
US20210295799A1 (en) Display device
Zhao et al. Design of Motor Speed Control System Based on STM32 Microcontroller
CN105426040A (en) Method and system for rapidly displaying interface contents of mobile terminals
CN211042425U (en) Intelligent diaphragm type gas meter main control board function detection device
CN107678871A (en) A kind of electronic equipment starting-up method and electronic equipment
JP2562302B2 (en) Pointer-type multi-function electronic watch
CN102011267B (en) Servo stitch adding machine
KR100483503B1 (en) Booster pump system controlling method
CN105159708A (en) Information processing method and electronic device
CN212963578U (en) Tuning fork body detection device
CN204696969U (en) A kind of control system for permanent-magnet synchronous motor
CN216870796U (en) Portable debugging device for anti-smashing radar of barrier gate
CN215814078U (en) Digital screen with ultralow standby power consumption
CN211718758U (en) Soft PLC control system of medical suture polishing machine
CN219802313U (en) Low-power consumption key scanning device
CN116431132A (en) Graphic programming system and method based on LCD display screen and related medium
CN114356815A (en) USB controller, chip, display device and control method
CN107781202A (en) A kind of design of temperature-controlled fan
JPH11305887A (en) Method for controlling microcontroller and microcontroller

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