On 6/17/07, John Samperi <samperi@ampertronics.com.au> wrote: > At 12:05 PM 18/06/2007, you wrote: > >Any call I make AFTER the SEI, ends up in this wierd place. > >That means that it's almost certainly an ISR that's vectored to the > >wrong place, but it's not jumping to the interrupt vectors > > You are using JMP and NOT RJMPs in the vectors I hope. Correct. I've been playing with this some more.. nop nop nop ... (more nops) in temp,sreg ori temp,$80 out sreg,temp nop nop .... nop Now in the above code, if I manually set the GIE bit in SREG at the first nop, a few instructions later, it does a jump to $00F020! If I let it set the bit using the code above, it does the same thing, just at a different point. I just can't turn on interrupts! Worse, there isn't any int that should vector to $00F020, that I'm aware of.
Message
Re: [AVR-Chat] Studio problem, "invalid opcode"
2007-06-18 by David VanHorn
Attachments
- No local attachments were found for this message.