View previous topic :: View next topic |
Author |
Message |
nikhil Guest
|
rtos needed for 16f877a |
Posted: Wed Apr 16, 2003 6:39 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
Re: rtos needed for 16f877a |
Posted: Wed Apr 16, 2003 12:54 pm |
|
|
:=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 |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
problem with board - second post in error |
Posted: Wed Apr 16, 2003 7:33 pm |
|
|
<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!!!! |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
It's Class Time Again!!! |
Posted: Wed Apr 16, 2003 7: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"
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!!!! |
|
![](templates/subSilver/images/spacer.gif) |
Jon Fick Guest
|
Re: It's Class Time Again!!! |
Posted: Thu Apr 17, 2003 7:47 am |
|
|
<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 |
|
![](templates/subSilver/images/spacer.gif) |
sar
Joined: 08 Sep 2003 Posts: 36
|
Re: It's Class Time Again!!! |
Posted: Thu Apr 17, 2003 11:32 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Jon Fick Guest
|
Re: It's Class Time Again!!! |
Posted: Thu Apr 17, 2003 2:12 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
jasonpeixoto Guest
|
|
Posted: Mon Jan 26, 2004 11:23 am |
|
|
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
jason@20megs.com |
|
![](templates/subSilver/images/spacer.gif) |
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Mon Jan 26, 2004 12:03 pm |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
|
|
Posted: Mon Jan 26, 2004 1:21 pm |
|
|
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
jason@20megs.com |
Why should function pointers and a Real Time Operating System have anything to do with each other? |
|
![](templates/subSilver/images/spacer.gif) |
jasonpeixoto Guest
|
|
Posted: Tue Jan 27, 2004 2:38 am |
|
|
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
jason@20megs.com |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Tue Jan 27, 2004 2:55 am |
|
|
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.
jason@20megs.com |
|
![](templates/subSilver/images/spacer.gif) |
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Tue Jan 27, 2004 8:13 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
|