Discussion in "8051 Discussion Forum" started by    dbendov    Apr 6, 2014.
Sun Apr 06 2014, 03:17 pm
#1
Hi all,

I am trying to copy a block of fata from one of my external memory to another.

The problem is, that there is only one dptr => i can't use a loop.
The dst exmemory address is fixed and doesn't change.

is there anyway to overcome this problem?
Mon Apr 07 2014, 11:24 am
#2
You can use 8-bit Data pointers if your size of block is less than 256 bytes. use instruction:
MOVX A, @Ri
where Ri can be R0 or R1
so you can access address range from XX00 to XXFFH, XX is MSB which can be configured prior to reading/writing on Port 2.

else you need to maintain memory addresses somewhere in RAM if using one DPTR.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am
Patricknoind
Fri May 17 2024, 09:53 am
JeremyCycle
Fri May 17 2024, 09:46 am
FrabSeby
Thu May 16 2024, 07:31 pm
PeterGem
Thu May 16 2024, 06:27 am
Timothywalay
Thu May 16 2024, 04:40 am