electronics blog
Sunday, 29 December 2013
XL2000 8051 development board exp.12 Digital to Analog converter DAC0832 lcn tutorial assembly code
ORG 0080h
MAIN: mov a,#0
MOV DPTR,#07FFFH
MOV R1,#0ah
LP: MOVX @DPTR,A ;address selection
ACALL DELAY ;
djnz r1,next
sjmp main
next :
ADD A,#10 ;increase gradient of 19H
sjmp lp
DELAY: ;
D2: MOV 31H,#0FFH
D1: DJNZ 31H,D1
RET
END
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment