Kamis, 08 Januari 2015

SOFTWARE NIM BERJLAN MIKROKONTROLEL AT8951


org 0h
start:
clr p3.5
clr p3.6
clr p3.7
mov p0,#11001111b
call delay
;
setb p3.5
clr p3.6
clr p3.7
mov p0,#10100100b
call delay
;
clr p3.5
setb p3.6
clr p3.7
mov p0,#10111111b
call delay
;
setb p3.5
setb p3.6
clr p3.7
mov p0,#11000000b
call delay
;
clr p3.5
clr p3.6
setb p3.7
mov p0,#10010010b
call delay
;
setb p3.5
clr p3.6
setb p3.7
mov p0,#10100100b
call delay
sjmp start
;=====================
;fdfgcdhn
;=====================
delay: mov R1,#255
del1: mov R2,#255
del2: djnz R2,del2
djnz R1,del1
ret
end

Tidak ada komentar:

Posting Komentar