Interfacing Digital To Analog Converter For Genarating Square Waveform Aim

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Expt.

No:3

INTERFACING DIGITAL TO ANALOG CONVERTER FOR GENARATING SQUARE WAVEFORM

Aim:

To perform 8051 based DAC Interface experiment for generating Square waveform.

Program:

ADDRESS OPCODE LABEL INSTRUCTION

ORG 4100

4100 90 FF C8 MOV DPTR #FFC8

4103 74 00 START MOV A, #00

4105 F0 MOV @DPTR, A

4106 12 41 12 LCALL DELAY

4109 74 FF MOV A, #FF

410B F0 MOVX @DPTR, A

410C 12 41 12 LCALL DELAY

410F 02 41 03 LJMP START

4112 79 05 DELAY MOV R1, #05

4114 7A FF LOOP MOV R2, #FF

4116 DA FE HERE DJNZ R2, HERE

4118 D9 FA DJNZ R1, LOOP

411A 22 RET

411B 80 E6 SJMP START

Result:

Thus we can generate square waveform using 8051 based DAC interface.

38

You might also like