|ARM Technical Support Knowledge Articles|
Applies to: CX51 C Compiler
Information in this article applies to:
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?
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
Article last edited on: 2004-04-21 20:22:10
Did you find this article helpful? Yes No
How can we improve this article?