Professional Documents
Culture Documents
Tech (EE)
Trimester: VIII Subject: Microcontrolles
Name: Class:
Roll No: Batch:
Experiment No: 08
Name of the Experiment: Using DAC 0808 generate various wavefoms.
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
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
Conclusion
www.mitwpueduin