SlideShare a Scribd company logo
1 of 9
Experiment No. 10
Waveform Generation
using DAC0808 and 8085
Statement:
1. I/O addresses of PA, PB, PC & CWR are set to 80H-83H
respectively. Interface DAC0808 to Port A of 8255. Write an ALP
to generate:
A) Square Wave B) Triangular Wave
00H
FFH
00H
FFH
DAC0808 Interfacing to 8085 using 8255
8085 8255 PA
DAC
0808
CRO
Theory:
DAC0808 is 8-bit DAC which means Input is 8-bit Digital & Output is
Analog.
Digital Input Range 00H – FFH (0 to 255 in Decimal)
Analog Output Range 0 – 5V
So, Step Size = 5/255
= 0.01960
≈ 20mV
DAC0808 Interfacing to 8085 using 8255
Flow Chart Start
Initialize PA as an OUTPUT Port
Send A to PA
Call Delay
Clear Accumulator
DAC0808 Interfacing to 8085 using 8255
Complement Accumulator
Address Label Instruction
7100,1 DELAY: MVI C,FFH
2 DCR C
3,4,5 JNZ UP
6 RET
Address Label Instruction
6B00, 1 MVI A,80H
2,3 OUT CWR
4 XRA A
5,6 OUT PA
7,8,9 CALL DELAY
A CMA
B,C,D JMP UP1
E RST1
UP:
UP1:
DAC0808 Interfacing to 8085 using 8255
Flow Chart
Start
Initialize PA as an OUTPUT Port
Send A to PA
Increment Accumulator by 1
X
X
Send A to PA
A=00?
Yes
No
Decrement Accumulator by 1
DAC0808 Interfacing to 8085 using 8255
A=FF?
Yes
No
Address Label Instruction
6B00,1 MVI A,80H
2,3 OUT CWR
4 INR A
5,6 OUT PA
7,8 CPI FFH
9,A,B JNZ RISE
4 DCR A
5,6 OUT PA
7,8 CPI 00H
9,A,B JNZ FALL
C,D,E JMP RISE
F RST1
RISE:
DAC0808 Interfacing to 8085 using 8255
FALL:

More Related Content

Similar to Exp 10 Waveform Generation using DAC0808 and 8085.pptx

Unit iii microcontrollers final1
Unit iii microcontrollers final1Unit iii microcontrollers final1
Unit iii microcontrollers final1Saritha Reddy
 
Io (2)
Io (2)Io (2)
Io (2)Aisu
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programmingsandip das
 
Microprocessor based Temperature Controller
Microprocessor based Temperature ControllerMicroprocessor based Temperature Controller
Microprocessor based Temperature ControllerRevanth Reddy
 
Microprocessors and Microcontrollers 8086 Pin Connections
Microprocessors and Microcontrollers 8086 Pin ConnectionsMicroprocessors and Microcontrollers 8086 Pin Connections
Microprocessors and Microcontrollers 8086 Pin ConnectionsJason J Pulikkottil
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfVikasMahor3
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORSubash Sambath Kumar
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfSrikrishna Thota
 
4 20m a-current_loop_for_ppt_ppt-r_an-102 (1)
4 20m a-current_loop_for_ppt_ppt-r_an-102 (1)4 20m a-current_loop_for_ppt_ppt-r_an-102 (1)
4 20m a-current_loop_for_ppt_ppt-r_an-102 (1)vivekverma357
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptxISMT College
 
VIPA SLIO Introduction
VIPA SLIO IntroductionVIPA SLIO Introduction
VIPA SLIO IntroductionJimmy Hsu
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
Advanced motion controls bdc40a20
Advanced motion controls bdc40a20Advanced motion controls bdc40a20
Advanced motion controls bdc40a20Electromate
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :PJathin Kanumuri
 

Similar to Exp 10 Waveform Generation using DAC0808 and 8085.pptx (20)

Presentation1.pptx
Presentation1.pptxPresentation1.pptx
Presentation1.pptx
 
Unit iii microcontrollers final1
Unit iii microcontrollers final1Unit iii microcontrollers final1
Unit iii microcontrollers final1
 
Io (2)
Io (2)Io (2)
Io (2)
 
Diljit.pdf
Diljit.pdfDiljit.pdf
Diljit.pdf
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programming
 
Microprocessor based Temperature Controller
Microprocessor based Temperature ControllerMicroprocessor based Temperature Controller
Microprocessor based Temperature Controller
 
Lec14
Lec14Lec14
Lec14
 
abc song
abc songabc song
abc song
 
Microprocessors and Microcontrollers 8086 Pin Connections
Microprocessors and Microcontrollers 8086 Pin ConnectionsMicroprocessors and Microcontrollers 8086 Pin Connections
Microprocessors and Microcontrollers 8086 Pin Connections
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Class7
Class7Class7
Class7
 
4 20m a-current_loop_for_ppt_ppt-r_an-102 (1)
4 20m a-current_loop_for_ppt_ppt-r_an-102 (1)4 20m a-current_loop_for_ppt_ppt-r_an-102 (1)
4 20m a-current_loop_for_ppt_ppt-r_an-102 (1)
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx
 
VIPA SLIO Introduction
VIPA SLIO IntroductionVIPA SLIO Introduction
VIPA SLIO Introduction
 
Lec12
Lec12Lec12
Lec12
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
Advanced motion controls bdc40a20
Advanced motion controls bdc40a20Advanced motion controls bdc40a20
Advanced motion controls bdc40a20
 
microp-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :Pmicrop-8085 74 instructions for mct-A :P
microp-8085 74 instructions for mct-A :P
 

More from Manoj Babar

Exp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxExp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxManoj Babar
 
Exp 7 IO & BSR Mode.pptx
Exp 7 IO & BSR Mode.pptxExp 7 IO & BSR Mode.pptx
Exp 7 IO & BSR Mode.pptxManoj Babar
 
Exp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxExp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxManoj Babar
 
Exp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxExp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxManoj Babar
 
Exp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxExp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxManoj Babar
 
Exp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxExp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxManoj Babar
 
Addition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorAddition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorManoj Babar
 
8051 addressing modes & instruction set
8051 addressing modes & instruction set8051 addressing modes & instruction set
8051 addressing modes & instruction setManoj Babar
 
8255 mode 1 & 2
8255 mode 1 & 28255 mode 1 & 2
8255 mode 1 & 2Manoj Babar
 

More from Manoj Babar (9)

Exp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxExp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptx
 
Exp 7 IO & BSR Mode.pptx
Exp 7 IO & BSR Mode.pptxExp 7 IO & BSR Mode.pptx
Exp 7 IO & BSR Mode.pptx
 
Exp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxExp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptx
 
Exp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxExp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptx
 
Exp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxExp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptx
 
Exp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxExp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptx
 
Addition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorAddition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessor
 
8051 addressing modes & instruction set
8051 addressing modes & instruction set8051 addressing modes & instruction set
8051 addressing modes & instruction set
 
8255 mode 1 & 2
8255 mode 1 & 28255 mode 1 & 2
8255 mode 1 & 2
 

Recently uploaded

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 

Recently uploaded (20)

Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 

Exp 10 Waveform Generation using DAC0808 and 8085.pptx

  • 1. Experiment No. 10 Waveform Generation using DAC0808 and 8085
  • 2.
  • 3. Statement: 1. I/O addresses of PA, PB, PC & CWR are set to 80H-83H respectively. Interface DAC0808 to Port A of 8255. Write an ALP to generate: A) Square Wave B) Triangular Wave 00H FFH 00H FFH
  • 4. DAC0808 Interfacing to 8085 using 8255 8085 8255 PA DAC 0808 CRO
  • 5. Theory: DAC0808 is 8-bit DAC which means Input is 8-bit Digital & Output is Analog. Digital Input Range 00H – FFH (0 to 255 in Decimal) Analog Output Range 0 – 5V So, Step Size = 5/255 = 0.01960 ≈ 20mV DAC0808 Interfacing to 8085 using 8255
  • 6. Flow Chart Start Initialize PA as an OUTPUT Port Send A to PA Call Delay Clear Accumulator DAC0808 Interfacing to 8085 using 8255 Complement Accumulator
  • 7. Address Label Instruction 7100,1 DELAY: MVI C,FFH 2 DCR C 3,4,5 JNZ UP 6 RET Address Label Instruction 6B00, 1 MVI A,80H 2,3 OUT CWR 4 XRA A 5,6 OUT PA 7,8,9 CALL DELAY A CMA B,C,D JMP UP1 E RST1 UP: UP1: DAC0808 Interfacing to 8085 using 8255
  • 8. Flow Chart Start Initialize PA as an OUTPUT Port Send A to PA Increment Accumulator by 1 X X Send A to PA A=00? Yes No Decrement Accumulator by 1 DAC0808 Interfacing to 8085 using 8255 A=FF? Yes No
  • 9. Address Label Instruction 6B00,1 MVI A,80H 2,3 OUT CWR 4 INR A 5,6 OUT PA 7,8 CPI FFH 9,A,B JNZ RISE 4 DCR A 5,6 OUT PA 7,8 CPI 00H 9,A,B JNZ FALL C,D,E JMP RISE F RST1 RISE: DAC0808 Interfacing to 8085 using 8255 FALL: