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

Create successful ePaper yourself

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

Chapter 9<br />

Figure 9-9. With this circuit, you can adjust the level and amplitude of an<br />

analog signal so that it varies from 0 to +5V.<br />

As an example of how to use the circuit, if VIN varies from +12V to -12V, adjust R4 for a<br />

±2.5-volt swing at VOUT, then adjust R5 to raise VOUT to achieve the desired 0-to-+5V<br />

swing.<br />

Resistor R4 can increase the gain as well as decrease it. If you need to shift the signal level<br />

down instead of up, connect R5 to +15V instead of -15V. If you don’t need level shifting,<br />

you can remove R5 and connect pin 6 only to R1 and R2.<br />

168 <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!