The duplicate supply electrify restoration circuit that is used for single-chip microcomputer
Technical field:
The utility model is a kind of duplicate supply reset circuit, particularly a kind of duplicate supply electrify restoration circuit that is used for single-chip microcomputer.Belong to the electrical apparatus control circuit technical field.
Background technology:
At present, in the small household appliances field, along with people are more and more higher to the electrical automation requirement, a lot of products all utilize the digit chip control circuit to carry out intellectuality control, to improve user's experience and convenience.But in the chip controls circuit, whether reset potential leans on property, be related to the security of intelligence control circuit, if run into outage midway, when restoring electricity, require reset circuit in time to reset safely and reliably, in order to avoid electrical equipment non-normal working unexpectedly causes electrical equipment to damage even jeopardize user's personal safety easily.
Therefore,, need set the reset circuit of single-chip microcomputer, the work that resets reliably when accomplishing to power on, protection electrical equipment and user's safety in order to guarantee the safe in utilization of electrical equipment.How setting the reset circuit of monolithic, is the utility model technical issues that need to address.
The utility model content:
The purpose of this utility model is in order to solve the problem of single-chip microcomputer electrification reset, a kind of duplicate supply electrify restoration circuit that is used for single-chip microcomputer to be provided.Have the reliability of resetting height, characteristics such as circuit component is few and circuit structure is simple.
The purpose of this utility model can reach by taking following technical scheme:
Be used for the duplicate supply electrify restoration circuit of single-chip microcomputer, comprise singlechip chip, its design feature is: the RESET input at singlechip chip is provided with main power circuit and auxiliary power circuit; The input end of main power circuit connects power vd D, and the input end of auxiliary power circuit connects power supply VCC, and the output terminal of the output terminal of main power circuit, auxiliary power circuit connects the reset terminal RESET of monolithic chip; The output terminal of main power circuit and auxiliary power circuit is by capacity earth, and the characteristic of utilizing the electric capacity both end voltage not suddenly change produces reset pulse at the reseting port RESET of single-chip microcomputer, forms duplicate supply electrification reset loop structure.
The purpose of this utility model can also reach by taking following technical scheme:
A kind of Technological improvement plan of the present utility model is: main power circuit can be made up of triode Q1, capacitor C 1, resistance R 1 and R3, diode D1, and the auxiliary power circuit can be made up of resistance R 2, diode D2 and capacitor C 2; The base stage of triode Q1 connects power vd D by resistance R 1, capacitor C 1, and resistance R 1 is connected with the positive pole of diode D1 with the tie point of capacitor C 1, and the base stage of triode Q1 is by resistance R 3 ground connection; The collector of triode Q1 connects the reset terminal RESET of monolithic chip; Resistance R 2 is in parallel with diode D2, also an end of joint group connects power supply VCC, the other end connects the collector of triode Q1 and the reset terminal RESET of monolithic chip, capacitor C 2 is connected across between the reset terminal RESET and ground of monolithic chip, the grounded emitter of triode Q1; Form duplicate supply electrification reset loop structure.
A kind of Technological improvement plan of the present utility model is: described triode Q1 can be NPN type switch triode.
The beneficial effects of the utility model are:
1, the utility model is owing to adopt major and minor two-way power supply power supply, and the duplicate supply electrification reset loop structure of formation can both guarantee the single-chip microcomputer reliable reset when arbitrary power supply electrifying; Or when the auxiliary power normal power supply, primary power powers on and also guarantees the single-chip microcomputer reliable reset, therefore has the beneficial effect of protection electrical equipment and user's safety.
2, it is simple to the utlity model has circuit structure, the few and high beneficial effect of reliability of circuit component.
Description of drawings
Fig. 1 is the schematic diagram of the utility model reset circuit.
Embodiment:
Below in conjunction with drawings and Examples the utility model is described in further detail:
Specific embodiment 1:
With reference to Fig. 1, present embodiment comprises singlechip chip, at the RESET input of singlechip chip main power circuit 1 and auxiliary power circuit 2 is set; The input end of main power circuit 1 connects power vd D, and the input end of auxiliary power circuit 2 connects power supply VCC, and the output terminal of the output terminal of main power circuit 1, auxiliary power circuit 2 connects the reset terminal RESET of monolithic chip; The output terminal of main power circuit 1 and auxiliary power circuit 2 is by capacity earth, and the characteristic of utilizing the electric capacity both end voltage not suddenly change produces reset pulse at the reseting port RESET of single-chip microcomputer, forms duplicate supply electrification reset loop structure.
In the present embodiment:
Main power circuit 1 is made up of triode Q1, capacitor C 1, resistance R 1 and R3, diode D1, and auxiliary power circuit 2 is made up of resistance R 2, diode D2 and capacitor C 2; The base stage of triode Q1 connects power vd D by resistance R 1, capacitor C 1, and resistance R 1 is connected with the positive pole of diode D1 with the tie point of capacitor C 1, and the base stage of triode Q1 is by resistance R 3 ground connection; The collector of triode Q1 connects the reset terminal RESET of monolithic chip; Resistance R 2 is in parallel with diode D2, also an end of joint group connects power supply VCC, the other end connects the collector of triode Q1 and the reset terminal RESET of monolithic chip, capacitor C 2 is connected across between the reset terminal RESET and ground of monolithic chip, the grounded emitter of triode Q1; Form duplicate supply electrification reset loop structure.
Described triode Q1 is a NPN type switch triode.
The principle of work of present embodiment:
With reference to Fig. 1, the utility model adopts two power vd D and VCC to power separately, and circuit reliability is higher, is in particular in:
(1) primary power VDD does not power, when auxiliary power VCC powers on:
When VCC on the auxiliary power is electric, when rising to burning voltage by 0V, VCC charges by 2 pairs of capacitor C of resistance R 2.Because capacitor C 2 both end voltage can not be suddenlyd change, charging needs the regular hour (this time is depended on the time constant of resistance R 2 and capacitor C 2), forms the low level pulse of a period of time at the RESET port; Charging process finishes to make the RESET port to keep high level when the voltage of capacitor C 2 is charged to VCC voltage, thereby has finished the reset operation of single-chip microcomputer when auxiliary power powers on.And the effect of D2 is fast the voltage on the capacitor C 2 to be bled off when the auxiliary power power down, to guarantee electrification reset process next time.
(2) auxiliary power VCC does not power, when primary power VDD powers on:
When primary power powered on, the Base-Emitter by resistance R 1 and triode Q1 when VDD rises to burning voltage by 0V charged to capacitor C 1.Because capacitor C 1 both end voltage can not be suddenlyd change, charging needs the regular hour (this time is depended on the time constant of resistance R 1 and capacitor C 1), owing to there is the base stage that electric current flows through triode Q1 to cause triode Q1 conducting, form the low level pulse of a period of time at the RESET port during charging; Charging process end triode Q1 ends when the voltage of capacitor C 1 is charged to vdd voltage, and makes the RESET port keep high level, thereby has finished the reset operation of single-chip microcomputer when primary power powers on.
(3) auxiliary power power supply, when primary power powers on:
When primary power powered on, the Base-Emitter by resistance R 1 and triode Q1 when VDD rises to burning voltage by 0V charged to capacitor C 1.Because capacitor C 1 both end voltage can not be suddenlyd change, charging needs the regular hour (this time is depended on the time constant of resistance R 1 and capacitor C 1), owing to there is the base stage that electric current flows through triode Q1 to cause triode Q1 conducting, form the low level pulse of a period of time at the RESET port during charging; Charging process end triode Q1 ends when the voltage of capacitor C 1 is charged to vdd voltage, and makes the RESET port keep high level, thereby has finished the reset operation of single-chip microcomputer when primary power powers on.
The electrification reset current potential that the utility model adopts two groups of power supplys to power respectively, the characteristic of utilizing capacitor C 1 and C2 both end voltage not to suddenly change, when the major-minor power supply electrifying, produce the low pulse signal of a period of time and make the single-chip microcomputer electrification reset, and finish back maintenance RESET port high level powering at the RESET port.Thereby realize reset operation reliably.