Home - Search - Members
Full Version: RTX51-FULL
Help
Jun 27 2008, 10:04 PM
Hi everyone,

I'm new on RTX51-full. When using RTX51-full, it need huge of xdata and code.

Q1: I'm using the mcu(c52) which is no xdata available. Is it still able to use RTX51?
Q2: currently i have using 62256 SRAM. Normaly i'm using XBYTE[] to transfer the data. but the RTX51 itself need xdata and code. What can i do?
Q3: How can i do? Is it i have to do some setting on keil compiler?

Thank you.
Ajay
Jun 28 2008, 8:11 AM
A1: use small memory model for your project.

A2: try not to use absolute addressing and accessing of memory when using RTX. instead use xdata keyword to store your variables in xram
e.g.
CODE:
unsigned char xdata x;
 


A3: Just go through the target settings once.. you will get your answer.
Help
Jun 28 2008, 7:55 PM
Hi,

Q1: use "small memory model" for my project mean i have to use idata or data. Normaly AT89C52 only use idata and data. This C52 doesn't support xdata.

Q2: i still not understand the A2. I'm using AT89C52, it don't have xram. Is it still can use xdata keyword on my coding? If this the case the AT89C52 can't use xdata do we still can using RTX?

Q3: Do you mean the "Off-chip Code memory" and "Off-chip Xdata memory" setting on Target tab? most of the time i didn't set the Eprom and Ram. Actually how to do the setting on there if i plan to use RTX51-Full on my code? Why we need to decide the memory? Please can you guide me...

Thank you.

I found some information about the space required for RTX51-Full.
http://www.iee.put.poznan.pl/zaklady/zneie/materialy/brock/8051/rtx51.pdf
CODE = 6-8 Kbytes
DATA = 40-46 Bytes
Stack (IDATA) = 20-200 Bytes
XDATA = 650 Bytes min
Is it AT89C52 possible to use RTX51-Full?
Ajay
Jun 30 2008, 4:40 AM
It would be better if you use RTX51 Tiny, here are the specifications of rtx tiny:

Maximum Number of Defined Tasks: 16
Maximum Number of Active Tasks: 16
Required CODE Space: 900 Bytes Max
Required DATA Space: 7 Bytes
Required STACK Space: 3 Bytes/Task
Required XDATA Space: 0 Bytes
Timer: 0
System Clock Divisor: 1,000-65,535
Interrupt Latency: 20 Cycles or Less
Context Switch Time: 100-700 Cycles
Help
Jul 3 2008, 8:30 PM
Hi fren..

Thank for ur advice...i wil try to use tiny..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Rickey's World © 2003 - 2007