Parallax Propeller - Dedicated Cores Instead of Interrupts

Dedicated Cores Instead of Interrupts

The design philosophy of the Propeller is that a hard real-time multi-core architecture negates the need for dedicated interrupt hardware and support in assembly. In traditional CPU architecture, external interrupt lines are fed to an on-chip interrupt controller and are serviced by one or more interrupt service routines. When an interrupt occurs, the interrupt controller suspends normal CPU processing and saves internal state (typically on the stack), then vectors to the designated interrupt service routine. After handling the interrupt, the service routine executes a "return from interrupt" instruction which restores the internal state and resumes CPU processing.

To handle an external signal promptly on the Propeller, any one of the 32 I/O lines is configured as an input. A cog is then configured to wait for a transition (either positive or negative edge) on that input using one of the two counter circuits available to each cog. While waiting for the signal, the cog operates in low-power mode, essentially sleeping. Extending this technique, a Propeller can be set up to respond to eight independent "interrupt" lines with essentially zero handling delay. Alternately, a single line can be used to signal the "interrupt" and then additional input lines can be read to determine the nature of the event. The code running in the other cores is not affected by the interrupt handling cog. Unlike a traditional multitasking single-processor interrupt architecture, the signal response timing remains predictable, and indeed using the term "interrupt" in this context can cause confusion, since this functionality can be more properly thought of as polling with a zero loop time.

Read more about this topic:  Parallax Propeller

Famous quotes containing the words dedicated and/or interrupts:

    Individually, museums are fine institutions, dedicated to the high values of preservation, education and truth; collectively, their growth in numbers points to the imaginative death of this country.
    Robert Hewison (b. 1943)

    An entertainment is something which distracts us or diverts us from the routine of daily life. It makes us for the time being forget our cares and worries; it interrupts our conscious thoughts and habits, rests our nerves and minds, though it may incidentally exhaust our bodies. Art, on the other hand, though it may divert us from the normal routine of our existence, causes us in some way or other to become conscious of that existence.
    Sir Herbert Read (1893–1968)