[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Interrupt Driven UART
From: |
Nils Springob |
Subject: |
Re: [avr-gcc-list] Interrupt Driven UART |
Date: |
Sun, 29 Aug 2004 16:50:03 +0200 |
User-agent: |
KMail/1.6.2 |
Hi Asim,
perhaps the problem is the 'data register empty' interupt, which remains
pending if
you don't write to UDR in the interupt routine (cTxCtr==0).
Regards,
Nils
SIGNAL (SIG_UART_DATA)
{
if (cTxCtr != 0)
{
...
}
else
{
UCSRB &= ~(_BV(UDRIE));
}
--
Nils Springob
Weberstrasse 13, 52064 Aachen
Tel: +49 241 / 5684671
Mobil: +49 163 / 7533874