[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] interrupt_tiny2313
From: |
gilles bailly |
Subject: |
[avr-gcc-list] interrupt_tiny2313 |
Date: |
Tue, 15 Nov 2005 18:19:15 +0100 |
hi,
i'm having problem with jumps associated with interrupt vectors.
here's the beginning of the assembly code (which is copied from avr studio):
+00000000: C012 RJMP PC+0x0013
+00000001: C016 RJMP PC+0x0017
....
+00000018: CFE7 RJMP PC-0x0018
so, when an interrupt occurs, int0 for example, the first rjump leads
to another one that makes a reset (same behavior with others interrupts
like int1, usart receive).
it works like an global "catch-all" interrupt handler, but in the
following code i have defined:
.global SIG_INTERRUPT0
SIG_INTERRUPT0: // isr code here // reti;
does anyone see what iswrong ?
i' hadn't this pb before i'd fitted the code from an mega8515 to a
tiny2313. To make things simple, this is the first time i use tiny2313 !
(avr-gcc -c -mmcu=attiny2313 -I. -x assembler-with-cpp -Wa, avr-gcc (GCC)
3.4.3)
Thanks, gb
- [avr-gcc-list] interrupt_tiny2313,
gilles bailly <=