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

rtos needed for 16f877a

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







rtos needed for 16f877a
PostPosted: Wed Apr 16, 2003 6:39 am     Reply with quote

we are trying tobuilding an rtos around picdemo board from microchip...but arent succeding so far ...if something exists please help!!...really urgent help needed
___________________________
This message was ported from CCS's old forum
Original Post ID: 13705
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: rtos needed for 16f877a
PostPosted: Wed Apr 16, 2003 12:54 pm     Reply with quote

:=we are trying tobuilding an rtos around picdemo board from microchip...but arent succeding so far ...if something exists please help!!...really urgent help needed

<a href="http://www.pic-c.com/forum/general/posts/1717.html" TARGET="_blank">http://www.pic-c.com/forum/general/posts/1717.html</a>

Google also gives a lot of links to possibly useful code:
<a href="http://voodooz.no-ip.org/robotics/source/TEF2001/" TARGET="_blank">http://voodooz.no-ip.org/robotics/source/TEF2001/</a>
<a href="http://www.microchipc.com/Hi-Tech_C_multitask.htm" TARGET="_blank">http://www.microchipc.com/Hi-Tech_C_multitask.htm</a>
<a href="http://fse.bc.ca/Calvin20.html" TARGET="_blank">http://fse.bc.ca/Calvin20.html</a>

It seems like half the questions on this board can be answered
with "add NOLVP to the #fuses statement" or "Use Google".
<a href="http://www.google.com" TARGET="_blank">http://www.google.com</a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 13715
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

problem with board - second post in error
PostPosted: Wed Apr 16, 2003 7:33 pm     Reply with quote

<font face="Courier New" size=-1>my apologies</font>
___________________________
This message was ported from CCS's old forum
Original Post ID: 13738
_________________
Google and Forum Search are some of your best tools!!!!
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

It's Class Time Again!!!
PostPosted: Wed Apr 16, 2003 7:35 pm     Reply with quote

I am sure I will raise some ire here by posting this but I have spent many hours researching and going out of my way to avoid bringing issues to this board that were off topic.

It used to be the standard response on this board to non-CCS issues was: "This board is for CCS compiler users and questions related to the CCS compiler only"

Over time the horizons have broadened and the word has gotten out that the folks here will help with most any question all the way to: What is the ANSI C standard!!!! like that has anything to do with CCS.... There are numerous other C programming forums out there...why are we getting these screwy questions?

I am an instructor/designer, and there are times I say to my students that the subject is too off topic and needs to be addressed elsewhere. This is the INTERNET and this board is NOT the only resource. Before the WWW we had to REALLY work to locate information and didn't have all the tools that are available now. Why do we have to repeatedly tell people to use the search tools! All these off topic questions are taking advantage of folks like PCM, Hans, Sherpa etc. who are gracious enough to lend their expertise and time for CCS issues. I, for one GREATLY appreciate them and don't want to burn out a valuable resource!!

Sorry folks, my 2 cents worth.....I am off my soapbox now, thank you to all you who make this a GREAT user forum and for indulging my venting.
Dave
___________________________
This message was ported from CCS's old forum
Original Post ID: 13740
_________________
Google and Forum Search are some of your best tools!!!!
Jon Fick
Guest







Re: It's Class Time Again!!!
PostPosted: Thu Apr 17, 2003 7:47 am     Reply with quote

<font face="Courier New" size=-1>(Like Dave, I'll also probably raise some ire!)

I returned to college at age 29 to finish my third and fourth year. As I went through the courses and labs and dealt with the various assignments and term projects assigned to electrical engineers, I finally figured out that sheer knowlege is only part of what a student gains; perhaps the more important part of any schooling is learning HOW to think and solve problems. Why didn't I understand that at age 18?

I maintain a web site that is filled with PIC projects developed using the CCS compiler. From emails that come in through my web site and from posts in this forum, it's pretty obvious when a student comes looking for easy answers. When I get such requests I simply delete the email, unless it's obvious that the student has already put some in some sweat and clearly done some homework. In those cases I'm quite happy to provide a couple of sentences of hints because that's part of the engineering process! We build on what has been developed before.

Why is this important? Because when young electrical and software engineers come knocking at the door looking for jobs, I hope I can identify those who have learned HOW to think and HOW to solve problems. I'm doing my best to help that along.

My web site is <a href="http://www.VermontFicks.org/pic.htm" TARGET="_blank"> <a href="http://www.VermontFicks.org/pic.htm" TARGET="_blank">http://www.VermontFicks.org/pic.htm</a></a>
One page is specifically written to students (graciously, I hope.) <a href="http://www.VermontFicks.org/students.htm" TARGET="_blank"> <a href="http://www.VermontFicks.org/students.htm" TARGET="_blank">http://www.VermontFicks.org/students.htm</a></a>

Jon Fick
</font>
___________________________
This message was ported from CCS's old forum
Original Post ID: 13759
sar



Joined: 08 Sep 2003
Posts: 36

View user's profile Send private message

Re: It's Class Time Again!!!
PostPosted: Thu Apr 17, 2003 11:32 am     Reply with quote

So, Jon....
I'm not a student, just a hobbiest type and have loked at your code and have compiled some and used it. Everytime though, there were errors in your posted code. Do you purposely introduce errors on your web site for the reasons you described in your above post? It always took me awhile to figure out the errors and then they compile correctly.
Just wondering??? SAR
___________________________
This message was ported from CCS's old forum
Original Post ID: 13763
Jon Fick
Guest







Re: It's Class Time Again!!!
PostPosted: Thu Apr 17, 2003 2:12 pm     Reply with quote

Fair question. And an honest answer. No, I don't introduce anything in the code to throw in curves. It's a genuine attempt simply to share what I've done.

I've only ever been made aware of a few errors in several years. My assumption is that there were none, or that hobbiests who use them simply corrected them and move on. (Sounds like you were in the second category.)

The "bug" reports that I do get have more to do with LCD interfacing than anything else. It's usually that the LCD is not a compatible display, or that their contrast is misadjusted so everything works but they see nothing.

It might help to understand that I simply publish projects that I've made for myself, and after the usual debug and improvement cycles, everything works fine for my purposes. And, that's the key...they were designed to work for me. With few exceptions, that's as far as they went. In a couple of cases, I took the requests or suggestions from other hobbiests to improve a design for all concerned. But, the projects go into my web site in working condition, compiled with my version of PCM, which was 2.6xx, and more recently with PCW. I wonder if the multitude of compiler versions is the culprit here. Admittedly I haven't exercised any version control.

I'd sure be interested to see your errors the next time you encounter them. And thanks for the alert.

Jon





:=So, Jon....
:=I'm not a student, just a hobbiest type and have loked at your code and have compiled some and used it. Everytime though, there were errors in your posted code. Do you purposely introduce errors on your web site for the reasons you described in your above post? It always took me awhile to figure out the errors and then they compile correctly.
:=Just wondering??? SAR
___________________________
This message was ported from CCS's old forum
Original Post ID: 13773
jasonpeixoto
Guest







PostPosted: Mon Jan 26, 2004 11:23 am     Reply with quote

Hi

I have completed various version and options of a RTOS for hitech.
I am looking at CCS as they now support pointers to functions.
in asembler it starts of 51 bytes in size the smalletst version.
To 130 bytes with tick nad delays to 201 bytes with events + semaphors.
I shall kepp you all updated.

Jason Peixoto
[email protected]
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Mon Jan 26, 2004 12:03 pm     Reply with quote


dyeatman wrote:

Quote:


It's Class Time Again!!!

Posted: Wed Apr 16, 2003 8:35 pm

I am sure I will raise some ire here by posting this but I have spent many hours researching and going out of my way to avoid bringing issues to this board that were off topic.

It used to be the standard response on this board to non-CCS issues was: "This board is for CCS compiler users and questions related to the CCS compiler only"



Suscribing 100% the post written by dyeatman, I would like to see such "filtering" actions from the forum moderator like in the old forum.

Humberto
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

PostPosted: Mon Jan 26, 2004 1:21 pm     Reply with quote

jasonpeixoto wrote:
Hi

I have completed various version and options of a RTOS for hitech.
I am looking at CCS as they now support pointers to functions.
in asembler it starts of 51 bytes in size the smalletst version.
To 130 bytes with tick nad delays to 201 bytes with events + semaphors.
I shall kepp you all updated.

Jason Peixoto
[email protected]


Why should function pointers and a Real Time Operating System have anything to do with each other?
jasonpeixoto
Guest







PostPosted: Tue Jan 27, 2004 2:38 am     Reply with quote

Neutone wrote:

Why should function pointers and a Real Time Operating System have anything to do with each other?


Hi the problem is the stack on the pic, there is no software stack on the
14bit and 12bit version. So the only way is to get the address to return
to is to use labels in assembler. Now for C to understand that it treats
the label as a pointer to a function which is a simple address. Now the
problem with out a software stack is your task must release its slice in
the route of its task. This creates a complicated system if you wish to
optimize your code. With the pic18Fxxx I have utilized the software stack
to do the switching and therefor you can now relase the cpu at any
call depth level. You need function pointers from the schudular as well
as when it needs to call the next task from a non-software stack it must
use the C complier method to goto the next address saved in the
task control block TCB. Now one could change this buy storing a value
and then jumping to a case switch system to call the next task. This is
what I am looking at for compliers that done support function pointers.
Like the smallerst kernal I have is 51 bytes in size and goes
upto 201 bytes. It have been workign for over a year now and I have
contionued to optimize it for speed and size. The smallest kernal can do
55000 task switches in a second on a 20mhz. the largest kernal can still
do around 40000+.

[can hi-tech create a new forum for RTOS please.]

This is a growing field RTOS for small embedded micro's.

Jason Peixoto
[email protected]
Guest








PostPosted: Tue Jan 27, 2004 2:55 am     Reply with quote

Humberto wrote:

dyeatman wrote:

Quote:


It's Class Time Again!!!

Posted: Wed Apr 16, 2003 8:35 pm

I am sure I will raise some ire here by posting this but I have spent many hours researching and going out of my way to avoid bringing issues to this board that were off topic.

It used to be the standard response on this board to non-CCS issues was: "This board is for CCS compiler users and questions related to the CCS compiler only"



Suscribing 100% the post written by dyeatman, I would like to see such "filtering" actions from the forum moderator like in the old forum.

Humberto


Hi Humberto

I can only assume from your actions of above is that you know it all and
do not wish to share current related experances with other growing and
inspireing minds. The RTOS is a real field for embedded development it
has been around from the consemption of time. I am posting in this
forum as I am going to use the CCS complier to migrate my RTOS to it.
It is allready complete for HI-TECH. If you decided to read my post and
ponder for a few minutes to evaluate all possiblites of why it should be
on this forum then produce a counter argument rather than quote some
other person who has the same perseption that no one else can be at the
top of the world with new technoloy.

Thank you.
Jason Peixoto.
[email protected]
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Tue Jan 27, 2004 8:13 am     Reply with quote

Jason Peixoto wrote:

Quote:

I can only assume from your actions of above is that you know it all and
do not wish to share current related experances with other growing and
inspireing minds


Hi Jason,

Your assumption is false and out of context, let me put in the correct way:

1) Unfortunatelly I don�t know all.
2) I like to share my experience with begginers.

I have been posted in this forum since a while and I put my 2 cents contribution every time I had the chance to help somebody. Regarding this, I didn�t see any post from you helping to somebody.

What I quote was dyaetman expresion
Quote:

folks here will help with most any question all the way to: What is the ANSI C standard!!!! like that has anything to do with CCS.... There are numerous other C programming forums out there...why are we getting these screwy questions?

regarding this_kind_of_inquiries, not your superprofessional question, sorry.

Hope to see your contribution in this board.

Thank you.


Humberto



Sorry for my English.
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