CN101436095A - Low voltage resetting method for microcontroller - Google Patents
Low voltage resetting method for microcontroller Download PDFInfo
- Publication number
- CN101436095A CN101436095A CNA2008101692292A CN200810169229A CN101436095A CN 101436095 A CN101436095 A CN 101436095A CN A2008101692292 A CNA2008101692292 A CN A2008101692292A CN 200810169229 A CN200810169229 A CN 200810169229A CN 101436095 A CN101436095 A CN 101436095A
- Authority
- CN
- China
- Prior art keywords
- signal
- low
- voltage
- circuit
- time
- 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
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000001514 detection method Methods 0.000 claims abstract description 17
- 238000001914 filtration Methods 0.000 claims abstract description 14
- 238000012360 testing method Methods 0.000 claims description 20
- 230000035945 sensitivity Effects 0.000 claims description 4
- 230000000052 comparative effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000001684 chronic effect Effects 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003534 oscillatory effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Landscapes
- Electronic Switches (AREA)
Abstract
The invention discloses a low-voltage reset method used in a microcontroller. A low-voltage reset circuit of the low-voltage reset method comprises a low-voltage detection circuit which is controlled by a sleep signal of a system, and also comprises an anti-interference management circuit which utilizes a clock signal in a microcontroller circuit for filtering and generates a reset signal, wherein an output signal of the low-voltage detection circuit and the clock signal are input signals of the anti-interference management circuit together. The low-voltage reset method guarantees that the reset circuit has the characteristics of low power consumption, high precision, anti-interference and so on, so that the microcontroller product can be operated in a situation with low power consumption and realize good electrifying property.
Description
Technical field
The invention belongs to the microcontroller circuit field, be specifically related to a kind of low voltage resetting circuit and repositioning method thereof that is used for microcontroller.
Background technology
The microcontroller circuit system that itself has oscillatory circuit and clock generating module is in the power-up initializing process, the system that need guarantee enters a definite state, and only in this way, system just can enter a correct state, otherwise will cause program fleet, the systemic-function disorder.Therefore circuit needs a reseting procedure, and this process resets to correct original state with the register in the system.But after system enters operate as normal, thereby may be subjected to various external disturbance causes power supply to produce fluctuation, at this moment just must there be an effective and efficient manner to control current situation,, thereby just must allows system restart the appearance of avoiding the situation of crashing if fluctuation ratio is bigger; And when disturbing also in normal range, then must the assurance system can not enter reset mode, but keep normal work.
All have the low voltage resetting module in the general microcontroller circuit, to guarantee that can circuit powering on or correctly enter an original state during voltage fluctuation, general voltage management module is divided two kinds, a kind of is to adopt comparer to realize, can reach than higher precision, and more stable, but have power consumption problem bigger than normal, when microcontroller was used for battery powered handheld device, excessive power consumption was unaffordable; The voltage comparator that another adopts current mirror to realize, this low voltage resetting circuit is subjected to technogenic influence easily because ratio of precision is lower, because have lower power consumption, the requirement that resets is not too high occasion to voltage therefore can be used for some.In addition, because there are some fluctuations in the power supply of circuit or can be subjected to some interference, adopt simple low-voltage testing circuit, to cause as long as on the power supply certain interference is arranged, will make system unnecessary resetting occur, and in some low voltage resetting circuit, having added filter circuit comes the filtering burr to disturb the tiny reset pulse that causes, and so just needs to increase many resources.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of repositioning method that is used for the low voltage resetting circuit of microcontroller, can overcome the high power consumption that more existing low voltage resetting circuit exist, problems such as low precision realize that microcontroller products can be operated in the occasion of low-power consumption and can realize good high precision, jamproof reset feature.
For achieving the above object, the present invention is by the following technical solutions:
A kind of low voltage resetting circuit that is used for microcontroller, comprise that having with supply voltage muting sensitivity or irrelevant reference voltage, with reference voltage is with reference to low-voltage testing circuit, comprise that also the clock signal of utilizing in the microcontroller circuit carries out filtering and produce the anti-interference management circuit of reset signal, the output signal of described low-voltage testing circuit and described clock signal are common to be the input signal of described anti-interference management circuit.
With the clock signal in the described microcontroller is that benchmark is set thresholding time T 1 and minimal reset time T 2, and low pressure detects the output signal time during less than thresholding time T 1, and this signal is decided to be interference can not produce reset signal; The low pressure detection output signal time produces the reset signal that minimum pulse width is T2 when being slightly larger than thresholding time T 1; Low pressure detects the output signal time during much larger than thresholding time T 1, exports a reset signal by the end situation of this signal.
Sleep signal in the described microcontroller is controlled described low-voltage testing circuit, and sleep signal is invalid, low-voltage testing circuit operate as normal then, and sleep signal is effective, and low-voltage testing circuit enters dormant state with system.
Low voltage resetting method in a kind of microcontroller is characterized in that may further comprise the steps:
1) setting has and supply voltage muting sensitivity or irrelevant reference voltage;
2) low-voltage testing circuit is reference with the reference voltage, produces low pressure and detects output signal;
3) low pressure is detected output signal and clock signal of system and be transferred to the anti-interference management circuit that is filtering and produces reset signal as input signal jointly;
4) be that benchmark is set thresholding time T 1 and minimal reset time T 2 with the clock signal in the microcontroller;
5) relatively low pressure detects output signal time and the thresholding time T 1 that sets.Low pressure detects the output signal time during less than thresholding time T 1, and this signal is decided to be interference can not produce reset signal; The low pressure detection output signal time produces the reset signal that minimum pulse width is T2 when being slightly larger than thresholding time T 1; Low pressure detects the output signal time during much larger than thresholding time T 1, exports a reset signal by the end situation of this signal.
In the low voltage resetting method in described a kind of microcontroller, also can utilize the sleep signal in the microcontroller to control described low-voltage testing circuit, if sleep signal is invalid, then low-voltage testing circuit produces output signal, if sleep signal is effective, low-voltage testing circuit enters dormant state with system.
In the technical scheme of the present invention, the work system that makes that detects by system's sleep signal control low pressure possesses low in power consumption, does not reduce accuracy of detection simultaneously again.Realize that by system clock reference filtering and reset signal produce, can effectively improve system's interference free performance, thereby guarantee that microcontroller products can be operated in the occasion of low-power consumption, and can realize the reduction with good characteristic.
Description of drawings
Fig. 1 is a low voltage resetting circuit diagram of the present invention;
Fig. 2 is the synoptic diagram that low pressure detection output signal time and thresholding time ratio produce reset signal.
Embodiment
Further specify the present invention below in conjunction with accompanying drawing and embodiment.
Please referring to Fig. 1, the present invention is that a kind of low voltage resetting circuit that is used for microcontroller comprises by the high precision low pressure testing circuit module of system's sleep signal control and the anti-interference administration module two parts that utilize the clock signal in the microcontroller circuit to carry out filtering, reset signal generation.
In order to reach higher precision, need again the purpose of power consumption control in certain scope, the mode of operation of considering some microcontrollers is to adopt timing wake-up to realize, each working time is very short, thereby overall power is controlled at a very low level.For such microcontroller circuit, the present invention is used for controlling the low voltage resetting circuit simultaneously with its sleep control signal, like this, has only microcontroller under non-sleep state, and the low voltage resetting circuit is operate as normal, thereby reaches the purpose of province's power consumption.Simultaneously, in micro-control circuit, sleep signal normally regularly takes place, and like this, can guarantee that when voltage fluctuation occurring, the low voltage resetting circuit can start.As shown in Figure 1, low pressure of the present invention test section has and supply voltage muting sensitivity or irrelevant reference voltage, can satisfy this reset circuit high stability, high-precision requirement.This partial circuit has only an input control, and input signal is the sleep signal of system, and effective when this sleep signal, system enters sleep state, and this low-voltage detector also enters sleep state together.Otherwise this low-voltage detector just is in normal operating conditions, detects the variation of supply voltage at any time.This voltage monitoring partial circuit also has only an output signal, the situation of the current supply voltage of this signal reaction, along with supply voltage changes up and down in comparative threshold voltage, this signal output is also 0, change between 1 two digital signal transitions, concrete 0,1 corresponding power voltage can define flexibly up and down respectively in comparative threshold voltage.
Because low-voltage detector has high stability, high precision, highly sensitive characteristics, and supply voltage is vulnerable to the interference generation fluctuation of peripheral electromagnetic environment, low-voltage detector can inevitable high frequency interference with power supply be incorporated in the output of low pressure detection signal, so the low voltage resetting circuit must have higher antijamming capability.When fluctuation or electromagnetic interference (EMI) appearred in power supply, the low voltage resetting circuit can judge whether current voltage fluctuation reaches given scope, thereby was correct reset signal of system's output.The present invention utilizes the output of the stabilizing clock source control reset signal in the microcontroller.Be benchmark with the system clock among the present invention, the signal that voltage detecting circuit the is produced management through figures of delaying time, the thresholding time that effective low pressure detection signal must satisfy setting, reach to count to overflow and to trigger the low voltage resetting signal, thereby guaranteed the high frequency interference that the low voltage resetting circuit can the filter out power fluctuation causes, had enough stability.The present invention at first guarantees that by Clock management the signal that the low pressure detection signal must satisfy the time threshold of setting could produce effective reset signal, secondly when the low pressure detection signal forms effective reset signal output, pass through Clock management again, can make the time value of the width of output signal, thereby guarantee that low voltage resetting provides system stability, effective reset signal greater than setting.See also Fig. 1 and consult Fig. 2 simultaneously, the filtering of anti-interference administration module of the present invention, reset signal generating circuit have two inputs: one is the output signal of low-voltage testing circuit, and another is a system clock.The filtering partial circuit mainly is the interference that is used for eliminating supply voltage, does not reach thresholding time T 1 when the low pressure detection signal duration, will be as undesired signal by filtering; Reset signal generating circuit receives the signal through filtering, produces a signal pulsewidth and comes system is carried out active homing greater than the reset signal of setting minimal reset time T 2.In these two processes, the setting of T1, T2 is set according to concrete needs as benchmark by system clock.Possible three kinds of situations when Fig. 2 has described filtering: first kind of situation when low pressure detects the output signal time when setting thresholding time T 1, will can not produced reset signal by filtering; Second kind of situation when the low pressure detection output signal time is slightly larger than thresholding time T 1, will produce the reset signal of minimal reset time T 2, thereby guarantee the internal system active homing; The third situation is that low pressure detection output signal is chronic, and will export a reset signal this moment by the end situation of this signal.
Above-described embodiment only is explanation technological thought of the present invention and characteristics; its purpose is to make those skilled in the art can understand content of the present invention and implements according to this; can not limit protection scope of the present invention with this, promptly the equalization of doing according to disclosed spirit changes or revises and must be encompassed in protection scope of the present invention.
Claims (5)
1. the low voltage resetting method in the microcontroller is characterized in that may further comprise the steps:
1) setting has and supply voltage muting sensitivity or irrelevant reference voltage;
2) low-voltage testing circuit is reference with the reference voltage, produces low pressure and detects output signal;
3) low pressure is detected output signal and clock signal of system and be transferred to the anti-interference management circuit that is filtering and produces reset signal as input signal jointly;
4) be that benchmark is set thresholding time T 1 and minimal reset time T 2 with the clock signal in the microcontroller;
5) relatively low pressure detects output signal time and the thresholding time T 1 that sets.Low pressure detects the output signal time during less than thresholding time T 1, and this signal is decided to be interference can not produce reset signal; The low pressure detection output signal time produces the reset signal that minimum pulse width is T2 when being slightly larger than thresholding time T 1; Low pressure detects the output signal time during much larger than thresholding time T 1, exports a reset signal by the end situation of this signal.
2. a kind of low voltage resetting method that is used for microcontroller according to claim 1, it is characterized in that, the work of described low-voltage testing circuit is by the sleep signal control of microcontroller, when sleep signal invalid, low-voltage testing circuit operate as normal then, sleep signal is effective, and low-voltage testing circuit enters dormant state with system.
3. low voltage resetting circuit that adopts claim 1 or 2 described repositioning methods, it is characterized in that comprising the low-voltage testing circuit that produces low pressure detection output signal, produce the anti-interference management circuit of reset signal, the clock signal that described low pressure detects output signal and system is the input signal of described anti-interference management circuit jointly, and anti-interference management circuit utilizes clock signal that low pressure detection input signal is carried out filtering.
4. low voltage resetting circuit according to claim 3, it is characterized in that, the work of described low voltage resetting circuit is by the sleep signal control of microcontroller, sleep signal is as the input of low-voltage testing circuit and anti-interference management circuit, if sleep signal is invalid, then the low voltage resetting circuit produces reset signal; If sleep signal is effective, the low voltage resetting testing circuit enters dormant state with system.
5. a kind of low voltage resetting circuit that is used for microcontroller according to claim 3 is characterized in that, is that benchmark is set thresholding time T 1 and minimal reset time T 2 with the clock signal in the microcontroller.Low pressure detects the output signal time during less than thresholding time T 1, and this signal is decided to be interference can not produce reset signal; The low pressure detection output signal time produces the reset signal that minimum pulse width is T2 when being slightly larger than thresholding time T 1; Low pressure detects the output signal time during much larger than thresholding time T 1, exports a reset signal by the end situation of this signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101692292A CN101436095A (en) | 2007-11-13 | 2008-09-28 | Low voltage resetting method for microcontroller |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200720076072.X | 2007-11-13 | ||
CN200720076072 | 2007-11-13 | ||
CNA2008101692292A CN101436095A (en) | 2007-11-13 | 2008-09-28 | Low voltage resetting method for microcontroller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101436095A true CN101436095A (en) | 2009-05-20 |
Family
ID=40710552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101692292A Pending CN101436095A (en) | 2007-11-13 | 2008-09-28 | Low voltage resetting method for microcontroller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101436095A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102761323A (en) * | 2012-06-29 | 2012-10-31 | 深圳市芯海科技有限公司 | Method and system for resetting digital circuit |
CN102981586A (en) * | 2012-11-23 | 2013-03-20 | 西安坤蓝电子技术有限公司 | Low-level reset circuit and reset method of multi-reset-source-to-multi-processor system |
CN102111135B (en) * | 2009-12-24 | 2013-10-23 | 上海华虹Nec电子有限公司 | Power-on reset circuit |
CN104953993A (en) * | 2015-06-04 | 2015-09-30 | 深圳市芯海科技有限公司 | Resetting circuit with high reliability and ultra-low power consumption |
CN107438768A (en) * | 2016-09-30 | 2017-12-05 | 深圳博芯科技股份有限公司 | 2.4GHz wireless code watch circuits |
CN114063481A (en) * | 2020-07-30 | 2022-02-18 | 广东美的厨房电器制造有限公司 | Control circuit, electric equipment and control method |
CN114301437A (en) * | 2021-12-31 | 2022-04-08 | 深圳市赛元微电子有限公司 | Microcontroller reset method and system |
TWI789290B (en) * | 2022-04-21 | 2023-01-01 | 新唐科技股份有限公司 | Control circuit and method for detecting glitch signal of bus |
CN119472617A (en) * | 2025-01-14 | 2025-02-18 | 潍柴动力股份有限公司 | Controller reset detection method, system, electronic device and storage medium |
-
2008
- 2008-09-28 CN CNA2008101692292A patent/CN101436095A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111135B (en) * | 2009-12-24 | 2013-10-23 | 上海华虹Nec电子有限公司 | Power-on reset circuit |
CN102761323A (en) * | 2012-06-29 | 2012-10-31 | 深圳市芯海科技有限公司 | Method and system for resetting digital circuit |
CN102761323B (en) * | 2012-06-29 | 2015-07-08 | 深圳市芯海科技有限公司 | Method and system for resetting digital circuit |
CN102981586A (en) * | 2012-11-23 | 2013-03-20 | 西安坤蓝电子技术有限公司 | Low-level reset circuit and reset method of multi-reset-source-to-multi-processor system |
CN104953993A (en) * | 2015-06-04 | 2015-09-30 | 深圳市芯海科技有限公司 | Resetting circuit with high reliability and ultra-low power consumption |
CN107438768A (en) * | 2016-09-30 | 2017-12-05 | 深圳博芯科技股份有限公司 | 2.4GHz wireless code watch circuits |
CN114063481A (en) * | 2020-07-30 | 2022-02-18 | 广东美的厨房电器制造有限公司 | Control circuit, electric equipment and control method |
CN114063481B (en) * | 2020-07-30 | 2024-05-17 | 广东美的厨房电器制造有限公司 | Control circuit, electric equipment and control method |
CN114301437A (en) * | 2021-12-31 | 2022-04-08 | 深圳市赛元微电子有限公司 | Microcontroller reset method and system |
CN114301437B (en) * | 2021-12-31 | 2022-10-28 | 深圳市赛元微电子股份有限公司 | Microcontroller reset method and system |
TWI789290B (en) * | 2022-04-21 | 2023-01-01 | 新唐科技股份有限公司 | Control circuit and method for detecting glitch signal of bus |
US11764769B1 (en) | 2022-04-21 | 2023-09-19 | Nuvoton Technology Corporation | Control circuit and method for detecting bus glitch signal |
CN119472617A (en) * | 2025-01-14 | 2025-02-18 | 潍柴动力股份有限公司 | Controller reset detection method, system, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101436095A (en) | Low voltage resetting method for microcontroller | |
EP2324407B1 (en) | Circuit having a low power mode | |
US7630841B2 (en) | Supervising and sequencing commonly driven power supplies with digital information | |
US10223017B2 (en) | Memory apparatus and energy-saving control method thereof | |
US9515552B2 (en) | Voltage regulator and voltage regulating method and chip using the same | |
CN107577189B (en) | Accurate timing wake-up method of automatic monitoring system | |
CN109557861B (en) | Cross-voltage domain power management circuit | |
CN101470689A (en) | Bidirectional sleep/wake method and device based on USB | |
WO2020151263A1 (en) | Power supply control device for chip, chip, and power supply control method therefor | |
CN105487638A (en) | Electronic circuit system and power consumption reducing method thereof | |
CN111427441B (en) | Power supply awakening method and device | |
TW201416845A (en) | Motherboard | |
US7958383B2 (en) | Computer system with adjustable data transmission rate | |
US6996732B2 (en) | Method of and apparatus for achieving “watch dog” functions in microcontrollers and microcomputers and the like, required to shut down for extended periods of time for energy-conservation purposes | |
CN111426866B (en) | Voltage monitoring system and method thereof | |
CN111159962A (en) | Low-power-consumption design method and system of embedded NVM chip | |
EP2948952B1 (en) | Power management for a memory device | |
TWI796881B (en) | Wake-up circuit and processing circuit utilizing the same | |
US20110138203A1 (en) | Universal serial bus apparatus for lowering power consumption | |
CN103678213B (en) | Universal serial bus hub and its control method | |
CN217546013U (en) | Power-on reset and power-off detection circuit and electronic equipment | |
CN103971505A (en) | Processing circuit and method for remote control receiving signal and household appliance with circuit | |
TWI740764B (en) | Signal generation circuit and operation system | |
CN102622278A (en) | Watchdog monitoring circuit and monitoring method | |
CN106325461A (en) | Information processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20090520 |