Topic : memory bank, program malfunctions on micrcontroller

Forum : 8051

Original Post
Post Information Post
September 19, 2010 - 5:04pm
Guest

As i have run out of registers, i am using memory locations to store the values of some variables. i am using the memory bank 30 to 7h. my code simulates as expected however it does not run correctly on the micrcontroller. i am reading a data from a peripheral. i probed with oscilloscope its signal at my micrcontroller port, it is as expected in my program. however my output is badly synchronised and does not work as expected although it simulatedsfine. any tips please because i am not able to fix it. i have found the following , which may be the cause of my problems although i don't understand what the author means by system stack

General Purpose RAM: 30h to 7Fh
These 80 bytes of Internal RAM memory are available for general-purpose data
storage. Access to this area of memory is fast compared to access to the main memory
and special instructions with single byte operands are used. However, these 80 bytes
are used by the system stack and in practice little space is left for general storage. The
general purpose RAM can be accessed using direct or indirect addressing modes.
Examples of direct addressing:

I am using RIDE for simulation and WinISP to download the configuration
cheers
Replies
Post Information Post
+1
0
-1
September 20, 2010 - 10:18am
Raisonance Support Team

Hi,

We would like to help you as quickly as possible on this issue, but we need to have more information about the problem before we can help further.

In order to understand the issue you are facing, we need the following information about your configuration:

- Version of Windows: At a command prompt type the following command: "systeminfo.exe", which gives you a system report. We need the full "Operating System" and "Version" from the report.

- Version of Ride7 and RKit-51 that you are using. You can get these from the Ride7 "Help | About" dialog box.

Please check from the Raisonance downloads page at http://www.mcu-raisonance.com/mcu_downloads.html that you are using the latest version of the tools.

Concerning your particular problem:

- Provide the steps you followed to raise the error.

- The precise error message you received, and which tool produced it. If possible, a screenshot of the message (using the PrtScr keyboard key) is helpful.

- If possible, can you send us a zip containing your whole project so that we can experiment with it in our Labs?

Please let us know when the problem has been solved satisfactorily.

Regards,

+1
0
-1
September 20, 2010 - 5:29pm
Guest

thanks BRUNO but i have fixed the problem with a better sync code. thank you for your help