Re: Linux serial port dropping bytes



On 2008-04-02, Anton Erasmus <nobody@xxxxxxxxxxxxxxxx> wrote:

This turned out to be 5x faster than with the onboard UARTs where one
had to check the FIFO not empty flag every time.
On a 50MHz ARM9 it took about 25us per 16 characters having to do it
the way CBFalconer described it, while it only took about 5us per 16
characters where one could read how many chars were in the Rx FIFO.

There are a lot of micro-controllers out there with horribly
designed UARTs in them. One I've fought with recently is the
in the Samsung S3C4530. Half of the features don't work at
all. Half of the stuff that does work are useless because
whoever specified/designed the UART had never actually done any
serial communications only had a vague understanding of how
things like UARTs and FIFOs are used. For example, it has
FIFOs, but there's no way to flush them. It also has "hardware
flow control", but it doesn't work in a way that can be used
with any other UART on the planet.

--
Grant Edwards grante Yow! ... the MYSTERIANS are
at in here with my CORDUROY
visi.com SOAP DISH!!
.



Relevant Pages

  • Re: ISR16550
    ... Does it support FIFO? ... external QUART) that I am using with CE 4.2. ... serial device driver, all 6 ports work. ... on-processor UARTS work properly - IO on the QUART ports cause the following ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Linux serial port dropping bytes
    ... characters where one could read how many chars were in the Rx FIFO. ... things like UARTs and FIFOs are used. ... Yep - also the Sharp ARMs and Analog devices ADUC7k ... series ARMs. ...
    (comp.arch.embedded)
  • Re: Linux serial port dropping bytes
    ... characters where one could read how many chars were in the Rx FIFO. ... designed UARTs in them. ... things like UARTs and FIFOs are used. ... Everything with a "industry standard '550 uart" is horrible. ...
    (comp.arch.embedded)
  • Re: xPC Serial Communication Problems
    ... The FIFO read blocks are only for use with the new subsystem blocks. ... characters that don't match one of a set of patterns. ... The older serial block you're using uses the kernel resident driver ...
    (comp.soft-sys.matlab)
  • Re: xpc target communicating mismatch
    ... If I connet to XMT1, when running the model, the error message shows up: Input port width is less than the input count. ... The obsolete RS232 binary send/receive block doesn't output a ... FIFO signal so when you try to connect it to the FIFO read block, ... header and enough characters to fulfill the read. ...
    (comp.soft-sys.matlab)