Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/30/00 15:10
Read: times


 
#4796 - RE: IAR C compiler and interrupts
> I'm having difficulty getting the IAR C compiler (VER 5.50B
> for windows) to properly use the interrupt vector table.

I'm using the same version of IAR in a project I'm working on now.

> I declare a serial interrupt function using the call:
>
> interrupt [0x23] void S0_int(void)
> {}
>
> which is supposed to set the jump in the correct loction (0x23),
> but instead it is allocated aparently by simply filling the memory
> block, so at address 0x03, I get LJMP 0x0230, which is the
> correct location to jump to.

What do you mean by "simply filling the memory block"?

> I was wondering if any one else has found similar problems

I use the same declaration for my subroutine and it works fine. Is 0x0230 the address where your S0_int interrupt is found in memory? Is there anything at all at address 0x0023?

IAR is going to locate your interrupt routine somewhere in memory and just insert an LJMP at 0x0023.

Craig Steiner


List of 2 messages in thread
TopicAuthorDate
IAR C compiler and interrupts            01/01/70 00:00      
RE: IAR C compiler and interrupts            01/01/70 00:00      

Back to Subject List