In the body electronics controller by the stable-pressure device of microcontroller automatic control
Technical field
The utility model relates in a kind of body electronics controller the stable-pressure device by the microcontroller automatic control.
Background technology
Body electronics controller based on micro controller system adopts the storage battery power supply usually; Because storage battery (vehicle body power supply) voltage ratio is higher and unstable; And microcontroller itself needs stable+5V or low voltage power supply more; So in system, must have power module, power module provides stable power with the voltage reduction of input and the back of decoupling for microcontroller.
Power circuit generally is divided into two types of LDO and DC/DC, and wherein the LDO power supply is controlled voltage through the unnecessary electric energy of suitable consumption, and the DC/DC power supply is controlled voltage through control power supply service time.The cost of LDO power supply is lower, but energy efficiency is low, and the circuit heating is bigger; The DC/DC power-efficient is higher, and heating is few, but cost is than higher.
Along with the development of automotive engineering, when increasing for controller function, circuit scale also constantly increases; Consumed current is also increasing during its operate as normal; Traditional LDO circuit often can not satisfy actual user demand because caloric value is big, especially in the product that small product size and efficient are had relatively high expectations; Must adopt scheme that the DC/DC technology provides power supply for microcontroller because the DC/DC technical sophistication; Generally need special-purpose power supply chip, physical circuit is as shown in Figure 1, and Fig. 1 is the circuit theory sketch map of the inner DC/DC power supply of prior art body electronics controller.This power circuit is by storage battery 200 power supplies; Comprise DC/DC power supply chip 11, the switching circuit 12 that is connected with the DC/DC power supply chip; The accumulator 13 and the sample circuit 14 that are electrically connected with the output of switching circuit 12, the output of said accumulator are electrically connected with the input of said sample circuit and the power input of said microcontroller 100 respectively.Owing to will increase the DC/DC power supply chip, therefore the cost of system significantly increased.
Summary of the invention
The utility model is that a kind of production cost that provides is low, power-efficient is high in order to solve the problems referred to above that prior art exists, be input to the input supply voltage automatic control of microcontroller, have in the body electronics controller of energy-saving effect the stable-pressure device by the microcontroller automatic control.
The technical scheme that the utility model is taked is: in the body electronics controller by the stable-pressure device of microcontroller automatic control; Supply power by the vehicle body power supply; Comprise the switching circuit that is electrically connected with the output of vehicle body power supply, the accumulator and the sample circuit that are electrically connected with the output of switching circuit, the output of said accumulator is electrically connected with the input of said sample circuit and the power input of said microcontroller respectively; Be characterized in that also comprise a DC/DC from voltage stabilizing circuit, described DC/DC comprises the microcontroller in one drive circuit, a controlling circuit of voltage regulation and the body electronics controller from voltage stabilizing circuit; The output of described drive circuit is electrically connected with the input of switching circuit; The control end of said microcontroller is electrically connected with the input of said controlling circuit of voltage regulation; The input of described controlling circuit of voltage regulation also is electrically connected with the output of described sample circuit, and the output of this controlling circuit of voltage regulation is electrically connected with the input of described drive circuit.
By the stable-pressure device of microcontroller automatic control, wherein, described controlling circuit of voltage regulation comprises a comparison circuit, a pwm circuit, a reference voltage source in the above-mentioned body electronics controller; The output of described reference voltage source is electrically connected with the input of described comparison circuit; The input of described comparison circuit is electrically connected with the output of described sample circuit; The output of described comparison circuit is electrically connected with the input of described pwm circuit, and the output of this pwm circuit is electrically connected with the input of said drive circuit, and the input of said pwm circuit also is electrically connected with the control end of said microcontroller.
By the stable-pressure device of microcontroller automatic control, wherein, described controlling circuit of voltage regulation comprises a comparison circuit, a pwm circuit, a reference voltage source in the above-mentioned body electronics controller; The output of described reference voltage source is electrically connected with the input of described comparison circuit; The input of described comparison circuit is electrically connected with the output of described sample circuit; The output of described comparison circuit is electrically connected with the input of described pwm circuit, and the output of this pwm circuit is electrically connected with the input of said drive circuit; Described comparison circuit, pwm circuit and reference voltage source constitute by the foregoing circuit that carries in the microcontroller.
By the stable-pressure device of microcontroller automatic control, wherein, described pwm circuit is set to current-reset mode in the above-mentioned body electronics controller.
By the stable-pressure device of microcontroller automatic control, wherein, described drive circuit comprises that a start-up circuit and drives triode in the above-mentioned body electronics controller.
By the stable-pressure device of microcontroller automatic control, wherein, described start-up circuit comprises a starting resistance and a diode that is in series in the above-mentioned body electronics controller, and the negative pole of said diode is electrically connected with the base stage of said driving triode.
By the stable-pressure device of microcontroller automatic control, wherein, the collector electrode of described driving triode is electrically connected with the input of said switching circuit in the above-mentioned body electronics controller.
By the stable-pressure device of microcontroller automatic control, wherein, described switching circuit is made up of a pull-up resistor and a coupled switching tube that connects in the above-mentioned body electronics controller.
Because the utility model has adopted above technical scheme, the technique effect of its generation is tangible:
1, the utility model adopts itself power supply supply of microprocessor controls, and regulation voltage has saved special-purpose DC/DC power supply chip voluntarily, has directly reduced the cost of product.
2, can adjust operating voltage as required voluntarily, realize reducing the purpose of power consumption.Such as reducing supply voltage when the needs dormancy, reduce electrical source consumption.
Description of drawings
Fig. 1 is the circuit theory sketch map of the inner DC/DC of prior art body electronics controller from stable-pressure device.
Fig. 2 is by the circuit block diagram of the stable-pressure device of microcontroller automatic control in the utility model body electronics controller.
Fig. 3 is by the circuit theory sketch map of a kind of embodiment of the stable-pressure device of microcontroller automatic control in the utility model body electronics controller.
Fig. 4 is by the circuit theory sketch map of the another kind of embodiment of the stable-pressure device of microcontroller automatic control in the utility model body electronics controller.
Embodiment
Below in conjunction with accompanying drawing and embodiment the utility model is done further explain.
See also Fig. 2, Fig. 2 is by the circuit theory sketch map of the stable-pressure device of microcontroller automatic control in the utility model body electronics controller.By the stable-pressure device of microcontroller automatic control, be connected in the utility model body electronics controller, by this power supply power supply with power supply (vehicle body storage battery) 200.Described DC/DC comprises the switching circuit 21 that is electrically connected with the output of power supply, the accumulator 22 that is electrically connected with the output of switching circuit and sample circuit 23 from stable-pressure device, and the output of said accumulator is electrically connected with the input of said sample circuit and the power input of said microcontroller respectively.Also comprise a DC/DC from voltage stabilizing circuit, described DC/DC comprises the microcontroller 26 in one drive circuit 24, a controlling circuit of voltage regulation 25 and the body electronics controller from voltage stabilizing circuit; The output of described drive circuit is electrically connected with the input of switching circuit; The input of described controlling circuit of voltage regulation is electrically connected with the control end of microcontroller 26; The input of described controlling circuit of voltage regulation also is electrically connected with the output of described sample circuit, and the output of this controlling circuit of voltage regulation is electrically connected with the input of described drive circuit.
Described controlling circuit of voltage regulation 25 comprises a comparison circuit 251, a pwm circuit 252, a reference voltage source 253; The output of described reference voltage source is electrically connected with the input of described comparison circuit; The input of described comparison circuit is electrically connected with the output of described sample circuit; The output of described comparison circuit is electrically connected with the input of described pwm circuit, and the output of this pwm circuit is electrically connected with the input of said drive circuit, and the input of said pwm circuit also is electrically connected with the control end of said microcontroller.
The method by the voltage stabilizing of microcontroller automatic control of the utility model is: power on to microcontroller, when the voltage of input reached the minimum operating voltage of microcontroller, microcontroller was started working; Controlling circuit of voltage regulation constantly compares the supply voltage of reference voltage source and sampling, and this comparative result is delivered to microcontroller carry out data processing; In case when the detected supply voltage after relatively of microcontroller reached the required operating voltage of microcontroller, this microcontroller was promptly controlled the self adaptation that pwm circuit carries out duty ratio and is regulated, and makes the voltage of input be stabilized in rated value; When the body electronics controller needed dormancy, microcontroller was controlled the output duty cycle that reduces pwm circuit automatically, to reduce the supply power voltage of self, reduced quiescent current; After the body electronics controller was waken up, microcontroller is the automatic output duty cycle that increases pwm circuit of control automatically, to raise this microcontroller self supply power voltage is reached rated value.
See also Fig. 3, Fig. 3 is by the circuit theory sketch map of a kind of embodiment of the stable-pressure device of microcontroller automatic control in the utility model body electronics controller.In the stable-pressure device by the microcontroller automatic control in the utility model body electronics controller, described switching circuit is made up of a pull-up resistor R1 and a coupled switching tube Q1 who connects, and this switching tube for example is made up of metal-oxide-semiconductor.
Described accumulator is made up of a diode D1, an inductance L 1 and a charging capacitor Cout, and an end of said inductance L 1 is electrically connected with the source electrode of switching tube Q1, and the other end is electrically connected with charging capacitor, and is electrically connected with the power input of microcontroller.The negative pole of said diode D1 is electrically connected with the source electrode electric connection point of switching tube Q1 with inductance L 1.
Described sample circuit is in series by resistance R 2, R3 and constitutes, and is connected the output of said inductance L 1.The output of this sample circuit is electrically connected with the input of comparison circuit.This sample circuit proportional sampling output voltage offers the microcontroller judgement of making comparisons
Described drive circuit comprises that a start-up circuit and drives triode Q2.Described start-up circuit comprises a starting resistance R4 and a diode D2 who is in series, and the negative pole of said diode is electrically connected with the base stage of said driving triode.The collector electrode of described driving triode is electrically connected with the input of said switching circuit.
Described comparison circuit can be made up of an operational amplifier or other chip circuits, and described pwm circuit and reference voltage source all can be made up of existing module.
Described microcontroller can be made up of a single-chip microcomputer IC1.
When system powered on, the power supply input through R1 was and R4, D2 are that Q2 provides bias voltage, and Q2 is open-minded, and Q1 is open-minded, and power supply arrives the microcontroller power end through Q1 and L1, was the Cout charging, made microcontroller power end voltage since 0 rising.Supply voltage has the process of a rising during owing to power on, and when the voltage that is input to microcontroller reached the minimum operating voltage of microcontroller, microcontroller was started working.Controlling circuit of voltage regulation will compare comparison from data and the reference voltage source that the supply voltage of input is taken a sample rapidly; In case microcontroller detects input supply voltage when reaching required operating voltage; Then control unlatching pwm circuit carries out the self adaptation adjusting, makes supply voltage be stabilized in rated value.
When system needs dormancy, microcontroller will reduce the PWM duty ratio of output automatically, supply voltage turned down near the minimum operating voltage of microcontroller, to reduce static working current to greatest extent.
See also Fig. 4, Fig. 4 is by the circuit theory sketch map of the another kind of embodiment of the stable-pressure device of microcontroller automatic control in the utility model body electronics controller.With the difference of the foregoing description be: in the present embodiment, the comparison circuit in the described controlling circuit of voltage regulation, pwm circuit and reference voltage source constitute by the foregoing circuit that carries in the microcontroller, can make full use of the resource in the microcontroller like this.Described controlling circuit of voltage regulation 31 comprises a comparison circuit 311, a pwm circuit 312, a reference voltage source 313; The output of described reference voltage source is electrically connected with the input of described comparison circuit; The input of described comparison circuit also is electrically connected with the output of described sample circuit; The output of described comparison circuit is electrically connected with the input of described pwm circuit, and the output of this pwm circuit is electrically connected with the input of said drive circuit.Among this embodiment, the utility model adopts microcontroller output pwm signal, regulation voltage voluntarily.In order better to realize above method; Inner current reset (current reset) pattern of this microcontroller also capable of using, the PWM module can automatically be exported the PWM value behind the starting current reset mode; In case output voltage surpasses preset value; Then restart the PWM of new one-period at once, realized automatic voltage-regulation, farthest reduced the inner resource consumption of microcontroller.
The utlity model has reduce product cost, to the supply voltage of microcontroller input can control automatically, system flexibly and energy-saving advantages.
The above is merely the explanation of illustrative, and is not to be restriction the utility model.Any technical staff in the art, in spirit that does not break away from the utility model and scope, the improvement and the adjustment of the unsubstantiality that the utility model is made must belong to the protection range of the utility model.