Sine Wave Generation using 8051 - Assembly Program Code - Proteus Stimulation - Keil


The program is stimulated in proteus, compiled in Keil for 8051 - AT89C51 in assembly language.

Program for generating sine wave with 8051 in assembly language using proteus and uvision,

Flowchart:-



Proteus Stimulation:-



Program:-

ORG 00H
AGAIN: MOV DPTR,#VOLTDAC
MOV R2, #24
MOV R3,#24
BACK: CLR A
MOVC A,@A+DPTR
MOV P3, A
MOV A,R3
MOV A,@A+DPTR
MOV P2,A
INC DPTR
DJNZ R2, BACK
SJMP AGAIN
ORG 30H
VOLTDAC: DB 128,161,192,219,238, 244,255,244,238,219, 192,161,128
DB 95.64.38 17,4,0,4,17 38,64,95
DB 255,244,238,219, 192,161,128,95,64 38,174,0,4, 17,38,64,95
DB 128,161,192,219,238,244
END

For more ASM programs - click here

Popular posts from this blog

Mini Militia Chat Codes - Shortforms

8051 Assembly Program Code for Sorting in Ascending Order - Keil -AT89C51