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

mapping SFR space

How would I locate a structure to coincide with the beginning of SFR space for the 8051? address 0x80 of directly assessible data memory.

We are using a core8051 (inside an FPGA), and the core8051 lets us map external events to SFR space. So it would be very convienent to define a structure which allows us to more easily access all of SFR space. (we take care not to "stomp" on already defined SFR registers.

How can I do that?

Thanks

Parents
  • We are using a core8051 (inside an FPGA), and the core8051 lets us map external events to SFR space.

    There is a '51 standard and all I can suggest is "deviate at your own risk"

    That some nonstandard practice is possible with a version of the compiler would, by many, be considered an error and thus you could find it fixed in the next release.

    My suggestion would be to limit the 'expanded possibilities' of the core8051 to what you see as 'normal differences' between derivatives of the '51 (added SFRs) - why do you need to I locate a structure to coincide with the beginning of SFR space why not just define whatever you have there as SFRs.

    erik

Reply
  • We are using a core8051 (inside an FPGA), and the core8051 lets us map external events to SFR space.

    There is a '51 standard and all I can suggest is "deviate at your own risk"

    That some nonstandard practice is possible with a version of the compiler would, by many, be considered an error and thus you could find it fixed in the next release.

    My suggestion would be to limit the 'expanded possibilities' of the core8051 to what you see as 'normal differences' between derivatives of the '51 (added SFRs) - why do you need to I locate a structure to coincide with the beginning of SFR space why not just define whatever you have there as SFRs.

    erik

Children
No data