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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

Saved successfully!

Ooh no, something went wrong!