avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] Troubles with Interupts


From: GEPARD - Převratský Tomáš
Subject: [avr-libc-dev] Troubles with Interupts
Date: Wed, 13 Apr 2005 08:38:25 +0200

Hello,

 I'm using avr-libc for writing my ATMega8515 project. Everithing is working
perfect :o) except this one thing - there is problem with interrupt routine
for SIG_UART_RECV only. When interrupt controller calls
INTERRUPT(SIG_UART_RECV) program freez in end-less loop. It looks that this
problem may be in SEI instruction at begin of interrupt handler. When
UCSRA.RXC flag is set and program execute instruction SEI, interrupt routine
will be in next instruction cycle called regardless that this kind of
interrupt is once in progress.
My question is if there exist some way to correct this problem.

Thank You in Advance

Best Regards
Tomas Prevrtasky
Development Engineer



INTERRUPT(SIG_UART_RECV) {
  c4:   78 94           sei             <- !!!!!!!!!!!!!!!!!!!!!!!!
  c6:   1f 92           push    r1
  c8:   0f 92           push    r0
  ca:   0f b6           in      r0, 0x3f        ; 63
  cc:   0f 92           push    r0
  ce:   11 24           eor     r1, r1
  d0:   2f 93           push    r18
  d2:   3f 93           push    r19
  d4:   4f 93           push    r20
  d6:   5f 93           push    r21
  d8:   6f 93           push    r22
  da:   7f 93           push    r23









Bez virů.
Obsah této zásilky byl zkontrolován na přítomnost virů technologií BitDefender




reply via email to

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