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.

Using Sensors to Detect and Measure<br />

Choosing a Converter<br />

<strong>The</strong> ADC0848 is a good, general-purpose chip, but you may want to look at other converters,<br />

depending on your application. Below are some things to consider when choosing an A/D<br />

converter. Example answers describe the ADC0848, using information from its data sheet:<br />

• What is the analog input range? (0V to V+)<br />

• How many analog channels are there? (8)<br />

• What is the converter’s resolution? (8 bits)<br />

• How fast is the conversion? (30 microseconds typical, 60 microseceonds maximum)<br />

• How accurate is the conversion? (±.1 LSB (least significant bit), 1/2 LSB version<br />

available)<br />

• What are the power-supply requirements and power consumption? (+4.5 to +6V, 15<br />

milliwatts)<br />

• What input modes are available? (single-ended, differential, pseudo-differential)<br />

• How is the converter controlled and interfaced? (control signals are WE, OE, CS<br />

• Are there any special features on-chip (sample-and-hold, voltage reference, etc.)? (an<br />

internal clock times the conversions)<br />

• What package types are available? (24-pin 0.3" DIP, 28-lead chip carrier)<br />

Sample and Hold Circuits<br />

An additional component that you may need for rapidly changing analog inputs is a<br />

sample-and-hold circuit. To ensure correct conversions, the analog input must not change<br />

in value while the conversion is taking place.<br />

A sample-and-hold circuit ensures that the analog signal is stable by sampling the signal at<br />

the desired measurement time and storing it, usually as a charge on a capacitor. <strong>The</strong> converter<br />

uses this stored signal as the input to be converted.<br />

When do you need a sample-and-hold? <strong>The</strong> ADC0848 requires 60 microseconds or less to<br />

convert, so you should get good results with inputs that do not vary more than 1 bit in this<br />

amount of time. When a rapidly changing input does require one, sample-and-hold ICs like<br />

the LF398 are available, or you can use a converter like the ADC0820, which has the<br />

sample-and-hold on-chip.<br />

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

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

Saved successfully!

Ooh no, something went wrong!