Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2024, 05:17:32 05:17


Login with username, password and session length


Pages: [1]
Print
Author Topic: CCS RTOS  (Read 11914 times)
0 Members and 1 Guest are viewing this topic.
TirthankarMukherjee
Guest
« on: December 28, 2007, 02:29:17 14:29 »

Can any one give me some idea how to implement the code for RTOS with CCS ( in biult functions of RTOS). I went through their manual and examples but still confused...I need to drive 2 stepper motors, scan 6 sensors(IR) give output in the LDC(16x2).

  What the algorithm must be ... I need to detect objects in the front of the bot. How the RTOS functions needs to be called ? Thanks in advance from a newbie, hope all the experienced guy gives me some tips.
Logged
localcrack
Active Member
***
 Muted
Offline Offline

Posts: 173

Thank You
-Given: 64
-Receive: 21



« Reply #1 on: December 28, 2007, 08:33:29 20:33 »

Please check in examples folder there is a total 9- examples are given
Logged
graywolf
Newbie
*
Offline Offline

Posts: 13

Thank You
-Given: 0
-Receive: 19


« Reply #2 on: December 29, 2007, 03:13:52 03:13 »

It would be nice to be able to download the CCS complier, I do belvie that it is embedded into the complier. Have you read hte manual? It is simple to use.
Logged
TirthankarMukherjee
Guest
« Reply #3 on: December 29, 2007, 05:50:26 17:50 »

yes I have gone through the manual .. and the examples as well, but a full working project would have been more helpful, if any one of you have done some work with rtos, please email/pm [tirthankar.tirtha[at]gmail] me, thanks for your reply.
Logged
future
Newbie
*
Offline Offline

Posts: 16

Thank You
-Given: 11
-Receive: 7


« Reply #4 on: December 29, 2007, 11:36:39 23:36 »

I don't recommend this rtos, you will be better with your own state machine.
I have used it with version 3.249 which is the most stable version I know and only simple code works. When you start writing real applications, the rtos start to show its weakness.
Logged
graywolf
Newbie
*
Offline Offline

Posts: 13

Thank You
-Given: 0
-Receive: 19


« Reply #5 on: December 30, 2007, 08:11:13 20:11 »

Have you tried using mplab and pumpkin rtos? I do belive they are both on the forums here somewhere. I acutally designed and wrote my own rtos but for htsoft.
Logged
localcrack
Active Member
***
 Muted
Offline Offline

Posts: 173

Thank You
-Given: 64
-Receive: 21



« Reply #6 on: July 03, 2008, 08:43:57 20:43 »

Hello graywolf, do you please give me your own rtos code.
Logged
ORIONIX
Newbie
*
Offline Offline

Posts: 18

Thank You
-Given: 57
-Receive: 3


« Reply #7 on: July 03, 2008, 11:48:38 23:48 »

Here you can download a document in SPANISH about RTOS CCS,with  some examples, and explain code About RTOS CCS :

http://rapidshare.com/files/126912862/sistema_operativo_microcontroladores_pic_rtos.pdf.html

Bye

Logged
PIC_rookie
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 23
-Receive: 1


« Reply #8 on: July 17, 2008, 07:01:22 19:01 »

hello all
i need use RTOS on PIC
please upload ebook
thank you
Logged


Marineland
Active Member
***
Offline Offline

Posts: 149

Thank You
-Given: 18
-Receive: 124



« Reply #9 on: July 18, 2008, 10:33:49 10:33 »

Here you can download a document in SPANISH about RTOS CCS,with  some examples, and explain code About RTOS CCS :

http://rapidshare.com/files/126912862/sistema_operativo_microcontroladores_pic_rtos.pdf.html

Bye

Here a direct link for this article  Wink

http://www.ucontrol.com.ar/Articulos/sistemas_operativos_microcontroladores/sistema_operativo_microcontroladores_pic_rtos.htm

Marineland

BTW: There are useful informations about PIC Micro on this Website (Go to: http://www.ucontrol.com.ar/wiki/index.php/Revista_ucontrol) and it's Free!
Logged
okk
Junior Member
**
Offline Offline

Posts: 67

Thank You
-Given: 369
-Receive: 39


« Reply #10 on: July 18, 2008, 12:51:04 12:51 »

The book Advanced PIC Microcontroller Projects in C has an explanation and some simple RTOS projects in CCS C, this would be a good start. I believe that it may be found within these pages.
Logged
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #11 on: July 18, 2008, 02:11:24 14:11 »

Yeah, I would really like to see a decent RTOS. Most of them makes me stumble just by setting them up...
Logged

Code Warrior
etm503
Newbie
*
Offline Offline

Posts: 23

Thank You
-Given: 10
-Receive: 1


« Reply #12 on: July 19, 2008, 11:46:59 11:46 »

I have coverted a fairly large project that use 95% Rom on 18F242 to use ccs rtos.
Its working fine so far.
What I discovered is that you must be very liberal with your "rtos_yield" statements.
This is because the RTOS does not necesarily share execution time between the tasks equally. This means that if you are not careful, some tasks may actually never run, or run for an unpredictable time.
One challenge is when you process an interupt request, call subroutines or functions from within a task.
I found that I could not execute a rtos_yied from the called routine.
I ended up converting some of the functions/ subroutines to tasks.

Otherwise I am happy with the rtos perfomance( at least as of now ! )
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC