Abstract:
An MCU integration battery charger/discharger, and more particularly a series circuit for detecting the battery charging process and for conducting a series combined discharging process on the same battery charger. The present invention provides an MCU and a charging/discharging switch set to switch to the “separate detection charging or series-connected and combined discharging mode,” and a discharging button enables the stored electric energy be released for use by the series-connected separate detection charging circuits. Moreover, the charger can deliver DC power via tan output port to the 3C electronic products for the charging purpose. Meanwhile, the problems of conventional AA or AAA battery chargers and lithium batteries designed as a portable power are overcome, thereby enhancing the effect and safety of the charger.

Description:
BACKGROUND OF THE INVENTION 
       [0001]    (a) Field of the Invention 
         [0002]    The present invention relates to an MCU integration battery charger/discharger, and more particularly to a charger designed for charging, discharging and supplying electric power to an AA or AAA rechargeable battery, and an MCU and a charging/discharging switch set are provided to integrate a circuit structure with “a separate detection charging circuit and a series-connected and combined discharging circuit.” 
         [0003]    (b) Description of the Related Art 
         [0004]    As portable 3C electronic products become increasingly more popular, the demand for batteries becomes increasingly higher as well. A disposable battery (or a primary battery) is discarded after use, not only increasing the cost, but also causing environmental pollutions. Therefore, a rechargeable battery (or a secondary battery) has a higher consumption than that of the primary battery since the rechargeable battery can save costs and reduce contaminations of waste batteries. 
         [0005]    At present, the rechargeable battery includes lithium-ion (Li-ion) battery, nickel metal hydride (Ni-MH) battery, nickel cadmium (Ni—Cd) battery and the rechargeable alkaline battery, and these batteries are also known as secondary batteries. Recently, a lithium battery with an organic electrolytic unit is used extensively in portable electronic devices due to its features of high-capacity density, low temperature, and stable storage. 
         [0006]    However, the lithium battery still has the following drawbacks in its use: 
         [0007]    1. The lithium battery usually comes with a different specification for each of the electronic products. Even for the electronic products of the same brand, such as the Nokia mobile phones, there are tens of models of the lithium batteries, and thus causing tremendous inconvenience and trouble to users. 
         [0008]    2. The lithium battery contains an electrolytic unit, and there is a safety concern such as possible explosion occurred when a current is passed. 
         [0009]    3. Most of the present portable powers use a built-in lithium battery as an energy storage unit, but it generally does not come with a standard size for general electronic consumer products. As a result, the fully charged battery cannot be used alone when it is removed. Even though it can be removed, there are so many specifications of the lithium batteries, and such application is impractical. 
         [0010]    Compared with the lithium battery, although the secondary battery such as the nickel metal hydride (Ni-MH), nickel cadmium (Ni—Cd) or alkaline rechargeable secondary battery has an energy storage density less than that of the lithium battery, yet its widely used AA or AAA battery sets an industrial specification, which is the main reason of its popularity up to now. However, its use still has the following insufficiencies: 
         [0011]    1. As shown in  FIG. 1 , which illustrates a charging circuit of a conventional parallel charger, the batteries B 1 ˜B 4  connected in parallel are charged by the charging circuit. The advantage lies in that each of the batteries obtains a roughly the same charging voltage. The user can be free of the problem with batteries that are overcharged or undercharged. However, the disadvantage of the parallel charging mode is that the batteries can&#39;t be rapidly charged. Each of the batteries has only 1.2˜1.5V. When they are used/discharged for the 3C electronic products, they have to be connected in series for obtaining the DC voltage of (1.2V˜1.5V)×4=4.8V˜6V. It is complicated to discharge the parallel-connected batteries in a series way. Moreover, the problems such as power consumption, voltage difference and overheat have to be overcome. 
         [0012]    2. As shown in  FIG. 2 , which illustrates a charging circuit of a conventional series charger, the batteries B 1 ˜B 4  connected in series are charged by the same charging circuit. The advantage is that the structure is simple and the batteries can be rapidly charged. However, this application may have drawbacks such as overheat, leak and undercharge. 
         [0013]    3. In order to improve the above-mentioned charging circuit, the applicant of the invention disclosed a solution of U.S. Pat. No. 6,784,638 “Series Charger with Separate Detection of Batteries” with which a plurality of batteries connected in series can be charged. In addition, a control IC and a separate detection circuit are employed to conduct the detection control of each battery. In this way, the problems of the series charger and the parallel charger may be eliminated. By use of this series charger with separate detection of batteries, the batteries each can be charged and detected if they are fully charged. However, it is not possible as well to discharge the batteries in a series mode for the 3C electronic products. This requires further improvements. 
       SUMMARY OF THE INVENTION 
       [0014]    It is a primary object of the present invention to provide an MCU battery integration charger/discharger, and more particularly a series circuit for detecting the battery charging process and for conducting a series-connected and combined discharging process on the same battery charger. Whereby, the stored electric energy can be released for use by the series-connected separate detection charging circuits. Moreover, the charger can deliver DC power via the interface to the 3C electronic products for the charging purpose. Meanwhile, the problems of conventional AA or AAA battery chargers and lithium batteries designed as a portable power are overcome, thereby enhancing the effect and safety of the charger. 
         [0015]    Another object of the present invention is to provide an MCU integration battery charger/discharger, serving as a charger when a battery is charged in an independent separate charging mode and removed from the charger for the use by an electronic product, or serving as a discharger when a charging/discharging switch set is switched to a series-connected and combined discharging mode, and a stabilized DC power is outputted for charging a portable electronic product, or serving as an adaptor by supplying a DC charging power when there is no battery placed in the charger or the power of an electronic device is low. In addition, the battery charger becomes a portable power when is carried Out, such that when the power of an electronic device is low, the charger can serve as a backup secondary battery. Even one alkaline primary battery can be placed in the battery charger for the discharging, and thus the battery charger also serves as an emergency power supply. 
         [0016]    In order to achieve the above-mentioned objects, the invention includes: 
         [0017]    a casing, containing a charging component, and having a charging base disposed on a surface of the casing, a plurality of charging compartments formed in the charging base for placing a plurality of AA or AAA batteries respectively, and an end of the charging compartment being a positive terminal, and the other end of the charging compartment being a negative terminal, thereby creating a charging circuit, and the casing having a plug connectible to an external power source; 
         [0018]    a charging circuit, including an exchange power source for converting an AC or DC power to a DC power and supplying a reference voltage source to a charging control unit, and a current control unit and a voltage control unit being interposed between the charging control unit and the exchange power source, thereby creating a charging circuit for charging the batteries in the charging base; 
         [0019]    each charging circuit of the batteries within the charging base being connected in parallel with a switch element, and an anti-adverse-current element being interposed between the switch element and the positive terminal of the battery; 
         [0020]    a charging/discharging switch set provided for switching the charging circuits into the charging mode or the discharging mode, and the charging/discharging switch set having a number n−1 of switching units (SW 1 ˜SW n-1 ) corresponding to the charging circuits n in the charging base such that a switching unit is respectively interposed between two charging circuits, and wherein the last switching unit (SWn) of the charging/discharging switch set is an independent charging/discharging control switch, and wherein each of the switching units (SW 1 ˜SW n ) has three contacts a, b, c, and wherein the contact a of the switching units (SW 1 ˜SW n-1 ) is electrically connected to the switch element of the corresponding charging circuits and to the front end of the anti-adverse-current element of the next charging circuits, and wherein the contact b is electrically connected to the positive terminal of the battery of the next charging circuit, and wherein the contact c is electrically connected to the negative terminal of the battery of the corresponding charging circuit, and wherein the contact a of the switching unit (SW n ) serving as the charging/discharging control switch is not only a ground connection but a charging control terminal, and the contact b is a discharging control terminal connecting to a power control terminal (V DD ), and the contact c is connected to the charging control unit by a first connecting wire; 
         [0021]    a voltage regulator circuit, being coupled to a positive terminal of the first charging circuit/compartment in the charging base for boosting or stepping down the series-connected and combined discharging current of each battery to a predetermined DC voltage; 
         [0022]    an output port, coupled to an output terminal of the voltage regulator circuit; 
         [0023]    a feedback current, being fed back discharging current of a part of the battery from the output terminal of the charging base to the reference voltage source and the charging control unit by a second connecting wire while the battery is discharging; and 
         [0024]    a discharging button, exposed from a surface of the casing, and electrically connected to the charging control unit while the charging control unit is connected to the voltage regulator circuit by a third connecting wire for controlling the discharging current outputting the voltage regulator circuit to the output port; 
         [0025]    whereby, when the battery is set in the charging base, the charging/discharging control switch is in a LOW voltage level, and the charging control unit controls n sets of switching units (SW 1 ˜SW n ) to synchronously turn each contact c and each contact a ON, such that each battery of the charging circuit is in a separate detection charging mode, and when the each battery is fully charged, the charging/discharging control switch is in a HIGH voltage level, and the charging control unit controls n sets of switching units (SW 1 ˜SW n ) to synchronously turn each contact c and each contact b ON, such that each battery of the charging circuit is in a series-connected and combined synchronous discharging mode, and the discharging button is provided for controlling the ON/OFF of the discharging current from the voltage regulator circuit. 
         [0026]    According to the above-mentioned technical features, the charging base has n sets of charging circuits, and n is equal to 2, 4 or 8, and the n−1 sets of the switching units (SW 1 ˜SW n-1 ) corresponding to the charging/discharging switch set is equal to 1 set, 3 sets or 7 sets, and the 1 set, 3 sets or 7 sets plus the last n th  set of independent switching unit (SW n ) form the charging/discharging control switch. 
         [0027]    According to the above-mentioned technical features, the charging/discharging switch set is constructed as an electronic type switch which is comprised of a MOSFET or a logic circuit. 
         [0028]    According to the above-mentioned technical features, the exchange power source is externally coupled to a DC To DC power supply for supplying the power to the output port. 
         [0029]    According to the above-mentioned technical features, a current detector circuit is composed between the current detection component and the current control unit, and the current detector circuit is electrically connected to the current control unit. 
         [0030]    According to the above-mentioned technical features, a discharging (enable) switch is built in the voltage regulator switch. 
         [0031]    According to the forgoing techniques, the present invention is provided and integrated with the MCU and the charging/discharging switch set for constituting a circuit structure featuring an “separate detection charging and series-connected and combined discharging mode” without increasing the volume of the charger so as to overcome the problems of conventional chargers for nickel metal hydride batteries and nickel cadmium batteries and the problems of lithium batteries designed as a portable power, and to enhance the effect and safety of the charger. 
     
    
     
       BRIEF DESCRIPTION OF THE FIGURES 
         [0032]      FIG. 1  is a charging circuit of a conventional parallel charger; 
           [0033]      FIG. 2  is a charging circuit of a conventional series charger; 
           [0034]      FIG. 3  is a perspective view of the present invention; 
           [0035]      FIG. 4  is a schematic circuit diagram showing series-connected charging in accordance with the present invention; 
           [0036]      FIG. 5A  is a schematic circuit diagram I of the present invention in a separate detection mode; 
           [0037]      FIG. 5B  is a schematic circuit diagram II of the present invention in a separate detection mode; 
           [0038]      FIG. 5C  is a schematic circuit diagram III of the present invention in a separate detection mode; 
           [0039]      FIG. 5D  is a schematic circuit diagram IV of the present invention in a separate detection mode; 
           [0040]      FIG. 6  is a schematic circuit diagram showing four series-connected discharging circuits in accordance with the present invention; 
           [0041]      FIG. 7  is a schematic circuit diagram showing battery discharging feedback current in accordance with the present invention; 
           [0042]      FIG. 8  is a schematic circuit diagram showing the power supply current in accordance with the present invention; 
           [0043]      FIG. 9  is a schematic circuit diagram showing both charging current and power supply current in accordance with the present invention; 
           [0044]      FIG. 10  is a schematic circuit diagram showing parallel-connected charging in accordance with the present invention; 
           [0045]      FIG. 11  is a schematic view of an application of the present invention, showing a charger connected to an external power source; 
           [0046]      FIG. 12  is a schematic view of an application as a charger in accordance with the present invention; 
           [0047]      FIG. 13  is a schematic view of an application as a discharger in accordance with the present invention; 
           [0048]      FIG. 14  is a schematic view of an application as an adaptor in accordance with the present invention; 
           [0049]      FIG. 15  is a schematic view of an application as an adaptor and a charger concurrently in accordance with the present invention; and 
           [0050]      FIG. 16  is a schematic view of an application as a portable power in accordance with the present invention. 
       
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT 
       [0051]    With reference to  FIG. 3  for a perspective view of a battery charger  10  of the present invention, the charger  10  comprises: a casing  11 , for containing and covering charging components (such as a switching power supply and a charging circuit), and a charging base  12  disposed on a surface of the casing  11  and having a plurality of charging compartments provided for placing a plurality of AA or AAA batteries B 1 ˜B 4  therein. In this preferred embodiment, there are four charging compartments C 1 , C 2 , C 3 , C 4 , but the invention is not limited to such quantity only. In a small charger, there are two charging compartments. Four charging compartments are used as an example for the description of a preferred embodiment and the illustration of its related drawings as follows. The casing  11  further comprises a plug  13  connectible to an external power source  80 , wherein the plug  13  of this preferred embodiment is foldable and disposed at the bottom of the casing  11 . Of course, an external power cable  131  or a replaceable plug  13  can be used for connecting the external power source  80  instead. 
         [0052]    The charging base  12  as shown in  FIG. 3  may further have an external cover. In addition, the casing  10  includes a plurality of display units  221  which may be LEDs for displaying a charging status of each charging compartment C 1 ˜C 4 . Each charging compartment has a positive terminal  12   a  and a corresponding negative terminal  12   b.    
         [0053]    With reference to  FIG. 4  for a schematic circuit diagram of a preferred embodiment of the present invention, most of the components in this circuit structure are contained in the casing  11 , and only a small number of components are exposed from a surface of the casing  11 , and the circuit structure comprises the following elements: 
         [0054]    A charging circuit  14  includes an exchange power source  20  for converting an AC or DC power to a DC power and supplying a reference voltage source  21  to a charging control unit  22 , thereby creating the charging circuit  14  for charging the batteries B 1 ˜B 4  in the charging base  12 . The charging control unit  22  is an MCU of a microcomputer, and each component of the charging circuit  14  is operated by executing a predetermined sequence of procedures. 
         [0055]    A current control unit  23  and a voltage control unit  24  are interposed between the input terminal of the charging control unit  22  and the exchange input power source  20 , and a switch  29  is installed between them. The charging circuit  14  composed of the foregoing components is a prior art, and thus will not be described here. 
         [0056]    A current detection component  28  is coupled to a negative terminal  12   b  of the charging base  12 , and the current detection component  28  can be a resistor R and coupled to the current and voltage control units  23 ,  24  for detecting current by the charging of the charging base  12  and using it as a voltage feedback current control to make adjustments. 
         [0057]    As shown in  FIG. 3 , the charging compartments C 1 ˜C 4  of the charging base  12  are connected in parallel. As shown in  FIGS. 4 to 9 , the batteries B 1 ˜B 4  in the charging base  12  are connected in series. However, the batteries B 1 ˜B 4  as shown in  FIG. 10  are connected in parallel. Back to the  FIG. 4 , the positive and negative terminals of each charging compartment create a charging circuit. There are four charging circuits  121 ˜ 124  provided in this embodiment. Each of the charging circuits  121 ˜ 124  is connected in parallel with a switch element  25  such as MOSFET, but should not be limited thereto. In other words, four MOSFETs Q 1 ˜Q 4  are provided in this embodiment. An anti-adverse-current element  26  is interposed between the switch element  25  and the positive terminal of the battery. The anti-adverse-current element  26  can be a diode or MOSFET. According to the embodiment, four diodes D 1 ˜D 4  serve as the anti-adverse-current element  26 . 
         [0058]    The charging control unit  22  separately applies a terminal voltage to the positive terminals of the batteries of the charging circuits  121 ˜ 124  for the purpose of detection. As shown in  FIG. 4 , the point to detect the terminal voltage is marked with  27 . The detection points  27  are electrically connected to the charging control unit  22  such that the switch elements  25  connected in parallel with the charging circuits  121 ˜ 124  are switched in the ON-position when the batteries B 1 ˜B 4  are fully charged. In this way, the charging current I, can be used for a further (or downward) charging process. As a result, each batteries B 1 ˜B 4  in series can be separately detected by the invention if they are fully charged. 
         [0059]    The series charging circuit in accordance with the invention differs from the prior art in that the batteries each can be separately detected if they are fully charged when they are charged in a series-connected state and that they are changed into the discharge mode when they are fully charged. In order to achieve these effects, a circuit arrangement specially designed is required. According to the present invention, an MCU and a charging/discharging switch set  30  are employed to achieve the expected effect of series combination discharge. In other words, the negative terminal of the battery B 1  of the first charging circuit  121  in accordance with the present invention is not directly connected to the positive terminal of the battery B 2  of the second charging circuit  122 . This also applies to the third and fourth charging circuits  123 ,  124 . According to the invention, the charging/discharging switch set  30  has to be interposed between the charging circuits  121 ˜ 124  for conducting different switching functions. 
         [0060]    The charging/discharging switch set  30  in accordance with the present invention is constructed as an electronic type switch which can be a MOSFET or logic circuit while the charging control unit  22  is used to control the ON/OFF state of the charging/discharging switch set  30 . The contacts a, b, c of the switching units SW 1 ˜SW 4  of the charging/discharging switch set  30  have the same connection way and the same synchronous switching control way. That is, the last switching unit SW 4  is used as a charging/discharging control switch  31 . 
         [0061]      FIG. 4  illustrates that the charging/discharging switch set  30  has four switching units SW 1 ˜SW n , n=4. The number n of the switching units SW 1 ˜SW 4  depends on the charging circuits  121 ˜ 124 . For example, there are n switching units SW 1 ˜SW 4  correspondingly when n charging circuits  121 ˜ 124  are provided. Moreover, the n- th  switching unit SWn is the charging/discharging control switch  31 . As a result, more than four charging circuits can be provided in the invention. That is, there can be eight charging circuits. 
         [0062]    The charging/discharging switch set  30  is internally provided with a number n−1 of switching units SW 1 ˜SW n-1  corresponding to the charging circuits  121 ˜ 12   n , n=4 such that a switching unit is respectively interposed between two adjacent charging circuits, for example between the first and second charging circuits  121 ˜ 122  while the last switching unit SW n  of the charging/discharging switch set  30  is an independent charging/discharging control switch  31 . Moreover, each of the switching units SW 1 ˜SW n  has three contacts a, b, c. The contact a of the switching units SW 1 ˜SW n-1  is electrically connected to the switch elements Q 1 ˜Q 3  of the charging circuits  121 ˜ 123  and the front end of the anti-adverse-current element D 2 ˜D 4  of the next charging circuits. The contact b of the switching units SW 1 ˜SW n-1  is connected to the positive terminal of the battery of the next charging circuit. For example, the switching unit SW 1  is connected to the positive terminal of the battery B 2 , and the switching unit SW 3  is connected to the positive terminal of the battery B 4 . In addition, the contact c of the switching units SW 1 ˜SW n-1  is electrically connected to the negative terminal of the battery of the corresponding charging circuit  121 ˜ 123 . The negative terminal of the last charging circuit  124  is grounded. A preferred embodiment of the present invention may have n sets of charging circuits in the charging base, wherein n is equal to 2, 4 or 8, and n−1 sets of switching units SW 1 ˜SW n-1  corresponding to the charging/discharging switch set  30  include 1 set, 3 sets or 7 sets, and the last n th  set of independent switching unit SW n  may be added to the 1 set, 3 sets or 7 sets to serve as the charging/discharging control switch  31 . 
         [0063]    A feedback current I b  is a discharging current I d  of a part of the batteries for feeding back from the output terminal of the charging base  12  to the reference voltage source  21  and the charging control unit  22  by a second connecting wire  41  while the battery is discharging. 
         [0064]    A discharging button  40  is exposed from a surface of the casing  11  and electrically connected to the charging control unit  22  while the charging control unit  22  is connected to a voltage regulator circuit  50  by a third connecting wire  42  for controlling the discharging current I d  outputting from the voltage regulator circuit  50  to the output port  60 . In this preferred embodiment, the voltage regulator circuit  50  is a synchronous buck/boost DC/DC converter, and the buck/boost IC technology of this sort has been used extensively, and can provide a stable and accurate voltage output, and its internal circuit is a prior art and thus will not be described in details here. 
         [0065]    Since four pieces of nickel metal hydride/cadmium secondary batteries B 1 ˜B 4  connected in series can only provide a voltage of 1.2Vx4=4.8V which is still below the standard USB power output of DC 5.0V, therefore, it is necessary to step up the voltage. Since the voltage of the alkaline primary battery is 1.5V, and four of them provide a total voltage of 6V, therefore the discharging current is different from the secondary battery and requires stepping down the voltage from 6V to 5V. On the other hand, the present invention adopts the foregoing voltage regulator circuit  50  that can discharge, step up, step down or regulate the voltage for different batteries, so as to assure that the electric power supply from the USB output port  60  has a stable and accurate voltage. 
         [0066]    When the batteries B 1 ˜B n  are set in the charging base  12 , the charging/discharging control switch  31  is in a LOW voltage level, and the charging control unit  22  controls n sets of switching units SW 1 ˜SW n  to synchronously turn each of the contacts c and each of the contacts a ON, such that the battery B 1 ˜B n  on each charging circuit  121 ˜ 124  is in an independent separate charging mode. When the batteries B 1 ˜B n  are fully charged, the charging/discharging control switch  31  is in a HIGH voltage level, and the charging control unit  22  controls n sets of switching units SW 1 ˜SW n  to synchronously turn each of the contacts C and each of the discharging contacts b ON, such that the battery B 1 ˜Bn on each charging circuit  121 ˜ 124  is in a series-connected and combined discharging mode. The discharging button  40  controls the ON/OFF state of the discharging current I d  by voltage regulator circuit  50 , 
         [0067]      FIGS. 5A˜5D  illustrate the series charging arrangement in accordance with the present invention.  FIG. 5A  shows the circuit to charge four batteries B 1 ˜B 4  in the charging base  12  by the charging current Ic. Q 1 ˜Q 4  of the switch element  25  are all switched in the OFF state. Therefore, the flow direction of the charging current Ic is shown in the drawing. The charging current Ic flows through each of the series batteries B 1 ˜B 4 . When the battery B 1  is fully charged, the charging control unit  22  detects the charging voltage at the detection point  27  as LOW such that the first switch element Q 1  is switched ON. At this time, the charging current Ic is shown in  FIG. 5B . The battery B 1  won&#39;t be charged by the charging current Ic again. The charging current Ic flows downward for a further charging process. When the battery B 2  is fully charged, the switch element Q 2  of the charging circuits  122  is switched ON (see  FIG. 5C ), and so on. When all of the batteries B 1 ˜B 4  are fully charged (see  FIG. 5D ), all of the switch elements Q 1 ˜Q 4  are switched ON. Meanwhile, the charging current Ic can be adjusted by the current detection component  28  for slightly charging all of the batteries. The batteries B 1 ˜B 4  of the present invention are connected in series for charging but each of the batteries B 1 ˜B 4  has a separate detection circuit. Only the separate detection way for the charged batteries can make sure if each of the batteries is really charged in a full capacity. Meanwhile, an excessive charging or a non-full charging can be prevented. Moreover, the series charging with separate detection ensures a better charging efficiency. Therefore, the invention is a continuation of the feature of the previous invention. That is, the charging circuits  121 ˜ 424  are instantly and synchronously combined in a discharging circuit by the charging/discharging switch set  30  when the batteries B 1 ˜B 4  in the charging base  12  are fully charged. In this way, the stored electric energy can be effectively released for use. 
         [0068]    Based on the technical features disclosed, when the batteries B 1 ˜B 4  are set in the charging base  12 , the charging/discharging control switch  31  is in a LOW voltage level, and the charging control unit  22  turns each of the contacts a ON. At the same time, the charging/discharging switch set  30  switches to a charging mode, such that each of the batteries B 1 ˜B 4  is synchronously charged. When the batteries B 1 ˜B 4  are fully charged, the charging/discharging control switch  31  is in a HIGH voltage level, and the charging control unit  22  turns each of the contacts b ON. At the same time, the charging/discharging switch set  30  switches to a discharging mode, such that each of the batteries B 1 ˜B 4  is in a series-connected and combined discharging mode as shown in  FIG. 6 . 
         [0069]    To charge the electronic devices, then press the discharging button  40 . At this time, the discharging control unit  22  controls a discharging (enable) switch  51  built in the voltage regulator circuit  50  to be in the ON state, such that the discharging current I d  is output to the output port  60  for the use of the external electronic devices. 
         [0070]    The MCU integrated series-connected charger/discharger in accordance with the aforesaid preferred embodiment is not a limitation. That is, the structure of the MCU integration charger/discharger in accordance with the present invention can be a parallel-connected charger as shown in the  FIG. 10 . However, they have the same control way and the same discharging mode, and thus will not be described here. 
         [0071]    With the foregoing structures as shown in  FIGS. 11 and 12 , when the batteries B 1 ˜B 4  are set in the charging base  12 , the charging/discharging control switch  31  is in a LOW voltage level, and the charging control unit  22  controls n sets of switching units SW 1 ˜SW n  to synchronously turn each of the contacts c and each of the contacts a ON. With reference to  FIGS. 5A to 5B , the batteries B 1 ˜B 4  are charged by the charging current I c , and each of the batteries B 1 ˜B 4  in the charging base  12  is an independent separate charging circuit. When the batteries B 1 ˜B 4  are fully charged, the charging/discharging control switch  31  is in a HIGH voltage level, and the charging control unit  22  controls n sets of switching units SW 1 ˜SW n  to synchronously turn each of the contacts c and each of the contacts b ON, such that each of the batteries B 1 ˜B 4  in the charging base  12  stops charging. At the same time, the fully-charged batteries B 1 ˜B 4  are formed as a battery charger  10 A for the use of the electronic devices. 
         [0072]    With reference to  FIGS. 6 and 13 , when the discharging button  40  is switched ON, the charging control unit  22  controls the discharging switch  51  built in the voltage regulator circuit  50  to be in the ON state by the third connecting wire  42 , such that each fully-charged battery B 1 ˜B 4  of the charging base  12  is connected in series. At the same time, the discharging current I d  outputting to the USB output port  60  after regulated, and provided DC power for charging electronic devices, so as to form a discharger  10 B. 
         [0073]    With reference to  FIG. 7 , when each batteries B 1 ˜B 4  in the charging base  12  is fully charged and not yet discharged, the discharging current I d  of a part of the batteries becomes feedback current I b  feeding back to the reference voltage source  21  and the charging control unit  22  by the second connecting wire  41  to supply the basic electric power. 
         [0074]    With reference to  FIGS. 8 and 14 , the exchange power source  20  is externally coupled to a DC To DC power supply  70 . The DC To DC power supply  70  is connected to the USB output port  60  for supplying power supply current I p , such that the charger becomes an adaptor  10 C which supplies DC charging power source when the battery in the charging base  12  is low or there is no battery in the charging base  12 . 
         [0075]    With reference to  FIGS. 9 and 15 , the present invention can provide not only a power supply current I p  to becomes the adaptor  10 C but also provide a charging current I c  for charging the batteries B 1 ˜B 1  in the charging base  12  at the same time, so as to become an adaptor/charger  10 D without affecting the power supply of the electronic product during the charging process. 
         [0076]    With reference to  FIG. 16 , the required electric power supplied from the USB output port  60  can be outputted to a portable electronic product  90  through a transmission cable  61 , so as to form a portable power or an emergency power supply  10 E. 
         [0077]    In summation, the present invention uses an MCU and a charging/discharging switch set to integrate the features of an “independent separate charging circuit” and a “series-connected and combined discharging circuit” to synchronously, control the ON/OFF of the charging and discharging circuits in the same charging base. The invention not only provides a convenient operation, but also overcomes the shortcomings of the conventional charger and achieves the effects of enhancing the charging and discharging performance, and integrating several functions into the same charger to improve its practicability. 
         [0078]    Many changes and modifications in the above-described embodiments of the invention can, of course, be carried out without departing from the scope thereof. Accordingly, to promote the progress in science and the useful arts, the invention is disclosed and is intended to be limited only by the scope of the appended claims.