Fuse control method, electronic fuse, storage medium, and program product
By employing an architecture that synchronizes the first clock signal with the second clock signal in the electronic fuse, and utilizing n-division technology to achieve rapid determination of the fuse breaking result, the problem of insufficient real-time performance of the existing fuse breaking technology is solved, the real-time performance and efficiency of the fuse breaking alarm are improved, and the computational complexity and cost are reduced.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING MAORUIXIN TECHNOLOGY CO LTD
- Filing Date
- 2026-02-02
- Publication Date
- 2026-06-09
AI Technical Summary
Existing electronic fuses lack real-time performance in scenarios requiring rapid control and fuse breaking. Furthermore, the fitting of higher-order functions suffers from bias and computational complexity, resulting in high real-time performance and cost.
The system adopts an architecture that synchronizes the first clock signal with the second clock signal. The current value is collected through the first clock signal, and the fuse failure result is determined within n cycles of the second clock signal that are synchronized with it. The real-time performance of the fuse failure alarm is improved by using the n-frequency division technology.
This significantly reduces the time required to determine circuit breaker alarm information, improves the real-time performance and efficiency of circuit breaker alarms, and reduces computational complexity and cost.
Smart Images

Figure CN122178242A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power electronics technology, and in particular to a fuse control method, an electronic fuse, a storage medium, and a program product. Background Technology
[0002] With the continuous development of technology, the use of electronic fuse algorithms for overcurrent protection of wiring harnesses has become widespread. Electronic fuse algorithms fit a smoke curve to a specific function to determine whether the wiring harness is experiencing overcurrent and whether the electronic fuse needs to operate. In related technologies, when executing an electronic fuse algorithm, current is first collected, then integrated based on the collected current, and finally, the result of the integration calculation determines whether the conditions for a fuse alarm are met. Current collection, integration calculation, and fuse alarm are integrated within a single clock domain. If the fuse alarm conditions are met, a fuse alarm is triggered, and the electronic fuse is controlled. However, this method is insufficient in real-time performance for scenarios requiring rapid fuse tripping. Summary of the Invention
[0003] This application provides a fuse control method, an electronic fuse, a storage medium, and a program product, which can improve the real-time performance of fuse operation. The technical solution is as follows: Firstly, a fuse control method is provided, applied to an electronic fuse. The electronic fuse includes a first clock generator and a second clock generator. The first clock generator generates a first clock signal, and the second clock generator generates a second clock signal. The first clock signal is obtained by dividing the second clock signal by n. The first clock signal is synchronized with the second clock signal, where n is an integer greater than or equal to 2. The method includes: The current value of the target harness is obtained when the rising edge of the first clock signal arrives; Within n cycles of a second clock signal synchronized with the first clock signal, a fuse alarm message is determined based on the current value. The fuse alarm message is used to indicate whether the target harness needs to be blown. Based on the fuse failure alarm information, a fuse failure flag is set at the rising edge of the next first clock signal of the first clock signal. The fuse failure flag is used to control the turn-on or turn-off of the load switch.
[0004] In this application, since the signal generation frequency of the second clock signal is greater than that of the first clock signal, and the first clock signal is synchronized with the second clock signal, the current value is acquired through the first clock signal, and the fuse failure result is determined through n second clock signals synchronized with the first clock signal. All the processes required from detecting the current value to determining the fuse failure result can be completed within one clock cycle of the first clock signal, thus greatly shortening the time required to determine the fuse failure alarm information. This improves the real-time performance and efficiency of the fuse failure alarm.
[0005] Optionally, determining the fuse failure alarm information based on the current value within n cycles of the second clock signal synchronized with the first clock signal includes: When the rising edge of the first second clock signal among the n second clock signals arrives, a first power value is determined based on the current value. The first power value is the instantaneous power value at the target sampling time, where the target sampling time is the time when the current value is collected. When the rising edge of the a-th second clock signal among the n second clock signals arrives, a second power value is determined according to the first power value. The second power value is the average power value of the preset circuit breaker time period. The start time of the preset circuit breaker time period is the first time among the first m-1 sampling times before the target sampling time. The end time of the preset circuit breaker time period is the target sampling time. The m is an integer greater than or equal to 2. When the rising edge of the b-th second clock signal among the n second clock signals arrives, the fuse alarm information is determined according to the second power value, where b and a are both positive integers, b is greater than a, and a is greater than 1.
[0006] Optionally, determining the second power value based on the first power value includes: A third power value is determined based on the first power value, wherein the third power value is the integral power value of the target sampling time and the m-1 sampling times; The second power value is obtained by dividing the third power value by the duration of the preset fuse interruption time period.
[0007] Optionally, dividing the third power value by the duration of the preset fuse-breaking time period to obtain the second power value includes: The duration of the preset circuit breaker time period is respectively compared with 2 q Multiplying each of the -1 preset values results in 2. q -1 comparison value, the 2 q -1 preset values, the first preset value is 1, the 2 q-1 preset values are ordered and each pair of adjacent preset values differs by 1, where k is the number of bits of the quotient value to be determined within a period of a second clock signal, and q is an integer greater than or equal to 2; Based on the third power value and the 2 q -1 comparison values are subjected to one or more iterative subtraction operations to obtain the second power value. Any one of the one or more iterative subtraction operations is performed within the period of a second clock signal.
[0008] Optionally, the step of basing the power value on the third power value and the 2 q -1 comparison values are subjected to one or more iterative subtraction operations to obtain the second power value, including: Use the third power value as the dividend and the duration of the preset fuse interruption period as the divisor; The target number of iterations is determined based on the dividend and q, and the target number of iterations is the number of iterations required to determine the second power value; Update the total number of digits w in the dividend according to the target number of iterations; Let i = 1; The w-(i-1)th digit of the dividend from the most significant digit to the least significant digit. From position q-1 to position w-(i+1) The q-bit is determined as the alignment value; in the 2 q If, among the -1 comparison values, there is a comparison value greater than the alignment value and a comparison value less than the alignment value, then the 2 q The preset value corresponding to the preceding comparison value of the first comparison value among the -1 comparison values that is greater than the alignment value is determined as the target quotient value, or, in the 2 q If one of the -1 comparison values is equal to the alignment value, then the 2 q The preset value corresponding to the comparison value that is equal to the alignment value among the -1 comparison values is determined as the target quotient value, or, in the 2 q If each of the -1 comparison values is less than the alignment value, then the 2 q The preset value corresponding to the largest comparison value among -1 comparison values is determined as the target quotient value, or, in the 2 q If every comparison value in the -1 comparison values is greater than the alignment value, the target quotient is set to 0; the product of the target quotient and the divisor is subtracted from the alignment value to obtain the target remainder; the wi-th value in the dividend is... From position q-1 to position w-(i+1) Replace the q-th bit with the target remainder; Determine whether i is less than the target number of iterations; If i is less than the target iteration number, let i = i + 1, and re-execute the step of dividing the dividend from the most significant digit to the least significant digit, i = w-(i-1). From position q-1 to position w-(i+1) The step of determining the q-bit as the alignment value and subsequent steps continue until i is less than the target iteration number; If i equals the target iteration number, then all the determined target quotient values are concatenated in order to obtain the second power value.
[0009] Optionally, determining the fuse failure alarm information based on the second power value includes: If the second power value is greater than or equal to the fuse power threshold, it is determined that the fuse alarm information indicates that the target wiring harness needs to be fused; If the second power value is less than the fuse power threshold, it is determined that the fuse alarm information indicates that the target wiring harness does not need to be fused.
[0010] Optionally, the method includes: Obtain the fusing voltage threshold, which is the maximum voltage value that the target wire harness can withstand; The fusing power threshold corresponding to the fusing voltage threshold is determined from a preset correspondence, wherein the preset correspondence is the correspondence between fusing voltage and fusing power.
[0011] Secondly, a fuse control device is provided, the device comprising: The first acquisition module is used to acquire the current value of the target wire harness when the rising edge of the first clock signal arrives. The first determining module is used to determine the fuse alarm information based on the current value within n cycles of the second clock signal synchronized with the first clock signal. The fuse alarm information is used to indicate whether the target wire harness needs to be blown. The setting module is used to set a fuse flag bit at the rising edge of the next first clock signal based on the fuse alarm information. The fuse flag bit is used to control the turn-on or turn-off of the load switch.
[0012] Thirdly, an electronic fuse is provided, the electronic fuse including a first clock generator, a second clock generator, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the fuse control method described in the first aspect.
[0013] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, which, when executed by a processor, implements the circuit breaker control method described in the first aspect.
[0014] Fifthly, a computer program product is provided that, when the computer program product is run on a computer device, causes the computer device to execute the circuit breaker control method described in the first aspect.
[0015] It is understood that the beneficial effects of the second, third, fourth, and fifth aspects mentioned above can be found in the relevant descriptions in the first aspect above, and will not be repeated here. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of the structure of an electronic fuse provided in an embodiment of this application; Figure 2 This is a schematic diagram of a fuse current acquisition circuit provided in an embodiment of this application; Figure 3 This is a flowchart of a circuit breaker control method provided in an embodiment of this application; Figure 4 This is a timing diagram of a circuit breaker control method provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of a fuse control device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic fuse provided in an embodiment of this application. Detailed Implementation
[0017] In the following description, specific details such as particular system architectures and technologies are set forth for illustrative purposes and not for limiting purposes, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details.
[0018] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0019] It should be understood that "one or more" as used in this application refers to one, two, or more, and "multiple" as used in this application refers to two or more. In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0020] To facilitate a clear description of the technical solutions of this application, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" do not necessarily imply that they are different.
[0021] The terms "one embodiment" or "some embodiments" used in this application mean that one or more embodiments of this application include the specific features, structures, or characteristics described in that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this application do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.
[0022] The application scenarios involved in the embodiments of this application are described below.
[0023] With the continuous development of technology, the use of electronic fuses for overcurrent protection of automotive wiring harnesses has become widespread. Electronic fuses include electronic fusing algorithms. The basis for using electronic fusing algorithms to protect wiring harnesses from overcurrent is the wiring harness smoke curve. The wiring harness smoke curve is a standard for the current carrying capacity of automotive wiring harnesses and an important reference indicator for monitoring the operation of automotive wiring harnesses. The wiring harness smoke curve is a curve showing the relationship between the ultimate overload current and the time it takes for smoke to begin. It describes the failure mode phenomenon where overload current causes the wiring harness temperature to rise, leading to the destruction of insulation materials. The electronic fusing algorithm fits the smoke curve to a specific function to determine whether the wiring harness is experiencing overcurrent and whether the electronic fuse needs to sound an alarm. Typical electronic fusing algorithms (such as power-time (I0.05)) are... 2 The T-algorithm calculates, predicts, and fits the smoke emission curve of the automotive wiring harness. The electronic fuse acquires the load current value, and the electronic fuse algorithm integrates the real-time power on the wiring harness based on the current value, calculating the average power value within the fusing time t. This average power value characterizes the heat generated by the current flowing through the wiring harness during time t. When the average power value exceeds the theoretical threshold of the smoke emission curve, a fusing signal is output to intelligently fuse the wiring harness, thereby protecting it.
[0024] In related technologies, electronic fuses employing a single-clock (e.g., low-speed clock) architecture integrate current acquisition, electronic fuse algorithm integration calculation, and fuse alarm functions within a single clock domain, achieving pipelined output within time t. These electronic fuses utilize either second-order or higher-order electronic fuse algorithms. The second-order algorithm involves fitting the smoke emission curve with the second-order function, while the higher-order algorithm involves fitting the smoke emission curve with a higher-order function. Correspondingly, when using a higher-order function algorithm to fit the smoke emission curve, the electronic fuse needs a divider to achieve this fitting, such as a pipelined divider, iterative divider (serial iterative / cyclic divider), Newton-Raphson divider, or Goldschmidt divider. However, the aforementioned electronic fuses suffer from the following three problems. First, executing the current-based fuse-breaking algorithm requires a certain number of clock cycles to obtain the fuse-breaking result. In low-speed clock architectures, this introduces a delay, leading to poor real-time performance in scenarios requiring rapid circuit breaking. Second, fitting the smoke emission curve using a quadratic function results in a significant deviation from the theoretical smoke emission curve, especially when the current in the wiring harness is high and reaches the critical point of the fuse-breaking temperature, making it difficult to obtain the expected calculation results. Third, the dividers used above have varying degrees of shortcomings. Pipeline dividers have fixed delays, require multiple circuit stages, and are costly. Iterative dividers have low throughput and require long computation cycles. Newton-Raphson dividers and Goldschmidt dividers are complex to design and have high cost and power consumption.
[0025] Therefore, this application provides a fuse control method applicable to electronic fuses. The electronic fuse includes a first clock generator and a second clock generator. The first clock generator generates a first clock signal, and the second clock generator generates a second clock signal. The first clock signal is obtained by dividing the second clock signal by n. The first clock signal is synchronized with the second clock signal, where n is an integer greater than or equal to 2. In this method, the current value of the target wiring harness is acquired when the rising edge of the first clock signal arrives. Within n cycles of the second clock signal synchronized with the first clock signal, a fuse alarm message is determined based on the current value. This fuse alarm message indicates whether the target wiring harness needs to be blown. Based on the fuse alarm message, a fuse flag is set at the rising edge of the next first clock signal. This fuse flag is used to control the on / off state of the load switch. Since the generation frequency of the second clock signal is greater than that of the first clock signal, and the first clock signal is synchronized with the second clock signal, the entire process from detecting the current value to determining the fuse failure result can be completed within just one clock cycle of the first clock signal by acquiring the current value and using n second clock signals synchronized with the first clock signal. This significantly shortens the time required to determine the fuse failure alarm information. Therefore, the real-time performance and efficiency of fuse failure alarms can be improved.
[0026] The electronic fuse provided in the embodiments of this application will be described below.
[0027] Figure 1 This is a schematic diagram of the structure of an electronic fuse provided in an embodiment of this application. See also... Figure 1 The electronic fuse 10 includes a current acquisition module 101, a fuse control module 102, and a load switch module 103. The electronic fuse 10 can be connected (e.g., in series) between the input terminals of the power supply and the load.
[0028] For example, the electronic fuse 10 may include a first clock generator and a second clock generator. The first clock generator generates a first clock signal (also known as a low-speed clock signal), and the second clock generator generates a second clock signal (also known as a high-speed clock signal). The first clock signal is obtained by dividing the second clock signal by n. The first clock signal and the second clock signal are synchronized, where n is an integer greater than or equal to 2. For example, the second clock signal can be divided by 64 to obtain the first clock signal, and the generation frequency of the second clock signal is 64 times the generation frequency of the first clock signal. The first clock signal and the second clock signal have clock periods. The period of the first clock signal (i.e., the first clock period) is the time required for the first clock signal to complete one complete cycle. The period of the second clock signal (i.e., the second clock period) is the time required for the second clock signal to complete one complete cycle.
[0029] It should be noted that the execution of each operation of the electronic fuse 10 in this embodiment is controlled by a clock signal, and there is a sequence between each operation. An operation can only be executed when the rising edge of the clock signal arrives.
[0030] The current acquisition module 101 is used to acquire the current signal (also called the load current signal) of the wiring harness (i.e., the target wiring harness) that supplies power to the load, and convert the load current signal into a current value. For example, the current acquisition module 101 can acquire the load current signal at the rising edge of a first clock signal, amplify the load current signal, and perform analog-to-digital conversion on the amplified load current signal to obtain the current value. For example, the current acquisition module 101 can periodically acquire the load current signal at the rising edge of the first clock signal generated by the first clock generator. For instance, the current acquisition module 101 can acquire the load current signal at the rising edge of each first clock signal.
[0031] The fuse control module 102 is used to determine fuse alarm information based on the current value determined by the current acquisition module 101 within n cycles of the second clock signals synchronized with the first clock signal, and to set a fuse flag bit at the rising edge of the next first clock signal based on the fuse alarm information. For example, the fuse control module 102 can set the fuse flag bit based on the current value within n cycles corresponding to the n second clock signals synchronized with the first clock signal, and generate a control signal corresponding to the fuse flag bit. The fuse flag bit is used to control the conduction or deactivation of the load switch. For example, the fuse flag bit can be 0 or 1; when the fuse flag bit is 0, the electronic fuse 10 is controlled to conduct the circuit; when the fuse flag bit is 1, the electronic fuse 10 is controlled to deactivate the circuit.
[0032] It should be noted that the fuse control module 102 requires a total of b operations to determine the fuse alarm information based on the current value, where b is an integer greater than or equal to 2. Each operation needs to be completed within one or more consecutive second clock cycles (the period of the second clock signal). That is, an operation can begin to be executed when the rising edge of a second clock signal arrives; if the operation is completed within the period of the second clock signal, the next operation begins to be executed when the rising edge of the next second clock signal arrives; if the operation is not completed within the period of the second clock signal, the operation continues to be executed in the next period of the second clock signal until the operation is completed within a certain period of the second clock signal, and then the next operation begins to be executed when the rising edge of the next second clock signal arrives.
[0033] The load switch module 103 receives a control signal output from the fuse control module 102 and controls the load switch to turn on or off according to the control signal. For example, the load switch module 103 can be a power transistor.
[0034] The electronic fuse 10 has a fusing current acquisition circuit. For example, such as... Figure 2 As shown, the fuse current acquisition circuit may include a voltage source, an integrated circuit chip, a load switch, etc., wherein the integrated circuit chip includes an operational amplifier, an analog-to-digital converter, a fuse control module 102, and a driver module.
[0035] The operational amplifier's input is connected to the line between the voltage source and the load. The operational amplifier's output is connected to the input of the analog-to-digital converter. The analog-to-digital converter's output is connected to the input of the fuse control module. The fuse control module's output is connected to the input of the driver. The driver's output is connected to the load switch.
[0036] This voltage source is used to supply power to the load, outputting load current.
[0037] This operational amplifier is used to amplify the acquired load current signal.
[0038] This analog-to-digital converter is used to convert the amplified load current signal into an analog-to-digital value.
[0039] The fuse control module is used to determine the fuse alarm information based on the current value obtained by the analog-to-digital converter, and set the fuse flag bit accordingly, and generate the control signal corresponding to the fuse flag bit.
[0040] This driver is used to amplify the control signal corresponding to the fuse flag and input the amplified control signal to the load switch.
[0041] This load switch is used to control the on or off of the load switch to achieve overcurrent protection.
[0042] In this embodiment, during the process of the voltage source supplying power to the load, the current acquisition module 101 periodically acquires the load current signal at the rising edge of the first clock signal, and inputs the load current signal to the operational amplifier for signal amplification to obtain the amplified load current signal. The operational amplifier inputs the amplified load current signal to the analog-to-digital converter for analog-to-digital conversion to obtain the current value. The analog-to-digital converter inputs the current value to the fuse control module 102. Within n second clock cycles corresponding to n second clock signals synchronized with the first clock signal, the fuse control module 102 determines fuse alarm information based on the current value. Based on the fuse alarm information, at the rising edge of the next first clock signal of the first clock signal, a fuse flag is set, a control signal corresponding to the fuse flag is generated, and the control signal is output to the driver. The driver amplifies the power of the control signal and inputs the amplified control signal to the load switch module 103 to control the conduction or deactivation of the load switch. Since the generation frequency of the second clock signal is greater than that of the first clock signal, and the first clock signal is synchronized with the second clock signal, the entire process from detecting the current value to determining the fuse failure result can be completed within just one clock cycle of the first clock signal by acquiring the current value and using n second clock signals synchronized with the first clock signal. This significantly shortens the time required to determine the fuse failure alarm information. Therefore, the real-time performance and efficiency of fuse failure alarms can be improved.
[0043] The circuit breaker control method provided in the embodiments of this application will be explained in detail below.
[0044] Figure 3 This is a flowchart of a circuit breaker control method provided in an embodiment of this application. This circuit breaker control method can be applied to the above-described... Figure 1 The electronic fuse 10 in this embodiment. For example, this fuse control method can be applied to the fuse control module 102 in the electronic fuse 10. See also... Figure 3 The method may include the following steps: It should be noted that the electronic fuse and fuse control method provided in this application can be applied not only to the automotive field, but also to various fields that require overcurrent protection of loads, such as aerospace, industrial automation, and medical equipment. This application does not limit these applications.
[0045] Step 301: The electronic fuse acquires the current value of the target wire harness at the rising edge of the first clock signal.
[0046] The electronic fuse can acquire current values periodically. The period for acquiring current values can be preset. For example, the electronic fuse can acquire the target harness current value at the rising edge of each first clock signal.
[0047] The target wiring harness is the wiring harness from which the power supply supplies power to the load.
[0048] The magnitude of the current transmitted through the target wiring harness reflects its impact. A higher current generates more heat, causes a faster temperature rise, and thus poses a greater risk. Conversely, a lower current generates less heat, causes a slower temperature rise, and thus presents a lower risk.
[0049] Step 302: Within n cycles of a second clock signal synchronized with the first clock signal, the electronic fuse determines a fuse alarm message based on the current value. This fuse alarm message is used to indicate whether the target wiring harness needs to be blown.
[0050] It should be noted that within the n cycles of the second clock signal synchronized with the first clock signal, the electronic fuse requires a total of k operations to determine the fuse alarm information based on the current value, where k is an integer greater than or equal to 2. Each operation needs to be completed over one or more consecutive second clock cycles (the cycle of the second clock signal). That is, an operation can begin to be executed when the rising edge of a second clock signal arrives; if the operation is completed within the cycle of the second clock signal, the next operation begins to be executed when the rising edge of the next second clock signal arrives; if the operation is not completed within the cycle of the second clock signal, the operation continues to be executed in the next cycle of the second clock signal until the operation is completed within a certain cycle of the second clock signal, and then the next operation begins to be executed when the rising edge of the next second clock signal arrives.
[0051] The requirement for the target wiring harness to blow indicates whether overcurrent protection for the load is necessary. If the target wiring harness needs to blow, it means there is a safety risk and overcurrent protection for the load is required; if the target wiring harness does not need to blow, it means there is no safety risk and overcurrent protection for the load is not required.
[0052] This current value can reflect the current temperature of the target wiring harness and whether there is a safety risk to the target wiring harness. Therefore, the fuse alarm information can be determined based on the current value.
[0053] In this embodiment, the signal generation frequency of the second clock signal is greater than that of the first clock signal, and the first clock signal is synchronized with the second clock signal. The current value is acquired at the rising edge of the first clock signal, and the fuse failure result is determined within n clock cycles of the second clock signal synchronized with the first clock signal. All processes required from detecting the current value to determining the fuse failure result can be completed in just one first clock cycle. This significantly shortens the time required to determine the fuse failure alarm information, thereby improving the real-time performance and efficiency of the fuse failure alarm.
[0054] In some implementations, step 302 can be performed as follows: when the rising edge of the first second clock signal among the n second clock signals arrives, the electronic fuse determines a first power value based on the current value. The first power value is the instantaneous power value at the target sampling time, and the target sampling time is the time when the current value is collected. When the rising edge of the a-th second clock signal among the n second clock signals arrives, a second power value is determined based on the first power value. The second power value is the average power value of a preset fusing time period. The start time of the preset fusing time period is the first time among the first m-1 sampling times before the target sampling time, and the end time of the preset fusing time period is the target sampling time, where m is an integer greater than or equal to 2. When the rising edge of the b-th second clock signal among the n second clock signals arrives, the fuse alarm information is determined based on the second power value. Both b and a are positive integers, b is greater than a, and a is greater than 1.
[0055] The preset fuse-breaking time period is the detection duration set to determine whether the target wire harness needs to be fused; it can also be called the fuse-breaking time. The preset fuse-breaking time period can be set in advance. For example, the preset fuse-breaking time period can be set according to user needs. In this way, the user's requirements for setting the fuse-breaking time of the target wire harness can be better met, thereby improving the ease of use of the electronic fuse.
[0056] Since the average power value of the target wiring harness (i.e. the second power value) can reflect the average heat load borne by the target wiring harness per unit time and the heat intensity of the target wiring harness, and the heat intensity of the target wiring harness can reflect whether there is a safety risk in the target wiring harness, the fuse alarm information can be determined based on the second power value.
[0057] For example, the electronic fuse may determine the first power value based on the current value in two ways.
[0058] In the first scenario, without considering the influence of environmental factors, wiring harness materials, and other factors on the first power value, the electronic fuse determines the first power value as the product of the square of the current value and the first fitting coefficient, where the first fitting coefficient is 1.
[0059] The first fitting coefficient (also known as the second-order proportional coefficient) can be preset. For example, the first fitting coefficient can be set based on the fusing curve of the target wire harness.
[0060] For example, the electronic fuse can determine the first power value based on the current value and the first fitting coefficient using the following formula.
[0061]
[0062] in, For the target sampling time, This is the first power value. The first fitting coefficient, The current value at the target sampling time.
[0063] The second scenario: Considering the influence of environmental factors, wiring harness material, and other factors on the first power value, the electronic fuse determines the first power value based on the current value, the first fitting coefficient, and multiple second fitting coefficients (also known as higher-order term proportional coefficients). Each of the multiple second fitting coefficients represents the weight of the overall thermal effect of the target wiring harness. The first fitting coefficient is less than 1, and the sum of the first fitting coefficient and the multiple second fitting coefficients is 1.
[0064] For example, the electronic fuse can determine the first power value based on the current value, a first fitting coefficient, and a plurality of second fitting coefficients using the following formula.
[0065]
[0066] in, This is the proportionality coefficient of the third-order term (i.e., the second fitting coefficient of the third-order term). This is the proportionality coefficient of the fourth-order term (i.e., the second fitting coefficient of the fourth-order term). It is the proportionality coefficient of the nth-order term (i.e., the second fitting coefficient of the nth-order term).
[0067] For example, the electronic fuse can determine the plurality of second fitting coefficients based on a first fitting coefficient and a fusing power threshold. The fusing power threshold can be preset. For example, the fusing power threshold can be determined based on the fusing voltage threshold of the target wiring harness.
[0068] For example, the electronic fuse can determine the third-order proportional coefficient based on the first fitting coefficient and the fusing power threshold using the following formula.
[0069]
[0070] in, This is the third-order term proportionality coefficient (i.e., the second fitting coefficient). The fusing power threshold of the target wiring harness.
[0071] By using the first fitting coefficient and the multiple second fitting coefficients, the determined first power value is more consistent with the instantaneous power value in the real scenario, thereby improving the accuracy of the instantaneous power value. This provides a more accurate data basis for subsequently determining the fuse alarm information.
[0072] It should be noted that during the first run of this electronic fuse after power-on, or after the user modifies the first fitting coefficient, multiple second fitting coefficients can be determined and saved based on the first fitting coefficient. In subsequent runs, these multiple second fitting coefficients can be directly read for calculations. This saves calculation time and improves calculation efficiency.
[0073] Optionally, the operation of the electronic fuse to determine the second power value based on the first power value can be as follows: determine the third power value based on the first power value, wherein the third power value is the integrated power value of the target sampling time and m-1 sampling times; divide the third power value by the duration of the preset fuse time period to obtain the second power value.
[0074] For example, the duration of the preset circuit breaker period can be a digital value of the preset circuit breaker period (also known as the filter window coefficient).
[0075] For example, the operation of the electronic fuse to determine the third power value based on the first power value can be as follows: integrate the instantaneous power values of the first m sampling times of the target sampling time to obtain the fourth power value, which is the integrated power value of the first m sampling times of the target sampling time; subtract the fifth power value from the fourth power value and add the first power value to obtain the third power value, which is the average power value of the first m sampling times.
[0076] For example, the electronic fuse can determine the fourth power value based on the instantaneous power values of the first m sampling times of the target sampling time using the following formula.
[0077]
[0078] in, This is the fourth power value. Let be the instantaneous power value at the first sampling time out of the first m sampling times. This represents the instantaneous power value at the (m-1)th sampling time out of the first m sampling times.
[0079] For example, the electronic fuse can determine the third power value based on the first power value, the fourth power value, and the fifth power value using the following formula.
[0080]
[0081] in, This is the third power value. This is the fifth power value.
[0082] For example, the electronic fuse can determine the second power value based on the third power value and the preset fuse duration using the following formula.
[0083]
[0084] in, This is the second power value. This is the third power value. The filter window coefficients are the values corresponding to the preset circuit breaker period.
[0085] For example, the formula for calculating the filter window coefficient corresponding to the preset circuit breaker period is:
[0086] in, The duration corresponding to the preset circuit breaker period (i.e., the circuit breaker duration). The sampling frequency of the current value.
[0087] In some embodiments, the operation of dividing the third power value by the preset fusing time period to obtain the second power value can be: dividing the preset fusing time period by 2... q Multiplying each of the -1 preset values results in 2. q -1 comparison value, the 2 q -1 preset values, the first preset value is 1, the 2 q -1 preset values increase sequentially, with each pair of adjacent preset values differing by 1; q represents the number of bits in the quotient value to be determined within one cycle of a second clock signal, and q is an integer greater than or equal to 2; based on the third power value and the 2 q -1 comparison values are subjected to one or more iterative subtraction operations to obtain the second power value. Any one of these iterative subtraction operations is performed within the period of a second clock signal.
[0088] For example, the duration of the preset circuit breaker period can be the filter window coefficient of the preset circuit breaker period, that is, the digital value of the duration of the preset circuit breaker period.
[0089] q can be preset. For example, q can be set by a technician according to requirements. For example, q can be set based on the number of bits in the quotient value to be determined within a period of a second clock signal. For example, the 2... q -1 preset values, each of the 2 preset values q-1. All comparisons are binary numbers. For example, if we want to determine a 2-bit quotient value within the clock cycle of a second clock signal, then q equals 2, and 2... q -1 preset values (binary) are 01, 10, and 11. Assuming the preset circuit breaker period is 2 (binary 10), this 2... q -1 comparison values are 0 and 1 respectively. 10 (i.e., 10), 10 10 (i.e., 100), 11 10 (i.e., 110).
[0090] By determining 2 in advance q -1 comparison value, so that when performing a division calculation on the third power value to determine the second power value, the second power value can be directly compared with this 2. q The quotient is determined by comparing a value to a multiple of a preset fuse-off time period (i.e., a comparison value). Compared to the divider used in related technologies, this method can maintain calculation speed while avoiding a large circuit area. Thus, it can improve calculation efficiency and reduce costs.
[0091] In some implementations, the electronic fuse is based on a third power value and the 2 q The operation of performing one or more iterative subtraction operations on the -1 comparison value to obtain the second power value can be as follows: using the third power value as the dividend and the duration of the preset circuit breaker period as the divisor; determining the target number of iterations based on the dividend and q, where the target number of iterations is the number of iterations required to determine the second power value; updating the total number of bits w in the dividend based on the target number of iterations; setting i=1; and subtracting the w-(i-1)th bit from the highest to the lowest bit in the dividend. From position q-1 to position w-(i+1) The q-bit is determined as the alignment value; in this 2 q If, among the -1 comparison values, there is a comparison value greater than the alignment value and a comparison value less than the alignment value, then the 2... q The preset value corresponding to the preceding comparison value of the first comparison value among the -1 comparison values that is greater than the alignment value is determined as the target quotient value, or, in the 2 q If, among the -1 comparison values, there exists a comparison value equal to the alignment value, then the 2... q The preset value corresponding to the comparison value that is equal to the alignment value among the -1 comparison values is determined as the target quotient value, or, in the 2 q If every comparison value in the -1 comparison values is less than the alignment value, then the 2 q The preset value corresponding to the largest comparison value among -1 comparison values is determined as the target quotient value, or, in the 2 qIf every comparison value in the -1 comparisons is greater than the alignment value, the target quotient is set to 0; the product of the target quotient and the divisor is subtracted from the alignment value to obtain the target remainder; the wi-th value in the dividend is then... From position q-1 to position w-(i+1) Replace the q-th bit with the target remainder; check if i is less than the target iteration count; if i is less than the target iteration count, let i = i + 1, and re-execute the w-(i-1)th bit of the dividend from the most significant bit to the least significant bit. From position q-1 to position w-(i+1) The steps for determining the alignment value of q and subsequent steps continue until i equals the target iteration number; if i equals the target iteration number, then all determined target quotient values are concatenated in order to obtain the second power value.
[0092] For example, the 0th bit from the left of the dividend can be determined as the most significant bit, and the last bit from the left of the dividend can be determined as the least significant bit.
[0093] For example, the total number of digits in the dividend can be divided by q and rounded up to obtain the target number of iterations.
[0094] For example, the target iteration number can be multiplied by 1 and then by q to obtain the target number of bits in the dividend. The total number of bits in the dividend is then updated according to this target number of bits (e.g., by padding the high-order bits with 0s), resulting in the updated dividend. For instance, assuming the dividend 11010012 has a total of 7 bits and q is 2, dividing the total number of bits 7 (11010012) by 2 and rounding up gives the target iteration number 4. Adding 1 to the target iteration number 4 and multiplying by 2 gives the target number of bits in the dividend 11010012 to be 10. Padding the dividend 11010012 with 0s according to this target number of bits gives the padded dividend 00011010012. This padding method allows the electronic fuse to complete the calculation of the second power value within the second clock cycle corresponding to the target iteration number, thus ensuring the accuracy of the second power value calculation.
[0095] If the 2 q If among the -1 comparison values there is one greater than the dividend, it indicates that the 2 q Among the -1 comparison values, there is one that is exactly no greater than the alignment value, so the 2 can be... q The preset value corresponding to the preceding comparison value of the first comparison value among the -1 comparison values that is greater than the alignment value is determined as the target quotient value. If the 2 q Among the -1 comparison values, there exists a comparison value equal to the alignment value, so the 2 can be... q The preset value corresponding to the preceding comparison value of the first comparison value among the -1 comparison values that is greater than the alignment value is determined as the target quotient value. If the 2 q-1 If each of the comparison values is less than the alignment value, it means that the 2 q Since there is no comparison value greater than the alignment value among the -1 comparison values, the 2 can be directly used. q The preset value corresponding to the largest comparison value among -1 comparison values is determined as the target quotient value. If the 2 q If each of the -1 comparison values is greater than the alignment value, it means that the alignment value is less than the divisor, so the target quotient can be set to 0.
[0096] In this way, the target quotient value of q bits can be determined within one clock cycle of the second clock signal, and the second power value can be determined with fewer second clock signals. This improves calculation speed and efficiency. For example, when the third power value is 36 bits and q is 2, the second power can be determined in only 18 clock cycles of the second clock signal.
[0097] For example, assuming the dividend has a length of 10 digits (i.e., from the 9th digit to the 0th digit), and a is 102, then 2 2 -1 (i.e., 3) preset values are 012, 102, and 112, and the comparison value corresponding to these 3 preset values is 1. divisor, 2 divisor, 3 divisor.
[0098] In the first iteration, the 9th to 6th digits of the dividend are used as alignment values and compared with the three comparison values to obtain a 2-digit target quotient value, and the dividend is updated.
[0099] In the second iteration, the 7th to 4th digits of the dividend are used as alignment values and compared with the three comparison values to obtain a 2-digit target quotient value, and the dividend is updated.
[0100] In the third iteration, the 5th to 2nd digits of the dividend are used as alignment values and compared with the three comparison values to obtain a 2-digit target quotient value, and the dividend is updated.
[0101] In the fourth iteration, the 3rd to 0th digits of the dividend are used as alignment values and compared with the 3 comparison values to obtain a 2-digit target quotient value, and the dividend is updated.
[0102] By concatenating all the target quotients in sequence, the second power value is obtained, and the dividend updated in the fourth iteration is determined as the remainder.
[0103] In some implementations, the operation of the electronic fuse in determining the fuse alarm information based on the second power value can be as follows: if the second power value is greater than or equal to the fuse power threshold, the fuse alarm information indicates that the target wiring harness needs to be blown; if the second power value is less than the fuse power threshold, the fuse alarm information indicates that the target wiring harness does not need to be blown.
[0104] For example, the fusing power threshold can be determined in real time, or it can be preset; this application embodiment does not limit this.
[0105] If the third power value is greater than or equal to the fusing power threshold, it indicates that the current accumulated heat of the target wiring harness is approaching its upper limit, and the target wiring harness poses a safety risk. Therefore, it can be determined that the fusing alarm message indicates that the target wiring harness needs to be blown. If the third power value is less than the fusing power threshold, it indicates that the current accumulated heat of the target wiring harness is not approaching its upper limit, and the probability of the target wiring harness posing a safety risk is small. Therefore, it can be determined that the fusing alarm message indicates that the target wiring harness does not need to be blown.
[0106] Optionally, the electronic fuse can acquire a fusing voltage threshold, which is the maximum voltage value that the target wire harness can withstand; and determine the fusing power threshold corresponding to the fusing voltage threshold from a preset correspondence, which is the correspondence between fusing voltage and fusing power.
[0107] The preset correspondence can be set in advance.
[0108] In this way, the fusing power threshold can be obtained relatively quickly without recalculation. This saves circuit area and calculation time, thereby improving calculation efficiency.
[0109] Step 303: Based on the fuse alarm information, the electronic fuse sets a fuse flag bit at the rising edge of the next first clock signal of the first clock signal. The fuse flag bit is used to control the turn-on or turn-off of the load switch.
[0110] This fuse flag is used to indicate whether the load requires overcurrent protection.
[0111] For example, the electronic fuse can generate a control signal corresponding to the fuse flag bit, and control the load switch through the control signal.
[0112] In some implementations, step 303 can be performed as follows: when the fuse alarm message indicates that the target wiring harness needs to be blown, the electronic fuse sets the fuse flag bit to 1 at the rising edge of the next first clock signal of the first clock signal; when the fuse alarm message indicates that the target wiring harness does not need to be blown, the fuse flag bit is set to 0 at the rising edge of the next first clock signal of the first clock signal.
[0113] To facilitate understanding, the following will be combined with... Figure 4 The circuit breaker control process provided in the embodiments of this application will be described by way of example. Figure 4 As shown, Figure 4 This is a timing diagram of the circuit breaker control method provided in the embodiments of this application.
[0114] The timing sequence of this fuse control method includes CLK1 (the first clock signal) and CLK2 (the second clock signal), where the first clock signal is obtained by dividing the second clock signal by 64. The parameters are: Sample (setting the sampling enable signal), I_in (reading the current value), T_th (filter window coefficient), Iin_2 (the square of the current value), Iin_4 (the fourth power of the current value), K2_in_2 (the second-order proportional coefficient), K3_OVC (the intermediate variable of the third-order proportional coefficient), K3_in_4 (the third-order proportional coefficient), P_in_temp (the intermediate variable of the first power value), P_in (the first power value), P_sum (the second power value), P_sum_temp (the temporary storage value of the power integral recursive calculation process of the second power value), P_avg (the third power value), and Fuse_latch (setting the fuse flag).
[0115] After the electronic fuse is first powered on, the second clock generator sets the sampling enable signal Sample high to acquire the current signal and obtain the current value I_in at the rising edge of each of the first clock signals (i.e., the rising edge of the 64th second clock signal). Then, at the rising edge of the 0th second clock signal synchronized with the new first clock signal, the acquired I_in is read, and T_th is calculated starting at the rising edge of the 1st second clock signal. Iin_2 is calculated starting at the rising edge of the 2nd second clock signal, Iin_4 is calculated starting at the rising edge of the 3rd second clock signal, K2_in_2 is read at the rising edge of the 4th second clock signal, basic quantity calculations and second-order term preparation are performed between the 5th and 16th second clock signals, K3_in_4 is calculated at the rising edge of the 17th second clock signal to obtain K3_OVC, and K3_in_4 is calculated using K3_OVC at the rising edge of the 18th second clock signal. P_in_temp is calculated at the rising edge of the 19th second clock signal, P_in at the rising edge of the 20th second clock signal, P_sum at the rising edge of the 21st second clock signal, and P_sum_temp at the rising edge of the 22nd second clock signal. Higher-order terms are calculated and instantaneous power synthesis is performed between the 23rd and 40th second clock signals. P_avg is calculated starting at the rising edge of the 41st second clock signal. Between the 42nd and 62nd second clock signals, P_avg is calculated and the fuse alarm information is determined. At the rising edge of the 63rd second clock signal, the sampling enable signal Sample is set high to acquire the current signal and obtain the current value I_in. The fuse flag Fuse_latch is set at the rising edge of the new first clock cycle.
[0116] In this embodiment, the electronic fuse acquires the current value of the target wiring harness when the rising edge of the first clock signal arrives. Within n cycles of the second clock signal synchronized with the first clock signal, it determines a fuse-breaking alarm based on the current value. This fuse-breaking alarm indicates whether the target wiring harness needs to be blown. Based on the fuse-breaking alarm, a fuse-breaking flag is set at the rising edge of the next first clock signal. This fuse-breaking flag controls the on / off state of the load switch. Since the signal generation frequency of the second clock signal is greater than that of the first clock signal, and the first clock signal is synchronized with the second clock signal, the current value is acquired at the rising edge of the first clock signal, and the fuse-breaking result is determined within n clock cycles synchronized with the first clock signal. All processes required from detecting the current value to determining the fuse-breaking result can be completed in just one first clock cycle. This significantly shortens the time required to determine the fuse-breaking alarm information, thereby improving the real-time performance and efficiency of the fuse-breaking alarm.
[0117] Figure 5 This is a schematic diagram of a fuse control device provided in an embodiment of this application. The device can be implemented as part or all of a computer device by software, hardware, or a combination of both, and this computer device can be as described below. Figure 6 The computer equipment shown. See also Figure 5 The device includes: a first acquisition module 501, a first determination module 502, and a setting module 503.
[0118] The first acquisition module 501 is used to acquire the current value of the target wire harness when the rising edge of the first clock signal arrives. The first determining module 502 is used to determine the fuse alarm information based on the current value within n cycles of the second clock signal synchronized with the first clock signal. The fuse alarm information is used to indicate whether the target harness needs to be blown. The setting module 503 is used to set the fuse flag bit at the rising edge of the next first clock signal according to the fuse alarm information. The fuse flag bit is used to control the turn-on or turn-off of the load switch.
[0119] Optionally, the first determining module 502 is used for: When the rising edge of the first second clock signal among the n second clock signals arrives, the first power value is determined based on the current value. The first power value is the instantaneous power value at the target sampling time, and the target sampling time is the time when the current value is collected. When the rising edge of the a-th second clock signal in the n second clock signals arrives, the second power value is determined according to the first power value. The second power value is the average power value of the preset fuse-breaking time period. The start time of the preset fuse-breaking time period is the first time in the first m-1 sampling times before the target sampling time, and the end time of the preset fuse-breaking time period is the target sampling time. m is an integer greater than or equal to 2. When the rising edge of the b-th second clock signal among the n second clock signals arrives, the fuse alarm information is determined according to the second power value, where b and a are both positive integers, b is greater than a, and a is greater than 1.
[0120] Optionally, the first determining module 502 is used for: The third power value is determined based on the first power value. The third power value is the integral power value of the target sampling time and the m-1 sampling times. Divide the third power value by the duration of the preset fuse interruption period to obtain the second power value.
[0121] Optionally, the first determining module 502 is used for: The duration of the preset circuit breaker period is compared with 2. q Multiplying each of the -1 preset values results in 2.q -1 comparison value, the 2 q -1 preset values, the first preset value is 1, the 2 q -1 preset values increase in an orderly manner and every two adjacent preset values differ by 1, q is the number of bits of the quotient value to be determined within one cycle of a second clock signal, and q is an integer greater than or equal to 2; Based on the third power value and the 2 q -1 comparison values are subjected to one or more iterative subtraction operations to obtain the second power value. Any one of these iterative subtraction operations is performed within the period of a second clock signal.
[0122] Optionally, the first determining module 502 is used for: Use the third power value as the dividend and the duration of the preset fuse interruption period as the divisor; The target number of iterations is determined based on the dividend and q, and the target number of iterations is the number of iterations required to determine the second power value. Update the total number of digits in the dividend based on the target number of iterations; Let i = 1; The w-(i-1)th digit of the dividend from the most significant digit to the least significant digit. From position q-1 to position w-(i+1) The q-bit is determined as the alignment value; in this 2 q If, among the -1 comparison values, there is a comparison value greater than the alignment value and a comparison value less than the alignment value, then the 2... q The preset value corresponding to the preceding comparison value of the first comparison value among the -1 comparison values that is greater than the alignment value is determined as the target quotient value, or, in the 2 q If, among the -1 comparison values, there exists a comparison value equal to the alignment value, then the 2... q The preset value corresponding to the comparison value that is equal to the alignment value among the -1 comparison values is determined as the target quotient value, or, in the 2 q If every comparison value in the -1 comparison values is less than the alignment value, then the 2 q The preset value corresponding to the largest comparison value among -1 comparison values is determined as the target quotient value, or, in the 2 q If every comparison value in the -1 comparisons is greater than the alignment value, the target quotient is set to 0; the product of the target quotient and the divisor is subtracted from the alignment value to obtain the target remainder; the wi-th value in the dividend is then... From position q-1 to position w-(i+1) Replace the q-th digit with the target remainder; Determine if i is less than the target number of iterations; If i is less than the target iteration number, let i = i + 1, and re-execute the iteration for the w-(i-1)th digit of the dividend from the most significant digit to the least significant digit. From position q-1 to position w-(i+1) The steps for determining the alignment value of q-bit and subsequent steps continue until i equals the target iteration number; If i equals the target iteration number, then all the determined target quotient values are concatenated in order to obtain the second power value.
[0123] Optionally, the first determining module 502 is used for: If the second power value is greater than or equal to the fuse power threshold, the fuse alarm message indicates that the target harness needs to be blown. If the second power value is less than the fuse power threshold, it is determined that the fuse alarm message indicates that the target wiring harness does not need to be fused.
[0124] Optionally, the device further includes: The second acquisition module is used to acquire the fusing voltage threshold, which is the maximum voltage value that the target wire harness can withstand; The second determining module is used to determine the fusing power threshold corresponding to the fusing voltage threshold from a preset correspondence relationship, wherein the preset correspondence relationship is the correspondence between fusing voltage and fusing power.
[0125] In this embodiment, the current value of the target wiring harness is acquired when the rising edge of the first clock signal arrives. Within n cycles of the second clock signal synchronized with the first clock signal, a fuse-breaking alarm is determined based on the current value. This fuse-breaking alarm indicates whether the target wiring harness needs to be blown. Based on the fuse-breaking alarm, a fuse-breaking flag is set at the rising edge of the next first clock signal. This fuse-breaking flag controls the on / off state of the load switch. Since the signal generation frequency of the second clock signal is greater than that of the first clock signal, and the first and second clock signals are synchronized, the current value is acquired at the rising edge of the first clock signal, and the fuse-breaking result is determined within n clock cycles synchronized with the first clock signal. All processes from detecting the current value to determining the fuse-breaking result can be completed in just one first clock cycle. This significantly shortens the time required to determine the fuse-breaking alarm information, thereby improving the real-time performance and efficiency of the fuse-breaking alarm.
[0126] It should be noted that the fuse control device provided in the above embodiments is only illustrated by the division of the above functional modules when controlling the fuse. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0127] The functional modules in the above embodiments can be integrated into one processing unit, or each functional module can exist as a separate physical processing unit, or two or more functional modules can be integrated into one processing unit. The processing unit can be implemented in hardware or software. Furthermore, the specific names of the functional modules are only for easy differentiation and are not intended to limit the scope of protection of the embodiments of this application.
[0128] The fuse control device and fuse control method embodiments provided in the above embodiments belong to the same concept. The specific working process and technical effects of the functional modules in the above embodiments can be found in the method embodiment section, and will not be repeated here.
[0129] Figure 6 This is a schematic diagram of an electronic fuse provided in an embodiment of this application. Figure 6 As shown, the electronic fuse 6 includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, it implements the steps in the fuse control method in the above embodiments.
[0130] The electronic fuse 6 can be a general-purpose computer device or a special-purpose computer device.
[0131] Processor 60 can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0132] In some embodiments, memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or RAM of the computer device 6. In other embodiments, memory 61 may be an external storage device of the computer device 6, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device 6. Furthermore, memory 61 may include both internal and external storage units of the computer device 6. Memory 61 is used to store the operating system, applications, boot loader, data, and other programs. Memory 61 may also be used to temporarily store data that has been output or will be output.
[0133] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0134] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0135] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.
[0136] This application provides a computer program product that, when run on a computer, causes the computer to perform the steps described in the various method embodiments above.
[0137] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above method embodiments of this application can be implemented by a computer program. This computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or some intermediate form. The computer-readable storage medium can include at least: any entity or device capable of carrying computer program code to a computer device, recording media, computer memory, read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage devices. The computer-readable storage medium mentioned in this application can be a non-volatile storage medium; in other words, it can be a non-transient storage medium.
[0138] It should be understood that all or part of the steps of the above embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented in whole or in part as a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-described computer-readable storage medium.
[0139] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0140] In the embodiments provided in this application, it should be understood that the disclosed apparatus / computer devices and methods can be implemented in other ways. For example, the apparatus / computer device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this application according to actual needs.
[0141] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0142] The embodiments described above are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A fuse control method, characterized in that, The method is applied to an electronic fuse, which includes a first clock generator and a second clock generator. The first clock generator generates a first clock signal, and the second clock generator generates a second clock signal. The first clock signal is obtained by dividing the second clock signal by n. The first clock signal is synchronized with the second clock signal, where n is an integer greater than or equal to 2. The method includes: The current value of the target harness is obtained when the rising edge of the first clock signal arrives; Within n cycles of a second clock signal synchronized with the first clock signal, a fuse alarm message is determined based on the current value. The fuse alarm message is used to indicate whether the target harness needs to be blown. Based on the fuse failure alarm information, a fuse failure flag is set at the rising edge of the next first clock signal of the first clock signal. The fuse failure flag is used to control the turn-on or turn-off of the load switch.
2. The method as described in claim 1, characterized in that, The step of determining the fuse alarm information based on the current value within n cycles of the second clock signal synchronized with the first clock signal includes: When the rising edge of the first second clock signal among the n second clock signals arrives, a first power value is determined based on the current value. The first power value is the instantaneous power value at the target sampling time, where the target sampling time is the time when the current value is collected. When the rising edge of the a-th second clock signal among the n second clock signals arrives, a second power value is determined according to the first power value. The second power value is the average power value of the preset circuit breaker time period. The start time of the preset circuit breaker time period is the first time among the first m-1 sampling times before the target sampling time. The end time of the preset circuit breaker time period is the target sampling time. The m is an integer greater than or equal to 2. When the rising edge of the b-th second clock signal among the n second clock signals arrives, the fuse alarm information is determined according to the second power value, where b and a are both positive integers, b is greater than a, and a is greater than 1.
3. The method as described in claim 2, characterized in that, Determining the second power value based on the first power value includes: A third power value is determined based on the first power value, wherein the third power value is the integral power value of the target sampling time and the m-1 sampling times; The second power value is obtained by dividing the third power value by the duration of the preset fuse interruption time period.
4. The method as described in claim 3, characterized in that, The step of dividing the third power value by the duration of the preset fuse-breaking time period to obtain the second power value includes: The duration of the preset circuit breaker time period is respectively compared with 2 q Multiplying each of the -1 preset values results in 2. q -1 comparison value, the 2 q -1 preset values, the first preset value is 1, the 2 q -1 preset values are ordered and each pair of adjacent preset values differs by 1, where q is the number of bits of the quotient value to be determined within a period of a second clock signal, and q is an integer greater than or equal to 2; Based on the third power value and the 2 q -1 comparison values are subjected to one or more iterative subtraction operations to obtain the second power value. Any one of the one or more iterative subtraction operations is performed within the period of a second clock signal.
5. The method as described in claim 4, characterized in that, The third power value and the 2 q -1 comparison values are subjected to one or more iterative subtraction operations to obtain the second power value, including: Use the third power value as the dividend and the duration of the preset fuse interruption period as the divisor; The target number of iterations is determined based on the dividend and q, and the target number of iterations is the number of iterations required to determine the second power value; Update the total number of digits w in the dividend according to the target number of iterations; Let i = 1; The w-(i-1)th digit of the dividend from the most significant digit to the least significant digit. From position q-1 to position w-(i+1) The q-bit is determined as the alignment value; in the 2 q If, among the -1 comparison values, there is a comparison value greater than the alignment value and a comparison value less than the alignment value, then the 2 q The preset value corresponding to the preceding comparison value of the first comparison value among the -1 comparison values that is greater than the alignment value is determined as the target quotient value, or, in the 2 q If one of the -1 comparison values is equal to the alignment value, then the 2 q The preset value corresponding to the comparison value that is equal to the alignment value among the -1 comparison values is determined as the target quotient value, or, in the 2 q If each of the -1 comparison values is less than the alignment value, then the 2 q The preset value corresponding to the largest comparison value among -1 comparison values is determined as the target quotient value, or, in the 2 q If every comparison value in the -1 comparison values is greater than the alignment value, the target quotient is set to 0; the product of the target quotient and the divisor is subtracted from the alignment value to obtain the target remainder; the wi-th value in the dividend is... From position q-1 to position w-(i+1) Replace the q-th bit with the target remainder; Determine whether i is less than the target number of iterations; If i is less than the target iteration number, let i = i + 1, and re-execute the step of dividing the dividend from the most significant digit to the least significant digit, i = w-(i-1). From position q-1 to position w-(i+1) The step of determining the q-bit as the alignment value and subsequent steps continue until i equals the target iteration number; If i equals the target iteration number, then all the determined target quotient values are concatenated in order to obtain the second power value.
6. The method as described in claim 2, characterized in that, Determining the fuse alarm information based on the second power value includes: If the second power value is greater than or equal to the fuse power threshold, it is determined that the fuse alarm information indicates that the target wiring harness needs to be fused; If the second power value is less than the fuse power threshold, it is determined that the fuse alarm information indicates that the target wiring harness does not need to be fused.
7. The method as described in claim 6, characterized in that, The method includes: Obtain the fusing voltage threshold, which is the maximum voltage value that the target wire harness can withstand; The fusing power threshold corresponding to the fusing voltage threshold is determined from a preset correspondence, wherein the preset correspondence is the correspondence between fusing voltage and fusing power.
8. An electronic fuse, characterized in that, The electronic fuse includes a first clock generator, a second clock generator, a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the computer program, when executed by the processor, implements the method as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 7.
10. A computer program product, characterized in that, When the computer program product is run on a computer device, it causes the computer device to perform the method as described in any one of claims 1 to 7.