22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

190 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

EXPONENTIAL<br />

CURRENT 0-----1<br />

INPUT<br />

CI<br />

LOW-SIAS<br />

HIGH-SPEED<br />

OP-AMP<br />

C2<br />

I<br />

_15~Jl<br />

NARROW<br />

':>---+---() PULSE<br />

OUTPUT<br />

COMPARATOR<br />

Fig. &-8. Sawtooth oscillator<br />

The comparator compares the integrator output with a positive reference<br />

voltage, Vrif. As long as the integrator output is less than Vrif, the<br />

comparator outpur is negative, which keeps the FET switch across the integrating<br />

capacitor <strong>of</strong>f, allowing it to charge. As soon as the integrator voltage<br />

reaches Veef, the comparator output starts to go positive. As it does, the<br />

positive comparator input is forced even more positive through C2 giving<br />

positive feedback and causing the comparator to snap on. The comparator<br />

output is constrained to rise no further than ground, but this is enough to<br />

fully turn on the high-threshold-voltage FET switch, which discharges Cl<br />

and brings the integrator output back to ground potential in preparation for<br />

another cycle. The comparator is prevented from responding instantly to the<br />

drop in integrator voltage by the charge accumulated on C2 when the comparator<br />

switched high. In effect, a one-shot is formed with a time constant <strong>of</strong><br />

RC2, which is arranged to be long enough for the FET to completely<br />

discharge C 1. Even though every reasonable effort is made to speed the<br />

discharge, the control current still loses control for a finite time each cycle.<br />

This will cause the higher oscillator frequencies to be flat, that is, lower than<br />

expected from the control current magnitude. This error can be compensated<br />

for as will be shown later.<br />

The value <strong>of</strong> C 1 is chosen to provide the required range <strong>of</strong> output<br />

frequencies given the 0.25 MA to 0.25 rnA range <strong>of</strong> current input. The<br />

expression for frequency is F =I/CVrej and the expression for capacitance<br />

is C=I/FVrif where Vrif is the reference voltage in volts, F is frequency<br />

in hertz, C is capacitance in farads, and I<br />

is the exponential current in<br />

amperes. The easiest way to calculate C is to first determine the highest<br />

frequency <strong>of</strong> interest and then solve the second equation for I = 0.25 rnA.<br />

The lowest frequency for really accurate response (and zero control voltage if<br />

the highest frequency corresponds to a + lO-V control voltage) is 1,024<br />

times lower. Much lower frequencies are possible with good components and<br />

moisture-pro<strong>of</strong>ed circuit boards, as much as 1,000 times lower yet for a total<br />

range <strong>of</strong> over a million to one. For a nominal audio range <strong>of</strong>20 Hz to 20 kHz<br />

and Vrif <strong>of</strong> +5 V, C 1 would be about 2,500 pF. For optimum performance<br />

over a 32-Hz to 8-kHz range in an 8-V system with Vref <strong>of</strong> 4.096 V, Cl

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!