+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Full Member level 4
    Points: 3,474, Level: 13
    atferrari's Avatar
    Join Date
    Jun 2004
    Location
    Buenos Aires - Argentina
    Posts
    237
    Helped
    7 / 7
    Points
    3,474
    Level
    13

    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

    •   AltAdvertisement

        
       

  2. #2
    Member level 3
    Points: 1,981, Level: 10

    Join Date
    Oct 2004
    Posts
    59
    Helped
    4 / 4
    Points
    1,981
    Level
    10

    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.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 2
    Points: 2,548, Level: 11

    Join Date
    Jun 2004
    Location
    India
    Posts
    128
    Helped
    3 / 3
    Points
    2,548
    Level
    11

    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



--[[ ]]--