M

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

START: CLR P1.

0
MOV R3, #00H
LOOP: MOV A, R3
ACALL CONVERT
MOV P1, A
ACALL DELAY
INC R3
CJNE R3, #0AH, NEXT
SJMP START
NEXT: SJMP LOOP
CONVERT:INC A
RET
DELAY: MOV R2,#0AH
LOOP1: MOV R1,#0C8H
LOOP4 : MOV R0,#0FFH
WAIT : DJNZ R0,WAIT
DJNZ R1,LOOP4
DJNZ R2,LOOP1

You might also like