|
||
February 2, 1998Scheme yields frequency-locked triangle wavesDaniel Dufresne, Decatron, St Bruno, PQ, Canada
After you initially adjust R21, op amp IC3 keeps any dc offset (caused by tracking imbalances between the current source and sink) to a minimal value. The output signal from the 8-bit DAC, IC12, controls the current level in both the source and sink. The currents sum on capacitor C2, thus generating a triangle wave. An op amp buffers the triangular signal; potentiometer R22 adjusts the output level. Assuming a fixed input frequency and a fixed capacitor value, you can adjust the current sources for the desired amplitude. If the frequency decreases, the triangle-wave amplitude increases. To keep the amplitude constant, comparator IC4 detects that the positive-peak amplitude is too high. The comparator sends input-clock signals to decrement the 8-bit counter IC6 and IC7, thus controlling the source- and sink-current value through the DAC. Similarly, if you raise the clock frequency, the triangle-wave amplitude decreases. Comparator IC5 detects that the positive-peak amplitude at the end of the triangle wave's rise is too low. IC11a latches the comparator output and gates clock pulses to increase the count and the source- and sink-current values. If you run out of counts on IC6 and IC7, the carry and borrow output signals trigger the monostables, IC13A and IC13B. LED D2 or D3 lights to warn you to change the input frequency accordingly. Frequency tracking is asymmetric: As soon as the circuit detects the high limit, pulses decrement the counter. The sooner the high limit occurs, the more decrementing pulses the counter receives. However, you detect that the current is too low only when the RISE/FALL signal falls, and the triangular wave is still below the positive-peak low limit. This occurrence triggers a single pulse. To adjust the circuit, set the divider to f/10, apply a 10-kHz TTL signal to the clock input, short-circuit C2, push the TEST button, and adjust R22 for a zero-centered triangular wave. Release the TEST button, and remove the short circuit. You can increase the frequency range by using a bigger counter and a higher resolution DAC or by band-switching the current-summing capacitor, C1, with some added logic that the borrow and carry outputs of IC7 trigger. |
||
| EDN Access | Feedback | Table of Contents | |
||
| Copyright © 1997 EDN Magazine, EDN Access. EDN is a registered trademark of Reed Properties Inc, used under license. EDN is published by Cahners Publishing Company, a unit of Reed Elsevier Inc. | ||