We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello everybody, I am testing a program for AT89S54(AT89C51RB2) with uVision2.As you konwn,this chip has 768 bytes expanded RAM(XRAM).I want to use the XRAM for my program,but the XRAM space cannot be accessed. The site of AT89C51RB2:") REGFILE=AT89C51RB2.H("Atmel") SFILE="STARTUP.A51" ("Standard 8051 Startup Code") SIM=S8051.DLL DP51.DLL("-pATRB2") ____________________________________________________
And in the option of my project,I have defined as below. Selected__________________________________ _______Memory Model:[Large:varialble in XDATA] Checked BOX______________________ _______Use On-chip XRAM(0x0-0x3FF)
What should I do for setting uVision2?
Thanks in advance.
The array number :100 is decimal,not hex. my point exactly. how does an array nof 100d result in xdata=256. OH you are using the large model, I just can't visualize anyone doing that. That may explain the above.
anyhow, to use a chips "internal external data" :) you usually have to set some bit in some SFR in the beginning of startup (check your chips datasheet). It is a common misconception that that is done automatically by the assembler/compiler/linker.
Erik