0% found this document useful (0 votes)
31 views8 pages

Triangle Generator in Assembly

The document describes a microprocessor project to interface an 8086 microprocessor with a DAC1408A digital-to-analog converter to generate sawtooth or triangle signals between 500-1000Hz. It involves designing circuitry using latches and an operational amplifier to convert digital output from port 200h to analog voltages between -5V and +5V for the DAC. Assembly code is written to output changing values to generate the waveform shapes. The circuit implementation and functioning of serial and parallel communication interfaces are also explained.

Uploaded by

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

Triangle Generator in Assembly

The document describes a microprocessor project to interface an 8086 microprocessor with a DAC1408A digital-to-analog converter to generate sawtooth or triangle signals between 500-1000Hz. It involves designing circuitry using latches and an operational amplifier to convert digital output from port 200h to analog voltages between -5V and +5V for the DAC. Assembly code is written to output changing values to generate the waveform shapes. The circuit implementation and functioning of serial and parallel communication interfaces are also explained.

Uploaded by

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

Micro-processors Project

Interfacing 8086 with DAC 1408A

Name: Crisan Darius Ciprian Gr: 2031


Requirements:

Implement an interface with the goal of digital to


analog conversion of the signals using a digital to analog
converter on 8 bits connected at the port 200h. The
program must be written in assembly language. The code
is designed for generating sawtooth signals or triangle
signals with selectable frequencies (between 500Hz –
1000Hz) and amplitude of +5V/-5V.
Interfacing:
Interface is the path for communication between two components.
Interfacing is of two types, memory interfacing and I/O interfacing.

Memory Interfacing
When we are executing any instruction, we need the microprocessor
to access the memory for reading instruction codes and the data stored in
the memory. For this, both the memory and the microprocessor requires
some signals to read from and write to registers.
The interfacing process includes some key factors to match with the
memory requirements and microprocessor signals. The interfacing circuit
therefore should be designed in such a way that it matches the memory
signal requirements with the signals of the microprocessor.

IO Interfacing
There are various communication devices like the keyboard, mouse,
printer, etc. So, we need to interface the keyboard and other devices with
the microprocessor by using latches and buffers. This type of interfacing is
known as I/O interfacing.

There are two ways of communication in which the microprocessor


can connect with the outside world:
 Serial Communication Interface
 Parallel Communication interface

Serial Communication Interface


In this type of communication, the interface gets a single byte of data
from the microprocessor and sends it bit by bit to the other system serially
and vice-a-versa.
Parallel Communication Interface
In this type of communication, the interface gets a byte of data from
the microprocessor and sends it bit by bit to the other systems in
simultaneous (or) parallel fashion and vice-a-versa.

Circuit Implementation

Vcc = 5V Vee = -15V Vref = 5V


The hardware consists of:
 A 8086 microprocessor
 3 latches 74LS373 that work as a buffer and combined with some
gates implement the address 200h
 A Digital to Analog converter (DAC 1408A)
 An operational amplifier that converts the output current of the DAC
into voltage
Description of the circuit

We use only the least 12 significant ports of the 8086 to output


data at the address 200h (0010 0000). The latch1 and latch2 have
the purpose to accept data sent only to that specific address(200h). If
the address matches then the latch3 will be enabled and output the
data sent by the microprocessor.
The output of the latch3 goes into a bipolar DAC which will
output a current depending on the bits.

The DAC outputs current and there is need of an operational


amplifier with the purpose of converting the current to voltage.
When the input for the DAC is 00h the output is -4,98V.
When the input for the DAC is 80h the output is 0V.
When the input for the DAC is FFh the output is 4,98V.
The Assembly code

For triangle signal:

For sawtooth signal:


Bibliography:
https://www.tutorialspoint.com/microprocessor/microprocess
or_io_interfacing_overview.htm
http://www.techhelpmanual.com/221-
int_15h_86h__wait.html
http://www.oocities.org/mc_introtocomputers/Instruction_Tim
ing.PDF
http://dlsoftwareoc.blogspot.com/2015/05/how-to-interface-
1408-dac-to.html
https://www.youtube.com/watch?v=AtI7XgYwxnI
https://www.youtube.com/watch?v=7tnrC51y0do&t=484s

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