A kind of dynamic adjusting method of load current, system and electronic equipment
Technical field
The invention belongs to electronic technology field, relate to a kind of method of adjustment and system, particularly relate to a kind of dynamic adjusting method of load current, system and electronic equipment.
Background technology
Increasing electronic product is all with USB charging interface now, such as wireless router, EPON, GPON, Set Top Box, the electronic products such as televisor.For user, with the power receiving equipment such as mobile phone of USB interface, PAD, flash disk, hard disk, digital camera etc., its charging of the electronic equipment of these difference in functionalitys and work power consumption all different, have less than 1A, what have is large to several ampere.How do we ensure that different loads is in the overcurrent protection using identical charging equipment?
Refer to Fig. 1, be shown as in prior art with the circuit diagram being fixedly installed load current limliting size.In Fig. 1, C1 is input feeder ear filter capacitor, and C2 is for exporting feeder ear filter capacitor, and C3 is internal control circuit feeder ear filter capacitor, and C4 is that adjustment is input to output voltage gradient soft start capacitor.R1 sets exactly and exports current limit resistance Rlimit.Refer to Fig. 2, be shown as current limliting output valve curve map, in Fig. 2, show the current limliting output valve that different resistance is corresponding different.
For Fig. 2 display current limliting output valve curve we can find out after deviser selectes Rlimit current-limiting resistance, just to have a corresponding maximum power supply current value of output load.But such way is flexible not enough.
Such as a deviser is chosen to be 10.5K current-limiting resistance, and the output maximum current of its correspondence is 7.5A.And when user is just at the equipment charge giving power consumption very little or power supply, its actual current only has about 500mA.The load that such way is equal to substantially with one, a powerful engine band is very little is working.The current consuming apparatus very little when this is short-circuited for a certain reason, and when its short-circuit current that is short-circuited can reach maximum power supply current limliting 7.5A, its elapsed time probably burns load equipment.Design margin excessive so also can bring very large risk to client.
A deviser is chosen to be 50K current-limiting resistance for another example, and the output maximum current of its correspondence is 1.5A.And when user is just at the equipment charge giving power consumption very large or power supply, its actual current has reached about 2A.The load that such way is equal to substantially with one, a low power engine band is very large is working.When this very large current consuming apparatus is in normal work or charging, its larger load current will drag down output service voltage, also can cause due to output overcurrent stopping power supply simultaneously.The design margin of such deficiency also can bring very large puzzlement to client, has also wasted the function of the designed capacity that originally can provide larger simultaneously.Design margin excessive as can be seen here and the design margin of deficiency all can not play the designed capacity of chip to greatest extent.
Therefore, how a kind of dynamic adjusting method of load current, system and electronic equipment are provided, the designed capacity of chip all can not be played to greatest extent with the design margin solving design margin excessive as seen in prior art and deficiency, and the equipment that cannot meet different loads size of current such as to run at the defect on same power-supply unit or charging equipment simultaneously, become practitioner in the art's technical matters urgently to be resolved hurrily in fact.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of dynamic adjusting method of load current, system and electronic equipment, design margin for solving design margin excessive as seen in prior art and deficiency all can not play the designed capacity of chip to greatest extent, and the problem that the equipment that simultaneously cannot meet different loads size of current runs on same power-supply unit or charging equipment.
For achieving the above object and other relevant objects, one aspect of the present invention provides a kind of dynamic adjusting method of load current, and the dynamic adjusting method of described load current comprises the following steps: export scheduled current; Detect the load current flowing through load; Calculate the curent change ratio between described scheduled current and load current; According to described curent change ratio dynamic conditioning, scheduled current answers output current to obtain; Scheduled current is reset according to described output current of answering.
In one embodiment of the invention, the dynamic adjusting method of described load current also comprises: scheduled current and curent change ratio are converted to the scheduled current and curent change ratio that show as digital signal.
In one embodiment of the invention, the dynamic adjusting method of described load current also comprises: the scheduled current showing as digital signal by described and curent change ratio convert the scheduled current and curent change ratio that show as simulating signal to.
The present invention also provides a kind of dynamic debugging system of load current on the other hand, and the dynamic debugging system of described load current comprises: scheduled current output module, for exporting scheduled current; Detection module, is connected with described scheduled current output module and load, for detecting the load current flowing through load; Computing module, is connected with described scheduled current output module and detection module, for calculating the curent change ratio between described scheduled current and load current; Control module, be connected with described scheduled current output module and computing module, for scheduled current according to described curent change ratio dynamic conditioning with obtain answer output current, make described scheduled current output module according to described in answer output current to reset scheduled current.
In one embodiment of the invention, the dynamic debugging system of described load current also comprises the analog/digital conversion module be connected with described detection module, for scheduled current and curent change ratio being converted to the scheduled current and curent change ratio that show as digital signal.
In one embodiment of the invention, be connected the scheduled current and curent change ratio that show as digital signal to be converted to the scheduled current that shows as digital signal by SPI interface between described control module with described analog/digital conversion module and curent change ratio inputs to described control module.
In one embodiment of the invention, described control module comprises: D/A switch module and adjusting module; Wherein, described D/A switch module is connected by SPI interface with described analog/digital conversion module, for the scheduled current and curent change ratio that show as digital signal being converted to the scheduled current and curent change ratio that show as simulating signal; Described adjusting module, with described D/A switch model calling, output current is answered for being adjusted to by the scheduled current showing as simulating signal according to the curent change ratio showing as simulating signal, and described output current of answering is inputed to described scheduled current output module, make to answer output current to reset scheduled current described in its basis.
In one embodiment of the invention, described scheduled current output module sets described scheduled current by setting its current-limiting resistance.
In one embodiment of the invention, described in described scheduled current output module passes through, output current is answered to set described current-limiting resistance.
In one embodiment of the invention, described adjusting module is solid relay device chip.
Another aspect of the invention also provides a kind of electronic equipment, and described electronic equipment comprises: be connected with a load, for adjusting the Limited Current of described load, the dynamic debugging system of load current.
In one embodiment of the invention, described electronic equipment is power-supply unit or charging equipment.
As mentioned above, the dynamic adjusting method of load current of the present invention, system and electronic equipment, have following beneficial effect:
The dynamic adjusting method of load current of the present invention, system and electronic equipment realize can different loads in the overcurrent protection using identical charging equipment, the designed capacity of chip can be played to greatest extent.
Accompanying drawing explanation
Fig. 1 is shown as in prior art with the circuit diagram being fixedly installed load current limliting size.
Fig. 2 is shown as current limliting output valve curve map.
Fig. 3 is shown as the schematic flow sheet of dynamic adjusting method in an embodiment of load current of the present invention.
Fig. 4 is shown as the theory structure schematic diagram of dynamic debugging system in an embodiment of load current of the present invention.
Fig. 5 is shown as the theory structure schematic diagram of electronic equipment of the present invention in an embodiment.
Element numbers explanation
The dynamic debugging system of 1 load current
11 scheduled current output modules
12 detection modules
13 computing modules
14 analog/digital conversion modules
15 control modules
16 D/A switch modules
17 adjusting modules
18SPI interface
2 electronic equipments
S1 ~ S7 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Embodiment one
The present embodiment provides a kind of dynamic adjusting method of load current, and the dynamic adjusting method of described load current comprises the following steps:
Export scheduled current;
Detect the load current flowing through load;
Calculate the curent change ratio between described scheduled current and load current;
According to described curent change ratio dynamic conditioning, scheduled current answers output current to obtain;
Scheduled current is reset according to described output current of answering.
Below with reference to diagram, the dynamic adjusting method of the load current described in the present embodiment is described in detail.Refer to Fig. 3, be shown as the schematic flow sheet of dynamic adjusting method in an embodiment of load current.As shown in Figure 3, the dynamic adjusting method of described load current specifically comprises following step:
S1, exports scheduled current.Described scheduled current can reach the Current Limits flow valuve of setting scheduled current in the present embodiment by setting current-limiting resistance Rlimit.
S2, detects the load current flowing through load.
S3, calculates the curent change ratio between described scheduled current and described load current.In the present embodiment, described curent change ratio comprises electric current increases ratio and electric current minimizing ratio.Now, the current limit that exports of step S1 and the load current that detects of step S2 show as simulating signal.
S4, by scheduled current and curent change ratio, namely electric current increase ratio or electric current minimizing ratio convert the scheduled current and curent change ratio that show as digital signal to.
S5, converts the scheduled current and curent change ratio that show as simulating signal to by the scheduled current and curent change ratio that show as digital signal.
S6, the scheduled current showing as simulating signal according to the described curent change ratio dynamic conditioning showing as simulating signal answers output current to obtain.
S7, what send acquisition answers output current, according to the scheduled current of answering output current to reset output.In the present embodiment, again limit scheduled current by current-limiting resistance Rlimit again to reach, namely reset Current Limits flow valuve.
The dynamic adjusting method of the load current described in the present embodiment realize can different loads in the overcurrent protection using identical charging equipment, the designed capacity of chip can be played to greatest extent.
Embodiment two
The present embodiment provides a kind of dynamic debugging system of load current, it is characterized in that, the dynamic debugging system of described load current comprises:
Scheduled current output module, for exporting scheduled current;
Detection module, is connected with described scheduled current output module and load, for detecting the load current flowing through load;
Computing module, is connected with described scheduled current output module and detection module, for calculating the curent change ratio between described scheduled current and load current;
Control module, be connected with described scheduled current output module and computing module, for scheduled current according to described curent change ratio dynamic conditioning with obtain answer output current, make described scheduled current output module according to described in answer output current to reset scheduled current.
Below with reference to diagram, the dynamic debugging system of the load current described in the present embodiment is described in detail.Refer to Fig. 4, be shown as the theory structure schematic diagram of dynamic debugging system in an embodiment of load current.As shown in Figure 4, the dynamic debugging system 1 of described load current comprises: scheduled current output module 11, detection module 12, computing module 13, analog/digital conversion module 14 and control module 15, wherein, described control module 15 comprises D/A switch module 16 and adjusting module 17.
Wherein, described scheduled current output module 11 is for exporting scheduled current.Described scheduled current is the Current Limits flow valuve that can reach setting scheduled current by setting current-limiting resistance Rlimit in described scheduled current output module 11 in the present embodiment.Described scheduled current output module 11 sets described scheduled current by setting its current-limiting resistance.Model is adopted to be that the chip of MP507 is as described scheduled current output module 11 in the present embodiment.MP5077 is a protect IC that can provide 7A load current ability, and its output current limiting can by setting current-limiting resistance Rlimit for first setting output current cut-off current.
The described detection module 12 be connected with described scheduled current output module 11 and load is for detecting the load current flowing through load.In the present embodiment, detection module 12 can adopt model to be the current detecting chip of INA282, but every can realization is all applicable to the present invention to the chip of the detection of load current.
The computing module 13 be connected with described detection module 12 is for calculating the curent change ratio between described scheduled current and described load current.In the present embodiment, described curent change ratio comprises electric current increases ratio and electric current minimizing ratio.Now, the load current that the current limit that exports of described scheduled current output module 11 and described detection module 12 detect shows as simulating signal.Described computing module 13 can adopt the chip with calculation function in the present embodiment.
The analog/digital conversion module 14 be connected with described computing module 13 is for by scheduled current and curent change ratio, and namely electric current increases ratio or electric current and reduces ratio and convert the scheduled current and curent change ratio that show as digital signal to.In the present embodiment, the i.e. A/D converter of described analog/digital conversion module 14, or be called for short ADC, typically referring to one by analog-signal transitions is the electronic component of digital signal.Common A/D converter an input voltage signal is converted to a digital signal exported.
Described control module 15 is connected with described scheduled current output module 11, computing module 13, analog/digital conversion module 14 respectively answers output current for scheduled current according to described curent change ratio dynamic conditioning to obtain, and makes described scheduled current output module 11 reset scheduled current according to described output current of answering.Continue to consult Fig. 4, described control module 15 comprises: D/A switch module 16 and adjusting module 17.Wherein, described D/A switch module 16 and described analog/digital conversion module 14 are connected for converting the scheduled current and curent change ratio that show as digital signal to show as simulating signal scheduled current and curent change ratio by SPI interface 18.The described adjusting module 17 be connected with described D/A switch module 16 answers output current for being adjusted to by the scheduled current showing as simulating signal according to the curent change ratio showing as simulating signal, and described output current of answering is inputed to described scheduled current output module 11, make to answer output current to reset scheduled current described in its basis, described adjusting module 17 is a solid relay device in the present embodiment, this solid relay device adopts the MCP42010 chip of Microchip, output current is answered to reset the register of solid relay device inside according to actual feedback in the present embodiment, output current is answered to set described current-limiting resistance described in described scheduled current output module 11 passes through.
The present embodiment also provides a kind of electronic equipment 2, and described electronic equipment 2 can be power-supply unit or charging equipment.Refer to Fig. 5, be shown as the theory structure schematic diagram of electronic equipment in an embodiment.As shown in Figure 5, described electronic equipment 2 comprises the dynamic debugging system 1 of the above-mentioned load current be connected with load, and the dynamic debugging system 1 of described load current is for adjusting the Limited Current of described load.
In sum, the dynamic adjusting method of load current of the present invention, system and electronic equipment realize can different loads in the overcurrent protection using identical charging equipment, the designed capacity of chip can be played to greatest extent.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.