1. 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.
    Dismiss Notice

Time critical operation

Discussion in 'Microcontrollers' started by elecLear78, Jul 13, 2017.

  1. elecLear78

    elecLear78 Member

    Joined:
    Jul 16, 2013
    Messages:
    227
    Likes:
    1
    Location:
    india
    What are the steps i need to avoid missing very time critical operations. For example the case of reading hall values and updating the switching table. Is it like i have to cut down all other functionality. In which interrupt should i put them to get the best performance? I know it is lacking lot of details but some guidelines will help me. How is it possible that normal software cannot do an RTOS can do it?
     
  2. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,322
    Likes:
    653
    Location:
    Derbyshire, UK
    ONLINE
    You have it the wrong way round, 'normal' software is easily written to outperform an RTOS in such cases, an RTOS has to waste considerable processing power and resources just running itself.

    But your question is so vague as to be meaningless, essentially though you use interrupts, and use higher priority ones (where available) for time critical routines.
     
  3. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    ONLINE
    RTOS is also a written program.... If you are struggling with the coding, then you need to be more efficient!!
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. ci139

    ci139 Active Member

    Joined:
    Apr 12, 2012
    Messages:
    470
    Likes:
    37

    back at '80-s couple of more experienced dudes in our school were creating the cropped OS v.-s from the MS-DOS 3.2 by leaving out misc. sub.-s to achieve "all in one (floppy)" utilities -- would be a bootable Flash or CD/DVD alternate for today -- . . . they managed something (1)50 ... (1)60 kB if i recall right (there might be an +100kB error -- about to remember a 30yo MSX diplay image)
     
    Last edited: Jul 13, 2017

Share This Page