CN201550091U - Embedded controller electronic switch - Google Patents

Embedded controller electronic switch Download PDF

Info

Publication number
CN201550091U
CN201550091U CN2009201083190U CN200920108319U CN201550091U CN 201550091 U CN201550091 U CN 201550091U CN 2009201083190 U CN2009201083190 U CN 2009201083190U CN 200920108319 U CN200920108319 U CN 200920108319U CN 201550091 U CN201550091 U CN 201550091U
Authority
CN
China
Prior art keywords
type flip
flip flop
links
polar capacitor
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2009201083190U
Other languages
Chinese (zh)
Inventor
邓春健
李文生
吕燚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China Zhongshan Institute
Original Assignee
University of Electronic Science and Technology of China Zhongshan Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Electronic Science and Technology of China Zhongshan Institute filed Critical University of Electronic Science and Technology of China Zhongshan Institute
Priority to CN2009201083190U priority Critical patent/CN201550091U/en
Application granted granted Critical
Publication of CN201550091U publication Critical patent/CN201550091U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The utility model discloses an embedded controller electronic switch belongs to the electron field. The circuit comprises: the long press judging circuit, the state converting circuit based on the D trigger and connected with the long press judging circuit, and the power supply voltage stabilizing circuit with the function and connected with the state converting circuit; wherein, long according to the discrimination circuit includes: the device comprises a discharge resistor, a charge resistor, a polar capacitor, a diode and a keyboard, wherein voltage is input; the input voltage is connected with one end of a keyboard, the other end of the keyboard is respectively connected with the N level of a diode and one end of a charging resistor, and the P level of the diode is connected with the other end of the charging resistor; the other end of the charging resistor is connected with the anode of the polar capacitor, and the cathode of the polar capacitor is grounded; the N stage of the diode is connected with one end of the discharge resistor, and the other end of the discharge resistor is grounded; the positive stage of the polarity capacitor is connected with the clock input end of the trigger. The utility model discloses a polarity electric capacity charges slowly and discharges fast, has reduced start and key sensitivity of shutting down, has avoided the maloperation to the keyboard.

Description

The embedded controller electronic switch
Technical field
The utility model relates to electronic applications, particularly the embedded controller electronic switch.
Background technology
The realization of electronic product switch machine function is realized by mechanical switch or electronic switch that usually originating by the power supply of switch cut-out or conducting system reaches the switch purpose.Mechanical switch mainly is the effect that realizes power connection and cut-out by mechanical means or physical means; Electronic switch then is to adopt electronic device control to reach the purpose that switches on or off of system power supply, have intelligent characteristics, so electronic switch has been applied in many portable type electronic product instruments.
Embedded controller belongs to a class of portable instrument, volume to embedded controller has certain requirement in actual applications, usually adopt complex function keyboard (possessing the startup and shutdown function simultaneously) to reduce the keyboard number of startup and shutdown in the prior art, to realize control to the embedded controller volume for this reason.In to complex function keyboard operation process because start key and closing key are too responsive, usually cause occurring operations such as button error, and then because the button operation error can cause system the mistake that can't recover to occur, for example loss of data, data processing are ended or the like by force, have brought for user's use and seriously influence.
In order to solve owing to start key and the too responsive error that button occurs of closing key, a kind of singly-bound length has been proposed by electronic switching circuit in the prior art, realize having only after keyboard is pressed the several seconds by circuit by this singly-bound length, think that just keyboard triggers effectively, correspondingly embedded controller just can respond start or power-off operation, otherwise does not carry out start or power-off operation.Referring to Fig. 1, be the long schematic diagram of pressing the keyboard input circuit of electronic switching circuit of this singly-bound, wherein, this keyboard input circuit is made up of resistance R 1, resistance R 2, polar capacitor C1 and keyboard Sw1, when keyboard is pressed, capacitor C 1 begins charging, and embedded controller just can respond start or power-off operation when charging reaches threshold values; Capacitor C 1 begins discharge when keyboard unclamps.Wherein, the value of R1, R2 and capacitor C 1 capacity have determined the charging rate of capacitor C 1, and electronics R1 and capacitor C 1 capacity have determined the velocity of discharge of capacitor C 1.By the long control of press electronic switching circuit of this singly-bound to start and closing key sensitivity, avoided effectively starting shooting and the misoperation of closing key, solved the influence that the error because of button brings to the user.
In realizing process of the present utility model, the inventor finds that there is following shortcoming at least in prior art: the keyboard input circuit that prior art provides is not owing to independently charge and discharge circuit, the charging battery of polar capacitor when realizing that keyboard is pressed, to reduce the sensitivity of startup and shutdown key, avoid misoperation to keyboard, need to strengthen resistance R 2 and polar capacitor C1 value, reduce the value of resistance R 1; And the fast discharge of polar capacitor when realizing that keyboard unclamps, need reduce R1 and polar capacitor C1, therefore, for charging battery and the fast discharge that realizes polar capacitor, thereby need carry out the capability value that loaded down with trivial details calculating and checking work obtain suitable resistance R1 and polar capacitor C1, this mode is difficult for realizing; And the fast discharge of realization polar capacitor that can't be desirable when unclamping keyboard, cause that a period of times such as needs could be once more by lower keyboard, influenced power on/off function once more, can't satisfy user's actual needs.
Summary of the invention
For charging battery and the repid discharge that realizes polar capacitor, embedded controller can in time be responded start or shutdown action once more, and, satisfy the needs in the practical application in order to realize program control control power-off operation, described technical scheme is as follows:
A kind of embedded controller electronic switch, described embedded controller electronic switch be singly-bound length by switching circuit, described circuit comprises: the power supply stabilization circuit that the long state switching circuit based on d type flip flop that links to each other by judging circuit by judging circuit, with described length, the band that links to each other with described state switching circuit enable; Wherein,
Described length comprises by judging circuit: discharge resistance R1, charging resistor R2, polar capacitor C1, diode D1 and keyboard Sw1, input voltage V;
Described input voltage V links to each other with described keyboard Sw1 one end, the described keyboard Sw1 other end links to each other with the N level of described diode D1 and the end of described charging resistor R2 respectively, the P level of described diode D1 and the other end of described charging resistor R2 link to each other, the other end of described charging resistor R2 links to each other with the positive pole of described polar capacitor C1, the minus earth of described polar capacitor C1, the N level of described diode D1 links to each other with the end of described discharge resistance R1, the other end ground connection of described discharge resistance R1, the positive level of described polar capacitor C1 links to each other with the input end of clock CLK of described d type flip flop.
Described state switching circuit based on d type flip flop comprises: d type flip flop, input voltage V; Wherein,
The output Q of described d type flip flop links to each other with the Enable Pin EN of the power supply stabilization circuit that described band enables;
The output Q of described d type flip flop links to each other with the input D of described d type flip flop;
The number of putting of described d type flip flop is held S ground connection, and the number of putting of described d type flip flop is held R ground connection;
The power input V of described d type flip flop links to each other with described input power supply V.
The power supply stabilization circuit that described band enables comprises: voltage stabilizing chip, resistance R 3, capacitor C 3, polar capacitor C2, input voltage V;
One end of described voltage stabilizing chip and described resistance R 3 links to each other, and an end of the other end of described resistance R 3 and described capacitor C 3 links to each other;
The positive pole of described voltage stabilizing chip and described polar capacitor C2 links to each other, the minus earth of described polar capacitor C2;
One end of described voltage stabilizing chip and described capacitor C 3 links to each other, the other end ground connection of described capacitor C 3.
Described circuit also comprises: polar capacitor C4, micro controller unit MCU interface, wherein,
The negative pole of described polar capacitor C4 links to each other with described micro controller unit MCU interface, and an end of putting number end S of the positive pole of described polar capacitor C4 and described d type flip flop links to each other.
A kind of embedded controller electronic switch, described embedded controller electronic switch is program control shutdown interface circuit, and described circuit comprises: based on the state switching circuit of d type flip flop, power supply stabilization circuit, polar capacitor C4, resistance R 4, the micro controller unit MCU interface that band enables;
The negative pole of described polar capacitor C4 links to each other with described micro controller unit MCU interface; The positive pole of described polar capacitor C4 links to each other with an end of putting number end S and described resistance R 4 of described d type flip flop respectively;
The other end of described resistance R 4 links to each other with the clock signal clk of described d type flip flop, and the other end ground connection of described resistance R 4.
Described state switching circuit based on d type flip flop comprises: d type flip flop, input voltage V; Wherein,
The output Q of described d type flip flop links to each other with the Enable Pin EN of the power supply stabilization circuit that described band enables;
The output Q of described d type flip flop links to each other with the input D of described d type flip flop;
The number of putting of described d type flip flop is held R ground connection;
The power input V of described d type flip flop links to each other with described input power supply V.
The power supply stabilization circuit that described band enables comprises: voltage stabilizing chip, resistance R 3, capacitor C 3, polar capacitor C2, input voltage V;
One end of described voltage stabilizing chip and described resistance R 3 links to each other, and an end of the other end of described resistance R 3 and described capacitor C 3 links to each other;
The positive pole of described voltage stabilizing chip and described polar capacitor C2 links to each other, the minus earth of described polar capacitor C2;
One end of described voltage stabilizing chip and described capacitor C 3 links to each other, the other end ground connection of described capacitor C 3.
Described micro controller unit MCU interface output high level, described polar capacitor C4 and described resistance R 4 insert described high level, and the number end S that puts of described d type flip flop inserts described high level, and described d type flip flop output Q is a high level.
The scheme that the utility model embodiment provides, the charging battery and the repid discharge of polar capacitor have been realized, reduced the sensitivity of startup and shutdown keys, avoided misoperation to keyboard, the needs in the practical application have been satisfied, and the utility model proposes program control shutdown interface circuit, realized the operation of program control control shutdown, satisfied the multiple demand in the practical application, and a kind of embedded controller electronic switching circuit has been proposed, realized embedded controller electronic switch function diversity, convenience.
Description of drawings
Fig. 1 is the structural representation of the singly-bound length that provides of prior art by the keyboard input circuit in the electronic switching circuit;
Fig. 2 is that the singly-bound length that provides of the utility model embodiment 1 is by the switching circuit structural representation;
Fig. 3 is the program control shutdown interface circuit structural representation that the utility model embodiment 2 provides;
Fig. 4 is the embedded controller electronic switching circuit structural representation that the utility model embodiment 3 provides.
Embodiment
For making the purpose of this utility model, technical scheme and advantage clearer, the utility model execution mode is described in further detail below in conjunction with accompanying drawing.
For charging battery and the repid discharge that realizes polar capacitor, satisfy the needs in the practical application, referring to embodiment 1, the utility model proposes a kind of singly-bound length by switching circuit; In order to realize program control shutdown, satisfy the multiple demand in the practical application, referring to embodiment 2, the utility model proposes a kind of program control shutdown interface circuit; In order to realize the diversity of embedded controller switching on and shutting down effect, convenience, referring to embodiment 3, the utility model has also proposed a kind of embedded controller electronic switching circuit.See for details hereinafter and describe:
Embodiment 1
For charging battery and the repid discharge that realizes polar capacitor, satisfy the needs in the practical application, the utility model embodiment provides a kind of singly-bound length by switching circuit.
Referring to Fig. 2, the singly-bound length that provides for the utility model embodiment is by the switching circuit structural representation, and this singly-bound length comprises by switching circuit: long by judging circuit, based on the state switching circuit of d type flip flop, the power supply stabilization circuit that band enables; Wherein, length comprises by judging circuit: discharge resistance R1, charging resistor R2, polar capacitor C1, diode D1 and keyboard Sw1, input voltage V; State switching circuit based on d type flip flop comprises: d type flip flop, input voltage V, and wherein, CLK is the input of d type flip flop clock signal, Q and Q are the output of d type flip flop; The power supply stabilization circuit that band enables comprises: the voltage stabilizing chip (is specifically as follows the TPS7333 module, present embodiment voltage stabilizing chip is that example describes with this TPS7333 module, be not limited to the concrete model of voltage stabilizing chip during specific implementation), resistance R 3, capacitor C 3, polar capacitor C2, input voltage V.
Wherein, as shown in Figure 2, the long input that is connected to the CLK of d type flip flop by the positive ends of the polar capacitor C1 in the judging circuit, the voltage of polar capacitor C1 output has determined the voltage signal of CLK input, the output Q of d type flip flop is connected to the Enable Pin EN that is with the power supply stabilization circuit that enables, and the state of output Q has determined the state of the Enable Pin EN of power supply stabilization circuit.Because present embodiment is that example describes with the TPS7333 module, the operating voltage of this TPS7333 module is 5V, so the value of the supply voltage V of the utility model input is 5V, for convenience of explanation, with this input voltage for abbreviating V5 as.This input voltage V5 links to each other with keyboard Sw1 one end, the keyboard Sw1 other end meets N level and the charging resistor R2 of diode D1 respectively, charging resistor R2 and diode D1 parallel connection, the other end of charging resistor R2 links to each other with the positive pole of polar capacitor C1, the N level of diode D1 meets discharge resistance R1, and the P level connects the positive level of polar capacitor C1, and the positive level of polar capacitor C1 links to each other with the input end of clock CLK of d type flip flop, the other end ground connection of discharge resistance R1, the minus earth of polar capacitor C1; The output Q of d type flip flop links to each other with the input D of d type flip flop, and the number of putting of d type flip flop is held S end and R end ground connection, and the power input V of d type flip flop links to each other with input power supply V; The TPS7333 module of the power supply stabilization circuit that band enables and an end of resistance R 3 link to each other, and an end of the other end of resistance R 3 and capacitor C 3 links to each other; The TPS7333 module links to each other with the positive pole of polar capacitor C2, the minus earth of polar capacitor C2; One end of TPS7333 module and capacitor C 3 links to each other, the other end ground connection of capacitor C 3.
The user is at T for the utility model hypothesis AAfter constantly pressing lower keyboard triggering start operation, need again at once at T BTriggering power-off operation by lower keyboard once more constantly is that example describes.Wherein, T AAnd T BTime at intervals is very little.See for details as follows:
One, at T AConstantly, Sw1 presses when keyboard, as shown in Figure 2, input voltage V5 inserts, because charging resistor R2 and diode D1 parallel connection, the dividing potential drop effect of resistance R 2, make the voltage of diode N level greater than the voltage of diode P level, so diode D1 is operated in cut-off state, promptly charging resistor R2 and polar capacitor C1 have formed charging circuit, polar capacitor C1 begins charging, and the resistance value of charging interval and charging resistor R2 is relevant with the capacity of polar capacitor C1.For this reason, because the length that the utility model provides can constitute charging circuit by judging circuit,, can realize the charging battery effect of polar capacitor by the resistance value of selecting suitable charging resistor therefore when capacitance one timing of polar capacitor C1.See for details hereinafter and describe:
After pressing lower keyboard Sw1, voltage V5 inserts, and diode D1 is operated in cut-off state, and charging resistor R2 and polar capacitor C1 have formed charging circuit, and polar capacitor C1 is by resistance R 2 chargings, and input voltage V is 5V, and capacitor C 1 voltage is in the charging process:
U c ( t ) = V ( 1 - e - t 1 / τ 1 ) (V of unit) t1 〉=0 (1)
Wherein, t1 is the charging interval, τ 1Be the charging constant;
τ 1=R 2* C 1(s of unit) (2)
Can obtain the voltage of polar capacitor C1 in charging process according to formula (1) and formula (2), wherein, the capacity of the speed in charging interval and polar capacitor C1 is relevant with the resistance of charging resistor R2, promptly can realize the charging battery of polar capacitor by control to the resistance of the capacity of polar capacitor C1 and charging resistor R2.
Wherein, because d type flip flop is operated in the rising edge of input clock signal CLK, and there is critical voltage Va when arriving in the rising edge of input end of clock CLK.Referring to formula (3) when the magnitude of voltage of clock input CLK end when being increased to the Va value less than the Va value, think that then the rising edge of clock signal clk at this moment is effective.Wherein, the model of the concrete value size of critical voltage Va value and the power supply of d type flip flop and d type flip flop is relevant, and the utility model does not limit this,
V ( 1 - e - t 1 / τ 1 ) > Va - - - ( 3 )
The voltage of polar capacitor C1 output has determined the voltage signal of CLK input, therefore, have only when the voltage of polar capacitor C1 output reaches critical voltage Va value, just can trigger d type flip flop starts working, and the voltage of polar capacitor C1 output is relevant with the charging interval t1 of polar capacitor C1, therefore, the critical value that calculates charging interval t1 according to above-mentioned formula is
Figure G2009201083190D00053
Promptly as charging interval t1 during greater than the critical value of this charging interval t1, d type flip flop could be worked, and formula is with reference to as follows:
t 1 > - τ 1 ln ( V - Va V ) - - - ( 4 )
Formula (2) is brought in the formula (4), obtains:
t 1 > - R 2 × C 1 × ln ( V - Va V ) - - - ( 5 )
Therefore, when the charging interval of polar capacitor C1, t1 reached the critical value of this charging interval t1, think that then the rising edge of input end of clock CLK arrives, at this moment d type flip flop is started working; Otherwise polar capacitor C1 continues charging, till the charging interval of polar capacitor C1, t1 reached the critical value of this charging interval t1.
When the rising edge arrival of clock input CLK, d type flip flop work, corresponding state variation takes place in the output Q and the Q state of this d type flip flop, sees for details as follows: wherein, according to d type flip flop state exchange formula: Q N+1=D, the state of acquisition output Q and Q referring to table 1, is the state exchange relation table of d type flip flop output Q and Q.
The state exchange relation of table 1 d type flip flop output Q and Q
D n Q n+1 Q n+1 D n+1
0 0 1 1
1 1 0 0
The initial condition of supposing input D is for " 0 " expression (low level), and from table 1, the state that can find output Q is " 0 " expression (low level), the state of Q is " 1 " expression (high level), because D links to each other with Q, therefore, the next state of D is " 1 " expression (high level); Wherein, referring to Fig. 2, because the output Q of d type flip flop links to each other with the Enable Pin EN of power supply stabilization circuit, therefore, the state of output Q has determined the state of the Enable Pin EN of power supply stabilization circuit, if want to make power supply stabilization circuit in running order, then need to make Enable Pin EN effective, even the state of EN is " 0 " expression (low level), therefore, can be output as " 0 " expression (low level) by control output end Q, thereby make power supply stabilization circuit in running order.After power supply stabilization circuit was in running order, the TPS7333 module changed into the voltage signal output of 3.3V with the input voltage of 5V, thereby has finished power up function.
In sum, the singly-bound length that provides by the utility model is by switching circuit, when keyboard is pressed, have only when the time of button and just can trigger power up function during long enough, therefore, by the charging resistor resistance being selected to realize the effect of charging battery, make the triggering of keyboard be not easy to response, avoided because of misoperation, to having a strong impact on that the user brings keyboard.For example, press in the judging circuit long, under the certain prerequisite of the capability value value of polar capacitor C1, the resistance value that only needs to adjust charging resistor R2 just can realize charging battery, for example, empirical threshold voltage Va=2.5V, V=5V, C1=100uf is if the resistance value of R2 is adjusted into R2=70k Ω, utilize formula (5), the critical value that obtains charging interval t1 is about 5s, promptly when the time of long keypad is about 5s, could realize the action of start, realized the response that is not easy to of button operation, avoided because of to the misoperation of keyboard to having a strong impact on that the user brings.
Two, unclamp as keyboard Sw1, as shown in Figure 2, polar capacitor C1 begins discharge, at this moment, the voltage of diode P level is greater than the voltage of diode N level, and diode D1 is operated in conducting state, and charging resistor R2 is by short circuit, be that discharge resistance R1 and polar capacitor C1 have formed discharge circuit, the resistance value of discharge time and discharge resistance R1 is relevant with the capacity of polar capacitor C1.Because in charging process and discharge process, charging resistor and discharge resistance act on respectively, the discharge voltage of polar capacitor C1 is:
U c ( t ) = V e - t 2 / τ 2 (V of unit) t2 〉=0 (6)
Wherein, τ 2Be the discharge constant;
τ 2=R 1* C 1(s of unit) (7)
Can obtain the voltage of polar capacitor C1 in discharge process according to formula (6) and formula (7), wherein, the capacity of the speed of discharge time and polar capacitor C1 is relevant with the resistance of discharge resistance R1, therefore can come the discharge speed of polar capacitor C1 is controlled by control the resistance of the capacity of polar capacitor C1 and discharge resistance R2.In the practical application, often wish when unclamping keyboard, can realize the fast discharge of polar capacitor.See for details hereinafter:
As previously mentioned, the voltage of polar capacitor C1 has determined the voltage signal of CLK input, and when the voltage of polar capacitor C1 during less than the critical voltage Va of d type flip flop, d type flip flop quits work, and it is as follows therefore to obtain discharge time t2,
V e - t 2 / &tau; 2 < Va - - - ( 8 )
By the critical value that calculates t2 discharge time be
Figure G2009201083190D00073
Promptly when discharge time t2 greater than discharge time t2 critical value the time, d type flip flop quits work, formula is as follows:
t 2 > - &tau; 2 ln ( Va V ) - - - ( 9 )
Formula (7) is brought in the formula (9), obtains:
t 2 > - R 1 &times; C 1 &times; ln ( Va V ) - - - ( 10 )
Therefore, when the discharge time of polar capacitor C1, t2 reached the critical value of t2 discharge time, think that then the trailing edge of input end of clock CLK arrives, for example, empirical threshold voltage Va=2.5V, V=5V, C1=100uf is if the resistance value of R1 is adjusted into R1=1k Ω, utilize formula (10), the critical value that obtains t2 discharge time is about 0.07s, behind discharge off, then can trigger the operation that keyboard is pressed once more, promptly unclamp when being about 0.07s when keyboard, then can press lower keyboard once more, keyboard can triggering have once more been realized the function of repid discharge, has satisfied the requirement in the practical application.
Three, at TB constantly, when pressing lower keyboard Sw1 once more, charging resistor R2 and polar capacitor C1 have formed charging circuit once more, polar capacitor C1 begins charging, the process of carrying out charging once more (sees also above-mentioned (one) described charging process, process is similar to be repeated no more), when the charging voltage of polar capacitor C1 reaches critical voltage Va, d type flip flop work, because output Q and D end link together by lead, the next state that can obtain D by table 1 is " 1 " expression (high level), according to d type flip flop state exchange formula, the state that can obtain output Q is " 1 " expression (high level), the state of output Q is " 0 " expression (low level), therefore, the incoming level of the Enable Pin EN of power supply stabilization circuit is high level " 1 " expression (high level), at this moment, power supply stabilization circuit quits work, embedded controller is in off-mode, under the certain prerequisite of the capability value value of polar capacitor C1, by adjustment to the resistance value of charging resistor R2, realized the charging battery of polar capacitor C1, reached the purpose of power-off operation.
Four, when unclamping keyboard Sw1 once more, polar capacitor C1 begins discharge again (referring to above-mentioned (two) described discharge process, process is similar to be repeated no more), discharge resistance R1 and polar capacitor C1 have formed discharge circuit, under the certain prerequisite of the capability value value of polar capacitor C1, selected by to discharge resistance R1 resistance value, realization once more the repid discharge of polar capacitor.
So far, finished the operation of a whole set of startup and shutdown.
In sum, the utility model provides a kind of singly-bound length by switching circuit, based on this circuit, by the charging resistor resistance is selected, can realize the effect of charging battery, make the triggering of keyboard be not easy to response, avoided because of misoperation, to having a strong impact on that the user brings keyboard; By the discharge resistance resistance is selected, can realize the effect of repid discharge, solved because of can not repid discharge, influenced the problem of once more keyboard being operated, satisfy the needs in the practical application.
Embodiment 2
Whether the user carries out power-off operation, record function such as unused time in order to point out the user when carrying out power-off operation, and function such as the shutdown picture that flashes before the shutdown, needs program control shutdown to realize.In order to satisfy in the practical application to the multiple demand of power-off operation, embodied the flexibility of program control shutdown, convenient for users to use, the utility model proposes a kind of program control shutdown interface circuit.
Referring to Fig. 3, the interface circuit structural representation of the program control shutdown that provides for the utility model embodiment, this program control shutdown interface circuit comprises: based on the state switching circuit of d type flip flop, power supply stabilization circuit, the polar capacitor C4 that band enables, resistance R 4, the voltage of input external power supply is 5V, wherein, the state switching circuit based on d type flip flop comprises: d type flip flop, input voltage V; Wherein, the power supply stabilization circuit that band enables comprises: the voltage stabilizing chip (is specifically as follows the TPS7333 module, present embodiment voltage stabilizing chip is that example describes with this TPS7333 module, is not limited to the concrete model of voltage stabilizing chip during specific implementation), resistance R 3, capacitor C 3, polar capacitor C2, input voltage V; Wherein, MCU (Micro Controller Unit, micro-control unit) connects the OFF control line by shutdown interface I/O end, the number end S end of putting of OFF control line and d type flip flop is isolated by polar capacitor C4, wherein, the number of putting of d type flip flop holds S to terminate to the positive pole of polar capacitor C4, and an end of resistance R 4 connects the positive pole of polar capacitor C4, the other end is connected on the clock signal clk of d type flip flop, and the OFF control line is connected on the negative pole of polar capacitor C4; The output Q of d type flip flop links to each other with the Enable Pin EN of the power supply stabilization circuit that band enables, and the output Q of d type flip flop links to each other with the input D of d type flip flop, and the number of putting of d type flip flop is held R ground connection, and the power input V of d type flip flop links to each other with input power supply V; A power supply stabilization circuit TPS7333 module that band enables and an end of resistance R 3 link to each other, one end of the other end of resistance R 3 and capacitor C 3 links to each other, the TPS7333 module links to each other with the positive pole of polar capacitor C2, the minus earth of polar capacitor C2, one end of TPS7333 module and capacitor C 3 links to each other, the other end ground connection of capacitor C 3.
MCU finishes power-off operation to embedded controller by control OFF control line.See for details as follows:
After embedded controller powered on operation, it was low level that MCU is provided with the OFF control line by the I/O end, guarantees the operate as normal of embedded controller with this;
When MCU received shutdown command, by I/O end the OFF control line being set was high level, and the S end of d type flip flop (link of polar capacitor C4 and resistance R 4) as shown in Figure 3, has i.e. inserted high level.When the amplitude of the output level of R4 end reaches the required amplitude of high level, be that R4 holds the amplitude of the voltage of output to reach the critical voltage Va of d type flip flop, then d type flip flop is in running order, and because the S termination of d type flip flop is gone into high level, the state that can obtain output Q is a high level, and then make the level of Enable Pin EN input of the power supply stabilization circuit that band enables also be high level, realize that power supply stabilization circuit quits work, thereby reach the purpose of embedded controller being carried out program control shutdown.
Wherein, the number end S end of putting of OFF control line and d type flip flop is isolated by polar capacitor C4, avoided because of after system powers on, embedded controller is in the process of work, in case when high level appears in the OFF control line, make the number end S end of putting of d type flip flop be similarly high level, and the output Q that causes occurring d type flip flop is a high level, and then make that the EN of the power supply stabilization circuit that band enables is a high level, cause the power-off operation of embedded controller.
Wherein, it should be noted that especially, in order to realize the power-off operation of embedded controller, need to guarantee that the electric capacity (being C4) that inserts is to be with polarity, reason is as follows: if what insert is the electric capacity of not being with polarity, owing to usually do not reach the needed amplitude of high level with the output voltage values of polar capacitor, cause the amplitude of the voltage of R4 end output also not reach the critical voltage Va of d type flip flop, cause d type flip flop to work, and then also can't realize the power-off operation of embedded controller; After the electric capacity of having selected band polarity, the negative pole that also needs to guarantee polar capacitor C4 connects the OFF control line, reason is as follows: if the polarity of polar capacitor C4 connects instead, be that the R4 end has then inserted negative level, and because d type flip flop is because rising edge triggering work, if the R4 end has then inserted negative level and then caused d type flip flop not work, can't realize the power-off operation of embedded controller.
In sum, the utility model provides a kind of program control shutdown interface circuit, based on this circuit, realized to embedded controller program control shutdown, satisfied in the practical application the multiple demand of power-off operation, embodied the flexibility of program control shutdown, convenient for users to use.Wherein, the number end S end of putting of OFF control line and d type flip flop is isolated by polar capacitor C4, has eliminated the direct influence of putting number end S end of MCU shutdown interface to d type flip flop in the state switching circuit.
Embodiment 3
In order to realize the flexibility of embedded controller electronic switch function, convenience has satisfied the multiple demand in the practical application, and the utility model embodiment provides a kind of embedded controller electronic switching circuit.
Referring to Fig. 4, the structure chart of a kind of embedded controller electronic switching circuit that provides for the utility model embodiment, this embedded controller electronic switching circuit comprises: long by judging circuit, based on the state switching circuit of d type flip flop, the power supply stabilization circuit that band enables, and polar capacitor C4, micro controller unit MCU interface.Wherein length comprises by judging circuit: discharge resistance R1, charging resistor R2, polar capacitor C1, diode D1 and keyboard Sw1, input voltage V; Wherein, input voltage V links to each other with keyboard Sw1 one end, the keyboard Sw1 other end links to each other with the N level of diode D1 and the end of charging resistor R2 respectively, the P level of diode D1 links to each other with the other end of charging resistor R2, the other end of charging resistor R2 links to each other with the positive pole of polar capacitor C1, the minus earth of polar capacitor C1, and the N level of diode D1 links to each other with the end of discharge resistance R1, the other end ground connection of discharge resistance R1, the positive level of polar capacitor C1 links to each other with the input end of clock CLK of d type flip flop; The negative pole of polar capacitor C4 links to each other with micro controller unit MCU interface, and the number end S that puts of the positive pole of polar capacitor C4 and d type flip flop links to each other.Wherein, MCU connects the OFF control line by interface I/O end, and the number end S end of putting of the d type flip flop in OFF control line and the state switching circuit is isolated by polar capacitor C4.
The embedded controller electronic switching circuit that utilizes the utility model embodiment to provide can be pressed the start operation of realization to embedded controller by keyboard, the OFF control line is controlled the power-off operation of finishing embedded controller by MCU.See for details as follows:
If the demand of start operation occurs embedded controller is carried out, then press lower keyboard Sw1, correspondingly, as described in preceding embodiment 1, Sw1 presses when keyboard, and diode D1 is operated in cut-off state, and charging resistor R2 and polar capacitor C1 have formed charging circuit, polar capacitor C1 begins charging, and the resistance value of charging interval and charging resistor R2 is relevant with the capacity of polar capacitor C1.Capability value one timing as polar capacitor C1, realize the charging battery effect of polar capacitor C1 by the resistance value of selecting suitable charging resistor R2, realization is carried out the start operation to embedded controller, because the charging battery of polar capacitor C1, thereby the triggering that can make keyboard is not easy to response, avoided because of misoperation, to having a strong impact on that the user brings keyboard.Ground similar to Example 1, Sw1 unclamps when keyboard, and diode D1 is operated in conducting state, and discharge resistance R1 and polar capacitor C1 have formed discharge circuit, polar capacitor C1 begins discharge, and the resistance value of discharge time and discharge resistance R1 is relevant with the capacity of polar capacitor C1.When capability value one timing of polar capacitor, realize the fast discharge effect of polar capacitor C1 by the resistance value of selecting suitable discharge resistance R1.
If the demand of program control power-off operation occurs embedded controller is carried out, then when MCU receives shutdown command, according to the program setting of self, it is high level that the OFF control line is set, correspondingly, the S end (being the end that is connected of polar capacitor C4) of d type flip flop has inserted high level, because this S termination is gone into high level, therefore the output Q that obtains this d type flip flop is a high level, as shown in Figure 4, the Enable Pin EN of the power supply stabilization circuit that the output Q and the band of this d type flip flop enables links to each other, so this Enable Pin EN also is a high level, make power supply stabilization circuit quit work, thereby realized embedded controller is carried out the purpose of program control shutdown.
In sum, the utility model provides a kind of embedded controller electronic switching circuit, based on this circuit, when carrying out the start operation of embedded controller by keyboard, by the charging resistor resistance is selected, can realize the effect of charging battery, make the triggering of keyboard be not easy to response, avoided because of misoperation, to having a strong impact on that the user brings keyboard; And by the discharge resistance resistance is selected, can realize the effect of repid discharge, solve, influence the problem of once more keyboard being operated, satisfy the needs in the practical application because of can not repid discharge; And, realized program control shutdown based on this circuit to embedded controller, satisfied in the practical application the multiple demand of power-off operation, embodied the flexibility of program control shutdown, convenient for users to use.Realize embedded controller electronic switch function diversity, convenience, satisfied the multiple demand in the practical application.
The utility model is by having finished the function of startup and shutdown by the operation of switching circuit to singly-bound length, by the charging resistor resistance is selected, can realize the effect of charging battery, make the keyboard operation be not easy to response, avoided because of misoperation, to having a strong impact on that the user brings keyboard; By the discharge resistance resistance is selected, can realize the effect of repid discharge, solved because of can not repid discharge, influenced the problem of once more keyboard being operated; The utility model is by the design to program control shutdown circuit interface simultaneously, realized the power-off operation of controlling embedded controller by program control having satisfied the multiple demand in the practical application, the user can select the mode of shutting down flexibly, the method that realizes is simple, and is convenient; And the utility model has been formed a kind of electronic switching circuit of embedded controller with singly-bound length by switching circuit and program control shutdown interface circuit, has realized embedded controller electronic switch function diversity, convenience.
The above only is preferred embodiment of the present utility model, and is in order to restriction the utility model, not all within spirit of the present utility model and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within the protection range of the present utility model.

Claims (8)

1. embedded controller electronic switch, it is characterized in that, described embedded controller electronic switch be singly-bound length by switching circuit, described circuit comprises: the power supply stabilization circuit that the long state switching circuit based on d type flip flop that links to each other by judging circuit by judging circuit, with described length, the band that links to each other with described state switching circuit enable; Wherein,
Described length comprises by judging circuit: discharge resistance R1, charging resistor R2, polar capacitor C1, diode D1 and keyboard Sw1, input voltage V;
Described input voltage V links to each other with described keyboard Sw1 one end, the described keyboard Sw1 other end links to each other with the N level of described diode D1 and the end of described charging resistor R2 respectively, the P level of described diode D1 and the other end of described charging resistor R2 link to each other, the other end of described charging resistor R2 links to each other with the positive pole of described polar capacitor C1, the minus earth of described polar capacitor C1, the N level of described diode D1 links to each other with the end of described discharge resistance R1, the other end ground connection of described discharge resistance R1, the positive level of described polar capacitor C1 links to each other with the input end of clock CLK of described d type flip flop.
2. embedded controller electronic switch as claimed in claim 1 is characterized in that, described state switching circuit based on d type flip flop comprises: d type flip flop, input voltage V; Wherein,
The Enable Pin of the power supply stabilization circuit that the output Q of described d type flip flop and described band enable
Figure DEST_PATH_FA20192150200920108319001C00011
Link to each other;
The output of described d type flip flop
Figure DEST_PATH_FA20192150200920108319001C00012
Link to each other with the input D of described d type flip flop;
The number of putting of described d type flip flop is held S ground connection, and the number of putting of described d type flip flop is held R ground connection;
The power input V of described d type flip flop links to each other with described input power supply V.
3. embedded controller electronic switch as claimed in claim 1 or 2 is characterized in that, the power supply stabilization circuit that described band enables comprises: voltage stabilizing chip, resistance R 3, capacitor C 3, polar capacitor C2, input voltage V;
One end of described voltage stabilizing chip and described resistance R 3 links to each other, and an end of the other end of described resistance R 3 and described capacitor C 3 links to each other;
The positive pole of described voltage stabilizing chip and described polar capacitor C2 links to each other, the minus earth of described polar capacitor C2;
One end of described voltage stabilizing chip and described capacitor C 3 links to each other, the other end ground connection of described capacitor C 3.
4. embedded controller electronic switch as claimed in claim 1 is characterized in that, described circuit also comprises: polar capacitor C4, micro controller unit MCU interface, wherein,
The negative pole of described polar capacitor C4 links to each other with described micro controller unit MCU interface, and an end of putting number end S of the positive pole of described polar capacitor C4 and described d type flip flop links to each other.
5. embedded controller electronic switch, it is characterized in that, described embedded controller electronic switch is program control shutdown interface circuit, and described circuit comprises: based on the state switching circuit of d type flip flop, power supply stabilization circuit, polar capacitor C4, resistance R 4, the micro controller unit MCU interface that band enables;
The negative pole of described polar capacitor C4 links to each other with described micro controller unit MCU interface; The positive pole of described polar capacitor C4 links to each other with an end of putting number end S and described resistance R 4 of described d type flip flop respectively;
The other end of described resistance R 4 links to each other with the clock signal clk of described d type flip flop, and the other end ground connection of described resistance R 4.
6. embedded controller electronic switch as claimed in claim 5 is characterized in that, described state switching circuit based on d type flip flop comprises: d type flip flop, input voltage V; Wherein,
The Enable Pin of the power supply stabilization circuit that the output Q of described d type flip flop and described band enable
Figure DEST_PATH_FA20192150200920108319001C00021
Link to each other;
The output of described d type flip flop
Figure DEST_PATH_FA20192150200920108319001C00022
Link to each other with the input D of described d type flip flop;
The number of putting of described d type flip flop is held R ground connection;
The power input V of described d type flip flop links to each other with described input power supply V.
7. as claim 5 or 6 described embedded controller electronic switches, it is characterized in that the power supply stabilization circuit that described band enables comprises: voltage stabilizing chip, resistance R 3, capacitor C 3, polar capacitor C2, input voltage V;
One end of described voltage stabilizing chip and described resistance R 3 links to each other, and an end of the other end of described resistance R 3 and described capacitor C 3 links to each other;
The positive pole of described voltage stabilizing chip and described polar capacitor C2 links to each other, the minus earth of described polar capacitor C2;
One end of described voltage stabilizing chip and described capacitor C 3 links to each other, the other end ground connection of described capacitor C 3.
8. as claim 6 or 7 described embedded controller electronic switches, it is characterized in that, described micro controller unit MCU interface output high level, described polar capacitor C4 and described resistance R 4 insert described high level, the number end S that puts of described d type flip flop inserts described high level, and described d type flip flop output Q is a high level.
CN2009201083190U 2009-05-27 2009-05-27 Embedded controller electronic switch Expired - Fee Related CN201550091U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009201083190U CN201550091U (en) 2009-05-27 2009-05-27 Embedded controller electronic switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009201083190U CN201550091U (en) 2009-05-27 2009-05-27 Embedded controller electronic switch

Publications (1)

Publication Number Publication Date
CN201550091U true CN201550091U (en) 2010-08-11

Family

ID=42605276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009201083190U Expired - Fee Related CN201550091U (en) 2009-05-27 2009-05-27 Embedded controller electronic switch

Country Status (1)

Country Link
CN (1) CN201550091U (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483879A (en) * 2014-12-12 2015-04-01 福建联迪商用设备有限公司 Device and method for controlling response time of power switch
CN105223858A (en) * 2014-06-13 2016-01-06 深圳市双赢伟业科技股份有限公司 A kind of switching on and shutting down control circuit of electronic equipment
CN103973287B (en) * 2014-05-21 2017-01-04 华为技术有限公司 On/off circuit
CN106528237A (en) * 2013-10-18 2017-03-22 歌尔科技有限公司 Micro control unit (MCU) start mode selection circuit and MCU code upgrading method based on same
CN109038709A (en) * 2018-07-12 2018-12-18 深圳拓邦股份有限公司 A kind of identification circuit of key, method and blender

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528237A (en) * 2013-10-18 2017-03-22 歌尔科技有限公司 Micro control unit (MCU) start mode selection circuit and MCU code upgrading method based on same
CN106528237B (en) * 2013-10-18 2019-10-18 歌尔科技有限公司 MCU start-up mode selection circuit and MCU code update method based on the circuit
CN103973287B (en) * 2014-05-21 2017-01-04 华为技术有限公司 On/off circuit
CN105223858A (en) * 2014-06-13 2016-01-06 深圳市双赢伟业科技股份有限公司 A kind of switching on and shutting down control circuit of electronic equipment
CN105223858B (en) * 2014-06-13 2018-05-04 深圳市双赢伟业科技股份有限公司 The switching on and shutting down control circuit of a kind of electronic equipment
CN104483879A (en) * 2014-12-12 2015-04-01 福建联迪商用设备有限公司 Device and method for controlling response time of power switch
CN109038709A (en) * 2018-07-12 2018-12-18 深圳拓邦股份有限公司 A kind of identification circuit of key, method and blender

Similar Documents

Publication Publication Date Title
CN201550091U (en) Embedded controller electronic switch
CN202797874U (en) Over-voltage protection circuit and mobile terminal
CN103543344B (en) A kind of method solving capacitance plate inefficacy and capacitance plate abnormity detecting circuit
CN207021723U (en) A kind of multi-cell electric power management circuit and a kind of virtual reality helmet
CN102981425A (en) Startup and shutdown circuit
CN102331834B (en) Mobile terminal-opening control method and mobile terminal
CN103376753A (en) Standby wake-up circuit and electronic device
CN214755559U (en) Battery protection circuit and battery charge-discharge circuit
CN112531825A (en) Battery protection circuit and battery charge-discharge circuit
EP4027160B1 (en) Universal plug status detection circuit
CN210137424U (en) Earphone hardware reset system
CN110350902A (en) A kind of Anti-misoperation circuit and anti-misoperation apparatus
CN113347011B (en) Communication device, system and communication method
CN101729048A (en) Delay circuit
CN116027211A (en) Load detection circuit and battery system
CN220208213U (en) Compatible control circuit based on single button
CN102931964B (en) Start control circuit
CN112527133A (en) Touch control pen
CN203520090U (en) Hand-held terminal hard switching circuit
CN2917066Y (en) Power-off protection and super-capacitance charging/discharging protector for tax control equipment
CN217363166U (en) Control circuit and shooting equipment
US20200026676A1 (en) Usb expansion function device
CN215818585U (en) Startup and shutdown circuit designed by discrete devices and cloud horn
CN218416342U (en) Electronic switch
CN110649673A (en) Mobile terminal

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100811

Termination date: 20110527