CN107525960A - A kind of control circuit and method - Google Patents

A kind of control circuit and method Download PDF

Info

Publication number
CN107525960A
CN107525960A CN201610454881.3A CN201610454881A CN107525960A CN 107525960 A CN107525960 A CN 107525960A CN 201610454881 A CN201610454881 A CN 201610454881A CN 107525960 A CN107525960 A CN 107525960A
Authority
CN
China
Prior art keywords
circuit
level
voltage range
switch
alternative voltage
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.)
Pending
Application number
CN201610454881.3A
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.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
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 Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201610454881.3A priority Critical patent/CN107525960A/en
Publication of CN107525960A publication Critical patent/CN107525960A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electronic Switches (AREA)

Abstract

The embodiment of the invention discloses a kind of control circuit, the control circuit includes:Alternative voltage range decoding circuit, the comparison circuit being connected with alternative voltage range decoding circuit, and the decision circuitry being connected respectively with alternative voltage range decoding circuit and comparison circuit;Wherein, alternative voltage range decoding circuit, for the comparative result according to comparison circuit, control and switched between default multiple alternative voltage ranges, and the choose first alternative voltage range is exported to comparison circuit;Comparison circuit, for compared with the first alternative voltage range, and charging/discharging voltage to be exported into comparative result to decision circuitry and alternative voltage range decoding circuit;Decision circuitry, for according to comparative result, judging the belonging relation between charging/discharging voltage and the first alternative voltage range.The embodiment of the present invention further simultaneously discloses a kind of control method.

Description

A kind of control circuit and method
Technical field
The present invention relates to the voltage detecting technology in electronic application field, more particularly to a kind of control circuit and method.
Background technology
The magnitude of voltage of monitoring charging/discharging voltage Vout in real time is needed in charge and discharge electrical chip, by charging ceiling voltage and minimum electricity Pressure is divided into several voltage threshold sections, by monitoring charging/discharging voltage Vout in real time, to determine which electricity Vout is in Threshold interval is pressed, when Vout is in different voltage threshold sections, charge and discharge electrical chip can perform different operations.
Existing charge and discharge electrical chip is mostly digital-analog mix-mode chip, by analog comparator and digital control common completion voltage Detection function, but it is most of at present using multiple analog comparators, sentencing for voltage threshold section is carried out using analog comparator It is disconnected, there are several voltage threshold sections just to use several analog comparators, and it is bigger because of power management chip pipe sizing, it is multiple Comparator can make it that simulation area is bigger, and cost is higher, is unfavorable for the trend that current integrated level is high, cost-effective.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected to provide a kind of control circuit and method, can realize On the basis of the detection in voltage threshold section, reduce circuit area, reduce flow cost.
The technical proposal of the invention is realized in this way:
In a first aspect, the embodiments of the invention provide a kind of control circuit, can include:
Alternative voltage range decoding circuit, the comparison circuit being connected with the alternative voltage range decoding circuit, Yi Jiyu The decision circuitry that the alternative voltage range decoding circuit and the comparison circuit connect respectively;Wherein,
The alternative voltage range decoding circuit, for the comparative result according to the comparison circuit, control default more Switched between individual alternative voltage range, and the choose first alternative voltage range is exported to the comparison circuit;
The comparison circuit, for compared with the described first alternative voltage range, and charging/discharging voltage to be exported into ratio Compared with result to the decision circuitry and the alternative voltage range decoding circuit;
The decision circuitry, for according to the comparative result, judging the charging/discharging voltage and the described first alternative electricity Belonging relation between nip.
In such scheme, the alternative voltage range decoding circuit includes:First switch control circuit and described first The switch decoding circuit of ON-OFF control circuit connection, and select electricity with the alternative voltage range that the switch decoding circuit is connected Road;The switch decoding circuit is connected with the decision circuitry;The comparison circuit and the first switch control circuit and institute Alternative voltage range selection circuit is stated to connect respectively;
The first switch control circuit, for according to the comparative result and current switch control signal, determining next Secondary switch controlling signal, and switch controlling signal switchs decoding circuit and the decision circuitry to described next time described in output;
The switch decoding circuit, for the switch controlling signal next time to be decoded into two groups of switch controlling signals, And two groups of switch controlling signals are exported to the alternative voltage range selection circuit;
The alternative voltage range selection circuit, for being controlled according to two groups of switch controlling signals described default more Switched between individual alternative voltage range, and the described first alternative voltage range chosen is exported to the comparison circuit.
In such scheme, the comparison circuit includes:First comparator and the second comparator;The alternative voltage range Selection circuit includes:First selector and second selector;It is the first comparator and the first switch control circuit, described First selector connects with the decision circuitry;Second comparator and the first switch control circuit, second choosing Device is selected to connect with the decision circuitry;
The first selector, specifically for presetting multiple alternative voltages described according to one group of switch controlling signal control Switched between the upper voltage limit value in section, and by the upper voltage limit value for the described first alternative voltage range chosen export to The first comparator;
The second selector, specifically for presetting multiple alternative electricity described according to another group of switch controlling signal control Switched between lower voltage limit value between nip, and the lower voltage limit value for the described first alternative voltage range chosen is exported To second comparator;
The first comparator, specifically for by the charging/discharging voltage with being rationed the power supply on the described first alternative voltage range Pressure value is compared, and exports the first comparative result to the decision circuitry and the first switch control circuit;
Second comparator, specifically for by the charging/discharging voltage with being rationed the power supply under the described first alternative voltage range Pressure value is compared, and exports the second comparative result to the decision circuitry and the first switch control circuit;
The first switch control circuit, specifically for according to first comparative result, second comparative result and The current switch control signal, it is determined that the switch controlling signal next time, and switch controlling signal next time described in output To the switch decoding circuit and the decision circuitry;
The decision circuitry, specifically for according to first comparative result and second comparative result, described in judgement Belonging relation between charging/discharging voltage and the first alternative voltage range.
In such scheme, the first switch control circuit is by one-level not circuit, two level and gate circuit, three-level and door Circuit and the first counter, level Four trigger, Pyatyi selector and six grades of registers are formed;Wherein,
First comparative result, the second comparative result and current switch control signal control electricity as the first switch The input on road, by the one-level not circuit, the two level and gate circuit, the three-level and gate circuit and the first counter, Switch controlling signal next time described in output after the level Four trigger, the Pyatyi selector and six grades of registers.
In such scheme, the decision circuitry is by one-level not circuit, two level and gate circuit, three-level and gate circuit, four Level trigger, Pyatyi selector and six grades of registers are formed;Wherein,
First comparative result, the second comparative result and current switch control signal are as the defeated of the decision circuitry Enter, by the one-level not circuit, the two level and gate circuit, the three-level and gate circuit, the level Four trigger, described The judged result is exported after Pyatyi selector and six grades of registers.
In such scheme, the alternative voltage range decoding circuit is realized that the comparison circuit is by comparing by selector Device is realized.
In such scheme, the decision circuitry connects by enable signal triggers circuit, with the enable signal triggers circuit The second switch control circuit that connects and go out Power Generation Road with the enable signal and the second switch control signal is connected respectively Judged result generative circuit;Wherein,
The enable signal triggers circuit, for enabled according to the comparative result and current switch control signal, generation Signal is simultaneously output to the second switch control circuit;
The second switch control circuit, for according to the enable signal, the comparative result and the current switch Control signal, it is determined that switch controlling signal and export to the judged result generative circuit next time;
The judged result generative circuit, for being controlled according to the current switch control signal and the switch next time Signal output judged result.
In such scheme, the enable signal triggers circuit is by the counter of one-level second and register, two-stage register Formed with not circuit, three-level and gate circuit, level Four and gate circuit and Pyatyi and gate circuit;Wherein,
Input of comparative result and the current switch control signal as the enable signal triggers circuit, by described The counter of one-level second and register, the two-stage register and not circuit, the three-level and gate circuit, the level Four and door Circuit and the Pyatyi after gate circuit with exporting the enable signal;
The second switch control circuit is made up of one-level adder, two level selector and three-level register;Wherein,
The input of the comparative result and the enable signal as the second switch control circuit, passes through the one-level Switch controlling signal next time described in output after adder, the two level selector and the three-level register;
The judged result generative circuit is deposited by one-level register, two level not circuit, three-level and gate circuit and level Four Device is formed;Wherein,
The current switch control signal and the switch controlling signal next time are as the judged result generative circuit Input, after the one-level register, the two level not circuit, the three-level and gate circuit and the level Four register Export the judged result.
Second aspect, the embodiments of the invention provide a kind of control method, can include:
Current first alternative voltage range to be detected is determined between default multiple alternative voltage ranges;
Obtain charging/discharging voltage;
Judge whether the charging/discharging voltage belongs to the described first alternative voltage range;
If belonging to, terminate the current control flow of this voltage range.
It is described to judge whether the charging/discharging voltage belongs to after the described first alternative voltage range in such scheme, Methods described also includes:
If being not belonging to, the described first alternative voltage range is adjusted according to preset strategy, starts next secondary control Flow.
The embodiments of the invention provide a kind of control circuit and method, alternative voltage range decoding circuit and the alternative electricity The comparison circuit that decoding circuit connects between nip, and be connected respectively with alternative the voltage range decoding circuit and the comparison circuit Decision circuitry;Wherein, alternative voltage range decoding circuit, for the comparative result according to the comparison circuit, control default Switched between multiple alternative voltage ranges, and the choose first alternative voltage range is exported to the comparison circuit;Compare Circuit, for compared with the first alternative voltage range, and charging/discharging voltage to be exported into comparative result to decision circuitry and standby Select voltage range decoding circuit;Decision circuitry, for according to comparative result, judging charging/discharging voltage and the first alternative voltage range Between belonging relation.Using foregoing circuit implementation, due to realizing different voltages by alternative voltage range decoding circuit The switching in section, so as to reduce the use number of comparator, by by alternative voltage range decoding circuit and a small amount of comparator Combination achieve that the comparison and judgement of different voltage ranges and charging/discharging voltage, therefore, it is possible to realize voltage threshold area Between detection on the basis of, reduce circuit area, reduce flow cost.
Brief description of the drawings
Fig. 1 is a kind of structural schematic block diagram one of control circuit provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic block diagram two of control circuit provided in an embodiment of the present invention;
Fig. 3 is alternative the voltage range selection circuit and comparison circuit of a kind of control circuit provided in an embodiment of the present invention Circuit diagram;
Fig. 4 is a kind of circuit diagram of the switch decoding circuit of control circuit provided in an embodiment of the present invention;
Fig. 5 is a kind of circuit diagram of the first switch control circuit of control circuit provided in an embodiment of the present invention;
Fig. 6 is a kind of circuit diagram of the decision circuitry of control circuit provided in an embodiment of the present invention;
Fig. 7 is a kind of comparison circuit for control circuit that the embodiment of the present invention also provides and alternative voltage range decoding circuit Circuit diagram;
Fig. 8 is a kind of structural schematic block diagram of the decision circuitry for control circuit that the embodiment of the present invention also provides;
Fig. 9 is a kind of circuit diagram of the decision circuitry for control circuit that the embodiment of the present invention also provides;
Figure 10 is a kind of flow chart of control method provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
Embodiment one
As shown in figure 1, the embodiments of the invention provide a kind of control circuit 1, the control circuit 1 can include:
Alternative voltage range decoding circuit 10, the comparison circuit 11 being connected with the alternative voltage range decoding circuit 10, And the decision circuitry 12 being connected respectively with the alternative voltage range decoding circuit 10 and the comparison circuit 11;Wherein,
The alternative voltage range decoding circuit 10, for the comparative result according to the comparison circuit 11, is controlled pre- If being switched between multiple alternative voltage ranges, and the choose first alternative voltage range is exported to the comparison circuit 11。
The comparison circuit 11, for charging/discharging voltage compared with the described first alternative voltage range, and to be exported Comparative result is to the decision circuitry 12 and the alternative voltage range decoding circuit 10.
The decision circuitry 12, for according to the comparative result, judging the charging/discharging voltage and described first alternative Belonging relation between voltage range.
It should be noted that an input of the comparison circuit in the embodiment of the present invention is charging/discharging voltage.
Optionally, default multiple alternative voltage ranges in the embodiment of the present invention are settable or adjusted, specific standby The predetermined number of voltage range is selected not to be restricted.
Optionally, as shown in Fig. 2 the alternative voltage range decoding circuit 10 includes:First switch control circuit 100, The switch decoding circuit 101 being connected with the first switch control circuit 100, and be connected with the switch decoding circuit 101 Alternative voltage range selection circuit 102;The switch decoding circuit 101 is connected with the decision circuitry 12;The comparison is electric Road 11 is connected respectively with the first switch control circuit 100 and the alternative voltage range selection circuit 102.
The first switch control circuit 100, for according to the comparative result and current switch control signal, it is determined that under Switch controlling signal, and switch controlling signal switchs decoding circuit 101 and the judgement to described next time described in output Circuit 12.
The switch decoding circuit 101, for the switch controlling signal next time to be decoded into two groups of switch control letters Number, and two groups of switch controlling signals are exported to the alternative voltage range selection circuit 102.
The alternative voltage range selection circuit 102, for being controlled according to two groups of switch controlling signals described pre- If being switched between multiple alternative voltage ranges, and the described first alternative voltage range chosen exported electric to the comparison Road 11.
Optionally, with reference to shown in Fig. 3, Fig. 4 and Fig. 5, the comparison circuit 11 includes:First comparator 110 and second compares Compared with device 111;The alternative voltage range selection circuit 102 includes:First selector 1020 and second selector 1021;Described One comparator 110 is connected with the first switch control circuit 100, the first selector 1020 and the decision circuitry 12; Second comparator 111 and the first switch control circuit 100, the second selector 1021 and the decision circuitry 12 Connection.
The first selector 1020, specifically for being controlled according to one group of switch controlling signal described default multiple alternative Switched between the upper voltage limit value of voltage range, and the upper voltage limit value for the described first alternative voltage range chosen is defeated Go out to the first comparator 110.
The second selector 1021, specifically for being controlled according to another group of switch controlling signal described default multiple standby Select and switch between the lower voltage limit value of voltage range, and by the lower voltage limit value for the described first alternative voltage range chosen Export to second comparator 111.
The first comparator 110, specifically for by the upper of the charging/discharging voltage and the described first alternative voltage range Voltage limit value is compared, and exports the first comparative result to the decision circuitry 12 and the first switch control circuit 100.
Second comparator 111, specifically for by under the charging/discharging voltage and the described first alternative voltage range Voltage limit value is compared, and exports the second comparative result to the decision circuitry 12 and the first switch control circuit 100.
The first switch control circuit 100, specifically for according to first comparative result, second comparative result With the current switch control signal, it is determined that the switch controlling signal next time, and export the control of switch next time and believe Number to the switch decoding circuit 101 and decision circuitry 12.
The decision circuitry 12, specifically for according to first comparative result and second comparative result, judging institute State the belonging relation between charging/discharging voltage and the first alternative voltage range.
Exemplary, as shown in Figure 4 switch decoding circuit 101, switch controlling signal switch_o decode to obtain two groups Switch_up and switch_dn, the respectively input of control selections simulation first comparator and the second comparator reference voltage (the first alternative voltage range), two groups of switch controlling signals only have one for height, and are two high bits at any time It is adjacent.
Optionally, it is exemplary as shown in figure 5, the first switch control circuit 100 is by one-level not circuit 1000, two Level and gate circuit 1001, three-level and the counter 1003 of gate circuit 1002 and first, level Four trigger 1004, Pyatyi selector 1005 Formed with six grades of registers 1006;Wherein,
First comparative result, the second comparative result and current switch control signal control electricity as the first switch The input on road 100, pass through the one-level not circuit 1000, the two level and gate circuit 1001, the three-level and gate circuit 1002 and first counter 1003, the level Four trigger 1004, the Pyatyi selector 1005 and six grades of registers Switch controlling signal next time described in output after 1006.
Optionally, it is exemplary as shown in fig. 6, the decision circuitry 12 is by one-level not circuit 120, two level and gate circuit 121st, three-level and gate circuit 122, level Four trigger 123, Pyatyi selector 124 and six grades of registers 125 are formed;Wherein,
First comparative result, the second comparative result and current switch control signal are defeated as the decision circuitry 12 Enter, touched by the one-level not circuit 120, the two level and gate circuit 121, the three-level and gate circuit 122, the level Four The judged result is exported after hair device 123, the Pyatyi selector 124 and six grades of registers 125.
It should be noted that the comparator in the embodiment of the present invention can use hysteresis comparator.
Exemplary, two analog comparator structures are identical in Fig. 3, here by the alternative voltage range of charging/discharging voltage point Into 8 voltage ranges, wherein including voltage threshold V1, the up comparator (the more than maximum voltage threshold V7 and less than minimum One comparator) input reference voltage (higher limit of the first alternative voltage range) will not select minimum threshold voltage V1, The input reference voltage of down comparators (the second comparator) will not select threshold voltage V7 (the first alternative voltage ranges of maximum Lower limit).
Exemplary, as shown in Figure 5, the first counter fixed cycle did not stopped to count, and to simulation comparative result (the first ratio Compared with device result and the second comparator results) do deglitch eliminations, switch_on switch controlling signals default value highest adjacent two Individual bit is height, and remaining position is 0, represents up comparators (first comparator) selection reference voltage V7, down comparator (second Comparator) selection reference voltage V6, when two comparator results are height, current charging/discharging voltage vout is more than the alternative of selection Voltage range (for example, V6-V7), switch_on move to left a bit;When two comparator results are low, current discharge and recharge Voltage vout is less than the alternative voltage range (for example, V6-V7) of selection, and switch_on moves to right a bit;Have been moved to highest Two for it is high or it is minimum two be high when no longer move.
Exemplary, as shown in fig. 6, only when the comparative result of up comparators is for the comparative result of 0, down comparators 1 or switch_on highests two are height, and two comparator results be high or minimum two of switch_on be it is high, and two When individual comparator results are 0, ability latchswitch_on obtains chg_code (judged result) in decision circuitry, wherein Switch_on highests two are height, and two comparator results are switch_ when high or minimum two of switch_on is high On moves to left one (only highest order is height) and represents to be more than maximum voltage threshold V7, and it is judged result that latch, which moves to left rear result,; Minimum two of switch_on is height, and switch_on is moved to right one (only lowest order is height) when two comparator results be 0 Minimum voltage threshold V1 is represented less than, it is judged result that latch, which moves to right rear result,.It is high bit by judged result Position is it may determine that go out vout and default multiple alternative voltage ranges belonging relation.
It should be noted that understand that first comparator comp1, the second comparator is comp2 with reference to Fig. 3-6, the present invention It is that two comparator configurations in strength are identical, an input of each comparator is connected with charging/discharging voltage vout, often Another input of individual comparator is reference threshold voltage vref (the upper and lower limit voltage of i.e. default alternative voltage range), Different alternative voltage ranges is selected by two groups of switch controlling signals, two groups of controlling switch signals only have two neighboring ratio each time Special position is height, and other positions are 0, the reference vref voltages of two groups of switch controlling signals selections always comp1 reference voltage threshold It is high to be worth the reference voltage threshold (lower voltage limit value) of (upper voltage limit value) than comp2, and is an adjacent alternative voltage range Two end-point voltages;First switch control circuit includes a counter, counter and deglitch effects, in counter Moving switch, scanning vout voltages, reset acquiescence and are scanned from ceiling voltage to minimum voltage section in fixed cycle, switch control Signal the highest-order bit and a time high position are 1 (can be since the alternative voltage range of highest).In current control flow, when One comparator and the second comparator results are:Comp_up is 1, comp_dn 1, represents that current vout voltages are more than current selection Maximum alternative voltage range, therefore, it is desirable to two groups of switch controlling signals are not all moved to left one for 0 bit, cut Shift to more higher leveled alternative voltage range, again by first comparator and the second comparator carry out charging/discharging voltage vout with The the first alternative voltage range currently chosen is compared, when switch controlling signal highest dibit position is that high comparative result is still High (explanation has had been switched to the alternative voltage range of maximum), no longer move to left (can not again to higher alternative voltage range again It has switched).When it is 0 that the result comp_up of first comparator and the second comparator, which is 0, comp_dn, represents that vout is less than and work as The minimum alternative voltage range scope of preceding selection, switch controlling signal moves to right a bit, when switch controlling signal moves on to most After low two bits are 1, (explanation has been switched to the standby of minimum when the result of first comparator and the second comparator is still all 0 Select voltage range), no longer move to right and (smaller voltage range can not be switched again).Only when comp_up is 0, comp_dn 1, Current vout is represented between two magnitudes of voltage of selection, that is, belongs to the alternative voltage range of first currently chosen, locking is worked as Preceding first alternative voltage range.
That is, when the highest dibit position of switch controlling signal is height, and two comparator comparative results are still 1, Represent that current vout is more than maximum alternative voltage range;When the minimum dibit position of switch controlling signal is high, two comparators When comparative result is still 0, represent that current vout is less than minimum alternative voltage range.
It should be noted that the default value or initial value in foregoing description are all exemplary, can be entered according to actual conditions Row adjustment.
Optionally, it is exemplary as shown in fig. 7, the alternative voltage range decoding circuit 10 is realized by selector, it is described Comparison circuit 11 is realized by comparator.
It should be noted that here using a comparator as comparison circuit 11, it is exemplary by discharge and recharge electricity here Alternative voltage range is divided into 4 voltage threshold sections corresponding to pressure, and comparator is hysteresis comparator.
Optionally, as shown in figure 8, the decision circuitry 12 is touched by enable signal triggers circuit 126, with the enable signal The second switch control circuit 127 and go out Power Generation Road 126 and the second switch with the enable signal that Power Generation Road 126 connects The judged result generative circuit 128 that control signal 127 connects respectively;Wherein,
The enable signal triggers circuit 126, for being made according to the comparative result and current switch control signal, generation Energy signal is simultaneously output to the second switch control circuit 127.
The second switch control circuit 127, for described opening according to the enable signal, the comparative result and currently Control signal is closed, it is determined that switch controlling signal and export to the judged result generative circuit 128 next time.
The judged result generative circuit 128, for described switching according to the current switch control signal and next time Control signal exports judged result.
Optionally, as shown in figure 9, the enable signal triggers circuit 126 is by the second counter of one-level 1260 and register 1261st, two-stage register 1262 and not circuit 1263, three-level and gate circuit 1264, level Four and gate circuit 1265 and Pyatyi and door Circuit 1266 is formed;Wherein,
Input of comparative result and the current switch control signal as the enable signal triggers circuit 126, passes through The second counter of the one-level 1260 and register 1261, the two-stage register 1262 and not circuit 1263, the three-level With exporting the enable signal after gate circuit 1264, the level Four and gate circuit 1265 and the Pyatyi and gate circuit 1266.
The second switch control circuit 127 is by one-level adder 1270, two level selector 1271 and three-level register 1272 are formed;Wherein,
The input of the comparative result and the enable signal as the second switch control circuit 127, by described Switch control next time described in output after one-level adder 1270, the two level selector 1271 and the three-level register 1272 Signal.
The judged result generative circuit 128 is by one-level register 1280, two level not circuit 1281, three-level and gate circuit 1282 and level Four register 1283 form;Wherein,
The current switch control signal and the switch controlling signal next time are as the judged result generative circuit 128 input, by the one-level register 1280, the two level not circuit 1281, the three-level and gate circuit 1282 and The judged result is exported after the level Four register 1283.
Exemplary, as shown in figure 9, the second counter provides the scanning constant cycle, switch controlling signal switch_on writes from memory It is 00 to recognize value, represents less than V1, is scanned up by minimum voltage threshold section, when comparator comparative result is high, switch_on Add 1, when last comparative result is height, switch controlling signal adds 1, after voltage threshold raises one grade, and comparator compares knot again When fruit is 0, just think to have found the voltage range belonging to vout, switch_on current latch obtains chg_code and (sentenced Disconnected result), the end of scan, then rescan from minimum voltage threshold value again and (re-start control flow next time).
It should be noted that above-mentioned scan mode also can be from high toward low progress, at this moment, corresponding judged result is also adjusted It is whole.
Embodiment two
The embodiments of the invention provide a kind of control method, and as shown in Figure 10, this method can include:
S101, between default multiple alternative voltage ranges determine current first alternative voltage range to be detected.
S102, obtain charging/discharging voltage.
S103, judge whether charging/discharging voltage belongs to the first alternative voltage range.
If S104, belonging to, terminate the current control flow of this voltage range.
If S105, being not belonging to, the first alternative voltage range is adjusted according to preset strategy, starts next secondary control Flow.
It should be noted that voltage threshold section is carried out by alternative voltage range decoding circuit in the embodiment of the present invention Division, and current voltage range to be detected, i.e., the first alternative voltage range, and then by the charging/discharging voltage of acquisition and first Alternative voltage range is compared, so as to judge whether charging/discharging voltage belongs to the first alternative voltage range, if the discharge and recharge is electric Pressure belongs to the first alternative voltage range, then terminates the detection when previous voltage range or control flow;If conversely, discharge and recharge Voltage is not belonging to the above-mentioned first alternative voltage range, then is adjusted the first alternative voltage range according to preset strategy, starts Control flow next time.That is, the first alternative voltage range of renewal (improve one grade or reduce by one grade of voltage range), then Again again compared with above-mentioned charging/discharging voltage and judge (i.e. control flow next time).
It should be noted that a kind of realization of control method provided in an embodiment of the present invention is periodically to realize or detect , the realization being specifically periodically detected can be realized by counter, and the time span in cycle can be 7 clocks, specifically The numerical value embodiment of the present invention in cycle is not restricted.
It is described in detail with reference to concrete implementation circuit.The embodiment of the present invention can pass through two kinds of control circuits Realize.
(1), understood with reference to Fig. 3,5 and 6:Two analog comparator structures are identical in Fig. 3, here by the standby of charging/discharging voltage Voltage range is selected to be divided into 8 voltage ranges, wherein the voltage threshold V7 comprising more than the maximum and voltage threshold V1 less than minimum, The input reference voltage (higher limit of the first alternative voltage range) of up comparators (first comparator) will not select the threshold of minimum The input reference voltage of threshold voltage V1, down comparator (the second comparator) will not select maximum threshold voltage V7, and (first is standby Select the lower limit of voltage range).In Fig. 5, the first counter fixed cycle did not stopped to count, and to simulation comparative result (the first ratio Compared with device result and the second comparator results) do deglitch eliminations, switch_on switch controlling signals default value highest adjacent two Individual bit is height, and remaining position is 0, represents up comparators (first comparator) selection reference voltage V7, down comparator (second Comparator) selection reference voltage V6, when two comparator results are height, current charging/discharging voltage vout is more than the alternative of selection Voltage range (for example, V6-V7), switch_on move to left a bit;When two comparator results are low, current discharge and recharge Voltage vout is less than the alternative voltage range (for example, V6-V7) of selection, and switch_on moves to right a bit;Have been moved to highest Two for it is high or it is minimum two be high when no longer move.In Fig. 6, only when the comparative result of up comparators compares for 0, down The comparative result of device be 1 or switch_on highests two be it is high, and two comparator results for high or switch_on most Low two are height, and when two comparator results are 0, and ability latch switch_on obtain chg_code and (judged in decision circuitry As a result), wherein being height in switch_on highests two, and two comparator results are that high or minimum two of switch_on is Switch_on moves to left one (only highest order is height) and represents that moving to left rear result more than maximum voltage threshold V7, latch is when high Judged result;Minimum two of switch_on is height, and switch_on moves to right one (only most when two comparator results are 0 Low level is height) minimum voltage threshold V1 is represented less than, it is judged result that latch, which moves to right rear result,.It is height by judged result Bit position it may determine that going out vout and default multiple alternative voltage ranges belonging relation.
It should be noted that understand that first comparator comp1, the second comparator is comp2 with reference to Fig. 3-6, the present invention It is that two comparator configurations in strength are identical, an input of each comparator is connected with charging/discharging voltage vout, often Another input of individual comparator is reference threshold voltage vref (the upper and lower limit voltage of i.e. default alternative voltage range), Different alternative voltage ranges is selected by two groups of switch controlling signals, two groups of controlling switch signals only have two neighboring ratio each time Special position is height, and other positions are 0, the reference vref voltages of two groups of switch controlling signals selections always comp1 reference voltage threshold It is high to be worth the reference voltage threshold (lower voltage limit value) of (upper voltage limit value) than comp2, and is an adjacent alternative voltage range Two end-point voltages;First switch control circuit includes a counter, counter and deglitch effects, in counter Moving switch, scanning vout voltages, reset acquiescence and are scanned from ceiling voltage to minimum voltage section in fixed cycle, switch control Signal the highest-order bit and a time high position are 1 (can be since the alternative voltage range of highest).In current control flow, when One comparator and the second comparator results are:Comp_up is 1, comp_dn 1, represents that current vout voltages are more than current selection Maximum alternative voltage range, therefore, it is desirable to two groups of switch controlling signals are not all moved to left one for 0 bit, cut Shift to more higher leveled alternative voltage range, again by first comparator and the second comparator carry out charging/discharging voltage vout with The the first alternative voltage range currently chosen is compared, when switch controlling signal highest dibit position is that high comparative result is still High (explanation has had been switched to the alternative voltage range of maximum), no longer move to left (can not again to higher alternative voltage range again It has switched).When it is 0 that the result comp_up of first comparator and the second comparator, which is 0, comp_dn, represents that vout is less than and work as The minimum alternative voltage range scope of preceding selection, switch controlling signal moves to right a bit, when switch controlling signal moves on to most After low two bits are 1, (explanation has been switched to the standby of minimum when the result of first comparator and the second comparator is still all 0 Select voltage range), no longer move to right and (smaller voltage range can not be switched again).Only when comp_up is 0, comp_dn 1, Current vout is represented between two magnitudes of voltage of selection, that is, belongs to the alternative voltage range of first currently chosen, locking is worked as Preceding first alternative voltage range.
That is, when the highest dibit position of switch controlling signal is height, and two comparator comparative results are still 1, Represent that current vout is more than maximum alternative voltage range;When the minimum dibit position of switch controlling signal is high, two comparators When comparative result is still 0, represent that current vout is less than minimum alternative voltage range.
It should be noted that the default value or initial value in foregoing description are all exemplary, can be entered according to actual conditions Row adjustment.
(2) it is exemplary by charging/discharging voltage here here using a comparator as comparison circuit, with reference to Fig. 7-9 Corresponding alternative voltage range is divided into 4 voltage threshold sections, and comparator is hysteresis comparator.
As shown in figure 9, the second counter provides the scanning constant cycle, switch controlling signal switch_on default values are 00, V1 is represented less than, is scanned up by minimum voltage threshold section, when comparator comparative result is height, switch_on adds 1, when upper Comparative result is height, and switch controlling signal adds 1, after voltage threshold raises one grade, and comparator is when comparative result is 0 again, Just thinking to have found the voltage range belonging to vout, switch_on current latch obtains chg_code (judged result), The end of scan, then rescan from minimum voltage threshold value again and (re-start control flow next time).
It should be noted that above-mentioned scan mode also can be from high toward low progress, at this moment, corresponding judged result is also adjusted It is whole.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

  1. A kind of 1. control circuit, it is characterised in that including:
    Alternative voltage range decoding circuit, with the comparison circuit that alternatively voltage range decoding circuit is connected, and with it is described The decision circuitry that alternative voltage range decoding circuit and the comparison circuit connect respectively;Wherein,
    The alternative voltage range decoding circuit, for the comparative result according to the comparison circuit, control default multiple standby Select and switch between voltage range, and the choose first alternative voltage range is exported to the comparison circuit;
    The comparison circuit, for by charging/discharging voltage compared with the described first alternative voltage range, and export compare knot Fruit is to the decision circuitry and the alternative voltage range decoding circuit;
    The decision circuitry, for according to the comparative result, judging the charging/discharging voltage and the described first alternative voltage zone Between between belonging relation.
  2. 2. control circuit according to claim 1, it is characterised in that the alternative voltage range decoding circuit includes:The One ON-OFF control circuit, the switch decoding circuit being connected with the first switch control circuit, and it is electric with the switch decoding The alternative voltage range selection circuit of road connection;The switch decoding circuit is connected with the decision circuitry;The comparison circuit It is connected respectively with the first switch control circuit and the alternative voltage range selection circuit;
    The first switch control circuit, for according to the comparative result and current switch control signal, it is determined that open next time Control signal is closed, and switch controlling signal switchs decoding circuit and the decision circuitry to described next time described in output;
    The switch decoding circuit, for the switch controlling signal next time to be decoded into two groups of switch controlling signals, and it is defeated Go out two groups of switch controlling signals to the alternative voltage range selection circuit;
    The alternative voltage range selection circuit, for being controlled according to two groups of switch controlling signals described default multiple standby Select and switch between voltage range, and the described first alternative voltage range chosen is exported to the comparison circuit.
  3. 3. control circuit according to claim 2, it is characterised in that the comparison circuit includes:First comparator and Two comparators;The alternative voltage range selection circuit includes:First selector and second selector;The first comparator with The first switch control circuit, the first selector connect with the decision circuitry;Second comparator and described the One ON-OFF control circuit, the second selector connect with the decision circuitry;
    The first selector, specifically for presetting multiple alternative voltage ranges described according to one group of switch controlling signal control Upper voltage limit value between switch over, and the upper voltage limit value for the described first alternative voltage range chosen is exported to described First comparator;
    The second selector, specifically for presetting multiple alternative voltage zones described according to another group of switch controlling signal control Between lower voltage limit value between switch over, and the lower voltage limit value for the described first alternative voltage range chosen is exported to institute State the second comparator;
    The first comparator, specifically for by the upper voltage limit value of the charging/discharging voltage and the described first alternative voltage range It is compared, and exports the first comparative result to the decision circuitry and the first switch control circuit;
    Second comparator, specifically for by the lower voltage limit value of the charging/discharging voltage and the described first alternative voltage range It is compared, and exports the second comparative result to the decision circuitry and the first switch control circuit;
    The first switch control circuit, specifically for according to first comparative result, second comparative result and described Current switch control signal, it is determined that the switch controlling signal next time, and described in exporting next time switch controlling signal to institute State switch decoding circuit and the decision circuitry;
    The decision circuitry, specifically for according to first comparative result and second comparative result, judging the charge and discharge Belonging relation between piezoelectric voltage and the first alternative voltage range.
  4. 4. control circuit according to claim 3, it is characterised in that
    The first switch control circuit by one-level not circuit, two level and gate circuit, three-level and gate circuit and the first counter, Level Four trigger, Pyatyi selector and six grades of registers are formed;Wherein,
    First comparative result, the second comparative result and current switch control signal are as the first switch control circuit Input, by the one-level not circuit, the two level and gate circuit, the three-level and gate circuit and the first counter, described Switch controlling signal next time described in output after level Four trigger, the Pyatyi selector and six grades of registers.
  5. 5. the control circuit according to claim 3 or 4, it is characterised in that
    The decision circuitry is selected by one-level not circuit, two level and gate circuit, three-level and gate circuit, level Four trigger, Pyatyi Device and six grades of registers are formed;Wherein,
    First comparative result, the input of the second comparative result and current switch control signal as the decision circuitry, lead to Cross the one-level not circuit, the two level and gate circuit, the three-level and gate circuit, the level Four trigger, the Pyatyi The judged result is exported after selector and six grades of registers.
  6. 6. control circuit according to claim 1, it is characterised in that
    The alternative voltage range decoding circuit is realized that the comparison circuit is realized by comparator by selector.
  7. 7. control circuit according to claim 1 or 2, it is characterised in that
    The decision circuitry controls electricity by enable signal triggers circuit, the second switch being connected with the enable signal triggers circuit Road and go out Power Generation Road with the enable signal and judged result generative circuit that the second switch control signal is connected respectively; Wherein,
    The enable signal triggers circuit, for according to the comparative result and current switch control signal, generating enable signal And it is output to the second switch control circuit;
    The second switch control circuit, for being controlled according to the enable signal, the comparative result and the current switch Signal, it is determined that switch controlling signal and export to the judged result generative circuit next time;
    The judged result generative circuit, for according to the current switch control signal and the switch controlling signal next time Export judged result.
  8. 8. control circuit according to claim 7, it is characterised in that
    The enable signal triggers circuit by the counter of one-level second and register, two-stage register and not circuit, three-level with Gate circuit, level Four and gate circuit and Pyatyi and gate circuit are formed;Wherein,
    Input of comparative result and the current switch control signal as the enable signal triggers circuit, passes through the one-level Second counter and register, the two-stage register and not circuit, the three-level and gate circuit, the level Four and gate circuit The enable signal is exported with after the Pyatyi and gate circuit;
    The second switch control circuit is made up of one-level adder, two level selector and three-level register;Wherein,
    The input of the comparative result and the enable signal as the second switch control circuit, passes through the one-level addition Switch controlling signal next time described in output after device, the two level selector and the three-level register;
    The judged result generative circuit is by one-level register, two level not circuit, three-level and gate circuit and level Four register structure Into;Wherein,
    The current switch control signal and the switch controlling signal next time are as the defeated of the judged result generative circuit Enter, by being exported after the one-level register, the two level not circuit, the three-level and gate circuit and the level Four register The judged result.
  9. A kind of 9. control method, it is characterised in that including:
    Current first alternative voltage range to be detected is determined between default multiple alternative voltage ranges;
    Obtain charging/discharging voltage;
    Judge whether the charging/discharging voltage belongs to the described first alternative voltage range;
    If belonging to, terminate the current control flow of this voltage range.
  10. 10. control method according to claim 9, it is characterised in that described to judge whether the charging/discharging voltage belongs to After the first alternative voltage range, methods described also includes:
    If being not belonging to, the described first alternative voltage range is adjusted according to preset strategy, starts control flow next time.
CN201610454881.3A 2016-06-21 2016-06-21 A kind of control circuit and method Pending CN107525960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610454881.3A CN107525960A (en) 2016-06-21 2016-06-21 A kind of control circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610454881.3A CN107525960A (en) 2016-06-21 2016-06-21 A kind of control circuit and method

Publications (1)

Publication Number Publication Date
CN107525960A true CN107525960A (en) 2017-12-29

Family

ID=60735345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610454881.3A Pending CN107525960A (en) 2016-06-21 2016-06-21 A kind of control circuit and method

Country Status (1)

Country Link
CN (1) CN107525960A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110954737A (en) * 2018-09-27 2020-04-03 意法半导体(鲁塞)公司 Monitoring a DC voltage value with respect to a number of voltage levels

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102655333A (en) * 2011-03-04 2012-09-05 国基电子(上海)有限公司 Battery charging device and charging method thereof
CN102759655A (en) * 2011-04-29 2012-10-31 飞兆半导体公司 Detection circuit for multiple power voltage and detection method
CN103855747A (en) * 2012-12-05 2014-06-11 凹凸电子(武汉)有限公司 Battery system and battery charging method
CN104578371A (en) * 2015-01-13 2015-04-29 苏州中元动力科技有限公司 Battery management system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102655333A (en) * 2011-03-04 2012-09-05 国基电子(上海)有限公司 Battery charging device and charging method thereof
CN102759655A (en) * 2011-04-29 2012-10-31 飞兆半导体公司 Detection circuit for multiple power voltage and detection method
CN103855747A (en) * 2012-12-05 2014-06-11 凹凸电子(武汉)有限公司 Battery system and battery charging method
CN104578371A (en) * 2015-01-13 2015-04-29 苏州中元动力科技有限公司 Battery management system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110954737A (en) * 2018-09-27 2020-04-03 意法半导体(鲁塞)公司 Monitoring a DC voltage value with respect to a number of voltage levels

Similar Documents

Publication Publication Date Title
CN103682498B (en) A kind of charging method and electronic equipment
CN102946131B (en) Adaptive input power charger and method for controlling input current of charger
CN1983119B (en) Digital circuit with dynamic power consumption level and method thereof
EP2284975A1 (en) Battery charge device and control method thereof
GB2551596A (en) Method and apparatus for fault prediction of sub-module in flexible direct current transmission converter valve
CN107749630B (en) Near-region power grid voltage coordination emergency control method of phase modulator
CN102820679B (en) A kind of charge control method and electronic equipment
CN108780346A (en) Host equipment and expanding unit
CN107340500A (en) A kind of Radar Signal Processing platform dynamic power consumption control method and system
CN102480228B (en) Switching power control system and method thereof
CN104065263A (en) Voltage Conversion Circuit And Switching Control Circuit
CN106300983A (en) A kind of inverse-excitation type switch power-supply input voltage measurement device and method
CN103929081B (en) A kind of submodule method for equalizing voltage for modularization multi-level converter
CN110994626A (en) Automatic voltage control method for 500-220kV regional power grid based on voltage trend prediction
CN107525960A (en) A kind of control circuit and method
CN107769552B (en) A kind of control method, device and the converter of list inductance multi output converter
CN101651336A (en) Distribution protection method and distribution protection device
CN106714392A (en) Sectional switching lighting adjustment control drive circuit with LED open circuit protection
CN102681450A (en) Method and equipment for controlling chip
CN105988498B (en) A kind of adaptive power-supply system of low-voltage
CN201352762Y (en) Multi-level impulse sequence control device for switch power supply in pseudo continuous work mode
CN107181270B (en) A kind of more energy storage flexibilities inhibit the Stochastic Dynamic Programming Method of wind-powered electricity generation
CN201051717Y (en) No contact binary transformer voltage-adjusting power supply
CN100478839C (en) Periodic switch control device of electric power supply
CN103414188B (en) Optical configuration method of supergrid controllable phase shifter

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171229