CN106788361A - MCU is long to press reset circuit - Google Patents

MCU is long to press reset circuit Download PDF

Info

Publication number
CN106788361A
CN106788361A CN201710208206.7A CN201710208206A CN106788361A CN 106788361 A CN106788361 A CN 106788361A CN 201710208206 A CN201710208206 A CN 201710208206A CN 106788361 A CN106788361 A CN 106788361A
Authority
CN
China
Prior art keywords
resistance
mcu
triode
circuit
diode
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.)
Granted
Application number
CN201710208206.7A
Other languages
Chinese (zh)
Other versions
CN106788361B (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.)
DONGGUAN GREENWAY BATTERY Co Ltd
Original Assignee
DONGGUAN GREENWAY BATTERY 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 DONGGUAN GREENWAY BATTERY Co Ltd filed Critical DONGGUAN GREENWAY BATTERY Co Ltd
Priority to CN201710208206.7A priority Critical patent/CN106788361B/en
Publication of CN106788361A publication Critical patent/CN106788361A/en
Application granted granted Critical
Publication of CN106788361B publication Critical patent/CN106788361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/22Modifications for ensuring a predetermined initial state when the supply voltage has been applied
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/22Modifications for ensuring a predetermined initial state when the supply voltage has been applied
    • H03K2017/226Modifications for ensuring a predetermined initial state when the supply voltage has been applied in bipolar transistor switches
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

Reset circuit is pressed the invention discloses a kind of MCU is long, including:Short circuit in accordance with the instructions and MCU reset circuits;The short circuit in accordance with the instructions includes:Resistance R1, resistance R2, resistance R3, light emitting diode D1 and triode Q1;The MCU reset circuits include:Triode Q2, the base stage of triode Q2 connects resistance R4 and R5 parallel with one another, R4 is grounded, R5 connects power supply by button KEY, the emitter stage connection MCU earth terminals of Q2, the colelctor electrode of Q2 is connected power supply, is connected with resistance R2 by resistance R7, is connected with parallel circuit capacitance C1, electric capacity C2 by parallel circuit resistance R8, diode D2 by resistance R6, and electric capacity C1, C2 and MCU earth terminal connection, the parallel circuit resistance R8, the output end of diode D2 connect the RST pins of MCU.The present invention is reliably separated short button with length, by same button, using different key time-triggered protocol different task by by long keying, realizing the reset to MCU by keypress function.

Description

MCU is long to press reset circuit
Technical field
The present invention relates to MCU control technology fields, more particularly to a kind of MCU is long presses reset circuit.
Background technology
Today's society development in science and technology is maked rapid progress, and emerging technology emerges in an endless stream, single-chip microcomputer(MCU)It was born in for 20th century 70 years Dai Mo, old science and technology at last, though the old sign not being eliminated of science and technology, life on the contrary all the more is flourishing.Trace it to its cause Single-chip microcomputer is primarily due to possess high integration, small volume, high reliability, control function strong, low-voltage, low-power consumption, be easy to life Many advantages, such as producing portable product, the excellent ratio of performance to price and easily extend, makes it enjoy the favor of electronic consumer markets.
The use of single-chip microcomputer be unable to do without and resets(RST), program fleet, powered-off fault, program card many exceptions of waiting indefinitely all need Reset single-chip microcomputer, and will otherwise break down the situation for being difficult to exclude.Using directly by MCU more than usually used reset circuit RST pins directly pull up or get off to reach the purpose of reset, can realize function simultaneously really in relatively simple occasion And use less component, but, when need by this trigger signal simultaneously be used for trigger two circuits of other circuits and MCU When, then the control to single circuit can not be realized, because if this two triggerings of function are same trigger source, two actions are same Shi Fasheng, it is impossible to reach the requirement that another circuit of control resets without triggering MCU, therefore, prior art needs to improve.
The content of the invention
An embodiment of the present invention technical problem to be solved is:There is provided a kind of MCU long by reset circuit, it is existing to solve There is problem present in technology.
One side according to embodiments of the present invention, there is provided a kind of MCU it is long press reset circuit, including:
Short circuit in accordance with the instructions and MCU reset circuits;
The short circuit in accordance with the instructions includes:Resistance R1, resistance R2, resistance R3, light emitting diode D1 and triode Q1, the resistance R2 is connected with the base stage of triode Q1, and described resistance R1 one end is connected with power supply, and the other end is connected with the light emitting diode D1 It is connected to afterwards on the colelctor electrode of triode Q1, the resistance R3 is connected with the emitter stage of the triode Q1, the resistance R3's The earth terminal of another termination MCU;
The MCU reset circuits include:The base stage connection resistance R4 and resistance R5 of triode Q2, the triode Q2, the electricity Resistance R4 and resistance R5 is in parallel, and resistance R4 ground connection, resistance R5 is connected with button KEY, and the other end of button KEY is connected with power supply, institute The emitter stage connection MCU earth terminals of triode Q2 are stated, the colelctor electrode of the triode Q2 connects power supply, described three by resistance R6 The colelctor electrode of pole pipe Q2 is connected by resistance R7 with resistance R2, realizes that the base stage of triode Q1 connects with the colelctor electrode of triode Q2 Connect, the colelctor electrode of the triode Q2 is connected by parallel circuit resistance R8, diode D2 and parallel circuit capacitance C1, electric capacity C2 Connect, electric capacity C1, C2 and MCU earth terminal connection, the parallel circuit resistance R8, the output end of diode D2 connect MCU's RST pins;
The MCU earth terminals are grounded by resistance R9.
Based in above-mentioned MCU of the invention another embodiment for pressing reset circuit long, the resistance R9 is 0 ohm.
In based on above-mentioned MCU of the invention another embodiment for pressing reset circuit long, when the button KEY is pressed in short-term, The triode Q2 conductings of the MCU reset circuits, so that the triode Q1 conductings of short circuit in accordance with the instructions, light emitting diode D1 Bright, the colelctor electrode parallel circuit resistance R8 of triode Q2, the output end of diode D2 make the RST pins fall of MCU not enough To trigger MCU resets, MCU does not reset.
In based on above-mentioned MCU of the invention another embodiment for pressing reset circuit long, the button KEY is pressed for a long time When, light emitting diode D1 conductings, and electric capacity C1 is by resistance R8 and triode Q2 discharge time long enoughs, the current collection of triode Q2 Pole parallel circuit resistance R8, the output end of diode D2 make the RST pin levels of MCU drop to triggering MCU to reset, and MCU resets.
In based on above-mentioned MCU of the invention another embodiment for pressing reset circuit long, when the button KEY unclamps, power supply Electric capacity C2 is charged rapidly by resistance R6 and diode D2, the RST pins of MCU rapidly return back to power level, and MCU is normal Work.
Based in above-mentioned MCU of the invention another embodiment for pressing reset circuit long, the resistance R6 is 1M ohm.
Compared with prior art, the present invention includes advantages below:
The present invention is carried out by the difference to button duration, realization to two separation of task, by short button, is realized to referring to Show lighting for lamp, by long keying, realize the reset to MCU, reliably separate short button by keypress function with length, pass through Same button, using different key time-triggered protocol different task, circuit structure of the invention is simple, practical.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used in technology description to do one simply to introduce, it should be apparent that, drawings in the following description are of the invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other accompanying drawings.
Fig. 1 is the flow chart of MCU of the invention one embodiment by reset circuit long.
In figure:1 short circuit in accordance with the instructions, 2 MCU reset circuits.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment only It is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
It is long to a kind of MCU for providing of the invention with reference to the accompanying drawings and examples to be carried out in more detail by reset circuit It is bright.
Fig. 1 is the flow chart of MCU of the invention one embodiment by reset circuit long, as shown in figure 1, the embodiment MCU is long to be included by reset circuit:
Short circuit in accordance with the instructions 1 and MCU reset circuits 2;
The short circuit in accordance with the instructions 1 includes:Resistance R1, resistance R2, resistance R3, light emitting diode D1 and triode Q1, the electricity Resistance R2 is connected with the base stage of triode Q1, and described resistance R1 one end is connected with power supply, and the other end is gone here and there with the light emitting diode D1 It is connected to after connection on the colelctor electrode of triode Q1, the resistance R3 is connected with the emitter stage of the triode Q1, the resistance R3 Another termination MCU earth terminal;
The MCU reset circuits 2 include:The base stage connection resistance R4 and resistance R5 of triode Q2, the triode Q2, the electricity Resistance R4 and resistance R5 is in parallel, and resistance R4 ground connection, resistance R5 is connected with button KEY, and the other end of button KEY is connected with power supply, institute The emitter stage connection MCU earth terminals of triode Q2 are stated, the colelctor electrode of the triode Q2 connects power supply, described three by resistance R6 The colelctor electrode of pole pipe Q2 is connected by resistance R7 with resistance R2, realizes that the base stage of triode Q1 connects with the colelctor electrode of triode Q2 Connect, the colelctor electrode of the triode Q2 is connected by parallel circuit resistance R8, diode D2 and parallel circuit capacitance C1, electric capacity C2 Connect, electric capacity C1, C2 and MCU earth terminal connection, the parallel circuit resistance R8, the output end of diode D2 connect MCU's RST pins;
The colelctor electrode for setting triode Q2 is first node by the output end of parallel circuit resistance R8, diode D2;
The MCU earth terminals are grounded by resistance R9.
The resistance R9 is 0 ohm, and the resistance R6 is 1M ohm.
When circuit is in stable state, the level of node R ST is supply voltage, and MCU is in normal operating conditions, first node Power level is also at, triode Q2 is not turned on, and light emitting diode D1 does not light;
When the button KEY is pressed in short-term, the triode Q2 conductings of the MCU reset circuits 2, so that short circuit 1 in accordance with the instructions Triode Q1 conductings, light emitting diode D1 is bright, the colelctor electrode parallel circuit resistance R8 of triode Q2, the output end of diode D2 Make the RST pin falls of MCU be not enough to triggering MCU to reset, MCU does not reset;
In short button KEY, positive source is switched to the base stage of triode Q1, turns on triode Q1, and then by first segment The voltage pull-down of point, so as to cause triode Q1 emitter-base bandgap grading positively biaseds, triode Q2 conductings make light emitting diode D1 light;And in button During pressing, electric capacity C2 is discharged over the ground by resistance R6 and triode Q2, causes node R ST current potentials by original power supply electricity Pressure is slow to be declined, but it is short by time e insufficient to make the current potential of RST to drop to the degree for being enough to trigger MCU resets, it is therefore short by pressing Key will not trigger MCU resets.
When the button KEY is pressed for a long time, light emitting diode D1 conductings, and electric capacity C1 passes through resistance R8 and triode Q2 Discharge time long enough, the colelctor electrode parallel circuit resistance R8 of triode Q2, the output end of diode D2 make the RST pins of MCU Level drops to triggering MCU and resets, and MCU resets.
When the button KEY unclamps, power supply is charged rapidly by resistance R6 and diode D2 to electric capacity C2, MCU's RST pins rapidly return back to power level, MCU normal works.
It is long to a kind of MCU provided by the present invention above to be described in detail by reset circuit, tool used herein Body example is set forth to principle of the invention and implementation method, and the explanation of above example is only intended to help and understands this hair Bright method and its core concept;Simultaneously for those of ordinary skill in the art, according to thought of the invention, specific real Apply and be will change in mode and range of application, in sum, this specification content should not be construed as to limit of the invention System.
Finally it should be noted that:The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, Although being described in detail to the present invention with reference to the foregoing embodiments, for a person skilled in the art, it still may be used Modified with to the technical scheme described in foregoing embodiments, or equivalent carried out to which part technical characteristic, All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., should be included in of the invention Within protection domain.

Claims (6)

1. a kind of MCU is long presses reset circuit, it is characterised in that including:Short circuit in accordance with the instructions and MCU reset circuits;
The short circuit in accordance with the instructions includes:Resistance R1, resistance R2, resistance R3, light emitting diode D1 and triode Q1, the resistance R2 is connected with the base stage of triode Q1, and described resistance R1 one end is connected with power supply, and the other end is connected with the light emitting diode D1 It is connected to afterwards on the colelctor electrode of triode Q1, the resistance R3 is connected with the emitter stage of the triode Q1, the resistance R3's The earth terminal of another termination MCU;
The MCU reset circuits include:The base stage connection resistance R4 and resistance R5 of triode Q2, the triode Q2, the electricity Resistance R4 and resistance R5 is in parallel, and resistance R4 ground connection, resistance R5 is connected with button KEY, and the other end of button KEY is connected with power supply, institute The emitter stage connection MCU earth terminals of triode Q2 are stated, the colelctor electrode of the triode Q2 connects power supply, described three by resistance R6 The colelctor electrode of pole pipe Q2 is connected by resistance R7 with resistance R2, realizes that the base stage of triode Q1 connects with the colelctor electrode of triode Q2 Connect, the colelctor electrode of the triode Q2 is connected by parallel circuit resistance R8, diode D2 and parallel circuit capacitance C1, electric capacity C2 Connect, electric capacity C1, C2 and MCU earth terminal connection, the parallel circuit resistance R8, the output end of diode D2 connect MCU's RST pins;
The MCU earth terminals are grounded by resistance R9.
2. circuit according to claim 1, it is characterised in that the resistance R9 is 0 ohm.
3. circuit according to claim 1, it is characterised in that when the button KEY is pressed in short-term, the MCU resets electricity The triode Q2 conductings on road, so that the triode Q1 of short circuit in accordance with the instructions is turned on, light emitting diode D1 is bright, the collection of triode Q2 Electrode parallel circuit resistance R8, the output end of diode D2 make the RST pin falls of MCU be not enough to triggering MCU resets, MCU does not reset.
4. circuit according to claim 1, it is characterised in that when the button KEY is pressed for a long time, light emitting diode D1 Conducting, and electric capacity C1 is by resistance R8 and triode Q2 discharge time long enoughs, the colelctor electrode parallel circuit resistance of triode Q2 R8, the output end of diode D2 make the RST pin levels of MCU drop to triggering MCU resets, and MCU resets.
5. circuit according to claim 1, it is characterised in that when the button KEY unclamps, power supply passes through resistance R6 and two Pole pipe D2 charges rapidly to electric capacity C2, and the RST pins of MCU rapidly return back to power level, MCU normal works.
6. the circuit according to any one of claim 1 to 5, it is characterised in that the resistance R6 is 1M ohm.
CN201710208206.7A 2017-03-31 2017-03-31 MCU long-press reset circuit Active CN106788361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710208206.7A CN106788361B (en) 2017-03-31 2017-03-31 MCU long-press reset circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710208206.7A CN106788361B (en) 2017-03-31 2017-03-31 MCU long-press reset circuit

Publications (2)

Publication Number Publication Date
CN106788361A true CN106788361A (en) 2017-05-31
CN106788361B CN106788361B (en) 2023-04-11

Family

ID=58965692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710208206.7A Active CN106788361B (en) 2017-03-31 2017-03-31 MCU long-press reset circuit

Country Status (1)

Country Link
CN (1) CN106788361B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153402A (en) * 2017-12-13 2018-06-12 安徽皖通邮电股份有限公司 It is a kind of to identify long-press and the method for short-press reset key

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201789480U (en) * 2010-09-02 2011-04-06 中兴通讯股份有限公司 Circuit reusing power on/off key for realizing reset function and portable mobile terminal
CN104020705A (en) * 2014-06-23 2014-09-03 苏州塔可盛电子科技有限公司 Power monitoring circuit with resetting function
US20140308994A1 (en) * 2012-09-12 2014-10-16 Guang Dong Oppo Mobile Telecommunications Copr., Ltd Level jump reset ic design circuit
WO2016112744A1 (en) * 2015-01-15 2016-07-21 无锡职业技术学院 Anti-latch-up effect microprocessor reset circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201789480U (en) * 2010-09-02 2011-04-06 中兴通讯股份有限公司 Circuit reusing power on/off key for realizing reset function and portable mobile terminal
US20140308994A1 (en) * 2012-09-12 2014-10-16 Guang Dong Oppo Mobile Telecommunications Copr., Ltd Level jump reset ic design circuit
CN104020705A (en) * 2014-06-23 2014-09-03 苏州塔可盛电子科技有限公司 Power monitoring circuit with resetting function
WO2016112744A1 (en) * 2015-01-15 2016-07-21 无锡职业技术学院 Anti-latch-up effect microprocessor reset circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153402A (en) * 2017-12-13 2018-06-12 安徽皖通邮电股份有限公司 It is a kind of to identify long-press and the method for short-press reset key
CN108153402B (en) * 2017-12-13 2021-06-01 安徽皖通邮电股份有限公司 Method for identifying long-press and short-press reset keys

Also Published As

Publication number Publication date
CN106788361B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN205751476U (en) A kind of power supply circuits of OLED display screen
CN105137260B (en) A kind of active antenna state detection circuit
CN202003174U (en) Remote controller and power supply control circuit of same
CN106788361A (en) MCU is long to press reset circuit
CN202652594U (en) Light emitting diode driver possessing protection path
CN206790463U (en) MCU long-press reset circuits
CN106973479B (en) Switching circuit system for intelligent lamp and switching method thereof
CN209357955U (en) Hot plug connector and electronic equipment
CN105718017A (en) Electronic device and power supply management method
CN101685111A (en) Novel zero crossing detection circuit
CN205622225U (en) LED lamp strip short -circuit protection circuit based on boost circuit
CN107911903A (en) Led drive circuit and mobile terminal
CN209313812U (en) Button multiplexing circuit and NB-IOT equipment with button multiplexing circuit
CN210225230U (en) Power supply voltage output setting circuit and external control circuit thereof
CN206711916U (en) LED pad structures
CN107707703A (en) Mobile phone screen display module and mobile phone
CN204214981U (en) Cable sequence correction instrument
CN207319427U (en) A kind of wireless low-power consumption danger button
CN209133195U (en) A kind of vehicle mounted guidance LED frequency spectrum display device
CN103207320A (en) Capacitor detection circuit
CN208507168U (en) A kind of Vehicular display device control panel
CN206946862U (en) Luminous advertisement publicizes display board
CN209248276U (en) A kind of circuit that the power consumption reducing SOC keeps the frequency of CPU constant simultaneously
CN208094840U (en) LED drive circuit, backlight module and liquid crystal display
CN209435204U (en) A kind of button multiplexing circuit of RST and removing CMOS

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523000 Tongsha New Industrial Park, Dongcheng Street, Dongguan City, Guangdong Province

Applicant after: Guangdong Boliwei Technology Co.,Ltd.

Address before: 523000 Tongsha New Industrial Park, Dongcheng District, Dongcheng District, Dongguan City, Guangdong Province

Applicant before: DONGGUAN GREENWAY BATTERY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant