Re: 8ms Timer for serial port access

From: David Schwartz (davids_at_webmaster.com)
Date: 10/29/03


Date: Wed, 29 Oct 2003 13:59:27 -0800


"Jens Schumacher" <jens.schumache@gmx.net> wrote in message
news:BBC476FC.1CA0%jens.schumache@gmx.net...

> > You can even do this:
> >
> > 1) Wait 8 milliseconds (though it will probably really be ten)
> > 2) Read as many bytes as are ready without blocking.
> > 3) Process as many complete frames as you now have saving any leftover
> > bytes for the next pass.
>
> Then I will have another delay before I can process the data. I try to
avoid
> any delay like this.

    Then *always* block in 'read'.

    DS