25.03.2015 Views

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Programming Considerations<br />

The Printer Adapter responds to 5 I/O instructions - 2 output and 3<br />

input. The output instructions transfer data into 2 latches whose outputs<br />

~ are presented on pins of a 25 Pin "D" shell connector.<br />

Two of the three input instructions allow the CPU to read back the<br />

contents of the two latches. The third allows the CPU to -read the real<br />

time status of a group of pins on the connector.<br />

A description of each instruction follows.<br />

<strong>IBM</strong> Monochrome Display & Printer Adapter<br />

Parallel Printer Adapter<br />

Output to address 3BCH Output to address 378H<br />

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0<br />

Pin 9 Pin 8 Pin 7 Pin 6 Pin 5 Pin 4 Pin 3 Pin 2<br />

This instruction captures data from the data bus and is present on the<br />

respective pins. These pins are each capable of sourcing 2.6 rna and<br />

sinking 24 rna.<br />

It is essential that the external device not try to pull these lines to<br />

~ ground.<br />

<strong>IBM</strong> Monochrome Display & Printer Adapter<br />

Parallel Printer Adapter<br />

Output to address 3BEH Output to address 37AH<br />

Bit 4 Bit 3 Bit 2 Bit 1 Bit 0<br />

IRQ Pin 17 Pin 16 Pin 14 Pin 1<br />

Enable<br />

This instruction causes this latch to capture the five least significant<br />

bits of data bus. The four least significant bits present their outputs, or<br />

inverted versions oftheir outputs to the respective pins shown above. If<br />

bit 4 is written I, the card will interrupt the CPU on the condition that<br />

Pin 10 transitions high to low.<br />

These pins are driven by open collector drivers pulled to +5V through<br />

4.7K OHM resistors. They can each sink approximately 7 rna and<br />

maintain 0.8 volts down level.<br />

~ Note: For pin references, see Parallel Interface Connector<br />

Specifications, page 2-69.<br />

2-67

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!