Device definitions

Do Keil C51/A51 define the target device somehow? I can't seem to find anything in the docco. I was thinking there should exist something like __DEVICE__ as a predfined macro.

Parents
  • "Do Keil C51/A51 define the target device somehow?"

    No, they don't.

    ALL the SFRs, etc, are defined by include files.

    There is nothing special or magic about these headers - you can write your own, if you wish.

    There are some device-specific options (eg, for extended addressing modes) - see the Manuals for these

Reply
  • "Do Keil C51/A51 define the target device somehow?"

    No, they don't.

    ALL the SFRs, etc, are defined by include files.

    There is nothing special or magic about these headers - you can write your own, if you wish.

    There are some device-specific options (eg, for extended addressing modes) - see the Manuals for these

Children
More questions in this forum