Skip to main content
llebotlan
Associate II
Mar 27, 2006 9:08 AM UTC
Question

UART status register set overrun but RXFIFO empty

Posted on March 27, 2006 at 11:08

UART status register set overrun but RXFIFO empty

This topic has been closed for replies.

1 reply

llebotlan
llebotlanAuthor
Associate II
Mar 23, 2006 10:38 AM UTC
Posted on March 23, 2006 at 11:38

Hi,

This is my state :

uart->SR = 0xA6

// means : TimeoutIdle|OverrunError|TxHalfEmpty|TxEmpty

My uart->IER = 107 // means RxHalfFull|TxHalfEmpty|TxEmpty

My uart handler wakeup by the TxEmpty interrupt and noticed there is a UART overrun error. I don't know why. So I clear the SR, the overrun bit and I record the problem.

After the next TxEmpty interrupt call. The overrun bit is still set. Why? Is there a good reason for it. Why the overrun bit is set and the RxFifo empty ? Can I read Status Register bit that are not set in the Interrupt Enable Register ?

The Overrun bit is almost set each time the handler is call. This happened only when I send data during initialisation of our software.

Thanks,