Guide to Linear Analog Circuits--Exploit D/A converters in unusual controller designs

Home | Articles | Forum | Glossary | Books

AMAZON multi-meters discounts AMAZON oscilloscope discounts



More than just a data manipulator, a multiplying DAC simplifies designs such as scanner positioners, temperature regulators and electronic locks.

Employing multiplying digital-to-analog-converter (MDAC) ICs in other-than-standard data-handling tasks allows you to control many diverse-and difficult to- interface-analog functions. MDACs such as the 12-bit DAC1218 and the 10-bit DAC1020 provide features that bring digital accuracy to familiar control chores involving temperature, voltage and vibration.


Fig 1---Digital words determine a motor-driven scanner's excursion limits via a dual-MDAC-controlled transistor-bridge drive scheme. Two comparators (A5, A6) match a motor-position analog voltage (Vpos) with the MDAC's outputs and set or reset flip flop IC accordingly. When the flip flop is set, for example, its Q output goes HIGH and turns transistors Q1 and Q4 on until VPOs is nulled.

Digitally position mechanical scanners

Consider, for example, the use of these devices in the scanning-electrophoresis technique that biochemists employ to separate unidentified cells or molecular structures from each other. In one form of this process, a motor-driven scanner examines a sample suspended in a suitable liquid and contained within a glass or quartz tube approximately 1 ft long. A high voltage applied along the tube's length separates the cells according to their charge gradient, resulting in a series of bands within the tube where like cells collect.

Photometrically scanning the tube's length, noting the bands' distances from a reference point and matching these locations against the potential's gradient, accomplishes cell identification.

------- Digital-to-analog converters provide biochemical controls ---------


Fig 2--A settable output voltage results when an MOAC controls a pulse-width modulator's input reference voltage. Overcurrent protection occurs when the voltage to the PWM's -CL input exceeds its +CL reference.


Fig 3---Dual MDACs provide both dc and ac output voltages when driving a complementary transistor pair. A fixed digital code controls one MOAC to set the dc level; the other MDAC generates the ac component when its digital inputs are varied.

The key to this technique lies in the scanning process:

Ideally, both the scanner's speed and the minimum and maximum scan length should be programmable. In Fig limits via two sets of digital input codes. The scanner's motor drives a pick-off potentiometer, providing an analog voltage proportional to the scanner's position.

This signal in turn feeds limit comparators A5 and A6, driving one of these device's outputs HIGH when either the high (A5 and IC1)--or low-position limit (A6 and IC2) is exceeded. (A1 and A2 serve as current-to-voltage converters, while A3 and A4 establish the feedback loop's reference voltages.) When the scanner reaches a limit condition, the limit comparators set (S) or reset (R) flip flop IC3; the resulting HIGH Q or Q output switches a transistor bridge on in a direction that reverses the motor's rotation. Thus, the scanner's motor bidirectionally runs the photometer head between the encoded scan limits.

Q7 and its associated diodes control the motor's speed. When both Inhibit and Clock inputs are LOW, Q7 is OFF and the flip flop's Q and Q-bar signals can drive Q5 and Q5. However, if either Inhibit or Clock is HIGH, Q7 turns on and shunts the drive signals to ground. You can employ a uC to generate all the scanner's control functions. For example, using a software-generated pulse-width-modulated signal as the clock allows you to dynamically alter the scanner's speed to run rapidly across distances where there aren't cell bands and slowly where there are. Similarly, you can use software to set the scan limits to home in on a cell-populated portion of the tube.


Fig 4--An ac-driven MDAC generates these CRT deflection voltages using the scheme shown in Fig 3. Buffer amplifier A, 's output (top) can be converted to a high-voltage complementary (middle) or in-phase equivalent (bottom waveform.


Fig 5---Precise temperature excursions result when A3 sums an MDAC-generated triangular waveform with A1's fixed reference and the LM135's temperature-dependent signal. A4 pulse-width-modulates the resulting error voltage, and controls the heater's ON time.

5v logic sets high-voltage levels

MDACs can control high-voltage sources as well as scanner positioners. Consider, for example, Fig 2's circuit, which serves as a digitally controlled 15 to 100V supply suited to automatic-testing applications. This circuit couples a pulse-width-modulator (PWM)-driven push/pull voltage-converter stage with an MDAC in a feedback loop. The MDAC, in conjunction with A1, establishes the PWM's setpoint voltage. The PWM in turn drives the transistors and-via the step-up transformer--converts the 15V to as much as 100V. The transformer's square-wave output gets rectified, filtered and divided down by the resistor string. The resulting voltage level feeds back to the PWM's error amplifier, completing the control loop. You set the loop's gain and frequency characteristics with the 1000-pF/100-kO pair. Short-circuit protection results when the IR drop across the 1 ohm resistor exceeds the 1 V reference at the PWM's +CL input.

----- Set a shaker table's frequency with a D/A-converter IC -----

Although you can rapidly update the MDAC's output, the transformer's 20-kHz capability and the loop's time constants limit the design's bandwidth. In practice, though, you can modulate the MDAC's input at 250 Hz and still deliver a 100V sine wave into a 1-kn load.

Digitally modulate your CRT's plates

Another high-voltage requirement centers on modulating a CRT's deflection plates in electron-optics applications. In contrast to the previous high-voltage circuit, this design operates at greater bandwidths but has a low current-delivering capability. (Actually, this low-current limitation is not significant because the CRT's plates act like a very large resistor shunted by 50 pF.) Fig 3's scheme uses two MDAC/op-amp pairs to generate the CRT's signals: One MDAC establishes the static (dc) bias; the second provides the dynamic (ac) drive signal (typically a ramp). A3 sums these signals and feeds the result to the high-voltage stage, consisting of Q1 through Q4. This stage acts as an inverting, complementary, common-base-driven common-emitter amplifier with gain. And because the output-current requirements are low, you can avoid the usual cross over-distortion problems without complex compensation circuitry; merely tie the stage's output to the -125V rail via a 120-kO resistor. Closing the feedback loop with a 1-MO resistor yields the quick, clean response shown in Fig 4. (In this figure, two complete MDAC-driven amplifiers were used to produce the traces.) The top trace shows the ac signal created by digitally modulating IC1's inputs; the middle and bottom traces depict the resulting high-voltage outputs.

MDACs regulate temperatures

MDACs also serve in temperature-regulating applications-such as those involving critical biochemical reactions occurring only within or at the edges of very specific (and often very narrow) temperature limits. Fig 5's circuit, for example, employs an MDAC to regulate a heater and overcome the inability of standard temperature-control methods to provide both fine-grain resolution and long-term stability.

The basic temperature-control loop comprises an MDAC-controlled PWM (A1 through A5 ). Thermal feedback to the LM135 closes the loop; it varies the PWM's duty cycle to establish the controller's setpoint.

Note that the PWM action results from A5's comparing A1's setpoint-equivalent output with the ramp output generated by the clock-driven integrator, A4. A3's output is in turn a function of the setpoint current flowing through the 22.6-kfl resistor as well as the LM135's signal. (Amplifier ~·s 10-Mf1/1-uF feedback values limit the loop's response to 0.1 Hz.) You control the temperature's excursions around the setpoint by modulating the MDAC's digital inputs with a slowly varying digitally encoded triangular wave form; the number of bits changed controls the temperature's span. Fig 6's strip-chart recording demonstrates this design's advantages: Temperature can vary by ±1.5°C around a 37.5°C setpoint for many hours.

MDACs develop high-power audio signals

Fig 6--Long-term temperature control is the result when Fig 5's design modulates the 37.SOC baseline setting via a triangular-wave-driven MDAC. The MDAC's digital input code controls the peak-to-peak oscillation amplitude.

Now consider an MDAC's use in an audio-frequency application-control of the shaker tables frequently employed to test finished assemblies for vibration induced failures. In order for these tests to be meaningful, the vibration patterns must be tight controlled in terms of duration, frequency and amplitude. Fig 7's dual-MDAC scheme can meet these requirements.

Fig 8---A signal's frequency or amplitude is quickly changed by Fig 7's MDAC controllers. Using this technique, you can vary output frequency from 1 Hz to 30 kHz.

Fig 7---Digitally variable frequency and amplitude signals arise when the triangular wave generated by IC, through A2 is converted to a sine wave by the pnp/npn stage and modulated by MDAC IC2. Both the frequency and amplitude functions can be fixed (via switches) or swept.

Frequency control results when MDAC IC1 drive the integrator formed by A1. This stage's output ramp until its 10-kO derived current just balances the feedback current at comparator A2's + input. At the point, A2's output changes state and forces the zener-diode network to furnish an equal-magnitude b opposite-polarity reference voltage. Because this now inverted reference feeds both the MDAC and the comparator, the integrator generates a triangular waveform symmetrically centered on ground. Using this circuit technique, you can use 12 bits to encode the MDAC and synthesize a 1-Hz to 30-kHz output signal A sine wave results when the synthesized triangular signal feeds the dual npn/pnp stage; the logarithm relationship between the LM394's collector current an its V BE performs the smoothing function. You adjust the offset and wave-shape pots for low distortion.

The digital amplitude-control feature occurs in the associated MDAC/op-amp network. Here the MDAC (IC2) operates as the programmable gain element in the op amp's feedback loop. This trick provides a millivolts to-volts range at A?,'s output pin.

----------Pick-proof electronic locks by digitally reading the key ---------------

Fig 9--A virtually pick-proof electronic lock employs an MDAC in a digital-code-to-resistor-value comparison loop. Resistor RK serves as a key. When the inserted resistor's value isn't correct and accepted within 250 msec, the circuit inhibits another lock-opening attempt for 5 min.

Because a shaker table's input impedance is resistively low and inductively high, a vacuum-tube amplifier is your best choice for the power stage; its transformer isolated output is immune to the table's inductively induced flyback spikes. Fig 8 shows this design's output waveform when both MDACs are simultaneously up dated. Note its clean and essentially instantaneous response to both frequency and amplitude steps.

Digital codes "pick-proof" a lock Fig 9's circuit serves an unusual MDAC application: the programming of an electronically keyed combination lock. Because the inserted key is an 0.01% resistor, security is assured against all but the most determined and sophisticated thieves. If the key you insert isn't the correct one, the circuit knows it within 250 msec and ignores any further lock-opening attempts for 5 min.

Decade-box- or potentiometer-equipped thieves thus don't have a chance.

When "key resistor" RK has the correct value, the MDAC's output current precisely balances RK's current at A1's input and drives A1 's output to zero. The absolute-value stages (Az and Aa) sense this condition, and A?,'s output, Q1's emitter and ~·s + input also go to zero. And when ~·s input reaches zero, its output goes negative, Qa cuts off and C1 starts charging toward the 15V supply level via the 22-kO/diode network. During this 250-msec charging time, As's HIGH output level turns the Q/Q2 stage on and therefore opens the door's lock. When C1 charges past 5V, As's output goes LOW and disables the lock again.

Pick-proof lock frustrates sophisticated thieves

If you try opening the lock with an illegal RK, the absolute-value stages (A2, A3) don't settle to zero and Q1 remains OFF. Under these conditions, it takes 5 min before C1 discharges back down to 5V-via the 30-M-O resistor-and is reset to 0V by Q4.

This design discourages even the most sophisticated and/or frustrated thieves: Amplifier A1 's zener-diode bridge and input clamps prevent anyone from monitoring the summing junction's requirements or intentionally destroying the unit. And the 12-bit MDAC provides security via 4096 possible combinations.

Top of Page

PREV. | NEXT Article Index | HOME