Saturday, August 27, 2011

WAP in 8051 to transfer block of data from internal memory location to external memory location


; PROGRAMM STARTS HERE
MOV R0, #30H ; STORE MEMORY LOCATION
MOV A, #00H ; CLEAR ACCUMULATOR
MOV R7, #07H ; COUNTER
MOV DPTR, #0200H; EXTERNAL ADDRESS
BACK :  MOV A, @R0 ; MOVE FROM INTERNAL TO ACCUMULATOR
MOVX @DPTR, A ; MOVE FROM ACCUMULATOR TO EXTERNAL ADDRESS
INC R0 ; INCREMENT INTERNAL ADDRESS
INC DPTR ; INCREMENT EXTERNAL ADDRESS
DJNZ R7, BACK ; COUNT THE LOOP
END

4 comments:

  1. Thanks for the program. It really helped me out

    ReplyDelete
  2. Please write code to 8051 send external memory to internal memory

    ReplyDelete
  3. Transfer the block of data from 20h to 30h to external location 1020h to 1030h using 8051 Microcontroller

    ReplyDelete