Interfacing - ADC & DAC: ADC (Analog To Digital Converter)
Interfacing - ADC & DAC: ADC (Analog To Digital Converter)
Interfacing - ADC & DAC: ADC (Analog To Digital Converter)
➢ The circuit initiates the ADC to convert a given analogue input , then accepts the
corresponding digital data and displays it on the LED array connected at P0.
➢ Eg. if the analogue input voltage Vin is 5V then all LEDs will glow indicating
11111111 in binary which is the equivalent of 255 in decimal.
➢ AT89s51 is the microcontroller used here. Data out pins (D0 to D7) of the
ADC0804 are connected to the port pins P1.0 to P1.7 respectively.
➢ LEDs D1 to D8 are connected to the port pins P0.0 to P0.7 respectively. Resistors
R1 to R8 are current limiting resistors.
➢ In simple words P1 of the microcontroller is the input port and P0 is the output
port. Control signals for the ADC (INTR, WR, RD and CS) are available at port pins
P3.4 to P3.7 respectively.
➢ Resistor R9 and capacitor C1 are associated with the internal clock circuitry of the
ADC. Preset resistor R10 forms a voltage divider which can be used to apply a
particular input analogue voltage to the ADC.
➢ Push button S1, resistor R11 and capacitor C4 forms a debouncing reset
mechanism.
➢ Crystal X1 and capacitors C2,C3 are associated with the clock circuitry of the
microcontroller.