SAR ADC circuit, data processing method, and micro-processing chip

By introducing a configuration signal output circuit and a logic control circuit into the SAR ADC circuit to break up or divide the frequency of spurious signals, the problem of frequency concentration of spurious signals in the existing technology is solved, and the accuracy and freedom of the sampling signal are improved. dynamic range.

WO2024174628A1PCT designated stage expired Publication Date: 2024-08-29CHENGDU GEEHY TECH CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/133951
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-23
Filing Date
2023-11-24
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

There are spurious signals of different strengths in the signal output by the existing SAR ADC circuit, which affects the correct sampling of the sampling signal, and the concentrated frequency of the spurious signals is not conducive to processing.

Method used

A SAR ADC circuit is designed, including a logic control circuit, a DAC circuit, a sampling and holding circuit and a configuration signal output circuit. The configuration signal output circuit stores multiple sets of configuration parameters and selectively outputs them. The logic control circuit receives configuration parameters and comparison results. Control the DAC circuit to output the corresponding comparison signal to disperse or divide the spurious signal frequency.

Benefits of technology

The accuracy of the sampling signal is improved and the spurious-free dynamic range (SFDR) is enhanced, so that the frequency of spurious signals is no longer concentrated, making subsequent signal processing easier.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023133951_29082024_PF_FP_ABST
    Figure CN2023133951_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present invention provide an SAR ADC circuit, a data processing method, and a micro-processing chip. The SAR ADC circuit comprises a logic control circuit, a DAC circuit, a sample and hold circuit, and a comparison circuit; the SAR ADC circuit further comprises a configuration signal output circuit; the configuration signal output circuit stores multiple sets of configuration parameters, and is used for selectively outputting one set of configuration parameters among the multiple sets of configuration parameters to the logic control circuit according to a specified sequence; and the logic control circuit receives the configuration parameters and a comparison result of the comparison circuit, and outputs a control signal for controlling the DAC circuit to output a corresponding comparison signal. The SAR ADC circuit in the embodiments of the present invention scatters or divides the frequency of an output spurious signal, such that the frequency of the spurious signal is not concentrated any more, thereby improving the accuracy of a sampled signal, improving the SFDR, and facilitating subsequent signal processing.
Need to check novelty before this filing date? Find Prior Art

Description

A SAR ADC circuit, data processing method and microprocessor chip

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 23, 2023, with application number 202310159275.9 and application name “A SAR ADC Circuit, Data Processing Method and Microprocessing Chip”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present invention relate to the technical field of analog circuits, and in particular to a SAR ADC circuit, a data processing method, and a microprocessor chip. Background Art

[0003] A successive approximation register (SAR) analog-to-digital converter (ADC) circuit primarily consists of four components: a sample-and-hold circuit, a comparator, a digital-to-analog converter (DAC), and a successive approximation logic (SAR logic) circuit. The basic principle of a SAR ADC is to use a binary search algorithm to determine the magnitude of the input signal against a reference level. This result is then used to modify the logic of the switched capacitor array (other methods are also possible). The input signal is then compared against a smaller range of reference levels to tentatively approximate the digital quantization bit interval of the input signal, from high to low.

[0004] SAR ADC circuits can output both an output signal and spurious signals of varying intensities. The output signal is the desired sampling signal, while spurious signals are unwanted signals. Some spurious signals can be stronger or higher, affecting accurate sampling of the sampled signal. In related art, the spurious signals output by SAR ADC circuits each time have a relatively concentrated frequency, hindering the processing of the sampled signal.

[0005] Summary of the Invention

[0006] In view of this, embodiments of the present invention provide a SAR ADC circuit, a data processing method, and a microprocessor chip to improve the spurious-free dynamic range and facilitate subsequent signal processing.

[0007] In one aspect, an embodiment of the present invention provides a SAR ADC circuit, comprising: a logic control circuit, a DAC circuit, a sample-and-hold circuit, and a comparison circuit; the sample-and-hold circuit samples and holds an input signal; the DAC circuit is configured to generate a comparison signal; and the comparison circuit outputs a comparison result between the comparison signal and the input signal.

[0008] The SAR ADC circuit further includes a configuration signal output circuit, wherein the configuration signal output circuit stores multiple sets of configuration parameters, and the configuration signal output circuit is used to selectively output one set of the multiple sets of configuration parameters to the logic control circuit in a specified order;

[0009] The logic control circuit receives the configuration parameter and a comparison result of the comparison circuit, and outputs a control signal for controlling the DAC circuit to output a control signal corresponding to the comparison signal.

[0010] On the other hand, an embodiment of the present invention provides a data processing method for a SAR ADC circuit, the method comprising:

[0011] Sample and hold the input signal;

[0012] Compare the input signal with the comparison signal and output the comparison result;

[0013] Selecting one set of configuration data from a plurality of sets of configuration parameters and outputting them in a specified order;

[0014] The configuration parameter and the comparison result are received and a control signal for controlling the size of the comparison signal is output.

[0015] On the other hand, an embodiment of the present invention provides a microprocessor chip, including: the above-mentioned SAR ADC circuit.

[0016] In the technical solution provided by the embodiment of the present invention, the output end of the configuration signal output circuit is electrically connected to an input end of the logic control circuit, the output end of the logic control circuit is electrically connected to the input end of the DAC circuit; the first input end of the comparison circuit is electrically connected to the output end of the DAC circuit, the second input end of the comparison circuit is electrically connected to the output end of the sample and hold circuit, and the output end of the comparison circuit is electrically connected to another input end of the logic control circuit; the configuration signal output circuit stores multiple sets of configuration parameters, and the configuration signal output circuit is used to selectively output one set of the multiple configuration parameters to the logic control circuit in a specified order; the logic control circuit receives the comparison result between the configuration parameters and the comparison circuit, and outputs a control signal that controls the DAC circuit to output a corresponding voltage. The SAR ADC circuit causes the frequency of the output spurious signal to be scattered or divided, so that there will be no spurious signal fixed at a certain frequency, thereby making the frequency of the spurious signal no longer concentrated, improving the accuracy of the sampling signal, improving the spurious-free dynamic range (SFDR), and making subsequent signal processing more convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] FIG1 is a schematic structural diagram of a SAR ADC circuit provided by an embodiment of the present invention;

[0018] FIG2 is a schematic structural diagram of a configuration signal output circuit provided by an embodiment of the present invention;

[0019] FIG3 is a schematic structural diagram of another configuration signal output circuit provided by an embodiment of the present invention;

[0020] FIG4 is a schematic structural diagram of a logic control circuit provided by an embodiment of the present invention;

[0021] FIG5 is a schematic diagram of an output signal of a SAR ADC circuit provided by an embodiment of the present invention;

[0022] FIG6 is a schematic structural diagram of another SAR ADC circuit provided by an embodiment of the present invention;

[0023] FIG7 a is a flow chart of a data processing method of a SAR ADC circuit provided by an embodiment of the present invention;

[0024] FIG7 b is a flow chart of outputting a control signal according to an embodiment of the present invention;

[0025] FIG8 is a schematic structural diagram of a microprocessor chip provided by an embodiment of the present invention;

[0026] FIG9 is a schematic diagram of a SAR ADC structure;

[0027] FIG10 is a schematic diagram of another SAR ADC structure. DETAILED DESCRIPTION

[0028] In order to better understand the technical solution of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0029] It should be understood that the embodiments described are only a portion of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative work are within the scope of protection of the present invention.

[0030] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "an", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise.

[0031] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. Furthermore, the character " / " in this document generally indicates an "or" relationship between the associated objects.

[0032] Figures 9 and 10 show two exemplary SAR ADC connection mode. In FIG9 , the sample-and-hold circuit 13 samples and holds the input voltage Vin and inputs it to one input terminal of the comparison circuit 14. The logic control circuit 11 controls the comparison signal output of the DAC circuit 12. The comparison signal is input to the other input terminal of the comparison circuit 14. The comparison circuit 14 compares the comparison signal with the input signal. In the example of FIG9 , if Vin is greater than the comparison signal, the comparison circuit 14 outputs 1, and if Vin is less than the comparison signal, the comparison circuit 14 outputs 0. In FIG10 , a charge redistribution method is adopted. The logic control circuit 11 controls the on and off of the switch (a DAC circuit is composed of different capacitances, capacitor arrays, switches, reference voltages, etc.), controls the capacitor (e.g., the size of the capacitor is 2N-1C, 2N-2, ..., 2C, C) to be connected to the reference voltage Vref, and then controls the capacitor to be connected to the input voltage Vin. The charge input to the capacitor by Vin is calculated with the charge input to the capacitor by Vref, and the calculation result is input to the comparison circuit 14. The comparison circuit 14 outputs 1 or 0 according to the positive or negative charge (or the positive or negative voltage). The output result of the comparison circuit 14 is then input to the logic control circuit 11, which then controls the DAC circuit 12 switch or the corresponding voltage control unit to generate the next comparison signal for comparison (voltage is used here for illustration, and the collected signal can be any signal other than voltage, without current, temperature, etc.), successively approximating the input voltage Vin, thereby generating a digital signal, which represents the magnitude of the input voltage Vin. The specific implementation method of the SAR ADC circuit can be any other method and connection method, as long as the successive approximation comparison can be completed, and this patent does not impose specific restrictions.

[0033] The inventors discovered that the output signal of existing SAR ADC circuits is often mixed with spurious signals of varying strengths. While the output signal is the desired sampling signal, the spurious signals are unwanted signals. Some spurious signals are high in strength, affecting the correct sampling of the sampled signal and hindering its processing. Based on this, this patent proposes a new SAR ADC circuit, data processing method, and microprocessor chip to address these issues to a certain extent.

[0034] FIG1 is a schematic diagram of the structure of a SAR ADC circuit provided in an embodiment of the present invention. As shown in FIG1 , the SAR ADC circuit includes: a logic control circuit 11, a DAC circuit 12, a sample-and-hold circuit 13, and a comparison circuit 14. The sample-and-hold circuit 13 samples and holds the input signal, the DAC circuit 12 is used to generate a comparison signal, and the comparison circuit 14 outputs a comparison result between the comparison signal and the input signal. The SAR ADC circuit also includes a configuration signal output circuit 15. The configuration signal output circuit 15 stores multiple sets of configuration parameters and is used to selectively output one set of configuration parameters from the multiple sets to the logic control circuit 11 in a specified order. The logic control circuit 11 receives the configuration parameters and the comparison result of the comparison circuit 14 and outputs a control signal that controls the DAC circuit 12 to output the corresponding comparison signal.

[0035] For example, as shown in FIG1 , the output of the configuration signal output circuit 15 is electrically connected to an input of the logic control circuit 11, and the output of the logic control circuit 11 is electrically connected to the input of the DAC circuit 12; the first input of the comparison circuit 14 is electrically connected to the output of the DAC circuit 12, the second input of the comparison circuit 14 is electrically connected to the output of the sample-and-hold circuit 13, and the output of the comparison circuit 14 is electrically connected to another input of the logic control circuit 11. The first input is a positive input, and the second input is a negative input; alternatively, the first input is a negative input, and the second input is a positive input. For example, as shown in FIG1 , if the first input of the comparison circuit 14 is a negative input, then the output of the DAC circuit 12 is electrically connected to the negative input of the comparison circuit 14; if the second input of the comparison circuit 14 is a positive input, then the output of the sample-and-hold circuit 13 is electrically connected to the positive input of the comparison circuit 14.

[0036] The configuration signal output circuit 15 is used to store multiple sets of configuration parameters and select one set of configuration data from the multiple sets of configuration parameters to output in a specified order. In other words, each set of configuration parameters can be selectively output in groups, and each set of configuration parameters output is output in a specified order.

[0037] The configuration signal output circuit 15 selectively outputs one set of configuration parameters from among the multiple sets of configuration parameters to the logic control circuit 11 in a specified order according to the received selection signal. Specifically, the configuration signal output circuit 15 may output one set of configuration parameters to the logic control circuit 11 in a specified order according to the first clock signal CLK1.

[0038] The sample-and-hold circuit 13 is configured to sample and hold an input signal. Specifically, the sample-and-hold circuit 13 is configured to sample and hold the input signal under the control of the second clock signal CLK2. The comparison circuit 14 is configured to compare the input signal with a comparison signal and output a comparison result ADC_out. The comparison circuit 14 may output the comparison result to another input terminal of the logic control circuit 11.

[0039] In one embodiment of the present invention, in one possible implementation, the configuration signal output circuit 15 may employ a technical solution in which first storage units are arranged in parallel and the first storage units are selected by a first multiplexer. If the first storage units are storage units with a common address, multiple first storage units are arranged in parallel. FIG2 is a schematic structural diagram of a configuration signal output circuit provided by an embodiment of the present invention. As shown in FIG2 , the configuration signal output circuit 15 includes a first address selection circuit 151 and a storage unit circuit. The storage unit circuit includes a first multiplexer (MUX) 152 and multiple first storage units connected in parallel. The first address selection circuit 151 is electrically connected to the multiple first storage units. The output terminals of the multiple first storage units are all electrically connected to the input terminals of the first MUX 152. The output terminal of the first MUX 152 is electrically connected to the input terminals of the logic control circuit 11. Each first storage unit stores a set of configuration parameters. The control terminal of the first multiplexer receives a selection signal to selectively output a set of configuration parameters from the multiple first storage units to the logic control circuit 11 in a specified order.

[0040] In an embodiment of the present invention, the first storage unit can be a common memory or register. As shown in FIG2 , the multiple first storage units may include first storage unit 1, first storage unit 2, ..., first storage unit n-1, and first storage unit n. Taking the first storage unit as a RAM as an example, the multiple first storage units may include RAM 1, RAM 2, ..., RAM n-1, and RAM n. Each first storage unit stores a set of configuration parameters, and a set of configuration data may include multiple configuration parameters. Taking an m-bit SAR ADC as an example, each first storage unit stores at least m configuration parameters, and a set of configuration parameters includes at least m configuration parameters. The m configuration parameters are specified in the order of 1, 2, 3, ..., m. The address signals corresponding to the m configuration parameters include address 1, address 2, ..., address m (any order is acceptable, as long as the addresses and configuration parameters can be matched and the addresses can be selected in the specified order). The configuration parameters output at the i-th bit in different first storage units have the same address signal. For example, the address signal for the configuration parameter output at the first bit in a set of configuration parameters in first storage unit 1 is the same as the address signal for the configuration parameter output at the first bit in a set of configuration parameters in first storage unit n. The address signal for the configuration parameter output at the second bit in a set of configuration parameters in first storage unit 1 is the same as the address signal for the configuration parameter output at the second bit in a set of configuration parameters in first storage unit n. ... The address signal for the configuration parameter output at the m-th bit in a set of configuration parameters in first storage unit 1 is the same as the address signal for the configuration parameter output at the m-th bit in a set of configuration parameters in first storage unit n. Therefore, the same address signal can select multiple sets of configuration parameters.

[0041] The first MUX 152 receives a selection signal to output one of the sets of configuration parameters in a specified order. The control terminal of the first MUX 152 receives the selection signal, which is used to select a set of configuration parameters from the multiple first storage units and output the selected set of configuration parameters to the control logic circuit. The selection signal can vary in a specified order, and more preferably, is a random signal. The first address selection circuit 151 reads each configuration parameter from the multiple first storage units in a specified order based on the first clock signal CLK1. The first address selection circuit 151 selects a corresponding storage unit from the multiple first storage units at each clock cycle of the first clock signal CLK1, and the configuration parameters in the storage unit are output to the first MUX 152. The first MUX 152 receives the configuration parameters of multiple first storage units simultaneously. Upon receiving the selection signal a, the first configuration parameter in first storage unit 1 is output in the first clock cycle, the second configuration parameter in first storage unit 1 is output in the second clock cycle, and the mth configuration parameter in first storage unit 1 is output in the mth clock cycle, until all configuration parameters in first storage unit 1 are read. The next selection signal can be a, or it can be other numbers other than a, such as b represents the configuration parameters of the output first storage unit 2, c represents the configuration parameters of the output first storage unit 3, and n represents the configuration parameters of the output first storage unit n. The selection signal can change in a specified order, such as abcd...-n, or aabbcc...-nn, abaed-..., or it can be random, and the order is not fixed each time.

[0042] The first MUX 152 selectively outputs the configuration parameters in the first storage unit to the logic control circuit 11 according to the selection signal. For example, the first MUX 152 outputs the configuration parameters corresponding to address 1 to address m in the first storage unit 1 to the logic control circuit 11.

[0043] In the configuration signal output circuit 15 shown in Figure 2, each first storage unit stores a set of configuration parameters. The control end of the first multiplexer receives a selection signal to selectively output a set of configuration parameters in multiple first storage units to the logic control circuit 11 in a specified order. The configuration signal output circuit 15 has simple logic and is easy to implement.

[0044] In another possible implementation of the embodiment of the present invention, the configuration signal output circuit 15 may use a technical solution in which the address input to the second storage circuit is changed by outputting a change signal through an address change circuit. FIG3 is a schematic diagram of the structure of another configuration signal output circuit provided by an embodiment of the present invention. As shown in FIG3 , the configuration signal output circuit 15 includes a second address selection circuit 153, an address change circuit 154, and a second storage unit 155. The output end of the second address selection circuit 153 is electrically connected to the address selection end of the second storage unit 155. The output end of the address change circuit 154 is electrically connected to the second address selection circuit 153. The signal output end of the second storage unit 155 is connected to an input end of the logic control circuit 11. The second storage unit 155 stores multiple sets of configuration parameters. The address change circuit 154 outputs a change signal to change the address input to the second storage unit 155 so as to output one set of configuration parameters in the second storage unit 155 to the logic control circuit 11 in a specified order.

[0045] In this embodiment of the present invention, the second storage unit 155 can be a common memory or register. As shown in Figure 3, the second storage unit 155 stores multiple sets of configuration parameters, each of which includes multiple configuration parameters. Taking an m-bit SAR ADC as an example, each set of configuration parameters includes at least m configuration parameters, and the m configuration parameters are specified in the order 1, 2, 3, ..., m.

[0046] The second address selection circuit 153 generates and outputs the address of the selected configuration parameter to the second storage unit 155. The address change circuit 154 outputs a change signal to change the address input to the second storage unit 155, thereby realizing the function of selecting one set of configuration parameters in the second storage unit 155, so that the selected set of configuration parameters can be output to the logic control circuit 11 in a specified order. Exemplarily, the input end of the address change circuit 154 receives a random signal that causes the change signal to change. In other words, the address change circuit 154 changes the change signal according to the received random signal to change the address of the selected configuration parameter, thereby changing the address of the selected configuration parameter (it is also possible that the address change circuit 154 itself generates the change signal and is not affected by the random signal, and has corresponding control logic inside to generate different change signals). For example, the address of the selected configuration parameter increases or decreases according to multiples of m, that is, the base address changes by a multiple of s, that is, the address of the selected configuration parameter is add(1+s*m), add(2+s*m) ... add(m+s*m), where s = 0, 1, 2, ..., n-1, and n is the number of configuration parameter sets. Among them, when s=0, the address of the selected configuration parameter is the basic address add1, add2...addm, then the address change circuit 154 can control the address of the selected configuration parameter so that the selected addresses of multiple sets of configuration parameters are different, and different sets of configuration parameters in the second storage unit 155 can be selected and output.

[0047] The second address selection circuit 153 generates and outputs the address of the selected configuration parameter to the second storage unit 155, and the address change circuit 154 outputs a change signal to change the address of the selected configuration parameter input to the second storage unit 155. The second address selection circuit 153 reads one configuration data at each clock of the first clock signal CLK1. For example, the second address selection circuit 153 reads the configuration parameter corresponding to add1 from the second storage unit 155 at the first clock and outputs it to the logic control circuit 11. The second address selection circuit 153 reads the configuration parameter corresponding to add2 from the second storage unit 155 at the second clock and outputs it to the logic control circuit 11. Similarly, the second address selection circuit 153 reads the configuration parameter corresponding to addm from the second storage unit 155 at the mth clock and outputs it to the logic control circuit 11. After m clocks, the configuration parameters corresponding to addresses add1 to addm in the second storage unit 155 are read out in the specified order. At this point, within m clocks, a set of configuration parameters (i.e., addresses add1 to addm) are read out. The corresponding configuration parameters) are read out in a specified order and output to the logic control circuit 11 in the specified order. If the random signal is changed, the change signal changes under the control of the random signal (or the corresponding change signal can be changed according to a logical rule). The address change circuit 154 outputs a change signal to change the address of the selected configuration parameter input to the second storage unit 155. At this time, the second address selection circuit 153 sequentially reads the configuration parameters corresponding to add(1+s*m) to add(m+s*m) from the second storage unit 155 within the new m clocks. At this point, within m clocks, a set of configuration parameters (i.e., the configuration parameters corresponding to add(1+s*m) to add(m+s*m)) is read out in the specified order and output to the logic control circuit 11 in the specified order. The specific set of configuration parameters to be read and when each set of configuration parameters is read can be carried out in a specified manner or randomly.

[0048] In the configuration signal output circuit 15 shown in FIG3 , the second storage unit 155 stores multiple sets of configuration parameters. The address change circuit 154 outputs a change signal to change the address input to the second storage unit 155, thereby outputting one set of configuration parameters in the second storage unit 155 to the logic control circuit 11 in a specified order. The configuration signal output circuit 15 has simple logic and is easy to implement.

[0049] It should be noted that: in Figures 2 and 3, after a set of configuration parameters is selected by the first address selection circuit 151 or the second address selection circuit 153, this set of configuration parameters must be read completely. That is, each input signal must perform data processing with a set of configuration parameters, and one input signal cannot jump to select multiple sets of configuration parameters, thereby ensuring that the data processing process of the SAR ADC circuit will not fail.

[0050] The use of random signals can effectively break up interference signals, making the sampling signal contained in the output signal stronger and the subsequent signal processing effect better.

[0051] FIG4 is a schematic diagram of the structure of a logic control circuit provided by an embodiment of the present invention. As shown in FIG4 , the logic control circuit 11 includes an addition circuit 111, a subtraction circuit 112, a third storage unit 113, and a second multiplexer (MUX) 114. A first input of the comparison circuit 14 is electrically connected to the output of the DAC circuit 12, and a second input of the comparison circuit 14 is electrically connected to the output of the sample-and-hold circuit 13. The output of the configuration signal output circuit 15 and the output of the third storage unit 113 are electrically connected to the inputs of the addition circuit 111 and the subtraction circuit 112. The input of the second multiplexer (MUX) 114 is electrically connected to the output of the addition circuit 111, the subtraction circuit 112, and the comparison circuit 14. The input of the third storage unit 113 is electrically connected to the output of the second multiplexer (MUX) 114 or to the output of the DAC circuit 12. FIG4 illustrates an example in which the input of the third storage unit 113 is electrically connected to the output of the second multiplexer (MUX) 114.

[0052] The third storage unit 113 stores data related to the output result of the DAC circuit 12. The addition circuit 111 performs an addition operation on the received configuration parameter and data and outputs the operation result. The subtraction circuit 112 performs a subtraction operation on the received configuration parameter and data and outputs the operation result. The addition operation is to add the data to the configuration parameter of the next input, and the subtraction operation is to subtract the configuration parameter of the next input from the data. The second MUX 114 selectively outputs the operation result of the addition circuit 111 or the subtraction circuit 112 based on the comparison result received by the comparison circuit 14. The DAC circuit 12 receives the operation result output by the second MUX 114 to change the comparison result of the DAC circuit 12. The data related to the output result of the DAC circuit 12 can be data related to the comparison signal, and the control signal output by the logic control circuit 11 can be the operation result. The operation result is used to control the magnitude of the comparison signal.

[0053] Specifically, the working principle of the logic control circuit 11 is described in detail with reference to FIG. 2 to FIG. 4 .

[0054] The sample-and-hold circuit 13 samples and holds the input signal Vin, outputting the input signal Vin to the second input terminal of the comparison circuit 14. In the initial state, the data stored in the third storage unit 113 has an initial value of 0 (or another number representing the initial value). Under the control of a selection signal, the configuration signal output circuit 15 selects a set of configuration parameters, which includes configuration parameters corresponding to multiple addresses. Under the action of the first clock signal CLK1, the configuration signal output circuit 15 simultaneously outputs the configuration parameter corresponding to the first address to the addition circuit 111 and the subtraction circuit 112. If the comparison circuit 14 has not yet output a comparison result, the second MUX 114 is configured to output the calculation result of the addition circuit 111. (Alternatively, the second MUX 114 or DAC circuit 12 may output a signal of 0, which the third storage unit 113 stores. The comparison circuit 14 then outputs the result of the larger input signal Vin, which activates the addition circuit 111.) Adder circuit 111 adds the initial value 0 to the configuration parameter and outputs the result. Subtracter circuit 112 also operates, subtracting the configuration parameter from the initial value and outputting the result. Second MUX 114 only outputs the result of the adder circuit 111 to DAC circuit 12. DAC circuit 12 receives the result from the second MUX 114 to modify the output of DAC circuit 12, using the result as a comparison signal and outputting the comparison signal to the first input of comparator circuit 14. Third storage unit 113 uses the result from the second MUX 114 as data related to the output of DAC circuit 12 and stores the data. The input of third storage unit 113 is electrically connected to the output of second MUX 114. Third storage unit 113 can also use the output of DAC circuit 12 as data related to the output of DAC circuit 12. In this case, the input of third storage unit 113 is electrically connected to the output of DAC circuit 12.

[0055] Comparison circuit 14 compares the comparison signal with input signal Vin and outputs a comparison result, which is 0 or 1. Second MUX 114 receives this comparison result. Under the influence of first clock signal CLK1, configuration signal output circuit 15 simultaneously outputs the configuration parameter corresponding to the second address to addition circuit 111 and subtraction circuit 112. The next input configuration parameter is the configuration parameter corresponding to the second address. Third storage unit 113 outputs stored data to addition circuit 111 and subtraction circuit 112. Addition circuit 111 adds the configuration parameter corresponding to the second address to the data and outputs the result. Subtraction circuit 112 subtracts the configuration parameter corresponding to the second address from the data and outputs the result. If the comparison result is 0, indicating that the comparison signal is greater than the input signal Vin, the second MUX 114 selectively outputs the operation result of the subtraction circuit 112 based on the comparison result 0. If the comparison result is 1, indicating that the comparison signal is less than the input signal Vin, the second MUX 114 selectively outputs the operation result of the addition circuit 111 based on the comparison result 1 (0 can also indicate that the comparison signal is less than the input signal Vin, and 1 indicates that it is not, the specific method is not limited). The DAC circuit 12 receives the operation result output by the second MUX 114 to change the output result of the DAC circuit 12. The third storage unit 113 uses the operation result output by the second MUX 114 as data related to the output result of the DAC circuit 12 and stores the data related to the output result of the DAC circuit 12, thereby updating the storage value of the third storage unit 113.

[0056] Repeat the above process to complete the reading and data processing of one set of configuration parameters, and then proceed to the reading and data processing of the next set of configuration parameters until the reading and data processing of all configuration parameters are completed.

[0057] The following describes the operating principle of logic control circuit 11 in detail using a specific example. As shown in Figures 2 to 4, the configuration parameters stored in first storage unit 1 to first storage unit n can be voltage values ​​or a series of numerical values, where the numerical values ​​correspond to the output results of DAC circuit 12. For ease of description, the embodiment of the present invention uses the configuration parameters as voltage values ​​as an example.

[0058] For example, if the input signal Vin is 25V, the configuration signal output circuit 15, under the control of the selection signal, selects a set of configuration parameters from the first storage unit. The configuration parameters in this set include 16V, 8V, 4V, 2V, and 1V. The input signal Vin sampled and held by the sample-and-hold circuit 13 is 25V, and the sample-and-hold circuit 13 outputs the input signal Vin to the comparison circuit 14. In the initial state, the data stored in the third storage unit 113 is initially 0. Under the influence of the first clock signal CLK1, the configuration signal output circuit 15 simultaneously outputs the configuration parameter 16V corresponding to the first address to the addition circuit 111 and the subtraction circuit 112. The calculation result output by the addition circuit 111 is 0V + 16V = 16V. The second MUX 114 outputs the calculation result 16V output by the addition circuit 111 to the DAC circuit 12 and the third storage unit 113. The third storage unit 113 stores the calculation result 16V, thereby updating the stored value of the third storage unit 113 to 16V. The DAC circuit 12 receives the operation result 16V output by the second MUX 114, modifies the output result of the DAC circuit 12, uses the output result 16V as a comparison signal, and outputs the comparison signal 16V to a first input terminal of the comparison circuit 14. The comparison circuit 14 compares the comparison signal 16V with the input signal 25V. Since the comparison signal 16V is less than the input signal 25V, the comparison result output by the comparison circuit 14 is 1, and the comparison circuit 14 outputs the comparison result 1 to the second MUX 114.

[0059] Under the influence of the first clock signal CLK1, the configuration signal output circuit 15 simultaneously outputs the configuration parameter 8V corresponding to the second address to the adding circuit 111 and the subtracting circuit 112. The calculation result output by the adding circuit 111 is 16V + 8V = 24V, and the calculation result output by the subtracting circuit 112 is 16V - 8V = 8V. Based on the comparison result 1, the second MUX 114 selectively outputs the calculation result 24V output by the adding circuit 111 to the DAC circuit 12 and the third storage unit 113. The third storage unit 113 stores the calculation result 24V, thereby updating the stored value of the third storage unit 113 to 24V. The DAC receives the calculation result 24V output by the second MUX 114 to change the output result of the DAC circuit 12, uses the output result 24V as a comparison signal, and outputs the comparison signal 24V to the first input terminal of the comparison circuit 14. The comparison circuit 14 compares the comparison signal 24V with the input signal 25V. The comparison signal 24V is smaller than the input signal 25V. Therefore, the comparison result output by the comparison circuit 14 is 1 and the comparison circuit 14 outputs the comparison result 1 to the second MUX 114 .

[0060] Under the influence of the first clock signal CLK1, the configuration signal output circuit 15 simultaneously outputs the configuration parameter 4V corresponding to the third address to the adding circuit 111 and the subtracting circuit 112. The calculation result output by the adding circuit 111 is 24V + 4V = 28V, and the calculation result output by the subtracting circuit 112 is 24V - 4V = 20V. Based on the comparison result 1, the second MUX 114 selectively outputs the calculation result 28V output by the adding circuit 111 to the DAC circuit 12 and the third storage unit 113. The third storage unit 113 stores the calculation result 28V, updating the stored value of the third storage unit 113 to 28V. The DAC receives the calculation result 28V output by the second MUX 114 to change the output result of the DAC circuit 12, uses the output result 28V as a comparison signal, and outputs the comparison signal 28V to the comparison circuit 14. The comparison circuit 14 compares the comparison signal 28V with the input signal 25V. The comparison signal 28V is greater than the input signal 25V. Therefore, the comparison result output by the comparison circuit 14 is 0. The comparison circuit 14 outputs the comparison result 0 to the second MUX 114 .

[0061] Under the influence of the first clock signal CLK1, the configuration signal output circuit 15 simultaneously outputs the configuration parameter 2V corresponding to the fourth address to the addition circuit 111 and the subtraction circuit 112. The operation result output by the addition circuit 111 is 28V + 2V = 30V, and the operation result output by the subtraction circuit 112 is 28V - 2V = 26V. Based on the comparison result 0, the second MUX 114 selectively outputs the operation result 26V output by the subtraction circuit 112 to the DAC circuit 12 and the third storage unit 113. The third storage unit 113 stores the operation result 26V, updating the stored value of the third storage unit 113 to 26V. The DAC receives the operation result 26V output by the second MUX 114 to change the output result of the DAC circuit 12, uses the output result 26V as a comparison signal, and outputs the comparison signal 26V to the first input terminal of the comparison circuit 14. The comparison circuit 14 compares the comparison signal 26V with the input signal 25V. The comparison signal 26V is greater than the input signal 25V. Therefore, the comparison result generated by the comparison circuit 14 is 0 and the comparison circuit 14 outputs the comparison result 0 to the second MUX 114 .

[0062] Under the influence of the first clock signal CLK1, the configuration signal output circuit 15 simultaneously outputs the configuration parameter 1V corresponding to the fifth address to the addition circuit 111 and the subtraction circuit 112. The operation result output by the addition circuit 111 is 26V + 1V = 27V, and the operation result output by the subtraction circuit 112 is 26V - 1V = 25V. Based on the comparison result 0, the second MUX 114 selectively outputs the operation result 25V output by the subtraction circuit 112 to the DAC circuit 12 and the third storage unit 113. The third storage unit 113 stores the operation result 25V, thereby updating the stored value of the third storage unit 113 to 25V. The DAC receives the operation result 25V output by the second MUX 114 to change the output result of the DAC circuit 12, uses the output result 25V as a comparison signal, and outputs the comparison signal 25V to the comparison circuit 14. The comparison circuit 14 compares the comparison signal 25V with the input signal 25V. The comparison signal 25V is equal to the input signal 25V. Therefore, the comparison result output by the comparison circuit 14 is 1. The comparison circuit 14 outputs the comparison result 1 to the second MUX 114 .

[0063] In summary, the final ADC_out output of the comparison circuit 14 is 11001, indicating that the collected input signal is 25V. After data processing is performed on each set of configuration parameters, the input signal Vin can be recollected, and the stored value of the third storage unit 113 can be initialized. Then, according to the selection signal, the reading and data processing of all configuration parameters are completed.

[0064] The logic control circuit 11 shown in FIG4 includes an adding circuit 111 , a subtracting circuit 112 , a third storage unit 113 and a second MUX 114 . The control logic is relatively simple and the circuit area is small.

[0065] The working principle of the SAR ADC circuit provided by the embodiment of the present invention is described below with reference to FIG. 1 to FIG. 4 .

[0066] In the SAR ADC circuit provided in the embodiment of the present invention, the DAC circuit 12 is editable. For example, the comparison signal of the DAC circuit 12 can be configured by controlling the on / off switching of different switches. The comparison signal output by the DAC circuit 12 is not fixed but can vary depending on the calculation result output by the logic control circuit 11. For example, the capacitance of the capacitive DAC circuit can no longer decrease in a binary manner but can also decrease in an arbitrary manner, as shown in Table 1. Table 1 shows multiple sets of comparison signals and the comparison result ADC_out.

[0067] Table 1

[0068] The configuration signal output circuit 15 stores multiple sets of configuration parameters. The configuration signal output circuit 15 can randomly select a set of configuration parameters based on a selection signal and output the set of configuration parameters to the logic control circuit 11. The logic control circuit 11 outputs a control signal to control the magnitude of the comparison signal of the DAC circuit 12 based on the configuration parameters and the comparison result. The DAC circuit 12 then outputs a comparison signal based on the control signal. As shown in Table 1, the SAR ADC circuit is a 4-bit SAR ADC circuit with a reference voltage Vref = 12V and an input signal Vin = 9.8V. Each set of comparison signals includes four comparison signals: a comparison signal for the first bit b3, a comparison signal for the second bit b2, a comparison signal for the third bit b1, and a comparison signal for the fourth bit b0. For example, if the first set of comparison signals includes a comparison signal Vref*1 / 2 for bit b3, a comparison signal Vref*1 / 4 for bit b2, a comparison signal Vref*1 / 8 for bit b1, and a comparison signal Vref*1 / 16 for bit b0, the output comparison result ADC_out is 1101. As can be seen from Table 1, each bit in each set of comparison signals represents a different voltage. Therefore, the same input signal Vin can cause the SAR ADC circuit to output different digital signals. Table 1 uses a 4-bit SAR ADC circuit as an example. If a higher-bit SAR ADC circuit is used, achieving higher precision, different ADC_out values ​​can represent the same or substantially the same voltage value.

[0069] The configuration signal output circuit 15 includes a first storage unit or a second storage unit (e.g., a RAM). The RAM stores multiple sets of configuration parameters for configuring the DAC circuit 12. For example, the configuration parameters may include voltage values, switch on / off parameters, etc. Under the control of the first clock signal CLK1, the logic control circuit 11 reads the configuration parameters from the RAM and controls the switches of the DAC circuit 12 based on the output control signal, so that the DAC circuit 12 generates different comparison signals. Under the control of a selection signal, the logic control circuit 11 reads any set of configuration parameters. For example, as shown in Table 1, the logic control circuit 11 may first read the second set of configuration parameters, and then read the configuration parameters of bits b3, b2, b1, and b0 in the second set of configuration parameters from the RAM in a specified order. The DAC circuit 12 then switches the corresponding switch for bit b3 (which may be a combination of multiple switches) on and off according to the control signal output by the logic control circuit 11, so that the comparison signal for the first bit b3 is Vref*3 / 4. When the comparison circuit 14 determines that the comparison signal is greater than the input signal Vin, the logic control circuit 11 may add the b2-bit configuration parameter to the control signal. Alternatively, when the comparison circuit 14 determines that the comparison signal is less than the input voltage Vin, the logic control circuit 11 may subtract the b2-bit configuration data from the control signal. This continues until all the second set of configuration parameters have been read and all the second set of comparison signals have been compared. The above operation then continues, randomly reading the first, third, and fourth sets of configuration parameters, comparing the first, third, and fourth sets of comparison signals, and outputting ADC_out.

[0070] FIG5 is a schematic diagram of the output signal of the SAR ADC circuit provided in an embodiment of the present invention. As shown in FIG5 , a plurality of configuration parameters are stored in the RAM, and the plurality of configuration parameters include configuration parameters of RAM_0 to configuration parameters of RAM_n. The output signal corresponding to the configuration parameters of RAM_0 is ADC0_out, the output signal corresponding to the configuration parameters of RAM_1 is ADC1_out, the output signal corresponding to the configuration parameters of RAM_2 is ADC2_out, and so on. The output signal corresponding to the configuration parameters of RAM_n is ADCn_out. The output signal in FIG5 is the comparison result. As shown in FIG5 , it can be seen from the corresponding relationship diagram between the frequency and intensity of the output signal that each output signal ADC_out corresponds to at least one spurious signal (it may also be 0, 1, 2, or more spurious signals). For example, ADC0_out corresponds to spurious signal 1 and spurious signal 2 of different frequencies, ADC1_out corresponds to spurious signal 1 and spurious signal 2 of different frequencies, ADC2_out corresponds to spurious signal 1 and spurious signal 2 of different frequencies, and so on. ADCn_out corresponds to spurious signal 1 and spurious signal 2 of different frequencies. In FIG5 , the frequencies of the spurious signals corresponding to ADC0_out to ADCn_out are all different (it is also possible that some ADC_out signals have the same frequency, or some have the same frequency, but not all ADC_out signals have the same frequency). As can be seen from this, each signal output by the SAC ADC circuit includes a fixed-frequency output signal and a non-fixed-frequency spurious signal. Therefore, the spurious signals corresponding to ADC0_out to ADCn_out are likely to be different. The SAR ADC circuit of the embodiment of the present invention can disperse or divide the frequencies of the spurious signals output by the integrated SAR ADC circuit, and will not fix the spurious signals at a certain frequency, so that the frequencies of the spurious signals are no longer concentrated, thereby improving the accuracy of the sampled signal, thereby greatly improving the SFDR, and facilitating the subsequent processing of the SAR ADC circuit output signal. The SAR ADC circuit of the embodiment of the present invention can significantly improve the SFDR performance without the cost of multiple ADCs. It only needs to increase the data in the storage circuit or increase the capacity of the storage circuit, and slightly modify the control logic to achieve it, with low hardware overhead.

[0071] The output of the DAC circuit 12 of a conventional SAR ADC circuit varies in a binary decreasing manner, which has the problem of lacking a fault tolerance mechanism. To address this issue, in an embodiment of the present invention, at least one set of configuration parameters enables the output of the DAC circuit 12 to vary in a non-binary decreasing manner.

[0072] Table 2 shows the comparison signals corresponding to the two sets of configuration parameters, and Table 3 shows the comparison results corresponding to the two sets of configuration parameters.

[0073] Table 2

[0074] Table 3

[0075] As shown in Tables 2 and 3 above, the SAR ADC circuit is an 8-bit SAR ADC circuit. For example, the input signal is 9 V and the reference voltage Vref is 32 V. The first set of comparison signals decreases in binary order, meaning that the sum of subsequent comparison signals will not be higher than the previous comparison signal. For example, the comparison signal at bit b7 is greater than the comparison signal at bit b6 + the comparison signal at bit b5 ... + the comparison signal at bit b0; the comparison signal at bit b6 is greater than the comparison signal at bit b4 + the comparison signal at bit b3 ... + the comparison signal at bit b0; and so on. The comparison signal at bit b2 is greater than the comparison signal at bit b1 + the comparison signal at bit b0, and the comparison signal at bit b1 is greater than the comparison signal at bit b0. The second set of comparison signals does not decrease in a binary manner. In other words, the second set of comparison signals changes in a non-binary decreasing manner, that is, the result of adding the subsequent comparison signals may be greater than or equal to the comparison signal of the previous bit. For example, the comparison signal of bit b6 + the comparison signal of bit b5 > the comparison signal of bit b7, the comparison signal of bit b6 + the comparison signal of bit b4 + the comparison signal of bit b3 > the comparison signal of bit b7, the comparison signal of bit b6 + the comparison signal of bit b3 + the comparison signal of bit b2 = the comparison signal of bit b7, the comparison signal of bit b4 + the comparison signal of bit b3 + the comparison signal of bit b2 > the comparison signal of bit b5, etc.

[0076] The comparison results of the two sets of configuration parameters are described below in conjunction with the contents shown in Table 2 and Table 3.

[0077] For the first set of configuration parameters: the ideal value of the comparison signal of bit b7 is 16V. Due to the delay effect, the comparison signal of bit b7 only rises to 14V when the comparison circuit 14 performs voltage comparison. However, since the comparison signal of bit b7 is relatively large at this time, the comparison signal is greater than the input signal. The comparison result output by the comparison circuit 14 is 0, and the comparison result is correct. Theoretically, the comparison signal of bit b6 should drop to 8V, that is, the comparison signal is 16V-8V. Due to the delay effect, the comparison signal of bit b6 only drops to 10V when the comparison circuit 14 performs voltage comparison. The comparison signal 10V is greater than the input signal 9V, so the comparison result output by the comparison circuit 14 is 0. Since the comparison result should be 1 in theory, the comparison signal of bit b6 is wrong; the comparison signal of bit b5 is 16V-8V-4V=4V. Since the comparison signal 4V of bit b5 is less than the input signal 9V, the comparison result output by the comparison circuit 14 is 1, and the comparison result is correct; the comparison signal of bit b4 is 16V-8V-4V+2V=6V. Since the comparison signal 6V of bit b4 is less than the input signal 9V, the comparison result output by the comparison circuit 14 is 1, and the comparison result is correct. The result is correct. The comparison signal for bit b3 is 16V-8V-4V+2V+1V=7V. Since the comparison signal of bit b3 (7V) is less than the input signal of 9V, the comparison result output by comparison circuit 14 is 1, which is correct. The comparison signal for bit b2 is 16V-8V-4V+2V+1V+0.5V=7.5V. Since the comparison signal of bit b2 (7.5V) is less than the input signal of 9V, the comparison result output by comparison circuit 14 is 1, which is correct. The comparison signal for bit b1 is 16V-8V-4V+2V+1V+0.5V+0. 25V=7.75V. The comparison signal 7.75V of bit b1 is less than the input signal 9V. Therefore, the comparison result output by the comparison circuit 14 is 1, and the comparison result is correct. The comparison signal of bit b0 is 16V-8V-4V+2V+1V+0.5V+0.25V+0.125V=7.875V. Since the comparison signal 7.875V of bit b0 is less than the input signal 9V, the comparison result output by the comparison circuit 14 is 1, and the comparison result is correct. Therefore, the final output ADC_out is 00111111, which represents a voltage value of 7.875V.

[0078] For the second set of configuration data: the ideal value of the comparison signal of bit b7 is 20V. Due to the delay, the comparison signal of bit b7 only rises to 18V when the comparison circuit 14 performs voltage comparison. However, since the comparison signal of bit b7 itself is relatively large, the comparison signal is greater than the input signal. The comparison result output by the comparison circuit 14 is 0, and the comparison result is correct. Theoretically, the comparison signal of bit b6 should drop to 5V, that is, the comparison signal is 20V-15V. Due to the delay, the comparison signal of bit b6 only drops to 8V when the comparison circuit 14 performs voltage comparison. However, since the comparison signal of bit b6 itself is relatively low at this time, the comparison signal of bit b6 8V is less than the input signal 9V. Therefore, the result output by the comparison circuit 14 is 1, and the comparison result is correct. The comparison signal of bit b5 is 20V-15V+8V=13V. Due to the delay, the comparison signal of bit b5 only rises to 11V. However, since the comparison signal of bit b5 is relatively large at this time, the comparison signal of bit b5 11V is greater than the input signal 9V. Therefore, the comparison result output by the comparison circuit 14 is 0, and the comparison result is correct. Theoretically, the comparison signal of bit b4 should drop to 9V, that is, the comparison signal of bit b4 is 20V-15V+8V-4V=9V. Due to the delay, the comparison signal of bit b4 only drops to 10V when the comparison circuit 14 performs voltage comparison. Since the comparison signal of bit b4 is 10V, the comparison result of bit b4 is 0. The comparison result of bit b1 is 0, which is greater than the input signal 9V. The comparison result should be 1 in theory, so the comparison signal of bit b4 is wrong. The comparison signal of bit b3 is 20V-15V+8V-4V-3V=6V. Since the comparison signal of bit b3 is 6V, which is less than the input signal 9V, the comparison result of bit b1 is 1, which is correct. The comparison signal of bit b2 is 20V-15V+8V-4V-3V+2V=8V. Since the comparison signal of bit b2 is 8V, which is less than the input signal 9V, the comparison result of bit b1 is 1, which is correct. The comparison signal of the b1 bit is 20V-15V+8V-4V-3V+2V+1V=9V. Since the comparison signal 9V of the b1 bit is equal to the input signal 9V, the comparison result output by the comparison circuit 14 is 1, and the comparison result is correct; the comparison signal of the b0 bit is 20V-15V+8V-4V-3V+2V+1V+0.125V=9.125V. Since the comparison signal 9.125V of the b0 bit is greater than the input signal 9V, the comparison result output by the comparison circuit 14 is 0, and the comparison result is correct; therefore, the final output ADC_out is 01001110, which represents a voltage value of 9V.

[0079] In summary, the voltage value obtained using the second set of configuration parameters is closer to the input signal than the voltage value obtained using the first set of configuration parameters. The embodiment of the present invention utilizes a configurable DAC circuit 12 and employs a non-binary approach for successive approximation, resulting in greater redundancy correction capabilities. If an error occurs in one comparison signal, it can be corrected using subsequent comparison signals.

[0080] In the embodiment of the present invention, the DAC circuit 12 is configurable, so the DAC circuit 12 is adaptable to multiple frequencies and the weights can be flexibly configured. The SAR ADC circuit was originally designed for use with low-frequency signals. If it is used for high-frequency signals, the conventional binary decrement scheme is prone to errors due to delay effects. Therefore, the configurable DAC circuit 12 is used. Due to its high redundancy correction capability, it can also be applied to high-frequency signals, where a high-frequency signal refers to a signal with a frequency higher than that of a low-frequency signal. However, the frequency of the high-frequency signal cannot be too high, and the frequency of the high-frequency signal must not exceed the response capability of the circuit. Therefore, the application range of the SAR ADC circuit is wider and the design is more flexible.

[0081] In an embodiment of the present invention, the configuration signal output circuit 15 outputs the configuration parameters one by one according to the first clock signal, and the sample and hold circuit 13 samples and holds the input signal according to the second clock signal. A set of configuration parameters includes m configuration parameters, and the frequency of the second clock signal is 1 / m times the frequency of the first clock signal, that is, fclk2=1 / m*fclk1, where fclk2 is the frequency of the second clock signal, fclk1 is the frequency of the first clock signal, and m is the number of bits of the configuration parameter.

[0082] Since the sample-and-hold circuit 13 samples one input signal each time, the configuration signal output circuit 15 needs to read a set of configuration parameters to perform a successive approximation comparison and finally output the comparison result ADC_out of the digital signal sampled this time. Therefore, each time the sample-and-hold circuit 13 samples one input signal, the configuration signal output circuit 15 needs to read m bits of configuration parameters to perform a successive approximation comparison. Therefore, the frequency of the second clock signal of the sample-and-hold circuit 13 is less than the frequency of the first clock signal of the configuration signal output circuit 15 and satisfies the relationship fclk2 = 1 / m*fclk1, thereby maintaining data matching.

[0083] FIG6 is a schematic diagram of the structure of another SAR ADC circuit provided in an embodiment of the present invention. As shown in FIG6 , the SAR ADC circuit in this embodiment differs from the SAR ADC circuit in FIG1 in that the output of the sample-and-hold circuit 13 is electrically connected to the DAC circuit 12, and the second input of the comparator circuit 14 is connected to the preset voltage terminal. As an alternative, if the preset voltage terminal is a ground terminal, the second input of the comparator circuit 14 is grounded. The description of the remaining structures of the SAR ADC circuit in FIG6 can be found in the description of the SAR ADC circuit in FIG1 and will not be repeated here. FIG10 can be understood as a specific embodiment of FIG6 .

[0084] The structure of the SAR ADC circuit in the embodiments of the present invention disperses or divides the frequencies of the output spurious signals, eliminating the need for spurious signals to be fixed at a single frequency. This reduces the frequency concentration of spurious signals, improves the accuracy of the sampled signal, increases the SFDR, and facilitates subsequent signal processing. Furthermore, the circuit has a simple structure and redundancy correction capability, which broadens the circuit's applicability.

[0085] FIG7a is a flow chart of a data processing method of a SAR ADC circuit provided by an embodiment of the present invention. As shown in FIG7a , the method includes:

[0086] Step 102: Sample and hold the input signal.

[0087] Step 104: Compare the input signal with the comparison signal and output the comparison result.

[0088] As an optional solution, as shown in FIG1 , the comparison circuit 14 compares the input signal with the comparison signal and outputs a comparison result.

[0089] As another alternative, as shown in FIG6 , the comparison circuit 14 compares the comparison signal with a preset voltage outputted from a preset voltage terminal and outputs a comparison result, where the preset voltage may be a voltage at a ground terminal. The DAC circuit 12 receives the input signal outputted by the sample-and-hold circuit 13 and generates a comparison signal based on the input signal and the obtained modulated reference voltage. Specifically, the DAC circuit 12 generates the comparison signal based on the difference between the input signal and the obtained modulated reference voltage.

[0090] Step 106: Select one set of configuration data from the multiple sets of configuration parameters and output them in a specified order.

[0091] As an optional solution, the same address signal can simultaneously select multiple sets of configuration parameters, and a selection signal is received to output one of the configuration parameters in a specified order. The selection signal can be a random signal.

[0092] As another optional solution, the selected addresses of the multiple sets of configuration parameters are different, and a change signal is received to change the address of the selected configuration parameter so as to output one of the sets of configuration parameters in a specified order. The change signal may be controlled by a random signal.

[0093] Step 108: Receive the configuration parameters and the comparison result and output a control signal for controlling the size of the comparison signal.

[0094] In an embodiment of the present invention, FIG7b is a flow chart of outputting a control signal in an embodiment of the present invention. As shown in FIG7b , step 108 may specifically include:

[0095] Step 1082: Store data related to the comparison signal.

[0096] Step 1084: Receive configuration parameters and data to perform addition and subtraction operations.

[0097] The addition operation is to add the configuration parameter input next time to the data, and the subtraction operation is to subtract the configuration parameter input next time from the data.

[0098] Step 1086: Receive the result of the addition operation or the result of the subtraction operation selectively output according to the comparison result, and the operation result is used to control the size of the comparison signal.

[0099] Among them, the control signal is the operation result.

[0100] In an embodiment of the present invention, at least one set of configuration parameters causes the comparison signal to change in a non-binary decreasing manner.

[0101] In an embodiment of the present invention, the reading clock of the configuration parameters is a first clock signal, the sampling and holding clock of the input signal is a second clock signal, a set of configuration parameters includes m configuration parameters, and the frequency of the second clock signal is 1 / m times that of the first clock signal.

[0102] In the data processing method for a SAR ADC circuit provided in an embodiment of the present invention, an input signal is sampled and held, the input signal is compared with a comparison signal and a comparison result is output, one set of configuration parameters from multiple sets of configuration parameters is selected and output in a specified order, the configuration parameters and the comparison result are received, and a control signal for controlling the magnitude of the comparison signal is output. The data processing method for a SAR ADC circuit in an embodiment of the present invention disperses or divides the frequency of the output spurious signal, eliminating the need for a fixed spurious signal at a specific frequency. This reduces the frequency concentration of the spurious signal, improves the accuracy of the sampled signal, increases the SFDR, and facilitates subsequent signal processing.

[0103] In the above method, the steps are not necessary. The latter can be executed first and then the former, or they can be processed simultaneously. The settings are made here according to the specific circuit.

[0104] FIG8 is a schematic structural diagram of a microprocessor chip provided in an embodiment of the present invention. As shown in FIG8 , the microprocessor chip 100 may include a SAR ADC circuit 10. The SAR ADC circuit 10 may adopt the SAR ADC circuit shown in FIG1 or FIG6 , which will not be described in detail here.

[0105] In the embodiment of the present invention, the output end of the SAR ADC circuit 10 is electrically connected to the output end of the comparison circuit 14, or the output end of the SAR ADC circuit 10 is electrically connected to the input end of the DAC circuit 12. The specific selection of the output end of the SAR ADC circuit 10 depends on the specific circuit configuration.

[0106] In the embodiment of the present invention, the microprocessor chip 100 includes but is not limited to a microcontroller unit (MCU), a digital signal processor (DSP), a microprocessor unit (MPU), a central processing unit (CPU), and other micro central control chips and system-on-chip chips that can process digital signals, analog signals, or perform signal control functions, instruction processing and calculation functions.

[0107] The microprocessor chip provided in an embodiment of the present invention includes a SAR ADC circuit. The structure of the SAR ADC circuit causes the frequency of the output spurious signal to be scattered or divided, so that the spurious signal is not fixed at a certain frequency. As a result, the frequency of the spurious signal is no longer concentrated, thereby improving the accuracy of the sampled signal, improving the SFDR, and facilitating subsequent signal processing.

[0108] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A SAR ADC circuit, It is characterized in that include: A logic control circuit, a DAC circuit, a sampling and holding circuit and a comparison circuit; the sampling and holding circuit samples and holds an input signal, the DAC circuit is used to generate a comparison signal, and the comparison circuit outputs a comparison result between the comparison signal and the input signal; The SAR ADC circuit further includes a configuration signal output circuit, wherein the configuration signal output circuit stores multiple sets of configuration parameters, and the configuration signal output circuit is used to selectively output one set of the configuration parameters from the multiple sets of the configuration parameters to the logic control circuit in a specified order; The logic control circuit receives the configuration parameter and a comparison result of the comparison circuit, and outputs a control signal for controlling the DAC circuit to output a control signal corresponding to the comparison signal.

2. The SAR ADC circuit according to claim 1, It is characterized in that The configuration signal output circuit includes a first address selection circuit, a first multiplexer, and a plurality of first storage units connected in parallel; The first address selection circuit is electrically connected to the plurality of first storage units, the output terminals of the plurality of first storage units are electrically connected to the input terminals of the first multiplexer, and the output terminals of the first multiplexer are electrically connected to the input terminals of the logic control circuit; Each of the first storage units stores a set of the configuration parameters, and the control end of the first multiplexer receives a selection signal to selectively output a set of the configuration parameters in a plurality of the first storage units to the logic control circuit in a specified order.

3. The SAR ADC circuit according to claim 2, It is characterized in that The selection signal is a random signal.

4. The SAR ADC circuit according to claim 1, It is characterized in that The configuration signal output circuit includes a second address selection circuit, an address change circuit and a second storage unit; The output end of the second address selection circuit is electrically connected to the address selection end of the second storage unit, the output end of the address change circuit is electrically connected to the second address selection circuit, and the signal output end of the second storage unit is connected to an input end of the logic control circuit; The second storage unit stores a plurality of configuration parameters, and the address change circuit outputs a change signal to change the address input to the second storage unit so as to output one of the configuration parameters in the second storage unit to the logic control circuit in a specified order.

5. The SAR ADC circuit according to claim 4, It is characterized in that The input end of the address change circuit receives a random signal that causes the change signal to change.

6. The SAR ADC circuit according to claim 1, It is characterized in that At least one set of the configuration parameters causes the output of the DAC circuit to vary in a non-binary decreasing manner.

7. The SAR ADC circuit according to any one of claims 1 to 6, It is characterized in that The logic control circuit includes an adding circuit, a subtracting circuit, a third storage unit and a second multiplexer; The first input terminal of the comparison circuit is electrically connected to the output terminal of the DAC circuit, and the second input terminal of the comparison circuit is electrically connected to the output terminal of the sample and hold circuit; the output terminal of the configuration signal output circuit and the output terminal of the third storage unit are both electrically connected to the input terminals of the addition circuit and the subtraction circuit, the input terminal of the second multiplexer is electrically connected to the output terminals of the addition circuit, the subtraction circuit and the comparison circuit, and the input terminal of the third storage unit is electrically connected to the output terminal of the second multiplexer or to the output terminal of the DAC circuit; The third storage unit stores data related to the output result of the DAC circuit. The configuration parameters and the data are added and the operation result is outputted; the subtraction circuit subtracts the received configuration parameters and the data and outputs the operation result; the second multiplexer selectively outputs the operation result of the addition circuit or the subtraction circuit according to the comparison result of the received comparison circuit; the DAC circuit receives the operation result outputted by the second multiplexer to change the comparison result of the DAC circuit.

8. The SAR ADC circuit according to claim 7, It is characterized in that The addition operation is to add the configuration parameter input next time to the data; and the subtraction operation is to subtract the configuration parameter input next time from the data.

9. The SAR ADC circuit according to any one of claims 1 to 6, It is characterized in that The configuration signal output circuit outputs the configuration parameters one by one according to the first clock signal, and the sampling and holding circuit samples and holds the input signal according to the second clock signal. A set of the configuration parameters includes m configuration parameters, and the frequency of the second clock signal is 1 / m times the frequency of the first clock signal.

10. A data processing method for a SAR ADC circuit, It is characterized in that Sample and hold the input signal; Compare the input signal with the comparison signal and output the comparison result; Selecting one set of configuration data from among multiple sets of configuration parameters to output in a specified order; The configuration parameter and the comparison result are received and a control signal for controlling the size of the comparison signal is output.

11. The method according to claim 10, It is characterized in that The same address signal can select multiple sets of the configuration parameters at the same time, and a selection signal is received to output one of the sets of the configuration parameters in a specified order.

12. The method according to claim 11, It is characterized in that The selection signal is a random signal.

13. The method according to claim 10, It is characterized in that The selected addresses of the multiple sets of configuration parameters are different, and a change signal is received to change the address of the selected configuration parameter so as to output one of the sets of configuration parameters in a specified order.

14. The method according to claim 13, It is characterized in that The changing signal is changed under the control of a random signal.

15. The method according to claim 10, It is characterized in that At least one set of the configuration parameters causes the comparison signal to vary in a non-binary decreasing manner.

16. The method according to any one of claims 10 to 15, It is characterized in that storing data related to the comparison signal; receiving the configuration parameters and the data to perform addition and subtraction operations; receiving the comparison result and selectively outputting an operation result of an addition operation or an operation result of a subtraction operation; The operation result is used to control the size of the comparison signal.

17. The method according to claim 16, It is characterized in that The addition operation is to add the configuration parameter input next time to the data; and the subtraction operation is to subtract the configuration parameter input next time from the data.

18. The method according to any one of claims 10 to 15, It is characterized in that The reading clock of the configuration parameters is a first clock signal, the sampling and holding clock of the input signal is a second clock signal, a set of the configuration parameters includes m configuration parameters, and the frequency of the second clock signal is 1 / m times that of the first clock signal.

19. A microprocessor chip, comprising the SAR ADC circuit according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Differential input voltage charge scaling SARADC

    CN114567323A

  • SAR ADC circuit, data processing method and micro-processing chip

    CN116131855A

  • Analog-to-digital converter

    US20110090103A1

  • Analog-to-digital converter

    US20110133971A1

  • A / D Converter with Compressed Full-Scale Range

    US20110285569A1