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

AT89C51ED2 startup code for large XRAM

Does anyone have an example of a startup.a51 file or any other method of initialising the XRAM to maximum 1792 byte size on an Atmel AT89C51ED2?

  • Don't the instructions (in the comments) in startup.a51 tell you everything you need to know?

  • Hi Andy,

    Thanks for the reply.

    I can't work out the 1792 byte XRAM setup for the AT89C51XD2.

    I can't find anything other than a size in startup.a51. I think that should be 0x700.

    There's also 3 bits in an 'AUXR' register which must be set with the MSB high, but I'm not sure when these bits need to be set by, or really how to set them. Nothing I try seems to work!

  • There's also 3 bits in an 'AUXR' register which must be set with the MSB high, but I'm not sure when these bits need to be set by, or really how to set them.
    They need to be set at the very beginning of Startup (right after STARTUP1:) what bits to set the datasheet will tell you.

    Nothing I try seems to work!
    I guess you have been setting thr bits in the wrong place OR have not included/changed to your modified startup by its name in the assembly/link sequence by whatever method you use.

    Erik