The present disclosure is generally related to voltage-to-current converters, and more particularly to voltage-to-current converters with feedback for calibration.
A voltage-to-current converter, also commonly called a transconductance amplifier, is a circuit configured to perform a conversion of an input voltage signal into an analog output current signal. Such voltage-to-current converters are used in a large variety of circuits, including active filters, analog-to-digital converters, delta-sigma modulators, multipliers, oscillators, integrators, mixers, and other circuits.
Linearity of such voltage-to-current converters over a wide range of input voltages is desirable. Specifically, in order to satisfy a signal-to-noise and distortion ratio required by a system, the linear input/output range should be wide and maintain a predetermined input/output gain within a desired frequency range. In particular, when the power supply is used to provide an input to a transconductance stage, power supply drift, such as that caused by battery discharge, can cause the transconductance stage to go out of range, affecting the linearity of the transconductor stage.
In the following description, the use of the same reference numerals in different drawings indicates similar or identical items.
Embodiments of a transconductance amplifier with background calibration are described below that are configurable to convert a voltage signal with noise into a current signal with better than point-one percent (0.1%) linearity even when the signal itself slowly drifts between voltages (such as from 6.6 Volts to 3 Volts due to battery discharge). This transconductance amplifier can be used to replace a standard transconductance amplifier and/or, in some instances, can be used to replace a high pass filter to provide substantially linear operation over a wide range of amplitudes. In a particular embodiment described below with respect to
Driver circuitry 108 is configured to receive power from supply voltage (VP). Unfortunately, the supply voltage (VP) can have variations in the frequency band of interest that lead to amplitude errors in the PWM output signals, and these errors can translate into distortion and noise in the audio output heard by a user for Class D digital audio switching amplifiers. To compensate for these amplitude errors, amplitude error prediction circuitry 110 is connected to the output for receiving the PWM output signals and is configured to generate a predictive error correction signal 111, which is provided to the width adjustment circuitry 106 to compensate the error by adjusting the width of the pulses. Further, the supply voltage (VP) can experience slow amplitude drift (relatively low frequency variations), which can be due, for example, to the discharge of the battery power supply and which can also contribute to amplitude errors in the PWM output signals. However, this error is not in the audio band, and therefore it does not translate into distortion or noise. As a result, the error does not need to be compensated. PFC circuitry 104 includes a voltage-to-current converter with feedback 112, which is configured to filter such low frequency variations.
The amplitude error prediction circuitry 110 can use the voltage-to-current converter with feedback 112 as a high pass filter and/or as part of a transconductance stage for producing the predictive error correction signal 111. In particular, the amplitude error prediction circuitry 110 receives the supply voltage (VP) and the PWM input signals (PWREF) from the PWM controller 104, processes the PWM input signals and the supply voltage (VP) to produce the error correction signal 111. The width adjustment circuitry 106 and the amplitude error prediction circuitry 110 form the PFC circuitry 104. If desired, optional feedback processing circuitry 114 can also be provided. For example, a feedback signal from PWM output signal (PWMOUT) and a reference signal from the input (PWREF) can be provided to the feedback processing circuitry 114, which can compare the input to the feedback and provide a feedback error correction signal to the width adjustment circuitry 106 within the PFC circuitry 104. This allows the PFC circuitry 104 to be used in conjunction with feedback systems.
While the embodiment shown in
While
The embodiments of the switching amplifiers 100 and 200 depicted in
PGA 302 receives a supply voltage (VP) (or some other voltage signal) and multiplies the supply voltage (VP) by a gain (G) that is a function of a digital code (x) received at the control input. In an embodiment, the digital code (x) is a multi-bit word configured to adjust the gain of PGA 302 to produce a scaled voltage signal. The transconductance stage 304 converts the scaled voltage signal into a current (IP1), which may be a supply current that can be provided to associated circuitry, such as the amplitude error prediction circuitry 110 depicted in
Further, the transconductance stage 304 copies the supply current (IP1) to produce a second current (IP2), which is applied to a sense resistor 306 to generate a sense voltage (VR). The sense voltage can be combined with an externally generated reference voltage (VREF) at a summing device 306 to produce an analog error (ea). The analog error (ea) is provided to an analog-to-digital converter (ADC) 310, which converts the analog error (ea) into a digital error (ed) and provides the digital error (ed) to loop filter 312. Loop filter 312 accumulates the digital error (ed) over time and generates a digital code (x), which controls the gain (G) of PGA 302.
In the illustrated embodiment, the gain bandwidth of the loop filter 312 determines the system bandwidth. Any change in the voltage signal (VP) within the system bandwidth is invisible to the transconductance stage 304, since the loop filter 312 will adjust the gain (G) to maintain the analog error (ea) at approximately zero and hence keep the scaled voltage signal at the input of the transconductance stage 304 substantially constant. Thus, in an embodiment, the transconductance stage 304 can be substantially optimized to track relatively fast but small voltage signal changes, while the digital feedback loop provided by ADC 310 and loop filter 310 ensures that a relatively slow but large drift in amplitude of the voltage signal (VP) is compensated.
In the illustrated embodiment, PGA 302 is responsive to a multi-bit control word, such as a five-bit control word (x), and the ADC 310 has a resolution of one-bit. In a particular embodiment, ADC 310 can be implemented as a comparator. Further, in some embodiments, PGA 302 can be implemented as an attenuator using a simple resistive divider circuit to receive the input voltage signal.
The transconductance stage 304 is an active circuit, and its offsets directly affect the linearity of the supply current (IP1) and the second current (IP2). ADC 310 and loop filter 312 cooperate to provide an effective transconductance (GMeff) that is proportional to one over the voltage signal (VP) according to the following equation:
Thus, voltage-to-current converter 112 achieves a desired characteristic, namely that the amount of correction of the pulse width is also proportional to the inverse of the voltage signal (VP). If the voltage signal is the supply voltage, then the amount of correction is proportional to the inverse of the supply voltage. If the gain of the PGA 302 is known, it is possible to calculate the average of the voltage signal (VP
Voltage-to-current converter 112 converts a voltage signal, such as an internal representation of the power supply into a current signal with better than 0.1% linearity where the power supply can slowly drift from a first voltage level to a second voltage level. In a particular example, where the power supply is a battery and where the battery supplied voltage level decreases slowly over time, for example, from 6.6 Volts to 3 Volts, the feedback compensation circuit is configured to modify the signal pulse width to provide substantial linearity even with power supply drift.
The voltage-to-current converter 112 provides such linearity with less power consumption and less circuit area than a converter using a “brute force” digital approach requiring an analog-to-digital converter and a digital-to-analog converter with more than 12-bit resolution of combined Signal to Noise-plus-Distortion Ratio (SNDR). Further, voltage-to-current converter 112 provides such linearity with less power consumption and less circuit area than a converter using a “brute force” analog approach that would require 60 dB of linearity over a very wide range.
In the illustrated embodiment, the accumulator in the feedback path can create limit cycles causing the digital code word (x) to continuously change, even if the voltage signal (VP) is not changing. In such an instance, it may be desirable to replace the accumulator in the feedback path with an accumulate and dump block 404 and to inject noise, using dither circuit 402, into the summing device 308 along with the reference voltage (VREF) to enhance the resolution of the ADC 310 and loop filter 312. An example of such a modification is described below with respect to
While the discussion of
In some embodiments, voltage-to-current converter 112, described-above with respect to
Circuit 500 includes ramp generators 502 and 504. Ramp generator 502 receives the PWREF(T) signal and generates a ramp signal based on the PWREF(T) signal rising edge and the supply voltage (VP(dc+ac)) signal. Ramp generator 502 is connected to a first input of a comparator 510, which includes a second input connected to the amplitude error prediction circuitry 110 and an output connected to an inverter 512. Inverter 512 includes an output connected to an S-input of an output set-reset (S-R) latch 514. Output S-R latch 514 includes a Q-output for providing a compensated output signal (PW(T−ΔT)), an R-input, and a Q-B-output for providing an inverted version of the compensated output signal. The Q-output is connected to ramp generator 502. The Q-B output is connected to ramp generator 504.
Ramp generator 504 includes an input for receiving an inverted version of the PWREF(T) signal from inverter 506. Ramp generator 504 generates a ramp signal and provides the ramp signal to a first input of comparator 516, which includes a second input connected to amplitude error prediction circuitry 110 and an output connected to inverter 518. Inverter 518 includes an output connected to the R-input of output S-R latch 514.
Amplitude error prediction circuitry 110 includes voltage-to-current converter with feedback 112, which receives the supply voltage (VP(dc+ac)). The supply voltage (VP(dc+ac)) includes both ac and dc noise components. Voltage-to-current converter with feedback 112 produces a current (IP1) based on the supply voltage (VP(dc+ac)) and provides the current (IP1) to an input of a summing device 520. Summing device 520 includes a second input for receiving a reference current (IREF). Summing device 520 subtracts the reference current (IREF) from the current (IP1) to generate a difference current and provides the difference current to weighted integrate sample/hold and dump circuit 522. Weighted integrate sample/hold and dump circuit 522 processes the analog error (ea) over time in conjunction with the PWREF(T) signal to produce an output and provide the output to a sample/hold circuit 524. Sample/hold circuit 524 provides the output to summing devices 526 and 528. The voltage-to-current converter with feedback 112 additionally supplies a copy of the current (IP1) to each of the ramp generators 502 and 504.
Summing device 526 adds the output signal to a common mode threshold voltage (VtCM) signal to produce a first threshold voltage and applies the first threshold voltage to the second input of comparator 510. The common mode threshold voltage (VtCM) signal may be generated on chip or can be received from an external source, such as a host system. Summing device 528 subtracts the common mode threshold voltage (VtCM) signal from the output signal from sample/hold circuit 524 to produce a second threshold voltage and provides the second threshold voltage to the second input of comparator 516.
Comparators 510 and 516 compare the ramp signals from ramp generators 502 and 504 to the first and second voltage thresholds, respectively. When the ramp signals exceed their respective threshold voltages, the comparators 510 and 516 generate pulses.
In the illustrated embodiment, ramp generator 502 and comparator 510 cooperate to delay the rising edge of the uncompensated PWREF(T) signal and the ramp generator 504 and comparator 516 cooperate to delay the falling edge of the uncompensated PWREF(T) signal. Output S-R latch 514 transitions in response to the delayed edges, resulting in an output pulse (PW(T−ΔT)) with a rising edge delayed by τ1+τdr, and a falling edge delayed by τ1+τdf, where τ1 is the bias latency, where τdr is the rising edge delay, and where τdf is the falling edge delay.
In the illustrated embodiment, the non-inverted output (Q) of the S-R latch 514 is the compensated PW that is provided to the driver circuitry 108 in
In operation, the threshold voltages include a prediction of the relatively high frequency power supply noise (i.e., the ac components of the supply voltage (VP)) weighted by the pulse width using the weighted integrate sample/hold and dump circuit 522. Summing devices 526 and 528 set a common mode delay for the rising edges and falling edges, respectively.
In the illustrated embodiment, the voltage-to-current converter with feedback 112 operates as a high-pass filter to remove slow but large supply voltage variations from influencing the pulse width while allowing generation of the predictive error correction based on the supply voltage including ac noise components. In general, for simplicity, it is assumed that the pulse width and relatively high frequency voltage components associated with a previous pulse represent good predictors for current values of the pulse width and current values of the high frequency voltage components. In this particular example, voltage-to-current converter with feedback 112 operates as a high pass filter to reject frequencies below approximately 10 Hz and to pass relatively high frequency noise (ac components) of the supply voltage (VP).
While in the illustrated embodiment, the amplitude error prediction circuitry 110 uses the PWREF(T) signal, in alternative embodiments, amplitude error prediction circuitry 110 can be reconfigured to use the pulse-width timing of the compensated PW signal. In another embodiment, the amplitude error prediction circuitry 110 can use a signal provided from an external source, such as a host system (not shown).
As compared to prior art circuits that require a unique transconductance stage for each ramp signal generator and the weighted integrate sample/hold and dump circuit 522, circuit 500 uses a single transconductance stage 112 to generate a current that can be mirrored or otherwise copied to produce currents that are used to drive the various ramp generators. Using single transconductance stage 112 consumes less circuit area and reduces design complexity as compared to circuits that include multiple transconductor stages to drive the ramp generators.
While the embodiment depicted in
Phase detector 602 receives the uncompensated voltage signal (PWREF) 612 and compensated output signal (PW) 614 and determines a delay (Δt) between PWREF 612 and PW 614. The delay (Δt) is provided to integrator 604. Integrator 604 integrates the supply voltage (VP(ac+dc)) including ac and dc components over the delay (Δt). Further, integrator 606 integrates the supply voltage (VP(ac)) with the dc components filtered out over the duration of the input pulse (PWREF).
The summing device subtracts the output of integrator 604 from the output of integrator 606 and provides the difference, which corresponds to the pulse width error attributable to the AC noise of the supply voltage (VP(ac+dc)), to loop filter 608. Loop filter 608 accumulates the pulse width error information and to generate a delay adjustment signal for controlling a delay of width adjustment circuit 106. In particular, loop filter 608 is configured to have a large gain in the frequency band of interest, ensuring that the variable delay (D) of width adjustment circuit 106 is adjusted in order to keep the pulse width error approximately equal to zero.
Assuming that the pulse width error is zero, the delay (Δt) can be determined according to the following equation:
In this instance, the delay is proportional to the ac components of the supply voltage (VP), which ac components are compensated by loop filter 608 weighted by the sum of ac as well as dc components.
Circuit 600 provides a number of advantages. First, since the delay is based on the accumulated signal error, the delay stage within the loop filter 608 is not critical. Further, the VP(dc+ac) component can be obtained by a current generated by the voltage-to-current converter with feedback 112 and the reference voltage component (IREF) is substantially equal to VREF/R306. Thus, circuit 600 depicted in
While feedback circuit 600 uses the compensated input signal (PWREF) to integrate the supply voltage (VP(ac)) signal, it should be understood that other signals may be used to control the integration timing. A particular example is described below with respect to
In operation, integrator 604 integrates the dc components of the supply voltage (VP(dc)) over the delay (Δt) to produce a first output, and integrator 606 integrates the ac components (VP(ac)) of the supply voltage over the width of the compensated output signal (PW) 614 to produce a second output. As discussed below with respect to
In the illustrated embodiments of
Signal 802 is a pulse corresponding to the output of the integrator 606 in
Signal 806 corresponds to the output of integrator 606 in
Transconductance circuit 900 includes an operational amplifier 902 including a positive input to receive the scaled voltage signal (Vs) and a negative input connected to a first terminal of a resistor 904, which has a second terminal connected to ground. Operational amplifier 902 also includes an output connected to a gate of transistor 906, which has a drain for carrying a first supply current (IP1) and a source connected to the first terminal of the resistor 904 and to the negative input.
As shown, one or more additional transistors, such as transistor 908 can be connected to transistor 906 to provide a current mirror for producing one or more additional currents that are proportional to the first supply current (IP1), such as second current (IP2). Transistor 908 includes a drain for carrying the second current (IP2), a gate connected to the gate of transistor 906, and a drain connected to a first terminal of resistor 910, which has a second terminal connected to ground. It should be appreciated that additional transistors and resistors may be provided in a similar configuration to provide additional currents, which may be supplied to other circuits, such as the ramp generators 502 and 504 in
In operation, the output of operational amplifier 902 substantially tracks the voltage signal (Vs) at the positive input minus the voltage at the negative input. Thus, fast, but small changes in the voltage signal (Vs) will be provided to the amplifier output in a substantially linear fashion, providing a substantially linear gain that tracks the voltage signal.
In a particular embodiment, the second current (IP2) can be applied to a sense resistor, such as resistor 306 depicted in
Upon review of circuits 900 and 1000, it should be appreciated that the first and second currents (IP1 and IP2) may be substantially identical. However, depending on the implementation, transistors 908 and 1006 may be designed to carry a second current (IP2) that is proportional to the first current (IP1). In a particular embodiment, the second current (IP2) is a copy of the first current (IP1) and additional currents that are proportional to the first current (IP1) are also provided through other legs of the current mirror or through additional amplifier circuits.
In conjunction with the circuits described above with respect to
Although the present invention has been described with reference to preferred embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the scope of the invention.