Current detection circuit and current detection method
By designing a current detection circuit, the integration of the current conversion module, logic processing module and high-side drive module is solved, and the problem of poor reliability of battery current detection and diagnostic protection in the existing technology is achieved, and the battery current detection and protection effect is achieved. .
Patent Information
- Application Number
- CN202411345741.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-01-10
AI Technical Summary
In the prior art, the battery current detection and diagnostic protection is realized through different IC functional circuits, resulting in poor reliability of battery current detection and diagnostic protection.
Design a current detection circuit, including a current conversion module, a logic processing module and a high-side driving module, by converting the analog signal of the target battery cell into a digital signal, and performing comparison and detection based on a preset threshold, outputting the target signal to the high-side driving Module to determine whether to cut off external power supply.
The reliability of battery current detection and diagnostic protection is improved, and the effective protection of battery current detection is achieved through the integration of the current conversion module, logic processing module and high-side drive module.
Smart Images

Figure CN119291531A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of current detection, and in particular to a current detection circuit and a current detection method. Background Art
[0002] Cell current detection diagnosis protection is a basic requirement of the battery management controller (BMS) and is a necessary condition to ensure the safety of the BMS and prevent thermal runaway. However, the detection function and protection function are usually implemented by a combination of multiple different IC functional circuits, such as one responsible for the acquisition diagnosis function and the other responsible for the protection execution function. This method has high cost and design difficulty, and the frequency of failure is high. There is a problem of poor reliability of cell current detection diagnosis protection.
[0003] With regard to the problem that the reliability of the battery cell current detection diagnosis protection is poor due to the use of different IC functional circuits to implement the battery cell current detection diagnosis protection in the related technology, no effective solution has been proposed so far. Summary of the invention
[0004] The main purpose of the present application is to provide a current detection circuit and a current detection method to solve the problem in the related art that the battery cell current detection diagnosis protection is realized through different IC functional circuits, resulting in poor reliability of the battery cell current detection diagnosis protection.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a current detection circuit is provided. The current detection circuit comprises: a current conversion module, which is used to convert an analog signal corresponding to a target current of a target battery cell into a target current digital quantity; a logic processing module, which is connected to the current conversion module, and is used to output a target signal to a high-side driver module based on a comparison detection result between a preset threshold value and the target current digital quantity; and the high-side driver module, which is connected to the logic processing module, and is used to determine whether to cut off the external power supply based on the target signal.
[0006] Furthermore, the current conversion module includes: an analog-to-digital conversion module, connected to the digital correction module, for converting an analog signal corresponding to the target current of the target battery cell into a digital signal corresponding to the target current; and the digital correction module, for processing the digital signal corresponding to the target current to obtain the digital value of the target current.
[0007] Furthermore, the current conversion module also includes: an analog filter connected to the analog-to-digital conversion module, and configured to filter the received initial analog signal corresponding to the target current to obtain an analog signal corresponding to the target current.
[0008] Furthermore, the analog-to-digital conversion module includes: a carrier suppressed analog modulator, used to modulate the analog signal corresponding to the target current to obtain a modulated signal; a digital filter, connected to the carrier suppressed analog modulator, used to filter the modulated signal to obtain a digital signal corresponding to the target current.
[0009] Furthermore, the analog-to-digital conversion module includes: a first compensation module, connected to the digital filter, and configured to perform compensation processing when the digital filter performs filtering processing on the modulated signal, so as to obtain a digital signal corresponding to the target current.
[0010] Furthermore, the digital correction module includes: a digital corrector, connected to the analog-to-digital conversion module, for correcting the digital signal corresponding to the target current to obtain a corrected digital signal; a digital signal processor, connected to the digital corrector, for performing average value processing on the corrected digital signal to obtain the digital quantity of the target current; a second compensation module, connected to the digital corrector and the digital signal processor, for performing compensation processing when the digital corrector corrects the digital signal corresponding to the target current to obtain the corrected digital signal, and for performing compensation processing when the digital signal processor performs average value processing on the corrected digital signal to obtain the digital quantity of the target current.
[0011] Furthermore, the logic processing module also includes: an electronic buffer for receiving a control signal to drive the comparator module to work; the comparator module is used to output a target signal to the high-side driver module based on a comparison detection result between a preset threshold and the target current digital value.
[0012] Furthermore, the comparator module includes: a serial peripheral interface for receiving the target current digital quantity and writing the target current digital quantity into a register; the register for storing the target current digital quantity; and a comparator for outputting a target signal to a high-side driver module based on a comparison detection result between a preset threshold and the target current digital quantity.
[0013] Furthermore, the current detection circuit also includes: a boost circuit, connected to the high-side driver module and the logic processing module, wherein the logic processing module provides a clock signal to the boost circuit so that the boost circuit outputs a preset voltage value to the high-side driver module to drive the high-side driver module to operate based on the preset voltage value.
[0014] Furthermore, the boost circuit is a direct current boost circuit.
[0015] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a current detection method is provided. The method comprises: converting an analog signal corresponding to a target current of a target battery cell into a target current digital quantity through a current conversion module; outputting a target signal to a high-side driver module based on a comparison detection result between a preset threshold and the target current digital quantity through a logic processing module; and determining whether to cut off external power supply based on the target signal through the high-side driver module.
[0016] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein when the program is executed, the device where the storage medium is located is controlled to execute any one of the current detection methods described above.
[0017] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is further provided, the electronic device includes one or more processors and a memory, and the memory is used to store one or more processors to implement any one of the above-mentioned current detection methods.
[0018] Through this application, the following device is adopted: a current conversion module, which is used to convert the analog signal corresponding to the target current of the target battery cell into a target current digital quantity; a logic processing module, which is connected to the current conversion module, and is used to output the target signal to the high-side driver module based on the comparison detection result between the preset threshold and the target current digital quantity; the high-side driver module, which is connected to the logic processing module, is used to determine whether to cut off the external power supply based on the target signal, which solves the problem that the reliability of the battery current detection diagnosis protection is poor due to the different IC functional circuits used in the related art. In this scheme, the analog signal corresponding to the current of the target battery cell is converted into a target current digital quantity by the current conversion module, and then the logic processing module outputs the target signal to the high-side driver module based on the comparison detection result between the preset threshold and the target current digital quantity, and finally the high-side driver module determines whether to cut off the external power supply based on the target signal, and the battery current detection diagnosis protection is realized by the integration of the current conversion module, the logic processing module and the high-side driver module, thereby achieving the effect of improving the reliability of the battery current detection diagnosis protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1 is a schematic diagram of a current detection device provided according to an embodiment of the present application Figure 1 ;
[0021] Figure 2 is a schematic diagram of a current detection device provided according to an embodiment of the present application Figure 2 ;
[0022] Figure 3 is a schematic diagram of an analog-to-digital conversion module 100 provided according to an embodiment of the present application Figure 1 ;
[0023] Figure 4 is a schematic diagram of an analog-to-digital conversion module 100 provided according to an embodiment of the present application Figure 2 ;
[0024] Figure 5 is a schematic diagram of a current detection device provided according to an embodiment of the present application Figure 3 ;
[0025] Figure 6 is a schematic diagram of a logic processing module 20 provided according to an embodiment of the present application;
[0026] Figure 7 is a schematic diagram of a current detection device provided according to an embodiment of the present application Figure 4 ;
[0027] Figure 8 is a schematic diagram of a current detection device provided according to an embodiment of the present application Figure 5 ;
[0028] Fig. 9 is a flow chart of a current detection method provided according to an embodiment of the present application;
[0029] Among them, 10-voltage conversion module, 20-logic processing module, 30-high-side driver module, 100-analog-to-digital conversion module, 101-digital correction module, 1000-carrier suppression analog modulator, 1001-digital filter, 1002-first compensation module, 1010-digital corrector, 1011-digital signal processor, 1012-second compensation module, 200-electronic buffer, 201-comparator module, 2010-serial peripheral interface, 2011-register, 2012-comparator, 40-boost circuit. DETAILED DESCRIPTION
[0030] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution 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. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0034] The present invention is described below in conjunction with a preferred implementation device. Figure 1 is a schematic diagram of a current detection circuit provided according to an embodiment of the present application Figure 1 ,like Figure 1 As shown, the current detection circuit includes: a current conversion module 10 , a logic processing module 20 and a high-side driving module 30 .
[0035] A current conversion module 10, used to convert an analog signal corresponding to a target current of a target battery cell into a digital value of the target current;
[0036] The logic processing module 20 is connected to the current conversion module 10 and is used to output a target signal to the high-side driving module 30 based on a comparison detection result between a preset threshold value and a target current digital value;
[0037] The high-side driver module 30 is connected to the logic processing module 20 and is used to determine whether to cut off the external power supply based on the target signal.
[0038] Alternatively, if Figure 1 As shown, the current detection circuit provided in the embodiment of the present application at least includes a current conversion module 10, a logic processing module 20 and a high-side driver module 30. The current conversion module 10 is connected to the logic processing module 20, and the logic processing module 20 is connected to the high-side driver module 30. The analog signal corresponding to the target current of the target battery cell is received through the current conversion module 10. It should be noted that the current of the target battery cell can be collected by a current acquisition device, and then the collected current is input to the receiving PIN pin in the current conversion module 10. After receiving the analog signal corresponding to the target current of the target battery cell, the current conversion module 10 discretely quantizes and filters the analog current signal to extract the digital signal, and converts the obtained digital quantity into an accurate current digital quantity, thereby obtaining the above-mentioned target current digital quantity.
[0039] After obtaining the above-mentioned target current digital quantity, the current conversion module 10 can be transmitted to the logic processing module 20 through the serial peripheral interface (SPI interface), and the logic processing module 20 outputs the target signal to the high-side driver module 30 based on the comparison detection result between the preset threshold and the target current digital quantity, that is, the logic processing module performs a threshold judgment. According to the threshold judgment result, a response signal is triggered to the high-side driver module 30. The high-side driver module 30 determines whether to cut off the external power supply based on the target signal. For example, when the battery cell current value reaches the configuration threshold, the CMD logic control signal of the high-side driver module 30 is triggered to perform a shutdown action, thereby cutting off the external power supply of the battery for protection.
[0040] It should be noted that the CMD logic control signal of the high-side driver module 30 refers to a logic signal for controlling the switch state of the high-side driver. In the application of the high-side driver, these signals can be controlled through an SPI interface or other communication protocols.
[0041] It should be noted that the logic processing module 20 can be implemented by a digital comparator or a current detector.
[0042] In summary, the analog signal corresponding to the current of the target battery cell is converted into a target current digital quantity through the current conversion module, and then the logic processing module outputs the target signal to the high-side driver module based on the comparison detection result between the preset threshold and the target current digital quantity. Finally, the high-side driver module determines whether to cut off the external power supply based on the target signal, and realizes the cell current detection diagnosis protection through the integration of the current conversion module, the logic processing module and the high-side driver module, thereby achieving the effect of improving the reliability of the cell current detection diagnosis protection.
[0043] Optionally, in the current detection circuit provided in the embodiment of the present application, the current conversion module 10 includes: an analog-to-digital conversion module 100, connected to the digital correction module 101, for converting an analog signal corresponding to the target current of the target battery cell into a digital signal corresponding to the target current; the digital correction module 101, for processing the digital signal corresponding to the target current to obtain a digital value of the target current.
[0044] In an optional embodiment, if Figure 2 As shown, the current conversion module 10 includes an analog-to-digital conversion module 100 and a digital correction module 101. The analog-to-digital conversion module 100 is used to modulate the analog signal corresponding to the target current to obtain a modulated signal, for example, to discretize the analog signal, and then filter the discretized signal to extract the digital signal to obtain the digital signal corresponding to the above-mentioned target current. In order to improve the accuracy of the digital signal, the digital signal is verified and encoded by the digital correction module 101 to obtain an accurate current digital quantity, for example, the digital quantity is verified and encoded by register mapping control and NVM storage parameter configuration to obtain an accurate current digital quantity.
[0045] In an optional embodiment, a diagnostic module (DIAG) may also be provided in the current conversion module 10. The accuracy of the current value may be monitored and diagnosed by DIAG. DIAG may be used to detect whether the current conversion module 10 is operating normally, whether the current exceeds a threshold value, etc.
[0046] The digital current value corresponding to the battery cell can be accurately extracted through the analog-to-digital conversion module 100 and the digital correction module 101 .
[0047] Optionally, in the current detection circuit provided in the embodiment of the present application, the current conversion module 10 also includes: an analog filter 102, which is connected to the analog-to-digital conversion module 100, and is used to filter the received initial analog signal corresponding to the target current to obtain an analog signal corresponding to the target current.
[0048] In an optional embodiment, if Figure 3 As shown, the current conversion module 10 is further provided with an analog filter 102, which is connected to the analog-to-digital conversion module 100. The analog filter 102 filters the received initial analog signal corresponding to the target current to obtain an analog signal corresponding to the target current.
[0049] The analog filter can effectively remove or reduce unnecessary frequency components while retaining the required signal, thereby improving the accuracy of the subsequent analog signal corresponding to the target current.
[0050] Optionally, in the current detection circuit provided in the embodiment of the present application, the analog-to-digital conversion module 100 includes: a carrier suppression analog modulator 1000, used to modulate the analog signal corresponding to the target current to obtain a modulated signal; a digital filter 1001, connected to the carrier suppression analog modulator 1000, used to filter the modulated signal to obtain a digital signal corresponding to the target current.
[0051] In an optional embodiment, if Figure 4 As shown, the analog-to-digital conversion module 100 is composed of a carrier suppression analog modulator 1000 and a digital filter 1001. After receiving the current value of the target battery cell, the analog signal corresponding to the target current is modulated by the carrier suppression analog modulator 1000. For example, the analog signal corresponding to the target current is discretized to obtain the above-mentioned modulated signal. The modulated signal is filtered by the digital filter 1001 to obtain the digital signal corresponding to the target current, that is, the digital filter 1001 filters the discretized signal to obtain the above-mentioned digital signal corresponding to the target current.
[0052] Optionally, in the current detection circuit provided in the embodiment of the present application, the analog-to-digital conversion module 100 includes: a first compensation module 1002, which is connected to the digital filter 1001, and is used to perform compensation processing when the digital filter 1001 filters the modulated signal to obtain a digital signal corresponding to the target current.
[0053] In an optional embodiment, if Figure 4 As shown, the analog-to-digital conversion module 100 also includes a first compensation module 1002, which is connected to the digital filter 1001 so that when the digital filter 1001 performs filtering processing on the modulated signal, compensation processing is performed to obtain a digital signal corresponding to the target current. It should be noted that the first compensation module 1002 can obtain compensation parameters through the SPI interface to achieve compensation of the signal. Compensation processing by the first compensation module 1002 can effectively improve the accuracy of the digital signal corresponding to the target current.
[0054] Optionally, in the current detection circuit provided in the embodiment of the present application, the digital correction module 101 includes: a digital corrector 1010, connected to the analog-to-digital conversion module 100, for correcting the digital signal corresponding to the target current to obtain a corrected digital signal; a digital signal processor 1011, connected to the digital corrector 1010, for performing average value processing on the corrected digital signal to obtain a target current digital quantity; a second compensation module 1012, connected to the digital corrector 1010 and the digital signal processor 1011, for performing compensation processing when the digital corrector 1010 corrects the digital signal corresponding to the target current to obtain a corrected digital signal, and for performing compensation processing when the digital signal processor 1011 performs average value processing on the corrected digital signal to obtain a target current digital quantity.
[0055] In an optional embodiment, if Figure 5 As shown, the digital correction module 101 is composed of a digital corrector 1010, a digital signal processor 1011 and a second compensation module 1012, the digital corrector 1010 is connected to the analog-to-digital conversion module 100, the digital signal processor 1011 is connected to the digital corrector 1010, and the second compensation module 1012 is connected to the digital corrector 1010 and the digital signal processor 1011. The digital signal corresponding to the target current is corrected by the digital corrector 1010 to obtain a corrected digital signal, and then the corrected digital signal is averaged by the digital signal processor 1011 to obtain the target current digital quantity. It should be noted that in order to improve the accuracy of the current digital quantity, the second compensation module 1012 performs compensation processing when the digital corrector 1010 corrects the digital signal corresponding to the target current and when the digital signal processor 1011 performs average processing on the corrected digital signal. The above-mentioned target current digital quantity can be obtained more accurately by the digital corrector 1010, the digital signal processor 1011 and the second compensation module 1012.
[0056] Optionally, in the current detection circuit provided in the embodiment of the present application, the logic processing module 20 also includes: an electronic buffer 200, which is used to receive a control signal to drive the comparator module 201 to work; the comparator module 201, which is used to output a target signal to the high-side driver module 30 based on the comparison detection result between a preset threshold and a target current digital quantity.
[0057] In an optional embodiment, if Figure 6As shown, the logic processing module 20 is composed of an electronic buffer 200 and a comparator module 201. The electronic buffer 200 is connected to the comparator module 201, and receives a control signal through the electronic buffer 200 to drive the comparator module 201 to work. After receiving the driving signal, the comparator module 201 outputs a target signal to the high-side driver module 30 based on the comparison detection result between the preset threshold and the target current digital value.
[0058] Optionally, in the current detection circuit provided in the embodiment of the present application, the comparator module 201 includes: a serial peripheral interface 2010, used to receive the target current digital quantity and write the target current digital quantity into a register 2011; a register 2011, used to store the target current digital quantity; a comparator 2012, used to output a target signal to the high-side driver module 30 based on a comparison detection result between a preset threshold and the target current digital quantity.
[0059] In an optional embodiment, if Figure 7 As shown, the comparator module 201 is composed of a serial peripheral interface 2010, a register 2011 and a comparator 2012. The target current digital quantity is received through the serial peripheral interface 2010, and the target current digital quantity is written into the register 2011. The comparator 2012 outputs a target signal to the high-side driver module 30 based on the comparison detection result between the preset threshold value and the target current digital quantity, that is, the comparator 2012 performs threshold judgment and outputs the target signal to the side driver module. For example, when the cell current value reaches the configured threshold value, the CMD logic control signal of the high-side driver module is triggered to perform a shutdown action, thereby cutting off the external power supply for protection.
[0060] It should be noted that the high-side driver module 30 may be composed of field effect transistors. The external power supply is cut off by the high-side driver module 30 .
[0061] Optionally, in the current detection circuit provided in the embodiment of the present application, the current detection circuit also includes: a boost circuit 40, which is connected to the high-side driver module 30 and the logic processing module 20, wherein a clock signal is provided to the boost circuit 40 through the logic processing module 20, so that the boost circuit 40 outputs a preset voltage value to the high-side driver module 30, so as to drive the high-side driver module 30 to work based on the preset voltage value.
[0062] In an optional embodiment, in order to realize the above-mentioned high-side driving function, a boost circuit needs to be provided in the current detection circuit provided in the embodiment of the present application. Figure 8As shown, the current detection circuit is also provided with a boost circuit 40, wherein the boost circuit 40 is connected to the high-side driver module 30 and the logic processing module 20. The logic processing module 20 provides a clock signal for the boost circuit 40, so that the boost circuit 40 outputs a pre-voltage value to the high-side driver module 30, so as to drive the high-side driver module 30 to work based on the preset voltage value. It should be noted that the boost circuit 40 can be a Charge Pump boost circuit. The high-side driver module 30 is driven by the boost circuit to perform a shutdown action, thereby cutting off the external power supply for protection.
[0063] In an optional embodiment, the boost circuit 40 can be a DC boost circuit. The working principle of the DC boost circuit is to use the energy storage and release characteristics of inductors and capacitors to adjust the output voltage by controlling the switching frequency and duty cycle of the switching element. When the switching element is turned on, the inductor stores energy; when the switching element is turned off, the energy stored in the inductor is released to the load through the diode and the capacitor, thereby achieving boosting. The controller adjusts the duty cycle of the switching element according to the feedback signal of the output voltage to maintain a stable output voltage. The DC boost circuit can provide a stable driving voltage for the high-side driver module 30.
[0064] In an optional embodiment, the implementation process of the quantitative reliability analysis method for the current detection circuit is as follows:
[0065] (1) Based on the IEC 62380 standard, the overall failure rate of the BMS integrated chip is calculated, and the failure rate of the relevant modules of the current detection circuit is decomposed, as shown in Table 1;
[0066] (2) Through DFMEA analysis, a reliability safety measure mechanism is formulated for the failure of the current detection circuit, such as: SM_01 analog signal self-test comparison, SM_02 CRC check of calibration parameter download, SM_03 independent CRC generator and detection circuit, SM_04 analog multi-channel acquisition switch to digital-to-analog conversion decoding threshold self-test, SM_05 full temperature redundant ADC circuit can request conversion cross-check fault injection, SM_06 fault injection self-test, SM_07 full redundant temperature ADC circuit conversion cross-check, SM_08 charge pump voltage monitoring, SM_09 power supply over-voltage and under-voltage diagnosis, SM_10 analog self-test, SM_11 drive comparison self-test, SM_12 background download calibration data CRC check. The relevant diagnostic coverage is defined with reference to ISO 26262, as shown in Table 1 for details.
[0067] (3) The current detection circuit is quantitatively analyzed by FMEDA with reference to ISO 26262 standard, and the internal components of the current detection circuit integrated chip are analyzed. The failure rate of the components in (1) is diagnosed by the measure mechanism of (2), so that the residual or single-point failure rate is 0.242702FIT, and the potential multi-point failure rate is 0.17688826FIT. The analysis process is shown in Table 1.
[0068] Table 1
[0069]
[0070]
[0071] The current detection circuit provided in the embodiment of the present application is used to convert the analog signal corresponding to the target current of the target battery cell into the target current digital quantity through the current conversion module; the logic processing module is connected to the current conversion module, and is used to output the target signal to the high-side driver module based on the comparison detection result between the preset threshold and the target current digital quantity; the high-side driver module is connected to the logic processing module, and is used to determine whether to cut off the external power supply based on the target signal, which solves the problem that the reliability of the battery current detection diagnosis protection is poor due to the different IC functional circuits used in the related art. In this scheme, the analog signal corresponding to the current of the target battery cell is converted into the target current digital quantity through the current conversion module, and then the logic processing module outputs the target signal to the high-side driver module based on the comparison detection result between the preset threshold and the target current digital quantity, and finally the high-side driver module determines whether to cut off the external power supply based on the target signal, and the battery current detection diagnosis protection is realized by the integration of the current conversion module, the logic processing module and the high-side driver module, thereby achieving the effect of improving the reliability of the battery current detection diagnosis protection.
[0072] Fig. 9 is a flow chart of a current detection method according to an embodiment of the present application. Fig. 9 As shown, the method includes:
[0073] Step S901, converting an analog signal corresponding to a target current of a target battery cell into a digital value of the target current by a current conversion module;
[0074] Step S902, outputting a target signal to a high-side driver module through a logic processing module based on a comparison detection result between a preset threshold and the target current digital value;
[0075] Step S903 : determining whether to cut off external power supply based on the target signal through the high-side driver module.
[0076] The analog signal corresponding to the target current of the target battery cell is received through the current conversion module. It should be noted that the current of the target battery cell can be collected by the current acquisition device, and then the collected current is input into the receiving PIN pin in the current conversion module. After the analog signal corresponding to the target current of the target battery cell, the current conversion module discretely quantizes and filters the analog current signal to extract the digital signal, and converts the obtained digital quantity into an accurate current digital quantity, thereby obtaining the above-mentioned target current digital quantity.
[0077] After obtaining the above-mentioned target current digital quantity, the current conversion module can be transmitted to the logic processing module through the serial peripheral interface (SPI interface), and the logic processing module outputs the target signal to the high-side driver module based on the comparison detection result between the preset threshold and the target current digital quantity, that is, the logic processing module performs a threshold judgment. According to the threshold judgment result, a response signal is triggered to the high-side driver module. The high-side driver module determines whether to cut off the external power supply based on the target signal. For example, when the current value of the battery cell reaches the configuration threshold, the CMD logic control signal of the high-side driver module is triggered to perform a shutdown action, thereby cutting off the external power supply of the battery for protection.
[0078] It should be noted that the CMD logic control signal of the high-side driver module refers to a logic signal used to control the switching state of the high-side driver. In the application of the high-side driver, these signals can be controlled through the SPI interface or other communication protocols.
[0079] In summary, the analog signal corresponding to the current of the target battery cell is converted into a target current digital quantity through the current conversion module, and then the logic processing module outputs the target signal to the high-side driver module based on the comparison detection result between the preset threshold and the target current digital quantity. Finally, the high-side driver module determines whether to cut off the external power supply based on the target signal, and realizes the cell current detection diagnosis protection through the integration of the current conversion module, the logic processing module and the high-side driver module, thereby achieving the effect of improving the reliability of the cell current detection diagnosis protection.
[0080] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the current detection method is implemented.
[0081] An embodiment of the present invention provides a processor, which is used to run a program, wherein the current detection method is executed when the program is running.
[0082] An embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, and current detection is implemented when the processor executes the program.
[0083] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0084] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0087] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0088] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0089] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0090] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0092] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A current detection circuit, characterized in that: include: A current conversion module (10), used for converting an analog signal corresponding to a target current of a target battery cell into a digital value of the target current; A logic processing module (20), connected to the current conversion module (10), and configured to output a target signal to a high-side driving module (30) based on a comparison detection result between a preset threshold value and the target current digital value; The high-side driving module (30) is connected to the logic processing module (20) and is used to determine whether to cut off the external power supply based on the target signal.
2. The current detection circuit according to claim 1, characterized in that: The current conversion module (10) comprises: An analog-to-digital conversion module (100) is connected to the digital correction module (101) and is used to convert an analog signal corresponding to a target current of a target battery cell into a digital signal corresponding to the target current; The digital correction module (101) is used to process the digital signal corresponding to the target current to obtain the digital value of the target current.
3. The current detection circuit according to claim 2, characterized in that: The current conversion module (10) further comprises: The analog filter (102) is connected to the analog-to-digital conversion module (100) and is used to filter the received initial analog signal corresponding to the target current to obtain the analog signal corresponding to the target current.
4. The current detection circuit according to claim 2, characterized in that: The analog-to-digital conversion module (100) comprises: A carrier suppression analog modulator (1000), used for modulating an analog signal corresponding to the target current to obtain a modulated signal; The digital filter (1001) is connected to the carrier suppression analog modulator (1000) and is used to filter the modulated signal to obtain a digital signal corresponding to the target current.
5. The current detection circuit according to claim 4, characterized in that: The analog-to-digital conversion module (100) comprises: The first compensation module (1002) is connected to the digital filter (1001) and is used to perform compensation processing when the digital filter (1001) performs filtering processing on the modulated signal, so as to obtain a digital signal corresponding to the target current.
6. The current detection circuit according to claim 2, characterized in that: The digital correction module (101) comprises: A digital corrector (1010), connected to the analog-to-digital conversion module (100), and configured to correct the digital signal corresponding to the target current to obtain a corrected digital signal; A digital signal processor (1011), connected to the digital corrector (1010), and configured to perform average value processing on the corrected digital signal to obtain the target current digital value; A second compensation module (1012) is connected to the digital corrector (1010) and the digital signal processor (1011), and is used for performing compensation processing when the digital corrector (1010) corrects the digital signal corresponding to the target current to obtain the corrected digital signal, and is used for performing compensation processing when the digital signal processor (1011) performs average value processing on the corrected digital signal to obtain the digital value of the target current.
7. The current detection circuit according to claim 1, characterized in that: The logic processing module (20) further comprises: An electronic buffer (200) is used to receive a control signal to drive the comparator module (201) to work; The comparator module (201) is used to output a target signal to the high-side driving module (30) based on a comparison detection result between a preset threshold value and the target current digital value.
8. The current detection circuit according to claim 7, characterized in that: The comparator module (201) comprises: A serial peripheral interface (2010), used for receiving the target current digital quantity and writing the target current digital quantity into a register (2011); The register (2011) is used to store the target current digital value; The comparator (2012) is used to output a target signal to the high-side driving module (30) based on a comparison detection result between a preset threshold value and the target current digital value.
9. The current detection circuit according to any one of claims 1 to 8, characterized in that: The current detection circuit also includes: A boost circuit (40) is connected to the high-side driver module (30) and the logic processing module (20), wherein the logic processing module (20) provides a clock signal to the boost circuit (40), so that the boost circuit (40) outputs a preset voltage value to the high-side driver module (30), so as to drive the high-side driver module (30) to operate based on the preset voltage value.
10. The current detection circuit according to claim 9, characterized in that: The boost circuit (40) is a direct current boost circuit.
11. A current detection method, characterized in that: include: The analog signal corresponding to the target current of the target battery cell is converted into a digital value of the target current by a current conversion module; Outputting a target signal to a high-side driving module through a logic processing module based on a comparison detection result between a preset threshold and the target current digital quantity; The high-side driver module determines whether to cut off the external power supply based on the target signal.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the storage medium is controlled to execute the current detection method described in claim 11 in a device.
13. An electronic device, characterized in that: The device comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the current detection method according to claim 11.