Przyczyny nieustannego wywoływania przerwania SIG_UART_RECV w Atmega32 z AVRStudio 4.12

AVRStudio i przerwania





Poprzedni Następny
Wiadomość
Spis treści
From: igla <iglaz_at_nospam_malpa-poczta.onet.pl>
Subject: AVRStudio i przerwania
Date: Sat, 04 Mar 2006 22:13:01 +0100


Atmega32 + JTAG + AVRStudio 4.12
Poczas debugowania ONLINE po zainicjowaniu UARTu (z przerwaniem) caly
czas jet wywolywana funkcja obslugi przerwania SIG_UART_RECV mimo, ze
nic nie odbiera. Dlaczego tak sie dzieje?
igla

Poprzedni Następny
Wiadomość
Spis treści
From: "Bogdan Gutknecht" <b_gutknecht_at_nospam_interia.pl>
Subject: Re: AVRStudio i przerwania
Date: Mon, 6 Mar 2006 10:03:29 +0100



Użytkownik "igla" <iglaz_at_nospam_malpa-poczta.onet.pl> napisał w wiadomości
news:ducvor$2ht$1_at_nospam_inews.gazeta.pl...
Atmega32 + JTAG + AVRStudio 4.12
Poczas debugowania ONLINE po zainicjowaniu UARTu (z przerwaniem) caly
czas jet wywolywana funkcja obslugi przerwania SIG_UART_RECV mimo, ze
nic nie odbiera. Dlaczego tak sie dzieje?
igla

Jeśli jeszcze nie doczytałeś to cytuję:
The USART Receiver has one flag that indicates the receiver state. The
Receive Complete (RXC) flag indicates if there are unread data present in
the receive buffer. This flag is one when unread data exist in the receive
buffer, and zero when the receive buffer is empty (i.e., does not contain
any unread data). If the Receiver is disabled (RXEN = 0), the receive buffer
will be flushed and consequently the RXC bit will become zero. When the
Receive Complete Interrupt Enable (RXCIE) in UCSRB is set, the USART Receive
Complete Interrupt will be executed as long as the RXC flag is set (provided
that global interrupts are enabled). When interrupt-driven data reception is
used, the receive complete routine must read the received data from UDR in
order to clear the RXC flag, otherwise a new interrupt will occur once the
interrupt routine terminates.


Poprzedni Następny
Wiadomość
Spis treści
From: igla <iglaz_at_nospam_malpa-poczta.onet.pl>
Subject: Re: AVRStudio i przerwania
Date: Mon, 06 Mar 2006 21:13:43 +0100


Jeśli jeszcze nie doczytałeś to cytuję:
Czytalem na samym poczatku i wszystko jest tak jak pisza, a przerwanie
wystepuje tylko podczas debugowania online. DLaczego?