SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Interfacing DAC with 8051 T.Srikrishna , M.Sc, M.Tech, GVP
DAC Interfacing with 8051
 The DAC is a device widely used to convert digital pulses to
analog signals.
 Here we will discuss the basics of interfacing a DAC to 8051.
 In these systems MC generates output which is in digital form.
 But the controlling system requires analog signal as they don't
accept digital data.
 Thus it necessary to use DAC which converts digital data into
equivalent analog voltage.
 In the figure shown, we use 8-bit DAC 0808.
 This IC converts digital data into equivalent analog Current.
Hence we require an I to V converter to convert this current
into equivalent voltage.
 The two methods of creating a DAC is Binary weighted and
R/2R ladder network.
 We will also see the triangular and square wave generation.
Interfacing DAC with 8051 T.Srikrishna , M.Sc, M.Tech, GVP
In the DAC0808, the digital inputs are converted to current (Iout),
and by connecting a resistor and op-amp to the Iout pin, we convert
the result to voltage Vo.
According to theory of DAC Equivalent analog output is given as:
Interfacing DAC with 8051 T.Srikrishna , M.Sc, M.Tech, GVP
Exmple:
1. IF data =00H [00000000], Vref= 10V
Therefore, V0= 0 Volts.
2. If data is 80H [10000000], Vref= 10V
Therefore, V0= 5 Volts.
Different Analog output voltages for different Digital signal is given
as:
Interfacing DAC with 8051 T.Srikrishna , M.Sc, M.Tech, GVP
8051 Assembly code to generate triangular wave
ORG 0000H
CLR A
UP: INC A
MOV P2,A
CJNE A, #0FFH, UP
DOWN: DEC A
MOV P2,A
CJNE A, #00, DOWN
SJMP UP
END
8051 Assembly code to generate SUARE wave
ORG 0000H
BACK MOV A, #00H
UP; MOV P1,A
CALL DELAY
DOWN: MOV A,FFH
MOV P1,A
CALL DELAY
SJMP BACK.
DELAY: MOV R2,#0FFH
WAIT: DJNZ R2, WAIT
RET

More Related Content

PPT
Adc interfacing
PDF
8051 interfacing
PDF
interfacing of temperature sensor LM 35 with 8051.pdf
PDF
Seven segment interfacing with 8051.pdf
PPTX
Adc and dac
PDF
Question Bank microcontroller 8051
PPTX
LCD Interacing with 8051
PPTX
Microcontroller 8051 and its interfacing
Adc interfacing
8051 interfacing
interfacing of temperature sensor LM 35 with 8051.pdf
Seven segment interfacing with 8051.pdf
Adc and dac
Question Bank microcontroller 8051
LCD Interacing with 8051
Microcontroller 8051 and its interfacing

What's hot (20)

PPTX
Interfacing Stepper motor with 8051
PPT
Memory organization of 8051
PPTX
Serial Communication in 8051
PPTX
Discrete Time Fourier Transform
PDF
8051 Architecture and PIN Configuration.pdf
PPTX
Subroutine in 8051 microcontroller
PPT
8051 Microcontroller
PPTX
Dual Slope ADC.pptx
PPTX
8051 Microcontroller ppt
PPT
8051 block diagram
PPTX
Introduction to Embedded System I: Chapter 2 (5th portion)
PDF
Pulse amplitude modulation & demodulation
PPT
Arithmetic & logical operations in 8051
PPTX
Pulse width modulation (PWM)
PPT
Interfacing LCD with 8051 Microcontroller
PPTX
ADC & DAC
PPTX
Architecture of 8051
PPTX
Windowing techniques of fir filter design
PPT
Interrupt programming with 8051 microcontroller
Interfacing Stepper motor with 8051
Memory organization of 8051
Serial Communication in 8051
Discrete Time Fourier Transform
8051 Architecture and PIN Configuration.pdf
Subroutine in 8051 microcontroller
8051 Microcontroller
Dual Slope ADC.pptx
8051 Microcontroller ppt
8051 block diagram
Introduction to Embedded System I: Chapter 2 (5th portion)
Pulse amplitude modulation & demodulation
Arithmetic & logical operations in 8051
Pulse width modulation (PWM)
Interfacing LCD with 8051 Microcontroller
ADC & DAC
Architecture of 8051
Windowing techniques of fir filter design
Interrupt programming with 8051 microcontroller
Ad

Similar to DAC Interfacing with 8051.pdf (20)

PPTX
adcanddac hai kya bhayy me know if-01.pptx
PPTX
Digital to Analog Converter by LDCE students
PPTX
8051_interface_DAC.pptx for iii ece III ECE MPMC jntu k syllabus this is ver...
DOC
Unit iii microcontrollers final1
PPTX
FALLSEM2024-25_BEEE309L_TH_VL2024250101214_2024-10-05_Reference-Material-I.pptx
PDF
ADC and DAC interfacing.pdf
PPTX
Presentation1.pptx
PPTX
application of Mp traffic light LED LCD display.pptx
PPTX
Interfacing with peripherals: analog to digital converters and digital to ana...
PPTX
MODULE 5 VTU PPT Interfacing with 8051.pptx
PPTX
R2 r dac
PDF
Interfacing Analog to Digital Data Converters ee3404.pdf
PPTX
R-2R Ladder Digital to Analog Converter.pptx
PPT
DAC-digital to analog converter
PDF
analog to digital converter and dac final
PPTX
Exp 10 Waveform Generation using DAC0808 and 8085.pptx
PDF
8051interfacing 190425062221
PPTX
Analog to Digital .pptx
PPT
Data acquisition system
PDF
dac-180418111805 (1).pdf
adcanddac hai kya bhayy me know if-01.pptx
Digital to Analog Converter by LDCE students
8051_interface_DAC.pptx for iii ece III ECE MPMC jntu k syllabus this is ver...
Unit iii microcontrollers final1
FALLSEM2024-25_BEEE309L_TH_VL2024250101214_2024-10-05_Reference-Material-I.pptx
ADC and DAC interfacing.pdf
Presentation1.pptx
application of Mp traffic light LED LCD display.pptx
Interfacing with peripherals: analog to digital converters and digital to ana...
MODULE 5 VTU PPT Interfacing with 8051.pptx
R2 r dac
Interfacing Analog to Digital Data Converters ee3404.pdf
R-2R Ladder Digital to Analog Converter.pptx
DAC-digital to analog converter
analog to digital converter and dac final
Exp 10 Waveform Generation using DAC0808 and 8085.pptx
8051interfacing 190425062221
Analog to Digital .pptx
Data acquisition system
dac-180418111805 (1).pdf
Ad

More from Srikrishna Thota (16)

PDF
solar energy introduction.pdf
PDF
Types of Microcontrollers.pdf
PDF
Addressing modes of 8051.pdf
PDF
interrupts of 8051.pdf
PDF
Port Organization of 8051 .pdf
PDF
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
PDF
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
PDF
BInary Number Representation
PPTX
Number Base Conversion Digital Electronics
PDF
Operational amplifiers
DOCX
Digital Electronics Notes
DOCX
The 8255 PPI
DOCX
Microprocessor Interfacing and 8155 Features
DOCX
Analog to Digital Conversion Basics
DOCX
8259 programmable interrupt controller
DOCX
8085 interfacing with memory chips
solar energy introduction.pdf
Types of Microcontrollers.pdf
Addressing modes of 8051.pdf
interrupts of 8051.pdf
Port Organization of 8051 .pdf
DEVELOPMENT TOOLS FOR MICROCONTROLLERS.pdf
Interfacing of 8051 with 8255 Programmable Peripheral Interface.pdf
BInary Number Representation
Number Base Conversion Digital Electronics
Operational amplifiers
Digital Electronics Notes
The 8255 PPI
Microprocessor Interfacing and 8155 Features
Analog to Digital Conversion Basics
8259 programmable interrupt controller
8085 interfacing with memory chips

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Hazard Identification & Risk Assessment .pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
PPTX
Introduction to Building Materials
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
IGGE1 Understanding the Self1234567891011
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
A powerpoint presentation on the Revised K-10 Science Shaping Paper
What if we spent less time fighting change, and more time building what’s rig...
Hazard Identification & Risk Assessment .pdf
A systematic review of self-coping strategies used by university students to ...
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
Unit 4 Skeletal System.ppt.pptxopresentatiom
Practical Manual AGRO-233 Principles and Practices of Natural Farming
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study
Introduction to Building Materials
Weekly quiz Compilation Jan -July 25.pdf
IGGE1 Understanding the Self1234567891011
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc

DAC Interfacing with 8051.pdf

  • 1. Interfacing DAC with 8051 T.Srikrishna , M.Sc, M.Tech, GVP DAC Interfacing with 8051  The DAC is a device widely used to convert digital pulses to analog signals.  Here we will discuss the basics of interfacing a DAC to 8051.  In these systems MC generates output which is in digital form.  But the controlling system requires analog signal as they don't accept digital data.  Thus it necessary to use DAC which converts digital data into equivalent analog voltage.  In the figure shown, we use 8-bit DAC 0808.  This IC converts digital data into equivalent analog Current. Hence we require an I to V converter to convert this current into equivalent voltage.  The two methods of creating a DAC is Binary weighted and R/2R ladder network.  We will also see the triangular and square wave generation.
  • 2. Interfacing DAC with 8051 T.Srikrishna , M.Sc, M.Tech, GVP In the DAC0808, the digital inputs are converted to current (Iout), and by connecting a resistor and op-amp to the Iout pin, we convert the result to voltage Vo. According to theory of DAC Equivalent analog output is given as:
  • 3. Interfacing DAC with 8051 T.Srikrishna , M.Sc, M.Tech, GVP Exmple: 1. IF data =00H [00000000], Vref= 10V Therefore, V0= 0 Volts. 2. If data is 80H [10000000], Vref= 10V Therefore, V0= 5 Volts. Different Analog output voltages for different Digital signal is given as:
  • 4. Interfacing DAC with 8051 T.Srikrishna , M.Sc, M.Tech, GVP 8051 Assembly code to generate triangular wave ORG 0000H CLR A UP: INC A MOV P2,A CJNE A, #0FFH, UP DOWN: DEC A MOV P2,A CJNE A, #00, DOWN SJMP UP END 8051 Assembly code to generate SUARE wave ORG 0000H BACK MOV A, #00H UP; MOV P1,A CALL DELAY DOWN: MOV A,FFH MOV P1,A CALL DELAY SJMP BACK. DELAY: MOV R2,#0FFH WAIT: DJNZ R2, WAIT RET