Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TMS320C2x DSP - interrupts on the tms320c2x are prioritized and vectored. when an http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
      Interrupts on the TMS320C2x are prioritized and vectored. When an
      interrupt occurs, the corresponding flag is set in the interrupt
      flag register (IFR). If the corresponding bit on the interrupt mask
      register (IMR) is set an interrupts are enabled (INTM = 0), then
      interrupt processing begins.

      When the interrupt vector is loaded into the program counter,
      interrupts are disabled (INTM = 1) and a branch is made to the
      appropriate routine via the branch instruction stored at the
      associated vector location. Since all interrupts are disabled,
      interrupt processing may proceed without further interruption unless
      the interrupt service routine (ISR) re-enables interrupts.

      Unless the interrupt service routines are simple I/O handlers, the
      processing in each ISR generally must assure that the processor
      context is preserved during execution. The context must be saved
      before executing the routine itself and restored when the routine
      is finished. A common routine or routines individualized for each
      interrupt may be used to to secure the context of the processor
      during interrupt processing. Context switching is also useful for
      subroutine calls, especially when extensive use is made of the stack
      or auxiliary registers.

      See "interrupt priority" for example.

See Also: context switching interrupt priority

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson