This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SFR details

i have a doubt in SFR. in SFR address for PORT 0 is 0x80;
and P0_1=0x81; that means first pin of the port 0.

For stack pointer address in the 8051 is 0x81, and how it working with this same address please explain all it.

sbit P0_1 = 0x81 and sfr SP = 0x81 is same or not

  • Time to start suspecting that there are processor architectures that have multiple address spaces, and that the same offset, when used in the different address spaces might address completely different things.

    And when that suspicion gets strong enough, it might be time to look for the architecture documentation and see if the suspicion is true or not.