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 Programming the 6845 CRT Controller The following table summarizes the 6845 Internal Data Registers and their functions and parameters. For the IBM Monochrome Display, r--.., the values in the table must be programmed into the 6845 to insure proper initialization of the device. Table 2. 6845 INITIALIZATION PARAMETERS REGISTER REGISTER PROGRAM 80x25 # FILE UNIT MONOCHROME RO HORIZONTAL TOTAL CHARACTERS 61H Rl HORIZONTAL OISPLAYED CHARACTERS 50H R2 HSYNC POSITION CHARACTERS 52H R3 HSYNC WIDTH CHARACTERS FH R4 VERTICAL TOTAL CHAR ROWS 19H R5 VTOTAL ADJUST SCAN LINE 6H R6 VERTICAL DISPLAYED CHAR ROW 19H R7 VSYNC POSITION CHAR ROW 19H RS INTERLACE MODE --- 02 R9 MAX SCAN LINE ADDRESS SCAN LINE DH R10 CURSOR START SCAN LINE BH Rll CURSOR END SCAN LINE CH R12 START ADDRESS (H) --- DOH R13 START ADDRESS (L) --- DOH R14 CURSOR (H) --- DOH R15 CURSOR (L) --- DOH R16 RESERVED --- -- R17 RESERVED --- -- Sequence of Events The first command issued to this attachment must be to output to PORT 3B8, hex 01, to set high resolution mode. Ifthe high resolution mode is not set, an infinite CPU wait-state will occur! Memory Requirements The attachment has 4K bytes of memory which is used for the display buffer. The memory supports one screen of 25 rows of 80 characters, plus a character attribute for each display character. No parity is provided on the memory. No system Read/Write memory is required for the monochrome adapter portion. The display buffer starts at address 'BOOOO'. 2-41
DMA Channels The display buffer will support a DMA operation, however CPU wait-states will be inserted during DMA. Interrupt Levels Interrupt Level 7 is used on the parallel interface. Interrupts can be enabled or disabled via the Printer Control Port. The interrupt is a high level active signal. I/O Address and Bit Map The table below breaks down the functions ofthe I/O Address decode for the card. The I/O address decode is from '3BO' through '3BF'. The bit assignment for each I/O address follows: I/O Address Function 3BO Not Used 3Bl Not Used 3B2 Not Used 3B3 Not Used 3B4 6845 Index Register 3B5 6845 Data Register -. 3B6 Not Used r , 3B7 Not Used 3B8 CRT Control Port 1 3B9 Reserved 3BA CRT Status Port 3BB Reserved 3BC Parallel Data Port 3BD Printer Status Port 3BE Printer Control Port 3BF Not Used The 6845 Index and Data Registers are used to program the CRT controller to interface to the high resolution Monochrome Display. • CRT Output Port 1 (I/O Address '3B8') Bit :#= Function +high resolution mode 2-42 o 1 Not used 2 Not used 3 + video enable 4 Not used 5 + enable blink 6,7 Not used
- Page 10 and 11: Programming Considerations ........
- Page 12 and 13: INS 8250 Functional Pin Description
- Page 14 and 15: FIGURE LISTING 1. System Block Dia
- Page 16 and 17: SECTION I. HARDWARE OVERVIEW The
- Page 18 and 19: The 16KB Memory Expansion Kits allo
- Page 20 and 21: SECTION 2. HARDWARE ~ Contents: Sys
- Page 22 and 23: SYSTEM BOARD The System Board fits
- Page 24 and 25: The memory is dynamic 16K x 1 chips
- Page 26 and 27: System Board Data Flow Figure 2. S
- Page 28 and 29: 1/0 Channel Diagram REAR PANEl SI
- Page 30 and 31: I/O CHRDY I I/O Channel Ready: This
- Page 32 and 33: System Board Component Diagram REA
- Page 34 and 35: Keyboard Interface B lock Diagram
- 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 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 86 and 87: Programming Considerations The Prin
- 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
Programming Considerations<br />
Programming the 6845 CRT Controller<br />
The following table summarizes the 6845 Internal Data Registers and<br />
their functions and parameters. For the <strong>IBM</strong> Monochrome Display,<br />
r--.., the values in the table must be programmed into the 6845 to insure<br />
proper initialization of the device.<br />
Table 2. 6845 INITIALIZATION PARAMETERS<br />
REGISTER REGISTER PROGRAM 80x25<br />
# FILE UNIT MONOCHROME<br />
RO HORIZONTAL TOTAL CHARACTERS 61H<br />
Rl HORIZONTAL OISPLAYED CHARACTERS 50H<br />
R2 HSYNC POSITION CHARACTERS 52H<br />
R3 HSYNC WIDTH CHARACTERS FH<br />
R4 VERTICAL TOTAL CHAR ROWS 19H<br />
R5 VTOTAL ADJUST SCAN LINE 6H<br />
R6 VERTICAL DISPLAYED CHAR ROW 19H<br />
R7 VSYNC POSITION CHAR ROW 19H<br />
RS INTERLACE MODE --- 02<br />
R9 MAX SCAN LINE ADDRESS SCAN LINE DH<br />
R10 CURSOR START SCAN LINE BH<br />
Rll CURSOR END SCAN LINE CH<br />
R12 START ADDRESS (H) --- DOH<br />
R13 START ADDRESS (L) --- DOH<br />
R14 CURSOR (H) --- DOH<br />
R15 CURSOR (L) --- DOH<br />
R16 RESERVED --- --<br />
R17 RESERVED --- --<br />
Sequence of Events<br />
The first command issued to this attachment must be to output to<br />
PORT 3B8, hex 01, to set high resolution mode. Ifthe high resolution<br />
mode is not set, an infinite CPU wait-state will occur!<br />
Memory Requirements<br />
The attachment has 4K bytes of memory which is used for the display<br />
buffer. The memory supports one screen of 25 rows of 80 characters,<br />
plus a character attribute for each display character. No parity is<br />
provided on the memory. No system Read/Write memory is required<br />
for the monochrome adapter portion. The display buffer starts at<br />
address 'BOOOO'.<br />
2-41