18.11.2014 Views

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

The Microcontroller Idea Book - Jan Axelson's Lakeview Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 11<br />

Figure 11-3. An LF13006/7 controls the gain of an LF411 op amp.<br />

<strong>The</strong> bits that select the gain are outputs of a 74LS374 latch addressed at E400h. <strong>The</strong><br />

LF13006/7’s Chip-Select and Write pins are tied low, which causes the gains at pins 12 and<br />

6 to immediately match the settings at DIGIN1-DIGIN3.<br />

If you want to control up to four gain-set chips and op amps, you can use the five remaining<br />

outputs of the 74LS374 to select the desired chip. Tie all of the WR inputs to one bit, and tie<br />

each CS input to one of the remaining bits. <strong>The</strong>n, to set the gain of an op amp, bring its CS<br />

input low, then bring WR low, then high to latch the data to the desired chip.<br />

You can use just about any op amp with this circuit. Shown is an LF411, which has a wide<br />

bandwidth and low input offset and drift. A 10-picofarad capacitor from the op amp’s input<br />

190 <strong>The</strong> <strong>Microcontroller</strong> <strong>Idea</strong> <strong>Book</strong>

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

Saved successfully!

Ooh no, something went wrong!