| Back to Victorian University Electronics Intranet Home Page Mirror. |
The IBM parallel printer port is a gold mine of interface bits, both input and output. Most IBM compatible parallel printer cards can be set to respond as either LPT1: or LPT2:. These devices appear within the microprocessor's I/O address space as three separate eight bit ports, which will subsequently be referred to as DATA PORT, STATUS and CONTROL. The actual machine addresses of these ports are as follows:
| LPT1: | LPT2: | |
| DATA PORT | 378H | 278H |
| STATUS | 379H | 279H |
| CONTROL | 37AH | 27AH |

| BIT | SIGNAL NAME | INPUT | OUTPUT | |
| DATA
PORT 378H |
D7
D6 D5 D4 D3 D2 D1 D0 |
D7
D6 D5 D4 D3 D2 D1 D0 |
These bits may be input but all you will get
is the value currently residing in the output latch, unless the interface
is genuinely bi-directional.
(Check circuit diagram) |
Latched TTL push-pull outputs with 2.2nF slow-down capacitors |
| STATUS
379H |
-D7
D6 D5 D4 D3 D2 D1 D0 |
BUSY
-ACK PE SLCT -ERROR -IRQ not available not available |
TTL inputs no pull-up resistor
not available
|
not available
not available not available not available not available not available not available not available |
| PORT C
37AH |
D7
D6 D5 D4 -D3 D2 -D1 -D0 |
not available
not available DIRECTION IRQ ENABLE -SLCT IN -INIT -AUTO FEED -STROBE |
not available
not available not available not available May be used as inputs if corresponding output bits are set to "1" |
not available
not available not available not available Open collector output with 4.7K pull-up resistor and 2.2nF slow-down capacitor |
| Back to Victorian University Electronics Intranet Home Page Mirror. |
DonTronics Links:
| Home | Products | Prices | Directory | Order | Contact | New | Books | Files | Links | FAQ |