Keil™, An ARM® Company

Discussion Forum

how to use 256 Bytes on-chip RAM of 89c51rd2bn

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
nafis jalal
Posted
3-May-2005 11:56 GMT
Toolset
C51
New! how to use 256 Bytes on-chip RAM of 89c51rd2bn
hello,
i am using 89c51rd2BN from philips,i want to store 100 bytes of data as buffers,presently i am storing it in the RAM,however if the 128 byte RAM exceeds,what do i do,in datasheet of 89c51rd2 it says that 89c51rd2 has 256 Bytes on-chip RAM,and 768 Bytes on-chip XRAM,please let me know how do i use or access this memory.

regards,
nafis
Read-Only
Author
Jon Ward
Posted
9-May-2005 13:00 GMT
Toolset
C51
New! RE: how to use 256 Bytes on-chip RAM of 89c51rd2bn
To access the 128 bytes of on-chip data, define your variables with the DATA keyword.

To access the 256 bytes of on-chip idata, define your variables with the IDATA keyword.

To access the 768 bytes of on-chip xdata (xram), define your variables with the XDATA keyword.

This is all in the manual. Refer to


Jon
Read-Only
Author
erik malund
Posted
9-May-2005 13:40 GMT
Toolset
C51
New! RE: how to use 256 Bytes on-chip RAM of 89c51rd2bn
do you REALLY believe that asking again will give you answers you like better?

Erik
Read-Only
Author
Stefan Duncanson
Posted
9-May-2005 15:31 GMT
Toolset
C51
New! RE: how to use 256 Bytes on-chip RAM of 89c51rd2bn
Look at the date and time of the post and compare it with the date and time of the other post.
Read-Only
Author
erik malund
Posted
9-May-2005 15:40 GMT
Toolset
C51
New! RE: how to use 256 Bytes on-chip RAM of 89c51rd2bn
Look at the date and time of the post and compare it with the date and time of the other post.
they are 2 hours apart, why the above?

Erik
Read-Only
Author
Stefan Duncanson
Posted
9-May-2005 17:48 GMT
Toolset
C51
New! RE: how to use 256 Bytes on-chip RAM of 89c51rd2bn
"they are 2 hours apart, why the above?"

I sometimes wonder whether you bother to read anything carefully.

They are not 2 hours apart, they are 12 seconds apart. Obviously he pressed the 'Post' button twice by mistake.
Read-Only
Author
erik malund
Posted
9-May-2005 18:09 GMT
Toolset
C51
New! RE: how to use 256 Bytes on-chip RAM of 89c51rd2bn
oops, I looked at "last post" In another forum that column is "original post".

I am sorry, we all have accidentially double clicked.

Erik

Next Thread | Thread List | Previous Thread Start a Thread | Settings