On Tue, Jul 13, 2010 at 06:25:23PM +0600, Alexey Goncharov wrote:
I wonder if the port is using the irq or polling?  I seem to recall
seeing really bad serial performance when the irq wasn't setup right once.

Here is an excerpt from 8250 driver debug log:

serial8250_interrupt(28)...status = 61...end.
THRE...serial8250_interrupt(28)...status = 61...end.
status = 60...THRE...serial8250_interrupt(28)...status = 60...end.
serial8250_interrupt(28)...status = 61...end.


status = 61 <--- 0x61 - a value that is stored in UnLSR (UART Line Status Register). UnLSR register description can be found in LPC2468 user manual rev. 4 ( http://www.nxp.com/documents/data_sheet/LPC2468.pdf ) on page 432. Below is a part of it:

0x61 = 0110 0001
        ||     |
        ||     +----->   Overrun Error
        |+----------->   Transmitter Holding Register Empty (THRE)
        +------------>   Transmitter Empty (TEMT)

So.. how should i treat UARTs to except this kind of overruns? I send no more than 16 bytes every 80-100 ms and it tells me "overrun".

Thank you for your time

_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to