0% found this document useful (0 votes)
438 views

Lecture 8255 Interfacing DAC Seven Segment Display

The document discusses digital to analog conversion and interfacing input and output devices with microprocessors. It describes how digital to analog converters convert binary numbers to equivalent voltages. It also provides examples of programs to generate waveforms and algorithms for interfacing devices. Specifically, it presents programs for a sawtooth wave generator and square wave generator, and discusses interfacing techniques for input devices like DIP switches and output devices using address decoding and control signals.

Uploaded by

AnadiKashyap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
438 views

Lecture 8255 Interfacing DAC Seven Segment Display

The document discusses digital to analog conversion and interfacing input and output devices with microprocessors. It describes how digital to analog converters convert binary numbers to equivalent voltages. It also provides examples of programs to generate waveforms and algorithms for interfacing devices. Specifically, it presents programs for a sawtooth wave generator and square wave generator, and discusses interfacing techniques for input devices like DIP switches and output devices using address decoding and control signals.

Uploaded by

AnadiKashyap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

D/A INTERFACING

D/A Interfacing
• The digital to analog converters convert binary
number into their equivalent voltages.
• The DAC find applications in areas like digitally
controlled gains, motors speed controls,
programmable gain amplifiers etc.
D/A Interfacing
D/A Interfacing
D/A Interfacing
D/A Interfacing Program
• MVI A,98h
• OUT 83H
• LXI H, 9000H
• MOV A,M
• OUT 81H
• HLT

6
Program for saw tooth wave
• MVI A,98h
• OUT 83H
• MVI A,OOH
• LOOP:OUT 81H
• INR A
• JMP LOOP
HLT

7
ALGORITHM for Square wave generator

• SEND A VALUE 0 TO PORT A


• DELAY 500MICRO SEC
•SEND A VLAUE FFH TO PORT A(FOR +5V)
•REPEAT CYCLE INDIFINITELY

8
Program for square wave
• MVI A,98h
• OUT 83H
• LOOP:MVI A,OOH
• OUT 81H
• CALL DELAY1
• MVI A,FFH
• OUT 81H
• CALL DELAY1
• JMP LOOP
HLT 9
11
INTERFACING OF INPUT DEVICE

DEEPAK.P 13
INTERFACING OF INPUT DEVICE

• The address lines are decoded to generate a signal


that is active when the particular port is being
accessed.

• An IORD signal is generated by combining the


IO/M and the RD signals from the microprocessor.

DEEPAK.P 14
A0

A7

DEEPAK.P 15
DIP Switch

DEEPAK.P 16
Active Low
DEEPAK.P 17
INTERFACING OUTPUT DEVICES
INTERFACING OF OUTPUT DEVICE

DEEPAK.P 19
I/P device Tri state
Buffer

AD0- AD7 D0- D7


O/P
device
1

I/O/ M Not Using


1
1
WR Active High
DEEPAK.P 20
INTERFACING OF OUTPUT DEVICE

• The address lines are decoded to generate a signal


that is active when the particular port is being
accessed.

• An IOWR signal is generated by combining the


IO/M and the WR signals from the microprocessor.

DEEPAK.P 21
INTERFACING OF OUTPUT DEVICE

DEEPAK.P 22
INTERFACING OF OUTPUT DEVICE

DEEPAK.P 23
INTERFACING OF OUTPUT DEVICE

DEEPAK.P 24
INTERFACING OF OUTPUT DEVICE

DEEPAK.P 25
INTERFACING OF OUTPUT DEVICE

DEEPAK.P 26

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy