ARM Technical Support Knowledge Articles

FILLING UNUSED INTERRUPT VECTORS WITH SJMP $

Applies to: CX51 C Compiler

Answer


Information in this article applies to:


QUESTION

I need to certify my application and one of the requirements is that I must fill unused interrupt vectors with an SJMP $ instruction. How can I do this?

ANSWER

Add a small assembler module to your application that defines absolute segments for each unused interrupt vector location. For example:

          CSEG AT 0x0013  ; external interrupt 1
          SJMP   $

          CSEG AT 0x001B  ; timer 1 interrupt
          SJMP   $

          CSEG AT 0x0023  ; UART interrupt
          SJMP   $

          CSEG AT 0x002B  ; timer 2 interrupt
          SJMP   $

          END

SEE ALSO

Article last edited on: 2004-04-21 20:22:10

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential