Charging and discharging circuit and portable equipment
By adopting a shared current sampling point and a voltage divider network in a battery charge and discharge management system, the problems of high hardware cost and large resource occupation in the existing technology are solved, and low-cost charge and discharge current detection is achieved.
Patent Information
- Application Number
- CN202422886510.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2034-11-26
AI Technical Summary
Existing battery charge and discharge management systems require two independent current sampling circuits, which increases hardware costs and MCU resource usage, and makes it difficult to accurately detect charging and discharging currents.
A common current sampling point is adopted, and the bias voltage and voltage divider network are combined to detect the charging and discharging currents through a sampling circuit. The positive value output of the voltage divider network is used to represent the voltage for current calculation.
It significantly reduces hardware costs, reduces the number of sampling resistors and operational amplifier components, saves MCU sampling I/O ports, and achieves accurate detection of charging and discharging currents.
Smart Images

Figure CN223472071U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of power supply circuit, and particularly relates to a charging and discharging circuit and a portable device. BACKGROUND
[0002] In modern electronic devices, battery charging and discharging management is an important component. Many portable devices, such as portable air pumps, power banks, etc., not only need to charge the battery through an external power supply, but also need to discharge the external device through the battery. The existing battery charging and discharging management system usually adopts two independent current sampling circuits to detect the charging current and the discharging current respectively. Two independent current sampling circuits are needed, and each circuit needs sampling resistors, operational amplifiers and other elements, which increases the overall hardware cost. Each current sampling circuit needs a separate MCU sampling I / O port, which occupies more MCU resources SUMMARY
[0003] In view of the above-mentioned shortcomings of the prior art, the purpose of the present disclosure is to provide a charging and discharging circuit and a portable device to solve the problems in the related art.
[0004] The first aspect of the present disclosure provides a charging and discharging circuit, comprising:
[0005] a charging loop connecting a charging interface and a battery; and
[0006] a discharging loop connecting the battery and a discharging interface;
[0007] a negative electrode of the battery is grounded;
[0008] negative electrodes of the charging interface and the discharging interface are connected to a common voltage point; the common voltage point is grounded through a first resistor;
[0009] a sampling circuit, comprising a voltage dividing network connected with a bias voltage at one end, the other end of the voltage dividing network being coupled to the common voltage point, an output end derived from a voltage dividing point of the voltage dividing network outputting a representation voltage of a current sampling voltage associated with the common voltage point;
[0010] wherein the representation voltage is positive, and the representation voltage and the bias voltage are used to obtain a charging current in the charging loop or a discharging current in the discharging loop.
[0011] In the embodiments of the first aspect, the voltage dividing network comprises:
[0012] a second resistor, one end of the second resistor being coupled to the common voltage point, the other end of the second resistor being connected with the bias voltage through a third resistor; the voltage dividing point is derived between the second resistor and the third resistor to output the representation voltage.
[0013] In an embodiment of the first aspect, the charging circuit further comprises a boost circuit, the boost circuit comprising:
[0014] a first inductor, one end of the first inductor coupled to the positive pole of the charging interface, the other end of the first inductor coupled to the positive pole of the battery via a forwardly arranged first diode and to ground via a switch circuit;
[0015] the switch circuit connected to a control terminal of an external chip to be controlled to be turned on or off.
[0016] In an embodiment of the first aspect, the switch circuit comprises:
[0017] a first switch element, a first end of the first switch element coupled to the control terminal of the external chip via a fourth resistor, a second end of the first switch element coupled to ground via a fifth resistor, and a third end of the first switch element coupled to the positive pole of the first diode.
[0018] In an embodiment of the first aspect, the switch circuit further comprises a sixth resistor, one end of the sixth resistor coupled to the first end of the first switch element, and the other end of the sixth resistor coupled to the fifth resistor.
[0019] In an embodiment of the first aspect, the discharging circuit further comprises a buck chip, the positive pole of the battery coupled to the positive pole of the discharging interface via the buck chip; the buck chip comprising a chip input terminal, a chip feedback terminal, and a chip switch terminal;
[0020] the chip input terminal coupled to the positive pole of the battery; the chip feedback terminal coupled to the positive pole of the discharging interface via a feedback circuit; and the chip switch terminal coupled to the positive pole of the discharging interface via a second inductor.
[0021] In an embodiment of the first aspect, the feedback circuit comprises:
[0022] a seventh resistor, one end of the seventh resistor coupled to the positive pole of the discharging interface, and the other end of the seventh resistor coupled to ground via an eighth resistor; and an output terminal derived from a voltage division point between the seventh resistor and the eighth resistor coupled to the chip feedback terminal.
[0023] In an embodiment of the first aspect, the discharging circuit further comprises a buck chip, the buck chip further comprising a driving pin; the driving pin coupled to the positive pole of the discharging interface via a first capacitor.
[0024] In an embodiment of the first aspect, a positive electrode of the charging interface is coupled to a positive electrode of the battery, and a negative electrode of the charging interface is coupled to a negative electrode of the battery to form the charging loop; or,
[0025] a positive electrode of the battery is coupled to a positive electrode of the discharging interface, and a negative electrode of the discharging interface is coupled to a negative electrode of the battery to form the discharging loop.
[0026] A portable device, characterized in comprising the charging and discharging circuit as claimed in any one of the preceding claims.
[0027] Advantages of the present disclosure: by sharing one current sampling point, combining bias voltage and voltage dividing network, only one sampling circuit can be set to detect the current in two different directions of charging and discharging. The present disclosure not only significantly reduces the hardware cost, reduces the number of sampling resistors, operational amplifiers and other components, but also saves the sampling I / O port of the MCU. BRIEF DESCRIPTION OF DRAWINGS
[0028] Figure 1 A structural block diagram of a charging and discharging circuit in an embodiment of the present disclosure is shown.
[0029] Figure 2 A circuit schematic diagram of a charging and discharging circuit in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0030] The embodiments of the present disclosure will be described in detail below with specific reference to specific examples. Those skilled in the art can easily understand other advantages and effects of the present disclosure from the messages disclosed in the present disclosure. The present disclosure can also be implemented or applied by different specific embodiments, and the details in the present disclosure can be modified or changed according to different views and applications without departing from the spirit of the present disclosure. It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0031] The embodiments of the present disclosure will be described in detail below with specific reference to specific examples. Those skilled in the art can easily understand other advantages and effects of the present disclosure from the messages disclosed in the present disclosure. The present disclosure can also be implemented or applied by different specific embodiments, and the details in the present disclosure can be modified or changed according to different views and applications without departing from the spirit of the present disclosure. It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0032] Throughout the present disclosure, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or a group of embodiments or examples. Furthermore, those skilled in the art may combine and integrate different embodiments or examples, and features of different embodiments or examples, as described in the present disclosure, without conflicting requirements.
[0033] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the context of this disclosure, "a group" means two or more, unless otherwise specifically defined.
[0034] In order to clearly describe the present disclosure, components not related to the description are omitted, and the same or similar components throughout the specification are denoted by the same reference numerals.
[0035] Throughout this specification, when a device is said to be "connected" to another device, this includes not only "direct connection" but also "indirect connection" with other elements interposed therebetween. Furthermore, when a device is said to "include" a certain component, unless otherwise stated, this does not exclude the inclusion of other components but rather implies that the device may include other components.
[0036] Although the terms first, second, etc. are used in this document to represent various elements in some examples, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, the first interface and the second interface, etc. are represented. Furthermore, as used in this document, the singular forms "one", "an", and "the" are intended to also include the plural forms, unless there is a contrary indication in the context. It should be further understood that the terms "comprise" and "include" indicate the presence of features, steps, operations, elements, modules, projects, types, and / or groups, but do not exclude the presence, occurrence, or addition of one or a group of other features, steps, operations, elements, modules, projects, types, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B, or C" or "A, B, and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B, and C". Exceptions to this definition only occur when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
[0037] The professional terms used herein are used only to refer to specific embodiments and are not intended to limit the present disclosure. The singular form used herein, unless the context clearly indicates otherwise, also includes the plural form. In the specification, the meaning of "include" is to specify a certain feature, region, integer, step, operation, element, and / or component, and is not to exclude the presence or addition of other features, regions, integers, steps, operations, elements, and / or components.
[0038] Although not differently defined, the technical terms and scientific terms used herein include the meanings commonly understood by those skilled in the art to which the present disclosure belongs. The terms defined in the commonly used dictionary are additionally explained to have the meanings consistent with the related technical literature and the currently prompted messages, unless defined, and should not be over-interpreted as ideal or very formal meanings.
[0039] In modern electronic devices, battery charging and discharging management is an important part. Many portable devices, such as portable air pumps, power banks, etc., not only need to charge the battery through an external power supply, but also need to discharge the external device through the battery. In order to ensure the safety and efficient operation of these devices, it is necessary to accurately detect the charging current and the discharging current. In the related art, two independent current sampling circuits are usually used to detect the charging current and the discharging current respectively. Although this method can achieve current detection, it also has some obvious shortcomings: increasing hardware cost, occupying more MCU resources, increasing circuit complexity and fault points.
[0040] In order to solve the above problems, an embodiment of the present disclosure provides a charging and discharging circuit, which can detect the current in two different directions of charging and discharging by sharing one current sampling point, combining bias voltage and voltage dividing network, and setting only one sampling circuit.
[0041] Figure 1 The structure block diagram of the charging and discharging circuit in the present disclosure is shown. In Figure 1 In the embodiment, the charging circuit comprises a charging interface 100, a battery 200, a discharging interface 300, a first resistor R1, and a sampling circuit 500.
[0042] When the charging interface 100 is connected to an external power supply, the battery 200 is charged along the direction of the arrow A through the charging interface 100, and the discharging interface 300 is discharged along the direction of the arrow B through the discharging interface 300. Figure 1The circuit corresponding to the charging current direction shown by the line a in the example is charged. Therefore, the circuit corresponding to the line a is defined as the charging circuit a, which connects the charging interface 100 and the battery 200. The direction shown by the arrow in the charging circuit a is the current direction during charging. In addition, the external power is transmitted to the discharge interface 300 through the charging interface 100 to supply power to the load connected to the discharge interface 300. In addition, when the charging interface 100 is not connected to the external power supply, the battery 200 is connected to the discharge interface 300. Figure 1 The circuit indicated by line b in this example discharges via the discharge port 300 . Therefore, the circuit corresponding to line b is defined as discharge circuit b, which connects the battery 200 and the discharge port 300 . The arrow in line b indicates the direction of the discharge current. The positive and negative poles of the charging port 100 , battery 200 , and discharge port 300 are marked in the figure.
[0043] Among them, Figure 1 In this example, the charging current and the discharging current are in opposite directions when passing through the first resistor R1. The charging current flows from the charging interface 100 to the battery 200, while the discharging current flows from the battery 200 to the discharging interface 300. Because the charging current and the discharging current are in opposite directions. If two independent detection circuits are set up to detect the charging current and the discharging current respectively, one circuit is used to detect the charging current and the other circuit is used to detect the discharging current, it will lead to increased costs. You can refer to Figure 2 As shown, the negative electrode VSS1 of the charging interface 100 and the negative electrode VSS2 of the discharging interface 300 are connected to a common voltage point. The common voltage point is further coupled to one end of the first resistor R1. Generally, the charging current and the discharging current flowing through can be calculated based on the ratio of the common voltage point voltage to the resistance value of the first resistor R1. However, since the voltage at the common voltage point may be a negative voltage, it may not be read by the microcontroller of the conventional current detection circuit. Therefore, in the embodiment of the present disclosure, a sampling circuit 500 is connected at the common voltage point to obtain a positive value representing a voltage associated with the common voltage point voltage. There is a fixed mathematical relationship between the representing voltage and the common voltage point voltage, which is determined by the device parameters in the sampling circuit. In this way, both the charging current and the discharging current can be detected by replacing the common voltage point voltage with the representing voltage of the same sampling circuit 500.
[0044] Specifically, when charging starts, a charging current charges the battery 200 along a charging loop a shown by the a line, where the positive pole VIN1 of the charging interface 100 is coupled to the positive pole of the battery 200, and the negative pole VSS1 of the charging interface 100 is coupled to the negative pole of the battery 200, to form the charging loop a. The charging current flows to the first resistor R1 after passing through the battery 200. During discharging of the battery 200, a discharging current supplies power to an external load along a discharging loop b shown by the b line. The positive pole of the battery 200 is coupled to the positive pole VIN2 of the discharging interface 300, and the negative pole VSS2 of the discharging interface 300 is coupled to the negative pole of the battery 200, to form the discharging loop b. The discharging current flows into the negative pole of the battery 200 after passing through the first resistor R1. In Figure 1 It can be seen that the charging current and the discharging current pass through the first resistor R1 in opposite directions. Since the charging current and the discharging current are in opposite directions, if only the first resistor R1 is used for detection, the direction of the voltage drop will also be opposite. This makes it impossible for a single-chip microcomputer to distinguish between charging and discharging states, because the single-chip microcomputer can usually only read positive voltages and cannot directly read negative voltages.
[0045] During charging, the voltage at the common voltage point decreases due to the charging current, resulting in a lower voltage of the common voltage point relative to the ground. However, during discharging, the voltage at the common voltage point increases due to the discharging current, resulting in a higher voltage of the common voltage point relative to the ground.
[0046] By providing the sampling circuit 500, the problem that the first resistor R1 alone cannot simultaneously detect the charging current and the discharging current can be overcome. In Figure 1 In an example, the sampling circuit 500 includes a voltage dividing network having one end connected to a bias voltage VCC. The bias voltage VCC is a fixed positive voltage. The bias voltage VCC serves to ensure that the output voltage of the voltage dividing network is always positive. In some embodiments, the bias voltage should not be too high. Through the bias voltage VCC, even if the voltage at the common voltage point is negative, the indication voltage will remain positive.
[0047] The other end of the voltage dividing network is coupled to the common voltage point, and an output end of a voltage dividing point IFB of the voltage dividing network outputs an indication voltage associated with the current sampling voltage of the common voltage point. The indication voltage is positive, and the indication voltage and the bias voltage VCC are used to obtain the charging current in the charging loop a or the discharging current in the discharging loop b.
[0048] Optionally, in Figure 2 In an example, the voltage dividing network is a resistor voltage dividing network, including a second resistor R2 and a third resistor R3.
[0049] One end of the second resistor R2 is coupled to the common voltage point, and the other end of the second resistor R2 is connected to the bias voltage VCC via the third resistor R3; the voltage dividing point IFB is led out between the second resistor R2 and the third resistor R3 to output the representation voltage.
[0050] The mathematical relationship between the common voltage point voltage and the voltage dividing point voltage is specifically explained. On the one hand, since the second resistor R2 and the third resistor R3 are connected in series, the current I passing through the second resistor R2 and the third resistor R3 is the same. On the other hand, the voltage on the second resistor R2 is the voltage difference between the bias voltage VCC and the voltage dividing point voltage V IFB与 , and the voltage on the third resistor R3 is the voltage difference between the bias voltage VCC and the voltage dividing point voltage V IFB . Therefore, according to the above two constraints, the representation voltage V IFB output by the voltage dividing point IFB can be used to replace the common voltage point voltage and the charging current and discharging current of R1 to perform the operation.
[0051] The single-chip microcomputer is connected to the voltage dividing point IFB of the voltage dividing network to obtain the representation voltage V IFB , so as to detect the charging current and the discharging current.
[0052] The current calculation formula of the charging current is V IFB *(R2+R3)] / (R3*R1).
[0053] The current calculation formula of the discharging current is: V IFB *(R2+R3)-VCC*R2] / (R3*R1).
[0054] In the above calculation formula, VCC is the bias voltage value, V IFB is the voltage value of the voltage dividing point IFB between the second resistor R2 and the third resistor R3, R1 is the resistance value of the first resistor, R2 is the resistance value of the second resistor R2, and R3 is the resistance value of the third resistor R3.
[0055] Optionally, in Figure 2 the example, the charging circuit a further includes a boost circuit, and the boost circuit includes a first inductor L1, a first diode D1, and a switch circuit.
[0056] One end of the first inductor L1 is coupled to the positive electrode VIN1 of the charging interface 100, and the other end of the first inductor L1 is coupled to the positive electrode of the battery 200 via the forwardly arranged first diode D1 and is grounded via the switch circuit.
[0057] The switch circuit is connected to a control end PWM of an external chip 101 to be controlled to be turned on or off.
[0058] Specifically, in some embodiments, different battery 200 types (such as lithium-ion batteries 200, nickel-cadmium batteries 200, etc.) can require different charging voltages. The voltage provided by some chargers or power adapters can be low and insufficient to directly charge the battery 200. The boost circuit can boost the lower input voltage to the charging voltage required by the battery 200, ensuring that the battery 200 can obtain sufficient charging voltage, thereby improving charging efficiency.
[0059] When the switch circuit is turned on, the charging current passes through the first inductor L1, and energy is stored in the first inductor L1. At this time, the voltage across the first inductor L1 is equal to the input voltage. When the switch circuit is turned off under the control of the control end PWM of the external chip 101, the current in the first inductor L1 cannot be immediately interrupted, and a reverse voltage is generated across the first inductor L1. This voltage is transmitted to the positive electrode of the battery 200 through the first diode D1, thereby boosting the charging voltage of the battery 200. Through the periodic turning on and off of the switch circuit, the first inductor L1 continuously stores and releases energy, so that the charging voltage of the battery 200 is higher than the input voltage, thereby achieving efficient charging.
[0060] Optionally, the switch circuit comprises:
[0061] The first switch element Q1 has a first end coupled to the control end PWM of the external chip 101 via a fourth resistor R4, a second end grounded via a fifth resistor R5, and a third end coupled to the positive electrode of the first diode D1.
[0062] Specifically, the switch circuit is used to control the charging and discharging process of the first inductor L1, thereby achieving the boosting of the input voltage of the battery 200.
[0063] In some embodiments, the first switch element Q1 is implemented as a MOS tube. When the first switch element Q1 is a MOS tube, the gate is the first end of the first switch element Q1, the source is the second end of the first switch element Q1, and the drain is the third end of the first switch element Q1. When the external chip 101 outputs a high-level signal, the gate voltage rises, the MOS tube is turned on, the charging current passes through the first inductor L1, and energy is stored in the first inductor L1. When the external chip 101 outputs a low-level signal, the gate voltage decreases, the MOS tube is turned off, and the current in the first inductor L1 cannot be immediately interrupted, generating a reverse voltage across the first inductor L1. This voltage is transmitted to the positive electrode of the battery 200 through the first diode D1, thereby boosting the charging voltage of the battery 200.
[0064] The first switch element Q1 is a triode. When the first switch element Q1 is a triode, its three terminals are base, emitter and collector respectively. When the external chip 101 outputs a high level signal, the base current increases, and the triode is turned on. When the external chip 101 outputs a low level signal, the base current decreases, and the triode is turned off. When the triode is turned on, the first inductor L1 stores energy. When the triode is turned off, the voltage is boosted through the first inductor L1.
[0065] The fourth resistor R4 is used to limit the current flowing into the control terminal PWM of the first switch element Q1, so as to prevent excessive current from damaging the switch element. The fourth resistor R4 also helps to stabilize the voltage of the control terminal PWM, so as to prevent external noise interference from causing the switch element to malfunction. The fifth resistor R5 is used to provide a stable reference ground potential, so as to ensure the normal operation of the switch element. For MOS tubes, the fifth resistor R5 can also help to discharge the charge on the gate, so as to speed up the turn-off speed of the switch element and improve the switching frequency.
[0066] The first diode D1 ensures unidirectional conduction. When the switch circuit is turned on, the charging current stores energy through the first inductor L1. When the switch circuit is turned off, the current in the first inductor L1 cannot be immediately interrupted, and a reverse voltage will be generated. The first diode D1 is turned on in this case, allowing the energy stored in the first inductor L1 to be transmitted to the positive electrode of the battery 200 through the diode, thereby boosting the charging voltage of the battery 200. The first diode D1 can also prevent the current of the battery 200 from flowing back to the first inductor L1 or the charging interface 100, so as to ensure that the current can only flow from the charging interface 100 to the battery 200, and cannot flow in the opposite direction.
[0067] Optionally, in Figure 2 In an example, the switch circuit further comprises a sixth resistor R6, one end of the sixth resistor R6 is coupled to the first end of the first switch element Q1, and the other end of the sixth resistor R6 is coupled to the fifth resistor R5.
[0068] Specifically, the sixth resistor R6 is used to stabilize the PWM voltage of the control terminal of the first switch element Q1, so as to prevent false triggering caused by external noise interference and ensure the reliable operation of the switch element.
[0069] Optionally, in Figure 2 In an example, the discharge circuit b further comprises a step-down chip 301, the positive electrode of the battery 200 is coupled to the positive electrode VIN2 of the discharge interface 300 via the step-down chip 301; the step-down chip 301 comprises a chip input end BAT, a chip feedback end FB and a chip switch end SW.
[0070] The chip input end BAT is coupled to the positive electrode of the battery 200; the chip feedback end FB is coupled to the positive electrode VIN2 of the discharge interface 300 via a feedback circuit; and the chip switch end SW is coupled to the positive electrode VIN2 of the discharge interface 300 via a second inductor L2.
[0071] Specifically, in many electronic devices, the discharge voltage of the battery 200 is usually high, while the external load (such as a microcontroller, a sensor, a display screen, etc.) often needs a lower stable voltage to work normally. The buck chip 301 converts the high voltage of the battery 200 into a low voltage suitable for use by the external load.
[0072] When the switch inside the buck chip 301 is turned on, the high voltage of the battery 200 supplies power to the load through the switch end and the second inductor L2, and at the same time stores energy in the second inductor L2. In this process, the current through the second inductor L2 increases linearly.
[0073] When the switch inside the buck chip 301 is turned off, the current in the second inductor L2 cannot be immediately interrupted, and a reverse voltage will be generated across the two ends of the second inductor L2. This reverse voltage is transmitted to the load through the internal diode, continuing to supply power to the load, while the energy in the second inductor L2 is gradually released. The feedback end monitors the output voltage and compares it with the internal reference voltage to adjust the switching frequency and duty cycle to maintain the stability of the output voltage.
[0074] In some embodiments, the buck chip 301 can be implemented as a chip of model PW2163 and its functionally similar related series, or other manufacturers' buck chips 301 similar in principle.
[0075] Optionally, in some embodiments, the feedback circuit comprises: Figure 2 In an example, the feedback circuit comprises:
[0076] The seventh resistor R7 has one end coupled to the positive electrode VIN2 of the discharge interface 300 and the other end coupled to ground via an eighth resistor R8; and the output end derived from the voltage division point between the seventh resistor R7 and the eighth resistor R8 is coupled to the chip feedback end FB.
[0077] Specifically, the seventh resistor R7 and the eighth resistor R8 form a voltage division network to detect the output voltage at the positive electrode VIN2 of the discharge interface 300, and compare the output voltage at the positive electrode VIN2 of the discharge interface 300 with the reference voltage inside the buck chip 301 to adjust the duty cycle of the buck chip 301.
[0078] Optionally, a step-down chip 301 is further included in the discharging circuit b, and the step-down chip 301 further includes a driving pin BS; the driving pin BS is coupled to the positive electrode VIN2 of the discharging interface 300 via a first capacitor C1. The first capacitor C1 stores energy in a switching period, and releases the energy to continue to supply power to the load when the switch is turned off.
[0079] In yet another embodiment of the present disclosure, a portable device is provided, which includes the charging and discharging circuit as described in any of the above embodiments.
[0080] The above embodiments are only illustrative of the principles and effects of the present disclosure, and are not intended to limit the present disclosure. Any modification or change made by those skilled in the art without departing from the spirit and scope of the present disclosure shall be covered by the protection scope of the present disclosure.
Claims
1. A charge-discharge circuit characterized by comprising: The application relates to a charging circuit and a discharging circuit. The application relates to a charging circuit and a discharging circuit. The application relates to a charging circuit and a discharging circuit. The negative electrode of the battery is grounded. The negative electrodes of the charging interface and the discharging interface are connected to a common voltage point, and the common voltage point is grounded through a first resistor. A sampling circuit comprises a voltage dividing network connected to a bias voltage at one end, and coupled to the common voltage point at the other end, and an output end of a voltage dividing point of the voltage dividing network outputs a representation voltage of a current sampling voltage associated with the common voltage point. The representation voltage is positive, and the representation voltage and the bias voltage are used to obtain a charging current in the charging circuit or a discharging current in the discharging circuit. The voltage dividing network comprises:
2. The charge and discharge circuit according to claim 1, characterized by, A second resistor, one end of the second resistor is coupled to the common voltage point, and the other end of the second resistor is connected to the bias voltage through a third resistor; and a voltage dividing point between the second resistor and the third resistor outputs the representation voltage. The charging circuit further comprises a boost circuit, and the boost circuit comprises:
3. The charge and discharge circuit according to claim 1, wherein A first inductor, one end of the first inductor is coupled to the positive electrode of the charging interface, and the other end of the first inductor is coupled to the positive electrode of the battery through a first diode arranged in a forward direction and grounded through a switch circuit. The switch circuit is connected to a control end of an external chip to be controlled to be turned on and turned off. The switch circuit comprises:
4. The charge and discharge circuit according to claim 3, wherein A first switch element, a first end of the first switch element is coupled to the control end of the external chip through a fourth resistor, a second end of the first switch element is grounded through a fifth resistor, and a third end of the first switch element is coupled to the positive electrode of the first diode. The switch circuit further comprises a sixth resistor, one end of the sixth resistor is coupled to the first end of the first switch element, and the other end of the sixth resistor is coupled to the fifth resistor.
5. The charge and discharge circuit according to claim 4, wherein The discharging circuit further comprises a step-down chip, the positive electrode of the battery is coupled to the positive electrode of the discharging interface through the step-down chip; and the step-down chip comprises a chip input end, a chip feedback end and a chip switch end.
6. The charge and discharge circuit according to claim 1, wherein The chip input end is coupled to the positive electrode of the battery, the chip feedback end is coupled to the positive electrode of the discharging interface through a feedback circuit, and the chip switch end is coupled to the positive electrode of the discharging interface through a second inductor. The feedback circuit comprises:
7. The charge and discharge circuit according to claim 6, wherein A seventh resistor, one end of the seventh resistor is coupled to the positive electrode of the discharging interface, and the other end of the seventh resistor is grounded through an eighth resistor; and an output end of a voltage dividing point between the seventh resistor and the eighth resistor is coupled to the chip feedback end. The discharging circuit further comprises a step-down chip, and the step-down chip further comprises a driving pin; the driving pin is coupled to the positive electrode of the discharging interface through a first capacitor. The positive electrode of the charging interface is coupled to the positive electrode of the battery, and the negative electrode of the charging interface is coupled to the negative electrode of the battery, so as to form the charging circuit; or 8. The charge and discharge circuit according to claim 1, wherein The positive electrode of the battery is coupled to the positive electrode of the discharging interface, and the negative electrode of the discharging interface is coupled to the negative electrode of the battery, so as to form the discharging circuit.
9. The charge and discharge circuit according to claim 1, wherein 10. A portable device, characterized by The charge-discharge circuit according to any one of claims 1 to 9.