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

Multitasking with Pic

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



Joined: 27 Apr 2012
Posts: 15
Location: TURKEY

View user's profile Send private message

Multitasking with Pic
PostPosted: Thu Apr 04, 2013 1:40 am     Reply with quote

Hi, Is it possible to multitasking with the pic? if it will be possible, how can i use it? Which pic has include this feaure?
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Thu Apr 04, 2013 1:46 am     Reply with quote

Any processor can 'multi task'. To a small extent. However on the PIC is is more like the old Windows 9x, 'co-operative' multi-tasking than the full multi-threading possible on a more complex processor. Look at ex_rtos_demo_1_tasks.c.
Remember there is not basically an OS (which is what implements 'multi-tasking' in a PC), so it is just down to you to write multi tasking software. The RTOS, provides a crude 'underlayer' to give a limited ability. To go beyond this is down to you.

Best Wishes
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Apr 04, 2013 5:37 am     Reply with quote

Yes, any PIC can 'multitask'.
The term 'multitask' just means, give the illusion you're doing 2 or more things at one time.How many 'tasks' and how complicated those tasks are is the challenge.
Consider the lowly PC mouse. The PIC in there powers 2 or 3 LEDS,gets data from 2 or 3 quadrature encoders,senses 2 or 3 switches,does some math and communicates via a serial port to the host.MCHP has an Application Note on this and should be a 'must read'.
Another example is the PLC.Here a small PIC can control a whole process based on say 8 inputs and 8 outputs.
Todays PICs run very,very fast allowing the programmer to do a lot in a very short time( the essence of 'multitasking').The RTOS is just one method of applying multitasking to a PIC.

cheers
jay
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