Current automatic compensation circuit

By designing the current automatic compensation circuit, and automatically controlling the compensation output current using the comparison module and the successive comparison control logic module, the problem of low current compensation efficiency in the existing technology is solved, and a more efficient and timely current compensation effect is achieved.

CN222050777UActive Publication Date: 2024-11-22SHANGHAI HYNITRON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420900205.4
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-04-26
Publication Date
2024-11-22
Estimated Expiration
2034-04-26

AI Technical Summary

Technical Problem

In the prior art, current compensation requires manual setting of the compensation current size and phase, which is long operation time, time and effort, and manual recording of compensation data is required, which is inefficient.

Method used

Design a current automatic compensation circuit, including a comparison module, a successive comparison control logic module and a compensation module, and the current comparison control logic module is used to compare the current at different times, and the output current is controlled according to the comparison results. The current to be compensated according to the compensation The output current changes to realize automatic compensation.

Benefits of technology

It improves the efficiency of current compensation, saves time and effort, and is timely and accurate, reduces operating steps and time, facilitates data processing, and improves system work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222050777U_ABST
    Figure CN222050777U_ABST
Patent Text Reader

Abstract

The utility model discloses a current automatic compensation circuit. The current automatic compensation circuit comprises a comparison module, a successive comparison control logic module and a compensation module. To-be-compensated current is input into the comparison module; the successive comparison control logic module is used for controlling the comparison module to carry out current comparison at different moments and obtaining comparison results; the current to be compensated changes according to the compensation output current, and compared with the manual compensation current, the automatic compensation circuit provided by the utility model can more timely and accurately carry out current compensation, and is time-saving and labor-saving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model belongs to the technical field of current compensation, and in particular relates to an automatic current compensation circuit. Background Art

[0002] In circuit design, there are scenarios where current needs to be integrated. The size of the integrated current determines the output size of the integrator. To ensure that the output of the integrator is within the output range, the integrated current needs to be compensated to reduce the current integrated by the integrator and control the output of the integrator. However, in the prior art, the size and phase of the compensation current are mostly set manually, which takes a long time and is time-consuming and labor-intensive. In addition, the compensation data needs to be recorded manually. Utility Model Content

[0003] The utility model aims to provide a current automatic compensation circuit to improve the efficiency of current compensation.

[0004] In order to achieve the above-mentioned purpose, the utility model provides a current automatic compensation circuit, including: a comparison module, a successive comparison control logic module and a compensation module;

[0005] The current to be compensated is input into the comparison module;

[0006] The successive comparison control logic module is used to control the comparison module to perform current comparison and obtain comparison results at different times; and to control the compensation output current of the compensation module according to the comparison results, and the current to be compensated changes according to the compensation output current.

[0007] Optionally, the comparison module includes a comparison node and N pull-down currents, and the current to be compensated is input to the comparison node; the N pull-down currents are connected in parallel to the comparison node, and are all controlled to be connected and disconnected by the successive comparison control logic module; wherein N is the number of basic compensation bits, which is a positive integer.

[0008] Optionally, the compensation module includes N-level compensation currents; one end of the N-level compensation currents is connected to VDDA, and the other end is connected to a compensation current access point; and the connection and disconnection of the N-level compensation currents are controlled according to the comparison result.

[0009] Optionally, the magnitude of the compensation current in each gear is 1 / 2^(3-N)*Ip, and the magnitude of the pull-down current in each gear is 1 / 2^(3-N)*In, wherein Ip and In are set values.

[0010] Optionally, the successive comparison control logic module includes N+1 cores; each of the N+1 cores includes a first trigger;

[0011] The CK terminal of each of the first triggers is connected to the signal CK; the output of the Q terminal of the first trigger in the previous core is used as the input of the D terminal of the first trigger in the next core;

[0012] The D terminal of the first flip-flop in the N+1th core is connected to a logic high level;

[0013] The Q terminal of the first flip-flop in the first core outputs a signal DONE.

[0014] Optionally, the successive comparison control logic module also includes N groups of logic gates, and the 1st to Nth groups of logic gates correspond to the 1st to Nth cores; the first input end of the logic gate is the output signal of the first trigger Q in the previous core, and the second input end of the logic gate is the output signal of the first trigger Q in the core corresponding to the logic gate of the current group.

[0015] Optionally, each of the Nth core to the first core includes a second trigger;

[0016] The CK terminal of each second trigger is connected to the Q terminal of the first trigger in the core where the second trigger is located, and the D terminal is connected to the signal CMP_RST, and the signal CMP_RST is the comparison result of the current to be compensated and the N-level pull-down current at the comparison node;

[0017] The Q end of each of the second triggers outputs a latch signal, and the latch signal is used to latch the comparison result.

[0018] Optionally, both the first trigger and the second trigger are D triggers.

[0019] Optionally, a current mirror module is also included, which is used to mirror the current to be compensated and input it into the comparison module.

[0020] Compared with the prior art, the utility model has at least the following technical effects:

[0021] In the utility model, the current to be compensated will be copied to the comparison module within the compensation time when the system automatically starts, and then the next comparison will be performed according to the comparison result through the control of the successive comparison control logic module, and this process will be repeated until an accurate comparison result is reached; by inputting the current to be compensated in the comparison module, the successive comparison control logic module controls the comparison module to perform current comparison at different times and obtains the comparison result, and controls the compensation output current of the compensation module according to the comparison result, and the current to be compensated changes according to the compensation output current; the entire current compensation process is completed according to the current automatic compensation circuit provided by the utility model, which is more time-saving and labor-saving than manual compensation current, and is more timely and accurate, thereby improving the current compensation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 This is a structural block diagram of the current automatic compensation circuit in the first embodiment of the utility model;

[0023] Figure 2 This is a schematic diagram of the structure of the current automatic compensation circuit in the first embodiment of the utility model;

[0024] Figure 3 This is a schematic diagram of the structure of the successive comparison control logic module in the first embodiment of the present utility model;

[0025] Figure 4 This is a timing control diagram of the current automatic compensation circuit in the second embodiment of the utility model. DETAILED DESCRIPTION

[0026] The following is a description of a current automatic compensation circuit of the utility model in conjunction with a schematic diagram, wherein a preferred embodiment of the utility model is shown. It should be understood that those skilled in the art can modify the utility model described herein and still achieve the beneficial effects of the utility model. Therefore, the following description should be understood as being widely known to those skilled in the art and not as a limitation to the utility model.

[0027] The present invention is described in more detail in the following paragraphs by way of example with reference to the accompanying drawings. The advantages and features of the present invention will become more apparent from the following description. It should be noted that the accompanying drawings are in very simplified form and in non-precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0028] Embodiment 1

[0029] This embodiment provides a current automatic compensation circuit. Figure 1-Figure 3 , including: comparison module, successive comparison control logic module and compensation module.

[0030] The current to be compensated I3 is input into the comparison module; the successive comparison control logic module is used to control the comparison module to perform current comparison and obtain comparison results at different times, and to control the compensation output current I1 of the compensation module according to the comparison results, and the current to be compensated I3 changes according to the compensation output current I1.

[0031] like Figure 2 As shown, the current I2 to be compensated will be copied as the current I3 to be compensated within the system automatic start compensation time and input into the comparison module. In this embodiment, the current I2 to be compensated is copied by a common current mirror module.

[0032] Please continue to refer to Figure 2As shown, the comparison module includes a comparison node N1 and N-level pull-down currents, and the current to be compensated is input to the comparison node N1; the N-level pull-down currents are connected in parallel to the comparison node N1, and are all controlled to be connected and disconnected by the successive comparison control logic module; wherein N is the number of basic compensation bits, which is a positive integer.

[0033] The magnitude of each pull-down current is 1 / 2^(3-N)*In, where In is a set value. For example, taking N=8 as an example, there are 8 pull-down currents of 0.25*In, 0.5*In, 1*In, 2*In, 4*In, 8*In, 16*In and 32*In.

[0034] In addition, the comparison module includes an even number of inverters. In a specific example, the number of the inverters may be 2, namely, the inverter INV1 and the inverter INV2 shown in the figure.

[0035] The sum I4 of the current injected into the comparison node N1 (ie, the current to be compensated I3) and the pull-down current in the comparison module will make the comparison node N1 high or low. For example, if I3 is greater than I4, it is high, and if I3 is less than I4, it is low.

[0036] The comparison result (ie, the high or low of the comparison node N1 ) is output as a first logic level CMP_RST to the successive comparison control logic module after passing through an inverter.

[0037] Please refer to Figure 3 The successive comparison control logic module includes N+1 cores, each of the N+1 cores includes a first trigger, and the first trigger refers to a trigger in the first core. Exemplarily, the first core is marked as CORE0, the second core is marked as CORE1, ..., and the N+1th core is marked as COREN.

[0038] The CK terminal of each of the first triggers is connected to the signal CK; the output of the Q terminal of the first trigger in the previous core is used as the input of the D terminal of the first trigger in the next core. Specifically, the output of the Q terminal of the first trigger in the N+1th core COREN is used as the input of the D terminal of the first trigger in the Nth core CORE(N-1), ..., the output of the Q terminal of the first trigger in the second core CORE1 is used as the input of the D terminal of the first trigger in the first core CORE0.

[0039] The D terminal of the first trigger in the N+1th core COREN is connected to a logic high level; the Q terminal of the first trigger in the first core CORE0 outputs a signal DONE.

[0040] Furthermore, the successive comparison control logic module further includes N groups of logic gates, the first to N groups of logic gates correspond to the first to N cores; the first input end of the logic gate is the output signal of the first trigger Q in the previous core, and the second input end of the logic gate is the output signal of the first trigger Q in the core corresponding to the logic gate of the current group. <n-1:0>It is a writing method of combining N groups of logic gates. Specifically, the first input end of the Nth group of logic gates is the Q-end output signal SEL of the N+1th core COREN. <n-1>The second input terminal is the Q-terminal output signal SEL of the Nth core CORE (N-1) <n-2>, ..., the first input end of the first group of logic gates is the Q-end output signal SEL of the second core CORE1 <0> The second input terminal is the Q terminal output signal DONE of the first core CORE0. Correspondingly, the output signal of the Nth group of logic gates is recorded as DWSEL <n-1>, the output signal of the N-1th group of logic gates is recorded as DWSEL <n-2>, ..., the output signal of the first group of logic gates is recorded as DWSEL <0> , output signal DWSEL <n-1:0>will be transferred to the comparison module.

[0041] The logic gate includes, for example, a NOT gate and an AND gate, wherein the NOT gate is connected to the second input terminal of the AND gate for receiving the corresponding Q-terminal output signal.

[0042] Furthermore, each of the Nth core to the 1st core includes a second trigger; the CK terminal of each of the second triggers is connected to the Q terminal of the first trigger in the core where it is located, and the D terminal is connected to the signal CMP_RST, and the signal CMP_RST is a comparison result of the current to be compensated and the N-speed pull-down current at the comparison node N1.

[0043] The Q terminal of each second flip-flop outputs a latch signal DATA <n-1:0>, the latch signal DATA <n-1:0>The latch signal DATA <n-1:0>The input to the compensation module is used to control the size of the compensation output current I1.

[0044] Furthermore, both the first trigger and the second trigger are D triggers.

[0045] Please continue to refer to Figure 2 As shown, the compensation module includes N-level compensation currents; one end of the N-level compensation currents is connected to VDDA, and the other end is connected to a compensation current access point; the compensation module controls the connection and disconnection of the N-level compensation currents according to the comparison result.

[0046] Furthermore, the magnitude of each compensation current is 1 / 2^(3-N)*Ip, where Ip is a set value. Specifically, taking N=8 as an example, there are 8 compensation currents, namely 0.25*Ip, 0.5*Ip, 1*Ip, 2*Ip, 4*Ip, 8*Ip, 16*Ip and 32*Ip.

[0047] The automatic current compensation circuit provided in this embodiment can automatically complete the current compensation through a reference clock, which simplifies the operation difficulty of the circuit. At the same time, compared with manual compensation of current, it is more time-saving and labor-saving, and more timely and accurate. It can reduce the operating steps to save time, and can transmit the compensation data to the system in real time, which facilitates data processing and improves the system work efficiency.

[0048] Embodiment 2

[0049] In this example, based on the current automatic compensation circuit provided in the first embodiment, a current automatic compensation method is provided for compensating current.

[0050] The current to be compensated I3 will be copied to the comparison module within the system's automatic compensation time, and then controlled by the successive comparison control logic module to perform the next comparison based on the comparison result, and so on and so forth until an accurate comparison result is achieved. Finally, the compensation module is controlled to output a suitable compensation current I1, and the comparison module and the successive comparison control logic module are turned off.

[0051] Please refer to Figure 2 , Figure 3 and Figure 4 , the following will take N = 8 as an example to introduce the specific control process:

[0052] (1) The system issues a current automatic compensation instruction, the switch S1 is turned on, and I0=18.35*In. In this example, In=Ip=1μA. At this time, DATA<7:0> output by the second trigger and DWSEL<7:0> output by the logic gate are both 0. Therefore, the compensation output current I1 is 0, and the sum of the pull-down current I4 is 0. I2=I3=I0-I1=18.35*In=18.35μA. Since I4 is 0, I3 will charge the comparison node N1, causing the voltage of the comparison node N1 to be VDDA (logic high level).

[0053] (2) At the first moment, that is, when the first rising edge of the reference clock signal CK arrives, the output signal SEL of the first flip-flop in the ninth core CORE8 in the successive comparison control logic <7> becomes high, the output signal SEL of the first flip-flop in the eighth core CORE7 <6> is low, and is high after being inverted. <7> with SEL <6> The inverted signal is input to the AND gate. At this time, DWSEL <7> is high, the 8th pull-down current 32*In in the control comparison module is compared with the current to be compensated I3. When In takes 1μA, the 8th pull-down current is greater than the current to be compensated I3, that is, I4>I3, so after a period of time, the comparison node N1 becomes a low level, and the comparison result CMP_RST is 0. Since the capacitor here is only the parasitic capacitance of the PMOS, the time for the comparison node N1 to become a low level is usually at the nanosecond level.

[0054] (3) At the second moment, that is, when the second rising edge of the reference clock signal CK arrives, SEL <7> For high, SEL <6> is also high, then we know that DWSEL <7> becomes low, and the second trigger output terminal in the 8th core CORE7 latches the first comparison result CMP_RST, that is, DATA <7> =0, at this time, the control switch in the compensation module is not turned on, I1 = 0. Furthermore, due to SEL <6> For high, SEL <5> When low, DWSEL <6> becomes high. At this time, the 7th pull-down current in the comparison module is 16*In=16μA, that is, I4=16μA, I3=I0-I1=I0-0=18.35μA, and it can be seen that I4<I3, so the comparison node N1 becomes high level after a period of time. Similarly, the time for the comparison node N1 to become high level is usually in nanoseconds.

[0055] (4) When the third rising edge of the reference clock signal arrives, the second comparison result CMP_RST is latched, that is, DATA <6> is 1, at this time, the corresponding 7th compensation current 16*Ip in the compensation module is turned on for compensation. <5> For high, SEL <4> is low, therefore, the 6th pull-down current is also turned on, and it is calculated that I3=I0-I1=I0-32μA*DATA <7> -16μA*DATA <6> =2.35μA, I4=8*In=8μA, I4>I3, so the comparison node N1 is low after a period of time.

[0056] (5) When the fourth rising edge of the reference clock signal CK arrives, the third comparison result CMP_RST is latched, that is, DATA <5> is 0. According to the comparison result, the 6th compensation current does not need to be turned on. At the same time, the 5th pull-down current is also turned on. It is calculated that I3 = I0-I1 = I0-32μA*DATA <7> -16μA*DATA <6> -8μA*DATA <5> =2.35μA, I4=4*In=4μA, I4>I3, so the comparison node N1 is low.

[0057] (7) Repeat this cycle to get DATA <4> 0, DATA <3> 1, DATA <2> 0, DATA <1> is 0, determines whether compensation is needed based on the comparison result, and latches the comparison result.

[0058] (8) When the ninth rising edge of the reference clock signal CK arrives, the last comparison result CMP_RST, i.e., DATA <0> is 1. At the same time, the DONE signal of the first core CORE0 in the successive comparison control logic changes from low to high, the current automatic compensation process is completed, and the switch S1 is turned off. Therefore, DATA<7:0>=0100 1001 is recorded to facilitate subsequent calculations.

[0059] The entire process of automatic current compensation takes 9 clock cycles, or about 180 μs, which is much shorter than manual adjustment.

[0060] It is understandable that the compensation period is not limited to the above examples, and the compensation period can be increased or shortened according to actual conditions. In addition, the values ​​of In and Ip can also be set according to actual conditions to achieve a larger or smaller current compensation range.

[0061] In summary, the automatic current compensation circuit provided by the utility model is used for automatic current compensation. The entire automatic process only takes N reference clock cycles to complete the automatic current compensation. Compared with manual compensation, it takes less time and improves the efficiency of current compensation.

[0062] The utility model discloses an automatic current compensation circuit, which comprises a comparison module, a successive comparison control logic module and a compensation module; the comparison module inputs a current to be compensated; the successive comparison control logic module is used to control the comparison module to perform current comparison at different times and obtain a comparison result; and the compensation output current of the compensation module is controlled according to the comparison result, the current to be compensated changes according to the compensation output current, and the automatic compensation process only takes N reference clock cycles to complete the automatic compensation of the current. Compared with manual compensation of the current, the current compensation performed by the automatic current compensation circuit provided by the utility model is more time-saving and labor-saving, and more timely and accurate, thereby improving the efficiency of current compensation.

[0063] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A current automatic compensation circuit, characterized in that: include: Comparison module, successive comparison control logic module and compensation module; The current to be compensated is input into the comparison module; The successive comparison control logic module is used to control the comparison module to perform current comparison and obtain comparison results at different times; and controlling a compensation output current of the compensation module according to the comparison result, wherein the current to be compensated varies according to the compensation output current.

2. The automatic current compensation circuit according to claim 1, characterized in that: The comparison module includes a comparison node and N pull-down currents, and the current to be compensated is input to the comparison node; the N pull-down currents are connected in parallel to the comparison node, and are all controlled to be turned on and off by the successive comparison control logic module; wherein N is the basic compensation bit number, which is a positive integer.

3. The current automatic compensation circuit according to claim 2, characterized in that: The compensation module includes N-level compensation currents; one end of the N-level compensation currents is connected to VDDA, and the other end is connected to a compensation current access point; and the connection and disconnection of the N-level compensation currents are controlled according to the comparison result.

4. The automatic current compensation circuit according to claim 3, characterized in that: The magnitude of the compensation current in each gear is 1 / 2^(3-N)*Ip, and the magnitude of the pull-down current in each gear is 1 / 2^(3-N)*In, where Ip and In are set values.

5. The automatic current compensation circuit according to claim 2, characterized in that: The successive comparison control logic module includes N+1 cores; each of the N+1 cores includes a first trigger; The CK terminal of each of the first triggers is connected to the signal CK; the output of the Q terminal of the first trigger in the previous core is used as the input of the D terminal of the first trigger in the next core; The D terminal of the first flip-flop in the N+1th core is connected to a logic high level; The Q terminal of the first flip-flop in the first core outputs a signal DONE.

6. The automatic current compensation circuit according to claim 5, characterized in that: The successive comparison control logic module also includes N groups of logic gates, and the 1st to Nth groups of logic gates correspond to the 1st to Nth cores; the first input end of the logic gate is the output signal of the first trigger Q in the previous core, and the second input end of the logic gate is the output signal of the first trigger Q in the core corresponding to the logic gate of the current group.

7. The automatic current compensation circuit according to claim 6, characterized in that: The Nth core to the first core all include a second trigger; The CK terminal of each second trigger is connected to the Q terminal of the first trigger in the core where the second trigger is located, and the D terminal is connected to the signal CMP_RST, and the signal CMP_RST is the comparison result of the current to be compensated and the N-level pull-down current at the comparison node; The Q end of each of the second triggers outputs a latch signal, and the latch signal is used to latch the comparison result.

8. The current automatic compensation circuit according to claim 7, characterized in that: The first flip-flop and the second flip-flop are both D flip-flops.

9. The automatic current compensation circuit according to claim 1, characterized in that: It also includes a current mirror module, which is used to mirror the current to be compensated and input it into the comparison module.