Hans-Peter Diettrich <> wrote:
> Arno schrieb:
>> Paralell needs interrupts only for advances modes like EPP/ECP,
>> but not for plain LPT, which also does not need parameters.
> What's the alternative for interrupts? A polling line printer
> software/driver could work, of course, but is an anachronism in an fully
> interrupt driven environment.
So what? Just because a concept is old does not make it bad.
And in an environment with fast task-swiching, polling is not
that much of an issue, especially because there are no
incomming messages/events, unlike a serial driver, hence
polling is only done while actually transferring data to the
parallel device.
But the real difference to serial is this: Especially
with industrial serial cards, you quickly exhaust the maximum
2 (or was it 4?) interface limit a standard PC and have to
get creative with the interrupts, hence requiring a driver.
As serial interfaces are used a lot in industrial automation
the case where more than two are needed in one process control
PC is not that rare.
While there may be cases where people need more than two
LPT interfaces, these are very rare. And with a maximum of
two LPTs, it is completely clear how to operate the
hardware and which interrupts are used, hence no need for
an external driver at all.
Side notes: One reason parallel interfaces are usually not used
in automation is cable length limits and the simple need for
more wires. Also, a serial interface is bi-directional, while
for parallel this is either a more recent development (EPP/ECP)
or requires electrically problematic output sensing. Nether
of this approaches is robust against long cables, contrary to
the far better noise immunity of serial lines. And if you want
to insulate a serial line, you just need 2 opto-couplers, while
with parallel, you need 11 or more and you loose bi-directionality
in the bargain.
Arno
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email:
GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans