Saturday, April 30, 2016

8051 Program – send ascii to port

; send ascii to port
; based on three io pins
ORG 0H
MAIN:
; get status
MOV A, P1
ANL A,#07H
LCALL SEND
SJMP MAIN
SEND:
MOV DPTR,#300H
MOVC A, @A+DPTR
MOV P2, A
RET
ORG 300H
DB '0','1','2','3','4','5','6','7'
END



Related topics:
8051 Program - logical operation   |   8051 Program - parity generation   |   8051 Program - polling an io pin   |   8051 Program - port loopback   |   8051 Program - serializing data   |   8051 Program - simple serial transmission   |   8051 Program - memory subroutines   |   8051 Program - math subroutines   |   8051 Program - conversion subroutines

List of topics: 8051

No comments:

Post a Comment