BATTERY PACK

Abstract: A battery pack (1) is connected to an external device (9) and to a power supply circuit (10) for the external device (9), and it energizes the external device (9) or is charged by the power supply circuit (10). An analog circuit (12) and a microcomputer (11) inside the battery pack (1) detect an ON/OFF state of the external device (9) and execute control in such a manner as to effect charging by the balance of power obtained by subtracting the maximum power consumption of the external device (9) from the total capacity of the power supply circuit (10) under the ON state and to effect charging by full use of the supply power from the power supply circuit (10) under the OFF state. This charge/discharge control is executed when the microcomputer (11) makes ON/OFF control of a charging switch (S1), a discharging switch (S2) and a switch (S4).

Description: Technical Field This invention relates to a battery pack employed as a power source for a portable telephone, personal computer or a video camera. Background Art There has hitherto been known a battery pack constituted by a secondary cell, such as a lithium ion cell, NiCd cell or a nickel hydrogen cell. Such known battery pack is in need of a protective circuit which is arranged at a pre-set position within the battery pack. A charging control circuit is separately provided on a charger such as an ac adapter or on an external unit such as a personal computer employing the battery pack. If the excess discharging state is detected, the discharge is discontinued appropriately. However, the voltage at each cell cannot be detected based solely upon the terminal voltage of the battery pack, such that the residual capacity cannot be measured accurately. Besides, if any one of the cells reaches a pre-set over-discharge voltage, the discharge is discontinued without regard to the terminal voltage. This is particularly inconvenient with an equipment, such as a personal computer, in which it is necessary to carry out an operation of data storage before discontinuing the discharge. On the other hand, the control circuit needs to be designed uniquely in order to adapt it to the characteristics of the secondary cell of the battery pack. If the control circuit is provided outside of the battery pack, the problem of interchangeability between the charger and the secondary cells arises with inconveniences in safety and costs. It has therefore been desired to provide a small-sized compact battery pack in which control may be made so as to take account of the characteristics of the cells of the secondary battery of the battery pack and in which the load imposed on the external equipment used with the battery pack may be minimized. In addition, when charging the battery pack with the power supplied from a power circuit connected to the external equipment, it is necessary to change over the charging operation depending on whether the external equipment is in the turned-on state or in the turned-off state. EP-A-0 406 858 describes an arrangement for supplying power to telephone apparatus having a battery unit provided therein. A battery charger serves as an adapter converting power from an AC source into DC power available at three different current levels. In this arrangement, charging/discharging is controlled by means provided within the battery charger. During a first, rapid-charging phase, power is supplied to the telephone apparatus/battery combination at a relatively high current level. During a subsequent, trickle-charging phase, power is supplied at a relatively low current level. However, during the trickle charge phase, if it is detected that the telephone is in stand-by mode, the battery charger supplies power at a somewhat higher current level than is normal for trickle charging (in order to ensure that the battery is not run down). In view of the above-described status of the art, it is an object of the present invention to provide a battery pack in which the charge/discharge operation may be performed on the side of the battery pack and in which appropriate charge/discharge control may be made depending on the state of the external equipment in such a manner as to take account of the cell characteristics. Disclosure of the Invention The present invention provides a battery pack adapted to be connected, in use, to a power source circuit and to an external equipment, said external equipment being connected to said power source circuit, said battery pack comprising a plurality of cells and means for controlling the charging current of said battery pack, the battery pack being characterised in that it comprises integral charging control means comprising: means for detecting the on/off state of said external equipment when connected thereto in use, and said means for controlling the charging current of said battery pack, the charging current control means being adapted such that, when connected to the external equipment and to the power source circuit in use, said external equipment and power source circuit being connected together, the battery pack draws power at a first level, equal to the total supply power from said power source circuit, when the detecting means detects the off state of the external equipment and, whenever the detecting means detects the on state of the external equipment, the power drawn by the battery pack is limited to a second level, less than the first level, said second level being equal to the total supply power from said power source circuit less the maximum power consumed by said external equipment. In this manner, the battery pack may be charged properly without adversely affecting the power supply to the external equipment. In the turned-on state of the external equipment, charging is performed with the low current obtained by switching control of the current supplied from the power source circuit. It is preferred to effect the charging under constant current control of controlling the current from the power source circuit to a constant low current value. It is also possible to detect the voltage difference among the cells in the state of termination of charging and to discharge the cell of the maximum voltage if the voltage difference is higher than a pre-set threshold value in order to maintain what may be termed a cell voltage balance for suppressing voltage fluctuations. By controlling the discharge switch to an on-state on termination of charging, or by detecting the voltage state of the power source circuit and on/off controlling the discharging switch depending on the detected state of the power source, it becomes possible to supply the discharging current instantly from the battery pack to the external equipment even if the power source circuit is turned off during the turned-on state of the external equipment. Furthermore, by providing a battery loading terminal to which a voltage is applied on battery loading, and by changing over the internal circuit between the operation and the non-operation depending on the voltage applied to the battery loading terminal, it becomes possible to assure protection for such cases wherein the power source terminals of the battery pack are shorted or other chargers are employed. Brief Description of the Drawings Fig.1 is a schematic plan view showing a structure of an embodiment of a battery pack according to the present invention. Fig.2 is a schematic block circuit diagram showing the structure of a circuit of the embodiment of the battery pack according to the present invention and a peripheral circuit. Fig.3 is a flowchart for schematically illustrating the overall charge/discharge control operations of the embodiment of Figs.1 and 2. Fig.4 is a flowchart for illustrating the background charging mode among the charge/discharging control operations of the embodiment of Figs.1 and 2. Fig.5 is a graph showing changes in the current and the voltage with lapse of time for the background charging mode. Fig.6 is a flowchart for illustrating the background discharging mode among the charge/discharging control operations of the embodiment of Figs.1 and 2. Fig.7 is a graph showing changes in the current and the voltage with lapse of time in the quick charging mode. Fig.8 is a schematic block circuit diagram showing the structure of a circuit of a modified embodiment of the battery pack according to the present invention and a peripheral circuit. Best Mode for Carrying out the Invention Referring to the drawings, preferred embodiments of the battery pack according to the present invention will be explained. A battery pack 1 of the present embodiment is made up of a control/protection circuit 3 and a main battery unit 4 provided within a container casing 2, as shown in Fig.1. The control/ protection circuit 3, with a built-in charge/discharge control function, a built-in communication function and a protective circuit, is suitably arranged in position within the container casing 2. The main battery unit 4 is comprised of, for example, six cells 5. These six cells 5, termed 3P2S, are comprised of two series connection of two sets of cells, each being made up of three cells connected in parallel. The main battery unit 4 also includes a negative terminal 6, a positive terminal 7 and an external connection terminal 8 at suitable positions capable of being connected to an external charger and an external equipment 9 provided externally of the container casing 2. The number of cells 5 of the battery main unit 4 is not limited to six and may be suitably increased or decreased. The connecting state of the cells 5 may also be changed in any desired manner. The battery pack 1, comprised of the control/protection circuit 3 and the main battery unit 4, has its negative terminal 6, positive terminal 7 and the external connection terminal 8 connected to the negative and positive sides of the external equipment 9 and a power source circuit 10, such as an ac/dc converter, and to the external equipment 9, respectively, as shown in Fig.2, in order to effect the charge/discharge operations for the main battery unit 4. The control/protection circuit 3 is comprised of a micro-computer 11, an analog circuit 12, resistors R1 to R4, diodes D1, D2, D3 and D4, switches S1, S2 S3 and S4, an operational amplifier OP1 and an inductance L1. The state of interconnection between the control/protection circuit 3 and the main battery unit 4 is now explained. The positive terminal 7, connected with the positive sides of the external equipment 9 and the charger 10, is connected to an end of a resistor R1, an end of the control/protection circuit 3, a cathode side of the diode D1 and to a positive terminal of the main battery unit 4. The resistor R1 has its other end connected to an end of a resistor R2 and to a terminal of the analog circuit 12. The resistor R2 has its other end connected via a fuse F1 to the negative terminal 6. The resistor R3 has its one end connected to the anode side of the diode D1 and to an input terminal of the analog circuit 12, while having its other end connected via the fuse F1 to the negative terminal 6. The resistor R4 has its one end connected to the switch S1, the cathode side of the diode D3, the other end of a coil L1 and to one input terminal of the operational amplifier OP1, while having its other end connected to the other input terminal of the operational amplifier OP1 and to the negative terminal of the battery main unit 4. The diode D1 is a Zener diode which has its anode side connected to one end of the resistor R3 and to the input terminal of the analog circuit 12 and which has its cathode side connected to the positive terminal 7. The diode D2 has its anode side connected to one terminal of the switch S1, the other terminal of the switch S2 and to the anode side of the diode D3, while having its cathode side connected via the fuse F1 to the negative terminal 6. The diode D3 has its anode side connected to one terminal of the switch S1, the other terminal of the switch S2 and to the anode side of the diode D2, while having its cathode side connected to the other terminal of the switch S1, the other terminal of the coil L1, the one input terminal of the operational amplifier OP1 and to one terminal of the resistor R4. The diode D4 has its anode side connected to one terminal of the coil L1 and to the other terminal of the switch S4, while having its cathode side connected to the positive terminal 7. The switch S1 , which is turned on during the charging operation of the battery main unit 4, has its one terminal connected to the anode side of the diode D3, one terminal of the switch S4, the anode side of the diode D2 and to the other terminal of the switch S2, while having its other terminal connected to the cathode side of the diode D3, the other terminal of the coil L1, the one input terminal of the operational amplifier OP1 and to one terminal of the resistor R4 and having its control terminal connected to an output terminal of the micro-computer (CPU) 11. The switch S2, which is turned on during the discharging of the battery main unit 4, has its one terminal connected via the fuse F1 to the negative terminal 6 and to the cathode side of the diode D2, while having its other terminal connected to the anode side of the diode D2, one terminal of the switch S4, the anode side of the diode D3 and to one input terminal of the switch S1 and having its control terminal connected to the output terminal of the micro-computer (CPU) 11. The switch S4, which is turned on and off based upon the command from the micro-computer 11 and the analog circuit 12, has its one terminal connected to the other terminal of the switch S2, the anode side of the diode D2, the anode side of the diode D3 and to one terminal of the switch S1, while having its other terminal connected to the anode side of the diode D4 and to one terminal of the coil L1 and its control terminal connected to the output terminal of the micro-computer 11 and to the output terminal of the analog circuit 12. The operational amplifier OP1, detecting the excessive current and the directivity, that is charging or discharging, is connected to the other terminal of the switch S1, the cathode side of the diode D3, the other terminal of the coil L1 and to the negative side of the battery main unit 4. The fuse F1, which is turned on and off based upon the signal from the micro-computer 11, has its one terminal connected to the negative terminal 6, while having its other terminal connected to the other terminal of the resistor R2, the other terminal of the resistor R3, the cathode side of the diode D2 and to one terminal of the switch S2 and its control terminal connected to the output terminal of the micro-computer 11. The micro-computer 11, controlling the charging/discharging of the battery main unit 4 and the protective circuit inclusive of the analog circuit 12, has plural input terminals, that is terminals controlling the switches S1 to S4, a terminal for acquiring the information from the analog circuit 12, a terminal connected to the other terminal of the switch S3, a terminal controlling the fuse F1 and an external control terminal 8 for controlling the external equipment 9. The analog circuit 12, comprised of a circuitry for controlling the battery main unit 4 and for accommodating for shorting or the like, has an input terminal to which signals from the battery main unit 4 enter, a terminal for controlling the switches S3 and S4, a terminal for transmitting the information to the micro-computer 11 and a terminal for detecting unusual input/output voltages. With the above-described control/protection circuit 3, it has heretofore been necessary to provide a protection circuit constituted by the operational amplifier OP1 and the resistor R4 for detecting the constant current or voltage within the inside of the power source circuit 10 or within the charger as well as on the battery pack 1. However, with the above arrangement, it is sufficient to provide only one set of the similar portions of the charger and the power source circuit 10 within the battery pack. The protection circuit may also be comprised of the diode D1 and the resistor R3 and designed to detect the unusual input voltage. Such protection circuit plays the role of preventing the charging from the power source when for example the voltage of the power source circuit reaches an unusual value. In addition, the analog circuit 12 monitors the states of the cells 5 of the battery main unit 4. That is, the analog circuit 12 detects the state of voltage or the charge/discharge current of each cell 5 and suitably transmits the detected state to the micro-computer 11. For example, if the charge/discharge operation of the battery main unit 4 is completed, a signal indicating that effect is transmitted to the micro-computer 11 for turning the switch S2 off. On the other hand, if unusual situations arise in the battery main unit 4 during the charging operation or the discharging operation, such as when excessively charged state or excessively discharged state has occurred, the analog circuit 12 controls the switch S1 or S2 to halt the charging operation or the discharging operation. If, during charging of the battery pack 1 by the power source circuit 10, such as an ac/dc converter, the charging voltage is deviated significantly from the design value, the analog circuit 12 detects the partial voltage value from the protection circuit made up of the resistors R1 and R2 and transmits a signal of stopping the charging operation to the micro-computer 11. The micro-computer 11 breaks the fuse F1 responsive to this signal in order to prevent the battery main unit 4 from being destroyed. In this manner, by providing the various protection circuits in the battery pack 1 instead of within the power source circuit 10 and by incorporating control circuits performing various control operations in the battery pack 1, the battery pack 1 itself is able to achieve the protection of the cells 5 and the charging/discharging control. The operation of the control/protection circuit 3 is controlled in accordance with the pre-set flowchart stored within the micro-computer 11. Referring to Figs.3 to 7, a typical set of operations for a 3P-2S type battery pack, comprising three parallel rows each consisting of two series connected cells, is explained. Referring to Fig.3, when the battery pack is loaded at a step S10, the voltage is checked at a step S11 by the analog circuit 12. Specifically, the partial voltage values from the voltage divider circuit made up of the resistors R1 and R2 are detected by the analog circuit 12 in order to check whether or not the voltage is within the normal voltage range. If the voltage is the normal voltage, control proceeds to a step S12 for starting the micro-computer (CPU) 11 within the battery pack 1. At the next step S13, there is a check of the status of the ac power source of the power source circuit 10, and the status of the personal computer (PC) as a specific example of the external equipment 9, that is the AC (power source)/PC (external equipment) status, for proceeding to branching to various modes depending on the AC or PC statuses. That is, if the AC/PC state is found to be AC (power source) off and the PC (external equipment) off (S14), control proceeds to a step S15 to decipher whether or not the power downstate exists. If the result of decision is YES (power down), the operation is ended. If the result is NO, control proceeds to the wait or stand-by mode S20. If the AC/PC state is found at the step S13 to be AC (power source) off and the PC (external equipment) on (S16), control proceeds to a discharge mode (S30). If the AC/PC state is found at the step S13 to be AC (power source) on and the PC (external equipment) on (S17), control proceeds to a background charging mode (S40). If the AC/PC state is found at the step S13 to be AC (power source) on and the PC (external equipment) off (S18), control proceeds to a quick charging mode (S50). Among these modes, the discharge mode (S30) is the mode of driving the external equipment 9, such as the personal computer, with the battery. During this mode, both the switches S1 and S2 are turned on in order to detect the voltage of the cells 5 in the battery main unit 4 (in effect, the cells connected in parallel). The reason of detecting the cell voltage in the battery main unit 4 is, that, since the cells are discharged and the voltage is thereby lowered, such voltage is checked, so that, at the next step S32, the voltage values in the cells 5 are checked as to whether or not these voltage values become lower than a pre-set threshold voltage, such as 2.75 V, which represents the excessively discharged state. If the voltage state in each cell 5 becomes lower than the above-mentioned threshold value (2.75 V), control proceeds to the next step S33 to issue an alarm that the excessively discharged state exists and to prompt the external equipment to stop its operation. At the next step S34, it is checked whether or not the voltage is lower than a voltage from which re-charging becomes impossible, such as 2.50 V. Until this voltage is reached, the discharge is continued while simultaneously the alarm concerning the excessively discharged state is issued in order to enable the processing for data protection by, for example, the personal computer. If the voltage is found at the step S34 to be lower than the voltage of 2.50 V, control proceeds to a step S35 to force the power-down state of the battery pack 1. The switches S1 and S2 are both turned off to terminate the power supply to the external equipment 9. Among the above-mentioned various modes, the operation in the wait mode S20 is the same as that for the discharge mode S30. However, since the external equipment 9 is turned off, the discharge current is extremely low. Since the operating steps S21, S22, S23, S24 and S25 of the wait mode S20 correspond to the operating steps S31, S32, S33, S34 and S35 of the discharge mode S30, the explanation is not made for clarity. The background charging mode S40, which is established when the AC (power source)/PC (external equipment) state is decided to be such that the AC (power source) is on and the PC (external equipment) is on (S17), is explained by referring to the flowchart of Fig.4 and the charging transition schema (charging process diagram) of Fig.5. The background charging mode, which is set when the AC/PC state is the AC (power source) on and the PC (external equipment) on, is the mode in which the battery main unit 4 of the battery pack 1 is charged during the time when the external equipment 9 is turned on and the power is supplied from the power source circuit 10 to the external equipment 9. During the background charging mode, the residual small current (background current) supplied from the power source circuit 10 to the external circuit 9 is utilized to perform the charging. During the background charging mode S40, the low current charging as shown by a step S41 is performed for the first stage period P A . The low current charging is such charging in which the switch S4 is changed over at a pre-set frequency under control by the micro-computer (CPU) 11 in order to cause the pre-set small current (background current) to flow through the battery main unit 4 for charging. This small current or background current is the residual current equal to the maximum supply current to the power source circuit 10 less the maximum current consumed by the external circuit 9, and amounts to one-fifth to one-tenth, for example, one-eighth of the usual charging current. Thus the current amounts to approximately 0.5 A in the present embodiment. If charging is performed within a range of not exceeding this small current value, there is no inconvenience caused even when the current consumed by the external equipment 9 becomes maximum. The switching frequency may for example be on the order of 20 kHz. It is however preferred to control the switching frequency or the pulse width to stabilize the charging current at the above-mentioned small current value of 0.5 A with the aid of the so-called dc chopper configuration. This low current charging is continued until it is determined at a step S42 that the cell voltage has exceeded a pre-set voltage threshold T v1 . The threshold value T v1 is set to, for example, 3.5V to 4.0V. When it is determined at the step S42 that the cell voltage has exceeded the threshold value T v1 , the charging period proceeds to a second stage period P c when the constant voltage charging at a step S43 is performed. This constant voltage charging is performed under a constant voltage, for example, in a substantially constant voltage range of from about 8.2 V to a full-charge voltage of 8.4V ± 0.2V, with the switch S4 being maintained in the turned-on state. The charging current at this time is designed not to exceed the above-mentioned small current or the background current. This may be achieved by pre-setting the condition of transfer from the period P A -to the period P C , such as the threshold value T V1 of the cell voltage, in such a manner that the charging current may be suppressed to a value smaller than the background current even although the switch S4 is perpetually maintained in the turned-on state. If, as a result of the constant voltage charging, the charging current I is found to be smaller than a pre-set current value, such as 150 mA, control proceeds to a step S45a to start e.g. a 30-minute timer. It is then checked at a step S45b whether or not the time period of 30 minutes has elapsed. After lapse of the 30-minute period, control proceeds to the next step S46. This 30-minute charging is termed a charging for assurance. That is, charging is continued for 30 minutes further even if the charging current becomes lower than 150 mA before the timer runs out. At the next step S46, the switch S4 is turned off and the voltage of each cell in the battery main unit 4 is checked, before control proceeds to a step S47. At the step S47, it is checked whether or not voltage differences between the cell voltages, that is voltage fluctuations, exceed 0.2 V. If the result of decision is NO, control proceeds to a step S48. If the result is YES, control proceeds to a step S49. At the step S48, after a stand-by period of, for example, 12 hours, control reverts to the step S41 which is the first step of the present background charging mode. This stand-by period corresponds to the period P D , while the time period during which control reverts to the step S41 to effect the charging corresponds to the supplementary charging period P E . This supplementary charging means the charging of eking out the spontaneous discharge. By automatically repeating the charging operation at an interval of 12 hours, an optimum charging voltage state may be maintained at all times. At a step S49, since the voltage difference between the cell voltages is 0.2V or higher, the cell exhibiting the maximum voltage is discharged. When the equal voltage is reached, control reverts to the step S41 to re-initiate the charging. This realizes the function of achieving full charging while maintaining the optimum voltage balance among the cells of the battery main unit 4 (cell balance). The quick charge mode S50, which is established when the AC (power source)/PC (external equipment) state is decided to be such that the AC (power source) is on and the PC (external equipment) is off (S18), is explained by referring to the flowchart of Fig.6 and the charging transition schema (charging process diagram) of Fig.7. The quick charging mode is such mode in which the battery main unit 4 of the battery pack 1 is charged when the external equipment 9 is turned off and the current from the power source circuit 10 not supplied to the external equipment 9. During this quick charging mode S50, the first stage period P A is the period during which the low current charging shown at a step S51 is performed. The low current charging is similar to the operation at the step S41 of the background charging mode, that is, the pre-set small current is caused to flow through the battery main unit 4 by changing over the switch S4 at a pre-set frequency under control by the micro-computer (CPU) 11. This small current may for example be one-eighth of the usual charging current or about 0.5 A, herein is equal to 0.5 A, while the switching frequency is on the order of, for example, 20 kHz. The operation of the low current charging at the step S51 of the quick charging mode S50 checks for possible unusualties, such as short-circuiting or open-circuiting, of the battery main unit 4. The charging state of the battery main unit 4 is checked for each cell, in effect each group of the parallel-connected cells, making up the battery main unit 4. In more detail, it is checked if, during the low current charging for a pre-set time period, for example, for one hour, each cell voltage reaches a pre-set voltage, such as 3.0 V, which is lower than the full-charge voltage of, for example, 4.2 V. Specifically, a one-hour timer is started at a step S52 and it is checked at the next step S53 if each cell voltage is larger than 3.0 V. If the result of decision is NO, control proceeds to a step S54 in order to determine whether or not the time of one hour has elapsed. If the result of the step S54 is NO, control reverts to the step S53 and, if the result is YES, control proceeds to a step S55 to issue an alarm that the battery is in trouble. It is when there is one or more cells in which the voltage of 3.0 V is not reached after low current charging for one hour that control proceeds to the step S55. The quick charging mode is terminated, if so required, after issuing the above-mentioned alarm to the effect that the battery is in trouble. When the result of decision at the step S53 is YES, that is if each cell voltage exceeds 0.3 V, control proceeds to a step S56 in order to carry out a constant current charging for a period P B as a second step of the quick charging mode S50. During this constant current charging, the switches S1 and S2 are turned on and the cells of the battery main unit 4, more specifically, each group of the parallel-connected cells, are charged at a pre-set current, for example, at the current of 4 A. At this time, the charging voltage of the battery main unit 4 is increased rapidly. When the voltage close to the full charging voltage, such as 8.2 V, is reached, the charging period proceeds to the next third period P C at a step S57 and the constant voltage charging is carried out. This constant voltage charging is carried out under substantially a constant voltage of from e.g. 8.2 V up to the full charging voltage of 8.4V ± 0.2V. If, as a result of the constant voltage charging, the charging current is found at a step S58 to be smaller than, for example, 150 mA,control proceeds to a step S59 to cause e.g. a 30-minute timer to be started. It is checked at a step S60 if the time period of 30 minutes has elapsed. If the result is YES, control proceeds to the next step S61. This 30-minute charging is termed a charging for assurance. That is, charging is continued for 30 minutes further even if the charging current becomes lower than 150 mA before the timer runs out. At the next step S61, the switches S1 and S2 are turned off and the cell voltages in the battery main unit 4 are checked before control proceeds to a step S62. At the step S62, it is checked whether or not voltage differences between the cell voltages, that is voltage fluctuations, exceed 0.2 V. If the result of decision is NO, control proceeds to a step S63. If the result is YES, control proceeds to a step S64. At the step S63, after a stand-by period of, for example, 12 hours, control reverts to the step S51 which is the first step of the present quick charging mode. This stand-by period corresponds to the period P D , while the time period during which control reverts to the step S51 to effect the charging corresponds to the supplementary charging period P E . This supplementary charging means the charging of eking out the spontaneous discharge. By automatically repeating the charging operation at an interval of 12 hours, an optimum charging voltage state may be maintained at all times. At a step S64, since the voltage difference between the cell voltages is 0.2V or higher, the cell exhibiting the maximum voltage is discharged. When the equal voltage is reached, control reverts to the step S51 to re-initiate the charging. This realizes the function of achieving full charging while maintaining the optimum voltage balance among the cells of the battery main unit 4 (cell balance). During the period of the stand-by state following the end of the background charging or quick charging, such as the period P D shown in Figs.5 and 7, the switch S2 for charging is turned on. Thus, even if the power source circuit 10 is abruptly turned off, the discharge current may be supplied to the external equipment 9 via the switch S2 and the diode D3 instantly, that is without relying on the decision given at the micro-computer 11, in order to prevent the occurrence of inconveniences caused by power down, such as data destruction. During the above-described charge/discharge operations, inclusive of the above-mentioned wait mode, the charging and discharging operations of the battery main unit 4 are perpetually monitored by the micro-computer 11 and the analog circuit 12. The information on the states within the battery pack 1 during the charging and discharging operations and the inquiries from the external equipment 9 are exchanged via the external control terminal 8 between the micro-computer 11 and the external equipment 9. The function of the exchange of the information (communication) is hereinafter explained. The communication via the external control terminal 8 of the battery pack 1 of the present embodiment is by the asynchronous full duplex communication system, with transmitted data having the error check function and being based on eight bits as a unit. The start and stop bits are each one bit and the X-ON/X-OFF functions operate as handshaking. The standard for the communication may be changed if required. Specific examples of data transmitted from the external equipment 9, such as a personal computer, to the micro-computer 11 in the battery pack 1 include the operational (OP) codes as shown in the following Table 1: In the OP codes, shown in Table 1, upper and lower four bits of each 8-bit word are represented by the hexadecimal notation. The contents of the communication are roughly classified into at least four kinds of the communication which are the intrinsic information inquiry, status inquiry, command and the declaration. Table 1 also gives examples of the OP codes for re-inquiry and acknowledgement. Among items of the intrinsic information inquiry, there are, for example, those OP codes used for inquiring into the model numbers (Model Nos) proper to the battery pack, version, cell configuration, type and the venders. Among items of the status inquiry, there are those OP codes used for inquiring into the maximum capacity (Full Capacity), current capacity (Get Capacity), the number of times of charging (Get Cycle Nos), the present capacity (Get Voltage) or the present current (Get Current) and those OP codes used for inquiring into the cell voltages (Get Volt. Cell 1 etc). Among items of the command, there are OP codes used for re-starting the micro-computer 11 or setting various threshold voltages for alarms concerning excessive discharge (Set Thresh 1 etc). Among items of the declaration, there are those OP codes used for setting the status of the battery pack 1 from the external equipment 9, such as sync and async. The above Table 1 shows specific examples of allocation of the OP codes to the portions of 256 8-bit words in which upper four bits are 1h to 4h, where h indicates that the number is hexadecimal, and also specific examples of allocation of the OP codes of re-inquiry (repeat) and acknowledgement to FEh and FFh. Any optional OP codes may also be allocated to the portions other than those given above. Specifically, the OP codes shown in Table 1 are those used by the user when communicating with the battery pack 1 via the external equipment 9. In addition, the OP codes for the maker to conduct adjustments and testing of the battery pack 1 may be allocated to the portions having the upper four bits of 8h to Ah. Specific examples of the data codes transmitted from the micro-computer 11 within the battery pack 1 to the external equipment 9 such as the personal computer responsive to the OP codes transmitted from outside into the battery pack 1 are shown in Table 2. Referring to Table 2, the words 00h to EFh, where h indicates that the number is the hexadecimal number, represent the corresponding values of 0 10 to 10 239 . For example, salutation on starting the micro-computer (Good Morning) is allocated to F0h, the notification that the three low-voltage threshold values have been reached (low battery 0, low battery 1 and low battery 2) are allocated to F1h, F2h and F3h, respectively, the notification that the battery is in trouble (Battery Failure) is allocated to F4h and the notification that the battery has reached its end (End of Battery) is allocated to F5h. These notifications are issued in synchronism with the inquiry timing from the external equipment 9. However, if the status of the micro-computer 11 is rendered asynchronous (Async) by the OP code for the declaration for asynchroneity (44h) having been transmitted from the external equipment 9, the above notifications may also be sent synchronously, that is without regard to the inquiries from the external equipment 9. The request for retransmission (Resend) and the notification that the transmission data is invalid or out of standard (Illegal) are allocated to F6h and F7h, respectively, while the acknowledgement that data from the external equipment 9 has been received (Acknowledge) is allocated to FFh. Among the above three voltage threshold values, Low Battery 0, Low Battery 1 and Low Battery 2 correspond to a voltage for which restart becomes impossible on power off, a voltage instructing the. transfer of the memory information of the external equipment 9 to a hard disc or the like and a voltage instructing the termination of transfer of the memory information of the external equipment 9 to the hard disc or the like, respectively. A specific example of the communication between the external equipment 9, such as a personal computer, and the micro-computer 11 in the battery pack 1, is hereinafter explained. If 10h is sent from the external equipment 9 (host side) as an OP code inquiring into the model number of the battery pack (Model No), the data code of OAh (10 10 ) is returned back from the micro-computer 11 of the battery pack 1. The external equipment 9 (host side), which has pre-registered therein the connectable battery pack model number, decides whether or not the returned battery pack number is connectible. If the returned battery pack number is found to be not connectible, control proceeds to the operation of indication of the battery failure or termination of the charge/discharge operation. In addition, various control operations are carried out by the external equipment 9 (host side) making inquiries or settings to the battery pack 1, and by the battery pack 1 sending responses thereto. Fig.8 shows, in a block circuit diagram, a circuit of the battery pack according to a second embodiment of the present invention, and its peripheral circuitry. Referring to Fig.8, an analog circuit Ana is equivalent to the analog circuit 12 of the embodiment shown in Fig.2, while FETs (field effect transistors) Fc and Fd are equivalent to the switches S1 and S2 of Fig.2 and a transistor Trs is equivalent to the switch S4 in Fig.2. The parts of Fig.8 equivalent to those shown in Fig.2 are indicated by the same reference numerals and the corresponding description is omitted or simplified for clarity. In the embodiment of Fig.8, the connection terminals of the battery pack 1 include, in addition to a negative terminal 6, a positive terminal 7 and an external connection terminal 8 (an output terminal 8 s1 and an input terminal 8 s2 in Fig.8), which are similar to those shown in Fig.2, a battery-in (Batt. IN) terminal 13, a PC status (status of the external equipment PC STS) input terminal 14 and an AC status (power source status, AC STS) input terminal 15. The battery-in (Batt. IN) terminal 13 is used on loading the battery pack 1 in order to supply the power from the power source to the circuitry in the battery pack 1 through the external connection equipment in addition to supplying the power through a power source line in the battery main unit 4. To this end, the battery-in (Batt. IN) terminals of the external equipment 9 and the power source circuit 10 are connected to the positive side power source lines within the external equipment 9 and the power source circuit 10, respectively. With this constitution, if the negative terminal 6 or the positive terminal 7 of the battery pack 1 are shorted from outside or are connected to the illicit power source terminals, the circuitry within the battery pack 1 is not actuated, so that no ill effects are produced. Within the external equipment 9, there are provided a main body of the external equipment PC, such as a personal computer, and a transistor T PC which is turned on when the main body of the external equipment PC is turned on. Within the power source circuit 10, there are provided an AC/DC converter ADC and a transistor T AC which is turned on when the AC/DC converter ADC is turned on. The PC status (status of the external equipment) information PC STS from the transistor T PC is sent to the micro-computer (CPU) 11 via a PC status terminal 14 in the battery pack 1, while the AC status (power source status) information AC STS from the transistor T AC is sent to the micro-computer (CPU) 11 via an AC status terminal 15 in the battery pack 1. Within the battery pack 1, a regulator (voltage stabilization circuit) Reg and the analog circuit Ana are connected to the battery-in (Batt. IN) terminal 13 for supplying the power thereto. The battery-in terminal 13 is also connected to various gates of the FETs Fc and Fd via a resistor and a switch control circuit 16. In this manner, when the battery pack is loaded in position, the FETs Fc and Fd are both turned on, so that the power may be supplied from the negative terminal of the battery main body 4 to the negative terminal 6 of the battery pack 1 even if the AC/DC converter ADC of the power source circuit 10 is turned off. The stabilized voltage output of the regulator Reg is supplied to the CPU 11. The analog circuit Ana detects the voltage for each cell of the battery main unit 4 and transmits the detected voltage to the CPU 11. The PC status (status of the external equipment PC STS) from the input terminal 14 and the AC status (status of the power source AC STS) from the input terminal 15 are transmitted to the CPU 11 where the AC PC status detection as in step S13 of the flowchart of Fig.3 is performed. Depending on the detected AC PC status, any one of the wait mode operation, discharge mode operation, background mode operation and the quick charge mode operation is executed. During execution of these modes, the CPU 11 executes calculations based upon the cell voltage values from the analog circuit Ana, charging/discharging current values from the operational amplifier OP1 and the temperature from a temperature sensor in order to find a voltage for a given current value as calculated from the current actual voltage value or find the data such as residual capacity or the maximum capacity. Besides, the CPU 11 transmits necessary data responsive to the inquiries made from the external equipment 9. It is noted that the voltage for a pre-set constant voltage is found as described above in view that the voltage for larger current values is low and, if directly used for condition discrimination, such voltage is likely to lead to mistaken decisions. Also, since the present detected voltage is changed with temperatures, it should be corrected in consideration of temperature characteristics. Besides, it may also be contemplated to correct the residual voltage or the maximum capacity depending on the current or the temperature. As described in connection with the steps S47 and S49 or S62 and S64 of the flowcharts of Figs.4 and 6, the balancing circuit Bal discharges the cell exhibiting the maximum voltage when the difference between the cell voltages exceeds 0.2 V in order to equalize the cell voltages and in order to establish the voltage balance from cell to cell. To this end, the CPU 11 discriminates the cell voltages as detected by the analog circuit Ana and controls the balancing circuit Bal when the voltage difference exceeds 0.2 V to turn on one of the discharge switches of the cells showing the maximum voltage. Each of the FETs Fc and Fd, which are charge/discharge control switches, has its gate voltage controlled by the switch control circuit 16 so as to be turned on or off. That is, the FET Fc has its gate connected to the collector of the transistor Tc, while the FET Fd has its gate connected to the collector of the transistor Td, and a control signal from the CPU 11 is supplied to the bases of these transistors Tc and Td. The transistor Td has its base connected to the collector of a transistor T AS , the base of which is connected to the AC status input terminal 15. Also, as described above, the battery-in terminal 13 is connected via a resistor to the gates of the FETs Fc and Fd, so that these FETs Fc and Fd are controlled responsive to the loading of the battery pack 1, that is responsive to the voltage application to the battery-in terminal 13. If, when the battery pack 1 is loaded in position, the transistors Tc and Td are turned off, the FETs Fc and Fd are both turned on, such that, if the transistors Tc and Td are turned on responsive to the control signal from the CPU 11, the FET connected to the transistor which has been turned on is turned off. It may also occur that, if both the transistors Tc and Td are turned on, both the FETs Fc and Fd are turned off. The transistor T AS within the switch control circuit 16 is turned on and off depending on the voltage at the AC status input terminal 15. That is, if the power source circuit 10 is turned on, the transistor T AC within the power source circuit 10 is turned on, so that the voltage at the terminal 15 is at a low (L) level. The transistor Td is turned on and off depending on the control signal from the CPU 11. Conversely, if the power source circuit 10 is turned off or disconnected, the voltage at the AC status input terminal 15 becomes high (H). Thus the transistor T AS is turned on so that the base of the transistor T d is forced to be at a low level and hence the FET Fd is turned on. That is, if, during the above-mentioned background charging mode, with the AC (power source) being turned on, the PC (external equipment) being turned off, the- FET Fd or the transistor Trs being turned on, and the electrical connection of the power source circuit 10 being interrupted, the power source of the external equipment 9, such as the personal computer 9, is interrupted temporarily, data destruction or the like inconvenience may be produced. In this consideration, the transistor T AS is directly turned on by an analog technique for instantaneously turning the FET Fd on without waiting for the decision as to the AC status to be given by the CPU 11. In other words, If the FET Fd is turned on based upon the decision given by the CPU 11, the time lag corresponding to the execution of the discrimination program is produced and a delay is caused in the power supply from the battery main unit 4 to the external equipment 9, so that there is the risk of power supply interruption for a short period of time. With the arrangement of Fig.8, the FET Fd is turned on simultaneously with change in the AC status, that is with the minimum delay on the order of the transistor switching time, for supplying the power instantly from the battery main unit 4 to the external equipment 9 in order to prevent data destruction or the like inconvenience from its occurrence. Although the FETs Fc and Fd, which are switches for controlling the charging/discharging, are connected in the above embodiment to the negative side power source line, they may also be connected to the positive side power source line. The arrangement of the switch controlling circuit 16 may be configured in a manner different from that shown in the drawings. Alternatively, the switching control circuit 16 may be omitted so that the FETs Fc and Fd may be turned on and off based upon a control signal supplied from the CPU 11. In addition, the negative terminal of the CPU 11 may also be connected to the negative terminal of the battery main unit 4. It will be seen from above that the present invention provides a battery pack in which the control circuit provided heretofore in the charger or the external equipment is provided within the battery pack itself for simplifying the structure of the charger or the external equipment in order to reduce the size and the cost of the battery pack. As regards the operation of the control circuit, the charging and discharging operations are performed based upon the charging transition diagram or the charging process diagram, so that the charging and discharging operations may be adapted to the characteristics of the secondary battery incorporated in the battery pack, with the result that the charging voltage of each cell may be perpetually maintained in a normal condition. In addition, since the charging and discharging states of each secondary cell may be detected, the state of each cell may be detected promptly for promptly detecting the unbalanced state, excessively charged state or the excessively discharged state. Furthermore, by providing the function of detecting the input voltage from the charger, it becomes possible to detect the voltage other than the charging voltage of the battery pack in order to prevent the destruction of the cells making up the secondary battery of the battery pack from occurring.

Claims: A battery pack (1) adapted to be connected, in use, to a power source circuit (10) and to an external equipment (9), said external equipment (9) being connected to said power source circuit (10), said battery pack (1) comprising a plurality of cells (5) and means for controlling the charging current of said battery pack (1), the battery pack being characterised in that it comprises integral charging control means (11,12) comprising: means for detecting the on/off state of said external equipment (9) when connected thereto in use, and said means for controlling the charging current of said battery pack (1), the charging current control means being adapted such that, when connected to the external equipment (9) and to the power source circuit (10) in use, said external equipment and power source circuit being connected together, the battery pack draws power at a first level, equal to the total supply power from said power source circuit (10), when the detecting means detects the off state of the external equipment and, whenever the detecting means detects the on state of the external equipment, the power drawn by the battery pack is limited to a second level, less than the first level, said second level being equal to the total supply power from said power source circuit (10) less the maximum power consumed by said external equipment (9). The battery pack as claimed in claim 1, and comprising switch means (S4) controlled by said controlling means (11,12) during a first charging phase such that when, in use, said detecting means detects the on state of the external equipment said switch means (S4) intermittently alters the current fed from said power source circuit (10) to the cells (5). The battery pack as claimed in claim 2, wherein in use during a second charging phase (S43), when said detecting means detects the on state of the connected external equipment (9), said controlling means (11,12) controls said switching means (S4) so as not to change state. The battery pack as claimed in any previous claim, and comprising means for detecting voltage differences among the cells (5) at termination of charging and for causing the cell having the maximum voltage to be discharged if the voltage differences exceed a pre-set threshold, whereby to establish an equilibrium among the cell voltages. The battery pack as claimed in any previous claim, and comprising switch means (S2/S4) selectively inhibiting the discharge of the cells, said switch means being adapted to change state at termination of charging such as to enable discharge after charging has terminated. The battery pack as claimed in any previous claim, and comprising switch means (Fd) selectively inhibiting the discharge of the cells (5) and means (15) for detecting the voltage state of the power source circuit (10) connected to the battery pack (1) in use, said switch means (Fd) being adapted to enable discharge of the cells (5) when the detecting means detects the off state of the connected power source circuit (10) during charging of the battery pack. The battery pack as claimed in any previous claim, and further comprising a battery loading terminal (13) to which a voltage is applied when the battery pack (1) is connected to said external equipment (9), the operation/non-operation of an internal circuit of said battery pack (1) being changed over dependent upon the voltage at said battery loading terminal (13).

Inventors: EGUCHI YASUHITO, HIRATSUKA MASARU, MURAYAMA SHIGEKI, NAGAI TAMIJI, EGUCHI, YASUHITO, HIRATSUKA, MASARU, MURAYAMA, SHIGEKI, NAGAI, TAMIJI
Applicants: SONY CORP, SONY CORPORATION
Application year: 1993
Main classification: H01M10
IPC codes: H02J7, H01M10, G01R31