Analog to Digital converter (ADC) interfacing with Microcontrollers tutorial: Introduction free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
ADC interfacing with Microcontrollers: Introduction


►Introduction

In our daily life, anything we deal like sound, prassure, voltage or any measurable quantity, are usually in analog form So what if we want to interface any analog sensor with our digital controllers? There must be something that translate the analog inputs to digital output, and so Analog to digital convertors come to play. Usually we call them ADC (Analog to digital convertor). Before going to learn how to interface an ADC with a controller we first take a look at basic methods of analog to digital conversion.


This is a sample of the large number of analog-to-digital conversion methods. The basic principle of operation is to use the comparator principle to determine whether or not to turn on a particular bit of the binary number output. It is typical for an ADC to use a digital-to-analog converter (DAC) to determine one of the inputs to the comparator.


Following are the most used converion methods:
  1. Digital-Ramp ADC
  2. Successive Approximation ADC
  3. Flash ADC

►Digital-Ramp ADC

Digital-Ramp ADC


Conversion from analog to digital form inherently involves comparator action where the value of the analog voltage at some point in time is compared with some standard. A common way to do that is to apply the analog voltage to one terminal of a comparator and trigger a binary counter which drives a DAC. The output of the DAC is applied to the other terminal of the comparator. Since the output of the DAC is increasing with the counter, it will trigger the comparator at some point when its voltage exceeds the analog input. The transition of the comparator stops the binary counter, which at that point holds the digital value corresponding to the analog voltage.


►Successive Approximation ADC

Illustration of 4-bit SAC with 1 volt step size
Successive Approximation ADC

The successive approximation ADC is much faster than the digital ramp ADC because it uses digital logic to converge on the value closest to the input voltage. A comparator and a DAC are used in the process. A flowchart explaning the working is shown in the figure below.
Flowchart Successive Approximation ADC


►Flash ADC

Flash ADCIllustrated is a 3-bit flash ADC with resolution 1 volt (after Tocci). The resistor net and comparators provide an input to the combinational logic circuit, so the conversion time is just the propagation delay through the network - it is not limited by the clock rate or some convergence sequence. It is the fastest type of ADC available, but requires a comparator for each value of output (63 for 6-bit, 255 for 8-bit, etc.) Such ADCs are available in IC form up to 8-bit and 10-bit flash ADCs (1023 comparators) are planned. The encoder logic executes a truth table to convert the ladder of inputs to the binary number output.


Now we lets take a look at the various Analog to Digital convertors that are most commonly used with our controllers

NameDescription
ADC08008-bit ADC
ADC08018-bit ADC 100us 0.25 LSB
ADC08028-bit ADC 100us 0.5 LSB
ADC08048-bit ADC 100us 1.0 LSB
ADC08088-bit 8 channel 100us ADC
ADC08098-Bit 8 channel ADC (=~ADC0808)
AD57110-Bit, A/D Converter, Complete with Reference and Clock
MAX12045V, 8-Channel, Serial, 10-Bit ADC with 3V Digital Interface
MAX12025V, 8-Channel, Serial, 12-Bit ADCs with 3V Digital Interface
MAX19516-Bit, Self-Calibrating, 10us Sampling ADC

More information on how to interface the above listed ADC can be obtained from the datasheets of respective ICs. In the next part of tutorial we will look into the interfacing and programming of a simple 8-bit ADC (ADC0804).

◄ Previous Page  |  Next Page ►

ADC Interfacing Tutorial Index
Introduction to ADC
AVR Programming for ADC0804
ADC0804 Interfacing
8051 Programming for ADC0804


Google Search for Microcontrollers!

Google
 

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems