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)

classiccomputers.info
from classiccomputers.info More from this publisher
25.03.2015 Views

Programming Considerations The Printer Adapter responds to 5 I/O instructions - 2 output and 3 input. The output instructions transfer data into 2 latches whose outputs ~ are presented on pins of a 25 Pin "D" shell connector. Two of the three input instructions allow the CPU to read back the contents of the two latches. The third allows the CPU to -read the real time status of a group of pins on the connector. A description of each instruction follows. IBM Monochrome Display & Printer Adapter Parallel Printer Adapter Output to address 3BCH Output to address 378H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Pin 9 Pin 8 Pin 7 Pin 6 Pin 5 Pin 4 Pin 3 Pin 2 This instruction captures data from the data bus and is present on the respective pins. These pins are each capable of sourcing 2.6 rna and sinking 24 rna. It is essential that the external device not try to pull these lines to ~ ground. IBM Monochrome Display & Printer Adapter Parallel Printer Adapter Output to address 3BEH Output to address 37AH Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 IRQ Pin 17 Pin 16 Pin 14 Pin 1 Enable This instruction causes this latch to capture the five least significant bits of data bus. The four least significant bits present their outputs, or inverted versions oftheir outputs to the respective pins shown above. If bit 4 is written I, the card will interrupt the CPU on the condition that Pin 10 transitions high to low. These pins are driven by open collector drivers pulled to +5V through 4.7K OHM resistors. They can each sink approximately 7 rna and maintain 0.8 volts down level. ~ Note: For pin references, see Parallel Interface Connector Specifications, page 2-69. 2-67

IBM Monochrome Display &Printer Adapter Parallel Printer Adapter Input from address x' '3BC' Input from address 378H This command presents the CPU with data present on the pins associated with the out to x' '3BC'. This should nonnally reflect the exact value that was last written to x '3BC'.1fan external device should be driving data on these pins (in violation ofusage ground rules) at the time of an input, this data will be 'or' ed with the latch contents. IBM Monochrome Display & Printer Adapter Parallel Printer Adapter Input from address 3BDH Input from address 379H This command presents real time status to the CPU from the pins as follows. Bit 1 Bit 0 IBM Monochrome Display & Printer Adapter Parallel Printer Adapter Input from address 3BEH Input from address 37AH This instruction causes the data present on pins 1, 14, 16, 17 and IRQ bit to be read by the CPU. In the absence of external drive applied to these pins, data read by the CPU will exactly match data last written to r""'\ x' '3BE' in the same bit positions. Note that data bits 0-2 are not included. Ifexternal drivers are dotted to these pins, that data will be 'or'ed with data applied to the pins by the x' '3BE' latch. Bit 7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 -- -- IRQ Pin 17 Pin 16 Pin 14 Pin 1 Enable Por={) Por=1 Por={) Por=1 Por=1 These pins assume the states shown after a reset from the CPU. Note: For pin references see Parallel Printer Adapter Interface Connector Specifications page 2-69. 2-68

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!