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

sram interfacing & c code.

i am using keil microvision 2 . i want to interface 64kb sram with 8051 suggest me
code . i know hardware interfacing but i am confused among xdata ,compact,small,large
memory models suggest me how to use this with example.

Parents
  • It seems that you want to use this 64kb SRAM as your external ram.If you have connected it to your MCU in hardware.You can just use it and just need a little setting:

    Open your project with uV2.Enter project/options for target 'target 1'
    (for example,replace 'target 1' with your own target name)

    set the Off chip XDATA memory option according to your hardware connection.

    Then you can set the Memory model to anyone of the small,compact,large.
    Their differs in memory allocation during compiling.You can refer to the c51.pdf or gs51.pdf to get a cleaner understanding.

Reply
  • It seems that you want to use this 64kb SRAM as your external ram.If you have connected it to your MCU in hardware.You can just use it and just need a little setting:

    Open your project with uV2.Enter project/options for target 'target 1'
    (for example,replace 'target 1' with your own target name)

    set the Off chip XDATA memory option according to your hardware connection.

    Then you can set the Memory model to anyone of the small,compact,large.
    Their differs in memory allocation during compiling.You can refer to the c51.pdf or gs51.pdf to get a cleaner understanding.

Children
No data