Method of measuring a current and corresponding circuit

The method and circuit with adjustable thresholds and asynchronous converters improve reliability in safety-critical applications like BMS by minimizing false positives and costs, while maintaining SIL ratings with existing converters.

US20260376374A1Pending Publication Date: 2026-11-26STMICROELECTRONICS INT NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/682732
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-05-21
Filing Date
2026-05-20
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing safety-critical applications, such as BMS, face challenges in ensuring high reliability of current measurements due to the limitations of fixed threshold comparisons in redundant sensor systems, leading to potential false positives and increased die area, power consumption, and costs.

Method used

A method and circuit using two asynchronous analog-to-digital converters with a variable threshold that adjusts proportionally to the measured current, combined with filtering, to detect anomalies and reduce false positives, while utilizing existing converters to minimize die area and power consumption.

Benefits of technology

Enhances measurement reliability in safety-critical applications by reducing false positives and maintaining SIL ratings with minimal die area and cost increase, leveraging existing converters for redundancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260376374A1-D00000_ABST
    Figure US20260376374A1-D00000_ABST
Patent Text Reader

Abstract

A method of measuring a current (Imeas), comprising: sensing said current (Imeas) via a first analog-to-digital converter (ADC1) in a time instant, obtaining a first digital value; sensing said current (Imeas) via a second analog-to-digital converter (ADC2) in said time instant, obtaining a second digital value; computing (CC) an absolute difference between the first digital value and the second digital value; comparing (CC) said absolute difference with a threshold; and if the absolute difference is higher than the threshold, detecting the presence of an anomaly; wherein said threshold is: a constant value for current (Imeas) values below a current threshold; and a value that increases proportionally to the current (Imeas) for current (Imeas) values above said current threshold.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority to Italian Application No. 102025000011503, filed on May 21, 2025, which application is hereby incorporated herein by reference.TECHNICAL FIELD

[0002] The description relates to methods for performing measurements of a current in safety-related applications or safety-critical applications, such as BMS (“Battery Management System”).BACKGROUND

[0003] In safety-critical (or safety-related) applications, sensor data is to be acquired with high reliability in order to prevent safety-related issues.

[0004] In addition, many safety-critical applications may be required to satisfy safety standard requirements, such as high ratings of SIL (“Safety Integrity Level”) or ASIL (“Automotive Safety Integrity Level”) in automotive applications, on sensor monitoring functions, in order to meet FSR (“Functional Safety Requirements”) and SG (“Safety Goal”) requirements.

[0005] To improve the reliability of measured data, for instance, of a current that is to be measured, known solutions measure such data via a plurality of sensors, therefore, adding at least one sensor and at least one redundant component. Usually, a first current measure is obtained via a first sensor at a certain time instant, and a second redundant current measure is obtained via a second redundant sensor at the same time instant.

[0006] The first measure is then compared with the second redundant measure in order to verify whether the sensors are providing a same result for a same measuring operation.

[0007] Known solutions use such redundancy to compute an absolute difference between the first measure and the second redundant measure, and then to compare such difference with a fixed threshold indicative of an accepted margin between the two measures.

[0008] If the absolute difference is below the fixed threshold, known solutions consider that the sensors are measuring a same quantity, therefore, the safety-critical application can operate normally.

[0009] Otherwise, if the absolute difference is above the fixed threshold, known solutions consider that the sensors are measuring different quantities, therefore, an anomaly is present in the operation of the safety-critical application.

[0010] For instance, in known BMS (“Battery Management System”) applications, the concept of redundancy and diversity is exploited by adding an external operational amplifier to sense pack current via a shunt resistor or a cell voltage and a redundant operational amplifier to sense a redundant value of the pack current.

[0011] Solutions to increase even more the reliability of the measuring operations in safety-critical applications would therefore be beneficial.SUMMARY

[0012] An embodiment method for measuring a current, the method comprises sensing the current via a first analog-to-digital converter at a first time instant to obtain a first digital value, sensing the current via a second analog-to-digital converter at the first time instant to obtain a second digital value, computing an absolute difference between the first digital value and the second digital value, comparing the absolute difference to a threshold, and in response to the absolute difference being higher than the threshold, detecting an anomaly. The threshold is set to a constant value when the current is below a current threshold, and to a value that increases proportionally to the current when the current is above the current threshold.

[0013] An embodiment circuit for measuring a current includes a first analog-to-digital converter configured to sense the current at a first time instant to obtain a first digital value, a second analog-to-digital converter configured to sense the current at the first time instant to obtain a second digital value. A comparing circuit is configured to compute an absolute difference between the first digital value and the second digital value, to compare the absolute difference to a threshold, and in response to the absolute difference being higher than the threshold, to detect an anomaly. The threshold is set to a constant value when the current is below a current threshold, and to a value that increases proportionally to the current when the current is above the current threshold.

[0014] An embodiment method for measuring an analog quantity, the method comprises sensing the analog quantity via a first analog-to-digital converter at a first time instant to obtain a first digital value, sensing the analog quantity via a second analog-to-digital converter at the first time instant to obtain a second digital value, computing an absolute difference between the first digital value and the second digital value, comparing the absolute difference to a threshold, and in response to the absolute difference being higher than the threshold, detecting an anomaly, wherein the threshold is set to a constant value when the analog quantity is below a quantity threshold, and to a value that increases proportionally to the analog quantity when the analog quantity is above the quantity threshold.BRIEF DESCRIPTION OF THE DRAWINGS

[0015] One or more embodiments will now be described, by way of example only, with reference to the annexed figures, wherein:

[0016] FIG. 1 illustrates a measuring unit according to embodiments of the present description;

[0017] FIG. 2 illustrates a first exemplary implementation of a measuring unit comprising a first and a second ADC (“Analog-to-Digital Converter”) according to embodiments of the present description;

[0018] FIG. 3 illustrates a diagram showing the states of the first and the second ADC of FIG. 2 according to embodiments of the present description;

[0019] FIG. 4 illustrates a second exemplary implementation of a measuring unit comprising a first and a second ADC (“Analog-to-Digital Converter”) according to embodiments of the present description;

[0020] FIG. 5 illustrates a diagram showing the states of the first and the second ADC of FIG. 4 according to embodiments of the present description; and

[0021] FIG. 6 illustrates a BMS according to solutions as described herein.

[0022] Corresponding numerals and symbols in the different figures generally refer to corresponding parts unless otherwise indicated.

[0023] The figures are drawn to clearly illustrate the relevant aspects of the embodiments and are not necessarily drawn to scale.

[0024] The edges of features drawn in the figures do not necessarily indicate the termination of the extent of the feature.DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

[0025] One or more embodiments relate to methods for performing such measurements in safety-related applications with the aim of increasing the reliability of such measurements.

[0026] Embodiments described herein relate to a method of measuring a current and to a corresponding circuit. The embodiments can provide increased reliability of measuring operations relative to certain known approaches.

[0027] In one or more embodiments, a method of measuring a current includes sensing the current via a first analog-to-digital converter in a time instant to obtain a first digital value, and sensing the current via a second analog-to-digital converter in the time instant to obtain a second digital value. The method further includes computing an absolute difference between the first digital value and the second digital value, comparing the absolute difference with a threshold, and, when the absolute difference is higher than the threshold, detecting a presence of an anomaly. The threshold can be a constant value for current values below a current threshold, and a value that increases proportionally to the current for current values above the current threshold.

[0028] In one or more embodiments, the method is performed in a battery management system (BMS), and the first analog-to-digital converter and the second analog-to-digital converter are included in the battery management system. In one or more embodiments, one of the first analog-to-digital converter and the second analog-to-digital converter is configured to perform one or more additional functions in the battery management system. For example, in one or more embodiments, the analog-to-digital converter configured to perform the one or more additional functions is a coulomb counter of the battery management system, or is an analog-to-digital converter of the battery management system configured to monitor an instantaneous battery pack current.

[0029] In one or more embodiments, the constant value of the threshold is equal to a higher noise floor between a noise floor of the first analog-to-digital converter and a noise floor of the second analog-to-digital converter. In one or more embodiments, the current threshold is a current obtained by intersecting the higher noise floor between the noise floor of the first analog-to-digital converter and the noise floor of the second analog-to-digital converter with an ideal error transfer function of an analog-to-digital converter.

[0030] In one or more embodiments, the first analog-to-digital converter and the second analog-to-digital converter operate asynchronously, the first analog-to-digital converter having a first analog-to-digital converter transfer function and the second analog-to-digital converter having a second analog-to-digital converter transfer function. In such embodiments, the method further includes filtering, via a first filtering unit having a first filtering transfer function, the first digital value to obtain a first filtered digital value, and filtering, via a second filtering unit having a second filtering transfer function, the second digital value to obtain a second filtered digital value. The operation of computing the absolute difference is performed using the first filtered digital value and the second filtered digital value, and a combination of the first analog-to-digital converter transfer function and the first filtering transfer function is equal to a combination of the second analog-to-digital converter transfer function and the second filtering transfer function.

[0031] In one or more embodiments, the method includes matching the combination of the first analog-to-digital converter transfer function and the first filtering transfer function to the combination of the second analog-to-digital converter transfer function and the second filtering transfer function by selecting a subset of the first filtering unit, the second filtering unit, or both, to perform the respective filtering operation, or by modifying filtering parameters of one filtering unit between the first filtering unit and the second filtering unit.

[0032] In one or more embodiments, the method is performed in response to receiving a command from a control unit indicating to measure the current. In one or more embodiments, the method further includes, when the control unit is in a sleep mode, automatically performing the measuring of the current, which can be performed on a periodic basis, and, when the presence of the anomaly is detected, sending a wake-up signal to the control unit indicating the presence of the anomaly.

[0033] Embodiments as described herein can facilitate achieving higher reliability of measuring operations relative to certain known approaches.

[0034] In the ensuing description one or more specific details are illustrated, aimed at providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.

[0035] Reference to “an embodiment” or “one embodiment” in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is comprised in at least one embodiment. Hence, phrases such as “in an embodiment” or “in one embodiment” that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment.

[0036] Moreover, particular configurations, structures, or characteristics may be combined in any adequate way in one or more embodiments.

[0037] The headings / references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.

[0038] For simplicity and ease of explanation, throughout this description, and unless the context indicates otherwise, like parts or elements are indicated in the various figures with like reference signs, and a corresponding description will not be repeated for each and every figure.

[0039] As previously described, solutions as described herein aim at obtaining higher measurement reliability in safety-critical applications.

[0040] Specifically, solutions according to the present description refer to BMS (“Battery Management System”) applications. For example, solutions according to the present description may be used in BMS for Energy Storage Systems (ESS) or automotive.

[0041] However, it is noted that although the present description refers to solutions for use in BMS, solutions as described herein may also be considered in any other safety-critical application wherein a measurement requiring a certain safety rating, such as SIL or ASIL, is requested.

[0042] FIG. 1 illustrates a measuring unit 10 according to embodiments of the present description.

[0043] The measuring unit 10 of FIG. 1 comprises: a first ADC (“Analog-to-Digital Converter”) ADC1 configured to sense a certain analog quantity, for instance a first voltage resulting from a current Imeas (corresponding to a current to be measured) flowing in a first shunt resistor RS1, and to convert the analog quantity into a first digital value; a second (redundant) Analog-to-Digital Converter ADC2 configured to sense again such analog quantity, for instance a second voltage resulting from such current Imeas flowing in a second shunt resistor RS2 dimensioned as the first shunt resistor RS1, and to convert such analog quantity into a second digital value; and a cross-check unit CC configured to receive the output values provided by the first ADC and the second ADC, that is, the first digital value and the second digital value respectively, and to perform a conversion integrity check. The cross-check unit CC may also be referred to as a comparing circuit, or simply as a circuit configured to compare a first digital value and a second digital value provided by the first ADC and the second ADC, respectively.

[0044] It is noted that the first shunt resistor RS1 and the second shunt resistor RS2 may also be implemented via a same shunt resistor, coupled to both the first ADC and the second ADC.

[0045] It is noted that the sensing of the analog quantity by the first ADC and the sensing of the analog quantity by the second ADC are performed at a same time instant. If the first ADC and the second ADC are asynchronous, that is, have different timings such as different clocks or different conversion times, the measurements (performed at the same time instant) may be aligned before entering the cross-check unit CC.

[0046] The conversion integrity check operation according to solutions as described herein is performed by comparing a first output conversion provided by the first ADC (that is, the first digital value) with a second (redundant) output conversion provided by the second ADC (that is, the second digital value) to verify whether such first output conversion corresponds to the second (redundant) output conversion.

[0047] In fact, in case of absence of hardware failures, the first output conversion provided by the first ADC and the second (redundant) output conversion provided by the second ADC should be equivalent, except for a margin related to the ADC accuracy due to differences / mismatches and noise.

[0048] Such comparison is performed by computing an absolute difference between the two conversions provided by the first and the second ADC, and by comparing such absolute difference with a digital threshold indicative of an accepted margin between the two measures.

[0049] If the absolute difference between the two conversions is higher than the digital threshold indicative of the accepted margin between the measures, solutions according to the present description are configured to detect an anomaly in the behavior of the analog quantity that is to be measured.

[0050] In embodiments according to the present description, the cross-check unit CC may be configured to run a self-test procedure in order to evaluate its correct functionality. In this way, it is possible to understand if the anomaly is due to the cross-check unit CC itself or if the behavior of the analog quantity that is to be measured is anomalous.

[0051] It is noted that, differently from the known solutions described above, solutions according to the present description consider a digital threshold having a variable value, facilitating achieving a higher reliability.

[0052] The value of the digital threshold according to embodiments as described herein can be obtained as a function of the value of the measured quantity, for instance, as a function of the value of the current Imeas that is to be measured.

[0053] Therefore, the value of the digital threshold may: be constant, for values of the measured analog quantity which are smaller than or equal to a quantity threshold; and increase by an amount proportional to the value of the measured analog quantity, for values of the measured quantity which are higher than such quantity threshold.

[0054] The quantity threshold may be chosen aiming at reducing the influences of the offset and gain errors of the first and second ADC on the measurements.

[0055] In fact, in correspondence of small values of the measured quantity (that is, of the current Imeas), the offset error of the ADCs alters the measurements of the analog quantity more than the gain error, therefore, such offset error may be considered when performing the comparison operation with the variable digital threshold described above.

[0056] Hence, in order to consider the offset (constant) error, the value of the variable digital threshold is set, for values of the measured quantity lower than or equal to the quantity threshold, to a constant value, for instance, equal to the noise floor of the ADC.

[0057] It is noted that such noise floor corresponds to the maximum power of the random noise affecting the ADC outputs.

[0058] Conversely, in correspondence of higher values of the measured quantity, the gain error of the ADCs alters the measurements of such analog quantity more than the offset error, therefore, such gain error may be considered when checking whether the first output conversion provided by the first ADC is within the value of the variable digital threshold from the second (redundant) output conversion provided by the second ADC.

[0059] Hence, in order to consider the gain error (that increases with the increasing of the measured value), the value of the variable digital threshold is increased, for values of the measured quantity higher than the quantity threshold, of a value that increases proportionally to the value of the measured quantity. It is noted that, by increasing the variable digital threshold for higher values of the measured quantity, it is possible to prevent in a more efficient way the notification of false positives, that is, of detected malfunctioning in the operation of the safety-critical application not due to actual problems but to the presence of the gain error of the ADC.

[0060] In addition, since the gain error is already considered by increasing the variable digital threshold in correspondence of high values of the measured quantity, the value of the variable digital threshold for smaller values of the measured quantity, when the offset error has a greater impact than the gain error, may be smaller than in known solutions, for instance, may be equal to the noise floor of the ADC. In fact, in known solutions, since a single fixed-value threshold is considered, such a threshold is to be chosen by considering a tradeoff between the impacts of the offset error and those of the gain error, leading to false positives for high values of the measured quantity and to a lower accuracy for small values of such measured quantity.

[0061] To summarize, solutions according to the present description refer to a method of measuring an analog quantity such as a current Imeas, such method comprising: sensing such current Imeas via a first analog-to-digital converter ADC in a time instant, obtaining a first digital value; sensing such current Imeas via a second analog-to-digital converter ADC2 in such time instant, that is, contemporaneously to the sensing operation of the first ADC, obtaining a second digital value; computing, for instance, via the cross-check unit CC, an absolute difference between the first digital value and the second digital value; comparing, for instance, again via the cross-check unit CC, such absolute difference with a threshold, that is, the variable digital threshold described above; and if the absolute difference is higher than the threshold, detecting the presence of an anomaly.

[0062] The threshold, that is, the variable digital threshold, considered in solutions as described herein is: a constant value for current values below a current threshold, that is, the quantity threshold described above; and a value that increases proportionally to the current Imeas, for instance, a value that increases with the increasing of the current Imeas, for current values above such current threshold.

[0063] In embodiments according to the present description, such constant value of the threshold may be equal to the higher noise floor between the noise floor of the first analog-to-digital converter ADC and the one of the second analog-to-digital converter ADC2.

[0064] In view of the above, it is noted that the quantity threshold may be set in a point where the impact of the offset error and the one of the gain error are (about) equal. Therefore, such quantity threshold may be set in a point of intersection of a constant curve indicative of the noise floor of the ADC and an ideal characteristic curve indicative of the ideal behavior of the ADC.

[0065] Hence, for small values of the measured quantity, that is, for values of the measured quantity which are smaller than or equal to the quantity threshold described above, the digital threshold used in the comparison of the first output conversion provided by the first ADC and the second (redundant) output conversion provided by the second ADC is constant and equal to the noise floor of the ADC.

[0066] Differently, for higher values of the measured quantity, that is, for values of the measured quantity which are higher than the quantity threshold described above, the digital threshold used in the comparison of the first output conversion provided by the first ADC and the second (redundant) output conversion provided by the second ADC increases, starting from the noise floor of the ADC, proportionally with respect to increases of the value of the measured quantity.

[0067] Hence, the current threshold (corresponding to the quantity threshold described above) may be the current obtained in correspondence of the intersection between the higher noise floor between the noise floor of the first analog-to-digital converter ADC1 and the one of the second analog-to-digital converter ADC2 with an ideal error transfer function of an analog-to-digital converter.

[0068] For instance, if the absolute value of both of the two conversions provided by the first and the second ADC are higher than the quantity threshold, the following equations for obtaining the digital threshold Thdgt may be considered:T⁢hd⁢g⁢t=<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IA⁢D⁢C⁢1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>CHI⁢ if⁢ <semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IA⁢D⁢C⁢1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>≥<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IA⁢D⁢C⁢2<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>,obtaining⁢ <semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IA⁢D⁢C⁢1-IA⁢D⁢C⁢2<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>≤<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IA⁢D⁢C⁢1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>CHI⁢T⁢hd⁢g⁢t=<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IADC⁢2<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>CHI⁢ if⁢ <semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IADC⁢1<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics><<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IA⁢D⁢C⁢2<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>,obtaining⁢ <semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IA⁢D⁢C⁢1-IA⁢D⁢C⁢2<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>≤<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[LeftBracketingBar]"< / annotation>< / semantics>IA⁢D⁢C⁢2<semantics definitionURL="">❘<annotation encoding="Mathematica">"\[RightBracketingBar]"< / annotation>< / semantics>CHIwherein: IADC1 is the quantity, that is, the current, sensed by the first ADC at a given time instant; IADC2 is the quantity, that is, the current, sensed by the second ADC at the same given time instant; and Cur is a constant having a pre-determined value indicative of the proportionality between the digital threshold and the highest measured analog quantity between IADC1 and IADC2.For instance, if at least one absolute value of the two conversions provided by the first and the second ADC is smaller than or equal to the quantity threshold, the following equations for obtaining the digital threshold Thdgt may be considered: Thdgt=CLO, obtaining |IADC1−IADC2|≤CLO wherein CLO is a constant having a pre-determined value, for instance, a constant equal to the higher noise floor between the noise floor of the first ADC and the noise floor of the second ADC.

[0070] Moreover, in BMS applications or in applications wherein an analog-to-digital converter is already available, it would be advantageous to perform the measurements described above with a reduced area, for instance, providing only one additional analog-to-digital converter instead of the first ADC and the second ADC and exploiting the analog-to-digital converter already present in the system.

[0071] In this regard, it is noted that known solutions require a consistent increase in die area to provide a sensor (used to perform sensing operations) and the corresponding redundant sensor (that is, the redundant external operational amplifier used to perform redundant sensing operations) for measuring the analog quantity, also leading to higher power consumption for implementing and using such redundant structures.

[0072] Therefore, it would be advantageous to obtain the higher measurement reliability described above requested in safety-critical applications, for instance, the same (A) SIL rating obtained by solutions described above, with limited area increase and design efforts on the die, for instance, removing such redundant external operational amplifier. In this way, it is also possible to reduce production costs, maintaining the same (A) SIL rating.

[0073] In fact, such redundant component added in known solutions to measure data is only aimed at improving the reliability of such measurements, increasing the safety mechanism coverage. However, the redundant component of known solutions has the effect of increasing the area of the die, the amount of material requested (also called “Bill of Materials”-BOM), the costs, and power consumption.

[0074] Instead of the redundant component added in known solutions, solutions according to the present description can advantageously consider the use of an analog-to-digital converter already present, for instance, in the considered BMS system, that is, an analog-to-digital converter present in the system and configured to perform additional functions in such system.

[0075] Therefore, in embodiments according to the present description: the first ADC (“Analog-to-Digital Converter”) ADC1 may be added to the system to continuously sense the quantity to be measured (e.g., the current Imeas); and the second (redundant) Analog-to-Digital Converter ADC2 may be an analog-to-digital converter of a different type and already comprised in the considered system, normally configured to perform a different function but used, upon request, to measure the quantity (such as the current Imeas) at the same time instant of the first ADC.

[0076] For instance, if BMS applications are considered, the second (redundant) Analog-to-Digital Converter ADC2 already comprised in the BMS may be the Coulomb counter, which is normally configured to measure the state of charge of the battery.

[0077] It is noted that, if the second (redundant) Analog-to-Digital Converter ADC2 is an analog-to-digital converter of a different type already comprised in the considered system and configured to perform additional functions therein, the first ADC and the second ADC may be asynchronous, that is, may have different timings such as different clock signals and / or different conversion times. Therefore, the signals provided to the cross-check unit CC may be synchronized in order to be related to a same time window before the conversion integrity check is performed.

[0078] It is noted that, in the exemplary scenarios of FIGS. 2 to 5, the first ADC may provide a filtered digital conversion FC1 of the analog quantity faster than the second ADC FC2. Embodiments with a second ADC faster than the first ADC may also be considered, for instance, switching the functions performed by the ADCs described in the following and maintaining a same transfer function as specified in the following description of FIG. 2.

[0079] It is noted that the first ADC and the second ADC may have different clocks Clk1 and Clk2 respectively. In addition, the first ADC and the second ADC may have different conversion times.

[0080] A possible problem that can arise from the use of different ADCs may be related to the synchronization of the measurements performed by such ADCs, which may be configured in order to sense the same quantity (that is, the same current Imeas) at the same time instant.

[0081] FIG. 2 illustrates a first exemplary implementation 20 of a measuring unit comprising a first ADC and a second ADC2 Analog-to-Digital Converter of different types as described above, according to embodiments of the present description.

[0082] It is noted that ADCs, in embodiments according to the present description, may be implemented via Sigma-Delta modulators.

[0083] FIG. 2 illustrates a plurality of modular cascaded noise filters Flt placed at the output of the ADCs, that is, of the first ADC having a first clock Clk1 and the second ADC having a second clock Clk2, in order to provide a filtered digital conversion, FC1 and FC2 respectively, of the analog input. Such noise filters are configured to filter the noise of the digital signals provided as output by the ADCs, introducing a certain delay.

[0084] It is noted that the filters comprised in the plurality of modular cascaded filters Flt may be different from each other.

[0085] For instance, if the ADCs are implemented via Sigma-Delta modulators, the filters may be configured to provide an average of the measurements provided as output by the Sigma-Delta in order to remove noise.

[0086] For instance, a plurality of cascaded filters FRa having a fast data rate, for instance, comprising N filters Flt1a to FltNa, may be placed at the output of the first ADC. The output of the last filter of the plurality of cascaded filters FRa, for instance, the filter FltNa in FIG. 2, may be coupled to a first input terminal of the cross-check unit CC in order to provide to the cross-check unit CC the first digital value. Each filter Flt of the plurality of cascaded filters described herein may be implemented as a filter circuit, and a plurality of cascaded filters operating together (such as the plurality of cascaded filters FRa) may also be referred to herein as a filter circuit or a filtering circuit.

[0087] Similarly, a plurality of cascaded filters comprising, for instance, M filters divided in a set of filters FRb having a fast data rate (comprising, for example, the filter Flt1b of FIG. 2) and a set of filters SRb having a slow data rate (comprising, for example, the filter FltMb of FIG. 2), may be placed at the output of the second ADC.

[0088] It is noted that the number N of filters comprised in the plurality of cascaded filters related to the first ADC and the number M of filters comprised in the plurality of cascaded filters related to the second ADC may be either equal or different from each other.

[0089] In order to synchronize the filtered digital conversion FC1 provided, after a certain filtering delay: by the last filter FltNa of the plurality of cascaded filters FRa placed at the output of the first ADC, and to the first input terminal of the cross-check unit CC, with the digital conversion of the second ADC, eventually filtered, it is possible to couple the second input terminal of the cross-check unit CC with the filter of the plurality of cascaded filters FRb and SRb that allows to obtain the same filtering delay of the filtered digital conversion FC1 related to the first ADC, in order to perform the sensing operation over a same time window, obtaining a same data rate.

[0090] Therefore, the second input terminal of the cross-check unit CC is coupled to the output of the filter of the plurality of cascaded filters FRb and SRb related to the second ADC in order to obtain the same transfer function between: the first ADC and the first input terminal of the cross-check unit CC; and the second ADC and the second input terminal of the cross-check unit CC.

[0091] For instance, the second input terminal of the cross-check unit CC may be coupled to an intermediate filter of the plurality of cascaded filters FRb and SR related to the second ADC.

[0092] In the exemplary scenario 20 of FIG. 2, the same transfer function between the cross-check unit CC and the first ADC and the second ADC can be obtained, for example, by coupling the second input terminal of the cross-check unit CC to the last filter of the set of filters FRb having a fast data rate.

[0093] Therefore, in embodiments according to the present description, the first analog-to-digital converter ADC1 and the second analog-to-digital converter ADC2 may not be synchronous. For instance, the first analog-to-digital converter ADC1 may have a first analog-to-digital converter transfer function and the second analog-to-digital converter ADC2 may have a second analog-to-digital converter transfer function.

[0094] In this case, methods according to the present description may comprise: filtering, via a first filtering unit, for instance, corresponding to the plurality of cascaded filters FRa having a fast data rate illustrated in FIGS. 2 and 4, having a first filtering transfer function, such first digital value, obtaining a first filtered digital value; filtering, via a second filtering unit, for instance, corresponding to the plurality of cascaded filters comprising a set of filters FRb having a fast data rate and a set of filters SRb having a slow data rate illustrated in FIGS. 2 and 4, having a second filtering transfer function, such second digital value, obtaining a second filtered digital value; and performing such operation of computing, for example, via the cross-check unit CC, the absolute difference between the first filtered digital value and the second filtered digital value.

[0095] It is noted that, in such a case, a combination of the first analog-to-digital converter transfer function and the first filtering transfer function is equal to a combination of the second analog-to-digital converter transfer function and the second filtering transfer function. Hence, the application of the first analog-to-digital converter transfer function and the first filtering transfer function to the current Imeas is equal to applying the second analog-to-digital converter transfer function and the second filtering transfer function to such current Imeas.

[0096] FIG. 3 illustrates an exemplary diagram 30 showing the states of the first ADC1 and the second ADC2 analog-to-digital converters of FIG. 2, according to embodiments of the present description.

[0097] For example, if the second ADC corresponds to the Coulomb counter of a BMS, such second ADC may be running continuously, performing a sequence of fast conversions FC. For instance, the first event E1 in FIG. 3 indicates the end of a first fast conversion FC, and four fast conversions FC, ending at event E3b, provide a complete conversion CCnv2 of the sensed analog quantity.

[0098] Differently, the conversions performed by the first ADC may be activated via a control unit, for instance, an external microcontroller, configured to send to the digital filters Flt of the first ADC and / or to the first ADC itself a signal that requests to perform a measuring operation.

[0099] In embodiments of the present description, such signal may comprise a time indication which can be used by the first ADC to synchronize its measuring operation with the one of the second ADC in order to evaluate the same time window during a conversion. Otherwise, such synchronization requested for evaluating the same time window during a conversion may be performed via other units or by the first ADC itself.

[0100] For instance, during the operation of the second ADC, the first ADC may be in an idle state IDLE. In response to the reception of the signal from the control unit, for instance, in correspondence of a second event E2 in FIG. 3, the first ADC enters a wait state WS wherein such first ADC waits before sensing the quantity to be measured in order to be synchronized with a next fast conversion FC of the second ADC. Therefore, such wait state WS is used to wait for a synchronization between the first ADC and the second ADC.

[0101] In fact, it is noted that in the exemplary scenario of FIGS. 2 and 3, a complete conversion of the first ADC FC1 is obtained via a transfer function that is equal to the transfer function of a fast conversion FC of the second ADC.

[0102] Then, in the same time instant, both the first ADC (in the event E3a) and the second ADC (in the event E3b, in correspondence of an end of a previous complete conversion CCnv2) are configured to sense the quantity to be measured (for instance, the current Imeas).

[0103] Therefore, the events E3a (happening after the wait state WS) and E3b are performed in correspondence of the same time instant, thus, corresponding to a time instant where the synchronization between the first ADC and the second ADC is obtained in order to have the same transfer function at the inputs of the cross-check unit CC as described above.

[0104] The first ADC may be configured to end the conversion after a smaller delay CCnv1, providing the filtered digital conversion FC1 to the cross-check unit CC. The second ADC, which, in the exemplary scenario of FIGS. 2 and 3, is slower than the first ADC, may provide to the cross-check unit CC an intermediate result of the filters Flt as described above. In the exemplary scenario of FIG. 3, the cross-check unit CC may receive the conversion of the second ADC after the first fast conversion FC (having the same transfer function and considering the same time window of the first ADC complete conversion CCnv1), without waiting for the end of the complete conversion CCnv2.

[0105] After the end of the conversion CCnv1, the first ADC may return in an IDLE state, waiting for another reception of the signal from the control unit CU. The control unit CU may also be referred to herein as a controller, and may comprise a microcontroller MCU as further described with reference to FIG. 6

[0106] Upon reception of a second signal indicating to perform a measuring operation, the steps previously described are repeated in the events:

[0107] E4, corresponding to such reception of the signal sent by the control unit CU by the first ADC (in embodiments such signal may comprise a time indication related to the next beginning of a fast conversion FC of the second ADC as described above);

[0108] E5a, corresponding to the sensing operation performed by the first ADC in correspondence of the time instant where the synchronization between the first ADC and the second ADC happens; and

[0109] E5b, corresponding to the sensing operation performed by the second ADC in correspondence of such time instant where the synchronization between the first ADC and the second ADC happens.

[0110] It is noted that such event E5b corresponds to a sensing operation performed by the second ADC in the last fast conversion FC of the complete conversion CCnv2 (that is, the next fast conversion FC that is performed by the second ADC), in fact, such sensing operation is performed at the same time of the sensing of the first ADC and such last fast conversion FC has the same transfer function used to obtain the conversion of the first ADC.

[0111] FIG. 4 illustrates a second exemplary implementation 40 of a measuring unit comprising a first ADC1 and a second ADC2 Analog-to-Digital Converter of different type as described above, according to embodiments of the present description.

[0112] It is noted that parts, elements, and / or components which have already been described with reference to FIG. 2 are denoted by the same references previously used in such figure. Therefore, the description of such previously described parts, elements, and / or components will not be repeated in the following in order not to overburden the present description.

[0113] In embodiments according to the present description, for instance, in the exemplary embodiment of FIG. 4, it may not be possible to select the outputs of filters FR or SR to be coupled to the cross-check unit CC in order to obtain the same transfer function at both its input terminals.

[0114] For instance, the plurality of cascaded filters FRa having a fast data rate placed at the output of the first ADC may comprise: a digital decimator DDa configured to reduce the sampling rate of the analog quantity to be measured; and a low pass filter (LPF) Flta.

[0115] Similarly, the plurality of cascaded filters comprising, for instance, filters divided in a set of filters FRb having a fast data rate and a set of filters SR; having a slow data rate may comprise: a digital decimator DDb having a fast data rate (thus, comprised in the set of filters FRb), configured to reduce the sampling rate of the analog quantity to be measured; and a low pass filter (LPF) Fltb having a slow data rate (thus, comprised in the set of filters SRb).

[0116] If the same transfer function cannot be obtained only by selecting a subset of the plurality of filters, at least one of the filters related to the first ADC (for example, the low pass filter Flta) may be adapted, for instance, by modifying its parameters (via a recalibration of the filter Flta), to match the transfer function at the other input terminal of the cross-check unit CC. In this way, also the data rate provided by the second ADC (via the filters up to the one having its output coupled to the cross-check unit CC) to the cross-check unit CC and the time requested for a conversion are equal between the two branches.

[0117] The modification of the parameters of the at least one filter that is to be adapted may be done via a check mode signal CM indicating that the first ADC has to operate in a synchronous mode with the second one, therefore, such check mode signal CM provides to the filter new values for the parameters that are to be modified.

[0118] Therefore, methods according to the present description may comprise an operation of matching the combination of the first analog-to-digital converter transfer function and the first filtering transfer function to the combination of the second analog-to-digital converter transfer function and the second filtering transfer function. Such operation of matching may be performed by: selecting a subset of the first filtering unit and / or a subset of the second filtering unit to perform the respective filtering operation of the digital values; and / or modifying, for instance, via the check mode signal CM, filtering parameters of one filtering unit between the first filtering unit and the second filtering unit.

[0119] It is noted that a combination of the ADC transfer function and the filtering transfer function is obtained by applying to the analog quantity to be measured a first processing via the ADC, thus, based on the ADC transfer function, and a further processing via the filtering unit, thus, based on the filtering transfer function.

[0120] FIG. 5 illustrates an exemplary diagram 50 showing the states of the first ADC1 and the second ADC2 analog-to-digital converters of FIG. 4 according to embodiments of the present description.

[0121] Even in this case, parts, elements, and / or components which have already been described with reference to FIG. 3 are denoted by the same references previously used in such figure. Therefore, the description of such previously described parts, elements, and / or components will not be repeated in the following in order not to overburden the present description.

[0122] Differently from the exemplary scenario of FIG. 3, in the exemplary scenario of FIG. 5, when the first ADC receives the signal from the control unit CU, for instance, in correspondence of an event E7 or E8, such first ADC can be in a calibratable conversion mode state NC.

[0123] Therefore, in such calibratable conversion mode state NC, the parameters of the filters and their configurations are not bound to the transfer function of the second ADC, so that the control unit CU may still vary them to adapt to different scenarios.

[0124] After the calibratable conversion mode state NC, the first ADC enters the previously described wait state WS.

[0125] Once the synchronization between the first ADC and the second ADC is obtained in correspondence of the events E3a and E3b or E5a and E5b, before performing the measuring operation of the first ADC, the parameters of the at least one filter that is to be adapted (related to such first ADC) are modified (in the event E3a or E5a) according to the values provided in the check mode signal CM, in order to obtain equal transfer functions before the sensing operations.

[0126] It is noted that, in embodiments according to FIG. 3 or 5, the control unit, for instance, an external microcontroller, may need to be awake to send the signal indicating to perform a measuring operation and to decide when to perform the sensing of the analog quantity for checking its correctness. If the control unit is in a sleep mode, the sensing of the analog quantity may be performed automatically, for instance, periodically, to verify the correct functioning of the sensing also during the sleep mode of the control unit.

[0127] If one of the periodic verification operations indicates that the sensing operation is not performed correctly, that is, if the absolute difference is higher than the variable digital threshold as described above, it is possible to wake-up the control unit for managing the anomaly.

[0128] Such periodic verification operation may be performed, for instance, when a timer indicates that a certain amount of time is passed from the last verification. Therefore, upon expiration of such timer, the measuring unit 10 is configured to perform a verification operation automatically, without the intervention of the control unit.

[0129] Therefore, methods as described herein may be performed in response to the reception of a command (that is, the signal indicating to perform a measuring operation described above) of a control unit CU indicating to measure the analog quantity such as the current Imeas. In this case, methods as described herein may comprise: in response to the control unit CU being in a sleep mode, automatically performing, for instance, periodically, the operation of measuring of the analog quantity, that is, the current Imeas; and if the presence of an anomaly is detected, for instance, via the cross-check unit CC, sending a wake-up signal to the control unit CU indicating said presence of the anomaly.

[0130] FIG. 6 illustrates a BMS 60 according to embodiments of the present description.

[0131] In the BMS context, embodiments as described herein may be considered to comply with the standard ISO26262, that is the international standard for functional safety of electrical and / or electronic systems that are installed in serial production road vehicles.

[0132] It is noted that BMS applications may benefit from embodiments as described herein, in particular, the current sensing function in the Battery Junction Box (BJB) may benefit from the use of the measuring unit described in the foregoing.

[0133] In this regard, it is noted that: a continuous monitoring of the battery pack current may be required to estimate, via Coulomb Counting (that is, an ADC already present in the BMS configured to count the charge transferred through the battery during the charge-discharge process by monitoring the input and output current continuously), the state of charge (SOC) of such battery; and an instantaneous monitoring of the battery pack current, for instance, via an ADC already present in the BMS, may be required to perform Electrochemical Impedance Spectroscopy (EIS) or to compute the state of charge SOC by means of time-discrete estimators, such as Kalman filters.

[0134] Therefore, either the Coulomb Counter or the ADC used for the instantaneous monitoring of the battery pack current may be considered for implementing the second ADC described in the foregoing.

[0135] The BMS 60 illustrated in FIG. 6 comprises the measuring unit 10 described above.

[0136] Such measuring unit 10 may be coupled to the control unit CU (for instance, comprising a microcontroller MCU) configured to send, for instance, via a sending unit Snd, the signal indicating to perform a measuring operation to the measuring unit 10. Such control unit CU may comprise also a listening unit Lst configured to receive signals, for instance, the wake-up signal described above received in case of anomaly detection during the sleep mode of the microcontroller MCU.

[0137] Such measuring unit 10 may also be coupled to a plurality of BMS front-end units FE, for example, comprising the units FE1, FE2, . . . , FEi, and FEi+1 as illustrated in FIG. 6.

[0138] Therefore, the methods according to the present description may be performed in a battery management system, BMS. In this case, the first analog-to-digital converter ADC1 and the second analog-to-digital converter ADC2 may be comprised in the battery management system.

[0139] To reduce the area of the die, one analog-to-digital converter between the first analog-to-digital converter ADC1 and the second analog-to-digital converter ADC2 may be configured to perform additional functions in the battery management system.

[0140] For instance, such analog-to-digital converter configured to perform additional functions in the battery management system may be a coulomb counter of the battery management system or an analog-to-digital converter of the battery management system configured to monitor an instantaneous battery pack current.

[0141] It is noted that embodiments as described herein may be used both in time continuous and time discrete applications.

[0142] In time continuous applications, that is, applications that involve continuous acquisitions of the analog quantity, partial accumulation data can be exploited to perform the conversion integrity check via the cross-check unit CC using instantaneously acquired data that has been synchronized.

[0143] In time discrete applications, that is, applications that may not involve continuous acquisitions of the analog quantity, time division multiplexing can be exploited to perform the conversion integrity check via the cross-check unit CC between (functional) converters.

[0144] Therefore, embodiments as described herein facilitate obtaining a method of measuring an analog quantity such as the current Imeas, increasing the reliability of such measuring.

[0145] Methods according to the present description comprise: sensing such current Imeas via a first analog-to-digital converter ADC1 in a time instant, obtaining a first digital value; sensing such current Imeas via a second analog-to-digital converter ADC2 in such time instant (that is, contemporaneously to the first ADC), obtaining a second digital value; computing, for instance, via the cross-check unit CC described above, an absolute difference between the first digital value and the second digital value; comparing, for instance, again via such cross-check unit CC, such absolute difference with a threshold, that is, the variable digital threshold described above; and if the absolute difference is higher than the threshold, detecting the presence of an anomaly (such as an anomaly in the system or in the behavior of the analog quantity).

[0146] The threshold, that is, the variable digital threshold described above, is: a constant value for current values below a current threshold, that is, the quantity threshold described above; and a value that increases proportionally to the current Imeas, for instance, a value that increases with the increasing of the current Imeas, for current values above such current (quantity) threshold.

[0147] Thus, embodiments as described herein facilitate increasing the reliability of (current) measuring operations in safety-critical (or safety-related) applications. In addition, embodiments as described herein may facilitate obtaining a reduction of the area of the die requested for implementing such (current) measuring operations in safety-critical applications such as BMS applications.

[0148] In addition, embodiments as described herein may present one or more of the following advantages: reducing power consumption, since by exploiting functional structures of the BMS such as the Coulomb Counter or the ADC for the instantaneous monitoring of the battery pack current which may be used to implement the second ADC, it is not requested to supply redundant components; reducing the die area and the related costs, again since functional structures may be exploited for implementing the second ADC, thus, redundant components are not required; and reducing the BOM, again since functional structures may be exploited for implementing the second ADC, thus, external redundant components are not requested.

[0149] In addition, embodiments according to the present description also refer to circuits 10 for measuring an analog quantity such as the current Imeas, increasing the reliability of such measuring.

[0150] Circuits according to the present description comprise: a first analog-to-digital converter ADC1 configured to sense such current Imeas in a time instant, obtaining a first digital value; a second analog-to-digital converter ADC2 configured to sense such current Imeas in such time instant (that is, contemporaneously to the first ADC), obtaining a second digital value; and a comparing unit (such as the cross-check unit CC described above) configured to: i) compute an absolute difference between the first digital value and the second digital value; ii) compare such absolute difference with a threshold, that is, the variable digital threshold described above; and iii) if the absolute difference is higher than the threshold, detect the presence of an anomaly (such as an anomaly in the system or in the behavior of the analog quantity).

[0151] Also in this case, such threshold, that is, the variable digital threshold described above, is: a constant value for current values below a current threshold, that is, the quantity threshold described above; and a value that increases proportionally to the current Imeas, for instance, a value that increases with the increasing of the current Imeas, for current values above such current (quantity) threshold.

[0152] It is noted that circuits 10 according to the present description may be comprised in a battery management system, BMS.

[0153] In this case, one analog-to-digital converter between the first analog-to-digital converter ADC1 and the second analog-to-digital converter ADC2 may be configured to perform additional functions in the battery management system.

[0154] For instance, the analog-to-digital converter configured to perform additional functions in the battery management system may be a coulomb counter of the battery management system or an analog-to-digital converter of the battery management system configured to monitor an instantaneous battery pack current.

[0155] In circuits 10 according to the present description, the constant value of the threshold (that is, the variable digital threshold) may be equal to the higher noise floor between the noise floor of the first analog-to-digital converter ADC1 and the one of the second analog-to-digital converter ADC2.

[0156] It is noted that, in circuits 10 according to the present description, the current threshold (that is, the quantity threshold) may be the current corresponding to the intersection of the higher noise floor between the noise floor of the first analog-to-digital converter ADC1 and the one of the second analog-to-digital converter ADC2 with an ideal error transfer function of an analog-to-digital converter.

[0157] In circuits 10 according to the present description, the first analog-to-digital converter ADC1 and the second analog-to-digital converter ADC2 may not be synchronous, for instance, the first analog-to-digital converter ADC1 may have a first analog-to-digital converter transfer function and the second analog-to-digital converter ADC2 may have a second analog-to-digital converter transfer function.

[0158] In this case, the circuit 10 may comprise: a first filtering unit, for instance, corresponding to the plurality of cascaded filters FRa having a fast data rate illustrated in FIGS. 2 and 4, having a first filtering transfer function, configured to filter such first digital value, obtaining a first filtered digital value; and a second filtering unit, for instance, corresponding to the plurality of cascaded filters comprising a set of filters FRb having a fast data rate and a set of filters SR having a slow data rate illustrated in FIGS. 2 and 4, having a second filtering transfer function, configured to filter such second digital value, obtaining a second filtered digital value.

[0159] Therefore, in such a case, the comparing unit (that is, the cross-check unit CC) may be configured to compute the absolute difference between the first filtered digital value and the second filtered digital value (instead of the first digital value and the second digital value).

[0160] In addition, it is noted that in the case described above the combination of the first analog-to-digital converter transfer function and the first filtering transfer function is equal to a combination of the second analog-to-digital converter transfer function and the second filtering transfer function. Hence, the application of the first analog-to-digital converter transfer function and the first filtering transfer function to the current Imeas is equal to applying the second analog-to-digital converter transfer function and the second filtering transfer function to such current Imeas.

[0161] In circuits 10 according to the present description, one filtering unit between the first filtering unit and the second filtering unit may be configured to have its filtering parameters modified to make the combination of the first analog-to-digital converter transfer function and the first filtering transfer function matching the combination of the second analog-to-digital converter transfer function and the second filtering transfer function.

[0162] Similarly, a subset of the first filtering unit and / or a subset of the second filtering unit may be configured to perform the respective filtering operation on the digital values, again to make the combination of the first analog-to-digital converter transfer function and the first filtering transfer function matching the combination of the second analog-to-digital converter transfer function and the second filtering transfer function.

[0163] The circuit 10 according to embodiments as described herein may be configured to be coupled to a control unit CU and to receive from such control unit CU a command indicating to measure the current Imeas. In this case, the circuit 10 may be configured to: in response to such control unit CU being in a sleep mode, automatically measure, for instance, periodically, the analog quantity such as the current Imeas; and if the presence of an anomaly is detected, for instance, by the cross-check unit CC, send a wake-up signal indicating such presence of the anomaly to the control unit CU.

[0164] In addition, it is also noted that circuits 10 as described herein may be configured to implement any other step of the method according to the present description.

[0165] Without prejudice to the underlying principles, the details and the embodiments may vary, even significantly, with respect to what has been described by way of example only without departing from the scope of the embodiments.

[0166] The extent of protection is determined by the annexed claims.

Claims

1. A method for measuring a current, the method comprising:sensing the current via a first analog-to-digital converter at a first time instant, to obtain a first digital value;sensing the current via a second analog-to-digital converter at the first time instant, to obtain a second digital value;computing an absolute difference between the first digital value and the second digital value;comparing the absolute difference to a threshold; andin response to the absolute difference being higher than the threshold, detecting an anomaly, wherein the threshold is set to:a constant value when the current is below a current threshold, anda value that increases proportionally to the current when the current is above the current threshold.

2. The method of claim 1, wherein the method is performed in a battery management system; and wherein the first analog-to-digital converter and the second analog-to-digital converter are comprised in the battery management system.

3. The method according to claim 2, wherein one analog-to-digital converter between the first analog-to-digital converter and the second analog-to-digital converter is configured to perform additional functions in the battery management system.

4. The method according to claim 3, wherein the analog-to-digital converter configured to perform additional functions in the battery management system is a coulomb counter of the battery management system or an analog-to-digital converter of the battery management system configured to monitor an instantaneous battery pack current.

5. The method according to claim 1, wherein the constant value of the threshold is equal to the higher of a noise floor of the first analog-to-digital converter and a noise floor of the second analog-to-digital converter.

6. The method according to claim 1, wherein the current threshold is a current value obtained by intersecting the higher of a noise floor of the first analog-to-digital converter and a noise floor of the second analog-to-digital converter with an ideal error transfer function of an analog-to-digital converter.

7. The method of claim 1, wherein the first analog-to-digital converter and the second analog-to-digital converter are not synchronous;wherein the first analog-to-digital converter has a first analog-to-digital converter transfer function;wherein the second analog-to-digital converter has a second analog-to-digital converter transfer function; andwherein the method further comprises:filtering via a first filtering unit having a first filtering transfer function, the first digital value, to obtain a first filtered digital value;filtering via a second filtering unit having a second filtering transfer function, the second digital value, to obtain a second filtered digital value; andcomputing the absolute difference between the first filtered digital value and the second filtered digital value,wherein a combination of the first analog-to-digital converter transfer function and the first filtering transfer function is equal to a combination of the second analog-to-digital converter transfer function and the second filtering transfer function.

8. The method according to claim 7, further comprising matching the combination of the first analog-to-digital converter transfer function and the first filtering transfer function to the combination of the second analog-to-digital converter transfer function and the second filtering transfer function by at least one of:selecting a subset of the first filtering unit or a subset of the second filtering unit to perform a respective filtering operation; ormodifying filtering parameters of the first filtering unit or the second filtering unit.

9. The method of claim 1, wherein the method is performed in response to receiving a command from a control unit indicating to measure the current; andwherein the method further comprises:in response to the control unit being in a sleep mode, automatically performing the measuring of the current, andin response to an anomaly being detected, sending a wake-up signal to the control unit indicating the anomaly.

10. The method of claim 9, wherein automatically performing the measuring of the current is performed periodically.

11. A circuit for measuring a current, the circuit comprising:a first analog-to-digital converter configured to sense the current at a first time instant, to obtain a first digital value;a second analog-to-digital converter configured to sense the current at the first time instant, to obtain a second digital value;a comparing circuit configured to:compute an absolute difference between the first digital value and the second digital value,compare the absolute difference to a threshold, andin response to the absolute difference being higher than the threshold, detect an anomaly; andwherein the threshold is set to:a constant value when the current is below a current threshold, anda value that increases proportionally to the current when the current is above the current threshold.

12. The circuit according to claim 11, wherein the circuit is comprised in a battery management system.

13. The circuit according to claim 12, wherein one analog-to-digital converter between the first analog-to-digital converter and the second analog-to-digital converter is configured to perform additional functions in the battery management system.

14. The circuit according to claim 13, wherein the analog-to-digital converter configured to perform additional functions in the battery management system is a coulomb counter of the battery management system or an analog-to-digital converter of the battery management system configured to monitor an instantaneous battery pack current.

15. The circuit according to claim 11, wherein the constant value of the threshold is equal to the higher of a noise floor of the first analog-to-digital converter and a noise floor of the second analog-to-digital converter.

16. The circuit according to claim 11, wherein the current threshold is a current value obtained by intersecting the higher of a noise floor of the first analog-to-digital converter and a noise floor of the second analog-to-digital converter with an ideal error transfer function of an analog-to-digital converter.

17. The circuit according to claim 11, wherein the first analog-to-digital converter and the second analog-to-digital converter are not synchronous;wherein the first analog-to-digital converter has a first analog-to-digital converter transfer function;wherein the second analog-to-digital converter has a second analog-to-digital converter transfer function;wherein the circuit further comprises:a first filter circuit having a first filtering transfer function, configured to filter the first digital value, to obtain a first filtered digital value; anda second filter circuit having a second filtering transfer function, configured to filter the second digital value, to obtain a second filtered digital value;wherein the comparing circuit is configured to compute the absolute difference between the first filtered digital value and the second filtered digital value; andwherein a combination of the first analog-to-digital converter transfer function and the first filtering transfer function is equal to a combination of the second analog-to-digital converter transfer function and the second filtering transfer function.

18. The circuit according to claim 17, wherein at least one of:the first filter circuit or the second filter circuit is configured to have respective filtering parameters modified; ora subset of the first filter circuit or a subset of the second filter circuit is configured to perform a respective filtering operation; andwherein the circuit is configured to cause the combination of the first analog-to-digital converter transfer function and the first filtering transfer function to match the combination of the second analog-to-digital converter transfer function and the second filtering transfer function.

19. The circuit according to claim 11, wherein the circuit is configured to:coupled to a controller and to receive from the controller a command indicating to measure the current;in response to the controller being in a sleep mode, automatically measure the current; andin response to an anomaly being detected, send a wake-up signal indicating the anomaly to the controller.

20. A method for measuring an analog quantity, the method comprising:sensing the analog quantity via a first analog-to-digital converter at a first time instant, to obtain a first digital value;sensing the analog quantity via a second analog-to-digital converter at the first time instant, to obtain a second digital value;computing an absolute difference between the first digital value and the second digital value;comparing the absolute difference to a threshold; andin response to the absolute difference being higher than the threshold, detecting an anomaly,wherein the threshold is set to:a constant value when the analog quantity is below a quantity threshold, anda value that increases proportionally to the analog quantity when the analog quantity is above the quantity threshold.