LAB 8 Uc 2014

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 9

LAB 8

ADC INTERFACING
Analog to Digital Converters
(ADC)
Computer/Controller deals with DIGITAL values
Everything is ANALOG in physical world
Temperature
Pressure
Humidity
Velocity
Voltage
Physical quantity to Electrical signal using Transducer
Also called sensors
These analog signals are converted into digital by ADC

ADC has n-bit resolution
N can be 8, 10, 12, 16 bits etc
Higher Resolution provides smaller step size
ADC 0804

ADC804 IC is an analog-to-digital converter
It works with +5 volts and has a resolution of 8 bits

Steps for ADC 0804
Vcc = 5 v
Vin(+) = Input Signal
Vin(-) = A GND = D GND = CS = Ground

In ADC804 conversion time varies depending on the clocking signals
applied to CLK R and CLK IN pins, but it cannot be faster than 110 s


Typical values are R = 10K ohms and C = 150 pF

D0 D7 to Port 1
RD to P2.5
WR to P2.6
INTR to P2.7

Reference Voltage & Step Size
Vref/2
It is used for the reference voltage
If this pin is open (not connected), the analog input voltage is in the range of
0 to 5 volts (the same as the Vcc pin)
If the analog input range needs to be 0 to 4 volts, Vref/2 is connected to 2
volts
Interfacing with 8051
Interfacing with 8051
;p2.6=WR (start conversion needs to L-to-H pulse)
;p2.7 When low, end-of-conversion)
;p2.5=RD (a H-to-L will read the data from ADC chip)
;p1.0 P1.7= D0 - D7 of the ADC804


ORG 0H
ADC:
SETB P2.5
CLR P2.6
NOP
NOP
NOP
SETB P2.6
EOC: JB P2.7,EOC
SETB P2.7
CLR P2.5
CLR A
MOV A,P1
MOV P3,A
SJMP ADC
END
LM 35
TEMPERATURE
SENSOR
LM 35
LM35 is an analogue temperature sensor IC which can
measure a temperature range of -55 to 150C. Its output
voltage varies 10mV per C change in temperature.

For example, if the temperature is 32C, the output voltage
will be 32 x 10mV = 320mV.

You might also like