Nothing Special   »   [go: up one dir, main page]

Square Waveform

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 1 KHZ Square waveform.

Program:

OPCODE LABEL INSTRUCTION

START MOV DPTR #FFC8

MOV A, #00

MOV @DPTR, A

LCALL DELAY

MOV A, #FF

MOVX @DPTR, A

LCALL DELAY

LJMP START

DELAY MOV R1, #05

LOOP MOV R2, #FF

HERE DJNZ R2, HERE

DJNZ R1, LOOP

RET

Result:

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

You might also like