Summary of the invention
Fundamental purpose of the present invention is to provide a kind of low-power consumption treatment circuit, is intended to improve the stability of circuit working.
To achieve these goals, the invention provides a kind of low-power consumption treatment circuit, described low-power consumption treatment circuit comprises voltage transformation module, powered battery module, electronic switch, the first single-chip microcomputer and second singlechip, wherein,
The input end of described voltage transformation module is connected with external power supply, and output terminal is connected with the power end of described the first single-chip microcomputer, for the voltage transitions of described external power supply being become to be suitable for the operating voltage of described the first single-chip microcomputer work;
The output terminal of described powered battery module is connected with the power end of described second singlechip;
Described electronic switch is used for controlling electric current uniflux, and its one end is connected with the output terminal of described voltage transformation module, and the other end is connected with the power end of described second singlechip, for Limited Current, from powered battery module, flows to the first single-chip microcomputer;
Described the first single-chip microcomputer outputs control signals to described second singlechip according to the connection status of described voltage transformation module and external power supply;
Described second singlechip enters low-power consumption mode or exits low-power consumption mode according to described control signal.
Preferably, described electronic switch comprises one first diode, and the negative electrode of described the first diode is connected with the power end of described second singlechip, and anode is connected with the output terminal of described voltage transformation module.
Preferably, described low-power consumption treatment circuit also comprises the second diode being serially connected with between described second singlechip power end and described powered battery module output terminal, and the anode of described the second diode is connected with the output terminal of described powered battery module, and negative electrode is connected to the points of common connection of described electronic switch and second singlechip power end.
Preferably, described control signal is pulse-width signal.
Preferably, described the first single-chip microcomputer is specifically for when external power supply is connected with described voltage transformation module, and described the first single-chip microcomputer output pulse width modulation signal is to the interrupting input end of described second singlechip; When the described second singlechip number of pulses that interrupting input end receives within preset time period is zero, enter low-power consumption mode; Described second singlechip, under low-power consumption mode, when the number of pulses of the reception of interrupting input end within preset time period is greater than preset value, exits low-power consumption mode.
The present invention also provides a kind of low-power consumption treatment method based on above-mentioned low-power consumption treatment circuit, and described low-power consumption treatment method comprises the following steps:
When the first single-chip microcomputer powers on, output control signals to second singlechip;
Described second singlechip receives described control signal, and exits low power mode of operation according to described control signal;
When described second singlechip does not receive described control signal, enter low power mode of operation.
Preferably, described control signal is pulse-width signal.
Preferably, described second singlechip receives described control signal, and specifically comprises according to the step that described control signal exits low power mode of operation:
The interrupting input end of described second singlechip receives described control signal;
Whether the number of pulses of judgement described interrupting input end within preset time period is greater than preset value;
If so, described second singlechip exits low-power consumption mode;
If not, described second singlechip enters low-power consumption mode.
Preferably, when described second singlechip does not receive described control signal, the step that enters low power mode of operation is specially:
When the number of pulses of described interrupting input end within preset time period is zero, second singlechip enters low-power consumption mode.
The present invention, by utilizing the first single-chip microcomputer when external power supply is connected with voltage transformation module, outputs control signals to second singlechip, thereby control second singlechip, exits low-power consumption mode, reaches wake-up states; When the first single-chip microcomputer is not worked, second singlechip cannot receive above-mentioned control signal, and second singlechip enters low-power consumption mode, so the present invention has improved the stability of circuit working.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The invention provides a kind of low-power consumption treatment circuit.
With reference to Fig. 1, Fig. 1 is the electrical block diagram of low-power consumption treatment circuit one embodiment of the present invention.The low-power consumption treatment circuit that the present embodiment provides comprises voltage transformation module 10, powered battery module 20, electronic switch 30, the first single-chip microcomputer 40 and second singlechip 50, wherein,
The input end of described voltage transformation module 10 is connected with external power supply, and output terminal is connected with the power end of described the first single-chip microcomputer 40, for the voltage transitions of described external power supply being become to be suitable for the operating voltage of described the first single-chip microcomputer 40 work;
The output terminal of described powered battery module 20 is connected with the power end of described second singlechip 50;
Described electronic switch 30 is for controlling electric current uniflux, and its one end is connected with the output terminal of described voltage transformation module 10, and the other end is connected with the power end of described second singlechip 50, for Limited Current, from powered battery module 20, flows to the first single-chip microcomputer 40;
Described the first single-chip microcomputer 40 outputs control signals to described second singlechip 50 according to described voltage transformation module 10 and the connection status of external power supply;
Described second singlechip 50 enters low-power consumption mode or exits low-power consumption mode according to described control signal.
In the present embodiment, when voltage transformation module 10 and external power supply disconnect, the first single-chip microcomputer 40, without input power, is not worked; Second singlechip 50 is powered by battery, and cannot receive above-mentioned control signal for receiving the control signal pin of the first single-chip microcomputer 40, now second singlechip 50 is controlled and self is entered at low-power consumption mode, and this low-power consumption mode is that electronic product only retains the faint power consumptions such as clock, LCD indication.
When voltage transformation module 10 is connected with external power supply, external power supply converts the power end that exports the first single-chip microcomputer 40 after preset voltage to and provides operating voltage for the first single-chip microcomputer 40 by voltage transformation module 10, the power end that simultaneously exports second singlechip 50 to by electronic switch 30 provides operating voltage for second singlechip 50.Now the inner control signals that produce of the first single-chip microcomputer 40 export second singlechip 50 to, and second singlechip 50 receives after this control signal and can control and self exit low-power consumption mode, to wake second singlechip 50 up, enters normal operating conditions.
The form that it should be noted that above-mentioned control signal can arrange according to actual needs, and in the present embodiment, preferably this control signal adopts pulse-width signal.
The present invention, by utilizing the first single-chip microcomputer 40 when external power supply is connected with voltage transformation module 10, outputs control signals to second singlechip 50, thereby control second singlechip 50, exits low-power consumption mode, reaches wake-up states; When the first single-chip microcomputer 40 is not worked, second singlechip 50 cannot receive above-mentioned control signal, and second singlechip 50 enters low-power consumption mode, so the present invention has improved the stability of circuit working.
The structure that it should be noted that above-mentioned electronic switch 30 can arrange according to actual needs.In the present embodiment, in order to reduce design difficulty and the cost of circuit, preferably, above-mentioned electronic switch 30 is diode.Particularly, in the present embodiment, above-mentioned electronic switch comprises one first diode D1, and the negative electrode of described the first diode D1 is connected with the power end of described second singlechip 50, and anode is connected with the output terminal of described voltage transformation module 10.
Further, based on above-described embodiment, in the present embodiment, above-mentioned low-power consumption treatment circuit also comprises the second diode D2 being serially connected with between described second singlechip 50 power ends and described powered battery module 20 output terminals, and the anode of described the second diode D2 is connected with the output terminal of described powered battery module 20, negative electrode is connected to the points of common connection of described electronic switch 30 and second singlechip 50 power ends.
In the present embodiment, the voltage obtaining after lower than voltage transformation module 10 conversions due to the voltage of powered battery module 20 output, thereby when external power supply is connected with voltage transformation module 10, the cathode voltage of the second diode D2 is greater than anode voltage, making the second diode D2 cut-off, is second singlechip 50 power supplies by external power supply.In the present embodiment, by the unilateral conduction of the second diode D2, the damage of the impact that can further prevent from being subject to external power supply to battery in powered battery module 20, thus effectively extend serviceable life of battery.
Further, based on above-described embodiment, in the present embodiment, above-mentioned the first single-chip microcomputer 40 is specifically for when external power supply is connected with described voltage transformation module 10, and described the first single-chip microcomputer 40 output pulse width modulation signals are to the interrupting input end of described second singlechip 50; When described second singlechip 50 number of pulses that interrupting input end receives within preset time period is zero, enter low-power consumption mode; Described second singlechip 50, under low-power consumption mode, when the number of pulses of the reception of interrupting input end within preset time period is greater than preset value, exits low-power consumption mode.
Should be noted that, the time span of above-mentioned preset time period and the size of preset value all can arrange according to actual needs, in the present embodiment, by the number of pulses that judges that in preset time period, second singlechip 50 receives, thereby controlling second singlechip 50 enters low-power consumption mode or exits low-power consumption mode, thereby effectively prevented the external power supply impact that interrupted power-off is switched on circuit stability second singlechip for more than 50 time because loose contact forms at plug place, so the low-power consumption treatment circuit that provides of the present embodiment has improved the stability of circuit.
The present invention also provides a kind of low-power consumption treatment method based on low-power consumption treatment circuit in above-described embodiment, and in conjunction with reference to Fig. 2, Fig. 2 is the schematic flow sheet of low-power consumption treatment method the first embodiment of the present invention.The low-power consumption treatment method that the present embodiment provides comprises the following steps:
Step S10, when the first single-chip microcomputer 40 powers on, outputs control signals to second singlechip 50;
Step S20, described second singlechip 50 receives described control signal, and exits low power mode of operation according to described control signal;
Step S30, when described second singlechip 50 does not receive described control signal, enters low power mode of operation.
In the present embodiment, when voltage transformation module 10 and external power supply disconnect, the first single-chip microcomputer 40, without input power, is not worked, thereby is not exported control signal; Second singlechip 50 is powered by battery, and cannot receive above-mentioned control signal for receiving the control signal pin of the first single-chip microcomputer 40, now second singlechip 50 is controlled and self is entered at low-power consumption mode, and this low-power consumption mode is that electronic product only retains the faint power consumptions such as clock, LCD indication.
When voltage transformation module 10 is connected with external power supply, external power supply converts the power end that exports the first single-chip microcomputer 40 after preset voltage to and provides operating voltage for the first single-chip microcomputer 40 by voltage transformation module 10, the power end that simultaneously exports second singlechip 50 to by electronic switch 30 provides operating voltage for second singlechip 50.Now the inner control signals that produce of the first single-chip microcomputer 40 export second singlechip 50 to, and second singlechip 50 receives after this control signal and can control and self exit low-power consumption mode, to wake second singlechip 50 up, enters normal operating conditions.
The form that it should be noted that above-mentioned control signal can arrange according to actual needs, and in the present embodiment, preferably this control signal adopts pulse-width signal.
The present invention, by utilizing the first single-chip microcomputer 40 when external power supply is connected with voltage transformation module 10, outputs control signals to second singlechip 50, thereby control second singlechip 50, exits low-power consumption mode, reaches wake-up states; When the first single-chip microcomputer 40 is not worked, second singlechip 50 cannot receive above-mentioned control signal, and second singlechip 50 enters low-power consumption mode, so the present invention has improved the stability of circuit working.
Further, in conjunction with reference to Fig. 3 and Fig. 4, Fig. 3 is the schematic flow sheet of low-power consumption treatment method the second embodiment of the present invention, and Fig. 4 is the schematic flow sheet of low-power consumption treatment method of the present invention the 3rd embodiment.Based on above-described embodiment, in the second embodiment and the 3rd embodiment, above-mentioned steps S20 specifically comprises:
Step S21, the interrupting input end of described second singlechip 50 receives described control signal;
Step S22, whether judgement number of pulses of described interrupting input end within preset time period is greater than preset value; If perform step S23, perform step if not S24.
Step S23, described second singlechip 50 exits low-power consumption mode;
Step S24, described second singlechip 50 enters low-power consumption mode.
Based on above-described embodiment, in the 3rd embodiment, above-mentioned steps S30 is specially: when the number of pulses of described interrupting input end within preset time period is zero, second singlechip 50 enters low-power consumption mode.
Should be noted that this step S30 carries out after above-mentioned steps S23.
The time span of above-mentioned preset time period and the size of preset value all can arrange according to actual needs particularly, in the present embodiment, by the number of pulses that judges that in preset time period, second singlechip 50 receives, thereby controlling second singlechip 50 enters low-power consumption mode or exits low-power consumption mode, thereby effectively prevented the external power supply impact that interrupted power-off is switched on circuit stability second singlechip for more than 50 time because loose contact forms at plug place, so the low-power consumption treatment circuit that provides of the present embodiment has improved the stability of circuit.
These are only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.