A kind of switching on and shutting down control circuit of electronic equipment
Technical field
The invention belongs to electronic circuit technology field, particularly relate to a kind of switching on and shutting down control circuit of electronic equipment.
Background technology
At present, along with the fast development of science and technology, the various electronic equipment possessing high and new technology is widely used in every field and place, for the work of people and life provide convenient.Most electronic equipment is nearly all in use be in round-the-clock opening, and this not only can reduce the serviceable life of electronic equipment, also can cause the waste of the energy simultaneously.To this, control to realize switching on and shutting down to electronic equipment with the serviceable life and the energy-saving and emission-reduction that extend electronic equipment, prior art provides following three kinds of switching on and shutting down control programs:
(1) switching on and shutting down button is adopted to coordinate power management chip to carry out switching on and shutting down control to electronic equipment, whether power management chip is pressed according to switching on and shutting down button and controller to electronic equipment sends corresponding switching on and shutting down detection signal, then realizes switching on and shutting down by the data interaction between power management chip and controller to electronic equipment and controls.Due to the program mainly rely between power management chip and controller mutual with realize switching on and shutting down control, its intelligence degree is higher, and cost is also relatively high.
(2) adopt switching on and shutting down button, single-chip microcomputer and on-off circuit to carry out switching on and shutting down control to electronic equipment, when switching on and shutting down button is pressed, supply voltage is exported to the controller of electronic equipment to realize start by Single-chip Controlling on-off circuit; When electronic equipment is in open state, if switching on and shutting down button is continued to press within a period of time, then Single-chip Controlling switching circuit shuts down supply voltage, to make the controller power-off of electronic equipment, thus realizes shutdown control.The program needs at the additional single-chip microcomputer of switching on and shutting down button, can take larger printed circuit board area, and then cause cost to increase, and be unfavorable for the miniaturization of the on/off circuit in electronic equipment.
(3) a self-locking keyswitch or toggle switch are installed at the power input line road place of electronic equipment realize mechanical switching on and shutting down to electronic equipment and control.Relative to above-mentioned scheme (1) and scheme (2), the cost of this programme is minimum, but it cannot realize intelligentized switching on and shutting down control to electronic equipment, and its dirigibility is poor, and easily there is switching on and shutting down misoperation, reduce the reliability that switching on and shutting down control.
In sum, prior art exists both cannot ensure the reliability and stability that switching on and shutting down control, again can the miniaturization of realizing circuit and the problem of low cost.
Summary of the invention
The object of the present invention is to provide a kind of switching on and shutting down control circuit of electronic equipment, be intended to solve both cannot ensure the reliability and stability that switching on and shutting down control existing for prior art, again can the miniaturization of realizing circuit and the problem of low cost.
The present invention is achieved in that a kind of switching on and shutting down control circuit of electronic equipment, and it comprises controller and power supply chip; When system electrification in the electronic device starts, described controller powers on, and the first input/output terminal of described controller and the second input/output terminal are high-impedance state or input state; The power end of described power supply chip is connected direct supply and ground respectively with ground end, and the Enable Pin of described power supply chip is that high level is effective;
Described switching on and shutting down control circuit also comprises switching on and shutting down trigger module, switching on and shutting down control module and power module; The power end of described switching on and shutting down trigger module and the power end of described switching on and shutting down control module are connected to the output terminal of described power module altogether, signal bidirectional end and the output terminal of described switching on and shutting down trigger module are connected the first input/output terminal of described controller and the clock end of described switching on and shutting down control module respectively, the signal bidirectional end of described switching on and shutting down trigger module is communicated with between output terminal, the signal end of described switching on and shutting down control module connects the second input/output terminal of described controller, and the output terminal of described switching on and shutting down control module connects the Enable Pin of described power supply chip;
When system electrification in described electronic equipment starts, if described switching on and shutting down trigger module in first time period continuous reception to start trigger action, then described switching on and shutting down trigger module continues to export start trigger pip to the first input/output terminal of described controller and the clock end of described switching on and shutting down control module in first time period, described switching on and shutting down control module exports the Enable Pin of high level to described power supply chip according to described start trigger pip, and described power supply chip thereupon output system voltage makes system boot;
When system in described electronic equipment is in open state, if described switching on and shutting down trigger module within the second time period continuous reception to shutdown trigger action, then described switching on and shutting down trigger module continues to export shutdown trigger pip to the first input/output terminal of described controller and the clock end of described switching on and shutting down control module within described second time period, described controller continues according to described shutdown trigger pip the signal end outputing control signals to described switching on and shutting down control module in the first preset time period, and a half of described first preset time period is reached at the output time of described control signal, first input/output terminal of described controller continues clock signal in the second preset time period, described clock signal exports the clock end of described switching on and shutting down control module to by described switching on and shutting down trigger module, described switching on and shutting down control module according to described control signal and described clock signal output low level to the Enable Pin of described power supply chip, described power supply chip stops output system voltage to make system closedown thereupon, described controller also with under electricity,
When system in described electronic equipment is in off-mode, if described switching on and shutting down trigger module receives start trigger action, then described switching on and shutting down trigger module exports start trigger pip to the first input/output terminal of described controller and the clock end of described switching on and shutting down control module, described switching on and shutting down control module exports the Enable Pin of high level to described power supply chip according to described start trigger pip, output system voltage is to make system boot thereupon for described power supply chip, and described controller also powers on thereupon.
Present invention also offers the switching on and shutting down control circuit of another kind of electronic equipment, it comprises controller and power supply chip; When system electrification in the electronic device starts, described controller powers on, and the first input/output terminal of described controller and the second input/output terminal are high-impedance state or input state; The power end of described power supply chip is connected direct supply and ground respectively with ground end, and the Enable Pin of described power supply chip is Low level effective;
Described switching on and shutting down control circuit also comprises switching on and shutting down trigger module, switching on and shutting down control module and power module; The power end of described switching on and shutting down trigger module and the power end of described switching on and shutting down control module are connected to the output terminal of described power module altogether, signal bidirectional end and the output terminal of described switching on and shutting down trigger module are connected the first input/output terminal of described controller and the clock end of described switching on and shutting down control module respectively, the signal bidirectional end of described switching on and shutting down trigger module is communicated with between output terminal, the signal end of described switching on and shutting down control module connects the second input/output terminal of described controller, and the output terminal of described switching on and shutting down control module connects the Enable Pin of described power supply chip;
When system electrification in described electronic equipment starts, if described switching on and shutting down trigger module in first time period continuous reception to start trigger action, then described switching on and shutting down trigger module continues to export start trigger pip to the first input/output terminal of described controller and the clock end of described switching on and shutting down control module in first time period, described switching on and shutting down control module is according to described start trigger pip output low level to the Enable Pin of described power supply chip, and described power supply chip thereupon output system voltage makes system boot;
When system in described electronic equipment is in open state, if described switching on and shutting down trigger module within the second time period continuous reception to shutdown trigger action, then described switching on and shutting down trigger module continues to export shutdown trigger pip to the first input/output terminal of described controller and the clock end of described switching on and shutting down control module within described second time period, described controller continues according to described shutdown trigger pip the signal end outputing control signals to described switching on and shutting down control module in the first preset time period, and a half of described first preset time period is reached at the output time of described control signal, first input/output terminal of described controller continues clock signal in the second preset time period, described clock signal exports the clock end of described switching on and shutting down control module to by described switching on and shutting down trigger module, described switching on and shutting down control module exports the Enable Pin of high level to described power supply chip according to described control signal and described clock signal, described power supply chip stops output system voltage to make system closedown thereupon, described controller also with under electricity,
When system in described electronic equipment is in off-mode, if described switching on and shutting down trigger module receives start trigger action, then described switching on and shutting down trigger module exports start trigger pip to the first input/output terminal of described controller and the clock end of described switching on and shutting down control module, described switching on and shutting down control module according to described start trigger pip output low level to the Enable Pin of described power supply chip, output system voltage is to make system boot thereupon for described power supply chip, and described controller also powers on thereupon.
The present invention comprises the switching on and shutting down control circuit of switching on and shutting down trigger module, switching on and shutting down control module and power module by adopting in the electronic device, and its circuit structure is simple, cost is low and be conducive to miniaturization; When the system of electronic equipment is in open state, if switching on and shutting down trigger module within the second time period continuous reception to shutdown trigger action, when then controller can differ from, output control signal and clock enabling signal switching on and shutting down control module control power supply chip quit work, to make system closedown; When the system of electronic equipment is in off-mode, if switching on and shutting down trigger module receives start trigger action, the start trigger pip driving power chip that switching on and shutting down control module can export according to switching on and shutting down trigger module is started working, to make system boot, thus reliablely and stablely can realize switching on and shutting down control to electronic equipment, solve and both cannot ensure the reliability and stability that switching on and shutting down control existing for prior art, again can the miniaturization of realizing circuit and the problem of low cost.
Accompanying drawing explanation
Fig. 1 is the function structure chart of the switching on and shutting down control circuit of the electronic equipment that first embodiment of the invention provides;
Fig. 2 is another function structure chart of the switching on and shutting down control circuit of the electronic equipment that first embodiment of the invention provides;
Fig. 3 is the exemplary circuit structural drawing of the switching on and shutting down control circuit shown in Fig. 1;
Fig. 4 is another exemplary circuit structural drawing of the switching on and shutting down control circuit shown in Fig. 1;
Fig. 5 is the exemplary circuit structural drawing of the switching on and shutting down control circuit shown in Fig. 2;
Fig. 6 is another exemplary circuit structural drawing of the switching on and shutting down control circuit shown in Fig. 2;
Fig. 7 is the function structure chart of the switching on and shutting down control circuit of the electronic equipment that second embodiment of the invention provides;
Fig. 8 is another function structure chart of the switching on and shutting down control circuit of the electronic equipment that second embodiment of the invention provides;
Fig. 9 is the exemplary circuit structural drawing of the switching on and shutting down control circuit shown in Fig. 7;
Figure 10 is another exemplary circuit structural drawing of the switching on and shutting down control circuit shown in Fig. 7;
Figure 11 is the exemplary circuit structural drawing of the switching on and shutting down control circuit shown in Fig. 8;
Figure 12 is another exemplary circuit structural drawing of the switching on and shutting down control circuit shown in Fig. 8.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
embodiment one:
In the first embodiment of the invention, the modular structure of the switching on and shutting down control circuit of electronic equipment as shown in Figure 1, the switching on and shutting down control circuit that first embodiment of the invention provides comprises controller 100 and power supply chip 200, controller 100 is conventional single-chip microcomputer, arm processor, MIPS processor, POWER processor or other possess the Programmable Logic Controller of mathematical logic processing power; Power supply chip 200 is conventional DC-DC converter.When system electrification in the electronic device starts, controller 100 powers on, and the first input/output terminal IO1 of controller 100 and the second input/output terminal IO2 is high-impedance state or input state (namely the first input/output terminal IO1 of controller 100 and the second input/output terminal IO2 does not all export any signal, but can receive the signal that outside sends over); The power end Vcc of power supply chip 200 is connected direct supply VCC (it can be 12V direct supply) and ground respectively with ground end GND, the Enable Pin EN of power supply chip 200 is that high level is effective, that is: when the Enable Pin EN of power supply chip 200 receives high level, the output terminal OUT output system voltage VCC_SYS of power supply chip 200 makes the system boot in electronic equipment, and controller 100 powers on thereupon; When the Enable Pin EN of power supply chip 200 receives low level, the system closedown that power supply chip 200 stops output system voltage VCC_SYS to make in electronic equipment, controller 100 with under electricity.
Switching on and shutting down control circuit also comprises switching on and shutting down trigger module 300, switching on and shutting down control module 400 and power module 500.
The power end of switching on and shutting down trigger module 300 and the power end of switching on and shutting down control module 400 are connected to the output terminal of power module 500 altogether, the signal bidirectional end of switching on and shutting down trigger module 300 and output terminal be the first input/output terminal IO1 of connection control device 100 and the clock end of switching on and shutting down control module 400 respectively, the signal bidirectional end of switching on and shutting down trigger module 300 is communicated with between output terminal, second input/output terminal IO2 of the signal end connection control device 100 of switching on and shutting down control module 400, the output terminal of switching on and shutting down control module 400 connects the Enable Pin EN of power supply chip 200.
When system electrification in the electronic device starts, if switching on and shutting down trigger module 300 in first time period (as 2 seconds) continuous reception to start trigger action, then switching on and shutting down trigger module 300 continues to export start trigger pip (it can be high level) to the first input/output terminal IO1 of controller 100 and the clock end of switching on and shutting down control module 400 in first time period, switching on and shutting down control module exports the Enable Pin EN of high level to power supply chip 200 according to this start trigger pip, and power supply chip 200 thereupon output system voltage VCC_SYS makes system boot.
When system is in the electronic device in open state, if switching on and shutting down trigger module 300 within the second time period (as 3 seconds) continuous reception to shutdown trigger action, then switching on and shutting down trigger module 300 continues to export shutdown trigger pip (it can be high level) to the first input/output terminal IO1 of controller 100 and the clock end of switching on and shutting down control module 400 within the second time period, controller 100 continues to export the signal end of control signal (it can be high level) to switching on and shutting down control module 400 according to this shutdown trigger pip in the first preset time period (as 100 milliseconds), and reach the half of the first preset time period (as the half of 100 milliseconds at the output time of this control signal, namely 50 milliseconds) time, first input/output terminal IO1 of controller 100 continues clock signal (it can be high level) in the second preset time period (as 20 milliseconds), this clock signal exports the clock end of switching on and shutting down control module 400 to by switching on and shutting down trigger module 300, switching on and shutting down control module 400 according to above-mentioned control signal and clock signal output low level to the Enable Pin EN of power supply chip 200, power supply chip 200 stops output system voltage VCC_SYS to make system closedown thereupon, controller 100 also can with under electricity, namely this Time Controller 100 quits work.
When system is in the electronic device in off-mode, if switching on and shutting down trigger module 300 receives start trigger action, then switching on and shutting down trigger module 300 exports start trigger pip (it can be high level) to the first input/output terminal IO1 of controller 100 and the clock end of switching on and shutting down control module 400, switching on and shutting down control module exports the Enable Pin EN of high level to power supply chip 200 according to this start trigger pip, output system voltage VCC_SYS is to make system boot thereupon for power supply chip 200, and controller 100 also powers on thereupon.
In addition, when system in the electronic device starts, in order to avoid sending wrong start trigger action because of user to switching on and shutting down trigger module 300, so, in the first embodiment of the invention, if the start trigger action received by switching on and shutting down trigger module 300 does not continue to occur in first time period (as 2 seconds), then controller 100 still can continue to export the signal end of above-mentioned control signal (it can be high level) to switching on and shutting down control module 400 in the first preset time period (as 100 milliseconds), and reach the half of the first preset time period (as the half of 100 milliseconds at the output time of this control signal, namely 50 milliseconds) time, first input/output terminal IO1 of controller 100 continues clock signal (it can be high level) in the second preset time period (as 20 milliseconds), this clock signal exports the clock end of switching on and shutting down control module 400 to by switching on and shutting down trigger module 300, switching on and shutting down control module 400 according to above-mentioned control signal and clock signal output low level to the Enable Pin EN of power supply chip 200, off-mode is kept to make system, thus reach the object avoiding opening by mistake machine, improve switching on and shutting down control accuracy.
When system is in the electronic device in off-mode, due to the lower electricity of controller 100, if now switching on and shutting down trigger module 300 receives start trigger action, then switching on and shutting down trigger module 300 can export the first input/output terminal IO1 of above-mentioned start trigger pip to controller 100 and the clock end of switching on and shutting down control module 400, but because above-mentioned start trigger pip can be dragged down by the first input/output terminal IO1 by the circuit of controller 100 inside, and be communicated with output terminal due to the signal bidirectional end of switching on and shutting down trigger module 300, so the start trigger pip received by clock end of switching on and shutting down control module 400 will be had influence on like this, and then switching on and shutting down control module 400 cannot be worked by driven power supply chip 200, thus cause boot failure.In order to address this problem, above-mentioned switching on and shutting down control circuit can further include isolation module 600, as shown in Figure 2, the voltage detecting end of isolation module 600 connects the output terminal of power supply chip 200, and the first end of isolation module 600 and the second end be the first input/output terminal IO1 of connection control device 100 and the signal bidirectional end of switching on and shutting down trigger module 300 respectively; When the system in electronic equipment is in open state, isolation module 600 realizes closed according to the system voltage VCC_SYS that power supply chip 200 exports, and is connected with the signal bidirectional end of switching on and shutting down trigger module 300 to make the first input/output terminal IO1 of controller 100; When the system in electronic equipment is in off-mode, isolation module 600 is isolated implementing to disconnect between the first input/output terminal IO1 of controller 100 and the signal bidirectional end of switching on and shutting down trigger module 300 without system voltage exports because of power supply chip 200, thus make start trigger pip not by the impact of the controller 100 of lower electricity, ensure that the system of electronic equipment can normal boot-strap.
Further, the switching on and shutting down control circuit shown in corresponding diagram 1, as shown in Figure 3, switching on and shutting down trigger module 300 comprises:
First resistance R1, keyswitch SW1, the second resistance R2, the first electric capacity C1 and the 3rd resistance R3;
The first end of the first resistance R1 is the power end of switching on and shutting down trigger module 300, second end of the first resistance R1 connects the first end of keyswitch SW1, the first end of the second resistance R2 is the signal bidirectional end of switching on and shutting down trigger module 300, second end of keyswitch SW1 and second end of the second resistance R2, the first end of the first electric capacity C1 and the first end of the 3rd resistance R3 connect the output terminal that formed common contact is switching on and shutting down trigger module 300 altogether, second end of the first electric capacity C1 and the equal ground connection of the second end of the 3rd resistance R3.From the inner structure of above-mentioned switching on and shutting down trigger module 300, start trigger action mentioned in foregoing teachings and shutdown trigger action all by user by pushing button done by interrupteur SW 1, when keyswitch SW1 is pressed, the voltage that power module 500 exports forms start trigger pip or shutdown trigger pip through the first resistance R1 and keyswitch SW1, start trigger pip or shutdown trigger pip are divided into two-way, one tunnel exports the first input/output terminal IO1 of controller 100 to through the second resistance R2, another road exports the clock end of switching on and shutting down control module 400 to.
Further, the switching on and shutting down control circuit shown in corresponding diagram 1, as shown in Figure 3, switching on and shutting down control module 400 comprises:
4th resistance R4, the 5th resistance R5, the 6th resistance R6, the 7th resistance R7, the first NPN type triode Q1, the first d type flip flop U1, the 8th resistance R8, the second electric capacity C2, the 9th resistance R9, the tenth resistance R10 and the second NPN type triode Q2;
The first end of the 4th resistance R4 and the first end of the tenth resistance R10 are connected to direct supply VCC (it can be 12V direct supply) altogether, second end and the common contact of the first end of the 5th resistance R5 of the 4th resistance R4 are connected the first end of the 6th resistance R6 and the first end of the 8th resistance R8 simultaneously, the second end ground connection of the 5th resistance R5, second end of the 6th resistance R6 and the collector of the first NPN type triode Q1 are connected to the signal input pin D of the first d type flip flop U1 altogether, the first end of the 7th resistance R7 is the signal end of switching on and shutting down control module 400, second end of the 7th resistance R7 connects the base stage of the first NPN type triode Q1, the grounded emitter of the first NPN type triode Q1, the clock signal pin CP of the first d type flip flop U1 is the clock end of switching on and shutting down control module 400, the set pin of the first d type flip flop U1
with the power end that the common contact of supply pin Vcc is switching on and shutting down control module 400, the clearing pin of the first d type flip flop U1
the first end of the second electric capacity C2 is connected to altogether with second end of the 8th resistance R8, the second end ground connection of the second electric capacity C2, the homophase output pin Q sky of the first d type flip flop U1 connects, and the lower margin GND ground connection of the first d type flip flop U1, the 9th resistance R9 is connected to the anti-phase output pin of the first d type flip flop U1
and between the base stage of the second NPN type triode Q2, the grounded emitter of the second NPN type triode Q2, the common contact of second end of the tenth resistance R10 and the collector of the second NPN type triode Q2 is the output terminal of switching on and shutting down control module 400.
Further, the switching on and shutting down control circuit shown in corresponding diagram 1, as shown in Figure 3, power module 500 comprises:
11 resistance R11, voltage stabilizing diode D1 and the 3rd electric capacity C3;
The first end of the 11 resistance R11 connects direct supply VCC (it can be 12V direct supply), the first end of second end of the 11 resistance R11 and the negative electrode of voltage stabilizing diode D1 and the 3rd electric capacity C3 connects the output terminal that formed common contact is power module 500 altogether, the anode of voltage stabilizing diode D1 and the equal ground connection of the second end of the 3rd electric capacity C3.
In addition, the switching on and shutting down control circuit shown in corresponding diagram 1, as shown in Figure 4, power module 500 can also possess another kind of structure, and it comprises:
12 resistance R12, low pressure difference linear voltage regulator LDO and the 4th electric capacity C4;
The first end of the 12 resistance R12 connects direct supply VCC (it can be 12V direct supply), the first end of second end of the 12 resistance R12 and the first end of low pressure difference linear voltage regulator LDO and the 4th electric capacity C4 connects the output terminal that formed common contact is power module 500 altogether, second end of low pressure difference linear voltage regulator LDO and the equal ground connection of the second end of the 4th electric capacity C4.
In addition, as can be seen from Figure 2, switching on and shutting down control circuit shown in Fig. 3 and Fig. 4 can also comprise the isolation module 600 shown in Fig. 2, and the inner structure of isolation module 600 is respectively as shown in Fig. 5 (corresponding diagram 3) and Fig. 6 (corresponding diagram 4), and isolation module 600 comprises:
13 resistance R13, the 14 resistance R14 and electrical isolation device K1;
The first end of the 13 resistance R13 is the voltage detecting end of isolation module 600, second end of the 13 resistance R13 and the first end of the 14 resistance R14 are connected to the control end of electrical isolation device K1 altogether, the second end ground connection of the 14 resistance R14, the normally opened contact of electrical isolation device K1 and switch contact are respectively first end and second end of isolation module 600.Wherein, electrical isolation device K1 can be specifically relay.
Because the principle of work of the switching on and shutting down control circuit shown in Fig. 3 with Fig. 4 is identical, both differences are only the inner structure of power module 500, and the principle of work of the switching on and shutting down control circuit shown in Fig. 5 with Fig. 6 is also identical, relative to Fig. 3 and Fig. 4, isolation module 600 is added in Fig. 5 and Fig. 6, so, first in conjunction with principle of work, the switching on and shutting down control circuit shown in Fig. 3 is described further below:
When the system electrification of electronic equipment starts, voltage stabilizing diode D1 is that the first d type flip flop U1 powers, the clearing pin of the first d type flip flop U1
slowly started by the second electric capacity C2, and then make the clearing pin of the first d type flip flop U1
with set pin
logical value be respectively 0 and 1 (namely
), so, the logic function table according to following d type flip flop:
The anti-phase output pin of the first d type flip flop U1
output is 0, so the second NPN type triode Q2 cut-off, the enable pin EN of power supply chip 200 is high level, then power supply chip 200 is started working and output system voltage VCC_SYS, and then system is normally started.Controller 100 powers on thereupon, and makes its first input/output terminal IO1 and the second input/output terminal IO2 be high-impedance state or input state, then the clearing pin of the first d type flip flop U1
set pin
and (namely the logical value of signal input pin D is respectively 1,1,1
d=1), because the clock signal pin CP of now the first d type flip flop U1 does not receive any signal, so CP is X, therefore the anti-phase output pin of the first d type flip flop U1
output state remain unchanged (being 0), power supply chip 200 works on.If now user pushes button interrupteur SW 1 because of carelessness, then the clock signal pin CP of the first d type flip flop U1 can receive high level (logical value is 1, CP=1), according to above-mentioned logic function table, and the anti-phase output pin of the first d type flip flop U1
output be still 0, so thus the second NPN type triode Q2 remain off state, the Enable Pin EN of power supply chip 200 is still high level, then system worked well.
When system electrification starts, first input/output terminal IO1 of controller 100 high level signal (namely above-mentioned start trigger pip) that sended over by keyswitch SW1 can be detected and timing, if keyswitch SW1 is pressed, the time was less than 2 seconds (i.e. above-mentioned first time period), then the high level time of IO1 continued less than 2 seconds, controller 100 can continue to export high level (namely above-mentioned control signal) by its second input/output terminal IO2 in 100ms (the first namely above-mentioned preset time period), then now the first NPN type triode Q1 conducting, and the current potential of the signal input pin D of d type flip flop is dragged down, so the logical value of signal input pin D is 0 (i.e. D=0), after the time of IO2 output high level reaches 50ms (half of the first namely above-mentioned preset time period), controller 100 continues to export the clock signal pin CP of high level (namely above-mentioned clock signal) by the second resistance R2 to the first d type flip flop U1 by the first input and output pin IO1 in 20ms, so, the now clearing pin of the first d type flip flop U1
set pin
and (namely the logical value of signal input pin D is respectively 1,1 and 0
d=0), and CP has high level to trigger, then the anti-phase output pin of the first d type flip flop U1
export high level (namely
), so the second NPN type triode Q2 conducting, and dragged down by the current potential of the Enable Pin EN of power supply chip 200, then power supply chip 200 quits work and not output system voltage VCC_SYS, and system cannot be started shooting.If the time remaining that keyswitch SW1 is pressed 2 seconds, then the first input/output terminal IO1 of controller 100 and the second input/output terminal IO2 maintains high-impedance state or input state, the clock signal pin CP of the first d type flip flop U1 can receive high level, and due to the clearing pin of the first d type flip flop U1
set pin
and (namely the logical value of signal input pin D is respectively 1,1 and 1
d=1), the anti-phase output pin of the first d type flip flop U1
output low level (namely
), then the second NPN type triode Q2 cut-off, the Enable Pin EN of power supply chip 200 obtains high level, and power supply chip 200 output system voltage VCC_SYS makes system normal boot-strap.
System started and normal boot-strap after, when keyswitch SW1 was continued to press in 3 seconds, first input/output terminal IO1 of controller 100 can in 3 seconds continuous reception to a high level (namely above-mentioned shutdown trigger pip), then controller 100 can continue to export high level (namely above-mentioned control signal) by its second input/output terminal IO2 in 100ms (the first namely above-mentioned preset time period), then now the first NPN type triode Q1 conducting, and the current potential of the signal input pin D of d type flip flop is dragged down, so the logical value of signal input pin D is 0 (i.e. D=0), after the time of IO2 output high level reaches 50ms (half of the first namely above-mentioned preset time period), controller 100 continues to export the clock signal pin CP of high level (namely above-mentioned clock signal) by the second resistance R2 to the first d type flip flop U1 by the first input and output pin IO1 in 20ms, so, the now clearing pin of the first d type flip flop U1
set pin
and (namely the logical value of signal input pin D is respectively 1,1 and 0
d=0), and CP has high level to trigger, then the anti-phase output pin of the first d type flip flop U1
export high level (namely
), so the second NPN type triode Q2 conducting, and dragged down by the current potential of the Enable Pin EN of power supply chip 200, then power supply chip 200 quits work and not output system voltage VCC_SYS, system closedown, controller 100 with under electricity.After system closedown, except the first d type flip flop U1 maintenance works on power, remaining circuit all quits work, thus effectively can reduce power consumption, the power consumption of electronic equipment can be less than 0.2 watt, and it is far smaller than the power consumption requirements 0.5 watt of European Union ERP (Energy-relatedProducts, energy Related product), therefore, it is possible to reach the object of energy-conserving and environment-protective, and ensure that follow-up start control can normally be carried out.
When system is in off-mode, if keyswitch SW1 is pressed, then the clock signal pin CP of the first d type flip flop U1 obtains high level triggering, and due to controller 100 times electricity, the current potential of the signal input pin D of the first d type flip flop U1 is pulled up, so D=1, and
therefore the anti-phase output pin of the first d type flip flop U1
output state flip be low level, then
so the second NPN type triode Q2 cut-off, the Enable Pin EN of power supply chip 200 becomes high level, and the normal output system voltage VCC_SYS of power supply chip 200, then system starts normal operation, starts shooting successfully, and controller 100 also powers on thereupon.
Because Fig. 5 adds isolation module 600 on the basis of Fig. 3, therefore, the principle of work below for the isolation module 600 in Fig. 5 is described:
When system is in off-mode, due to the lower electricity of controller 100, if now push button interrupteur SW 1, when there is no isolation module 600, the high level (namely above-mentioned start trigger pip) that keyswitch SW1 sends directly is connected with the first input/output terminal IO1 of controller 100 by the second resistance R2, this high level can drag down by the circuit of this Time Controller 100 inside, and then the clock signal pin CP of the first d type flip flop U1 is dragged down, then can cause the anti-phase output pin of the first d type flip flop U1
output state cannot overturn into low level (namely
), but remain high level (namely always
), then the current potential of the Enable Pin EN of power supply chip 200 is dragged down, and power supply chip 200 cannot output system voltage, thus cause system boot failure.And for having added the switching on and shutting down control circuit of isolation module 600 in Fig. 5, when system is in open state, 13 resistance R13 and the 14 resistance R14 carries out dividing potential drop to the system voltage VCC_SYS that power supply chip 200 exports, electrical isolation device K1 realizes closed according to gained dividing potential drop, thus keyswitch SW1 is directly connected with controller 100 with electrical isolation device K1 by the second resistance R2; And when system is in off-mode, power supply chip 200 stops output system voltage VCC_SYS, then the voltage of the control end of electrical isolation device K1 is also 0, electrical isolation device K1 disconnects thereupon, isolate to make keyswitch SW1 and controller 100 disconnect, thus ensure start trigger pip not by the impact of the controller 100 of lower electricity, and system normal boot-strap can be ensured.
In order to make system still can normally work when fast insert-pull, the clearing pin of the first d type flip flop U1
dividing potential drop can be carried out, the set pin of the first d type flip flop U1 to 12V direct supply (namely above-mentioned direct supply VCC) by the 4th resistance R4 and the 5th resistance R5
powered by voltage stabilizing diode D1, thus make the clearing pin of the first d type flip flop U1
voltage drop speed is than set pin
hurry up, ensure
state, then the anti-phase output pin of d type flip flop
export for low level (namely
), ensure that power supply chip 200 is started working, system normally starts.
embodiment two:
In second embodiment of the invention, the modular structure of the switching on and shutting down control circuit of electronic equipment as shown in Figure 7, the switching on and shutting down control circuit that second embodiment of the invention provides comprises controller 100 and power supply chip 200, controller 100 is conventional single-chip microcomputer, arm processor, MIPS processor, POWER processor or other possess the Programmable Logic Controller of mathematical logic processing power; Power supply chip 200 is conventional DC-DC converter.When system electrification in the electronic device starts, controller 100 powers on, and the first input/output terminal IO1 of controller 100 and the second input/output terminal IO2 is high-impedance state or input state (namely the first input/output terminal IO1 of controller 100 and the second input/output terminal IO2 does not all export any signal, but can receive the signal that outside sends over); The power end Vcc of power supply chip 200 is connected direct supply VCC (it can be 12V direct supply) and ground respectively with ground end GND, and the Enable Pin EN of power supply chip 200 is Low level effective, that is: when the Enable Pin of power supply chip 200
when receiving low level, the output terminal OUT output system voltage VCC_SYS of power supply chip 200 makes the system boot in electronic equipment, and controller 100 powers on thereupon; When the Enable Pin of power supply chip 200
when receiving high level, the system closedown that power supply chip 200 stops output system voltage VCC_SYS to make in electronic equipment, controller 100 with under electricity.
Switching on and shutting down control circuit also comprises switching on and shutting down trigger module 300, switching on and shutting down control module 400 and power module 500.
The power end of switching on and shutting down trigger module 300 and the power end of switching on and shutting down control module 400 are connected to the output terminal of power module 500 altogether, the signal bidirectional end of switching on and shutting down trigger module 300 and output terminal be the first input/output terminal IO1 of connection control device 100 and the clock end of switching on and shutting down control module 400 respectively, the signal bidirectional end of switching on and shutting down trigger module 300 is communicated with between output terminal, second input/output terminal IO2 of the signal end connection control device 100 of switching on and shutting down control module 400, the output terminal of switching on and shutting down control module 400 connects the Enable Pin of power supply chip 200
When system electrification in the electronic device starts, if switching on and shutting down trigger module 300 in first time period (as 2 seconds) continuous reception to start trigger action, then switching on and shutting down trigger module 300 continues to export start trigger pip (it can be high level) to the clock end of the first input/output terminal IO1 of controller 100 and switching on and shutting down control module 400 in first time period, switching on and shutting down control module according to this start trigger pip output low level to the Enable Pin of power supply chip 200
power supply chip 200 thereupon output system voltage makes system boot.
When system is in the electronic device in open state, if switching on and shutting down trigger module 300 within the second time period (as 3 seconds) continuous reception to shutdown trigger action, then switching on and shutting down trigger module 300 continues to export shutdown trigger pip (it can be high level) to the first input/output terminal IO1 of controller 100 and the clock end of switching on and shutting down control module 400 within the second time period, controller 100 continues to export the signal end of control signal (it can be high level) to switching on and shutting down control module 400 according to this shutdown trigger pip in the first preset time period (as 100 milliseconds), and reach the half of the first preset time period (as the half of 100 milliseconds at the output time of this control signal, namely 50 milliseconds) time, first input/output terminal IO1 of controller 100 continues clock signal (it can be high level) in the second preset time period (as 20 milliseconds), this clock signal exports the clock end of switching on and shutting down control module 400 to by switching on and shutting down trigger module 300, switching on and shutting down control module 400 exports the Enable Pin of high level to power supply chip 200 according to above-mentioned control signal and clock signal
power supply chip 200 stops output system voltage to make system closedown thereupon, controller 100 also can with under electricity, namely this Time Controller 100 quits work.
When system is in the electronic device in off-mode, if switching on and shutting down trigger module 300 receives start trigger action, then switching on and shutting down trigger module 300 exports start trigger pip (it can be high level) to the clock end of the first input/output terminal IO1 of controller 100 and switching on and shutting down control module 400, switching on and shutting down control module 400 according to this start trigger pip output low level to the Enable Pin of power supply chip 200
output system voltage is to make system boot thereupon for power supply chip 200, and controller 100 also powers on thereupon.
In addition, when system in the electronic device starts, in order to avoid sending wrong start trigger action because of user to switching on and shutting down trigger module 300, so, in second embodiment of the invention, if the start trigger action received by switching on and shutting down trigger module 300 does not continue to occur in first time period (as 2 seconds), then controller 100 still can continue to export the signal end of above-mentioned control signal (it can be high level) to switching on and shutting down control module 400 in the first preset time period (as 100 milliseconds), and reach the half of the first preset time period (as the half of 100 milliseconds at the output time of this control signal, namely 50 milliseconds) time, first input/output terminal IO1 of controller 100 continues clock signal (it can be high level) in the second preset time period (as 20 milliseconds), this clock signal exports the clock end of switching on and shutting down control module 400 to by switching on and shutting down trigger module 300, switching on and shutting down control module 400 exports the Enable Pin of high level to power supply chip 200 according to above-mentioned control signal and clock signal
to make system keep off-mode, thus reach the object avoiding opening by mistake machine, improve switching on and shutting down control accuracy.
When system is in the electronic device in off-mode, due to the lower electricity of controller 100, if now switching on and shutting down trigger module 300 receives start trigger action, then switching on and shutting down trigger module 300 can export the first input/output terminal IO1 of above-mentioned start trigger pip to controller 100 and the clock end of switching on and shutting down control module 400, but because above-mentioned start trigger pip can be dragged down by the first input/output terminal IO1 by the circuit of controller 100 inside, and be communicated with output terminal due to the signal bidirectional end of switching on and shutting down trigger module 300, so the start trigger pip received by clock end of switching on and shutting down control module 400 will be had influence on like this, and then switching on and shutting down control module 400 cannot be worked by driven power supply chip 200, thus cause boot failure.In order to address this problem, above-mentioned switching on and shutting down control circuit can further include isolation module 600, as shown in Figure 8, the voltage detecting end of isolation module 600 connects the output terminal of power supply chip 200, and the first end of isolation module 600 and the second end be the first input/output terminal IO1 of connection control device 100 and the signal bidirectional end of switching on and shutting down trigger module 300 respectively; When the system in electronic equipment is in open state, isolation module 600 realizes closed according to the system voltage that power supply chip 200 exports, and is connected with the signal bidirectional end of switching on and shutting down trigger module 300 to make the first input/output terminal IO1 of controller 100; When the system in electronic equipment is in off-mode, isolation module 600 is isolated implementing to disconnect between the first input/output terminal IO1 of controller 100 and the signal bidirectional end of switching on and shutting down trigger module 300 without system voltage exports because of power supply chip 200, thus make start trigger pip not by the impact of the controller 100 of lower electricity, ensure that the system of electronic equipment can normal boot-strap.
In second embodiment of the invention, corresponding diagram 7, Fig. 9 and Figure 10 respectively illustrate the exemplary circuit structure of switching on and shutting down control circuit, and wherein, identical all with shown in Fig. 3 with Fig. 4 of the inner structure of switching on and shutting down trigger module 300 and power module 500, therefore repeats no more.For switching on and shutting down control module 400, as shown in Figure 9 and Figure 10, it comprises:
15 resistance R15, the 16 resistance R16, the 17 resistance R17, the 18 resistance R18, the 3rd NPN type triode Q3, the second d type flip flop U2, the 19 resistance R19, the second electric capacity C2, the 20 resistance R20, the 21 resistance R21 and the 4th NPN type triode Q4;
The first end of the 15 resistance R15 and the first end of the 21 resistance R21 are connected to direct supply VCC (it can be 12V direct supply) altogether, second end of the 15 resistance R15 is connected the first end of the 17 resistance R17 and the first end of the 19 resistance R19 with the common contact of the first end of the 16 resistance R16 simultaneously, the second end ground connection of the 16 resistance R16, second end of the 17 resistance R17 and the collector of the 3rd NPN type triode Q3 are connected to the signal input pin D of the second d type flip flop U2 altogether, the first end of the 18 resistance R18 is the signal end of switching on and shutting down control module 400, second end of the 18 resistance R18 connects the base stage of the 3rd NPN type triode Q3, the grounded emitter of the 3rd NPN type triode Q3, the clock signal pin CP of the second d type flip flop U2 is the clock end of switching on and shutting down control module 400, the set pin of the second d type flip flop U2
with the power end that the common contact of supply pin Vcc is switching on and shutting down control module 400, the clearing pin of the second d type flip flop U2
the first end of the second electric capacity C2 is connected to altogether, the second end ground connection of the second electric capacity C2, the anti-phase output pin of the second d type flip flop U2 with second end of the 19 resistance R19
sky connects, the lower margin GND ground connection of the second d type flip flop U2,20 resistance R20 is connected between the homophase output pin Q of the second d type flip flop U2 and the base stage of the 4th NPN type triode Q4, the grounded emitter of the 4th NPN type triode Q4, the common contact of second end of the 21 resistance R21 and the collector of the 4th NPN type triode Q4 is the output terminal of switching on and shutting down control module 400.
In addition, as can be seen from Figure 8, switching on and shutting down control circuit shown in Fig. 9 and Figure 10 can also comprise the isolation module 600 shown in Fig. 8, as shown in Figure 11 (corresponding diagram 9) and Figure 12 (corresponding Figure 10), the inner structure of isolation module 600 and identical shown in Fig. 5 with Fig. 6, therefore repeat no more.
Because the principle of work of the switching on and shutting down control circuit shown in Fig. 9 with Figure 10 is identical, both differences are only the inner structure of power module 500, and the principle of work of the switching on and shutting down control circuit shown in Figure 11 with Figure 12 is also identical, relative to Fig. 9 and Figure 10, isolation module 600 is added in Figure 11 and Figure 12, so, first in conjunction with principle of work, the switching on and shutting down control circuit shown in Fig. 9 is described further below:
When the system electrification of electronic equipment starts, voltage stabilizing diode D1 is that the second d type flip flop U2 powers, the clearing pin of the second d type flip flop U2
slowly started by the second electric capacity C2, and then make the clearing pin of the second d type flip flop U2
with set pin
logical value be respectively 0 and 1 (namely
), so, the logic function table of the d type flip flop provided according to a first embodiment of the present invention, it is 1 that the homophase output pin Q of the second d type flip flop U2 exports, so the 4th NPN type triode Q4 conducting, the enable pin of power supply chip 200
for low level, then power supply chip 200 is started working and output system voltage VCC_SYS, and then system is normally started.Controller 100 powers on thereupon, and makes its first input/output terminal IO1 and the second input/output terminal IO2 be high-impedance state or input state, then the clearing pin of the second d type flip flop U2
set pin
and (namely the logical value of signal input pin D is respectively 1,1,1
d=1), because the clock signal pin CP of now the second d type flip flop U2 does not receive any signal, so CP is X, therefore the output state of the homophase output pin Q of the second d type flip flop U2 remains unchanged (being 1), and power supply chip 200 works on.If now user pushes button interrupteur SW 1 because of carelessness, then the clock signal pin CP of the second d type flip flop U2 can receive high level (logical value is 1, CP=1), according to above-mentioned logic function table, the output of the homophase output pin Q of the second d type flip flop U2 is still 1, so the 4th NPN type triode Q4 keeps conducting state, the Enable Pin EN of power supply chip 200 is still low level, then system worked well.
When system electrification starts, first input/output terminal IO1 of controller 100 high level signal (namely above-mentioned start trigger pip) that sended over by keyswitch SW1 can be detected and timing, if keyswitch SW1 is pressed, the time was less than 2 seconds (i.e. above-mentioned first time period), then the high level time of IO1 continued less than 2 seconds, controller 100 can continue to export high level (namely above-mentioned control signal) by its second input/output terminal IO2 in 100ms (the first namely above-mentioned preset time period), then now the 3rd NPN type triode Q3 conducting, and the current potential of the signal input pin D of d type flip flop is dragged down, so the logical value of signal input pin D is 0 (i.e. D=0), after the time of IO2 output high level reaches 50ms (half of the first namely above-mentioned preset time period), controller 100 continues to export the clock signal pin CP of high level (namely above-mentioned clock signal) by the second resistance R2 to the second d type flip flop U2 by the first input and output pin IO1 in 20ms, so, the now clearing pin of the second d type flip flop U2
set pin
and (namely the logical value of signal input pin D is respectively 1,1 and 0
d=0), and CP has high level to trigger, then homophase output pin Q output low level (i.e. Q=0) of the second d type flip flop U2, so the 4th NPN type triode Q4 cut-off, and by the Enable Pin of power supply chip 200
current potential draw high, then power supply chip 200 quits work and not output system voltage VCC_SYS, and system cannot be started shooting.If the time remaining that keyswitch SW1 is pressed 2 seconds, then the first input/output terminal IO1 of controller 100 and the second input/output terminal IO2 maintains high-impedance state or input state, the clock signal pin CP of the second d type flip flop U2 can receive high level, and due to the clearing pin of the second d type flip flop U2
set pin
and (namely the logical value of signal input pin D is respectively 1,1 and 1
d=1), the homophase output pin Q of the second d type flip flop U2 exports high level (i.e. Q=1), then the 4th NPN type triode Q4 conducting, the Enable Pin of power supply chip 200
obtain low level, power supply chip 200 output system voltage makes system normal boot-strap.
System started and normal boot-strap after, when keyswitch SW1 was continued to press in 3 seconds, first input/output terminal IO1 of controller 100 can in 3 seconds continuous reception to a high level (namely above-mentioned shutdown trigger pip), then controller 100 can continue to export high level (namely above-mentioned control signal) by its second input/output terminal IO2 in 100ms (the first namely above-mentioned preset time period), then now the 3rd NPN type triode Q3 conducting, and the current potential of the signal input pin D of d type flip flop is dragged down, so the logical value of signal input pin D is 0 (i.e. D=0), after the time of IO2 output high level reaches 50ms (half of the first namely above-mentioned preset time period), controller 100 continues to export the clock signal pin CP of high level (namely above-mentioned clock signal) by the second resistance R2 to the second d type flip flop U2 by the first input and output pin IO1 in 20ms, so, the now clearing pin of the second d type flip flop U2
set pin
and (namely the logical value of signal input pin D is respectively 1,1 and 0
d=0), and CP has high level to trigger, then homophase output pin Q output low level (i.e. Q=0) of the second d type flip flop U2, so the 4th NPN type triode Q4 cut-off, and by the Enable Pin of power supply chip 200
current potential draw high, then power supply chip 200 quits work and not output system voltage VCC_SYS, system closedown, controller 100 with under electricity.After system closedown, except the second d type flip flop U2 maintenance works on power, remaining circuit all quits work, thus effectively can reduce power consumption, the power consumption of electronic equipment can be less than 0.2 watt, and it is far smaller than the power consumption requirements 0.5 watt of European Union ERP (Energy-relatedProducts, energy Related product), therefore, it is possible to reach the object of energy-conserving and environment-protective, and ensure that follow-up start control can normally be carried out.
When system is in off-mode, if keyswitch SW1 is pressed, then the clock signal pin CP of the second d type flip flop U2 obtains high level triggering, and due to controller 100 times electricity, the current potential of the signal input pin D of the second d type flip flop U2 is pulled up, so D=1, and
therefore the output state flip of the homophase output pin Q of the second d type flip flop U2 is high level, then Q=1, so the 4th NPN type triode Q4 conducting, the Enable Pin of power supply chip 200
become low level, the normal output system voltage VCC_SYS of power supply chip 200, then system starts normal operation, starts shooting successfully, and controller 100 also powers on thereupon.
Because Figure 11 adds isolation module 600 on the basis of Fig. 9, therefore, the principle of work below for the isolation module 600 in Figure 11 is described:
When system is in off-mode, due to the lower electricity of controller 100, if now push button interrupteur SW 1, when there is no isolation module 600, the high level (namely above-mentioned start trigger pip) that keyswitch SW1 sends directly is connected with the first input/output terminal IO1 of controller 100 by the second resistance R2, this high level can drag down by the circuit of this Time Controller 100 inside, and then the clock signal pin CP of the second d type flip flop U2 is dragged down, the output state of the homophase output pin Q of the second d type flip flop U2 then can be caused cannot to overturn as high level (i.e. Q=1), but remain low level (i.e. Q=0) always, the then Enable Pin of power supply chip 200
current potential be driven high, power supply chip 200 cannot output system voltage, thus cause system boot failure.And for having added the switching on and shutting down control circuit of isolation module 600 in Figure 11, when system is in open state, 13 resistance R13 and the 14 resistance R14 carries out dividing potential drop to the system voltage VCC_SYS that power supply chip 200 exports, electrical isolation device K1 realizes closed according to gained dividing potential drop, thus keyswitch SW1 is directly connected with controller 100 with electrical isolation device K1 by the second resistance R2; And when system is in off-mode, power supply chip 200 stops output system voltage VCC_SYS, then the voltage of the control end of electrical isolation device K1 is also 0, electrical isolation device K1 disconnects thereupon, isolate to make keyswitch SW1 and controller 100 disconnect, thus ensure start trigger pip not by the impact of the controller 100 of lower electricity, and system normal boot-strap can be ensured.
In order to make system still can normally work when fast insert-pull, the clearing pin of the second d type flip flop U2
dividing potential drop can be carried out to 12V direct supply (namely above-mentioned direct supply VCC), the set pin of the second d type flip flop U2 by the 15 resistance R15 and the 16 resistance R16
powered by voltage stabilizing diode D1, thus make the clearing pin of the second d type flip flop U2
voltage drop speed is than set pin
hurry up, ensure
state, then the homophase output pin Q of the second d type flip flop U2 exports as high level (i.e. Q=1), and guarantee power supply chip 200 is started working, and system normally starts.
In sum, the embodiment of the present invention comprises the switching on and shutting down control circuit of switching on and shutting down trigger module, switching on and shutting down control module and power module by adopting in the electronic device, and its circuit structure is simple, cost is low and be conducive to miniaturization; When the system of electronic equipment is in open state, if switching on and shutting down trigger module within the second time period continuous reception to shutdown trigger action, when then controller can differ from, output control signal and clock enabling signal switching on and shutting down control module control power supply chip quit work, to make system closedown; When the system of electronic equipment is in off-mode, if switching on and shutting down trigger module receives start trigger action, the start trigger pip driving power chip that switching on and shutting down control module can export according to switching on and shutting down trigger module is started working, to make system boot, thus reliablely and stablely can realize switching on and shutting down control to electronic equipment, solve and both cannot ensure the reliability and stability that switching on and shutting down control existing for prior art, again can the miniaturization of realizing circuit and the problem of low cost.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.