Forums

Another Newbie Question

Started by heedaf March 18, 2006
I'm in the process of learning the LPC2106 as well as the I2C 
format.  I downloaded a sample from Philips and it has the 
interurupt vector table listed below.  Can anyone tell me where it 
goes?  I'm using CrossStudio and I would think it would go in a 
seperate file but I'm not sure.  
Thanks,
Dewayne
	; ---------------------
; 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
	FIQ_Handler
B FIQ_Handler
END
	

An Engineer's Guide to the LPC2100 Series

> I'm in the process of learning the LPC2106 as well as the I2C
> format.  I downloaded a sample from Philips and it
has the
> interurupt vector table listed below.  Can anyone tell me where it
> goes?  I'm using CrossStudio and I would think it would go in a
> seperate file but I'm not sure.
> Thanks,
> Dewayne

Take a look at the timer_interrupt example that can be found in the 
samples\Philips_LPC210X\Olimex_LPC_P1\Olimex_LPC_P1.hzp solution included 
with your CrossWorks installation.  In this you will see the file 
Philips_LPC2106_Startup.s with the information contained within.  Also you 
can look at main.c to see how to install a vector.

Regards,
Richard.

http://www.FreeRTOS.org
	
----- Original Message ----- 
From: "heedaf" <ruffellfamily@ruff...>
To: <lpc2000@lpc2...>
Sent: Saturday, March 18, 2006 8:18 PM
Subject: [lpc2000] Another Newbie Question
	> I'm in the process of learning the LPC2106 as well as the I2C
> format.  I downloaded a sample from Philips and it
has the
> interurupt vector table listed below.  Can anyone tell me where it
> goes?  I'm using CrossStudio and I would think it would go in a
> seperate file but I'm not sure.

You'd be better off using the CrossWorks examples. They will build without 
any problems.

Leon
--
Leon Heller, G1HSM
leon.heller@leon...
http://webspace.webring.com/people/jl/leon_heller/