avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] About interrupt vector of GCC


From: Pat Deegan
Subject: Re: [avr-gcc-list] About interrupt vector of GCC
Date: Mon, 28 Jun 2004 14:02:11 -0400

Hello,

On Mon, 2004-06-28 at 05:01, whiteman wrote:
> hi,all!
> 
> In my project, I used Atmega8 and enable the RDX interrup. But it seem that 
> the interrupt vector is wrong. 

I had a similar experience recently... are you certain that

> SIGNAL(SIG_USART0_RECV)

is what you really want?  What happened to me was that :

- I used the wrong signal name
- the handler was *not* added to the vector table, only silently dropped
- the interrupt was enabled in the code
- The interrupt occurred, triggering the default handler (reseting the
AVR).

Check the docs/other examples using the mega8 or just try different
signal names (like SIG_UART_RECV) until you see your handler hooked into
the vector table at the right spot in the disassembled code (the
Datasheets list the location of each, as the address of the appropriate
16 bit code word).

HTH

Regards,
-- 
Pat Deegan
http://www.psychogenic.com/
PGP Key: http://www.keyserver.net 0x03F86A50



reply via email to

[Prev in Thread] Current Thread [Next in Thread]