Topic: Parallel DAC 0808 Interfacing With 8051
Topic: Parallel DAC 0808 Interfacing With 8051
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).
• 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.
• Recall from your digital electronics book the two methods of creating a DAC:
Binary weighted and R/2R ladder.
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
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
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
No Decrement Yes
End
counter = 0??
Image of sine wave which we get from oscilloscope
Thank you