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

OnChip ERAM and External RAM access from C51

I am using AT89C5131 uC with hardwaired external 32K RAM from address 0x0000 to 0x07fff. I am able to read/write OnChip 1K RAM and External connected RAM by toggling EXTRAM Bit in AUXR register.

I wanted to declare huge amount of varaiables in both the RAMs for my static arrays by using -at- keyword. How can I do this in ERAM?

Parents
  • Why do you want to use the _at_ keyword?
    I do (by other means) when using SILabs chips.

    This allow 'sorting' of variables so that the most frequently accessed ones are in the faster internal RAM.

    However, instead of using the _at_, which ever so easily lead to errors (overlap), what I do is to declare all RAM in an assembler module and have a .h module with all the extenals decalrations to it.

    Erik

Reply
  • Why do you want to use the _at_ keyword?
    I do (by other means) when using SILabs chips.

    This allow 'sorting' of variables so that the most frequently accessed ones are in the faster internal RAM.

    However, instead of using the _at_, which ever so easily lead to errors (overlap), what I do is to declare all RAM in an assembler module and have a .h module with all the extenals decalrations to it.

    Erik

Children
No data