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)
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
- Page 36 and 37: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- Page 38 and 39: Cassette User Interface The cassett
- Page 40 and 41: Cassette Interface Connector Specif
- Page 42 and 43: I/O Address Map HEX RANGE 9 8 7 6
- Page 44 and 45: System Memory Map X'OOOOO' 16 TO 6
- Page 46 and 47: System Memory Map Cont. START ADDR
- Page 48 and 49: 5-1/4" Diskette Drives Switch Setti
- Page 50 and 51: 32/64KB Memory Expansion Option Sw
- Page 52 and 53: Power Supply The system DC power su
- Page 54 and 55: N I ~ VI ) § I • \. ~ o el so.
- Page 56 and 57: IBM Monochrome Display and Parallel
- Page 58 and 59: System Channel Interface Lines Used
- Page 60 and 61: Programming Considerations Programm
- Page 62 and 63: • CRT Status Port (I/O Address '3
- Page 64 and 65: Color/Graphics Monitor Adapter The
- Page 66 and 67: CPU .. r-- ) ) ) DISPLAY ADDRESS BU
- Page 68 and 69: Modes of Operation There are two ba
- Page 70 and 71: IBM Monochrome Display Adapter V s.
- Page 72 and 73: Color selection is determined by th
- Page 74 and 75: 1"'"""""\ Table 5. I R G B Summary
- Page 76 and 77: Programming the Mode Control and St
- Page 78 and 79: Bit 5 When on, this bit will change
- Page 80 and 81: I/O Address and Bit Map Read/Write
- Page 82 and 83: Color/Graphics Monitor Adapter Auxi
- Page 84 and 85: Parallel Printer Adapter The Printe
- Page 88 and 89: Parallel Printer Adapter Interface
- Page 90 and 91: Table 7. Printer Specifications (1
- Page 92 and 93: Table 9. Functions and Conditions o
- Page 94 and 95: Table 10. Connector Pin Assignment
- Page 96 and 97: (4) Data transfer sequence Fig. 17
- Page 98 and 99: ASCII Control Codes Control Codes V
- Page 100 and 101: (8) DC 2 (Device Control 2) The DC
- Page 102 and 103: (b) 3) ESC 2 (Escape 2) Receipt of
- Page 104 and 105: ehaves like the LF code. Therefore,
- Page 106 and 107: [DATA] IESCGI ABCDEFGHI [PRINT] ABC
- Page 108 and 109: 5 1/4-Inch Diskette Drive Adapter T
- Page 110 and 111: ~ Functional Description From a pro
- Page 112 and 113: The FOe is capable of performing 15
- Page 114 and 115: Table 13. Symbol Descriptions (cont
- Page 116 and 117: Command Summary (continued) DATA B
- Page 118 and 119: Command Summary (continued) DATA B
- Page 120 and 121: Table 15. Status Register I BIT NO.
- Page 122 and 123: Table 17. Status Register 3 BIT NO.
- Page 124 and 125: ~ ~ +AO-9 +AEN -lOW -lOR -DACK2 +T
- Page 126 and 127: Adapter Inputs -Index -Write Protec
- Page 128 and 129: 5-1/4" Diskette Drive Adapter Exter
- Page 130 and 131: (3) The write-protect sensor disabl
- Page 132 and 133: Memory Expansion Options Two Memory
- Page 134 and 135: Switch - Configurable Start Address
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