For full Videos Subscribe to our YouTube Channel
For YouTube channel Click Here
WRITE ASSEMBLY LANGUAGE PROGRAM TO
USE PORT PIN FOR SIMPLE APPLICATION
ORG 0000H
MOV A,#55H
BACK: MOV P0,A
ACALL DELAY
CPL A
SJMP BACK
ORG 0050H
DELAY: MOV TMOD,#10H
MOV TH1,#00H
MOV TL1,#00H
SETB TR1
RET
END
WRITE ASSEMBLY LANGUAGE PROGRAM TO RECEIVE FROM PORT 1 AND SAVED IN R7,R6 AND R5
ORG 0000H
MOV A,#03H
MOV P1,A
MOV A,P1
MOV R7,A
ACALL DELAY
MOV A,P1
MOV R6,A
ACALL DELAY
MOV A,P1
MOV R5,A
ACALL DELAY
DELAY: MOV TMOD,#10H
MOV TH1,#00H
MOV TL1,#00H
SETB TR1
RET
END
For YouTube channel Click Here
WRITE ASSEMBLY LANGUAGE PROGRAM TO
USE PORT PIN FOR SIMPLE APPLICATION
ORG 0000H
MOV A,#55H
BACK: MOV P0,A
ACALL DELAY
CPL A
SJMP BACK
ORG 0050H
DELAY: MOV TMOD,#10H
MOV TH1,#00H
MOV TL1,#00H
SETB TR1
RET
END
WRITE ASSEMBLY LANGUAGE PROGRAM TO RECEIVE FROM PORT 1 AND SAVED IN R7,R6 AND R5
ORG 0000H
MOV A,#03H
MOV P1,A
MOV A,P1
MOV R7,A
ACALL DELAY
MOV A,P1
MOV R6,A
ACALL DELAY
MOV A,P1
MOV R5,A
ACALL DELAY
DELAY: MOV TMOD,#10H
MOV TH1,#00H
MOV TL1,#00H
SETB TR1
RET
END