Home arrow Support arrow Forums

Luminary Micro Forums

dereksoftstuff

Expert Boarder

2008/08/08 03:13

Re:add user interrupts on future device

Interesting topic, event scheduling. I've done a similar thing. see Events - using interrupt event queue and cyclic event queues, no stacks or context switches or pre-emption, events all run to completion - real-time system - low overhead from scheduler - typically < 2us scheduler latency (interrupts)(@50MHz).

Having ISRs send interrupts to other ISRs which send interrupts to other ISRs which send ... - adds no value. There is one processor and there is one processor clock, it doesn't matter whether you spend your time (clocks) in an ISR or in a thread - it's the same time.

The question is whether you want a RTOS or a single thread system (+ISRs). With the RTOS you gain pre-emption but lose with stacks/context switches.

Like rocksoft says, you should always design your system to have many quick events, not a few slow events, so that it responds well. Then the difference between an RTOS and a non-RTOS begins to blur.

Both are good - it depends on your application ...

login or register to reply

      Topics Author Date
    thread link
add user interrupts on future device
ppz2005 2008/07/31 02:57
    thread link
thread linkthread link Re:add user interrupts on future device
rocksoft 2008/07/31 08:46
    thread link
thread linkthread linkthread link Re:add user interrupts on future device
ppz2005 2008/08/06 22:22
    thread link
thread linkthread linkthread linkthread link Re:add user interrupts on future device
rocksoft 2008/08/07 02:03
    thread link
thread linkthread linkthread linkthread linkthread link Re:add user interrupts on future device
cb1 2008/08/07 17:36
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:add user interrupts on future device
ppz2005 2008/08/07 21:54
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:add user interrupts on future device
rocksoft 2008/08/08 02:22
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:add user interrupts on future device
dereksoftstuff 2008/08/08 03:13
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:add user interrupts on future device
rocksoft 2008/08/08 04:21
    thread link
thread linkthread link Re:add user interrupts on future device
awneil 2008/08/06 16:04
    thread link
thread linkthread linkthread link Re:add user interrupts on future device
ppz2005 2008/08/06 21:26
    thread link
thread linkthread linkthread linkthread link Re:add user interrupts on future device
ppz2005 2008/08/06 22:06
    thread link
thread linkthread linkthread linkthread link Re:add user interrupts on future device
ppz2005 2008/08/06 22:26
    thread link
thread linkthread link Re:add user interrupts on future device
dereksoftstuff 2008/08/09 03:24