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

Using RTOS for a PIC a good idea ??

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



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

Using RTOS for a PIC a good idea ??
PostPosted: Sat Jul 25, 2009 4:10 am     Reply with quote

Hi,

Is there any advantage to using a RTOS for 18F related projects ??

My project uses a 18F4620 for the following tasks.....

1. RS 485 communications to independently controlled motor drive units, communication has checksum generation, retries in case of comm. failures. RS485 is single master based..

2. Keyboard management, the keyboard itself is connected to a MCP23016, the PIC communicates using I2C.

3. Controlling a 20x4 LCD, the LCD is connected to another MCP23016 (on the same bus as the keyboard).

4. microSD card handling (does not use FAT).


I have managed to get the system working without using a RTOS. But I was thinking if an RTOS could have been beneficial.

If so what could be the benefits???

thanks
arunb
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Sun Jul 26, 2009 5:40 pm     Reply with quote

if you are already controlling time based events for serial service , and event scheduling etc with system timer(s) w/ or w/o INTS - you probably don't need RTOS

if you are using anything BUT the shortest delay_??() fucntions , and NOT using INTS for critical features , you probably should consider using RTOS.

all this comes from the principle that if your program is working well NOW, don't fix it.
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Sun Jul 26, 2009 10:24 pm     Reply with quote

Thanks for the reply..

I am using timers, and a system of managing tasks and is working excellently.

But I was just curious...

thanks
arunb
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