datasheets.com EBN.com EDN.com EETimes.com Embedded.com PlanetAnalog.com TechOnline.com  
Events
UBM Tech
UBM Tech

Design Article

Two-IC circuit combines digital and analog signals to make multiplier circuit

Rick Mally, Independent Designs LLC, Denver

1/29/2013 10:10 AM EST

Click here to download a PDF

The circuits presented here use an analog switch—such as a DG419 or one-third of a CD4053—to combine an analog signal with a standard PWM signal. Most microcontrollers can easily generate the PWM signal. Combining the PWM signal with the analog signal and low-passing the result effectively multiplies the analog signal by a digital value. Such a circuit can be useful in signal processing, power factor correction, automatic gain control, and sensor interfacing. All four circuit variants rely on the same principle: using the analog switch to adjust the duty-cycle ratio between two analog input levels, and a lowpass filter (LPF) to eliminate the PWM chopping frequency.

Figure 1a depicts a multiplier incorporating a second-order Sallen-Key LPF. The active filter provides the best ac performance, effectively eliminating the chop frequency and passing slower ac signals through with minimal attenuation. Since the analog switch is selecting either the analog input signal or ground, the output voltage is equal to VIN×D, where D is the duty cycle of the PWM signal; its value ranges from 0 to 1.


Figure 1 The use of an analog (CMOS) SPDT switch and an op amp configured as an LPF forms a simple multiplier circuit that can be used as either a digitally controlled gain block (a) or a cross-fader (b).

Figure 1b shows a variation of this circuit. Using the switch node formerly grounded as an additional analog input produces a circuit that gives an output equal to (A×D)+(B×(1–D)). The PWM duty cycle selects the ratio between the two input signals and presents the result at VOUT.

The filter cutoff frequency should be optimized for the PWM frequency used. The values depicted provide a ∼10-kHz cutoff frequency. This should be satisfactory in most applications for an 8-bit PWM clocked at 16 MHz (a PWM frequency of 62.5 kHz). Response time will be less than 200 μsec; noise will be less than 1 LSB. The cutoff frequency can be easily changed by adjusting R1 and R2, or C1 and C2. It is important that R1=R2 and C2≈0.5×C1. Doubling the resistor or capacitor values will halve the cutoff frequency; halving them will double the frequency.

Figures 2a and 2b show a simpler version of the previous circuits; they have a much slower response, however, and hence are useful only for generating a dc voltage or a low-frequency ac signal. Again, the roll-off of the LPF should be optimized to block the PWM frequency. For the 8-bit PWM frequency described earlier, the depicted 10k and 0.1 μF provide a response time of 5-msec and less than 1 LSB of noise.


Figure 2 The active two-pole LPF can be replaced with a simpler single-pole passive circuit when slower response times are acceptable. Again, depicted are a gain block (a) and a cross-fader (b).

Since all of the circuit variations have a dc gain of 1, the discrete component values affect ac performance only. These circuits are capable of high dc precision without the use of expensive precision components.





florianba

1/29/2013 2:35 PM EST

Could one build a lock-in amplifier with that?

Sign in to Reply



Gfranchi

2/4/2013 1:48 PM EST

The old lock-in amplifier was built around Gilbert multiplier so I think You cand do also with that. You can try some full digital design...

Sign in to Reply



Videobub

1/30/2013 5:01 PM EST

Looks like this multiplier scheme works the same as when I was introduced to it, in 1977. Is this a case of "What's old is new again!" ?

Sign in to Reply



WKetel

1/31/2013 12:42 PM EST

This looks quite a bit like a somewhat analog version of the identical function being implemented as a "mixer" in radio circuits for quite a few years. The main difference here is in varying the pulswidth to vary the output amplitude. In the typical mixer application effort is made to avoid variations in pulse width exactly because they vary the output amplitude. So what we have here is a new application for an older concept. GOOD WORK!

Sign in to Reply



Guru of Grounding

1/31/2013 1:08 PM EST

It does seem that everything gets "re-invented" periodically. I used this technique back in 1972 to create a low-distortion voltage-controlled-gain amplifier for one of the first automation system for faders of recording studio consoles (worked for Quad-Eight, who made consoles used at Capitol, A&M, Warner Brothers, etc.). In the VCA, I converted audio to 1 MHz PWM and then used discrete MOSFETs to switch between a DC control voltage (from the fader or automation playback) and its inverse, which formed the PAM (pulse amplitude modulator). A multi-pole passive filter then reconstructed the output signal. The module had frequency response ruler-flat from 1 Hz to 30 kHz and had a dynamic range of about 110 dB. The simple PWM circuit used a discrete transistor as the Miller integrator and a SN7413 (remember TTL?) schmitt-trigger. The combination of PWM and PAM can be both powerful and super-simple.

Sign in to Reply



D Feucht

2/18/2013 10:12 PM EST

Although this is not a novel idea it is a good idea and worth bringing to the attention of newcomers to electronics. Another place this scheme is used is in the phase detectors of impedance or RLC meters. For instance, the ESI 253 and the B&K 875A use CMOS switches to separate the R and X components of the measured impedance.

One DSP-oriented comment about using a square-wave as a multiplier: Because two sine-waves are not being multiplied, the effect is that the multiplier output (before the low-pass filter) has a sinx/x response. With oversampling of 10 times or more, this hardly matters and this is usually the case, as it is in the above circuit. However, it is good to know that as the sampling rate slows down and approaches the Nyquist frequency, the multiplier gain amplitude starts to bounce at Nyquist-frequency intervals.

Sign in to Reply



Please sign in to post comment

Navigate to related information

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)