Summary of the invention
In view of this, be necessary to provide a kind of can to the reset circuit of chip reset.
A kind of reset circuit, in order to the chip that resets, this chip comprises a reset terminal, and this reset circuit comprises:
One power end;
One electrification reset module, be connected between this power end and reset terminal of chip, when power end powers on, the output terminal of this electrification reset module exports the reset terminal of a low level signal to chip, this chip reset, after having powered on, this electrification reset module exports high level signal, and chip enters duty; And
One starts reseting module, and this startup reseting module comprises a switch, and the first end of switch connects the reset terminal of power end and chip, and the second end ground connection of this switch, after power end has powered on, Closing Switch makes the reset terminal ground connection of chip, chip reset.
Compare prior art, the electrification reset module of reset circuit of the present invention and startup reseting module can control chip resets when power end powers on and after having powered on respectively.
Embodiment
Please refer to Fig. 1, the better embodiment of reset circuit of the present invention is used for resetting to a chip 30, and this reset circuit comprises a power end VCC, an electrification reset module 10 and starts reseting module 20.This startup reseting module 20 is also in order to control the supply module 40 that can be main board power supply.
Power end VCC is standby power.In the present embodiment, chip 30 is the CPLD chip (Complex Programmable Logic Device, CPLD) of mainboard, and it comprises a reset terminal CLR.When reset terminal CLR receives low level signal, chip 30 resets; When reset terminal CLR receives high level signal, chip 30 enters duty.
This supply module 40 comprises South Bridge chip 410, triode Q and a power supply 420.This South Bridge chip 410 comprises a power management module 411, and this power management module 411 comprises an an input pin I1 and output pin O1.This power supply 420 comprises a control end ON.The base stage of this triode Q connects output pin O1, and the emitter of this triode Q connects the control end ON of power end VCC and power supply 420, the grounded collector of this triode Q.When input pin I1 receives level signal from high to low, can triggering voltage administration module 411, control output pin O1 and export high level signal and low level signal.
This electrification reset module 10 comprises a resistance R1, electric capacity C1, C2 and phase inverter U1, U2.Power end VCC is by this resistance R1 and this electric capacity C1 ground connection, node between this resistance R1 with this electric capacity C1 is connected the input end of phase inverter U1, the output terminal of this phase inverter U1 connects the input end of phase inverter U2, and the output terminal of this phase inverter U2 connects the reset terminal CLR of chip 30.The power input of this phase inverter U1, U2 all connects power end VCC, the equal ground connection of ground connection input end.The power input of this phase inverter U2 is also by electric capacity C2 ground connection.
This startup reseting module 20 comprises a switch B, resistance R2 and electric capacity C3.In the present embodiment, this switch B one often opens key switch, and press this switch B, this switch B connects, and unclamps this switch B, and this switch B disconnects.The two ends of this switch B are provided with two groups of links.Resistance R2 and electric capacity C3 is connected between power end VCC and ground, and two links of the first end of switch B connect the node between this resistance R2 and this electric capacity C3, two link ground connection of second end of this switch B.Node between this resistance R2 with this electric capacity C3 is connected the reset terminal CLR of the chip 30 and input pin I1 of power management module 411.
When power end VCC powers on, electric capacity C1 starts charging, the input end of phase inverter U1 receives low level signal, its output terminal exports high level signal, the input end of phase inverter U2 receives high level signal, its output terminal output low level signal, the reset terminal CLR of chip 30 receives low level signal, and chip 30 resets.After electric capacity C1 charging terminates, the input end of phase inverter U1 receives high level signal, its output terminal output low level signal, the input end of phase inverter U2 receives low level signal, its output terminal exports high level signal, and the reset terminal CLR of chip 30 receives high level signal, and chip 30 enters duty.In the process, when C1 charging starts, the node output low level between resistance R2 and this electric capacity C3; After C3 charging terminates, the node between resistance R2 and this electric capacity C3 exports high level.
After power end VCC powers on, namely unclamp after the switch B of started by press reseting module 20, when switch B connects, the reset terminal CLR of the chip 30 and input pin I1 of power management module 411 is simultaneously by switch B ground connection.The reset terminal CLR of chip 30 receives low level signal, and chip 30 resets; Input pin I1 reception one level signal from high to low of power management module 411, power management module 411 is triggered and controls output pin O1 and exports the base stage of high level signal to triode Q to make this triode Q conducting, the control end ON of power supply 420 receives low level signal, and then power-on 420, can be mainboard and power supply is provided.
Namely unclamp after the switch B of started by press reseting module 20 again, chip 30 resets.Input pin I1 reception one level signal from high to low of power management module 411, power management module 411 is triggered and controls the base stage of output pin O1 output low level signal to triode Q, this triode Q ends, the control end ON of power supply 420 receives high level signal, and then powered-down 420, stop to main board power supply.
In the present embodiment, electric capacity C2 can play filtering and Anti-Jamming, thus can improve the stability of power end VCC.
The startup reseting module 20 of reset circuit of the present invention not only by resetting by the B control chip 30 that compresses switch, but also can control supply module 40 for main board power supply or stopping are to main board power supply.