Philips Semiconductors
AN10369
Philips ARM LPC microcontroller family
2. Startup Assembly code
3. Main C file
4. Header file
5. Tool specific file (not shown here)
Only the first three files are discussed and shown below.
4.4.1 Interrupt Vector table
; ---------------------------------------------------------
; Assembler Directives
; ---------------------------------------------------------
AREA
IVT,
CODE
; New Code section
CODE32 ;
ARM
code
IMPORT
start ;
start
symbol
not
;
defined
in
this
;
section
Entry ; Defines entry point
; ---------------------------------------------------------
LDR PC, =start
LDR PC, Undefined_Addr
LDR PC, SWI_Addr
LDR PC, Prefetch_Addr
LDR PC, Abort_Addr
NOP
LDR PC, [PC, #-0xFF0]
LDR PC, FIQ_Addr
Undefined_Addr DCD Undefined_Handler
SWI_Addr DCD SWI_Handler
Prefetch_Addr DCD Prefetch_Handler
Abort_Addr DCD Abort_Handler
FIQ_Addr DCD FIQ_Handler
; ---------------------------------------------------------
;
Exception
Handlers
; ---------------------------------------------------------
; The following dummy handlers do not do anything useful in
; this example. They are set up here for completeness.
Undefined_Handler
B Undefined_Handler
SWI_Handler
B SWI_Handler
Prefetch_Handler
B Prefetch_Handler
Abort_Handler
B Abort_Handler
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Application note
Rev. 01 — 06 April 2005
10 of 17