Hallo, Delta_Force,
Du meintest am 15.11.00 zum Thema Re: LabVIEW St. 3.1Win: how to interface to Centronics:
>> Reading from the LP port is tricky. How is the port configured (in
>> the CMOS setup): SPP, EPP or ECP?
> SPP: it's an old 486
>> Do you know how to switch "base+0" from output to input?
> No I don't
From Vernon Buergs Interrupt list (port list):
--------P-P03BC03BF--------------------------
PORT 03BC-03BF - PARALLEL PRINTER PORT (MDA's LPT1)
Range: PORT 0278h, PORT 0378h, or PORT 03BCh
SeeAlso: MEM 0040h:0008h
03BC -W data port
03BC R- bidirectional port: input from connector
unidirectional port: last value written to port
03BD R- status port (see #P0658)
03BE RW control port (see #P0659)
Bitfields for parallel interface status port:
Bit(s) Description (Table P0658)
7 busy
6 NOT acknowledge (approx. 5us low pulse)
5 out of paper
4 printer is selected
3 *no* error
2 IRQ has *not* occurred
(PS/2) printer returned -ACK
1-0 reserved
Note: if bit 2 is clear (i.e. an interrupt has occurred), it is set again on
reading the status register
SeeAlso: #P0659
Bitfields for parallel interface control port:
Bit(s) Description (Table P0659)
7-6 reserved
7 (see PORT 037Bh bit 7)
5 (PS/2) enable bidirectional port
(also requires enabling via PORT 0102h)
4 enable IRQ (via -ACK)
3 select printer (SLCT IN line)
2 =0 initialize printer (-RESET line)
1 automatic line feed
0 strobe (must be set for minimum of 5 microseconds)
SeeAlso: #P0658
--------V-P03BF------------------------------
PORT 03BF - Hercules configuration switch register
Note: can also be found on EGA and VGA clones in Hercules emulation
03BF -W configuration switch register (see #P0660)
03BF -W (ET4000) Hercules compatibility register (see #P0661)
03BF RW (Genoa SuperEGA) miscellaneous register
Note: only available in MDA, HGC, and CGA emulation; should be
compatible with Hercules configuration register, but may contain
additional features
Bitfields for Hercules configuration switch register:
Bit(s) Description (Table P0660)
7-2 reserved
1 =0 disables upper 32K of graphics mode buffer
=1 enables upper 32K of graphics mode buffer
0 =0 prevents graphics mode
=1 allows graphics mode
SeeAlso: #P0661
---------------------------------------
He describes Port 03bch, Port 0378h ("LPT1") and 0278h ("LPT2") act in
the same way.
On a SPP port you cannot read from (base+0), you can only use some of
the status lines from (base+1).
Viele Gruesse!
Helmut