Looking for a free RTOS for PIC micros

Status
Not open for further replies.

atferrari

Full Member level 4
Joined
Jun 29, 2004
Messages
237
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Location
Buenos Aires - Argentina
Activity points
1,996
RTOS for PICmicros

I am really interested in writing or just using a freely available RTOS for PICmicros but not in C (a know almost nothing about C). I work always in assembler.

Other than what is wirten in AN585 from Microchip I couldn't find anything complete making sense.

Could anyone point in the right direction?

Gracias

Agustín Tomás
 

Re: RTOS for PICmicros

For build your RTOS, you have to:
1 - Make a Hardware interrupt with timer every 10 to 30 ms
2 - On Interrupt, save your contexts (registers and pointers to return, CCR, etc)
2.1 - If you want a preemptive kernel, then you have to execute the thread inside.
2.1 - If you want a non preemptive kernel, then finish the interrupt.
3 - Restore the context
4 - On return, then your program have to return to the next thread
5 - And so on.

I think that can help.
 

Re: RTOS for PICmicros

hi
Good.

for PIC microcontrollers if want to make your RTOS premptive select the PIC18 architecture because the Stack is editable.

Hope u follow the thing

regards
Gopi
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…