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 support@ccsinfo.com

csRtos ported to PIC - first file main.c
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> Code Library
View previous topic :: View next topic  
Author Message
leong



Joined: 28 Sep 2005
Posts: 5

View user's profile Send private message

periodic tasks?
PostPosted: Sat Oct 08, 2005 9:17 pm     Reply with quote

you guys are doing some fabulous work. I'm a beginner but I would like to ask a question about the periodic scheduling. As I read through the code, each task would be run as often as possible and being suspended by os as necessary. Is there any periodic scheduling mechanism included in this os? or shall i add periodic software interrupts on top of the codes would serve the purpose? thanks.
_________________
wooohooo...
RobM



Joined: 29 Apr 2005
Posts: 13
Location: Santa Cruz, CA

View user's profile Send private message

Re: periodic tasks?
PostPosted: Mon Oct 10, 2005 11:05 am     Reply with quote

I've been traveling, sorry for the delay in replying.

leong wrote:
you guys are doing some fabulous work.

Embarassed thanks!
Quote:
="leong"I'm a beginner but I would like to ask a question about the periodic scheduling. As I read through the code, each task would be run as often as possible and being suspended by os as necessary. Is there any periodic scheduling mechanism included in this os? or shall i add periodic software interrupts on top of the codes would serve the purpose? thanks.


I had to read through the comments several times to understand the available resources. An important point is that the os does not suspend the task. Each task must relinquish control by calling osWait(), osYeild(), osWAITSEMA, osWAITEVENT or osSUSPEND() (do I have them all?) Then the os will manage the details of when the task is started again.

Most types of scheduling can be handled with the above, but when you say "periodic scheduling" you mean "every second on the second" (for example) there is no direct way to do this.

Does this help?
_________________
Rob
_______
mhahn@hvc.rr.com



Joined: 03 Jan 2005
Posts: 9
Location: upstate NY

View user's profile Send private message

anybody used the new ccs RTOS?
PostPosted: Tue Oct 25, 2005 1:06 pm     Reply with quote

Hey everybody,

I'm pretty much thinking of dropping any more work using csRtos now that CCS has released their RTOS. Of course I'll need to pay for another years worth of updates

Sad

Has anybody tried the new RTOS?

Mark
RobM



Joined: 29 Apr 2005
Posts: 13
Location: Santa Cruz, CA

View user's profile Send private message

Re: anybody used the new ccs RTOS?
PostPosted: Tue Oct 25, 2005 3:04 pm     Reply with quote

mhahn@hvc.rr.com wrote:
Hey everybody,

I'm pretty much thinking of dropping any more work using csRtos now that CCS has released their RTOS. Of course I'll need to pay for another years worth of updates


Has anybody tried the new RTOS?

Mark


I have suspended use of csRTOS, I think my project does not benefit so much from it, and so it was more trouble (in my application) than it was worth.

Perhaps I will give it a go on another project.
_________________
Rob
_______
leong



Joined: 28 Sep 2005
Posts: 5

View user's profile Send private message

PostPosted: Wed Oct 26, 2005 12:30 pm     Reply with quote

I noticed the rtos stuff in the latest update too. they do support periodic task but I have no idea how they managed it behind the api. I had one trouble using it is when two tasks have dramatically different rates, let's say one to be executed every 100us and the other at 500 ms. the slower task then got messed up. (i think 16bit timer 0 should be ok doing that with proper prescaler setup but somehow rtos_run() recalculated it and override my setting.. ) by the way i'm using 18f4431, 100us is for the pwm duty update and 500ms is for rs232.
_________________
wooohooo...
j_s_connell



Joined: 02 Feb 2004
Posts: 17

View user's profile Send private message

PostPosted: Fri Dec 02, 2005 2:10 pm     Reply with quote

Too bad you guys arent supporting csRtos any longer, its very good. I guess similar functionality can be found in the ccs version. I have a question for you csRTOS gurus- How would you implement the event functionality in csRTOS using the ccs version? Would you use messages, or await?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> Code Library All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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