Showing posts with label Analog-to-digital converter (ADC ). Show all posts
Showing posts with label Analog-to-digital converter (ADC ). Show all posts

Friday, June 8, 2012

Schematic Analog-to-digital converter (ADC ) Interfacing with microcontroller

This post is the continuetion of last post in which we discussed the Analog interfacing with microcontroller. We learnt that the transducers required Analog to digital converters in middle to have interfacing with microcontrollers. This post is about the ADC interfacing and working.
Thus we can say that we need to have some means to convert the analog signal of transducers into digital signal so that computers can handle it and further processing could be done.
Analog-to-digital converter (ADC) is a device which can convert analogue voltage to digital numbers so that microcontrollers can handle and process the data. This is required to obtain some meaningful results or any useful work with micro controller. ADCs are the most widely used devices for data acquisition and control. Some microcontrollers have built in ADCs but the 8051 microcontroller don't have any built in ADC. So we have to use external ADC for said purpose. There some common and important features about ADCs. for example, resolution of adc, response time of adc , mode of work and method of conversion. ADC has n-bit resolution, where n can be 8, 12, 16 or even 24 bits. The higher-resolution ADC provides a smaller step size.Step size is the smallest change that can be recognized by ADC. The heart of any current computational device relies upon digital bits, voltage states which can be at either high or low voltages. One of the simplest constructions, the ADC, converts an analog voltage signal to a digital one. Analog to Digital converters, and their counterparts, Digital to Analog converters are used all the time in electronics. Indeed, they provide the only method by which one may interface a digital system with the real world, which functions in analog.Digital data acquisition and conversion systems are ubiquitous, being found in virtually every modern communication, digital signal processing (DSP), electronic instrument, and micro-controller applications. Regardless of the sophistication of the application, a data acquisition and/or conversion system will consist of some pre-processing elements, a domain conversion device (digital to analog conversion (ADC) or analog to digital conversion (DAC)), controller, and post-processing agent.

8-Bit resolution ADCs:-

An ADC has a resolution of 8 bits, the range is divided into 2^8=256 steps (from 0 – 255). But there are 255 quantization levels.
how step size of ADC is calculated equation for step size

Where the Vcc is the reference voltage of ADC with n-bit resolution.Below is table in which Resolution versus Step Size for ADC (if Vcc = 5V) is provided.
Resolution versus Step Size for ADC
ADC0804 Chip (Free Running Mode)
There are some control PINs and some input and other are output PINS of ADC0804. The pin configuration of ADC0804 is shown in the figure below.
ADC0804 Chip Free Running Mode
Important pins are discussed here in some detail.
CS  :Active low input used to activate the ADC0804 chip.

RD (data enable)  : Active low input used to get converted data out of the ADC0804 chip. When CS = 0, if a high-to-low pulse is applied to the RD pin, the 8-bit digital output shows up at the D0-D7 data pins.

WR (start conversion): Active low input used to inform the ADC0804 to start the conversion process. If CS = 0 when WR makes a low-to-high transition, the ADC0804 starts converting the analog input value of Vin to an 8-bit digital number. When the data conversion is complete, the INTR pin is forced low by the ADC0804.
CLK IN and CLK R : Connect to external capacitor and resistor for self-clocking, f = 1/(1.1RC). The clock affect the conversion time and this time cannot be faster than 110 micros.

INTR (end of conversion) This is an active low output pin. When the conversion is finished, it goes low to signal the CPU that the converted data is ready to be picked up. After INTR goes low, we make CS = 0 and send a high-to-low pulse to the RD pin to get the data out of the ADC0804 chip.
ADC0804 Chip step size calculation


Vin (+) and Vin (-) :These are the differential analog inputs where Vin = Vin (+) - Vin (-). Often the Vin (-) pin is connected to ground and the Vin (+) pin is used as the analog input to be converted to digital.
VCC : This is the +5V power supply. It is also used as a reference voltage when the Vref/2 (pin 9) input is open.
ADC0804 Chip step size calculation ADC0804 has resolution of 8 bits
Pin Vref/2 is open, Step size =19.6mV

Vref/2 :- Input voltage pin used for the reference voltage. If this pin is open, the analog input voltage for the the ADC is ranged from 0 to 5 volts.This is optional input pin. It is used only when the input signal range is small. When pin 9 is at 2V, the range is 0-4V, i.e. Twice the voltage at pin 9. Pin 6 (V+), Pin 7(V-): The actual input is the difference in voltages applied to these pins. The analogue input can range from 0 to 5V.

D0 – D7 output PINs of ADC: D0 – D7 are the digital data output pins. These are the tri-state buffered and the converted data is accessed only when CS = 0 and RD is forced low. The output voltage:


Analog Ground and Digital Ground :- Analog ground is connected to the ground of the analog signal while digital ground is connected to the ground of the Vcc pin.
Operation of the ADC
The analog signal should be connected to Vin.
To start conversion: WR should be pulled low and RD should be high.
When the conversion is complete, the ADC0804 will pull INT low.
To make the binary result available at the outputs of the ADC, RD should be low.

Tags:-
Digital Audio Compression Storage and Retrieval System (DACSRS),‑The ADC0804 is a successive approximation type A/D converter ,connection of temperature sensor with ADC0804 ,Automated Object Avoiding Robot Project,Transducer coverts physical variable to an electrical signal ,Design and implementation of frequency converter and signal recovery circuits. ,ADC0804 IC is a CMOS 8-bit A/D converter featuring fast conversion times,DATA CONVERSION,LEVEL & TEMPERATURE CONTROLLER, How to build a digital oscilloscope based on the ADC0804 Flashy acquisition board The interfacing of LM35 Temperature Sensor using ADC0804
read more "Schematic Analog-to-digital converter (ADC ) Interfacing with microcontroller"

Monday, October 3, 2011

Schematic Analog to Digital Conversion process in Pressure Monitoring Project

Analog to Digital Conversion process in 8051 Microcontroller Based Pressure Monitoring Project:-
The output of the pressure transducer is an analog signal .To interface with the microcontroller it is needed to change this signal in to digital value because the microcontroller and other digital devices works on the digital data . For this purpose ADC is used. We used an IC(ADC0804) which gave an 8 bit digital value for the input analog valued signal.
Analog signals are very common inputs to embedded systems – Most transducers and sensors are analog. Special devices needed to interface the analog systems to digital systems. ADC (Analog to Digital Converter) is used between signal input and the embedded system. DAC (Digital to Analog Converter) between embedded system and analog signal output
An analog-to-digital converter (ADC) is a circuit that converts an analog voltage into a digital word. A typical ADC consists of a single IC with a few support components.
Analog-to-digital conversion is a more complicated process (than for the DAC), and the hardware requires some conversion time, which is typically in the microsecond range. The conversion time required depends on the type of ADC, the applied clock frequency, and the number of bits being converted. Figure  shows a block diagram for an 8-bit ADC. The input Vin can be any voltage between 0 V and Vref. When Vin is 0 Vdc, the output is 00000000; when Vin is Vref, the output is 11111111 (255 decimal).
For input voltages between 0 and Vref, the output increases linearly with Vin; therefore, we can develop a simple ratio for the ADC:
Solving for output gives the following:

where
output = decimal output value of an 8-bit ADC
Vin = analog input voltage to the ADC
Vref = ADC reference voltage
To start the conversion process, a start-conversion pulse is sent to the ADC. The ADC then samples the analog input and converts it to binary. When completed, the ADC activates the data-ready output. This signal can be used to alert the computer to read in the binary data.

Figure  shows a data sheet for an 8-bit ADC (ADC0804). Packaged as a 20-pin DIP, this device can operate on a single 5-Vdc power supply and requires an external resistor and capacitor to complete the ADC circuit. The start-conversion pulse is applied to pin 3 (WR), and the data-ready signal comes from pin 5 (INTR). This particular ADC can be connected in a free-running mode where it performs one conversion after the other as fast as it can. Notice also that the pin labeled Vref/2 (pin 9) must be set at half of the actual Vref. For example, if the requirements call for an analog voltage range of 0-5 Vdc, then pin 9 would be set to 2.5 Vdc. The time to complete a conversion is approximately 100 µs (micro-seconds), making it almost 700 times slower than the DAC0808 discussed earlier.
Tags:-analog-to-digital converter,adc datasheet,adc design,adc0804,Australian dental council,adc0808,active directory connector,active desktop calendar,adc0804 datasheet,adc0808,adc0804 pdf,adc0804lcn,lm35,Dac0800,dac0808,adc0809,interfacing adc 8051,adc0808 interfacing with 8051,ADC Example Code mbed - Rapid Prototyping for Microcontrollers,8051 with microcontrollers tutorial,adc interfacing projects,adc0804 interfacing 8051


 BACK to Content Page
 .
 Next Page
 .
   Previous Page
read more "Schematic Analog to Digital Conversion process in Pressure Monitoring Project"