CN104914966B - A kind of single-chip microcontroller Self-disconnecting restarts circuit - Google Patents
A kind of single-chip microcontroller Self-disconnecting restarts circuit Download PDFInfo
- Publication number
- CN104914966B CN104914966B CN201510311280.2A CN201510311280A CN104914966B CN 104914966 B CN104914966 B CN 104914966B CN 201510311280 A CN201510311280 A CN 201510311280A CN 104914966 B CN104914966 B CN 104914966B
- Authority
- CN
- China
- Prior art keywords
- chip
- mos pipe
- channel mos
- resistance
- semiconductor
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Electronic Switches (AREA)
- Debugging And Monitoring (AREA)
- Power Sources (AREA)
- Microcomputers (AREA)
Abstract
The invention discloses a kind of single-chip microcontroller Self-disconnectings to restart circuit, it is connect with single-chip microcontroller, including switch chip U1, reset chip U2, P-channel metal-oxide-semiconductor Q1, N-channel MOS pipe Q2, resistance R1, resistance R2, resistance R3, capacitor C1, capacitor C2, power supply VCC and controlled source VCC_CTRL.The present invention is when single-chip microcontroller is crashed due to certain failure, the watchdog signal output end of single-chip microcontroller stops output watchdog signal, reset chip is when being more than not receive watchdog signal in the default time limit, the reset signal output end of reset chip exports low level, since the normally open end of switch chip U1 is connect with the common end of switch chip U1, the grid voltage of N-channel MOS pipe Q2 is dragged down, so that N-channel MOS pipe Q2 is disconnected, the drain voltage of N-channel MOS pipe Q2 is drawn high by resistance R3, the grid voltage of P-channel metal-oxide-semiconductor Q1 is drawn high, P-channel metal-oxide-semiconductor Q1 is disconnected, realize controlled source VCC_CTRL power-off, power supply VCC is kept powered on state, circuit restarting.
Description
Technical field
The present invention relates to embedded system technology fields, restart circuit more particularly to a kind of single-chip microcontroller Self-disconnecting.
Background technique
Currently, reset circuit of SCM generallys use the realization of Special reset chip, however for stronger interference environment, such as
Transmission line of electricity on-line checking route etc., causes Special reset chip to be unable to normal reset single-chip microcontroller for some reason, causes dead
Machine, at this point, system, which re-powers, to be worked normally after only passing through cutting microcontroller power supply and maintaining the off-position several seconds.
Summary of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of single-chip microcontroller Self-disconnectings to restart circuit, works as list
When piece machine is crashed due to certain failure, the watchdog signal output end of single-chip microcontroller stops output watchdog signal, and reset chip exists
When not receiving watchdog signal more than the default time limit, the reset signal output end of reset chip exports low level, due to switch
The normally open end of chip U1 is connect with the common end of switch chip U1, and the grid voltage of N-channel MOS pipe Q2 is dragged down, so that N ditch
Road metal-oxide-semiconductor Q2 is disconnected, and the drain voltage of N-channel MOS pipe Q2 is drawn high by resistance R3, i.e., draws the grid voltage of P-channel metal-oxide-semiconductor Q1
Height, P-channel metal-oxide-semiconductor Q1 are disconnected, and realize controlled source VCC_CTRL power-off, and power supply VCC is kept powered on state, circuit weight
New starting.
The purpose of the present invention is achieved through the following technical solutions: a kind of single-chip microcontroller Self-disconnecting restarts circuit, with list
The connection of piece machine, including switch chip U1, reset chip U2, P-channel metal-oxide-semiconductor Q1, N-channel MOS pipe Q2, resistance R1, resistance R2, electricity
Hinder R3, capacitor C1, capacitor C2, power supply VCC and controlled source VCC_CTRL, the power end and controlled source of reset chip
VCC_CTRL connection, the watchdog signal input terminal of reset chip and the watchdog signal output end of single-chip microcontroller connect, reset coil
The reset signal output end of piece is connect with the normally open end of switch chip U1, the control signal of switch chip U1 by resistance R1 with
Controlled source VCC_CTRL electrical connection, the control signal of switch chip U1 are grounded by capacitor C1, the power supply of switch chip U1
End is electrically connected with power supply VCC, and the common end of switch chip U1 is connect with the grid of N-channel MOS pipe Q2, N-channel MOS pipe Q2
Grid connect with power supply VCC by resistance R2, the drain electrode of N-channel MOS pipe Q2 passes through resistance R3 and power supply VCC company
It connects, the grid of N-channel MOS pipe Q2 is grounded by capacitor C2, the source electrode ground connection of N-channel MOS pipe Q2, the drain electrode of N-channel MOS pipe Q2
It is connect with the grid of P-channel metal-oxide-semiconductor Q1, the source electrode of P-channel metal-oxide-semiconductor Q1 is connect with power supply VCC, the leakage of P-channel metal-oxide-semiconductor Q1
Pole is connect with controlled source VCC_CTRL, the power end connection of controlled source VCC_CTRL and single-chip microcontroller.
The switch chip U1 is single-pole double-throw switch (SPDT).
The model TS5A3159 of the switch chip U1.
The model SI2347DS of the P-channel metal-oxide-semiconductor Q1, the model BSS138 of N-channel MOS pipe Q2.
The beneficial effects of the present invention are: when single-chip microcontroller is crashed due to certain failure, the watchdog signal output of single-chip microcontroller
End stops output watchdog signal, and reset chip when being more than not receive watchdog signal in the default time limit, answer by reset chip
Position signal output end exports low level, since the normally open end of switch chip U1 is connect with the common end of switch chip U1, by N ditch
The grid voltage of road metal-oxide-semiconductor Q2 drags down, so that N-channel MOS pipe Q2 is disconnected, the drain voltage of N-channel MOS pipe Q2 is drawn by resistance R3
Height is drawn high the grid voltage of P-channel metal-oxide-semiconductor Q1, P-channel metal-oxide-semiconductor Q1 is disconnected, and realizes controlled source VCC_CTRL power-off,
Power supply VCC is kept powered on state, circuit restarting.
Detailed description of the invention
Fig. 1 is the circuit diagram that single-chip microcontroller Self-disconnecting of the present invention restarts circuit.
Specific embodiment
Technical solution of the present invention is described in further detail with reference to the accompanying drawing, but protection scope of the present invention is not limited to
It is as described below.
As shown in Figure 1, a kind of single-chip microcontroller Self-disconnecting restarts circuit, it is connect with single-chip microcontroller, including switch chip U1, reset coil
Piece U2, P-channel metal-oxide-semiconductor Q1, N-channel MOS pipe Q2, resistance R1, resistance R2, resistance R3, capacitor C1, capacitor C2, power supply VCC
It is connect with the power end of controlled source VCC_CTRL, reset chip with controlled source VCC_CTRL, the house dog of reset chip
The connection of the watchdog signal output end of signal input part and single-chip microcontroller, the reset signal output end and switch chip U1 of reset chip
Normally open end connection, the control signal of switch chip U1 is electrically connected by resistance R1 with controlled source VCC_CTRL, switch core
The control signal of piece U1 is grounded by capacitor C1, and the power end of switch chip U1 is electrically connected with power supply VCC, switch chip
The common end of U1 is connect with the grid of N-channel MOS pipe Q2, and the grid of N-channel MOS pipe Q2 passes through resistance R2 and power supply VCC
The drain electrode of connection, N-channel MOS pipe Q2 is connect by resistance R3 with power supply VCC, and the grid of N-channel MOS pipe Q2 passes through capacitor
C2 ground connection, the source electrode ground connection of N-channel MOS pipe Q2, the drain electrode of N-channel MOS pipe Q2 are connect with the grid of P-channel metal-oxide-semiconductor Q1, P ditch
The source electrode of road metal-oxide-semiconductor Q1 is connect with power supply VCC, and the drain electrode of P-channel metal-oxide-semiconductor Q1 is connect with controlled source VCC_CTRL, by
The power end for controlling power supply VCC_CTRL and single-chip microcontroller connects.
The switch chip U1 is single-pole double-throw switch (SPDT).
The model TS5A3159 of the switch chip U1.
The model SI2347DS of the P-channel metal-oxide-semiconductor Q1, the model BSS138 of N-channel MOS pipe Q2.
When work, power supply VCC is powered on, and switch chip U1 is powered by power supply VCC, and the control of switch chip U1 is defeated
Enter end not power on, the common end of switch chip U1 is connected to the normal-closed end of switch chip U1, power supply VCC by resistance R2 to
Capacitor C2 charging, charging time are determined that the voltage of capacitor C2 reaches the thresholding electricity of N-channel MOS pipe Q2 by charge constant t2
After pressure, N-channel MOS pipe Q2 conducting, the drain electrode of N-channel MOS pipe Q2 is connected with source electrode, since the source electrode of N-channel MOS pipe Q2 connects
Ground, to drag down the grid voltage of P-channel metal-oxide-semiconductor Q1 so that P-channel metal-oxide-semiconductor Q1 is connected, thus connect power supply VCC with
Controlled source VCC_CTRL;Controlled source VCC_CTRL powers to reset chip, and the reset signal output end of reset chip is defeated
High level out, controlled source VCC_CTRL are charged by resistance R1 to capacitor C1, and the charging time is determined by charge constant t1
Fixed, after reaching threshold voltage, the common end of switch chip U1 is switched to normally open end, is thus connected to the reset signal of reset chip
Output end keeps high level, guarantees P-channel metal-oxide-semiconductor Q1 conducting, realizes that power supply VCC and controlled source VCC_CTRL connects
It is logical.
When single-chip microcontroller is crashed due to certain failure, the watchdog signal output end of single-chip microcontroller stops output house dog letter
Number, for reset chip when being more than not receive watchdog signal in the default time limit, the reset signal output end output of reset chip is low
Level, since the normally open end of switch chip U1 is connect with the common end of switch chip U1, by the grid voltage of N-channel MOS pipe Q2
It drags down, so that N-channel MOS pipe Q2 is disconnected, the drain voltage of N-channel MOS pipe Q2 is drawn high by resistance R3, i.e., by P-channel metal-oxide-semiconductor Q1
Grid voltage draw high, P-channel metal-oxide-semiconductor Q1 is disconnected, and realizes controlled source VCC_CTRL power-off, power supply VCC is kept powered on
State, circuit restarting.
In the present embodiment, the resistance value of resistance R1 is 20K Ω, and the resistance value of resistance R2 is 499K Ω, and the capacitance of capacitor C1 is
The capacitance of 10 μ F, capacitor C2 be 10 μ F, charge constant t1=R1*C1=0.2S, charge constant t2=R2*C2=
4.99S.The Self-disconnecting that Self-disconnecting restarts circuit can be changed by the value of modification resistance R1, resistance R2, capacitor C1 and capacitor C2
Reboot time.
Claims (4)
1. a kind of single-chip microcontroller Self-disconnecting restarts circuit, it is connect with single-chip microcontroller, it is characterised in that: including switch chip U1, reset coil
Piece U2, P-channel metal-oxide-semiconductor Q1, N-channel MOS pipe Q2, resistance R1, resistance R2, resistance R3, capacitor C1, capacitor C2, power supply VCC
It is connect with the power end of controlled source VCC_CTRL, reset chip with controlled source VCC_CTRL, the house dog of reset chip
The connection of the watchdog signal output end of signal input part and single-chip microcontroller, the reset signal output end and switch chip U1 of reset chip
Normally open end connection, the control signal of switch chip U1 is electrically connected by resistance R1 with controlled source VCC_CTRL, switch core
The control signal of piece U1 is grounded by capacitor C1, and the power end of switch chip U1 is electrically connected with power supply VCC, switch chip
The common end of U1 is connect with the grid of N-channel MOS pipe Q2, and the grid of N-channel MOS pipe Q2 passes through resistance R2 and power supply VCC
The drain electrode of connection, N-channel MOS pipe Q2 is connect by resistance R3 with power supply VCC, and the grid of N-channel MOS pipe Q2 passes through capacitor
C2 ground connection, the source electrode ground connection of N-channel MOS pipe Q2, the drain electrode of N-channel MOS pipe Q2 are connect with the grid of P-channel metal-oxide-semiconductor Q1, P ditch
The source electrode of road metal-oxide-semiconductor Q1 is connect with power supply VCC, and the drain electrode of P-channel metal-oxide-semiconductor Q1 is connect with controlled source VCC_CTRL, by
The power end for controlling power supply VCC_CTRL and single-chip microcontroller connects;
When single-chip microcontroller is crashed due to certain failure, the watchdog signal output end of single-chip microcontroller stops output watchdog signal, multiple
For position chip when being more than not receive watchdog signal in the default time limit, the reset signal output end of reset chip exports low level,
Since the normally open end of switch chip U1 is connect with the common end of switch chip U1, the grid voltage of N-channel MOS pipe Q2 is dragged down,
So that N-channel MOS pipe Q2 is disconnected, the drain voltage of N-channel MOS pipe Q2 is drawn high by resistance R3, i.e., by the grid of P-channel metal-oxide-semiconductor Q1
Pole tension is drawn high, and P-channel metal-oxide-semiconductor Q1 is disconnected, and realizes controlled source VCC_CTRL power-off, and power supply VCC is kept powered on shape
State, circuit restarting.
2. a kind of single-chip microcontroller Self-disconnecting according to claim 1 restarts circuit, it is characterised in that: the switch chip U1 is
Single-pole double-throw switch (SPDT).
3. a kind of single-chip microcontroller Self-disconnecting according to claim 2 restarts circuit, it is characterised in that: the switch chip U1's
Model TS5A3159.
4. a kind of single-chip microcontroller Self-disconnecting according to claim 1 restarts circuit, it is characterised in that: the P-channel metal-oxide-semiconductor Q1
Model SI2347DS, the model BSS138 of N-channel MOS pipe Q2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510311280.2A CN104914966B (en) | 2015-06-09 | 2015-06-09 | A kind of single-chip microcontroller Self-disconnecting restarts circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510311280.2A CN104914966B (en) | 2015-06-09 | 2015-06-09 | A kind of single-chip microcontroller Self-disconnecting restarts circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104914966A CN104914966A (en) | 2015-09-16 |
CN104914966B true CN104914966B (en) | 2019-04-12 |
Family
ID=54084112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510311280.2A Active CN104914966B (en) | 2015-06-09 | 2015-06-09 | A kind of single-chip microcontroller Self-disconnecting restarts circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104914966B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106301313B (en) * | 2016-08-22 | 2018-09-18 | 安徽东风机电科技股份有限公司 | A kind of power-off start-up circuit with Address Recognition |
CN106411301B (en) * | 2016-11-11 | 2024-04-19 | 国网山东省电力公司临邑县供电公司 | High-low level mixed effective switch reset circuit |
CN106484064B (en) * | 2016-11-22 | 2023-08-25 | 深圳市长龙铁路电子工程有限公司 | Power supply control circuit of singlechip system |
CN111625074A (en) * | 2020-04-24 | 2020-09-04 | 北京海林节能科技股份有限公司 | Wireless module crash prevention method and circuit and wireless communication equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101860624A (en) * | 2010-06-21 | 2010-10-13 | 中兴通讯股份有限公司 | A kind of crash automatic restart method and mobile phone |
CN102163071A (en) * | 2011-01-20 | 2011-08-24 | 海能达通信股份有限公司 | Control circuit and power control method during reset thereof |
CN102866928A (en) * | 2012-10-12 | 2013-01-09 | 福建师范大学 | Watchdog circuit with power supply managing function |
CN204650218U (en) * | 2015-06-09 | 2015-09-16 | 四川汇源光通信有限公司 | A kind of single-chip microcomputer Self-disconnecting restarts circuit |
-
2015
- 2015-06-09 CN CN201510311280.2A patent/CN104914966B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101860624A (en) * | 2010-06-21 | 2010-10-13 | 中兴通讯股份有限公司 | A kind of crash automatic restart method and mobile phone |
CN102163071A (en) * | 2011-01-20 | 2011-08-24 | 海能达通信股份有限公司 | Control circuit and power control method during reset thereof |
CN102866928A (en) * | 2012-10-12 | 2013-01-09 | 福建师范大学 | Watchdog circuit with power supply managing function |
CN204650218U (en) * | 2015-06-09 | 2015-09-16 | 四川汇源光通信有限公司 | A kind of single-chip microcomputer Self-disconnecting restarts circuit |
Also Published As
Publication number | Publication date |
---|---|
CN104914966A (en) | 2015-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204886403U (en) | External power and backup battery's seamless handover circuit | |
CN104914966B (en) | A kind of single-chip microcontroller Self-disconnecting restarts circuit | |
CN104377812B (en) | A kind of multi input power supply switch circuit | |
CN203481783U (en) | Short circuit and overcurrent protection circuit and mass production test equipment | |
CN203859558U (en) | Electronic equipment and external charging circuit thereof | |
CN104935042A (en) | Detection and protection circuit used between uninterruptible power supply (UPS) and external accumulation battery | |
CN108123509A (en) | A kind of charge control method and its relevant apparatus | |
CN106843442A (en) | Vehicle mounted multimedia Low-power-consumptiodormancy dormancy device and method based on data protection | |
CN105048422A (en) | Switch transistor voltage drop holding circuit and application of switch transistor voltage drop holding circuit in lithium battery protection circuit | |
CN203904725U (en) | Door opening protecting circuit of washing machine | |
CN103353569A (en) | Relay connection state detecting apparatus | |
CN205229961U (en) | Anti breech lock power -off reset circuit of CMOS singlechip | |
CN204732921U (en) | A kind of for the detection between UPS and external storage battery and protective circuit | |
CN107733413B (en) | Intelligent switch circuit and intelligent terminal of pre-installation battery system | |
CN108488948B (en) | Air conditioner, air conditioner control system and outdoor unit switch circuit | |
CN203456941U (en) | Efficient battery and external power supply automatic switching circuit having multiple protection function | |
CN204650218U (en) | A kind of single-chip microcomputer Self-disconnecting restarts circuit | |
CN105182833A (en) | Double-power-supply power supply and power-off sequential control device and method | |
CN104333113B (en) | A kind of power circuit | |
CN202711169U (en) | Microprogrammed control unit (MCU) power supply management system | |
CN203722469U (en) | Contactless power source switching circuit | |
CN204089330U (en) | A kind of adaptive power-supply battery supplies power with double circuit device | |
CN103941837B (en) | A kind of self-powered microcomputer protecting device microprocessor management circuit | |
CN104297675B (en) | A kind of breaker point, combined floodgate total state monitoring device | |
CN205015670U (en) | Dual power supply and outage time schedule control device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |