Topic : Regarding 8051 RAM addressing

Forum : 8051

Original Post
Post Information Post
November 6, 2008 - 5:30am
Guest

Hai,

The RAM address of

8051 Port 0 is 80h,

If i want to use as

bit addressing, we

need to use as

80h,81h,82h....,87h.

But the SP RAM

address is 81h,
DPL address is 82h,
DPH addressis 83h,

and
PCON is 87h.
I could not

understand, how can i

use this. I am using

RIDE for uC

programming.

for bit addressing i

need to specify the

RAM location,

If i assign like

P0_1=81h, then is it

refelect in SP or

not?

I could not

understand this

logic.

Please help me.

Thanks and Regards,
R.B. Raju

Replies
Post Information Post
+1
0
-1
November 10, 2008 - 2:23pm
Guest

RAM is directly addressable only between 00H and 80H. If you want to address the internal ram between 80H and 0FFH, you must use an indirect addressing mode. (using either R0 or R1 as pointer).
Only the range [20H,2FH] is bit addressable.