Discussion in "Project Help" started by    erez44    Mar 28, 2013.
Thu Mar 28 2013, 10:06 PM
#1
hello i want to understand how the memory is organize i know that i have rom and ram.
but inside ram i have data memory and idata memory what is the difference are they the same memory?
Fri Mar 29 2013, 06:23 AM
#2
in 8051 you only have data memory no idata as it only have 128 bytes of ram. Whereas if you go for 8052 architecture where you have 256 bytes or ram. lower 128 bytes are data and upper 128 bytes are idata.

Now the name data and idata differs in the way you can address them. idata can only be addressed indirectly i.e. using r0, r1 registers are pointers. e.g.
mov r0, #81h ;load r0 with 81h memory location
mov a, @r0 ;read 81H location


whereas data location can be accessed directly/indirectly i.e. method shown above and direct method e.g.
mov a, 7fH


The reason idata can only be addressed indirectly, coz they overlap the SFR memory area. so if you access upper 128 bytes directly you read SFR region whereas if you read them indirectly you read idata region. Usually when writing assembly programs, idata is used for stack and lookup tables etc.

Hope this has helped you understanding difference in both memories If you have any question do post again.
Tags 8051 memory organization8051 idata and data memory differencekeil idata region8051 idata memory
Fri Mar 29 2013, 05:09 PM
#3
thanks mister i appreciate your answer do you know where i find material to read about it?
Sat Mar 30 2013, 10:03 PM
#4
Just Google
memory organization 8051
Tue Apr 02 2013, 11:02 AM
#5
or just read MCS51/8051 user manual. Download it from here:
http://www.8051projects.net/download-c16-8051-ebooks-tutorials.html

Get Social

Information

Powered by e107 Forum System

Conversation

No messages yet.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 94, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123