CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

preemptive Multitasking

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ted Ems



Joined: 30 Dec 2003
Posts: 9

View user's profile Send private message

preemptive Multitasking
PostPosted: Wed Jul 12, 2006 8:29 am     Reply with quote

The instruction bit_test(a,b) uses scratch area in ram. Can that area be determined at compile time. Or in a multitasking environment can an area be reserved for scratch for those instructions.


thanks
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Jul 12, 2006 9:45 am     Reply with quote

Not in the code I have looked at recently. You might want to recheck your assumptions.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 12, 2006 1:05 pm     Reply with quote

See this post by Ttelmah:
http://www.ccsinfo.com/forum/viewtopic.php?t=27348&highlight=interrupt+scratch

Other possibilities:
Write your own functions in low-level C, so that you assign and control
the RAM used by them.
Ted Ems



Joined: 30 Dec 2003
Posts: 9

View user's profile Send private message

Preemptive multitasking
PostPosted: Wed Jul 12, 2006 7:36 pm     Reply with quote

PCM programmer
Thats exactly the way i am getting around this problem. Where did you find the information about the scratch area and when and what uses those areas?


Asmallri
You may be right i will take back that assumption.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 12, 2006 8:33 pm     Reply with quote

That is Ttelmah's post so I'll let him answer.
Ttelmah
Guest







PostPosted: Thu Jul 13, 2006 4:06 am     Reply with quote

The start of the 'scratch' area, is defined in the chip setup (Tools, device editor, C Scratch RAM). Beyond this, as far as I know, it is just a matter of searching the listing. Historically there seem to be five locations in 'common' use (0 to 4). I'm afraid I don't know of any 'magic tool', that can tell you how much is used by particular functions...

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group