Battery detection protection circuit and electronic equipment

By designing a battery detection protection circuit and using the communication switch module to control the charging switch module and the battery detection module, the problem of not being able to quickly detect the battery in place during the removable battery is solved, and rapid detection and protection are achieved, and charging experience is optimized.

CN119906114APending Publication Date: 2025-04-29HYTERA COMM CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311421237.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-27
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The existing removable battery cannot quickly detect the battery's position during the plug-in and unplug process, resulting in abnormal system crashes or failure of charging protection, affecting the user experience.

Method used

A battery detection and protection circuit is designed, including a charging switch module, a battery detection module and a communication switch module. The communication switch module controls the path between the battery detection module and the charging switch module to realize the rapid detection and protection of the battery in place.

Benefits of technology

There is no need to change the existing battery architecture or add a dedicated battery in-position detection pole, which realizes rapid detection of battery insertion and removal, triggers circuit protection, stabilizes working status, reduces abnormal crashes, and optimizes the charging experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906114A_ABST
    Figure CN119906114A_ABST
Patent Text Reader

Abstract

The invention provides a battery detection protection circuit and electronic equipment, and the circuit comprises a charging switch module which is used for connecting a power supply port and a charging management chip, and the power supply port is used for connecting an external adapter; the battery detection module is connected with the charging switch module and a battery port, and the battery port is used for being detachably connected with a battery; the communication switch module is connected with the battery detection module and the control chip; wherein when the communication switch module conducts a communication path between the battery detection module and the control chip, the battery detection module controls the charging switch module to conduct a charging path between the adapter and the charging management chip; when the communication switch module disconnects the communication path, the in-place condition of the battery is detected, when the battery is in place, the battery detection module controls to conduct the charging path, and when the battery is not in place, the battery detection module controls to disconnect the path. Through the circuit, time division multiplexing of communication and battery in-place detection is realized, and the charging experience of plugging and unplugging the battery in the charging process is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application mainly relates to the technical field of electronic circuits, and in particular to a battery detection protection circuit and electronic equipment. Background Art

[0002] With the gradual development of smart devices, in order to facilitate the quick charging of smart devices and meet the user's experience in daily use, a fast charging interface device is implemented. And according to the "New Battery Law" passed by the European Union, the core content is to require that in all consumer electronic products, the battery should be able to be disassembled and replaced by the user, including mobile phones, tablets and other electronic equipment products that we often use in our daily lives. Therefore, removable batteries will become a new trend in the development of electronic equipment products in the future; but at present, the requirements for built-in batteries in the process of protection design are far less strict than the protection technology of removable fast charging interface. If the removable battery used has only three electrode interfaces, positive, negative and communication, it will cause the system terminal used to be unable to quickly detect the insertion and removal of the battery, triggering the protection protocol, so as to cause abnormal system crashes or misjudgment of the battery, causing the protection on the charging path to fail, causing circuit damage and affecting the user's experience; if the removable battery used adds a special battery detection electrode on the original basis, it will occupy more use area and increase the manufacturing cost of the battery. Summary of the invention

[0003] The main purpose of this application is to propose a battery detection and protection circuit to solve the problems in the current charging solution, such as rapid detection and protection of the battery in place when the removable battery is plugged in and out, and optimizing the charging experience.

[0004] To solve the above problems, the present application provides a battery detection protection circuit, which includes: a charging switch module, which is used to connect the power supply port and the charging management chip, and the power supply port is used to connect an external adapter; a battery detection module, which is connected to the charging switch module and the battery port, and the battery port is used to detachably connect the battery; a communication switch module, which is connected to the battery detection module and the control chip; wherein, when the communication switch module turns on the communication path between the battery detection module and the control chip, the battery detection module controls the charging switch module to turn on the charging path between the adapter and the charging management chip; when the communication switch module disconnects the communication path between the battery detection module and the control chip, the battery detection module detects the presence of the battery, and controls the charging switch module to turn on the charging path between the adapter and the charging management chip when it is detected that the battery is in place, and controls the charging switch module to disconnect the charging path between the adapter and the charging management chip when it is detected that the battery is not in place.

[0005] In one embodiment, one end of the communication switch module connected to the control chip is configured to input a first power supply voltage, and the first power supply voltage is less than the voltage provided by the adapter. The battery detection module includes: a voltage divider unit, a first end of the voltage divider unit is connected to the power supply port, and a voltage divider node of the voltage divider unit is connected to the battery port and the communication switch module; a charging switch control unit, connecting the voltage divider node of the voltage divider unit and the charging switch module; wherein, when the communication switch module turns on the communication path between the battery detection module and the control chip or the battery is in place, the charging switch control unit controls the charging switch module to turn on, and when the communication switch module disconnects the communication path between the battery detection module and the control chip and the battery is not in place, the charging switch control unit controls the charging switch module to turn off.

[0006] In one embodiment, the voltage dividing unit includes a resistor, a first end of the resistor is connected to the power supply port, and a second end of the resistor is connected to the battery port and the communication switch module.

[0007] In one embodiment, the charging switch control unit includes: a first transistor, a first end of the first transistor is connected to the charging switch module, and a second end of the first transistor is grounded; a second transistor, a first end of the second transistor is connected to the control end of the first transistor, a second end of the second transistor is connected to the power supply port, and the control end of the second transistor is connected to the battery port.

[0008] In one embodiment, the charging switch module includes a third transistor, a first end of the third transistor is connected to the power supply port, a second end of the third transistor is connected to the charging management chip, and a control end of the third transistor is connected to the first end of the first transistor.

[0009] In one embodiment, the communication switch module includes: a communication switch unit, the communication switch unit is connected to the battery detection module and the control chip, the communication switch unit is used to receive a first power supply voltage, and the first power supply voltage is less than the voltage provided by the adapter; a communication switch control unit, connecting the communication switch unit and the control chip; wherein the communication switch control unit is configured to control the communication switch unit to be turned on or off in response to a control signal of the control chip.

[0010] In one embodiment, the communication switch unit includes: a fourth transistor, a first end of the fourth transistor is connected to the battery detection module, and a control end of the fourth transistor is connected to the communication switch control unit; a fifth transistor, a first end of the fifth transistor is connected to the second end of the fourth transistor, the second end of the fifth transistor is connected to the control chip, and the control end of the fifth transistor is connected to the control end of the fourth transistor.

[0011] In one embodiment, the communication switch control unit includes: a sixth transistor, a first end of the sixth transistor is connected to the control end of the fourth transistor, and a second end of the sixth transistor is used to connect to a second power supply voltage; a seventh transistor, a first end of the seventh transistor is connected to the control end of the sixth transistor, a second end of the seventh transistor is grounded, and the control end of the seventh transistor is connected to a control chip.

[0012] In one embodiment, the communication switch control unit is configured to control the communication switch unit to be turned on in response to the control signal of the control chip being at a first level, or to control the communication switch unit to be turned off in response to the control signal of the control chip being at a second level, the control signal is a periodic signal, and the duration of the first level in each period is less than the duration of the second level.

[0013] To solve the above problems, the present application also provides an electronic device, which includes: a battery detection protection circuit, a control chip and a charging management chip as described in any of the above items, wherein the charging management chip is connected to the battery detection protection circuit, the control chip and the battery port, and the charging management chip is configured to power the control chip and / or charge the battery connected to the battery port when the battery detection protection circuit turns on the path between the adapter and the charging management chip.

[0014] Through the above-mentioned battery detection protection circuit, there is no need to change the existing battery architecture, and there is no need to add a dedicated battery presence detection electrode. Time-sharing multiplexing of communication and battery presence detection is realized on the communication electrode, saving PCB space and cost. The shortcomings of the current charging solution are solved through hardware, and the insertion and removal of the battery end are quickly detected, triggering circuit protection, stabilizing the working state, reducing abnormal freezes, and optimizing the charging experience for removable batteries during the charging process. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0016] Figure 1 It is a structural schematic diagram of an embodiment of a battery detection protection circuit provided by the present application;

[0017] Figure 2 is a structural schematic diagram of a second embodiment of a battery detection and protection circuit provided by the present application;

[0018] Figure 3 is a structural schematic diagram of a third embodiment of a battery detection and protection circuit provided by the present application;

[0019] Figure 4 is a structural schematic diagram of a fourth embodiment of a battery detection and protection circuit provided by the present application;

[0020] Figure 5 is a structural schematic diagram of a fifth embodiment of a battery detection and protection circuit provided by the present application;

[0021] Figure 6 It is a structural schematic diagram of an embodiment of an electronic device provided by the present application.

[0022] : 100, battery detection protection circuit; 10, charging switch module; 20, battery detection module; 21, voltage dividing unit; 22, charging switch control module; 30, communication switch module; 31, communication switch unit; 32, communication switch control unit; 200, charging management chip; 300, control chip; A, power supply port; B, battery port; R1, first resistor; R2, second resistor; R3, third resistor; R4, fourth resistor; R5, fifth resistor; R6, sixth resistor; R7, seventh resistor; R8, eighth resistor; R9, ninth resistor; Q1, first transistor; Q2, second transistor; Q3, third transistor; Q4, fourth transistor; Q5, fifth transistor; Q6, sixth transistor; Q7, seventh transistor; M1, first diode; 400, electronic device. DETAILED DESCRIPTION

[0023] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be appreciated that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present application.

[0024] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0025] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0026] In the existing charging architecture, when the adapter is connected, when the corresponding system is under a small current load, the adapter will power the system and charge the battery at the same time; when the corresponding system is under a large load, the current supplied by the system is insufficient to meet its normal work, so the battery changes from charging to discharging and powers the system together with the original adapter to meet the normal usage needs of the system. However, for removable battery types, such as a walkie-talkie terminal device, when the battery is unplugged and connected to the adapter, the system power supply only supports power supply startup, and because the load capacity of the adapter and the power port is generally small, when the current peak power of the device is greater than its power supply, there may be a situation where the adapter triggers overcurrent protection or the machine device crashes abnormally; when the battery is unplugged while the device is charging, the same system power supply can meet the normal startup of the system, but cannot meet all the scene requirements of the device operation; in the above problems, although the device can be powered normally only by the adapter, its working state is not stable and its scope of use is limited, affecting the user experience of the device. The reason is that for some removable batteries, there are only three electrodes: positive, negative and communication, and there is no dedicated battery in-situ detection electrode. The device cannot quickly detect the connection and removal of the battery to trigger circuit protection, which leads to the occurrence of the above problems. However, if a dedicated battery in-situ detection electrode is added on the basis of the original removable battery, it will occupy more usable area and increase the corresponding manufacturing cost.

[0027] In order to solve the current problem of rapid in-situ detection, judgment and protection for removable batteries, the present application provides a battery detection and protection circuit for a removable battery, so as to open a charging path when the battery is connected and immediately disconnect the charging path when the battery is unplugged without changing the existing battery architecture, thereby completing the battery in-situ detection and protection functions; and turning off the in-situ detection function when the communication chip communicates with the battery, actively opening the control path to realize the communication function, and restoring the in-situ detection function after the communication is completed to realize the time-sharing multiplexing of the battery communication function and the in-situ detection function, so as to solve the problem of abnormal freezing of existing charging models including existing charging models with Type-C in various scenarios such as unplugging the battery during charging or inserting the battery without a battery. The realization of its functions does not require changing the current battery architecture, and does not require adding a dedicated battery in-situ detection pin, which can well save printed circuit board (PCB) space and production costs.

[0028] See also Figure 1 As shown, Figure 1 1 is a schematic diagram of the structure of the first embodiment of the battery detection protection circuit provided by the present application. The battery detection protection circuit 100 includes a charging switch module 10, a battery detection module 20 and a communication switch module 30.

[0029] Specifically, the charging switch module 10 is connected to the power supply port A and the charging management chip 200, and the power supply port A is used to connect the adapter; the battery detection module 20 is connected to the charging switch module 10 and the battery port B, and the battery port B is used to detachably connect the battery; the communication switch module 30 is connected to the battery detection module 20 and the control chip 300. When the communication switch module 30 conducts the communication path between the battery detection module 20 and the control chip 300, the battery detection module 20 controls the charging switch module 10 to conduct the charging path between the adapter and the charging management chip 200; when the communication switch module 30 disconnects the communication path between the battery detection module 20 and the control chip 300, the battery detection module 20 detects the battery in place, and controls the charging switch module 10 to conduct the charging path between the adapter and the charging management chip 200 when the battery is detected to be in place, and controls the charging switch module 10 to disconnect the charging path between the adapter and the charging management chip 200 when the battery is detected to be not in place. The battery in place mentioned in this embodiment means that the battery is connected to the battery port, and the battery not in place means that the battery is not connected to the battery port.

[0030] Optionally, one end of the power supply port A is connected to an external adapter, and the other end is connected to the battery detection protection circuit 100, for connecting an external power supply to supply energy to the circuit. General power supply ports can be selected, for example, USB-A, Type-C, Type-A, USB 3.2, Thunderbolt 3, Lightning, Micro-B and other forms, which are not limited here; the adapter, also called an external power supply, is a device for converting the power supply voltage of electronic equipment, which is used to convert the external high-voltage power supply into a stable voltage required by electronic equipment and circuits to supply energy to the circuit. Generally, the 220V high-voltage household electricity is converted into a stable low voltage of 5V to 20V to meet the use requirements of the solution. The selection and power of the adapter are not limited here; one end of the battery port B is connected to the battery, and the other end is connected to the battery detection protection circuit 100, to realize a detachable interface between the battery and the circuit; the battery is mainly used to power the circuit when the system is working, and when After connecting the charging device, the battery is charged through the circuit. Generally, dry cell batteries, lithium batteries and other battery types can be used, as long as they can meet the use requirements, and there is no limitation here; the charging management chip 200 is used to detect and control the current and voltage during the charging process to prevent abnormal conditions in the charger or charging circuit, protect the charger and mobile electronic devices, optimize the charging efficiency to achieve functions such as fast charging, and extend the service life of the battery. A commonly used charger chip can be selected, or it can be selected according to actual needs, and there is no limitation here; the control chip 300 is used to generate a control signal to control some components in the circuit, so as to control the entire circuit workflow and implementation method. Optionally, in one embodiment, the control chip 300 uses a DSP chip, where DSP (Digital Signal Processor) is digital signal processing technology, and a DSP chip refers to a chip that can implement digital signal processing technology. DSP chip is a fast and powerful microprocessor. Its unique feature is that it can process data in real time. The DSP chip adopts Harvard structure with separate program and data, and has a special hardware multiplier that can be used to quickly implement various digital signal processing algorithms. In today's digital age, DSP chips have become basic devices in the fields of communications, computers, consumer electronics, etc.

[0031] Optionally, in one embodiment, the charging management chip 200 integrates all components required for the USB Type-C charging system into a single chip. The charging management chip 200 with integrated USB Type-C can meet the requirements of a directive issued by the European Commission (EC) in June 2022, requiring the next generation of portable devices to be compatible with USB Type-C charging connectors to minimize electronic waste and enhance product competitiveness.

[0032] Optionally, in one embodiment, the charging switch module 10 may use switching electronic components including but not limited to triodes, N-type MOS tubes, P-type MOS tubes or other types and combinations thereof; wherein the communication switch module 30 may use switching electronic components and combinations thereof that are the same as or different from the charging switch module 10.

[0033] It can be understood that in the above embodiment, there is no need to change the existing battery architecture, and there is no need to add a dedicated battery in-place detection electrode. The communication switch module in the battery detection protection circuit is controlled by the control chip on the communication electrode, thereby realizing the control of the charging switch module and the battery detection module, realizing time-sharing multiplexing of communication and battery in-place detection, saving PCB space and cost, and solving the shortcomings of the current charging solution through hardware, realizing rapid detection of insertion and removal of the battery terminal, triggering circuit protection, stabilizing the working state and reducing abnormal freezes, and optimizing the charging experience for removable batteries during the charging process.

[0034] Optionally, in one embodiment, if Figure 2 As shown, Figure 2 It is a structural diagram of the second embodiment of the battery detection protection circuit provided in the present application. One end of the communication switch module 30 connected to the control chip 300 is configured to input a first power supply voltage VDD1. The first power supply voltage VDD1 is less than the voltage provided by the adapter. For example, under normal circumstances, the voltage VBUS provided by the adapter is 5V, and the first power supply voltage VDD1 can be set to 3.3V.

[0035] Specifically, the battery detection module 20 includes a voltage divider unit 21 and a charging switch control unit 22. The first end of the voltage divider unit 21 is connected to the power supply port A (i.e., the input VBUS voltage), and the voltage divider node of the voltage divider unit 21 is connected to the battery port B and the communication switch module 30; the charging switch control unit 22 connects the voltage divider node of the voltage divider unit 21 and the charging switch module 10; when the communication switch module 30 turns on the communication path between the battery detection module 20 and the control chip 300 or the battery is in place, the charging switch control unit 22 controls the charging switch module 10 to turn on, and when the communication switch module 30 turns off the communication path between the battery detection module 20 and the control chip 300 and the battery is not in place, the charging switch control unit 22 controls the charging switch module 10 to turn off.

[0036] In a specific embodiment, the voltage dividing unit 21 includes a resistor R1, a first end of the resistor R1 is connected to the power supply port A (i.e., the input VBUS voltage), and a second end of the resistor R1 is connected to the battery port B and the communication switch module 30. The battery in this embodiment includes a resistor R2 (pull-down resistor), which is arranged in the battery, and when the battery is connected to the battery port B, the first end of the resistor R2 is connected to the second end of the resistor R1, and the second end of the resistor R2 is grounded.

[0037] Specifically, when the external adapter is connected, the control chip 300 generates a corresponding control signal to control the on and off of the communication switch module 30; wherein, when the control chip 300 controls the communication switch to be in the on state, since the first power supply voltage VDD1 is always in the power supply state, the charging switch module 10 is also in the on state at this time, and since the continuous power supply of the power supply port A causes the entire line to remain in the on state at this time, the connection and removal of the battery will not trigger the circuit protection of the power supply port A to change the on state of the charging switch module 10, and the battery in-place detection and protection functions are invalid at this time, and only the communication function between the control chip 300 and the battery is effective; when the control chip 300 controls the communication switch to be in the off state, when the battery is connected, the battery detection module 20 detects the connection of the battery and then controls the charging switch module 10 to be turned on, and when the battery is removed, the voltage divider unit 21 in the battery detection module 20 detects the removal of the battery, and then controls the charging switch control unit 22 to remain in the off state, and further, the charging switch module 10 remains in the off state, and the battery in-place detection and protection functions are effective at this time.

[0038] Optionally, in one embodiment, the battery detection protection circuit is in a state of battery in-situ detection and protection function in most cases, and is used as a communication function only when communication is required. For example, in one embodiment, the control signal is controlled and sent by the control chip 300, and the general control communication time is 100-200ms each time. Therefore, during the operation of the device, the battery detection protection circuit is in the battery in-situ detection and protection function most of the time, and is used for communication for a small part of the time, and its response time is less than 200ms; optionally, in other embodiments, the communication control time made by the control chip 300 and the response time during the operation of the device are determined according to actual demand conditions or according to the design plan, and are not specifically limited here.

[0039] See also Figure 2 , Figure 3 , Figure 4 and Figure 5 As shown, Figure 3 is a structural schematic diagram of a third embodiment of a battery detection and protection circuit provided by the present application; Figure 4 is a structural schematic diagram of a fourth embodiment of a battery detection and protection circuit provided by the present application; Figure 5 : This is a structural diagram of the fifth embodiment of the battery detection protection circuit provided by the present application. Among them, VBUS is the adapter output voltage; VSYS is the voltage output from the charging chip to the system end; 3V3D is the digital power supply for the system IO; VDD1 is the first power supply voltage; VDD2 is the second power supply voltage.

[0040] The 1-wire, or single bus, is different from the SPI and I2C serial data communication methods. It uses a single signal line to transmit both clock and data, and the data transmission is bidirectional. The transmission rate is generally 15.3Kbit / s, and the maximum can reach 142Kbit / s. Usually, the data is transmitted at a rate below 100Kbit / s. The general single bus is suitable for a single host system and can control one or more slave devices. The host can be a microcontroller, and the slave can be a single bus device. The data exchange between them is only through one signal line. Its main advantages include: saving I / O interface lines, simple resource structure, low cost, and easy bus expansion and maintenance. However, since all device components are hung on a single bus, this structure can only work in time-sharing mode, that is, data can only be transmitted between two devices at the same time, which limits the efficiency and speed of the overall data transmission of the system. This is the main disadvantage of the single bus structure.

[0041] Optionally, in one embodiment, if Figure 2 As shown, the voltage dividing unit 21 includes a resistor R1, a first end of the resistor R1 is connected to the power supply port A, and a second end of the resistor R1 is connected to the battery port B and the communication switch module 30. The battery in this embodiment includes a resistor R2 disposed in the battery, and when the battery is connected to the battery port B, the first end of the resistor R2 is connected to the second end of the resistor R1, and the second end of the resistor R2 is grounded. Specifically, in one embodiment, the resistance value of the resistor R2 is much smaller than the resistance value of the resistor R1.

[0042] Optionally, in one embodiment, if Figure 2 and Figure 3 As shown, the charging switch control unit 22 includes: a first transistor Q1 and a second transistor Q2; the first end of the first transistor Q1 is connected to the charging switch module 10, and the second end of the first transistor Q1 is grounded; the first end of the second transistor Q2 is connected to the control end of the first transistor Q1, the second end of the second transistor Q2 is connected to the power supply port A, and the control end of the second transistor Q2 is connected to the battery port B.

[0043] Optionally, in one embodiment, if Figure 3 As shown, the battery detection module 20 further includes: a resistor R4, a first end of the resistor R4 is connected to the control end of the first transistor Q1, and a second end of the resistor R4 is grounded.

[0044] Optionally, in one embodiment, if Figure 3 As shown, the charging switch module 10 includes a third transistor Q3, a first end of the third transistor Q3 is connected to the power supply port A, a second end of the third transistor Q3 is connected to the charging management chip 200, and a control end of the third transistor Q3 is connected to the first end of the first transistor Q1.

[0045] Optionally, in one embodiment, if Figure 3 As shown, the charging switch module 10 further includes a resistor R3, a first end of the resistor R3 is connected to the power supply port, and a second end of the resistor R3 is connected to the control end of the third transistor Q3.

[0046] In an optional embodiment, the first transistor Q1 is an NMOS transistor, the second transistor Q2 is a PMOS transistor, and the third transistor Q3 is a PMOS transistor.

[0047] When the communication switch module 30 is turned on, regardless of whether there is a battery at the battery terminal B at this time, the voltage of the battery terminal B is maintained at the first power supply voltage VDD1. Since the first power supply voltage VDD1 is less than VBUS, the gate voltage of the second transistor Q2 is less than the source voltage, the second transistor Q2 is turned on, and then the gate voltage of the first transistor Q1 is pulled up to VBUS, thereby turning on the first transistor Q1, and the gate of the third transistor Q3 is pulled down to "0", thereby turning on the third transistor Q3, and further connecting the adapter to the charging management chip 200.

[0048] When the communication switch module 30 is disconnected, the voltage at the battery terminal B depends on whether a battery is in place, specifically including the following two situations:

[0049] When a battery is in place at battery terminal B, resistors R1 and R2 divide the VBUS voltage, and the resistance value of resistor R2 can be set to be much smaller than resistor R1. Therefore, the gate voltage of the second transistor Q2 is smaller than the source voltage, and the second transistor Q2 is turned on, and then the gate voltage of the first transistor Q1 is pulled up to VBUS, thereby turning on the first transistor Q1, and the gate of the third transistor Q3 is pulled down to "0", thereby turning on the third transistor Q3, and further connecting the adapter to the charging management chip 200.

[0050] When there is no battery at the battery terminal B, the voltage of the battery terminal B is also VBUS, so the gate voltage of the second transistor Q2 is equal to the source voltage, and the second transistor Q2 is disconnected, thereby making the first transistor Q1 and the third transistor Q3 disconnected, and the adapter cannot connect to the charging management chip 200.

[0051] Therefore, through the above-mentioned method, the path between the adapter and the charging management chip 200 is kept conductive during communication, and the battery presence detection is performed during non-communication, and the path between the adapter and the charging management chip 200 is turned on and off according to the result of the battery presence detection.

[0052] Optionally, in one embodiment, if Figure 4 and Figure 5As shown, the communication switch module 30 includes a communication switch unit 31 and a communication switch control unit 32. The communication switch unit 31 is connected to the battery detection module 20 and the control chip 300, the second end of the communication switch unit 31 is connected to the control chip 300, and the second end of the communication switch unit 31 receives a first power supply voltage VDD1, which is less than the voltage provided by the adapter; the communication switch control unit 32 is connected to the communication switch unit 31 and the control chip 300; the communication switch control unit 32 is configured to control the communication switch unit 31 to be turned on or off in response to a control signal of the control chip 300.

[0053] Optionally, in one embodiment, the communication switch unit 31 includes a fourth transistor Q4 and a fifth transistor Q5. The first end of the fourth transistor Q4 is connected to the battery detection module 20, and the control end of the fourth transistor Q4 is connected to the communication switch control unit 32; the first end of the fifth transistor Q5 is connected to the second end of the fourth transistor Q4, the second end of the fifth transistor Q5 is connected to the control chip 300, and the control end of the fifth transistor Q5 is connected to the control end of the fourth transistor Q4.

[0054] Optionally, in one embodiment, the communication switch control unit 32 includes a sixth transistor Q6 and a seventh transistor Q7. The first end of the sixth transistor Q6 is connected to the control end of the fourth transistor Q4, and the second end of the sixth transistor Q6 is connected to the second power supply voltage VDD2; the first end of the seventh transistor Q7 is connected to the control end of the sixth transistor Q6, the second end of the seventh transistor Q7 is grounded, and the control end of the seventh transistor Q7 is connected to the control chip 300.

[0055] Optionally, in one embodiment, the communication switch control unit 32 is configured to control the communication switch unit 31 to be turned on in response to the control signal of the control chip 300 being at a first level, or to control the communication switch unit 31 to be turned off in response to the control signal of the control chip 300 being at a second level, the control signal is a periodic signal, and the duration of the first level in each period is less than the duration of the second level.

[0056] Optionally, in one embodiment, the communication switch module 30 also includes: a resistor R5, a resistor R6, a resistor R7, a resistor R8, a resistor R9 and a first diode M1; wherein, the first end of the resistor R5 is connected to the control end of the fourth transistor Q4, and the second end of the resistor R5 is grounded; the first end of the resistor R6 is connected to the control end of the sixth transistor Q6, and the second end of the resistor R6 is connected to the second power supply voltage VDD2; the first end of the resistor R7 is connected to the control end of the seventh transistor Q7, and the second end of the resistor R7 is grounded; the first end of the resistor R8 is connected to the control chip 300, and the second end of the resistor R8 is connected to the first power supply voltage VDD1; the first end of the resistor R9 is connected to the second end of the fourth transistor Q4, and the second end of the resistor R9 is grounded; the positive electrode of the first diode M1 is connected to the second end of the fifth transistor Q5, and the negative electrode of the first diode M1 is grounded, wherein the first diode M1 is a voltage stabilizing diode.

[0057] Optionally, in one embodiment, if Figure 1 and Figure 5 As shown, the fourth transistor Q4 is an NMOS transistor, the fifth transistor Q5 is an NMOS transistor, the sixth transistor Q6 is a PMOS transistor, and the seventh transistor Q7 is an NMOS transistor. Figure 5 When the 1-wire-Ctrl line in is configured as a high level, the gate voltage of the seventh transistor Q7 is pulled up to a high level, and the gate voltage of the seventh transistor Q7 is greater than the source voltage and is turned on. After the seventh transistor Q7 is turned on, the gate voltage of the sixth transistor Q6 is pulled down to a low level, and the gate voltage of the sixth transistor Q6 is less than the source voltage and is turned on. After the sixth transistor Q6 is turned on, the gate voltages of the fourth transistor Q4 and the fifth transistor Q5 are pulled up to a high level, thereby turning on the fourth transistor Q4 and the fifth transistor Q5, so that the entire communication switch module 30 is in an on state. When the battery is connected, the digital power supply (first power supply voltage VDD1) powered by the system IO is supplied by the line on the right side, and the gate of the second field effect tube is 3V3D, and the source is VBUS voltage. There is a potential difference so that the second field effect tube is turned on, and the conduction of the first field effect tube and the fifth field effect tube is further controlled to be turned on, so that the VBUS power supply path is opened and turned on; when the battery is unplugged, the digital power supply (first power supply voltage VDD1) powered by the system IO is continuously supplied due to the conduction of the communication control line on the right side of the figure, and the gate of the second field effect tube is still 3V3D voltage, and the source is still VBUS voltage, so as to control the VBUS power supply path to be opened and turned on. Since the VBUS power supply path will supply power to the power supply end of 3V3D, the second field effect tube is always in the on state, causing the VBUS control circuit to fail. Therefore, when the 1-wire-Ctrl line is configured to a high level, the battery's in-place detection and protection functions do not work and are in a failed state.

[0058] When Figure 5 When the 1-wire-Ctrl line in is configured as a low level, the entire communication switch module is in a disconnected state; when the battery is connected, the gate of the second field effect tube is close to 0V, and the source is the voltage of VBUS. There is a potential difference so that the second field effect tube is turned on, and then the conduction of the first field effect tube and the fifth field effect tube is controlled, so that the VBUS power supply path is turned on; when the battery is unplugged, the gate of the second field effect tube is the voltage of VBUS, and the source is also the voltage of VBUS, so the second field effect tube is still in a disconnected state, and then the first field effect tube and the fifth field effect tube are also in a closed state, and then the VBUS power supply path is closed; therefore, when the 1-wire-Ctrl line is configured as a low level, the battery in-situ detection and protection function takes effect, and the VBUS power supply circuit can be quickly turned on and off.

[0059] In order to solve the above problems, the present application also provides an electronic device, such as Figure 6 As shown, Figure 6 It is a structural diagram of an embodiment of an electronic device provided in the present application, wherein the electronic device 400 includes: a battery detection protection circuit, a control chip 300 and a charging management chip 200 as described in any of the above items, wherein the charging management chip 200 is connected to the battery detection protection circuit, the control chip 300 and the battery port B, and the charging management chip 200 is configured to supply power to the control chip 300 and / or charge the battery connected to the battery port B when the battery detection protection circuit turns on the path between the adapter and the charging management chip 200, so that the electronic device 400 can realize rapid in-situ detection of the battery during the process of plugging and unplugging the battery, so as to enhance the experience of the electronic device 400 during the charging and use process.

[0060] In this embodiment, the electronic device 400 may be a walkie-talkie, a mobile phone, etc.

[0061] Through the above-mentioned battery detection protection circuit, there is no need to change the existing battery architecture, and there is no need to add a dedicated battery presence detection electrode. Time-sharing multiplexing of communication and battery presence detection is realized on the communication electrode, saving PCB space and cost. The shortcomings of the current charging solution are solved through hardware, and the insertion and removal of the battery end are quickly detected, triggering circuit protection, stabilizing the working state and reducing abnormal freezes, and optimizing the charging experience for removable batteries during the charging process.

[0062] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A battery detection protection circuit, characterized in that: The battery detection protection circuit comprises: A charging switch module, used to connect a power supply port and a charging management chip, wherein the power supply port is used to connect an adapter; A battery detection module, connected to the charging switch module and a battery port, wherein the battery port is used for detachably connecting a battery; A communication switch module, connecting the battery detection module and the control chip; Among them, when the communication switch module turns on the communication path between the battery detection module and the control chip, the battery detection module controls the charging switch module to turn on the charging path between the adapter and the charging management chip; when the communication switch module disconnects the communication path between the battery detection module and the control chip, the battery detection module detects the presence of the battery, and controls the charging switch module to turn on the charging path between the adapter and the charging management chip when it is detected that the battery is in place, and controls the charging switch module to disconnect the charging path between the adapter and the charging management chip when it is detected that the battery is not in place.

2. The battery detection protection circuit according to claim 1, characterized in that: One end of the communication switch module connected to the control chip is configured to input a first power supply voltage, the first power supply voltage is less than the voltage provided by the adapter, and the battery detection module includes: A voltage dividing unit, wherein a first end of the voltage dividing unit is connected to the power supply port, and a voltage dividing node of the voltage dividing unit is connected to the battery port and the communication switch module; A charging switch control unit, connected to the voltage division node of the voltage division unit and the charging switch module; Among them, when the communication switch module turns on the communication path between the battery detection module and the control chip or the battery is in place, the charging switch control unit controls the charging switch module to turn on; when the communication switch module disconnects the communication path between the battery detection module and the control chip and the battery is not in place, the charging switch control unit controls the charging switch module to turn off.

3. The battery detection protection circuit according to claim 2, characterized in that: The voltage dividing unit comprises a resistor, a first end of the resistor is connected to the power supply port, and a second end of the resistor is connected to the battery port and the communication switch module.

4. The battery detection protection circuit according to claim 2, characterized in that: The charging switch control unit comprises: A first transistor, wherein a first end of the first transistor is connected to the charging switch module, and a second end of the first transistor is grounded; A second transistor, wherein a first end of the second transistor is connected to the control end of the first transistor, a second end of the second transistor is connected to the power supply port, and a control end of the second transistor is connected to the battery port.

5. The battery detection protection circuit according to claim 4, characterized in that: The charging switch module includes a third transistor, a first end of the third transistor is connected to the power supply port, a second end of the third transistor is connected to the charging management chip, and a control end of the third transistor is connected to the first end of the first transistor.

6. The battery detection protection circuit according to claim 1, characterized in that: The communication switch module comprises: A communication switch unit, the communication switch unit is connected to the battery detection module and the control chip, and the communication switch unit is used to receive a first power supply voltage, wherein the first power supply voltage is less than a voltage provided by the adapter; A communication switch control unit, connecting the communication switch unit and the control chip; The communication switch control unit is configured to control the communication switch unit to be turned on or off in response to a control signal of the control chip.

7. The battery detection protection circuit according to claim 6, characterized in that: The communication switch unit comprises: a fourth transistor, wherein a first end of the fourth transistor is connected to the battery detection module, and a control end of the fourth transistor is connected to the communication switch control unit; A fifth transistor, wherein a first end of the fifth transistor is connected to a second end of the fourth transistor, a second end of the fifth transistor is connected to the control chip, and a control end of the fifth transistor is connected to a control end of the fourth transistor.

8. The battery detection protection circuit according to claim 7, characterized in that: The communication switch control unit comprises: a sixth transistor, wherein a first end of the sixth transistor is connected to the control end of the fourth transistor, and a second end of the sixth transistor is used to connect to a second power supply voltage; A seventh transistor, wherein a first end of the seventh transistor is connected to the control end of the sixth transistor, a second end of the seventh transistor is grounded, and the control end of the seventh transistor is connected to the control chip.

9. The battery detection protection circuit according to claim 6, characterized in that: The communication switch control unit is configured to control the communication switch unit to be turned on in response to the control signal of the control chip being at a first level, or to control the communication switch unit to be turned off in response to the control signal of the control chip being at a second level, the control signal is a periodic signal, and the duration of the first level in each period is less than the duration of the second level.

10. An electronic device, characterized in that: The electronic device comprises: The battery detection protection circuit according to any one of claims 1 to 9; Control chip; A charging management chip is connected to the battery detection protection circuit, the control chip and the battery port. The charging management chip is configured to supply power to the control chip and / or charge the battery connected to the battery port when the battery detection protection circuit turns on the path between the adapter and the charging management chip.