A Current-to-Digital Converter
20230179221 · 2023-06-08
Inventors
Cpc classification
H03M3/426
ELECTRICITY
H03M1/46
ELECTRICITY
International classification
Abstract
This disclosure relates to a current-to-digital converter suitable for wide-ranging current sensing applications. In particular, the current-to-digital converter comprises a delta-sigma analogue-to-digital converter which utilizes a successive-approximation-register to control a modulation of the sensed current so that the digital conversion of the modulated sensed current by the delta-sigma analogue-to-digital converter may be done with high precision.
Claims
1. A current-to-digital converter module comprising: a modulation switch, SW.sub.K, configured to modulate an input current, I.sub.IN, to produce a scaled current, I.sub.INK, wherein the switch SW.sub.K is controlled by a modulation clock F.sub.K; a delta-sigma analogue-to-digital converter, ΔΣ ADC, comprising an integrator coupled to a hysteresis comparator that is coupled to a D-type Flip-Flop being driven by a master clock, F.sub.S, whereby an inverting output from the D-type Flip-Flop is coupled to an inverting input of the integrator using a 1-bit feedback current digital-to-analogue converter, DAC, the ΔΣ ADC being configured to generate digital outputs at a non-inverting output and the inverting output of the D-type Flip-Flop based on a balanced current, I.sub.BAL, received at the inverting input of the integrator, whereby the balanced current I.sub.BAL comprises a summation of the scaled current I.sub.INK with a reference current, I.sub.REF, produced by the 1-bit feedback current DAC; a successive-approximation-register (SAR) control logic configured to generate control signals based on the non-inverting outputs from the D-type Flip-Flop, a reset clock signal and the master clock F.sub.S; and a clock generator module that is driven by the master clock, F.sub.S, being configured to use the control signals from the SAR control logic to determine an optimal modulation clock F.sub.K for controlling the switch SW.sub.K.
2. The module according to claim 1 wherein the modulation switch SW.sub.K comprises: a transmission gate switch that is body biased with a reference voltage V.sub.CM when the switch is at an OFF-state, wherein the reference voltage V.sub.CM is used as the reference voltage at the non-inverting inputs of the integrator and hysteresis comparator of the ΔΣ ADC.
3. The module according to claim 1 wherein the integrator of the ΔΣ ADC comprises: a two-stage integrator circuit having a first and a second stage, wherein a compensation capacitor C.sub.C couples a low impedance node of the first stage to an output of the second stage.
4. The module according to claim 1 wherein the hysteresis comparator of the ΔΣ ADC comprises: an inverter based hysteresis comparator circuit having an inverter provided at the input of the compactor circuit, wherein a threshold voltage of the inverter is similar as threshold voltages of transistors used in the comparator circuit.
5. The module according to claim 1 wherein the 1-bit feedback current DAC comprises: a cascaded current mirror circuit.
6. The module according to claim 1 wherein the clock generator module comprises: a plurality of D-type Flip Flop, logic AND gate pairs and a logic OR gate, configured in a frequency divider configuration to generate a modulation pulse.
7. A method for converting current to digital signals using a current-to-digital converter module having a modulation switch SW.sub.K, a delta-sigma analogue-to-digital converter, ΔΣ ADC, comprising an integrator coupled to a hysteresis comparator that is coupled to a D-type Flip-Flop being driven by a master clock, H, a successive-approximation-register (SAR) control logic, and a clock generator module that is driven by the master clock, F.sub.S, the method comprising: modulating, using the modulation switch, SW.sub.K, an input current, I.sub.IN, to produce a scaled current, I.sub.INK, wherein the switch SW.sub.K is controlled by a modulation clock F.sub.K; coupling an inverting output from the D-type Flip-Flop an inverting input of the integrator using a 1-bit feedback current digital-to-analogue converter, DAC, generating, using the ΔΣ ADC, digital outputs at a non-inverting output and the inverting output of the D-type Flip-Flop based on a balanced current, I.sub.BAL, received at the inverting input of the integrator, whereby the balanced current I.sub.BAL comprises a summation of the scaled current INK with a reference current, I.sub.REF, produced by the 1-bit feedback current DAC; generating, using the SAR control logic, control signals based on the non-inverting outputs from the D-type Flip-Flop, a reset clock signal and the master clock F.sub.S; and determining, using a clock generator module, based on the control signals from the SAR control logic an optimal modulation clock F.sub.K for controlling the switch SW.sub.K.
8. The method according to claim 7 wherein the modulation switch SW.sub.K comprises: a transmission gate switch that is body biased with a reference voltage V.sub.CM when the switch is at an OFF-state, wherein the reference voltage V.sub.CM is used as the reference voltage at the non-inverting inputs of the integrator and hysteresis comparator of the ΔΣ ADC.
9. The method according to claim 7 wherein the integrator of the ΔΣ ADC comprises: a two-stage integrator circuit having a first and a second stage, wherein a compensation capacitor C.sub.C couples a low impedance node of the first stage to an output of the second stage.
10. The method according to claim 7 wherein the hysteresis comparator of the ΔΣ ADC comprises: an inverter based hysteresis comparator circuit having an inverter provided at the input of the compactor circuit, wherein a threshold voltage of the inverter is similar as threshold voltages of transistors used in the comparator circuit.
11. The method according to claim 7 wherein the 1-bit feedback current DAC comprises a cascaded current mirror circuit.
12. The method according to claim 7 wherein the clock generator module comprises: a plurality of D-type Flip Flop, logic AND gate pairs and a logic OR gate, configured in a frequency divider configuration to generate a modulation pulse.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above advantages and features in accordance with this invention are described in the following detailed description and are shown in the following drawings:
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
DETAILED DESCRIPTION
[0039] This invention relates to a current-to-digital converter suitable for a wide range of current sensing applications. In particular, the current-to-digital converter comprises a delta-sigma analogue-to-digital converter (ΔΣ ADC), which utilizes a successive-approximation-register (SAR) control logic to generate a modulation clock using a clock generator module, whereby the modulation clock is used to control the modulation of a modulation switch SW.sub.K. A scaled current INK is then subsequently generated by modulating the sensed input current I.sub.IN. The scaled current INK is then summed with a reference current I.sub.REF to produce a balanced current I.sub.BAL which is then used as the input to the ΔΣ ADC circuit. This ensures that the digital conversion of the modulated sensed current by the ΔΣ ADC circuit may be done with high precision.
[0040] In accordance with an embodiment of the invention, a system level block diagram of the current-to-digital converter 100 is illustrated in
[0041] In operation, it can be seen that when an input current is sensed by converter 100, the input current I.sub.IN is firstly scaled by a scale factor K to produce scaled current I.sub.INK. This is done using modulation switch SW.sub.K which is in turn controlled by a modulation clock F.sub.K whose duty cycle is determined by clock generator module 130. The scale factor K is defined as the ratio of T.sub.p/T.sub.k, where T.sub.k denotes the period when the modulation switch SW.sub.K is switched “ON”, and T.sub.p represents the period when the modulation switch SW.sub.K is switched “OFF”. As a result, the average current received by the input of the ΔΣ ADC circuit 102 of current-to-digital converter 100 is scaled down by a scale factor K. This is advantageous as it significantly reduces the on-chip reference current of current-to-digital converter 100.
[0042] The scaled current I.sub.INK is then summed with a reference current I.sub.REF at the input of the ΔΣ ADC circuit 102 to produce a balanced current I.sub.BAL. The balanced current I.sub.BAL will then be integrated using integrator 105 to produce an output voltage. It should be noted that integrator 105 may be controlled using a reset clock RST. In particular, for each clock cycle, the balanced current I.sub.BAL will be integrated at integrating capacitor CANT, which is provided between an output of integrator 105 and an inverting input of integrator 105. As a result, the output voltage from integrator 105 may be defined as V.sub.n where n represents the n.sup.th clock cycle, i.e. n=1, 2 . . . N. Comparator 110 then receives the output voltage V.sub.n from integrator 105 and compares this voltage with a reference voltage V.sub.CM to produce a digital output D.sub.n which is defined as D.sub.n∈{−1,1}. The output voltage V.sub.n may then be defined as follows:
where Δ is defined as the hysteresis level of comparator 110 and F.sub.S is defined as the master clock of converter 100.
[0043] From the equations above, it is shown that V.sub.n is bounded to After N conversion cycles have passed, a hysteresis residue will occur and this hysteresis value is defined by
The value of this residue is larger than that of a conventional non-hysteresis modulator as such, in accordance with embodiments of the invention, comparator 110 may comprise a tune-able hysteresis comparator whose hysteresis range may be adjusted to produce the required resolution.
[0044] The digital output D.sub.n is then provided to an input of D-type Flip-Flop 115. Flip-Flop 115 uses digital output D.sub.n to generate bit streams B.sub.n and
[0045] When the bit stream B.sub.n, master clock F.sub.S, and reset clock RST are provided to SAR control logic 125, SAR control logic 125 will determine the scaling factor K by generating a control signal S.sub.0˜S.sub.7 for clock generator module 130 to determine the modulation clock F.sub.K that is to be applied to modulation switch SW.sub.K. Only one signal in S.sub.0˜S.sub.7 will be at logic ‘1’ when the output of comparator changes from ‘0’ to ‘1’, and it is that signal that is used to select one of the corresponding output of F.sub.K_2˜F.sub.K_256 to obtain F.sub.K.
[0046] During the process of determining the scale factor K, the initial scale factor will be based on the most-significant-bit (MSB) ratio of SAR control logic 125 (i.e. K=256). This MSB ratio is then used by clock generator module 130 and master clock F.sub.S to generate the modulation clock F.sub.K. After one clock period of master clock F.sub.S has lapsed, the input current I.sub.IN would have flowed through modulation switch SW.sub.K. The input current I.sub.IN would then be continuously subtracted from the reference current I.sub.REF, as generated by 1-bit current DAC 135, for the remaining cycles of master clock F.sub.S. This in turn causes the output voltage V.sub.n of integrator 105 to increase until the output voltage V.sub.n exceeds an upper threshold voltage of comparator 110 causing the digital output D.sub.n of comparator 110 to change. If no changes occur at the digital output D.sub.n of comparator 110, the MSB ratio of SAR control logic 125 will reduce by one-significant bit, i.e. MSB−1. This is realized by the shifter register via D-type Flip Flop in SAR control logic 125 to make the MSB−1 bit as logic ‘1’, the corresponding bit is used in clock generator module 130 together with master clock F.sub.S to obtain new F.sub.K. This process repeats until the digital output D.sub.n of comparator 110 changes and when this happens, the converter would have determined the optimum modulation clock signal F.sub.K_OPT that matches with the reference current I.sub.REF.
[0047] In accordance with embodiments of the invention, SAR control logic 125, may comprise, but is not limited to, D-type Flip Flops, logic NOT gates, and logic AND gates as illustrated in
[0048] In accordance with embodiments of the invention, clock generator module 130, may comprise, but is not limited to, a frequency divider and a logic AND gate driven by master clock F.sub.S. This ensures that the accuracy of the scaling factor K is high as compared to methods that utilize Process-Voltage-Temperature (PVT) sensitive analogue methods.
[0049] In embodiments of the invention, an exemplary circuit diagram of clock generator module 130 is illustrated in
[0050] The first D-type flip flop of module 130 is D-type flip flop 202, and this flip flop is configured to receive master clock F.sub.S at input port CLK. Logic AND gate 204 is then configured to receive at its two input ports, master clock F.sub.S and the output signal from output port Q of D-type flip flop 202 to produce output signal F.sub.K_2. The next D-type flip flop in this chain is D-type flip flop 212, which is then subsequently configured to receive the output signal from output port Q of D-type flip flop 202 at its input port CLK. Logic AND gate 214 is then configured to receive at its two input ports, the output from logic AND gate 204 (i.e. output signal F.sub.K_2) and the output signal from output port Q of D-type flip flop 212 to produce output signal F.sub.K_4. Similarly, the next D-type flip flop, D-type flip flop 222 is then configured to receive the output signal from output port Q of D-type flip flop 212 at its input port CLK. Logic AND gate 224 is then configured to receive at its two input ports, the output from logic AND gate 214 (i.e. output signal F.sub.K_4) and the output signal from output port Q of D-type flip flop 222 to produce output signal F.sub.K_8.
[0051] A series of similarly configured “daisy-chained” D-type flip flops and logic AND gates (all not shown) are then used to generate output signals F.sub.K_16, F.sub.K_32, F.sub.K_64, and F.sub.K_128. The final D-type flip flop illustrated in this exemplary circuit is D-type flip flop 232, which is configured to receive the output signal from output port Q of a previous D-type flip flop at its input port CLK. The logic AND gate 234 is then configured to receive at its two input ports, the output from a previous logic AND gate (i.e. output signal F.sub.K_128) and the output signal from output port Q of D-type flip flop 232 to produce the output signal F.sub.K_256. The output signals F.sub.K_2, F.sub.K_4, F.sub.K_8, F.sub.K_16, F.sub.K_32, F.sub.K_64, F.sub.K_128 and F.sub.K_256 are then provided to the input port D of another 8 D-type flip flops correspondingly and control signals S.sub.0, S.sub.1, S.sub.2, S.sub.3, S.sub.4, S.sub.5, S.sub.6, S.sub.7 from the SAR control logic 125 are provided to the input port CLK of these 8 D-type flip flops accordingly as illustrated in
[0052] In summary, the modulation clock F.sub.K generated by clock generator module 130 may comprise output signals F.sub.K_2, F.sub.K_4, F.sub.K_8, F.sub.K_16, F.sub.K_32, F.sub.K_64, F.sub.K_128 and F.sub.K_256 and is controlled by control signals S.sub.0, S.sub.1, S.sub.2, S.sub.3, S.sub.4, S.sub.5, S.sub.6, S.sub.7 from the SAR control logic 125. The resulting modulation clock F.sub.K generated by the exemplary circuit in
[0053] Once the optimal modulation clock signal has been determined, during the steady state operation of converter 100, bit streams A, and B, will then be provided to a counter/shifter 120. Counter/shifter 120 is provided at the output of ΔΣ ADC circuit 102 and is configured to to act as a decimation filter to produce the digital output D.sub.OUT of current-to-digital converter 100. It should be noted during the operation of converter 100, modulation switch SW.sub.K will be in its OFF-state for most of the conversion cycles if large input currents I.sub.IN are provided.
[0054]
[0055] In operation, modulation switch SW.sub.K and reset switch RST (at integrator 105) will be in an “OFF” state for the larger clock cycles. As a result, an appropriate low leakage switch has to be used for the design of these two switches. Such a low leakage reset switch RST is illustrated in
[0056] The circuit diagram of an integrator that may be used as integrator 105 is illustrated in
[0057]
[0058]
[0059] Current-to-digital converter 100 was then simulated based on a 40 nm CMOS process and it was found that the converter circuit consumed a total power of 20 μW when the voltage supplied was 1.2V. For the simulation, the sampling frequency was set to be 1.28 MHz, and it was found that the slowest scaling frequency was 5 kHz with K=256 when the input current was at its maximum level. The on-chip reference current was set to be 20 nA. The resulting dynamic range for input current ranging between 5 μA to 5 μA is plotted in
[0060] The output power spectrum of the circuit is illustrated in
[0061] The performance of converter 100 was benchmarked against other current-to-digital converters known in the art and the comparative benchmarks are plotted below in Table 1. From the results plotted in Table 1, it can be seen that the digital-intensive designs in Prior Art 1 and 2 were able to achieve low power consumption levels, however, their resolutions were limited due to the flicker noise and mismatches in the DAC respectively. Although the converter in Prior Art 3 was able to cover a wider range, it requires calibration and complicated digital correction. As for the converter in Prior Art 4, as it employs multi-current references to cover the current range, the resolution in a fixed-range is just 78.2 dB. The converter in Prior Art 5 utilizes a current mode continuous-time ΔΣ modulator and as a result, extensively larger power is consumed to suppress the noise floor. Among all the current-to-digital converters in the prior art, only converter 100 was able to achieve a sensing range of several pA to μA within tens of microwatt power.
TABLE-US-00001 TABLE 1 Parameters Prior Art 1 Prior Art 2 Prior Art 3 Prior Art 4 Prior Art 5 This work Architecture ΔΣ R
ΔΣ Hourglass ΔΣ ΔΣ VCO + ΔΣ SAR + ΔΣ Process (μm) 0.35 0.18 0.1
0.35 0.18 0.
4 Supply Voltage (V) ±1.5 1.8 1.
1.5
/1.8
.2 Power (μW) 67
0
0.3 295 16.8 80 22 Sensing range (A)
n 1.1
0.1p to 10
200
to 3p 1
to 4p 5p to 5
On-ch
T
(μA) 0.001 1 10
.2 4 0.02 Resolution (
A) 200 123 100 100000 1000000 110 Fixed-scale DR (dB) 60 7
.2 104 88.9 7
11
Cross-scale DR (dB) N.A 139 1
0 N.A 7
>164
NL(
A) N.A N.A 70 100
00 30 Conv. time for
(
) 0.1 100 400 4 400 200 Calibration No No Yes No No No
indicates data missing or illegible when filed
[0062] The above is a description of embodiments of a circuit and method in accordance with the present invention as set forth in the following claims. It is envisioned that others may and will design alternatives that fall within the scope of the following claims.