ON-CHIP RESISTOR DIVIDER COMPENSATION WITH A 2VRMS INPUT
20170104461 ยท 2017-04-13
Inventors
Cpc classification
H03F1/26
ELECTRICITY
H03F3/68
ELECTRICITY
H03F2203/45531
ELECTRICITY
H03F3/45941
ELECTRICITY
International classification
Abstract
A new compensation system for an audio input reduces noise by matching feedback ratios in the positive and negative paths. A variable resistance network allows for fine control of resistance trimming in one of the signal paths, which allows for compensation between tolerance of resistors that are external to an integrated circuit and those that are internal to the integrated circuit.
Claims
1. An audio preamplifier having a ground sense input and a signal input for receiving an analog audio input signal, the amplifier comprising: an operational amplifier having an inverting input and a non-inverting output, a first resistance coupled between the ground sense input and the inverting input of the operational amplifier; a second resistance coupled between the inverting input of the operational amplifier and the non-inverting output of the operational amplifier; and a controllable compensation circuit for varying a resistance ratio between the first resistance and the second resistance.
2. The audio preamplifier of claim 1, wherein the controllable compensation circuit includes: a plurality of resistors coupled between the ground sense input and the inverting input of the operation amplifier; and a plurality of controllable switches each having a first node respectively coupled between a pair of adjacent resistors of the plurality of resistors, and each having a second node coupled to the inverting input of the operational amplifier.
3. The audio preamplifier of claim 2, wherein the controllable compensation circuit further includes: a controller coupled to the plurality of controllable switches and structured to engage one of the plurality of controllable switches.
4. The audio preamplifier of claim 3, wherein the controller is structured to engage a particular one of the plurality of controllable switches as a default state.
5. The audio preamplifier of claim 1 having another signal input for receiving another analog audio input signal, the audio preamplifier further comprising: another operational amplifier having an inverting input and a non-inverting output; and another controllable compensation circuit for varying a resistance value, wherein the other controllable compensation circuit is coupled to the inverting input and the non-inverting output of the second operational output.
6. A system, comprising: an audio preamplifier having: a ground sense input; a signal input for receiving an analog audio input signal; an operational amplifier having an inverting input and a non-inverting output; a first resistance coupled between the ground sense input and the inverting input of the operational amplifier; a second resistance coupled between the inverting input of the operational amplifier and the non-inverting output of the operational amplifier; and a controllable compensation circuit for varying a resistance ratio between the first resistance and the second resistance; and an Analog to Digital Converter (ADC) configured to receive an analog output signal from the audio preamplifier and convert the analog output signal to a digital output signal.
7. The system of claim 6, wherein the controllable compensation circuit includes: a plurality of resistors coupled between the ground sense input and the inverting input of the operation amplifier; and a plurality of controllable switches each having a first node respectively coupled between a pair of adjacent resistors of the plurality of resistors, and each having a second node coupled to the inverting input of the operational amplifier.
8. The system of claim 7, wherein the controllable compensation circuit further includes: a controller coupled to the plurality of controllable switches and structured to engage one of the plurality of controllable switches.
9. The system of claim 8, wherein the controller is structured to engage a particular one of the plurality of controllable switches as a default state.
10. The system of claim 6 in which the audio preamplifier has another signal input for receiving another analog audio input signal, the audio preamplifier further including: another operational amplifier having an inverting input and a non-inverting output; and another controllable compensation circuit for varying a resistance value, wherein the other controllable compensation circuit is coupled to the inverting input and the non-inverting output of the second operational output.
11. The system of claim 6, further comprising: a Digital Signal Processor (DSP) configured to receive the digital output signal from the ADC and perform at least one of the following on the digital output signal: noise reduction, equalization, and balance.
12. The system of claim 11, further comprising: a Digital to Analog Converter (DAC) configured to receive a digital output signal from the DSP and convert the digital output signal to an analog output signal.
13. The system of claim 12, further comprising: a headphone amplifier configured to receive the analog output signal from the DAC and provide an amplified output audio signal to a headphone jack.
14. The system of claim 12, further comprising: a PWM processor configured to receive the analog output signal from the DAC and provide an amplified output audio signal to at least one speaker.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
DETAILED DESCRIPTION
[0016] Embodiments of the invention are directed to an input compensation system, such as for a preamplifier of a coder-decoder (CODEC), that compensates for noise presented on common mode inputs, such as noise on the ground plane and noise on the common mode reference voltage. Without such compensation, the system has a significant common mode noise component. Much of the noise, however, may be eliminated by using embodiments of the invention, which compensates for mismatch in the feedback gains of the signal path and ground sense path.
[0017] It is beneficial to use a fully differential input to take advantage of the common mode rejection. As mentioned above, a 2 Vrms input signal is conventionally divided using a resistor divider, such as illustrated in
[0018] In
[0019] The resistors in the resistor divider circuit formed by RB.sub.1, RB.sub.2 are chosen in conjunction with the internal resistor network (RS.sub.1, RS.sub.2, RF.sub.1, RF.sub.2) to not disturb the total gain of the signal path. The equivalent resistance of the resistor divider is considered as part of the input resistor when considering the gain, as illustrated in
[0020] As illustrated in
[0021] Feedback ratios for the signal path and ground sense path can be calculated as follows:
[0022] The transfer function from common mode inputs to an output of the operational amplifier 10 as a function of the feedback ratios is defined as:
[0023] With no adjustments: (R.sub.S1=R.sub.S2, R.sub.F1=R.sub.F2(.sub.1.sub.2)), the feedback ratios do not cancel out and a significant signal from the common mode inputs to the output exists:
[0024] For better common mode rejection, it is best to match 1=2 as closely as possible.
R.sub.S1=R.sub.S
R.sub.F1=R.sub.F
R.sub.S2=R.sub.S+R.sub.X
R.sub.F2=R.sub.F
[0025] Where R.sub.S2 is skewed by the Thevenin equivalent resistance so that the two paths match (R.sub.X=R.sub.TH). With this shift, .sub.1 and .sub.2 closely match and the common mode signal can be canceled.
[0026] Although external resistors generally have 1% precision, on-chip resistors are typically formed of polysilicon and may have up to +/20% variation in their resistance values. This variation limits the ability to match 1 and 2 as closely as desired. Not being able to closely match the desired resistance values, due to the processing variations in making polysilicon resistors, as set forth above, increases noise from the common mode inputs.
[0027] Still with reference to
[0028] To compensate for this mismatch, embodiments of the invention skew the internal ground sense path with a fine resistor trim, which is performed with a compensation circuit 120 located within the ground sense path. The compensation circuit 120 may be used to account for the +/20% variation in polysilicon resistance that occurs when producing the IC. The variation of polysilicon resistance can be determined by an on-chip process monitor, as described in detail below.
[0029]
[0030] The compensation circuit 220 is controlled by a control 225 to vary an amount of resistance between the three nodes 221, 222, and 226. In practice, after measuring a resistance value on the IC, such as, for example, measuring a control polysilicon resistor on the IC, the control 225 may be set to compensate for the variation by adjusting an amount of resistance provided at the three nodes 221, 222, and 226. This has the desired effect of balancing values such that .sub.1A=.sub.2A, reducing the noise in the preamplifier 104.
[0031]
[0032] The controllable resistor circuit illustrated in
[0033] In operation, using embodiments of the invention as illustrated in
[0034] The controllable resistor circuit illustrated in
[0035] The resistance R.sub.Y may be related to the resistance R.sub.X described above by the following linear transformation:
[0036] In operation, using embodiments of the invention as illustrated in
[0037]
[0038] In the compensation circuit 320 of
[0039] The series of controllable switches S.sub.0-S.sub.2.sup.n.sub.1 in
[0040] In operation, with reference to
[0041] In some embodiments the controller 340 may be set to automatically select a middle value of resistance as a starting point. For example, if the production process yields target polysilicon resistance values, then no further fine-tuning control may be necessary for input compensation.
[0042] Determining which of the controllable switches S.sub.0-S.sub.2.sup.n.sub.1 to operate in
[0043] An additional calibration method includes injecting a supersonic (i.e., >20 KHz) signal into the common mode reference voltage V.sub.OCM. If the circuit is matched, i.e., the internal and external resistors are in their proper relationships to one another, without variation from the intended resistance values, then the injected signal is attenuated by the common mode rejection. If, however, there is any mismatch between the gain of the signal path and the gain of the ground sense path, then a residual signal from the injected signal will appear in the output signals V.sub.OUT and V.sub.OUT+. Then, the residual signal may be isolated from other signals on the output signals using digital sound processing. Finally, the resistance values of the compensation circuit may be trimmed, using techniques described above, to shift the resistance values between the nodes coupled to the compensation circuit. In particular, the resistance values in the compensation circuit are adjusted until the residual signal in the output signals V.sub.OUT and V.sub.OUT+, is minimized. This method of calibration is attractive because, since the tone is supersonic, i.e, above the threshold of human hearing, the calibration may run continuously or periodically in the background and never be heard by the user. Additionally, since the calibration takes place while the pre-amplifier circuit is operational, it does not require an additional setup step to perform the calibration.
[0044] Other embodiments may use other methods of controlling the resistance between the nodes 321, 322, 326.
[0045]
[0046]
[0047] The preamplifier 510 passes the reduced-noise input to an internal component, such as Analog to Digital Converter (ADC) to convert the analog input signal to a digital audio signal. A sound processor such as a Digital Signal Processor (DSP) 530 may perform varied effects on the digital audio signal, such as noise reduction, equalization, balance, or other enhancements. An output of the DSP 530 may be provided as a digital signal output 532 of the CODEC IC 500.
[0048] Depending on the type of CODEC IC 500, outputs from the DSP 530 may also be coupled to Digital to Analog converters 540, 560 to convert the processed signals back to audio analog signals. These signals may be provided to, for example, a headphone amplifier 550 coupled to a headphone jack, or to a PWM processor 570 for providing an amplified output to drive speakers.
[0049] Embodiments of the invention may be incorporated into integrated circuits such as sound processing circuits, or other audio circuitry. In turn, the integrated circuits may be used in audio devices such as sound bars, audio docks, amplifiers, speakers, etc.
[0050] Having described and illustrated the principles of the invention with reference to illustrated embodiments, it will be recognized that the illustrated embodiments may be modified in arrangement and detail without departing from such principles, and may be combined in any desired manner. And although the foregoing discussion has focused on particular embodiments, other configurations are contemplated.
[0051] In particular, even though expressions such as according to an embodiment of the invention or the like are used herein, these phrases are meant to generally reference embodiment possibilities, and are not intended to limit the invention to particular embodiment configurations. As used herein, these terms may reference the same of different embodiments that are combinable into other embodiments.
[0052] Consequently, in view of the wide variety of permutations to the embodiments described herein, this detailed description and accompanying material is intended to be illustrative only, and should not be taken as limiting the scope of the invention.