RTV forum PL | NewsGroups PL

Dlaczego funkcja SIG_UART_RECV w Atmega32 z UARTem w AVRStudio 4.12 ciągle się wywołuje?

AVRStudio i przerwania

NOWY TEMAT

elektroda NewsGroups Forum Index - Elektronika Polska - Dlaczego funkcja SIG_UART_RECV w Atmega32 z UARTem w AVRStudio 4.12 ciągle się wywołuje?

igla
Guest

Sat Mar 04, 2006 10:13 pm   



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

Bogdan Gutknecht
Guest

Mon Mar 06, 2006 10:03 am   



Użytkownik "igla" <iglaz@malpa-poczta.onet.pl> napisał w wiadomości
news:ducvor$2ht$1@inews.gazeta.pl...
Quote:
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.

elektroda NewsGroups Forum Index - Elektronika Polska - Dlaczego funkcja SIG_UART_RECV w Atmega32 z UARTem w AVRStudio 4.12 ciągle się wywołuje?

NOWY TEMAT

Regulamin - Zasady uzytkowania Polityka prywatnosci Kontakt RTV map News map