A kind of reset circuit of MCU
Technical field
The utility model relates to reset circuit technical fields, and in particular, to a kind of reset circuit of MCU.
Background technique
Traditional MCU reset circuit is answered generally by way of the reset terminal of MCU (end Reset) external RC circuit
Position, the principle of this circuit reset is the low and high level that MCU reset terminal (end Reset) is controlled by the charge and discharge of RC component
Variation, and then realize the purpose for making program initialization in MCU;It is found in actual product use, referring to Fig.1, when external RC electricity
Road is to gradually rise up to 5V by the 0V of voltage to power to MCU in quick " powering on " the in the process start-up circuit of MCU, MCU
Starting operation, when MCU voltage step-down is also to be gradually decreased down by the 5V of voltage to external RC circuit during quick " power down "
0V just stops working.
Due to existing MCU interior design or technique etc., the voltage provided to MCU in 3.45V between 5V, MCU
In starting working condition, voltage in MCU of especially external RC circuit during quick " power down ", in available circuit
Just stopping working until the voltage in MCU drops to 3.45V or less MCU of being gradually reduced, during MCU stops working
The voltage of 5V~3.45V is to exist for some time, and the MCU within this time in circuit is easy to appear repeatedly in start and stop
Two states are alternately performed also is alternately performed influence so as to cause the load of MCU control in the case where starting or stoping work two states
The service life of load also reduces the performance of load, and it is inconsistent also to will appear the operation of system and circuit practical operation in circuit
Phenomenon.
Therefore, the reset circuit of MCU a kind of need to be provided, so as to solve the deficiencies in the prior art.
Utility model content
In order to overcome the deficiencies of the prior art, the utility model provides a kind of reset circuit of MCU, the reset of the MCU
Circuit is by the triode ON in reset circuit or ends the realization of change reset circuit power supply process of rising or falling reliably
MCU reset function.
The technical solution of the utility model is as follows:
A kind of reset circuit of MCU, the reset electricity being connect including power input and respectively with the power input
Road and MCU chip U1, the reset circuit are connect with the MCU chip U1;The reset circuit includes the first triode Q1, the
Two triode Q2 and reseting controling end RESET, the power input one second resistance R2 of series connection and the first triode Q1
Base stage connection, the collector of the first triode Q1 base stage and the power input with the second triode Q2 respectively
End connection, the collector of the second triode Q2 are connect with the reseting controling end RESET, the first triode Q1 and institute
The emitter for stating the second triode Q2 is grounded.
Preferably, the voltage of the power input input is direct current 5V.
Preferably, the reset circuit further includes first capacitor C1, one end of the reseting controling end RESET with it is described
MCU chip U1 connection, the reseting controling end RESET of the other end connect and are grounded after the first capacitor C1.
Preferably, series connection one the 4th between the base stage of the first triode Q1 and the collector of the second triode Q2
Resistance R4.
Preferably, the second resistance R2 also connect one the 5th resistance R5 ground connection, the second resistance R2 and the described 5th
Resistance R5 is for dividing.
The utility model has the following beneficial effects: compared with prior art, the reset circuit of the MCU passes through in reset circuit the
The conducting of one triode and the second triode with or cut-off so that the voltage rapid pressure that reseting controling end exports in reset circuit
Or reliable MCU reset function is realized in decompression, and then be ensure that and be can be carried out normal initialization when MCU chip powers on, and ensure that journey
The work of sequence normal table improves and connect payload security and service life with MCU chip system.
Detailed description of the invention:
Fig. 1 is the process schematic that reset circuit powers on power-off voltage in the prior art.
Fig. 2 is the circuit structure diagram of the reset circuit of MCU described in the utility model.
Fig. 3 is the process schematic that the reset circuit of MCU described in the utility model powers on and powers off voltage.
Specific embodiment
In order to make the purpose of utility model of the utility model, technical solution and technical effect are more clearly understood, tie below
Specific embodiment is closed to be described further the utility model.It should be understood that specific embodiment described herein, be only used for
It explains the utility model, is not used to limit the utility model.
It should be noted that it can directly on the other element when element is referred to as " being fixed on " another element
Or there may also be elements placed in the middle.When an element is considered as " connection " another element, it, which can be, is directly connected to
To another element or it may be simultaneously present centering elements.Term as used herein " vertical ", " horizontal ", " left side ",
" right side " and similar statement for illustrative purposes only, are not meant to be the only embodiment.
Unless otherwise defined, all technical and scientific terms used herein are led with the technology for belonging to the utility model
The normally understood meaning of the technical staff in domain is identical.Terminology used in the description of the utility model herein only be
The purpose of description specific embodiment, it is not intended that in limitation the utility model.Term " and or " used herein packet
Include any and all combinations of one or more related listed items.
Referring to Fig. 2, the reset circuit of the MCU of the utility model, including power input and defeated with the power supply respectively
Enter the reset circuit and MCU chip U1 of end connection, the reset circuit is connect with the MCU chip U1.In the present embodiment, institute
The voltage for stating power input input is direct current 5V.
Referring to Fig. 2, the reset circuit includes the first triode Q1, the second triode Q2, first capacitor C1 and resets control
End RESET processed, one second resistance R2 of the power input series connection are connect with the base stage of the first triode Q1, and described first
The collector of triode Q1 is connect with the base stage of the second triode Q2 and the power input respectively, the two or three pole
The collector of pipe Q2 is connect with the reseting controling end RESET, the hair of the first triode Q1 and the second triode Q2
Emitter-base bandgap grading is grounded;One end of the reseting controling end RESET is connect with the MCU chip U1, the reset control of the other end
It is grounded after the end RESET series connection first capacitor C1.Wherein, make institute during the reset circuit of MCU quickly " powering on "
The first triode Q1 conducting is stated, connects one between the base stage of the first triode Q1 and the collector of the second triode Q2
4th resistance R4.In the present embodiment, for the second resistance R2 for dividing, the resistance value of the second resistance R2 is 200K.Institute
The model for stating MCU chip U1 can select MC9S08FL168 and compatible model, because available model is too much herein without one by one
It enumerates;The first triode Q1 and the second triode Q2 selects three poles for PMBT2222ASM model and compatible model
Pipe;First capacitor C1 preferentially selects the capacitor for 104MSM/0603 model and compatible model.
Referring to Fig. 2 and Fig. 3, in the reset circuit of the MCU of the utility model, when power-off or other reasons lead to the MCU
The voltage of power input power supply of reset circuit when being lower than threshold voltage 3.45V, the first triode Q1 cut-off is described
Second triode Q2 conducting, so that the voltage of the second triode Q2 collector output is 0V, so that the reset be allowed to control
RESET is held to export low level to the reset terminal RESET of the MCU chip U1, the i.e. reset of output low level to MCU chip U1
End, and then injunction MCU chip U1 enters reset state protection Status of Backups, guarantees that the data inside MCU chip U1 will not be because
It is lost for power-off;Upon power-up, the power input supply voltage of the reset circuit of the MCU rises above threshold voltage
When 3.45V, the first triode Q1 conducting, the second triode Q2 cut-off allows the power input and the reset
Control terminal RESET connection, so that the voltage of reseting controling end RESET output is 5V, to allow the reseting controling end
RESET exports high level to the reset terminal RESET of the MCU chip U1, and then ensure that and can be carried out just when MCU chip U1 is powered on
Often initialization, ensure that the work of program normal table, improves to connect with MCU chip U1 and has loaded service life;It avoids
MCU in circuit can repeatedly start and stop two states be alternately performed so as to cause MCU control load also in starting or
It stops working and is alternately performed the service life for influencing load under two states and also reduces the performance of load.
The reset circuit of the MCU of the utility model by the conducting of the first triode and the second triode in reset circuit with
Or end voltage rapid pressure or the reliable MCU reset function of decompression realization so that reseting controling end exports in reset circuit,
And then ensure that and can be carried out normal initialization when MCU chip powers on, it ensure that the work of program normal table, improve and MCU
Chip system connects payload security and service life.
It, cannot the above content is specific preferred embodiment further detailed description of the utility model is combined
Assert that the specific implementation of the utility model is only limited to these instructions.For the ordinary skill of the utility model technical field
For personnel, without departing from the concept of the premise utility, architectural form cans be flexible and changeable, and can be produced with subseries
Product.Several simple deduction or replace are only made, it is true by the claims submitted all to shall be regarded as belonging to the utility model
Fixed scope of patent protection.