This application relates to attenuators and, more specifically, to attenuators employing amplifier feedback loops.
Disclosed herein are embodiments of a circuit and a method for providing attenuation of an input voltage. In one example, an output voltage of the attenuator is received by an analog to digital converter (ADC), which is designed to receive the output voltage within a precise range of values. Accordingly, in this example, the method and circuit provide for precise attenuation of the input voltage to stay within the design specification of the ADC.
One example embodiment includes an operational amplifier that is set in a positive gain configuration. The output of the amplifier feeds a series of resistors that are in communication with a ground or other low-voltage. The series of resistors forms a resistor divider, where a resistive portion R1 and a resistive portion R2 are in series so that an output voltage is defined by the voltage drop over R2. The resistive portion R1 is coupled between the output of the amplifier and R2, and the resistive portion R2 is coupled between R1 and ground.
The resistive portion R1 includes a series of individual resistive elements, where each one of the individual resistive elements is associated with an individual, selectable switching element coupled to the feedback input of the amplifier. It is desired that the attenuation ratio provided by R1 and R2 is equal to a particular amount. However, process variation in the manufacture of the individual resistive elements that make R1 and R2 may cause the resulting attenuation ratio to differ from the desired attenuation ratio when gain of the amplifier is at 1.
The example embodiment provides the individual, selectable switches so that one of the switches may be closed (and the other ones left open) to define a voltage seen by the feedback loop of the amplifier. A larger voltage drop between the output of the amplifier and the particular, selected switch results in a higher gain at the output of the amplifier and a larger voltage drop across R1 (and across R2 as well). Similarly, a smaller voltage drop between the output of the amplifier and the particular, selected switch result in a smaller gain at the output of the amplifier and a smaller voltage drop across R1 (and across R2 as well).
In one example use case, the attenuator circuit is tested after manufacture. With a known input voltage, a testing machine closes a switch and measures the resulting output voltage across R2. The testing machine repeats the process of selecting a switch and measuring the resulting output voltage for each of the individual, selectable switches (or a subset thereof) and then determines which switch provides an output voltage that corresponds to the desired attenuation ratio. The attenuator circuit may be provided as part of a system-on-a-chip (SOC), and the testing machine saves data to a memory of the SOC that identifies the selected switch. Later, upon power up of the SOC, the SOC accesses the data in the memory and then sets the attenuator according to the data so that the particular switch is closed during operation, thereby providing the desired attenuation ratio.
The embodiments described herein are illustrative examples, and do not limit the scope of embodiments. For example, an attenuator circuit may provide an output voltage to an ADC, but other embodiments may provide an output voltage to a component other than an ADC. Furthermore, the embodiment of
One example embodiment of a precision attenuator circuit is shown in
Continuing with the example, each of the resistive elements R4-R11 is coupled to the feedback input of the operational amplifier by a respective switch (S0-S8). R12 is not coupled to the feedback loop in the same way that R4-R11 are coupled because the voltage drop across R12 is not seen by the feedback loop; nevertheless, R12 is part of R1. A switch may be selected, out of the multitude of switches, to be closed thereby defining the feedback loop for the operational amplifier. If switch S0 is the only switch that is closed, the operational amplifier is a voltage follower and has a gain of 1. The gain affects the current through the voltage divider circuit, thereby establishing an output voltage across R2.
If switch S1 is instead the switch that is closed, then the feedback loop of the operational amplifier includes resistive element R4, which decreases the feedback voltage incrementally and causes the gain to increase to a value above 1. It also causes the current through the voltage divider to increase as well. Maximum gain in the circuit of
According to Equation 1 (see the drawings), the voltage ratio of 1/25 can be achieved when R1 is equal to 24 resistive units, and R2 is equal to one resistive unit. However, as shown in
Equation 2 shows that the rate of change of R1 has a greater effect on the attenuation ratio than does a change in R2 when R1 is large. The circuit of
The explanation above assumes no manufacturing process variation. In other examples, process variation is a substantial possibility, and it is not known beforehand how process variation might have affected the different values of the resistive elements within R1 and the resistive elements within R2. But a given switch may be chosen to provide a desired output attenuation (in this case, a ratio of 1/25).
In some example embodiments, each of the resistive elements in series R4-R11 are one-half of a unit resistance (0.5R0) and are made by including two unit resistors in parallel. Continuing with the example, resistive element R12 has a value of 22 R0 and is made by connecting 22 unit resistors in series. However, the scope of embodiments is not limited to any particular manufacturing technique. With a large number of resistors in use in the circuit of
Consider an example in which R2 is relatively small compared to its desired value. In such a scenario, it may be appropriate to choose one of the switches S4-S8 to increase the amount of gain at the amplifier, thereby increasing the voltage across R2 to correspond to a desired attenuation ratio.
Consider another example in which R2 is relatively large compared to its desired value. In this scenario, it may be appropriate to choose one of the switches S0-S4 to set the amount of gain at the amplifier close to 1, thereby decreasing the voltage across R2 to correspond to a desired attenuation ratio. In both of the examples above, factors affecting which of the switches S0-S8 should be chosen include: 1) the amount of deviation by R2 from its desired value and 2) whether the deviation makes R2 larger or smaller. Another factor affecting which of the switches should be chosen may include, for example, manufacturing process variation affecting any of the resistors within R1.
Accordingly, one example manufacturing technique may include iteratively closing one of the switches at a time until a desired output attenuation is achieved. This is a calibration step that matches one of the switches to the desired output attenuation. Once it is determined which one of the switches corresponds to the desired attenuation, data may be saved in memory that identifies the switch. Upon power up of the circuit, logic reads the value from memory and selects the switch identified by the value. Each semiconductor die may have different manufacturing process variations, and so any given manufactured die may use higher or lower gain from the operational amplifier to account for process variation differences. However, the embodiment shown above allows a range of gain to be achieved so that a precise attenuation may be provided to a downstream circuit, such as an ADC. The implementation of
The attenuator of
The scope of embodiments is not limited to any particular manufacturing process. Nevertheless, the following example illustrates an embodiment in which a 0.18 μm process is used to manufacture the system-on-a-chip. This example relaxes a resistor matching requirement to +/−8%, and a unit resistor area (W*L) is equal to 2 μm2. Such an example may include a total resistor area of 96 μm2 using 48 individual resistors in a circuit according to
By contrast, another circuit using a conventional potentiometer (not shown) with a 0.04% matching requirement and 1/25 attenuation requirement has a unit resistor area of 636.4 μm2 and a total resistor area of 15,910 μm2 in order to achieve the same precision of 5% in the attenuation ratio. In other words, a circuit such as that shown in
One advantage to the circuits of
A flow diagram of an example method 300 of providing an attenuated signal is illustrated in
At action 310, the amplifier receives an input voltage. In this example, the amplifier is an operational amplifier that includes a voltage input, a feedback input, and an output. The amplifier is arranged in a non-inverting gain configuration, where the input voltage is received at its + input, the feedback loop terminates at its − input, and the amplifier output is in communication with the voltage divider (as described further below).
At action 320, the amplifier provides current to the resistor divider. The resistor divider has a first resistive component and a second resistive component, where examples are shown above at
In the example of
At action 330, the amplifier receives the feedback voltage at its feedback input. The node within the first resistive component at which the feedback input is provided is determined by which switch is closed. In an example in which one of the switches is closed at any given time, the closed switch provides the voltage from a point between two of the resistors in series to the feedback input of the amplifier. This is illustrated in
At action 340, the circuit provides a voltage output across the second resistive component. In the example of
The scope of embodiments is not limited to the specific method shown in
Furthermore, some embodiments may also include a calibration step during manufacturing to determine an appropriate switch to close to provide the desired attenuation ratio. Although not illustrated in the figures above, manufacturing machinery may provide an input voltage and sample the value of Vout to test the value of Vout attributed to each one of the switches. For instance, the algorithm may include closing one switch while the others are opened, and subsequently opening the first switch and closing the second switch while the other switches are opened, subsequently opening the first and second switch and closing a third switch while the other switches are opened, and on and on. For each one of the switches being closed, Vout is measured, and the value of Vout that corresponds to the desired attenuation ratio is associated with a particular switch. Therefore, the calibration process identifies the particular switch associated with the desired attenuation ratio. Information identifying the particular switch is stored in memory (not shown) and may be accessed later. At power up or some other appropriate time, logic on the system-on-a-chip or other chip package accesses the data from memory and closes the identified switch to provide the desired attenuation ratio in the circuit.
As those of some skill in this art will by now appreciate and depending on the particular application at hand, many modifications, substitutions and variations can be made in and to the materials, apparatus, configurations and methods of use of the devices of the present disclosure without departing from the spirit and scope thereof. In light of this, the scope of the present disclosure should not be limited to that of the particular embodiments illustrated and described herein, as they are merely by way of some examples thereof, but rather, should be fully commensurate with that of the claims appended hereafter and their functional equivalents.
The present application claims priority to and the benefit of the U.S. Provisional Patent Application No. 62/083,558, filed Nov. 24, 2014 which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
62083558 | Nov 2014 | US |