You are on page 1of 3

T. Y.B.

Tech (EE)
Trimester: VIII Subject: Microcontrolles
Name: Class:
Roll No: Batch:

Experiment No: 08
Name of the Experiment: Using DAC 0808 generate various wavefoms.

Performed on: Marks Teachers Signature with Date


Submitted on:

Aim Using DAC 0808 generate various waveforms

Program Statement:
Write anembedded C program for PIC microcontroller for interfacing with DAC 0808 for
generating square ad tiangular wavetoms.
Prerequisite
Understanding of PIC 18 architecture and DAC 0808.

Objectives
.Toknowthe Embedded C language programmingfor Microcontrollers.
Toget awae with MPLABX IDE and debugging evironment.
Understand real time interfacing with PIC Microcontrollers.

Software Used:
MPLABX DE version 1.85/8.91, C18 Complier Suite version 3.35, PDFSUBS flash utility.

Hardware Used:
PC, Educational practice board PIC18, All in One General Purpose Board (ASK25), +9V
power supply, Flat Ribbon Cables (FRCS)

Theory
DACO808 is a DA converter IC and is used for coverting 8 bit digital data input to analog
signal output. It is a monolithic IC featuring a full scale output cument settling time of 150 ns
while dissipating only 33 mW with 5V supplies. The hip accuracy of corversion is good and
power consumption is also low to make it popular. The power suypply cuments of the DACO808
ae independent of bit codes, and exhibits essentially constarnt device characteristics over the
entire supply voltage range.

www.mtwpueduin
Vcc 5V

MS w o Vref=10V
A2O
4O-
DACDD
10

Al O

ABO aUTPUT

Vee=-15V

Figure 8.1 DAC 0808


The device takes in parallel 8 bit data fromamicrocontroller or microprocessor ard corverts
that data in to analog signal at the output. And the analog output from DAC is a cumet
qantity and this needed to be converted in to voltage parameter for using in application
easily. So to convert the cument parameter in to voltage parameter we will use op-amp
circuit as shown in circuit diagram This op-amp ircuit is called curent-to-voltage
CoIverter.
The output aralog voltage from op-amp is in linear relation with input digital value and
hence DAC corversion with DAC0808 is achieved. Similany you can also use other
application circuits for DACO808 given inthe datasheet.
Hardware Connectiorn:
Connect wires from DAC 0808 digital data inputs pirn5 to 12 to PIC 18F4455 comector J8
pirs 10 to 17.
Pin J8 Connector
Connection of EPBPIC18
PB.0
2 PB.1
PB.2
PB.3
PB4
PB.S
PB.6
PB.7
9 X

10 PD.O
11 PD.1
12 PD.2
PD.3
PD4
PD.5
PD.6
PD.7

5V
|20 GROUND

www.mtwpueduin
Interfacing Diagram

Program Atach Printout

Conclusion

Post Lab Questions:


1. List out DAC 0808 IC features.

Additional links for more information:


1. https://componenits101.comics/dac0808-8-bit-da coverter

www.mitwpueduin

You might also like