LOGARITHMIC CURRENT TO VOLTAGE CONVERTERS WITH EMITTER RESISTANCE COMPENSATION
20240250647 ยท 2024-07-25
Inventors
Cpc classification
International classification
H03F1/30
ELECTRICITY
Abstract
Logarithmic current-to-voltage converters with emitter resistance compensation are disclosed herein. In certain embodiments, a logarithmic current-to-voltage converter includes a logarithmic bipolar transistor that converts an input current to a logarithmic voltage, and an emitter resistance compensation circuit that includes a replica of the logarithmic bipolar transistor. The emitter resistance compensation circuit processes a copy of the input current to generate an emitter resistance compensation signal that adjusts the logarithmic voltage to correct for an error introduced by an emitter resistance of the logarithmic bipolar transistor. By providing emitter resistance compensation in this matter, logarithmic current-to-voltage conversion with high accuracy and low log error is achieved.
Claims
1. A logarithmic current to voltage converter comprising: an input terminal configured to receive an input current; a logarithmic bipolar transistor having a collector connected to the input terminal and an emitter configured to generate a logarithmic output voltage; and an emitter resistance compensation circuit comprising a replica of the logarithmic bipolar transistor, wherein the emitter resistance compensation circuit is configured to receive a copy of the input current and to generate a compensation signal operable to adjust the logarithmic voltage to correct for an error arising from an emitter resistance of the logarithmic bipolar transistor.
2. The logarithmic current to voltage converter of claim 1, wherein the compensation signal is proportional to the emitter resistance.
3. The logarithmic current to voltage converter of claim 1, wherein the emitter resistance compensation circuit comprises a pair of bipolar transistors configured to sense a difference voltage that changes based on the emitter resistance of the logarithmic bipolar transistor times a scaled copy of the input current.
4. The logarithmic current to voltage converter of claim 3, wherein the difference voltage is sensed between a pair of scaled replica transistors with a current density ratio of at least four to one.
5. The logarithmic current to voltage converter of claim 4, wherein the difference voltage is corrected by a voltage that is proportional to a natural logarithm of the current density ratio times a thermal voltage.
6. The logarithmic current to voltage converter of claim 3, wherein the pair of bipolar transistors is biased by a current that is proportional to absolute temperature (PTAT).
7. The logarithmic current to voltage converter of claim 1, wherein the copy of the input current is scaled down in size relative to the input current.
8. The logarithmic current to voltage converter of claim 1, wherein the replica of the logarithmic bipolar transistor is scaled down in size relative to the logarithmic bipolar transistor.
9. The logarithmic current to voltage converter of claim 1, further comprising a logarithmic bipolar transistor having a collector configured to receive a reference current, wherein the logarithmic output voltage is taken differentially between the emitter of logarithmic bipolar transistor receiving the input current and an emitter of the logarithmic bipolar transistor receiving the reference current.
10. The logarithmic current to voltage converter of claim 9, further comprising an output amplifier configured to receive the logarithmic output voltage between a first input and a second input.
11. The logarithmic current to voltage converter of claim 9, wherein the compensation signal is a compensation current provided to the first input of the output amplifier.
12. The logarithmic current to voltage converter of claim 1, further comprising a bipolar transistor having a collector connected to the emitter of the logarithmic bipolar transistor.
13. The logarithmic current to voltage converter of claim 12, further comprising a resistor connected between an emitter of the bipolar transistor and a ground voltage.
14. The logarithmic current to voltage converter of claim 12, further comprising a field-effect transistor having a gate connected to the collector of the logarithmic bipolar transistor and a source connected to a base of the bipolar transistor.
15. The logarithmic current to voltage converter of claim 1, further comprising an input current source that generates the input current.
16. A photocurrent detection system comprising: a photodetector configured to generate an input current; and a semiconductor die comprising a logarithmic converter, wherein the logarithmic converter comprises: an input terminal configured to receive the input current; a logarithmic bipolar transistor having a collector connected to the input terminal and an emitter configured to generate a logarithmic output voltage; and an emitter resistance compensation circuit comprising a scaled replica of the logarithmic bipolar transistor, wherein the emitter resistance compensation circuit is configured to receive a scaled copy of the input current and to generate a compensation signal operable to adjust the logarithmic voltage to correct for an error arising from an emitter resistance of the logarithmic bipolar transistor.
17. The photocurrent detection system of claim 16, wherein the compensation signal is proportional to the emitter resistance.
18. The photocurrent detection system of claim 16, wherein the emitter resistance compensation circuit comprises a pair of bipolar transistors configured to sense a difference voltage that changes based on the emitter resistance of the logarithmic bipolar transistor times a scaled copy of the input current.
19. A method of logarithmic current to voltage conversion, the method comprising: providing an input current from an input terminal to a collector of a bipolar transistor; providing a logarithmic output voltage from an emitter of the logarithmic bipolar transistor; and generating a compensation signal using an emitter resistance compensation circuit that comprises a scaled replica of the logarithmic bipolar transistor, including receiving a scaled copy of the input current as an input to the emitter resistance compensation circuit, and adjusting the logarithmic voltage to correct for an error arising from an emitter resistance of the logarithmic bipolar transistor using the compensation signal.
20. The method of claim 19, wherein the compensation signal is proportional to the emitter resistance.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
DETAILED DESCRIPTION
[0020] The following detailed description of embodiments presents various descriptions of specific embodiments of the invention. However, the invention can be embodied in a multitude of different ways. In this description, reference is made to drawings. It will be understood that elements illustrated in the figures are not necessarily drawn to scale. Moreover, it will be understood that certain embodiments can include more elements than illustrated in a drawing and/or a subset of the elements illustrated in a drawing. Further, some embodiments can incorporate any suitable combination of features from two or more drawings.
[0021]
[0022] In the illustrated embodiment, the logarithmic converter 105 includes a FET transistor (NMOS, in this example), a first bipolar transistor NPN_LOG (n-type, in this example), a second bipolar transistor NPN_LV (n-type, in this example), a first DC current source I.sub.DC1, a second DC current source I.sub.DC2, a capacitor C, and a resistor R.
[0023] The NMOS transistor includes a drain that receives a power supply voltage +Vc, and a gate connected to a collector of the first bipolar transistor NPN_LOG and to an input terminal. The input terminal receives an input current I.sub.IN and has an input voltage VIN. The NMOS transistor further includes a source connected to a base of the second bipolar transistor NPN_LV and to the first DC current source I.sub.DC1. Additionally, a base of the first bipolar transistor NPN_LOG receives a reference voltage V.sub.REF and an emitter of the first bipolar transistor NPN_LOG is connected to an output terminal that provides a logarithmic voltage V.sub.LOG. The emitter of the first bipolar transistor NPN_LOG is also connected to the second DC current source I.sub.DC2 and to a collector of the second bipolar transistor NPN_LV. The resistor R is connected between an emitter of the second bipolar transistor NPN_LV and ground, and the capacitor C is connected in parallel with the resistor R.
[0024] As shown in
[0025] In the illustrated embodiment, the capacitor C operates to extend the bandwidth of the collector current over base voltage while the resistor R reduces the loop gain at high levels of the input current I.sub.IN. In certain implementations, the capacitor C and/or the resistor R are controllable (for example, by using a capacitor array that is programmable to control a capacitance value and/or a resistor array that is programmable to control a resistance value).
[0026] The logarithmic converter 105 can achieve a higher speed relative to a configuration using an op-amp to provide feedback. For example, when an op-amp is included in the feedback loop, the additional components introduce extra phase shift that moves the second-order pole downwards in frequency. Although high value compensation capacitors can be added to keep such a feedback loop stable, high capacitance slows the circuit down.
[0027] Furthermore, the logarithmic converter 105 has superior noise performance at low levels of the input current I.sub.IN relative to an implementation with an op-amp in the feedback loop. For example, when an op-amp provides feedback at low input current levels, the bandwidth of the circuit reduces considerably, resulting in the loop gain to drop below 0 dB at a frequency below the baseband bandwidth of the rest of the circuit. This results in the loop not cancelling the bias noise sources in a significant manner. In that case, any noise voltage present on the reference voltage will be amplified significantly by the op-amp.
[0028] In contrast, any noise on the reference voltage V.sub.REF in
[0029]
[0030] As shown in
[0031] In the illustrated embodiment, the DC current from the DC current source I.sub.DC is provided as an input to the third logarithmic converter 105c, which is biased by the reference voltage source V.sub.REF2. Additionally, the buffer 113 buffers the input voltage to the third logarithmic converter 105c. The buffered voltage from the buffer 113 is trimmed by the offset trim circuit 112 to generate a reference voltage V.sub.REF for the first logarithmic converter 105a and the second logarithmic converter 105b.
[0032] By implementing the logarithmic conversion system 120 in this manner, high dynamic range is achieved by setting the voltage reference V.sub.REF in such a manner that the collector-to-emitter voltages (of bipolar transistors NPN_LOG within the converters 105a and 15b) are close to zero. In particular, the logarithmic conversion system 120 applies a DC current to the third logarithmic converter 105c, which is biased with the reference voltage source V.sub.REF2. The precision of the reference voltage source V.sub.REF2 can be relaxed compared to a precision of the reference voltage V.sub.REF since the DC current from the DC current source I.sub.DC can be scaled to be much higher than a minimum value of the input current I.sub.IN.
[0033] With continuing reference to
[0034] Since the DC current from the DC current source I.sub.DC can be chosen to be in the middle of the dynamic range of the input current source I.sub.IN (for instance, 10 ?A), larger deviations around zero of the collector-base voltage of bipolar transistor NPN_LOG has little to no impact on accuracy.
[0035] As shown in
[0036] In the illustrated embodiment, the buffer 113 is a voltage buffer with unity gain (+1). The buffer 113 is applied to the input voltage of the DC channel to bias the input and reference channels (V.sub.REF voltages). The offset trim circuit 112 can be used to correct for mismatches and/or for the difference between the DC current in the DC channel and the lowest input current in the input channel.
[0037] Moreover, in certain embodiments, the offset trim circuit 112 applies a correction voltage, such as a proportional to temperature (PTAT) voltage (for instance, around 50 mV) which is added to the reference voltage V.sub.REF to correct for low input current I.sub.IN and/or high temperature deviations.
[0038] Absent compensation, the logarithmic conversion circuits of
[0039] For example, an optical log converter uses the logarithmic relationship between the base-emitter voltage (V.sub.BE) and the collector current (I.sub.C) of a bipolar junction transistor. Additionally, a log amp that employs this property of a bipolar transistor is referred to as a logarithmic trans-impedance amplifier.
[0040] With reference back to
[0041] Logarithmic current-to-voltage converters with emitter resistance compensation are disclosed herein. In certain embodiments, a logarithmic current-to-voltage converter includes a logarithmic bipolar transistor that converts an input current to a logarithmic voltage, and an emitter resistance compensation circuit that includes a replica of the logarithmic bipolar transistor. The emitter resistance compensation circuit processes a copy of the input current to generate an emitter resistance compensation signal that adjusts the logarithmic voltage to correct for an error introduced by an emitter resistance of the logarithmic bipolar transistor.
[0042] By providing emitter resistance compensation in this matter, logarithmic current-to-voltage conversion with high accuracy and low log error is achieved.
[0043]
[0044] The output amplifier OA1 is biased by various current sources (IB1, IB2, and I.sub.PTLS+I.sub.Re) as shown, and includes input resistors (of resistance R1) at each of the positive and negative inputs, a feedback resistor (of resistance R1) from output to negative input, and a bias resistor (of resistance R1) from the positive input to ground. The output amplifier OA1 serves to output the difference voltage between E and Eref plus an offset to generate a unipolar logarithmic signal, which in certain implementations is processed by an analog temperature compensation circuit to compensate for absolute temperature T.
[0045] The input channel 125a and the reference channel 125b have a configuration similar to that of
[0046] If RE1?0 and RE2?0 an error is introduced causing the V LOG curve to change at the higher end of the input current range. This is caused by a voltage drop over RE1 that lowers the E node voltage at high input currents and thus increases V (Eref?E) by a value of V.sub.Re=RE1.Math.I(INP). Typically, RE2 doesn't introduce a significant error because the internal reference current is sufficiently low not to affect V(Eref?E) much. However, if the reference current is sourced externally, for example in current-ratio applications, RE2 can introduce a significant error as well if I(IREF) is high.
[0047] The logarithmic conversion system 130 includes the emitter resistance compensation circuit 126 to compensate for this effect. In the illustrated embodiment, the emitter resistance compensation circuit 126 includes a scaled replica or copy of the logarithmic bipolar transistor NPN_LOG 1. The scaled replica processes a copy 127 of the input current (IINP), which can be scaled down in value to reduce power dissipation. The emitter resistance compensation circuit 126 processes the input current copy 127 to generate an emitter resistance compensation signal for compensating the logarithmic voltage of the logarithmic conversion system 130.
[0048] In the illustrated embodiment, the emitter resistance compensation signal corresponds to a correction current IRE that is provided to a positive input of the output amplifier OA1 to provide a correction to the logarithmic voltage. However, other types of correction signal schemes can be used.
[0049] Any suitable circuit (for example, any suitable current mirror) can provide the scaled replica of the input current to the emitter resistance compensation circuit 126.
[0050]
[0051] Because the replica transistor's emitter resistance is matching the logging transistor's emitter resistance with a scaling factor, the accuracy of the compensation versus process and temperature is improved as compared to using a discrete resistor in the compensation circuit.
[0052] Thus, a lower scaled copy of the input current I(INP) is provided by the collector current of NPN_MON1. NPN_LOG 1 is the same device in both
[0053] The circles in
[0054] NPN3 receives a collector current of I(INP)/32 plus a PTAT current 2.Math.I.sub.PTAT. Additionally, the current density in NPN3 is 4 times the current density in NPN_LOG 1 at high input currents I(INP). Furthermore, NPN4 receives a collector current of I(INP)/64 plus a current I.sub.PTAT.
[0055] With continuing reference to
is added to the NPN4 base-emitter voltage.
[0056] Furthermore, a PNP differential pair receives the NPN3 base-emitter voltage and the NPN4 base-emitter voltage+V.sub.R4 as an input.
[0057] The PTAT current is given by:
with A=8 the emitter ratio and 4.Math.R1 the resistor that sets the current in the bandgap of the PTAT current generator.
[0058] For I(INP)=0 the differential pair input voltage V.sub.N is given by
This can be expressed as
[0059] Assuming base currents for T.sub.10 and T.sub.11 are zero, the voltage drop over R.sub.4 is
For I(INP)=0 the differential pair input voltage V.sub.P is given by
This can be expressed as
or V.sub.P=term1p+term2p+term3p+term4p, where term1p?term1n=0.
[0060] With continuing reference to
Additionally, rm4p?term3n=0.25.Math.R.sub.e.Math.(I.sub.PTAT+I(INP)/32)?2.Math.R.sub.e.Math.(I.sub.PTAT+I(INP)/32), and V.sub.P?V.sub.N=term4p?term3n=?1.75.Math.R.sub.e.Math.(I.sub.PTAT+I(INP)/32).
[0061] Accordingly, transistors T.sub.15 to T.sub.22 and resistors Rk, Rn and R.sub.3 are for base current compensation. Additionally, the differential pair output current can drive the positive input of the amplifier OA1 of
[0062] The output voltage of the input stage and level shifter with R.sub.e=64.Math.RE1 is given by
where I.sub.PTLS0 is the PTAT level-shift current I.sub.PTLS at temperature T=T.sub.0 and R.sub.e=64.Math.RE1 and RE2.Math.I(IREF)<<1 mV.
[0063] Furthermore,
Additionally,
[0064]
[0065] With continuing reference to
Additionally,
[0066]
[0067] Thus, with emitter resistance compensation I(INP).Math.R.sub.e/64+I.sub.Re.Math.R.sub.1=( 8/512? 7/512).Math.R.sub.e.Math.I(INP)?0.4375.Math.R.sub.e.Math.I.sub.PTAT, and
Compared to dVBE without compensation, error due to R.sub.e is reduced by a factor of 512/64=8.
[0068] With reference to
[0069] Due to the R.sub.e compensation, an offset is introduced with value V.sub.OS=? 7/16.Math.R.sub.e.Math.I.sub.PTAT.
[0070] Additionally,
A dB value dBxos can be assigned to this offset to be
For typical values for R.sub.e=64 and R.sub.1=4000, the offset will be ?0.03 dB. This offset is temperature independent as long as R.sub.e is temperature independent and can be reduced or eliminated by calibration.
[0071] Moreover, by changing the shared bias current of T.sub.10 and T.sub.11 from I.sub.PTAT to
the R.sub.e.Math.I(INP) term would be zero. The shared bias current of T.sub.10 and T.sub.11 can be chosen less than PTAT which reduces the effect of more pronounced peaking at cold and high input currents.
[0072] By including the emitter resistance compensation circuit of
Accordingly, the error introduced by emitter resistance is decreased by a factor of 8.
[0073] Moreover, a new factor of ?0.4375.Math.R.sub.e.Math.I.sub.PTAT introduces an offset in dB of
which typically is small and can be eliminated by calibration.
[0074] With reference back to
[hereinafter Equation 1] with dBx the ratio in dB between I(INP) and/(IREF), assuming RE1=0 and RE2=0 and LN(x)=Log.sub.e(x).
[0075] In log ratio applications, both I(INP) and I(IREF) may each vary over the full specified range of 1 nA to 10 mA. However, in default operation, the reference current is generated internally. It is defined as I.sub.REF if this current is internally generated. I.sub.REF is trimmed for best V LOG vs I(INP) logarithmic conformance. Thus,
[0076] Equation 2 shows that the V(Eref?E) is still proportional-to-absolute-temperature (PTAT) and temperature variation of k.Math.T/q is subsequently eliminated by temperature compensation circuitry that essentially puts a variable proportional to absolute temperature underneath the T in Equation 2 and raising the magnitude to a stable value of 10 mV/dB or 200 mV/decade. Therefore, for photodiode applications, using this correction the relationship between a photodiode current, I.sub.PD, applied to the INP pin, and the voltage appearing at the output at V LOG is given by V LOG=V.sub.Y.Math.Log.sub.10(I.sub.PD/I.sub.NT) [hereinafter Equation 3]. Here, V.sub.Y is the log slope voltage (and, for the case of base-10 logarithms, it is also the volts per decade) and I.sub.INT is the extrapolated log X-axis intercept.
[0077] The output at V LOG can also be expressed as
The relationship between V.sub.Y and V(Eref?E) is 3.33 at T=302.4K in the default configuration. For a factor of 10 between I(INP) and I.sub.REF, V(Eref?E)=60 mV at T=302.4K, resulting in a slope of 0.2 V/decade.
[0078] In certain implementations, during fabrication, V.sub.Y is set to 0.2 V/decade (10 mV/dB) and I.sub.INT=10 pA by factory trim.
[0079] The output at V LOG can further be expressed as V LOG=0.2 V.Math.Log.sub.10(I.sub.PD/10 pA) [hereinafter Equation 5]. The output for the value of I.sub.PD can be calculated using Equation 5. For example, for I.sub.PD=10 nA, the output V LOG has a value of 0.6 V. When I.sub.PD=100 pA, the output V LOG has a value of 0.2 V.
[0080]
[0081] The emitter resistance compensation schemes herein correct errors in the input/output relation of a log-amp arising from emitter resistance.
[0082] For example, if RE1?0 and RE2?0, an error is introduced causing the V LOG curve to change at the higher end of the input current range. This is caused by a voltage drop over RE1 that lowers the E node voltage at high input currents and thus increases V(Eref?E) by a value of V.sub.Re= 1/64.Math.R.sub.e.Math.I(INP), with R.sub.e=64.Math.RE1.
[0083] Typically, RE2 doesn't introduce a significant error because the internal reference current is low enough not to affect V(Eref?E) much. If the reference current is sourced externally, for example in current-ratio applications, RE2 can introduce a significant error as well if (IREF) is high.
[0084] From Equation 1 above, at T=302.4K the logarithmic error is 0.333 dB/mV drop over RE1.
[0085]
[0086] With reference to
and
for I.sub.C1, I.sub.C2>>I.sub.S, where
with Boltzmann's constant k, electron charge q and absolute temperature T.
[0087] Thus,
and
for I.sub.C1, I.sub.C2>>I.sub.S. Additionally,
[0088] Furthermore,
[0089]
[0090]
and K.sub.1 around OA1 in
[0091]
[0092] As shown in
CONCLUSION
[0093] The foregoing description may refer to elements or features as being connected or coupled together. As used herein, unless expressly stated otherwise, connected means that one element/feature is directly or indirectly connected to another element/feature, and not necessarily mechanically. Likewise, unless expressly stated otherwise, coupled means that one element/feature is directly or indirectly coupled to another element/feature, and not necessarily mechanically. Thus, although the various schematics shown in the figures depict example arrangements of elements and components, additional intervening elements, devices, features, or components may be present in an actual embodiment (assuming that the functionality of the depicted circuits is not adversely affected).
[0094] While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the disclosure. Indeed, the novel apparatus, methods, and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the disclosure. For example, while the disclosed embodiments are presented in a given arrangement, alternative embodiments may perform similar functionalities with different components and/or circuit topologies, and some elements may be deleted, moved, added, subdivided, combined, and/or modified. Each of these elements may be implemented in a variety of different ways. Any suitable combination of the elements and acts of the various embodiments described above can be combined to provide further embodiments. Accordingly, the scope of the present invention is defined only by reference to the appended claims.
[0095] Although the claims presented here are in single dependency format for filing at the USPTO, it is to be understood that any claim may depend on any preceding claim of the same type except when that is clearly not technically feasible.