An embodiment of the present invention relates to the field of electronic systems and, more particularly, to an approach for power source selection.
Electronic circuitry such as a micro-controller may be used in some battery-powered electronic systems, or other systems that may be powered by an alternative power source, to monitor the status of one or more battery packs or other power sources and select an appropriate power source. For such systems, if the monitoring/selection circuitry is not able to respond quickly enough to a power source change to select a battery pack or other power source before the system voltage rail droops below a certain level, the system may crash.
The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings in which like references indicate similar elements, and in which:
A method and apparatus for power source selection are described. In the following description, particular components, circuits, systems, power sources, battery types, battery configurations, etc. are described for purposes of illustration. It will be appreciated, however, that other embodiments are applicable to other types of components, circuits, systems, power sources and/or battery types and/or configurations, for example.
References to “one embodiment,” “an embodiment,” “example embodiment,” “various embodiments,” etc., indicate that the embodiment(s) of the invention so described may include a particular feature, structure, or characteristic, but not every embodiment necessarily includes the particular feature, structure, or characteristic. Further, repeated use of the phrase “in one embodiment” or “for one embodiment” does not necessarily refer to the same embodiment, although it may.
Embodiments of the invention may be implemented in one or a combination of hardware, firmware, and software. Embodiments of the invention may also be implemented in whole or in part as instructions stored on a machine-readable medium, which may be read and executed by at least one processor to perform the operations described herein. A machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer). For example, a machine-readable medium may include read only memory (ROM); random access memory (RAM); magnetic disk storage media; optical storage media; flash memory devices; electrical, optical, acoustical or other form of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.), and others.
For one embodiment, a voltage monitor is capable of monitoring a system supply voltage, also referred to herein as a system voltage rail, and asserting a droop signal if the system supply voltage droops below a threshold voltage. An energy or power source selector is responsive to assertion of the droop signal to configure at least one power source, such as a battery pack, for example, to attempt to provide a system supply voltage higher than the threshold voltage. For some embodiments, the power source selector may configure all available power sources to attempt to raise the system supply voltage above the threshold voltage. One example reason the at least one power source may not be able to raise the system supply voltage above the threshold voltage if the power source being configured to provide the system supply voltage has been substantially discharged or otherwise substantially depleted.
For purposes of illustration, while the power source for many of the example embodiments described herein includes one or more battery packs, for other embodiments the power source may include one or more fuel cells, photovoltaic cells and/or uninterruptible power supplies, for example. Still other types of power sources may be used for other embodiments. Details of these and other embodiments are provided in the description that follows.
The power switches 105 and 110, which may be referred to as isolation power switches, (shown as a Battery Charging Selector 105 and a Power Source Selector 110 in
In operation, a power source change for the system 100 may occur, for example, as a result of disconnecting an AC power source. As mentioned above, if the micro-controller 130 is not able to respond quickly enough to a power source change to select a battery pack, and the system voltage rail droops below a certain level, the system 100 may crash or otherwise be compromised. To avoid this situation, combinatorial battery selection circuitry 135 may be provided to monitor the battery pack voltages for the battery packs 115 and 120, and to select a battery pack if the micro-controller 130 is unable to do so.
For the modified battery pack 300 of
The voltage monitor circuit 540 includes a voltage comparator 546 coupled to receive a reference voltage at a first input and has a second input coupled to monitor an attenuated version of the voltage of a system voltage rail via an attenuator 547 for one embodiment. The system voltage rail may be provided, for example, by an external AC power source or a battery pack. For one embodiment, the system voltage rail is a Narrow VDC system voltage rail as described in the above-referenced specification, and elsewhere in publicly available documentation. For another embodiment, the system voltage rail may be according to a different power delivery approach. The attenuator 547, where used, may have an attenuation factor anywhere in the 0 to 1 range. If the attenuation factor is 1, then the attenuator 547 does not alter the voltage being monitored. It may be desirable, however, to have an attenuation factor less than 1 but greater than 0 for some embodiments because the voltage rail being monitored is the highest voltage in the system and it may be easier to measure if it is at a lower level.
The reference voltage of one embodiment may be provided by a bandgap reference, a zener diode 548, or a resistor divider, for example. Where a resistor divider is used, it may be connected to receive a stable voltage. Alternatively, the resistor divider may be coupled to receive a variable voltage if a variation in the threshold voltage is desired due to, for example, a change in temperature of the battery pack. Other approaches to providing a reference voltage are within the scope of various embodiments.
The battery selection circuit 545 of one embodiment includes a latch 550, a battery selection micro-controller or other control/selection circuitry 552, and multiplexers 555-558. A clock input of the latch 550 is coupled to receive an output of the voltage comparator 546, a reset input of the latch is coupled to receive a reset latch output signal from the control/selection circuitry 552 and another input of the latch 550 is tied high. An output of the latch 550 is coupled to select inputs of each of the multiplexers 555-558 and to a latch set input of the ciruitry 552 as shown.
The micro-controller or other control/selection circuitry 552 provides charge and discharge control output signals shown as Chg A (charge battery pack A), Dis# A (discharge battery pack A), Chg B (charge battery pack B) and Dis# B (discharge battery pack B) for battery packs A and B, 560 and 565, respectively. Battery packs 560 and 565 may correspond to the battery packs A and B of the power delivery sub-system of
Each of the output signals Chg A, Dis# A, Chg B and Dis# B is provided over a respective signal line coupled to one of the multiplexers 555-558 as shown. The circuit 552 also provides a system management (SM) bus output coupled to inputs of the battery controllers of each of the battery packs 560 and 565. While two battery packs are shown in
Referring to
If the attenuated system rail voltage droops below the reference voltage, e.g. because all of the power sources have been disconnected and the control/selection circuit 552 has not yet selected a power source, the voltage comparator 546 asserts a droop signal at an output of the voltage comparator 567. Assertion of the droop signal clocks the latch 550 causing the latch 550 to be set and an output signal from the latch 550 to be asserted.
Assertion of the latch output configures the batteries 560 and 565 to the system supply rail through diode connections as shown in
For the particular embodiment of
The output of the latch 550 is also coupled to a latch set input signal of the micro-controller or other control/selection circuit 552, such that when the output of the latch is asserted, an indication is provided to the micro-controller 552 that the batteries 560 and 565 need to be intelligently selected. Then, at a convenient time, the micro-controller 550 may configure the batteries 560 and/or 565 according to battery configuration logic provided on the micro-controller. Upon completion of the configuration/selection, the micro-controller 552 may assert a reset latch signal to reset the latch 550.
While two battery packs are described as being coupled to provide system power in connection with the example embodiments illustrated in
The processor 605 may be a micro-processor including a single core or multiple cores, a digital signal processor, an embedded processor or a graphics processor, for example. The bus 610 may be a point-to-point bus, a switched fabric or another type of bus. The system 600 may be a mobile computing device such as a laptop or notebook computer, a personal digital assistant or the like. Alternatively, the system 600 may be another type of electronic system such as, for example, a wireless telephone. Other types of electronic systems are within the scope of various embodiments.
The system 600 is powered by a power delivery subsystem 635, which may be similar in configuration and operation to the power delivery subsystem 400 of
It will be appreciated that, for other embodiments, the method may include additional actions.
Thus, various embodiments of a method and apparatus and system for battery pack selection are described. In the foregoing specification, the invention has been described with reference to specific example embodiments thereof. It will, however, be appreciated that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. For example, while a specific implementation of a battery selection circuit is described, it will be appreciated that other types of circuits, logic, software and/or firmware that perform a similar function may be used for other embodiments. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.