Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

RTOS on 8 bit controller...

Status
Not open for further replies.
Hi,

I wanted to start with my rtos work... to implement it on 8 bit controller...

I need five starting steps that is to be followed to implement RTOS... on any controller...

I'll be thankful...

Regards,

Simran..:)
 
Five steps

Out of curiosity, how do you know they are exactly five?
 
For that matter why do you feel the need for an RTOS?, you're just diverting much of the micro-controllers resources to the RTOS and leaving less for the job you want to do.
 
I find it hard to envisage a project where a RTOS would be useful on a microcontroller.

Mike.
 
A good RTOS will allow you to get the right code to run when needed with less effort on your part. The people who design them put a lot of time and effort into ensuring that it does. More than any firmware engineer can justify on a single project.

The downside, it is not a handcrafted solution, it will take more processor and memory. Like everything it is a tradoff, such resources are less expensive with time. Keep in mind that using an RTOS on a uC without enough headroom will always be bad.

We used PSOS to code at least one of our major product lines. There was support for PSOS (maybe others) in our debug toolchain which allowed customers to understand their code execution in terms of processes. That was over 15 years ago.

We all live in our little corner of the tech universe. I am thinking there is a lot of very real stuff out there that we may find hard to imagine. :)
 
Thanks...

Thanks...

I got to know the application of RTOS... and also the replies help me to understand the importance of them...

I wanted to one doubt:

1. if I know how to compile a program in C for a particular microcontroller and

2. if i know the basics of OS and RTOs and various RTOS commands like of ' free rtos ' then ...

3. what is the next step to be done... means how to embed that particular rtos into the controller and in what way...

For more information please see www.freertos.org

Regards,

Simran..:)
 
Well...

Well Mike,

I cannot say anything...

I just know some definitions in RTOS...

I am thinking of joining some classes for rtos...

Regards,

Simran..:)
 
I don't get it either.
Microcontrollers do just fine handing different jobs by either the interrupt mechanism or:

Code:
initializeEverything();
while(1){
   if(buttonsNeedServicing)
       serviceButtons();
   if(uartNeedsFilling)
       fillUART();
   ...
   ...
} //and just loop this way forever

There is no "portability" issue, I have my portable tasks right here. I can move fillUART() to another processor or use it in a completely different program if it's written smart. Well if you go to a part that configures the UART differently, then fillUART() may need to be different- and the exact same thing should be true for an RTOS.

It's not just a matter of overhead, but for the above example it's just so clear what's going on. I never could see the need to bring in the issues associated with an RTOS.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top