Topic: Parallel DAC 0808 Interfacing With 8051

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 12

Topic:

Parallel DAC 0808 interfacing with 8051

Presented by :
Guided by : Vraj Shah (170410117045)
Prof. Janki Chotai Ronak Shah (170410117044)
WHAT IS DAC??
• In electronics, a digital- to- analog converter (DAC or D-to-A) is a device that
converts a digital (usually binary) code to an analog signal ( current, voltage,
or electric charge).

• An analog digital converter (ADC) performs the reverse operation.

• Signals are easily stored and transmitted in digital form, but a DAC is
needed for the signal to be recognized by human senses or other non-
digital systems.
GENERAL USE OF DAC.

• A common use of digital-to-analog


converters is generation of audio
signals from digital information in
music player.
• Digital video signals are converted to
analog in televisions and cell phones
to display colors and shades.
• Digital-to- analog conversion can
degrade a signal, so conversion
details are normally chosen so that
the errors are negligible.
DAC USING MICROCONTROLLER

• The digital-to-analog converter (DAC) is a device widely used to convert


digital pulses to analog signals.

• Recall from your digital electronics book the two methods of creating a DAC:
Binary weighted and R/2R ladder.

• The vast majority of integrated circuit DACs, including the MC1408


(DAC0808) used in this section, uses the R/2R method since it can achieve a
much higher degree of precision.
STEP BY STEP PROCEDURE FOR INTERFACING MCU-DAC.

COMPONENTS REQUIRED

• MCU (AT89C51)
• DAC0808/MC1408


Resistors (10k,8.2k).
Capacitors(33pF,10uF).
Step 1
• Op-amp.
• Oscilloscope.
• Power Supply.
STEP BY STEP PROCEDURE FOR INTERFACING MCU-DAC

CIRCUIT DIAGRAM: Step 2


STEP BY STEP PROCEDURE FOR INTERFACING MCU-DAC

Algorithm :
Connect the P1 of 8051 with the D0-D7 pins
of DAC Step 3
1
Give +5V to Vcc and Vref of the DAC
2
Connect -12V to VEE of DAC
3
Connect an op-amp to OUT pin of the DAC
with 5K register.
4
Connect the oscilloscope with the op-amp
and view the OUTPUT
STEP BY STEP PROCEDURE FOR INTERFACING MCU-DAC

Procedure to generate Sine wave:


Step 4
• To generate a sine wave, first a table is designed whose values represent the
amplitude of the sine of the angles between 0 and 360 degrees. The value of
the sine function varies from -1.0 to +1.0
• To generate the sine wave the output of DAC is assumed to be 10V. Full scale
output of the DAC is achieved when all the data inputs of the DAC are high.
Therefore to achieve the full-scale 10V output, we use following equation.

Vout = 5V + (5*sinø)
Data table for sine wave generation

Step 5
Flow Chart for our program
start

Initialise variable
DPTR : DPTR is a data pointer
register in 8051 , which is of 2
Use DPTR as a pointer to point to the look
bytes(16bits).
up table
It is user accessible.
it is used to point the memory
locations(i.e
Data accessingaddresses ). addressing
using indexed
mode

Value is sent to port 1 and increment DPTR

No Decrement Yes
End
counter = 0??
Image of sine wave which we get from oscilloscope
Thank you

You might also like