Embodiments of the invention relate to electronic systems, and more particularly to, electronic circuits for logarithmic conversion or detection.
Logarithmic converters or detectors provide an output signal that changes in relation to a logarithm of an applied input signal.
One type of logarithmic detector is a trans-linear logarithmic detector that uses the trans-linear properties of a bipolar transistor to provide logarithmic conversion. In one example, a collector and a base of an NPN bipolar transistor are directly connected to a gate and a source, respectively, of an n-type metal-oxide-semiconductor (NMOS) transistor. Additionally, an input current is applied to the collector of NPN bipolar transistor and the base of the NPN bipolar transistor generates a log voltage. Although such a circuit can provide logarithmic detection, the collector-to-base voltage of the NPN bipolar transistor is not very close to zero, leading to undesirable performance characteristics such as poor log-linear dynamic range for small input currents.
In another example of a trans-linear logarithmic detector, a collector and an emitter of an NPN bipolar transistor are directly connected to an inverting input and an output, respectively, of an operational amplifier (op-amp). Additionally, a base of the NPN bipolar transistor and a non-inverting input of the op-amp are grounded, while an input current is applied to the collector of NPN bipolar transistor such that the emitter of the NPN bipolar transistor generates a log voltage. By using the op-amp, the collector-to-base voltage of the NPN bipolar transistor can be controlled close to zero.
In certain applications, a second copy of a logarithmic detector is included and driven by a reference current, with a difference between the pair of logarithmic detectors taken to cancel the saturation current of the NPN bipolar transistor.
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.
In one aspect, a logarithmic current to voltage converter includes 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. 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.
In another aspect, a photocurrent detection system includes a photodetector configured to generate an input current, and a semiconductor die including a logarithmic converter. The logarithmic converter includes 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. 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.
In another aspect, a method of logarithmic current to voltage conversion is provided. The method includes 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 includes a scaled replica of the logarithmic bipolar transistor. Generating the compensation circuit includes 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.
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.
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 IDC1, a second DC current source IDC2, a capacitor C, and a resistor R.
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 IIN 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 IDC1. Additionally, a base of the first bipolar transistor NPN_LOG receives a reference voltage VREF and an emitter of the first bipolar transistor NPN_LOG is connected to an output terminal that provides a logarithmic voltage VLOG. The emitter of the first bipolar transistor NPN_LOG is also connected to the second DC current source IDC2 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.
As shown in
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 IIN. 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).
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.
Furthermore, the logarithmic converter 105 has superior noise performance at low levels of the input current IIN 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.
In contrast, any noise on the reference voltage VREF in
As shown in
In the illustrated embodiment, the DC current from the DC current source IDC is provided as an input to the third logarithmic converter 105c, which is biased by the reference voltage source VREF2. 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 VREF for the first logarithmic converter 105a and the second logarithmic converter 105b.
By implementing the logarithmic conversion system 120 in this manner, high dynamic range is achieved by setting the voltage reference VREF 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 VREF2. The precision of the reference voltage source VREF2 can be relaxed compared to a precision of the reference voltage VREF since the DC current from the DC current source IDC can be scaled to be much higher than a minimum value of the input current IIN.
With continuing reference to
Since the DC current from the DC current source IDC can be chosen to be in the middle of the dynamic range of the input current source IIN (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.
As shown in
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 (VREF 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.
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 VREF to correct for low input current IIN and/or high temperature deviations.
Absent compensation, the logarithmic conversion circuits of
For example, an optical log converter uses the logarithmic relationship between the base-emitter voltage (VBE) and the collector current (IC) 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.
With reference back to
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.
The output amplifier OA1 is biased by various current sources (IB1, IB2, and IPTLS+IRe) 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.
The input channel 125a and the reference channel 125b have a configuration similar to that of
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 VRe=RE1·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.
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.
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.
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.
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.
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
The circles in
NPN3 receives a collector current of I(INP)/32 plus a PTAT current 2·IPTAT. 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 IPTAT.
With continuing reference to
is added to the NPN4 base-emitter voltage.
Furthermore, a PNP differential pair receives the NPN3 base-emitter voltage and the NPN4 base-emitter voltage+VR4 as an input.
The PTAT current is given by:
with A=8 the emitter ratio and 4·R1 the resistor that sets the current in the bandgap of the PTAT current generator.
For I(INP)=0 the differential pair input voltage VN is given by
This can be expressed as
Assuming base currents for T10 and T11 are zero, the voltage drop over R4 is
For I(INP)=0 the differential pair input voltage VP is given by
This can be expressed as
or VP=term1p+term2p+term3p+term4p, where term1p−term1n=0.
With continuing reference to
Additionally, rm4p−term3n=0.25·Re·(IPTAT+I(INP)/32)−2·Re·(IPTAT+I(INP)/32), and VP−VN=term4p−term3n=−1.75·Re·(IPTAT+I(INP)/32).
Accordingly, transistors T15 to T22 and resistors Rk, Rn and R3 are for base current compensation. Additionally, the differential pair output current can drive the positive input of the amplifier OA1 of
The output voltage of the input stage and level shifter with Re=64·RE1 is given by
where IPTLS0 is the PTAT level-shift current IPTLS at temperature T=T0 and Re=64·RE1 and RE2·I(IREF)<<1 mV.
Furthermore,
With continuing reference to
Thus, with emitter resistance compensation I(INP)·Re/64+IRe·R1=( 8/512− 7/512)·Re·I(INP)−0.4375·Re·IPTAT, and
Compared to dVBE without compensation, error due to Re is reduced by a factor of 512/64=8.
With reference to
Due to the Re compensation, an offset is introduced with value VOS=− 7/16·Re·IPTAT.
Additionally,
A dB value dBxos can be assigned to this offset to be
For typical values for Re=64 and R1=4000, the offset will be −0.03 dB. This offset is temperature independent as long as Re is temperature independent and can be reduced or eliminated by calibration.
Moreover, by changing the shared bias current of T10 and T11 from IPTAT to
the Re·I(INP) term would be zero. The shared bias current of T10 and T11 can be chosen less than PTAT which reduces the effect of more pronounced peaking at cold and high input currents.
By including the emitter resistance compensation circuit of
Accordingly, the error introduced by emitter resistance is decreased by a factor of 8.
Moreover, a new factor of −0.4375·Re·IPTAT introduces an offset in dB of
which typically is small and can be eliminated by calibration.
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)=Loge(x).
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 IREF if this current is internally generated. IREF is trimmed for best V LOG vs I(INP) logarithmic conformance. Thus,
Equation 2 shows that the V(Eref−E) is still proportional-to-absolute-temperature (PTAT) and temperature variation of k·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, IPD, applied to the INP pin, and the voltage appearing at the output at V LOG is given by V LOG=VY·Log10(IPD/INT) [hereinafter Equation 3]. Here, VY is the log slope voltage (and, for the case of base-10 logarithms, it is also the volts per decade) and IINT is the extrapolated log X-axis intercept.
The output at V LOG can also be expressed as
The relationship between VY and V(Eref−E) is 3.33 at T=302.4K in the default configuration. For a factor of 10 between I(INP) and IREF, V(Eref−E)=60 mV at T=302.4K, resulting in a slope of 0.2 V/decade.
In certain implementations, during fabrication, VY is set to 0.2 V/decade (10 mV/dB) and IINT=10 pA by factory trim.
The output at V LOG can further be expressed as V LOG=0.2 V·Log10(IPD/10 pA) [hereinafter Equation 5]. The output for the value of IPD can be calculated using Equation 5. For example, for IPD=10 nA, the output V LOG has a value of 0.6 V. When IPD=100 pA, the output V LOG has a value of 0.2 V.
The emitter resistance compensation schemes herein correct errors in the input/output relation of a log-amp arising from emitter resistance.
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 VRe= 1/64·Re·I(INP), with Re=64·RE1.
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.
From Equation 1 above, at T=302.4K the logarithmic error is 0.333 dB/mV drop over RE1.
With reference to
and
for IC1, IC2>>IS, where
with Boltzmann's constant k, electron charge q and absolute temperature T.
Thus,
and
for IC1, IC2>>IS. Additionally,
Furthermore,
and K1 around OA1 in
As shown in
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).
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.
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.
The present application claims priority to U.S. Provisional Patent Application No. 63/481,266, filed Jan. 24, 2023, and titled “LOGARITHMIC CURRENT TO VOLTAGE CONVERTERS WITH EMITTER RESISTANCE COMPENSATION,” the entirety of which is hereby incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
63481266 | Jan 2023 | US |