free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Help
Fri Jun 27 2008, 10:04PM
 User Offline
Registered Member #880
Joined: Sat Mar 31 2007, 09:40PM

Posts: 54
Thanked 1 time in 1 posts
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.

Back to top


Ajay
Sat Jun 28 2008, 08:11AM
Rickey's World Admin

 User Online

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3686
Thanked 685 times in 647 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 Help 
Help
Sat Jun 28 2008, 07:55PM
 User Offline
Registered Member #880
Joined: Sat Mar 31 2007, 09:40PM

Posts: 54
Thanked 1 time in 1 posts
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?


[ Edited Sun Jun 29 2008, 12:02AM ]
Back to top


Ajay
Mon Jun 30 2008, 04:40AM
Rickey's World Admin

 User Online

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3686
Thanked 685 times in 647 posts
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


www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 Help 
Help
Thu Jul 03 2008, 08:30PM
 User Offline
Registered Member #880
Joined: Sat Mar 31 2007, 09:40PM

Posts: 54
Thanked 1 time in 1 posts
Hi fren..

Thank for ur advice...i wil try to use tiny..
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems