Re: Linux serial port dropping bytes
- From: David Brown <david@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 07 Apr 2008 08:54:29 +0200
Didi wrote:
David Brown wrote:"Low latency" is a relative term.
It is, relative to the current state of technology. Readers of this
newsgroup are assumed to be aware of it.
I think you are looking at a very narrow view of the technology used in embedded systems. Just because fast devices are available cheaply and easily, does *not* mean that fast devices are appropriate for every embedded system. When designing a new system, I choose a microcontroller running at 150 MHz if that's what suits the system - but I might choose one running at 1 MHz if that's a better fit.
Were all your millions of lines of code written for just the one
project?
No. You can see some of my projects at
http://tgi-sci.com/dsv/dsvpex.htm . Then take into account the fact
that "the 1 project" contains 7 processor designs so far - two of
them running DPS.
And there you will not see some which are too old - from the 1 MHz
6809 and 6800 times, some of which did latency related miracles
of their own (1985 or so). These sources are not included in the
line/byte counts I quote either.
Because you seem to be having difficulty appreciating the
breadth of possible embedded systems, and how their requirements may
vary enormously.
I do not have this difficulty. You seem to have a difficulty to
comprehend
the fact that being able to afford overkill resources resulting in a
working
product does not mean your practice is worth being repeated by others.
< Hits head repeatedly on the table...>
The whole point of picking your program structure to match the application is that you get smaller, faster, simpler, clearer, and more reliable code by picking the most appropriate setup for the application in hand.
Go back and re-read that paragraph.
You have been claiming it is *always* better to use the one single technique (minimal work in the ISR) - despite repeated examples from various other posters of when other methods can be better, and have been used successfully in real world projects. Spending time thinking about the design and using an appropriate interrupt structure results in a better program using less resources (developers' resources as well as run-time resources) - forcing your code to use a single structure regardless of the application can easily result in wasted resources.
If you design a 100 tonn car which will take you places at a speed and
cost you accept you may have solved your immediate problem, but
not many people would be well advised to repeat your design.
Again - it is *your* dogma that will lead to wasted resources. I (and everyone else still following this branch) recommend using the best interrupt routine structure for the given application. It *cannot* be worse (assuming a competent developer!) than sticking to a general rule such as yours - if minimal interrupt routines are the best for the job in hand, then that's what we'll use!
To correct your analogy - *you* say that all vehicles must have four wheels. I say that four wheels is a good number in many cases, but that sometimes two or six wheels is a better choice, and you should pick the right number of wheels for a given type of vehicle.
.
- References:
- Linux serial port dropping bytes
- From: Derek Young
- Re: Linux serial port dropping bytes
- From: David Brown
- Re: Linux serial port dropping bytes
- From: Didi
- Re: Linux serial port dropping bytes
- From: Albert van der Horst
- Re: Linux serial port dropping bytes
- From: Didi
- Re: Linux serial port dropping bytes
- From: Grant Edwards
- Re: Linux serial port dropping bytes
- From: Didi
- Re: Linux serial port dropping bytes
- From: David Brown
- Re: Linux serial port dropping bytes
- From: Didi
- Linux serial port dropping bytes
- Prev by Date: Stainless Steel with Plastic Bracelet KB695 Jewelers
- Next by Date: Long life span LED slim light box-http://www.edlite.hk
- Previous by thread: Re: Linux serial port dropping bytes
- Next by thread: Re: Linux serial port dropping bytes
- Index(es):
Relevant Pages
|
|