A multi-stage SINC filter structure for reducing threshold detection time

By introducing comparators and OR logic modules into the multi-stage SINC filter, the trade-off between accuracy and delay in the SINC filter is resolved, enabling fast threshold detection and reducing system response time.

CN117220640BActive Publication Date: 2026-11-24BRITE SEMICON (TIANJIN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311252887.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2026-11-24
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

Existing SINC filters have poor accuracy at low stages and increased delay at high stages, resulting in lag in system response, especially in over/under voltage, over/under current detection and protection scenarios.

Method used

By adding comparator modules and OR logic modules to the multi-stage SINC filter, and taking advantage of its low precision and low latency characteristics, it can respond quickly when the output value differs greatly from the set target. Fast detection is achieved through over-threshold and under-threshold comparators and OR logic modules.

Benefits of technology

This reduces threshold detection time, avoids wasting time on multi-level processing when input values ​​deviate from the threshold range, and improves the system's rapid response capability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117220640B_ABST
    Figure CN117220640B_ABST
Patent Text Reader

Abstract

This invention discloses a structure for reducing threshold detection time using a multi-stage SINC filter, relating to the field of SINC filter technology. The key technical point is that the structure includes a multi-stage SINC filter module, a comparator module, and an OR logic module. The SINC filter module quantizes a multi-bit wide digital value and sends this digital value to the comparator module. The comparator module includes an over-threshold comparator and an under-threshold comparator, used to compare the SINC filter output value with a set threshold. The OR logic module includes an over-threshold OR logic module and an under-threshold OR logic module. The over-threshold OR logic module receives the output of the over-threshold comparator. The effect is that when the input value is larger or smaller than the expected value, this structure can quickly detect over-threshold or under-threshold situations, saving subsequent system response time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of SINC filter technology, and more specifically, to a structure for a multi-stage SINC filter to reduce threshold detection time. Background Technology

[0002] SINC (Sine Cardinal) filters are frequently used in the digital demodulation and quantization sections of ΣΔADC (Analog-to-Digital Converter) circuits. The demodulated and quantized data is typically used for over / under voltage and over / under current detection and protection. In current technology, the number of stages in a SINC filter can be configured, but a problem exists: when the number of stages is small, the accuracy of the digital signal after modulation by the SINC filter is poor; if the number of stages is too high, although the accuracy can be improved, the delay in obtaining the final modulated data will increase significantly. In some cases, such as when the actual input voltage / current is too large or too small, multiple stages of SINC processing are still required, inevitably causing a significant delay before obtaining the final modulated data. In over / under voltage and over / under current detection and protection scenarios, when there are excessively large or small voltage / current values ​​in the circuit, and high accuracy is not required, the large delay in a multi-stage SINC structure will inevitably cause lag in the system response. Therefore, to solve the above technical problems, this application proposes a structure for a multi-stage SINC filter to reduce threshold detection time. Summary of the Invention

[0003] This patent proposes a structure for reducing threshold detection time using a multi-stage SINC filter. By adding a comparator module and a final OR logic module to each stage of the SINC filter, and utilizing the low precision and low latency characteristics of the preceding stage of the SINC filter, the system can achieve a fast response when the actual value output by the SINC filter module differs too much from the final set target value.

[0004] To achieve the above objectives, the present invention provides the following technical solution: a structure for reducing threshold detection time using a multi-stage SINC filter, the structure comprising a multi-stage SINC filter module, a comparator module, and an OR logic module;

[0005] The SINC filter module quantizes the signal to obtain a multi-bit digital value and sends the digital value to the comparator module.

[0006] The comparator module includes an over-threshold comparator and an under-threshold comparator, which are used to compare the output value of the SINC filter with a set threshold. When the output value of the SINC filter is greater than the set over-threshold, the over-threshold comparator outputs logic "1", otherwise it outputs logic "0". When the output value of the SINC filter is greater than the set under-threshold, the over-threshold comparator outputs logic "0", otherwise it outputs logic "1". The output of the comparator is sent to the OR logic module for calculation.

[0007] The OR logic module includes an over-threshold OR logic module and an under-threshold OR logic module. The over-threshold OR logic module is used to receive the output of the over-threshold comparator. For the two OR logic modules, when one of the input signals is a logic "1", the final output signal is a logic value "1". When the output signal is a logic value "1", it will trigger an ePWM trip or MCU interrupt processing operation. The under-threshold OR logic module is used to receive the output of the under-threshold comparator.

[0008] Preferably, the multi-level SINC transfer function is:

[0009]

[0010] Where M is the downsampling decimation factor and N is the order of the SINC filter;

[0011] For an M-fold downsampling factor and an Nth-order SINC filter, the delay is calculated as follows:

[0012]

[0013]

[0014] Among them, DR sinc It is the data rate of a single-stage sinc filter, DR ΣΔ It is the data rate of the ΣΔ modulator, Latency sinc It is the delay value of the output data after demodulation by the SINC filter.

[0015] Preferably, the final quantized output value of the ADC depends on the resolution of the ADC, and its final quantized output value is calculated using the following formula:

[0016]

[0017] Where V ref Dig is used to simulate a reference value. q R is the quantized value, where Dig is the digital value. q The bit width of the signal.

[0018] Preferably, the word length of the SINC filter is related to the input bit width D of the ΣΔADC modulator.in The SINC filter level N is related to the downsampling factor M, as shown in the following formula:

[0019] D out =D in +N*log2M.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] By inserting a threshold comparison module into each stage of the multi-stage SINC filter module, this structure can quickly detect cases where the input value is too large or too small compared to the expected value, thus saving subsequent system response time.

[0022] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it according to the contents of the specification, the preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. Specific embodiments of the present invention are given in detail below with reference to the accompanying drawings. Attached Figure Description

[0023] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0024] Figure 1 This is a schematic diagram of the structure of the present invention;

[0025] Figure 2 This is a schematic diagram of the structure of the multi-stage SINC filter in this invention. Detailed Implementation

[0026] The following is in conjunction with the appendix Figure 1-2 The principles and features of the present invention are described below. The examples given are for illustrative purposes only and are not intended to limit the scope of the invention. The invention is described more specifically in the following paragraphs by way of example with reference to the accompanying drawings. The advantages and features of the invention will become clearer from the following description and claims. It should be noted that the drawings are in a very simplified form and use non-precise proportions, and are only used to facilitate and clarify the illustration of the embodiments of the invention.

[0027] It should be noted that when a component is described as "fixed to" another component, it can be directly on the other component or may have a component in between. When a component is considered "connected to" another component, it can be directly connected to the other component or may have a component in between. When a component is considered "set on" another component, it can be directly set on the other component or may have a component in between. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0029] like Figure 1-2 As shown, the present invention provides a structure for reducing threshold detection time using a multi-stage SINC filter, the structure including a multi-stage SINC filter module, a comparator module, and an OR logic module.

[0030] The following is a detailed description of the SINC filter module, comparator module, and OR logic module involved in this invention:

[0031] The main function of the SINC filter module is to quantize a multi-bit wide digital value and then send this value to the comparator module. As the number of stages increases, the quantization accuracy increases, but the time lag in obtaining the quantized data also increases. This quantized data is often used in response systems to perform further processing operations, such as overcurrent or undercurrent ePWM (enhanced pulse width modulation) tripping, MCU (Microcontroller Unit) interrupt handling, etc. The transfer function for a multi-stage SINC filter is:

[0032]

[0033] Where M is the downsampling decimation factor and N is the order of the SINC filter.

[0034] The structure of a multi-stage SINC filter is as follows: Figure 2 :

[0035] Due to the inherent characteristics of the SINC filter, the final modulated and demodulated data has a delay. For an Nth-order SINC filter with an M-fold downsampling factor, the delay is calculated as follows:

[0036]

[0037]

[0038] Among them, DR sinc It is the data rate of a single-stage sinc filter, DR ΣΔ It is the data rate of the ΣΔ modulator.

[0039] Latency sinc It is the delay value of the output data after demodulation by the SINC filter; it is easy to conclude from the formula that when the value of M is fixed, the larger N is, the greater the delay of the SINC filter.

[0040] For an ADC, its final quantized output value depends on the ADC's resolution. The formula for calculating the final quantized output value is as follows:

[0041]

[0042] Where V ref Dig is used to simulate a reference value. q R is the quantized value, where Dig is the digital value. q The bit width of the signal.

[0043] A ΣΔADC consists of two parts: an analog modulator and a digital low-pass filter demodulator. A SINC filter is essentially a low-pass filter, performing the final quantization output while simultaneously performing low-pass filtering. The calculation of the quantized analog quantity also follows the formula described above.

[0044] Another concept here is that the word length of the SINC filter is the digital quantization bit width. The word length of the SINC filter is related to the input bit width D of the ΣΔADC modulator. in The SINC filter level N is related to the downsampling factor M, as shown in the following formula:

[0045] D out =D in +N*log2M

[0046] From the above formula, we can see that the quantization precision of the SINC filter is: 1 / 2^D out As the series of N increases, the precision also increases, but at the same time, the delay also increases.

[0047] The comparator module is divided into two types: an over-threshold comparator, which mainly compares the output value of the SINC filter with the set threshold. If the output value of the SINC filter is greater than the set threshold, the over-threshold comparator outputs logic "1", otherwise it outputs logic "0". The other type is an under-threshold comparator. If the output value of the SINC filter is greater than the set threshold, the over-threshold comparator outputs logic "0", otherwise it outputs logic "1". The output of the comparator is sent to the OR logic module for calculation.

[0048] according to Figure 1 As shown, there are two main OR logic modules: an over-threshold OR logic module to receive the output of the over-threshold comparator, and an under-threshold OR logic module to receive the output of the under-threshold comparator. For both OR logic modules, when one of the input signals is a logic "1", the final output signal is a logic value "1". When the output signal is a logic value "1", the corresponding system response operation can be triggered, such as ePWM (enhanced pulse width modulation) tripping, MCU (Microcontroller Unit) interrupt handling, etc.

[0049] The overall working principle of this structure is as follows: The SINC filter uses the output of the ΣΔADC modulator as the input signal. Each stage of processing yields a quantized value based on the quantized value of the previous stage. Therefore, the comparator of the previous stage always obtains and outputs the comparison result before the comparator of the next stage. The quantized value is compared with the thresholds set by the over-threshold and under-threshold comparators. The comparison result is either logic "1" or "0". Finally, the outputs of the comparators are sent to two OR logic modules. The OR logic modules determine whether the output is "1" based on whether there is a logic "1" in the input signal, and thus determine whether to trigger the subsequent corresponding system response operation.

[0050] In the worst case, this structure requires a delay of N times that of a first-order SINC filter during threshold detection, while in the best case, it only requires a delay of a first-order SINC filter. This structure avoids the waste of processing time caused by having to pass through N stages of SINC filters when the input exceeds or falls far below the threshold range. The worst-case and best-case scenarios are highly dependent on the comparator's threshold setting and the quantization output value of each stage of the SINC filter.

[0051] Based on the above, the present invention will be further described as follows:

[0052] The Bit_flag_L and Bit_flag_H in the OR logic module are the results of calculations obtained by the OR logic module receiving the comparator output for under-threshold and over-threshold conditions. These two results are divided into three cases based on time efficiency: best, average, and worst.

[0053] According to Figure 1 as shown, the input bit width of the SINC filter is set to n, the number of stages is N (N>1), and the downsampling extraction factor is M. The quantization accuracy of the first-stage filter is 1 / 2^(n+log2M), that of the second-stage filter is 1 / 2^(n+2*log2M), and that of the Nth-stage filter is 1 / 2^(n+N*log2M). The comparator threshold accuracy of each stage is consistent with the quantization accuracy. THx_L and THx_H (x=1, 2...N) are configurable thresholds.

[0054] When performing over-threshold detection and comparison, the threshold setting relationship of the over-threshold comparators should satisfy Th1_H / 2^(n+log2M)>Th2_H / 2^(n+2*log2M)>Th3_H / 2^(n+3*log2M)...>ThN_H / 2^(n+N*log2M). ThN_H is the final required or expected high-precision threshold.

[0055] Best case: only one stage of operation is required to obtain the comparison result. In this case, when the digital quantity after the first-stage SINC demodulation and quantization is greater than the set threshold Th1_H, Figure 1 the Bit_flag_H in it becomes logic "1".

[0056] Worst case: N stages of operation are required to obtain the comparison result. In this case, when the digital quantities after the first-stage to the (N-1)-stage demodulation and quantization are all less than the corresponding TH1_H, TH2_H, TH3_H...TH(N-1)_H, and only when the digital quantity after the Nth-stage quantization is greater than THN_H, Figure 1 the Bit_flag_H in it becomes logic "1".

[0057] General case: the final result may be obtained at a stage between 1 and N. In this case, when the first-stage SINC demodulation and quantization result is less than Th1_H, the second-stage operation is entered. After the second-stage SINC demodulation and quantization, it is compared with Th2_H. If it is greater than Th2_H, Bit_flag_H is triggered to output logic "1"; if it is less than Th2_H, the third-stage SINC operation is entered, and similar operations are performed until the (N-1)th stage.

[0058] When performing under-threshold detection and comparison, the threshold setting relationship of the under-threshold comparators should satisfy Th1_L / 2^(n+log2M)<Th2_L / 2^(n+2*log2M)<Th3_L / 2^(n+3*log2M)...<ThN_L / 2^(n+N*log2M). ThN_L is the final required or expected high-precision low threshold.

[0059] Best case: Only one level of computation is needed to obtain the comparison result. This occurs when the digital value after the first-level SINC demodulation and quantization is less than the set threshold Th1_L. Figure 1 Bit_flag_L in the code becomes logical "1".

[0060] Worst case: N levels of computation are required to obtain the comparison result. This occurs when the digital values ​​after demodulation and quantization from the first to the (N-1)th level are all less than the corresponding TH1_L, TH2_L, TH3_L…TH(N-1)_H. Figure 1 Bit_flag_L in the code becomes logical "1".

[0061] In general, the final result may be obtained through operations at levels between 1 and N. In this case, if the result of the first-level SINC demodulation and quantization is less than Th1_L, then the second-level operation is entered. After the second-level SINC demodulation and quantization, it is compared with Th2_L. If it is greater than Th2_L, the Bit_flag_L output logic "1" is triggered. If it is less than Th2_L, the third-level SINC operation is entered, and similar operations continue until the (N-1)th level.

[0062] Furthermore, if Bit_flag_L and Bit_flag_H are not triggered after N levels of computation, i.e., the logical value is "0", it means that the input value of the signal is within the expected range.

[0063] In summary, for an N-stage SINC filter, in the best case of over-threshold or under-threshold detection, the delay is only that of a first-order SINC filter, while in the worst case, the delay is N times that of a first-order SINC filter. Compared to connecting a comparator only in the Nth stage, this allows for faster detection and transmission of input signals with larger expected values ​​to subsequent systems for response.

[0064] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Those skilled in the art can readily implement the present invention based on the accompanying drawings and the above description. However, any modifications, alterations, or variations made by those skilled in the art without departing from the scope of the present invention, utilizing the disclosed technical content, are equivalent embodiments of the present invention. Furthermore, any modifications, alterations, or variations made to the above embodiments based on the essential technology of the present invention are still within the protection scope of the present invention.

Claims

1. A structure for reducing threshold detection time using a multi-stage SINC filter, characterized in that: The structure includes a multi-stage SINC filter module, a comparator module, and an OR logic module; The SINC filter module quantizes the signal to obtain a multi-bit digital value and sends the digital value to the comparator module. The comparator module includes an over-threshold comparator and an under-threshold comparator. Each stage of the multi-stage SINC filter module is equipped with a comparator module to compare the SINC filter output value with a set threshold. When the SINC filter output value is greater than the set over-threshold, the over-threshold comparator outputs logic "1", otherwise it outputs logic "0". When the SINC filter output value is greater than the set under-threshold, the under-threshold comparator outputs logic "0", otherwise it outputs logic "1". The output results of each comparator are sent to the OR logic module for calculation. The OR logic module includes an over-threshold OR logic module and an under-threshold OR logic module. The over-threshold OR logic module is used to receive the output of the over-threshold comparator. For the two OR logic modules, when one of the input signals is a logic "1", the final output signal is a logic value "1". When the output signal is a logic value "1", it will trigger an ePWM trip or MCU interrupt processing operation. The under-threshold OR logic module is used to receive the output of the under-threshold comparator.

2. The structure of a multi-stage SINC filter for reducing threshold detection time according to claim 1, characterized in that: in, The multi-level SINC transfer function is: Where M is the downsampling decimation factor and N is the order of the SINC filter; For an M-fold downsampling factor and an Nth-order SINC filter, the delay is calculated as follows: Among them, DR sinc It is the data rate of a single-stage SINC filter, DR ΣΔ It is the data rate of the ΣΔ modulator, Latency sinc It is the delay value of the output data after demodulation by the SINC filter.

3. The structure of a multi-stage SINC filter for reducing threshold detection time according to claim 2, characterized in that: The final quantized output value of the ADC depends on the ADC's resolution, and its final quantized output value is calculated using the following formula: Where V ref Dig is used to simulate a reference value. q R is the quantized value, where Dig is the digital value. q The bit width of the signal.

4. The structure of a multi-stage SINC filter for reducing threshold detection time according to claim 3, characterized in that: The word length of the SINC filter and the input bit width D of the ΣΔADC modulator in The SINC filter level N is related to the downsampling factor M, as shown in the following formula: 。

Citation Information

Patent Citations

  • Dynamic oversampling analog to digital converter and design method thereof

    CN104935342A

  • Optimized filter parameters design for digital IF programmable downconverter

    US20040107078A1