Electronic – Determining amplitude of a 2 MHz sine wave

amoperational-amplifierrectifiersineswitch-mode-power-supply

I'm designing a class E resonant inverter at a switching frequency of approx. 2 MHz. I need to control the inverter so as to maintain a constant current at the load. My strategy would be to put a current sense resistor in series with the load to convert current to voltage, rectify and low-pass filter it, then read the essentially-DC value with an ADC — I can take it from there.

Just to get a sense of the values involved, my nominal current is 0.17 A RMS, and I have determined that a 1 Ω current sense resistor is about the maximum value I can use. Hence the voltage drop on the current sense resistor is 170 mV RMS. I can tolerate at most 1% error on the amplitude of the sine wave at the output of my circuit. The circuit must work with a single power supply (say 3.3 V); no bipolar supplies.

Obviously this voltage is too low to rectify with a diode directly. My first thought was to use a precision rectifier; the following circuit, taken from a TI application note, might do the job, and it works for a single supply:

Precision rectifier circuit

Yet, certain performance demands are made of the op amps in this circuit, so as to meet my requirements above, that narrow down choices considerably:

  • The GBW product must be significantly higher than 4 MHz (twice the sine wave's 2 MHz frequency since this is a full wave rectifier); otherwise, the signal will be attenuated. I have determined that, if the 3 dB cutoff is one decade above the signal frequency, the amplitude will be attenuated by 0.5%, so a 40 MHz GBW amplifier is the bare minimum I'm looking for.

  • Since the amplitude of the sine wave is 240 mV, if I impose a maximum of 0.1% error due to the op amp's input offset voltage, I need a part with at a maximum of 240 µV offset.

  • Assuming a value of 10 kΩ for \$R_1\$ and \$R_3\$, the circuit should have an input impedance of 5 kΩ. Given the source impedance is 1 Ω, this by itself is not a problem, but op amp bias current is. Again imposing a maximum of 0.1% error due to the input bias current of the op amp, the maximum input bias current must be 240 µV/5 kΩ = 48 nA.

The cheapest (Digi-key qty. 1) op amp from a reputable manufacturer that meets these specs is the OPA2365 at $2.73. This would easily account for more than 10% and closer to 20% of the cost of my inverter, so I keep thinking there must be a better way. If it helps, this can be viewed as a peak detection or AM demodulation problem.

So the question is: can anyone suggest a cheaper circuit capable of measuring the amplitude of a ~240 mV, 2 MHz sine wave?

Edit: this circuit will be employed in a portable device, so power consumption must be kept in check.

Edit 2: As per @SpehroPefhany's answer, I'm trying to design a BJT circuit now. It goes something like this:

schematic

simulate this circuit – Schematic created using CircuitLab

Yes, I know I cheated there by using a 10 V supply — I have batteries on my system that can provide this voltage if necessary, which is something I forgot to mention above. Also, I've omitted the filtering part of the circuit; that should be easy after rectification takes place correctly. I can add back the diode drop voltage digitally after A/D conversion of the signal, and since it's amplified (I'm shooting for say 4.5 V amplitude now), I can easily tolerate 50 to 100 mV variations on diode voltage drop in manufacturing without violating my revised accuracy target (5% now, again as per @SpehroPefhany's suggestion).

The problem with this circuit is that, with no load (assuming R6 were taken out of the circuit) the DC voltage on the diode's cathode drifts up until rectification no longer takes place. If R6 is sufficiently low, the rectification effect is maintained, but at the cost of unduly loading the circuit, with a corresponding effect on the DC level seen on the load resistor.

This seems to be the most promising avenue of investigation until now. I welcome any suggestions to improve it.

Best Answer

Here's an idea: A simple and rough solution by biasing a diode with a small current. It becomes non-linear and rectifies even quite small AC voltages.

I've drawn a possible circuit. You could refine all of the values to suit your exact requirements. D_A and D_B are a pair in one SOT23 case. R1 and R3 supply the bias current to the diodes, from a 3.3 V rail. R2 and C2 are a filter to reject the 2 MHz and provide a stable output; they have a time constant well under 1 ms, very little 2 MHz gets through. A larger R2 or larger C2 might be a good idea, depending on the speed of your control loop. To use this circuit you must sample and process both the rectified RF output, and the temperature sensing output, and do some calculations on the results. (The switch is only to allow me to see the difference between RF On and RF Off). Circuit Diagram

Advantages of this circuit:

  • Cheap at under $0.10 for components (excluding the sense resistor)
  • No exotic components - Just one dual-1N4148 and some R and C.
  • Sensitive down to 50 mV AC, but errors will creep in
  • Very little part sensitivity, as long as the two diodes are matched and at the same temperature, or in the same package. Use 1% resistors.
  • Very little frequency sensitivity
  • Very little temperature sensitivity, once compensated (not sensitive to tempco of capacitors)
  • Low component count
  • Also acts as a thermometer

Disadvantages:

  • Is also a thermometer. You need to regularly sample the other diode, to check the junction voltage due to the temperature alone.
  • Some calculations to be done in software, could be as simple as a subtraction.
  • No voltage gain. Vout drops by about 270 mV with a 240 mV (RMS) AC input
  • Slightly non-linear response, DC voltage is not linear with AC voltage.

It works like this: Overall Voltages

And plotting only the output DC voltages (here with a 100 mV peak AC signal): DC output voltages

BOM, (lowest cost reels from DigiKey)

  • 1 x pair of diodes: $ 0.01560
  • 3 x 100k resistors: $ 0.00093 each
  • 2 x Ceramic NP0 capacitors: $ 0.03914 each Total BOM: about $ 0.09667

A quick investigation into the sensitivity of the circuit to parameter variations shows that once the equations are worked out, it should not be sensitive to temperature, frequency or changes in capacitance.

Starting with 2 MHz, 10 deg C, and 100 mV AC (Peak):

  • Base configuration: 539 (Vtemp) to 492 mV (Vout), 47 mV difference
  • 40 deg C : 449 to 406 mV, 42 mV No sensitivity to temperature (after subtraction)
  • 1.5 MHz : 539 to 492 mV, 47 mV. No sensitivity to Frequency
  • R1/R3 22K: 599 to 553 mV, 46 mV. No sensitivity to current, works well with more bias current. Source impedance of rectifier now drops too, it now stabilises in 0.3 ms instead of 0.6. R1 and R3 must still be matched...
  • 50 mV AC: 539 to 525 mV, 14 mV (practical lower limit of voltage)
  • 200 mV AC: 539 to 409 mV, 130 mV
  • 339 mV AC: 539 to 284 mV, 255 mV (This is your operating point, 240 mV RMS)
  • 356 mV AC: 539 to 268 mV, 271 mV (operating point + 5%)

In Summary

  • This circuit rectifies a 240 mV RMS AC voltage, to provide a 250 mV change in DC voltage.
  • If the AC voltage changes by 5%, the DC voltage changes by about 6%, a delta of 16 mV.
  • It has no sensitivity to typical component tolerances, that would cause errors beyond 5%.
  • The exact DC value depends on temperature, but this is easily calibrated by comparison with a second diode in the same package, with the same bias but no AC.
  • A 12 bit A/D will give a resolution of about 0.25% per LSB, though in practice the resistor tolerance and diode matching will limit the accuracy long before this.