Computer Science, asked by sufisayed5098, 1 year ago

Write assembly language program to interface dac with 8086 microprocessor

Answers

Answered by Anonymous
3
hii dear

here ur !aswer!!

▪OUTPUT:OUT DX,ALCALL DELAYINT 21HDELAY:MOV CX,0FFH ;

To vary through frequency alter the delay countLUP1 LOOP LUP1INT 21HEND START;


TRIANGULAR WAVE GENERATOR with 8086 using 8255

MODEL SMALL.STACK 100.DATACONTROL EQU 0FFC6H ; Control port address for

8255PORTA EQU 0FFC0H ; Port A address for 8255PORTB EQU 0FFC2H ; Port B address for 8255PORTC EQU 0FFC4H ; Port C address for 8255.CODESTART:MOV

DX,CONTROLMOV AL,80H ; Initialize all ports as outputOUT DX,AL ; PortsBEGIN:MOV DX,PORTBMOV AL,00H ; Output 00 for 0V levelUP: CALL OUTPUTINC AL ;

To raise wave from 0V to 5V increment ALCMP AL,00HJNZ UP ; Jump UP till rising edge is reached i.e.

5VMOV AL,0FFHUP1: CALL OUTPUTDEC AL ;

To fall wave from 5V to 0V decrement ALCMP AL,0FFHJNZ UP1 ;

Jump UP till falling edge is reached i.e.

0VJMP BEGINOUTPUT:OUT DX,ALCALL DELAYINT 21HDELAY

#hope.help u plz mark brainlist#
___________________________
#HACKER#
Similar questions