.MMREGS
.TEXT
ldp #100h
splk #7FFH,00h
l3: out 00H,04h
call l1
splk #0FFH,01h
out 01h,04h
call l1
b l3
l1: lar ar3,#0FFh
l2: mar *,ar3
banz l2,*-
ret
TRIANGULAR
ldp #100h
splk #00h,00h
l3: lar ar2,#45h
l1: out 00h,04h
lacc 00h
add #15h
sacl 00h
mar *,ar2
banz l1,*-
lar ar2,#45h
l2: out 00h,04
lacc 00h
sub #15h
sacl 00h
mar *,ar2
banz l2 b l3
Hi.. Friends..
I've posted d program for triangular and square wave generation..
SQUARE WAVE
.MMREGS
.TEXT
ldp #100h
splk #7FFH,00h
l3: out 00H,04h
call l1
splk #0FFH,01h
out 01h,04h
call l1
b l3
l1: lar ar3,#0FFh
l2: mar *,ar3
banz l2,*-
ret
TRIANGULAR
ldp #100h
splk #00h,00h
l3: lar ar2,#45h
l1: out 00h,04h
lacc 00h
add #15h
sacl 00h
mar *,ar2
banz l1,*-
lar ar2,#45h
l2: out 00h,04
lacc 00h
sub #15h
sacl 00h
mar *,ar2
banz l2
b l3
This is d program hav to enter on to the kit..
Dont need to write old programs with opcode in exam..
(If you've written correctly ignore it)
--
With Regards
~V Saravanan~
Mail ids : vsara90@gmail.com
saravanan_veeran@yahoo.co.in
My Blogs : vs90.blogspot.com
ecesaravanan.blogspot.com
saravananveeran.weebly.com
I've posted d program for triangular and square wave generation..
SQUARE WAVE
.MMREGS
.TEXT
ldp #100h
splk #7FFH,00h
l3: out 00H,04h
call l1
splk #0FFH,01h
out 01h,04h
call l1
b l3
l1: lar ar3,#0FFh
l2: mar *,ar3
banz l2,*-
ret
TRIANGULAR
ldp #100h
splk #00h,00h
l3: lar ar2,#45h
l1: out 00h,04h
lacc 00h
add #15h
sacl 00h
mar *,ar2
banz l1,*-
lar ar2,#45h
l2: out 00h,04
lacc 00h
sub #15h
sacl 00h
mar *,ar2
banz l2
b l3
This is d program hav to enter on to the kit..
Dont need to write old programs with opcode in exam..
(If you've written correctly ignore it)
--
With Regards
~V Saravanan~
Mail ids : vsara90@gmail.com
saravanan_veeran@yahoo.co.in
My Blogs : vs90.blogspot.com
ecesaravanan.blogspot.com
saravananveeran.weebly.com
No comments:
Post a Comment