Key control circuit, method and related equipment for battery connection or disconnection

By designing a key control circuit for battery access or disengagement, the key recognition module and processing module recognize external key actions and control the on-off of the battery charging and discharging path, the problem of single battery access and disengagement methods in the prior art is solved. , improves user experience and battery life, and reduces energy consumption.

CN114448411BActive Publication Date: 2025-01-10SG MICRO CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011202384.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-02
Publication Date
2025-01-10
Estimated Expiration
2040-11-02

AI Technical Summary

Technical Problem

The existing battery access and disengagement methods are single, the user experience is poor, and long-term power supply during the device standby will shorten the battery life.

Method used

A key control circuit for battery access or disengagement is designed. Through the key recognition module and the processing module, external key actions are recognized, driving signals are generated based on timing and protection trigger signals, and the on-off of the battery charging and discharging circuit path is controlled to provide diversification. access and disengagement methods.

Benefits of technology

It realizes external controllability of the battery charging and discharging circuit path, enhances user experience, extends battery life, and reduces system energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114448411B_ABST
    Figure CN114448411B_ABST
Patent Text Reader

Abstract

The present invention discloses a key control circuit, method and related equipment for battery connection or disconnection, the circuit includes: a key recognition module, used to recognize the key action for an external key, and output a key indication signal according to the recognition result; a key processing module, connected to the key recognition module, used to judge whether the key action indicates battery connection or disconnection according to the level state of the control signal of the circuit main power tube when the key indication signal is valid, and generate a first drive signal based on one of the first clock signal and the second clock signal and the protection trigger indication signal according to the judgment result to trigger the on-off control of the battery charging and discharging path. The present invention can make the on-off state of the battery charging and discharging path externally controllable, increase the diversity of the control methods for battery connection and disconnection, facilitate the user's application selection, and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of batteries, and in particular to a key control circuit and method for battery connection or disconnection and related equipment. Background Art

[0002] With the development of technology, people have put forward higher requirements on the working life of some battery-powered devices. People always hope that battery-powered devices can extend their working life as much as possible and reduce the number of battery replacements. Equipment R&D and production manufacturers are also constantly looking for solutions to optimize power consumption or increase the life of backup batteries.

[0003] In actual use, a considerable number of battery-powered devices do not require long-term continuous power supply, such as smart water meters, gas meters, some POS machines, mobile smart devices, etc. In actual applications, the batteries of these devices often only need to be powered when in use, and can be in low-power standby state at other times. At this time, if the battery is always powered, the battery life will be greatly reduced. Even if the manufacturer uses a low-power processor, the standby power consumption of these devices that work in years cannot be ignored.

[0004] Currently, battery connection mostly uses manual activation of the chip and connection to the battery in a similar way to inserting a charger. Battery disconnection mainly relies on the triggering of the protection state. Through internal circuit control, the power tube on the loop is turned off to achieve disconnection. To connect again, the charger must still be inserted. The connection and disconnection methods are relatively simple, and the user experience is poor.

[0005] Therefore, it is necessary to provide an improved technical solution to overcome the above technical problems existing in the prior art. Summary of the invention

[0006] In order to solve the above technical problems, the present invention provides a key control circuit, method and related equipment for battery connection or disconnection, which can make the on and off states of the battery charging and discharging paths externally controllable, increase the diversity of control methods for battery connection and disconnection, facilitate user application selection, and enhance user experience.

[0007] On the one hand, a key control circuit for battery connection or disconnection provided by the present invention includes: a key recognition module, used to recognize a key action on an external key, and output a key indication signal according to the recognition result, wherein when the key indication signal is valid, it indicates that the key action is valid; a key processing module, connected to the key recognition module, receiving the key indication signal, a first clock signal, a second clock signal, a protection trigger indication signal and a control signal, used to judge whether the key action indicates battery connection or disconnection according to the level state of the control signal when the key indication signal is valid, and based on the judgment result, one of the first clock signal and the second clock signal, and the protection trigger indication signal, the key processing module is connected to the key recognition module, receiving the key indication signal, a first clock signal, a second clock signal, a protection trigger indication signal and a control signal, and determining whether the key action indicates battery connection or disconnection according to the level state of the control signal when the key indication signal is valid. The protection trigger indication signal generates a first drive signal, and the first drive signal is used to trigger the on-off control of the charging and discharging path of the battery, wherein, when the key action is to indicate that the battery is disconnected, the key processing module starts timing based on the first clock signal, and generates the first drive signal with a first level state when the timing value reaches a first threshold; when the key action is to indicate that the battery is connected and the protection trigger indication signal is invalid, the key processing module starts timing based on the second clock signal, and generates the first drive signal with a second level state when the timing value reaches a second threshold, and when the protection trigger indication signal is invalid, it indicates that the current battery protection is not triggered.

[0008] Optionally, when the button action is to indicate battery detachment, the button processing module also receives a charge and discharge indication signal, and is used to switch the first drive signal to a second level state when the charge and discharge indication signal is valid. When the charge and discharge indication signal is valid, it indicates that the current battery is in a charging state.

[0009] Optionally, the key processing module also receives a third clock signal, and is used to start timing based on the third clock signal when generating the first drive signal having the first level state, and to generate a second drive signal when the timing value reaches a third threshold, and the second drive signal is used to trigger the shutdown or sleep control of the battery protection chip.

[0010] Optionally, the key recognition module includes: a first transistor, a second transistor, a third transistor and a fourth transistor connected in series between the positive terminal of the battery and the negative terminal of the battery, the gate of the first transistor is connected to the drain of the first transistor, the gates of the second transistor and the third transistor are both connected to the key recognition terminal through a first resistor, and the gate of the fourth transistor is connected to the drain of the fourth transistor; a fifth transistor and a sixth transistor connected in series between the positive terminal of the battery and the negative terminal of the battery, the gates of the fifth transistor and the sixth transistor are both connected to a first node; and a first inverter connected between the first node and the key indication signal output terminal, wherein the first node corresponds to the connection node of the second transistor and the third transistor; the first transistor, the second transistor and the fifth transistor are all PMOS transistors, the third transistor, the fourth transistor and the sixth transistor are all NMOS transistors, wherein the potential of the key recognition terminal is in a high level state when there is a key action on the external key.

[0011] Optionally, the key recognition module further includes: a seventh transistor, the drain of the seventh transistor is connected to the gate of the second transistor, the source of the seventh transistor is connected to the negative terminal of the battery, and the gate of the seventh transistor is connected to the source of the seventh transistor.

[0012] Optionally, the key recognition module further includes: a second resistor, wherein the second resistor is connected between the gate of the second transistor and a second node, wherein the second node corresponds to a connection node between the fifth transistor and the sixth transistor.

[0013] Optionally, the key recognition module includes: an eighth transistor, a ninth transistor, a tenth transistor and an eleventh transistor connected in series between the positive terminal of the battery and the negative terminal of the battery, the gate of the eighth transistor is connected to the drain of the eighth transistor, the gates of the ninth transistor and the tenth transistor are both connected to the key recognition terminal through a third resistor, and the gate of the eleventh transistor is connected to the drain of the eleventh transistor; a twelfth transistor and a thirteenth transistor connected in series between the positive terminal of the battery and the negative terminal of the battery, the gates of the twelfth transistor and the thirteenth transistor are both connected to a third node; and a second inverter connected between the fourth node and the key indication signal output terminal, wherein the third node corresponds to the connection node of the ninth transistor and the tenth transistor, and the fourth node corresponds to the connection node of the twelfth transistor and the thirteenth transistor; the eighth transistor, the ninth transistor and the twelfth transistor are all PMOS transistors, the tenth transistor, the eleventh transistor and the thirteenth transistor are all NMOS transistors, wherein the potential of the key recognition terminal is in a low level state when the external key has a key action.

[0014] Optionally, the key recognition module also includes: a fourteenth transistor, the drain of the fourteenth transistor is connected to the gate of the ninth transistor, the source of the fourteenth transistor is connected to the negative terminal of the battery, and the gate of the fourteenth transistor is connected to the source of the fourteenth transistor.

[0015] Optionally, the key recognition module further includes: a fourth resistor, wherein the fourth resistor is connected between the gate of the ninth transistor and the fourth node.

[0016] Optionally, the key processing module includes: a first timer, used to start timing based on the first clock signal when the key indication signal and the control signal are both valid, and output a disengagement indication signal when the timing value reaches the first threshold; a third inverter, whose input end receives the control signal; a second timer, connected to the output end of the third inverter, used to start timing based on the second clock signal when the key indication signal is valid and the protection trigger indication signal and the control signal are both invalid, and output an access indication signal when the timing value reaches the second threshold; a latch, respectively connected to the output ends of the first timer and the second timer, used to output an initial first drive signal after latching the disengagement indication signal or the access indication signal, and a logic judgment unit, connected to the output end of the latch, used to generate a first drive signal according to the initial first drive signal.

[0017] Optionally, the logic judgment unit further receives the charge and discharge indication signal, and is configured to generate a feedback signal to the second timer when the charge and discharge indication signal is valid, so as to control the second timer to output the access indication signal.

[0018] Optionally, the logic judgment unit also receives the third clock signal, and is used to start timing based on the third clock signal when the first drive signal is in the first level state, and generate the second drive signal when the timing value reaches the third threshold.

[0019] On the other hand, a battery protection chip provided according to the present invention, such as the above-mentioned key control circuit for battery connection or disconnection, is used to identify the key action on the external key and generate a drive signal according to the identification result; the drive control circuit is connected to the key control circuit for battery connection or disconnection, and is used to generate a control signal according to the drive signal, and the control signal is used to realize the shutdown control of the battery charging and discharging path.

[0020] On the other hand, according to the present invention, there is provided an electrical device, comprising a button; a battery; and a battery protection chip as described above, which is respectively connected to the button and the battery to provide a connected / disconnected charging and discharging path for the battery according to the button action.

[0021] On the other hand, according to the present invention, a key control circuit method for battery connection or disconnection is provided. The method can be applied to the key control circuit for battery connection or disconnection as described above, including: identifying a key action for an external key; when it is identified that the key action is valid, judging whether the key action indicates battery connection or disconnection based on the on-off state of the main power tube of the current circuit; when the key action indicates battery disconnection, timing the effective time of the key action, if the key action continues to be effective during the process of the timing value reaching a first threshold, triggering the shutdown control of the battery's charging and discharging path; when the key action indicates battery connection and there is no protection trigger in the current circuit, timing the effective time of the key action, if the key action continues to be effective during the process of the timing value reaching a second threshold, triggering the conduction control of the battery's charging and discharging path.

[0022] Optionally, after triggering the shutdown control of the battery's charge and discharge path, it also includes: judging the charge and discharge state of the battery before the charge and discharge path of the battery is shut down; if the battery is determined to be in a charging state, triggering the conduction control of the battery's charge and discharge path; if the battery is determined to be in a discharging state, maintaining the shutdown control of the battery's charge and discharge path.

[0023] Optionally, after determining that the battery is in a discharge state, the method further includes: starting timing, and triggering shutdown or sleep control of the battery protection chip when the timing value reaches a third threshold.

[0024] The beneficial effects of the present invention are as follows: the present invention discloses a key control circuit, method and related equipment for battery connection or disconnection. By setting a key recognition circuit, the validity recognition of the key action for the external key can be realized. Then, when the external key action is valid, the key processing module judges whether the key purpose indicated by the current key action is to control the battery connection or disconnection according to the control signal representing the on-off state of the main power tube of the circuit, and starts timing based on different clock signals according to the judgment result to judge whether the key action is truly valid, thereby avoiding false triggering. After the timing value reaches the corresponding threshold, a first driving signal of different level states is generated to trigger the on-off control of the battery charging and discharging path, and the control of the on-off state of the battery charging and discharging path (i.e., battery connection or disconnection) is realized through an external key, which increases the diversity of the control methods for battery connection and disconnection, facilitates the user's application selection, and enhances the user experience. At the same time, before timing, based on the judgment of the protection trigger indication signal, it is possible to avoid damage to the battery or circuit caused by turning on the power tube in the protection state, thereby improving the safety of key control.

[0025] The key processing module is used to judge the current charge and discharge status of the battery based on the charge and discharge indication signal according to the principle of uninterrupted charging, and then the level state of the output first drive signal is selected according to the judgment result. This can realize continuous and uninterrupted charging of the battery when the battery is in the charging state, which helps to improve the service life of the battery.

[0026] Based on the third clock signal, the entire battery protection chip is controlled to be turned off or put to sleep after a certain period of time when the battery's charge and discharge path is turned off, which helps to reduce system energy consumption. On the other hand, the present disclosure adopts a control method of controlling the battery connection or disconnection by a key, which can control the entire battery protection chip to be turned off or put to sleep after a certain period of time when the battery's charge and discharge path is turned off without affecting the reopening of the battery's charge and discharge path (when turned on, the chip can be awakened according to the key circuit outside the chip). Compared with the control method that requires the chip to monitor the battery status and automatically turn on the charge and discharge path, it can effectively reduce power consumption and save energy.

[0027] In the key recognition module connection structure disclosed in the present invention, effective key recognition can be achieved for different external key circuits (circuit structures for high-level trigger recognition or circuit structures for low-level trigger recognition), and it has wide applicability.

[0028] Providing a connection structure such as the seventh transistor or the fourteenth transistor in the key recognition module helps to improve the surge protection characteristics of the key recognition module and improve the circuit performance.

[0029] A connection structure such as a second resistor or a fourth resistor is set in the key recognition module. When the key recognition terminal of the circuit is suspended outside, the default key recognition terminal potential can be set by the second resistor or the fourth resistor to ensure the stability of the circuit.

[0030] It should be noted that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings.

[0032] Figure 1 A structural block diagram of a key control circuit for battery connection or disconnection provided according to an embodiment of the present disclosure is shown;

[0033] Figure 2 A schematic diagram showing the circuit structure of a key recognition module provided according to the first embodiment of the present disclosure is shown;

[0034] Figure 3 A schematic diagram showing the circuit structure of a key recognition module provided according to a second embodiment of the present disclosure is shown;

[0035] Figure 4 A structural schematic diagram of a key processing module provided according to an embodiment of the present disclosure is shown;

[0036] Figure 5 A flowchart of a key control method for battery connection or disconnection provided according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0037] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0039] Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

[0040] Figure 1 A structural block diagram of a key control circuit for battery connection or disconnection provided according to an embodiment of the present disclosure is shown. Figure 2 FIG. 1 is a schematic diagram showing a circuit structure of a key recognition module provided according to the first embodiment of the present disclosure. Figure 3 FIG. 1 shows a circuit structure diagram of a key recognition module provided according to a second embodiment of the present disclosure. Figure 4 A structural schematic diagram of a key processing module provided according to an embodiment of the present disclosure is shown.

[0041] like Figure 1 As shown, in this embodiment, the key control circuit for battery connection or disconnection (hereinafter referred to as key control circuit) includes: a key recognition module 100 and a key processing module 200.

[0042] The key recognition module 100 is used to recognize key actions on external keys and output a key indication signal Key_in according to the recognition result. When the key indication signal Key_in is valid, it indicates that the key action is valid, for example, when the key indication signal Key_in is in a high level state, it is valid.

[0043] The key recognition module 100 is mainly based on different peripheral configurations (such as Figure 2 and Figure 3 The external key T1 and resistor R5 in the dotted line part) are shown in the figure. When the key T1 is pressed, the key recognition module 100 recognizes the key action according to the potential change of the circuit after the key T1 is pressed, and outputs a valid (such as a high level) key indication signal Key_in to indicate that there is an external key request at this moment. It should be understood that Figure 2 and Figure 3 The peripheral configuration circuit structure in the dotted line part is only a simple exemplary structure, which is only used to show the potential change on the key recognition terminal F when the external key has a key action, that is, the key is closed, so as to facilitate the understanding of the application scenario of the key recognition module 100 of the present disclosure. Therefore, for other circuit structures that can realize the high and low potential switching configuration on the key recognition terminal F through key operation, the key recognition module 100 in the present disclosure can also perform effective recognition, and should also be within the protection scope of the present invention.

[0044] In the first embodiment of the present disclosure, reference Figure 2In this embodiment, the key recognition module 100 is a peripheral configuration structure for identifying pull-up (i.e., a circuit structure corresponding to high-level trigger recognition). That is to say, when the key recognition structure of the present embodiment is connected to the configuration circuit of the external key, in the default state (i.e., the key T1 is in the off state), the potential of the key recognition terminal F is in a low-level state, and when the key T1 has a key action, i.e., is in the closed state, the potential of the key recognition terminal F is in a high-level state. The key recognition module 100 specifically includes: a first resistor R1, a first transistor Mp1, a second transistor Mp2, a third transistor Mn2, a fourth transistor Mn3, a fifth transistor Mp3, a sixth transistor Mn4, and a first inverter U1. Among them, the first transistor Mp1, the second transistor Mp2, the third transistor Mn2 and the fourth transistor Mn3 are connected in series between the positive terminal BYPS of the battery and the negative terminal BATN of the battery, and the gate of the first transistor Mp1 is connected to the drain of the first transistor Mp1, the gates of the second transistor Mp2 and the third transistor Mn2 are connected to the key identification terminal F through the first resistor R1, and the gate of the fourth transistor Mn3 is connected to the drain of the fourth transistor Mn3. The fifth transistor Mp3 and the sixth transistor Mn4 are connected in series between the positive terminal BYPS of the battery and the negative terminal BATN of the battery, and the gates of the fifth transistor Mp3 and the sixth transistor Mn4 are connected to the first node a. The first inverter U1 is connected between the first node a and the key indication signal output terminal. Among them, the first node a corresponds to the connection node of the second transistor Mp2 and the third transistor Mn2.

[0045] Further, in the present embodiment, the first transistor Mp1, the second transistor Mp2 and the fifth transistor Mp3 are all PMOS transistors, and the third transistor Mn2, the fourth transistor Mn3 and the sixth transistor Mn4 are all NMOS transistors.

[0046] Furthermore, in this embodiment, the key recognition module 100 further includes: a seventh transistor Mn1. The drain of the seventh transistor Mn1 is connected to the gate of the second transistor Mp2, the source of the seventh transistor Mn1 is connected to the negative terminal BATN of the battery, and the gate of the seventh transistor Mn1 is connected to the source of the seventh transistor Mn1. The seventh transistor Mn1 is, for example, an NMOS transistor. The seventh transistor Mn1 helps to improve the surge protection characteristics of the key recognition module 100 in this embodiment and improve the circuit performance.

[0047] Furthermore, in this embodiment, the key recognition module 100 further includes: a second resistor R2. The second resistor R2 is connected between the gate of the second transistor Mp2 and the second node b. The second node b corresponds to the connection node of the fifth transistor Mp3 and the sixth transistor Mn4. When the circuit key recognition terminal F is suspended externally, the default key recognition terminal potential can be set by the second resistor R2 to ensure the stability of the circuit.

[0048] In this embodiment, when the key T1 is pressed and in the on state, the key identification terminal F is pulled up to a high potential by the key T1, thereby the third transistor Mn2 and the fourth transistor Mn3 are turned on, the first transistor Mp1 and the second transistor Mp2 are turned off, the first node a is pulled down to a low potential, and after passing through the first inverter U1, the key indication signal Key_in outputted by the key indication signal output terminal is also a high level (valid state), indicating that there is a key action at present. When the key action is terminated, under the action of the resistor R5, the key identification terminal F is pulled down to a low potential, thereby the third transistor Mn2 and the fourth transistor Mn3 are turned off, the first transistor Mp1 and the second transistor Mp2 are turned on, the first node a is pulled up to a high potential, and after passing through the first inverter U1, the key indication signal Key_in outputted by the key indication signal output terminal is also a low level (invalid state), indicating that the current key action is released.

[0049] In the second embodiment of the present disclosure, refer to Figure 3In this embodiment, the key recognition module 100 is a peripheral configuration structure for identifying a pull-down type (i.e., a circuit structure corresponding to low-level trigger recognition). That is to say, when the key recognition structure of the structure of this embodiment is connected to the configuration circuit of an external key, in the default state (i.e., the key T1 is in the off state), the potential of the key recognition terminal F is in a high-level state, and when the key T1 has a key action, i.e., is in a closed state, the potential of the key recognition terminal F is in a low-level state. The key recognition module 100 specifically includes: a third resistor R3, an eighth transistor Mp4, a ninth transistor Mp5, a tenth transistor Mn6, an eleventh transistor Mn7, a twelfth transistor Mp6, a thirteenth transistor Mn8, and a second inverter U2. Among them, the eighth transistor Mp4, the ninth transistor Mp5, the tenth transistor Mn6 and the eleventh transistor Mn7 are connected in series between the positive terminal BYPS of the battery and the negative terminal BATN of the battery, the gate of the eighth transistor Mp4 is connected to the drain of the eighth transistor Mp4, the gates of the ninth transistor Mp5 and the tenth transistor Mn6 are connected to the key identification terminal F through the third resistor R3, and the gate of the eleventh transistor Mn7 is connected to the drain of the eleventh transistor Mn7. The twelfth transistor Mp6 and the thirteenth transistor Mn8 are connected in series between the positive terminal BYPS of the battery and the negative terminal BATN of the battery, and the gates of the twelfth transistor Mp6 and the thirteenth transistor Mn8 are connected to the third node c. The second inverter U2 is connected in series between the fourth node d and the key indication signal output terminal. Among them, the third node c corresponds to the connection node of the ninth transistor Mp5 and the tenth transistor Mn6, and the fourth node d corresponds to the connection node of the twelfth transistor Mp6 and the thirteenth transistor Mn8.

[0050] Further, the eighth transistor Mp4, the ninth transistor Mp5 and the twelfth transistor Mp6 are all PMOS transistors, and the tenth transistor Mn6, the eleventh transistor Mn7 and the thirteenth transistor Mn8 are all NMOS transistors.

[0051] Furthermore, in this embodiment, the key recognition module 100 further includes: a fourteenth transistor Mn5. The drain of the fourteenth transistor Mn5 is connected to the gate of the ninth transistor Mp5, the source of the fourteenth transistor Mn5 is connected to the negative terminal BATN of the battery, and the gate of the fourteenth transistor Mn5 is connected to the source of the fourteenth transistor Mn5. The fourteenth transistor Mn5 is an NMOS transistor. The fourteenth transistor Mn5 helps to improve the surge protection characteristics of the key recognition module 100 and improve the circuit performance.

[0052] Furthermore, in this embodiment, the key recognition module 100 further includes: a fourth resistor R4. The fourth resistor R4 is connected between the gate of the ninth transistor Mp5 and the fourth node d. When the circuit key recognition terminal F is externally suspended, the fourth resistor R4 can be used to set a default key recognition terminal potential to ensure the stability of the circuit.

[0053] In this embodiment, when the key T1 is pressed and in the on state, the key identification terminal F is pulled up to a low potential by the key T1, thereby the eighth transistor Mp4 and the ninth transistor Mp5 are turned on, the tenth transistor Mn6 and the eleventh transistor Mn7 are turned off, the first node a is pulled up to a high potential, so that the twelfth transistor Mp6 is turned off, the thirteenth transistor Mn8 is turned on, and the second node d is pulled down to a low potential. After passing through the second inverter U2, the key indication signal Key_in outputted from the key indication signal output terminal is converted to a high level (valid state), indicating that there is currently a key action. When the key action is terminated, under the action of resistor R5, the key identification terminal F is pulled up to a high potential, thereby the eighth transistor Mp4 and the ninth transistor Mp5 are turned off, the tenth transistor Mn6 and the eleventh transistor Mn7 are turned on, the first node a is pulled down to a low potential, so that the twelfth transistor Mp6 is turned on, the thirteenth transistor Mn8 is turned off, the second node d is pulled up to a high potential, and after passing through the second inverter U2, the key indication signal Key_in outputted from the key indication signal output terminal is converted to a low level (invalid state), indicating that the current key action is released.

[0054] Combination Figure 2 and Figure 3 It can be easily understood that the circuit structures of the key recognition circuits 100 in the two different embodiments shown in the present disclosure are basically the same, and the only difference is that the externally connected key circuit structures are different, and the number of inverters in the effective access circuit is different. In this way, based on the key recognition module connection of the present disclosure, only one inverter in the key recognition module 100 needs to be short-circuited or access-controlled to achieve effective key action recognition for different external key circuits (pull-up structure or pull-down structure), and the applicability is wide. On the other hand, Figure 2 and Figure 3 The corresponding inverter may also be implemented by other logic gate circuits with hysteresis function, and the present invention is not limited to this.

[0055] It should be noted that the key recognition module 100 in the present disclosure includes but is not limited to the above Figure 2 and Figure 3 In other embodiments of the present disclosure, other circuit structures that can be thought of by those skilled in the art without creative work may also be used, as long as the functions implemented are the same as those of the present invention. Figure 2 or Figure 3The same or similar to those disclosed in .

[0056] Combination Figure 1 and Figure 4 The key processing module 200 is connected to the key identification module 300, and receives the key indication signal Key_in, the first clock signal Clk_off, the second clock signal Clk_on, the protection trigger indication signal Prot and the control signal Dry_h, so as to judge whether the key action indicates battery connection or disconnection according to the level state of the control signal Dry_h when the key indication signal Key_in is valid, and generate the first drive signal Func_dry based on one of the first clock signal Clk_off and the second clock signal Clk_on and the protection trigger indication signal Prot according to the judgment result, and the first drive signal Func_dry is used to trigger the on-off control of the charge and discharge path of the battery.

[0057] It should be noted that the protection trigger indication signal Prot is used to characterize whether the current battery or the protection chip connected to the battery has triggered any of the protection items. When the circuit (the integrated circuit in the battery protection chip) triggers any protection, the protection trigger indication signal Prot is in a valid state (such as a high level state). When the circuit is working normally, that is, the protection is not triggered, the protection trigger indication signal Prot defaults to an invalid state (such as a low level state). At the same time, the control signal Dry_h is a gate terminal control signal generated by the drive control circuit 300 in the battery protection chip based on the first drive signal Func_dry to control the on / off of the chip main power tube. When the control signal Dry_h is a high level, the main power tube can be controlled to be turned on, and when the control signal Dry_h is a low level, the main power tube can be controlled to be turned off. It should be understood that the valid key action identified when the main power tube is in the on state indicates that the battery is disconnected, and the valid key action identified when the main power tube is in the off state indicates that the battery is connected.

[0058] Further, when the key action is to indicate that the battery is disconnected, the key processing module 200 starts timing based on the first clock signal Clk_off, and generates a first drive signal Func_dry with a first level state (such as a high level) when the timing value reaches a first threshold; when the key action is to indicate that the battery is connected and the protection trigger indication signal Prot is invalid, the key processing module 200 starts timing based on the second clock signal Clk_on, and generates a first drive signal Func_dry with a second level state (such as a low level) when the timing value reaches a second threshold.

[0059] In this embodiment, the key processing module 200 is mainly composed of basic digital units. Figure 4, the key processing module 200 includes: a first timer 210, a third inverter U3, a second timer 220, a latch 230 and a logic judgment unit 240. Among them, the first timer 210 is used to start timing based on the first clock signal Clk_off when the key indication signal Key_in and the control signal Dry_h are both valid, and output the separation indication signal Func_off when the timing value reaches the first threshold. The input end of the third inverter U3 receives the control signal Dry_h, and the second timer 220 is connected to the output end of the third inverter U3, and is used to start timing based on the second clock signal Clk_on when the key indication signal Key_in is valid and the protection trigger indication signal Prot and the control signal Dry_h are both invalid, and output the access indication signal Func_on when the timing value reaches the second threshold. The latch 230 is connected to the output ends of the first timer 210 and the second timer 220 respectively, and is used to latch the separation indication signal Func_off or the access indication signal Func_on and output the initial first drive signal Func_dry0. The logic determination unit 240 is connected to the output terminal of the latch 230 , and is used to generate the first driving signal Func_dry according to the initial first driving signal Func_dry0 .

[0060] Further, when the key action is to indicate that the battery is detached, the key processing module 200 also receives the charge and discharge indication signal Chg_on, and is used to switch the first drive signal Func_dry to a second level state (such as a low level) when the charge and discharge indication signal Chg_on is valid. When the charge and discharge indication signal Chg_on is valid (such as a high level), it indicates that the current battery is in a charging state. In this embodiment, when the key action is to indicate that the battery is detached, the logic judgment unit 240 in the key processing module 200 receives the charge and discharge indication signal Chg_on, and is used to generate a feedback signal Rst to the second timer 220 when the charge and discharge indication signal Chg_on is valid, so as to control the second timer 220 to output the access indication signal Func_on, and then control the logic judgment unit 240 to output the first drive signal Func_dry with a second level state based on the access indication signal Func_on.

[0061] Furthermore, the key processing module 200 also receives a third clock signal Clk_pd, and is used to start timing based on the third clock signal Clk_pd when generating a first drive signal Func_dry having a first level state, and to generate a second drive signal Func_pd when the timing value reaches a third threshold, and the second drive signal Func_pd is used to trigger the shutdown or sleep control of the battery protection chip. In this embodiment, a third timer can be set in the logic judgment unit 240 in the key processing module 200, and when the first drive signal Func_dry having a first level state is generated, the third timer in the logic judgment unit 240 starts timing based on the third clock signal Clk_pd, and generates a second drive signal Func_pd when the timing value reaches the third threshold.

[0062] Optionally, in the present disclosure, the first clock signal Clk_off, the second clock signal Clk_on, and the third clock signal Clk_pd can be generated by an oscillator and a frequency division module inside the circuit, which will not be described in detail here. At the same time, the specific values ​​of the first threshold, the second threshold, and the third threshold can be the same or different, and should be specifically set according to the actual circuit application scenario, which will not be described in detail here.

[0063] Exemplarily, when a key is pressed, the key recognition module 100 recognizes and outputs a high-level key indication signal Key_in to the first or second timer. 1) If the control signal Dry_h is in a high-level state at this time, it indicates that the key action identified is to indicate battery detachment, and the second timer 220 does not work. At this time, regardless of the level state of the protection trigger indication signal Prot, the first timer 210 is triggered to start timing based on the first clock signal Clk_off. When the timing value reaches the first threshold value (that is, the key indication signal Key_in is continuously valid within the preset time), the first timer 210 generates a high-level detachment indication signal Func_off and inputs it to the latch 230. The latch 230 stores the state and outputs a high-level initial first drive signal Func_dry0 to the logic judgment unit 240. The logic judgment unit 240 outputs a high-level first drive signal Func_dry to the drive control circuit 300 to trigger the drive control circuit 300 to generate a low-level control signal to control the main power tube in the chip to turn off, and then disconnect the battery charging and discharging path to achieve battery detachment. At the same time, in the process of controlling the main power tube to shut down, the logic judgment unit 240 also includes judging the charge and discharge state based on the charge and discharge indication signal Chg_on. If the received charge and discharge indication signal Chg_on is at a high level, it indicates that the current state is charging. If the battery is provided with a non-stop charging principle, the logic judgment unit 240 generates a high-level feedback signal Rst to the second timer 220 to control the second timer 220 to immediately output the access indication signal Func_on, and then control the logic judgment unit 240 to output a low-level first drive signal Func_dry based on the access indication signal Func_on, turn on the main power tube, and continue to charge the battery to improve the battery life. If the received charge and discharge indication signal Chg_on is at a low level, it indicates that the current state is discharging, and then the logic judgment unit 240 starts timing based on the third clock signal Clk_pd, and generates a second drive signal Func_pd to the drive control circuit 300 when the timing value reaches the third threshold value, so as to trigger the drive control circuit 300 to realize the shutdown or sleep control of the battery protection chip, thereby reducing the system energy consumption.

[0064] 2) If the control signal Dry_h is in a low level state at this time, it means that the key action identified is to indicate battery connection, and the first timer 210 does not work. Afterwards, if the protection trigger indication signal Prot is in a high level state, that is, the main power tube inside the chip is turned off due to protection triggering, the second timer 220 is controlled to not work at this time, and the main power tube continues to be turned off until the protection state is completely released, and then the key indication signal Key_in is identified, so as to avoid damage to the battery or circuit caused by turning on the power tube in the protection state, thereby improving the safety of key control. If the protection trigger indication signal Prot is in a low level state, that is, there is no protection trigger inside the chip, the second timer 220 is controlled to start timing based on the second clock signal Clk_on. When the timing value reaches the second threshold value (that is, the key indication signal Key_in continues to be valid within the preset time), the second timer 220 generates a high level access indication signal Func_on and inputs it to the latch 230. The latch 230 stores the state and outputs a low level initial first drive signal Func_dry0 to the logic judgment unit 240. The logic judgment unit 240 outputs a low level first drive signal Func_dry to the drive control circuit 300, so as to trigger the drive control circuit 300 to generate a high level control signal to control the main power tube in the chip to turn on, thereby connecting the battery charging and discharging path to achieve battery access.

[0065] It is understandable that the first timer 210 and the second timer 220 used in the present disclosure both include an enable terminal. Exemplarily, when the enable terminal of the first timer 210 or the second timer 220 receives a high-level signal, the timing starts, and when a level signal is received, it does not work. That is, the clock signal, control signal Dry_h, key indication signal Key_in and protection trigger indication signal Prot received by the first timer 210 and the second timer 220 are all connected to the enable terminal of the first timer 210 or the second timer 220 after passing through the corresponding logic gate circuit to achieve the above functions. Since the logic gate circuit does not affect the description of the technical solution of the present disclosure, its specific structure is not introduced here. At the same time, this should not be a limitation on the technical integrity of the present disclosure.

[0066] In summary, the present disclosure can make the on / off state of the battery charging and discharging path externally controllable, increase the diversity of control methods for battery connection and disconnection, facilitate user application selection, and enhance user experience.

[0067] Figure 5 A flowchart of a key control method for battery connection or disconnection provided according to an embodiment of the present disclosure is shown.

[0068] In this embodiment, the key control method for battery connection or disconnection can be applied to the above-mentioned Figures 1 to 4The key control circuit and drive control circuit for battery connection or disconnection described in . Figure 5 As shown, the key control method includes executing steps S1 to S4.

[0069] refer to Figures 1 to 4 Specifically, in step S1, a key action for an external key is identified.

[0070] based on Figure 2 or Figure 3 The key recognition circuit shown, or other key recognition circuits that can be easily thought of by those skilled in the art (for example, a circuit conceived based on the principle that the output potential of the circuit can be switched high or low accordingly after the external key is pressed and restored) recognizes the key operation on the external key, and when the key is recognized to be valid, outputs a key indication signal Key_in such as a high level.

[0071] In step S2, when it is recognized that the key action is valid, it is determined based on the on / off state of the main power tube of the current circuit whether the key action indicates battery connection or disconnection.

[0072] When the key action is recognized to be valid, if the main power tube of the current circuit is in the on state (the control signal Dry_h in the corresponding circuit is in the high level state at this time), the key action can be determined to indicate that the battery is disconnected. When the key action is recognized to be valid, if the main power tube of the current circuit is in the off state (the control signal Dry_h in the corresponding circuit is in the low level state at this time), the key action can be determined to indicate that the battery is connected.

[0073] In step S3, when the key action indicates battery detachment, the effective time of the key action is timed, and if the key action remains effective while the time value reaches a first threshold, the shutdown control of the battery charge and discharge path is triggered.

[0074] That is to say, when the key indication signal Key_in and the control signal Dry_h are both in a high level state, the first timer 210 starts timing. If the key indication signal Key_in continues to be in a high level valid state within a certain timing time, that is, when the timing value reaches the first threshold, the control generates a high level drive signal Func_dry to the drive control circuit 300, so as to trigger the drive control circuit 300 to generate a low level control signal to control the main power tube in the chip to turn off, and then disconnect the battery charge and discharge path to achieve battery disconnection. If the key indication signal Key_in is not in a continuous high level valid state within a certain timing time, that is, when the timing value reaches the first threshold, the current battery charge and discharge state can continue to remain unchanged. In this way, false triggering is avoided and the reliability of the circuit is improved.

[0075] Furthermore, after triggering the shutdown control of the battery's charge and discharge path, it also includes: judging the charge and discharge state of the battery before the charge and discharge path of the battery is shut down; if it is determined that the battery is in a charging state, triggering the conduction control of the battery's charge and discharge path; if it is determined that the battery is in a discharging state, maintaining the shutdown control of the battery's charge and discharge path.

[0076] Furthermore, after determining that the battery is in a discharge state, the method further includes: starting timing, and triggering the shutdown or sleep control of the battery protection chip when the timing value reaches a third threshold.

[0077] In step S4, when the key action indicates battery connection and there is no protection trigger in the current circuit, the effective time of the key action is timed. If the key action continues to be effective while the timing value reaches the second threshold, the trigger realizes the conduction control of the battery charging and discharging path.

[0078] That is to say, when the key indication signal Key_in is in a high-level valid state, the control signal Dry_h is in a low-level state, and the protection trigger signal Prot is also in a low-level invalid state, the second timer 220 starts timing. If the key indication signal Key_in continues to be in a high-level valid state within a certain timing time, that is, when the timing value reaches the second threshold, the control generates a low-level drive signal Func_dry to the drive control circuit 300, so as to trigger the drive control circuit 300 to generate a high-level control signal to control the main power tube in the chip to turn on, and then connect the battery charging and discharging path to achieve battery access.

[0079] Based on the same inventive concept, the present disclosure also relates to a battery protection chip (or battery protector), the battery protection chip comprising: Figures 1 to 4 The key control circuit and drive control circuit for battery connection or disconnection described in . Among them, the key control circuit is used to identify the key action on the external key and generate a drive signal according to the identification result; the drive control circuit is connected to the key control circuit to generate a control signal according to the drive signal, and the control signal is used to realize the shutdown control of the battery charging and discharging path.

[0080] Based on the same inventive concept, the present disclosure also relates to an electrical device, which includes: a button, a battery, and a battery protection chip as described above, wherein the battery protection chip is respectively connected to the button and the battery to provide a connected or disconnected charging and discharging path for the battery according to the button action.

[0081] In summary, the present disclosure can realize the validity recognition of the key action for the external key by setting the key recognition circuit, and then when the external key action is valid, the key processing module determines whether the key purpose indicated by the current key action is to control the battery connection or disconnection according to the control signal representing the on-off state of the main power tube of the circuit, and starts timing based on different clock signals according to the judgment result to determine whether the key action is real and effective, thereby avoiding false triggering. After the timing value reaches the corresponding threshold, a first drive signal of different level states is generated to trigger the on-off control of the battery charging and discharging path, and the control of the on-off state of the battery charging and discharging path (i.e., battery connection or disconnection) is realized through external keys, which increases the diversity of the control methods for battery connection and disconnection, facilitates the user's application selection, and enhances the user experience. At the same time, before timing, based on the judgment of the protection trigger indication signal, it is possible to avoid damage to the battery or circuit caused by turning on the power tube in the protection state, thereby improving the safety of key control.

[0082] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0083] Finally, it should be noted that: Obviously, the above embodiments are only examples for clearly explaining the present invention, and are not intended to limit the implementation methods. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from this are still within the scope of protection of the present invention.

Claims

1. A key control circuit for battery connection or disconnection, wherein: include: A key recognition module, used to recognize key actions on external keys, and output a key indication signal according to the recognition result, wherein when the key indication signal is valid, it indicates that the key action is valid; A key processing module is connected to the key identification module, receives the key indication signal, the first clock signal, the second clock signal, the protection trigger indication signal and the control signal, and is used to judge whether the key action indicates battery connection or disconnection according to the level state of the control signal when the key indication signal is valid, and generate a first drive signal based on one of the first clock signal and the second clock signal and the protection trigger indication signal according to the judgment result, wherein the first drive signal is used to trigger the on-off control of the battery charging and discharging path, Wherein, when the key action is to indicate battery detachment, the key processing module starts timing the effective time of the key action based on the first clock signal, and generates the first driving signal with a first level state when the timing value reaches a first threshold; When the button action indicates that the battery is disconnected, the button processing module also receives a charge and discharge indication signal, and is used to switch the first drive signal to a second level state when the charge and discharge indication signal is valid, and when the charge and discharge indication signal is valid, it indicates that the current battery is in a charging state; When the key action indicates battery connection and the protection trigger indication signal is invalid, the key processing module starts timing the effective time of the key action based on the second clock signal, and generates the first driving signal with a second level state when the timing value reaches a second threshold value, and when the protection trigger indication signal is invalid, it indicates that the current battery protection is not triggered; When the button action indicates that the battery is connected and the protection trigger indication signal is valid, the battery charging and discharging path is kept in the off state.

2. The key control circuit according to claim 1, wherein: The key processing module also receives a third clock signal, and is used to start timing based on the third clock signal when generating the first drive signal with a first level state, and to generate a second drive signal when the timing value reaches a third threshold, and the second drive signal is used to trigger the shutdown or sleep control of the battery protection chip.

3. The key control circuit according to claim 1, wherein: The key recognition module comprises: A first transistor, a second transistor, a third transistor and a fourth transistor are sequentially connected in series between the positive terminal of the battery and the negative terminal of the battery, the gate of the first transistor is connected to the drain of the first transistor, the gates of the second transistor and the third transistor are both connected to the key recognition terminal through a first resistor, and the gate of the fourth transistor is connected to the drain of the fourth transistor; a fifth transistor and a sixth transistor connected in series between the positive terminal of the battery and the negative terminal of the battery, wherein the gates of the fifth transistor and the sixth transistor are both connected to the first node; and a first inverter connected between the first node and the key indication signal output terminal, Wherein, the first node corresponds to a connection node between the second transistor and the third transistor; The first transistor, the second transistor and the fifth transistor are all PMOS transistors, the third transistor, the fourth transistor and the sixth transistor are all NMOS transistors, Wherein, the potential of the key recognition terminal is in a high level state when the external key is pressed.

4. The key control circuit according to claim 3, wherein: The key recognition module also includes: A seventh transistor, wherein the drain of the seventh transistor is connected to the gate of the second transistor, the source of the seventh transistor is connected to the negative terminal of the battery, and the gate of the seventh transistor is connected to the source of the seventh transistor.

5. The key control circuit according to any one of claims 3 and 4, wherein: The key recognition module also includes: a second resistor connected between the gate of the second transistor and a second node, The second node corresponds to a connection node between the fifth transistor and the sixth transistor.

6. The key control circuit according to claim 1, wherein: The key recognition module comprises: an eighth transistor, a ninth transistor, a tenth transistor and an eleventh transistor connected in series between the positive terminal of the battery and the negative terminal of the battery, the gate of the eighth transistor is connected to the drain of the eighth transistor, the gates of the ninth transistor and the tenth transistor are both connected to the key recognition terminal through a third resistor, and the gate of the eleventh transistor is connected to the drain of the eleventh transistor; a twelfth transistor and a thirteenth transistor connected in series between the positive terminal of the battery and the negative terminal of the battery, wherein the gates of the twelfth transistor and the thirteenth transistor are both connected to a third node; and a second inverter connected between the fourth node and the key indication signal output terminal, The third node corresponds to a connection node between the ninth transistor and the tenth transistor, and the fourth node corresponds to a connection node between the twelfth transistor and the thirteenth transistor; The eighth transistor, the ninth transistor and the twelfth transistor are all PMOS transistors, the tenth transistor, the eleventh transistor and the thirteenth transistor are all NMOS transistors, Wherein, the potential of the key recognition terminal is in a low level state when the external key is pressed.

7. The key control circuit according to claim 6, wherein: The key recognition module also includes: A fourteenth transistor, wherein the drain of the fourteenth transistor is connected to the gate of the ninth transistor, the source of the fourteenth transistor is connected to the negative terminal of the battery, and the gate of the fourteenth transistor is connected to the source of the fourteenth transistor.

8. The key control circuit according to any one of claims 6 and 7, wherein: The key recognition module also includes: A fourth resistor is connected between the gate of the ninth transistor and the fourth node.

9. The key control circuit according to claim 2, wherein: The key processing module comprises: a first timer, configured to start timing based on the first clock signal when both the key indication signal and the control signal are valid, and output a separation indication signal when the timing value reaches the first threshold; A third inverter, an input terminal of which receives the control signal; a second timer connected to the output end of the third inverter, for starting timing based on the second clock signal when the key indication signal is valid and the protection trigger indication signal and the control signal are both invalid, and outputting an access indication signal when the timing value reaches the second threshold; A latch connected to the output end of the first timer and the second timer, respectively, for latching the separation indication signal or the connection indication signal and outputting an initial first driving signal; The logic judgment unit is connected to the output end of the latch and is used to generate a first driving signal according to the initial first driving signal.

10. The key control circuit according to claim 9, wherein: The logic judgment unit also receives the charge and discharge indication signal, and is used to generate a feedback signal to the second timer when the charge and discharge indication signal is valid, so as to control the second timer to output the access indication signal.

11. The key control circuit according to claim 10, wherein: The logic judgment unit also receives the third clock signal, and is used to start timing based on the third clock signal when the first driving signal is in the first level state, and to generate the second driving signal when the timing value reaches the third threshold.

12. A battery protection chip, wherein: include: A key control circuit for battery connection or disconnection according to any one of claims 1 to 11, used to identify a key action on an external key and generate a drive signal according to the identification result; The drive control circuit is connected to the key control circuit for connecting or disconnecting the battery, and is used to generate a control signal according to the drive signal, and the control signal is used to realize the shutdown control of the battery charging and discharging path.

13. An electrical device, wherein: include: button; Battery; The battery protection chip as claimed in claim 12 is connected to the button and the battery respectively, so as to provide a connected / disconnected charging and discharging path for the battery according to the button action.

14. A key control method for battery connection or disconnection, wherein: The key control method can be applied to a key control circuit for battery connection or disconnection as claimed in any one of claims 1 to 11, and the key control method comprises: Identify key presses on external keys; When it is recognized that the key action is valid, judging whether the key action indicates battery connection or disconnection based on the on / off state of the main power tube of the current circuit; When the key action indicates that the battery is disconnected, the effective time of the key action is counted, and if the key action is continuously valid during the process in which the timing value reaches a first threshold value, the shutdown control of the battery charging and discharging path is triggered; When the key action indicates that the battery is connected and there is no protection trigger in the current circuit, the effective time of the key action is timed. If the key action continues to be effective while the timing value reaches the second threshold, the trigger realizes the conduction control of the battery charging and discharging path.

15. The key control method according to claim 14, wherein: After triggering the shutdown control of the battery charging and discharging path, it also includes: Determine the charge and discharge state of the battery before the charge and discharge path of the battery is shut down; If the battery is determined to be in a charging state, the conduction control of the battery charging and discharging path is triggered; If it is determined that the battery is in a discharging state, the shutdown control of the charging and discharging paths of the battery is maintained.

16. The key control method according to claim 15, wherein: After determining that the battery is in a discharged state, the following steps are also included: Start timing, and when the timing value reaches a third threshold, trigger the battery protection chip to be turned off or put to sleep.

Citation Information

Patent Citations

  • Power protection system and method of mobile device

    CN104993558A

  • Power control device

    CN106026224A