The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL

IMMEDIATE ADDRESSING MODE(cont’)


‰We can use EQU directive to access immediate data ‰We can also use immediate addressing mode to send data to 8051 ports


Count EQU 30... ...MOV R4,#COUNT ;R4=1EHMOV DPTR,#MYDATA ;DPTR=200HORG 200H
MYDATA: DB “America”

MOV P1,#55H
Free download pdf