Discussion in "8051 Discussion Forum" started by    scorcho    Oct 29, 2007.
Mon Oct 29 2007, 03:30 AM
I have a few functions in my 8051 firmware that have a few byte parameters in them, and I noticed that these parameters are stored in DATA space, making me run out of DATA space since I only have 128bytes to work with.

Is there any way of storing these parameters in xdata instead? I noticed that I'm only able to store byte pointers to xdata by using the "xdata" qualifier. The qualifier doesn't work on regular byte parameters.
Mon Oct 29 2007, 03:39 AM
OK, I tried declaring the functions as large and now they don't use DATA but rather xdata, with a slight increase in code space. Other than this are there any other implications?

The project is built using the small memory model if that makes a difference.
Mon Oct 29 2007, 05:41 AM
use linker script to link your data and code space according to your needs.. that might help you..

do you have xram on board?

Get Social


Powered by e107 Forum System


Mon Apr 12 2021, 11:54 AM
Joe N
I have recently launched my own site, and I am looking to provide value for you for free, by giving away 26 professional level blog post templates (worth $297).
Mon Apr 12 2021, 09:24 AM
Hey, I think your site might be having browser compatibility issues. When I look at your website in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, very good blog! https://onanadiete.ru/alpha-numeric-reasoning-questions-and-answers-pdf.pdf alpha numeric reasoning questions and answers pdf alpha numeric reasoning questions and answers pdf



Thu Jun 25 2020, 03:46 PM
Mon Jun 22 2020, 03:03 PM
Tue Jun 16 2020, 05:10 PM
Sat Jun 13 2020, 09:43 PM
Thu May 21 2020, 12:44 PM
Thu May 21 2020, 01:28 AM
Wed May 20 2020, 07:05 PM
Wed May 20 2020, 11:52 AM


Guests: 109, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123