Sei sulla pagina 1di 79

----

----
- ----
---
- - ---
- -- ---
----- --_.-
Technical
Reference
Options and Adapters
Volume 2
Personal Computer
Hardware Reference
Library
Revised Edition (April 1984)
The following paragraph does not apply to the United Kingdom or any country where such
provisions are inconsistent with local law: International Business Machines Corporation
provides this manual "as is," without warranty of any kind, either expressed or implied,
including, but not limited to the particular purpose. IBM may make improvements and/or
changes in the product(s) and/or the program(s) described in this manual at any time.
This product could include technical inaccuracies or typographical errors. Changes are
made periodically to the information herein; these changes will be incorporated in new
editions of the publication.
It is possible that this material may contain reference to, or information about, IBM
products (machines or programs), programming, or services that are not announced in
your country. Such references or information must not be construed to mean that IBM
intends to announce such IBM products, programming, or services in your country.
Products are not stocked at the address below. Requests for copies of this product and for
technical information about the system should be made to your authorized IBM Personal
Computer dealer.
The following paragraph applies only to the United States and Puerto Rico: A Reader's
Comment Form is provided at the back of this publication. If the form has been removed,
address comments to: IBM Corp., Personal Computer, P.O. Box 1328-C, Boca Raton,
Florida 33432. IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligations whatever.
Copyright International Business Machines Corporation 1981, 1982, 1983, 1984
ii
Federal Communications Commission
Radio Frequency Interference Statement
Warning: The equipment described herein has been certified
to comply with the limits for a Class B computing device,
pursuant to Subpart J of Part 15 of the FCC rules. Only
peripherals (computer input/ output devices, terminals,
printers, etc.) certified to comply with the Class B limits may
be attached to the computer. Operation with non-certified
peripherals is likely to result in interference to radio and TV
reception. If peripherals not offered by IBM are used with the
equipment, it is suggested to use shielded grounded cables
with in-line filters if necessary.
CAUTION
The product described herein is equipped with a grounded
plug for the user's safety. It is to be used in conjunction with
a properly grounded receptacle to avoid electrical shock.
iii
iv
--- -
----
- - ---
- ---
- - ---
- - - ---
-----
--_.-
Personal Computer
Hardware Reference
Library
mM Monochrome
Display and Printer
Adapter
6361511
ii
Contents
Introduction ................................... 1
Monochrome Display Adapter Function .............. 1
Description ................................ 1
Programming Considerations .................. 5
Specifications .............................. 9
Printer Adapter Function ........................ 11
Description ............................... 11
Programming Considerations ................. 13
Specifications ............................. 17
Logic Diagrams ................................ 19
ill
iv
Introduction
The IBM Monochrome Display and Printer Adapter has two
functions. The first is to provide an interface to the IBM
Monochrome Display. The second is to provide a parallel
interface for the IBM Printers. We will discuss this adapter by
function.
Monochrome Display Adapter Function
Description
The IBM Monochrome Display and Printer Adapter is designed
around the Motorola 6845 CRT Controller module. There are
4K bytes of RAM on the adapter that are used for the display
buffer. This buffer has two ports to which the system unit's
microprocessor has direct access. No parity is provided on the
display buffer.
Two bytes are fetched from the display buffer in 553 ns,
providing a data rate of 1.8M bytes/second.
The adapter supports 256 different character codes. An 8K-byte
character generator contains the fonts for the character codes.
The characters, values, and screen characteristics are given in "Of
Characters, Keystrokes, and Colors" in your Technical Reference
system manual.
This adapter, when used with a display containing P39 phosphor,
does not support a light pen.
Where possible, only one low-power Schottky (LS) load is
present on any I/O slot. Some of the address bus lines have two
LS loads. No signal has more than two LS loads.
Monochrome Adapter 1
Characteristics of the adapter are:
Supports 80-character by 25-line screen
Has direct-drive output
Supports 9-PEL by 14-PEL character box
Supports 7-PEL by 9-PEL character
Has 18-kHz monitor
Has character attributes
2 Monochrome Adapter
The following is a block diagram of the monochrome display
adapter portion of the IBM Monochrome Display and Printer
Adapter.
Processor
Address
Processor
Data
AO
Chip
Select
Timing
Signals
(12)
Memory
( 1 ~
Address
Multiplexer
Data
Bus
Gating
BDO-7
I
(8)
MA
~
MC6845
~
CRTC
-.
r
(10)
2K Memory
Character
Code
(8)
I ~
(8)
I"""
Character
Clock
Octal
~ 1
Latch
f--
RA ~
Character
(4)
-..
Generator
DOTCLK
Shift
L... ..
Register
..
Serial Dots
HSYNC, VSYNC, CURSOR, DISPEN
Character
Clock
(10)
2K Memory
Attribute
,Ir
Octal
Latch
Attribute
Decode
I
Video
Process
Logic
* Monitor
Direct Drive
Outputs
IBM Monochrome Display Adapter Block Diagram
Monochrome Adapter 3
4 Monochrome Adapter
Programming Considerations
The following table summarizes the 6845 controller module's
internal data registers, their functions, and their parameters. For
the IBM Monochrome Display, the values must be programmed
into the 6845 to ensure proper initialization of the display.
IBM Monochrome
Register Register Program Display
Number File Unit (Address in hex)
RO Horizontal Total Characters 61
R1 Horizontal Displayed Characters 50
R2 Horizontal Sync Position Characters 52
R3 Horizontal Sync Width Characters F
R4 Vertical Total Character Rows 19
R5 Vertical Total Adjust Scan Line 6
R6 Vertical Displayed Character Row 19
R7 Vertical Sync Position Character Row 19
R8 Interlace Mode
---------
02
R9 Maximum Scan Line Scan Line D
Address
R10 Cursor Start Scan Line B
R11 Cursor End Scan Line C
R12 Start Address (H)
---------
00
R13 Start Address (Ll
---------
00
R14 Cursor (H) ---------
00
R15 Cursor (L)
---------
00
R16 Reserved
--------- --
R17 Reserved
--------- --
To ensure proper initialization, the first command issued to the
IBM Monochrome Display and Printer Adapter must be sent to
the CRT control port 1 (hex 3B8), and must be a hex 01, to set
the high-resolution mode. If this bit is not set, the system unit's
microprocessor's access to the adapter must never occur. If the
high-resolution bit is not set, the system unit's microprocessor will
stop running.
System configurations that have both an IBM Monochrome
Display and Printer Adapter, and an IBM Color/Graphics
Monitor Adapter, must ensure that both adapters are properly
initialized after a power-on reset. Damage to either display may
occur if not properly initialized.
Monochrome Adapter 5
The IBM Monochrome Display and Printer Adapter supports 256
different character codes. In the character set are alphanumerics
and block graphics. Each character in the display buffer has a
corresponding character attribute. The character code must be an
even address, and the attribute code must be an odd address in
the display buffer.
7 6 5 4 3 2 0
Character Code
Even Address (M)
7 6 5 4 3 2 0
FI
R G
I B
I
I
I
R G
B I
Attribute Code
Odd Address (M + 1)
I
I
I I
~
Foreground
Intensity
Background
Blink
The adapter decodes the character attribute byte as defined
above. The blink and intensity bits may be combined with the
foreground and background bits to further enhance the character
attribute functions listed below:
Background Foreground
R G B R G B Function
0 0 0 0 0 0 Non-Display
0 0 0 0 0 1 Underline
0 0 0 1 1 1 White Character/Black Background
1 1 1 0 0 0 Reverse Video
The 4K display buffer supports one screen of the 25 rows of 80
characters, plus a character attribute for each display character.
The starting address of the buffer is hex BOOOO. The display
buffer can be read using direct memory access (DMA); however,
at least one wait state will be inserted by the system unit's
microprocessor. The duration of the wait state will vary, because
the microprocessor/monitor access is synchronized with the
character clock on this adapter.
6 Monochrome Adapter
Interrupt level 7 is used on the parallel interface. Interrupts can
be enabled or disabled through the printer control port. The
interrupt is a high-level active signal.
The following table breaks down the functions of the I/O address
decode for the adapter. The i/O address decode is from hex 3BO
through hex 3BF. The bit assignment for each I/O address
follows:
1/0 Register
Address Function
3BO Not Used
3B1 Not Used
3B2 Not Used
3B3 Not Used
3B4 6845 Index Register
3B5 6845 Data Register
3B6 Not Used
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
1/0 Address and Bit Map
Monochrome Adapter 7
Bit
Number Function
0 + High Resolution Mode
1 Not Used
2 Not Used
3 + Video Enable
4 Not Used
5 + Enable Blink
6,7 Not Used
6845 CRT Control Port 1 (Hex 388)
Bit
Number Function
0 + Horizontal Drive
1 Reserved
2 Reserved
3 + Black/White Video
6845 CRT Status Port (Hex 38A)
8 Monochrome Adapter
Specifications
At Standard TTL Levels
Ground
Ground
Not Used
IBM
Not Used
Monochrome Not Used
Display
+ Intensity
+ Video
+ Horizontal
- Vertical
9-Pin
Monochrome
Display
connector
o
1 ~ 6
5U
9
o
1
2
3
4
IBM
Monochrome
5
Display and
6 Printer Adapter
7
8
9
Note: Signal voltages are 0.0 to 0.6 Vdc at down level and + 2.4 to 3.5
Vdc at high level.
Connector Specifications
Monochrome Adapter 9
10 Monochrome Adapter
Printer Adapter Function
Description
The printer adapter portion of the IBM Monochrome Display and
Printer Adapter is specifically designed to attach printers with a
parallel-port interface, but it can be used as a general
input/ output port for any device or application that matches its
input/output capabilities. It has 12 TTL-buffer output points,
which are latched and can be written and read under program
control using the microprocessor In or Out instruction. The
adapter also has five steady-state input points that may be read
using the microprocessor's In instructions.
In addition, one input can also be used to create a microprocessor
interrupt. This interrupt can be enabled and disabled under
program control. A reset from the power-on circuit is also ORed
with a program output point, allowing a device to receive a
'power-on reset' when the system unit's microprocessor is reset.
The input/output signals are made available at the back of the
adapter through a right-angle, printed-circuit-board-mounted,
25-pin, D-shell connector. This connector protrudes through the
rear panel of the system unit or expansion unit, where a cable may
be attached.
When this adapter is used to attach a printer, data or printer
commands are loaded into an 8-bit, latched, output port, and the
strobe line is activated, writing data to the printer. The program
then may read the input ports for printer status indicating when
the next character can be written, or it may use the interrupt line
to indicate "not busy" to the software.
The output ports may also be read at the card's interface for
diagnostic loop functions. This allows faults to be isolated to the
adapter or the attaching device.
Monochrome Adapter 11
The following is a block diagram of the printer adapter portion of
the Monochrome Display and Printer Adapter.
8
25-Pin D-Shell
L
Connector
Bus Latc ...
-.. ..
Enable Clock
Trans- ___ +-____
ceiver
r
DIR
L...---..J

,DIR
Read
Data
O.C.
Drivers
Write Data
Command ____ +---.J
Reset
Decoder Write Control
Read Status
Read
I Control
Bus
Buffers

Enable
..
Y
Enable
r
Printer Adapter Block Diagram
12 Monochrome Adapter

5
r.
Control
Latch
4 Clock f-
rl Clear
SLCTIN
STROBE

AUTO
FDXT
INIT
SLCT
PE
ACK
BUSY
Programming Considerations
The printer adapter portion of the IBM Monochrome Display and
Printer Adapter responds to five I/O instructions: two output
and three 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 system unit's
microprocessor to read back the contents of the two latches. The
third allows the system unit's microprocessor to read the real-time
status from a group of pins on the connector.
A description of each instruction follows.
IBM Monochrome Display &
Printer Adapter
Output to address hex 3BC
Bit 7 Bit 6 Bit 5 Bit4
Pin 9 Pin 8 Pin 7 Pin 6
The instruction captures data from the data bus and is present on
the respective pins. Each of these pins is capable of sourcing 2.6
rnA and sinking 24 rnA.
It is essential that the external device does not try to pull these
lines to ground.
IBM Monochrome Display &
Printer Adpater
Output to address hex 3BE
Bit4
IRQ
Enable
This instruction causes the latch to capture the five least
significant bits of the data bus. The four least significant bits
present their outputs, or inverted versions of their outputs, to the
Monochrome Adapter 13
respective pins as shown in the previous figure. If bit 4 is written
as aI, the card will interrupt the system unit's microprocessor on
the condition that pin 10 changes from high to low.
These pins are driven by open-collector drivers pulled to +5 Vdc
through 4.7 kQ resistors. They can each sink approximately 7 mA
and maintain 0.8 volts down-level.
IBM Monochrome Display &
Printer Adapter
Input from address hex 3BC
This instruction presents the system unit's microprocessor with
data present on the pins associated with the output to hex 3BC.
This should normally reflect the exact value that was last written
to hex 3BC. If an external device should be driving data on these
pins at the time of an input (in violation of usage ground rules),
this data will be ORed with the latch contents.
IBM Monochrome Display &
Printer Adapter
Input from address hex 3BD
This instruction presents the real-time status to the system unit's
microprocessor from the pins as follows.
Bit 7 Bit 6 Bit 5 I Bit4 Bit 3
I Bit 2 I
Bit 1
I
Bit 0
I
Pin 11 Pin 10 Pin 12 I Pin 13 Pin 15 I -
I
-
r
-
1
IBM Monochrome Display &
Printer Adapter
Input from address hex 3BE
14 Monochrome Adapter
This instruction causes the data present on pins 1, 14, 16, 17, and
the IRQ bit to be read by the system unit's microprocessor. In
the absence of external drive applied to these pins, data read by
the system unit's microprocessor will match data last written to
hex 3BE in the same bit positions. Notice that data bits 0-2 are
not included. If external drivers are dotted to these pins, that
data will be ORed with data applied to the pins by the hex 3BE
latch.
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
-
IRQ Pin 17 Pin 16 Pin 14 Pin 1
Enable
Por= 0 Por = 1 Por=O Por= 1 Por= 1
These pins assume the states shown after a reset from the system
unit's microprocessor.
Monochrome Adapter 15
16 Monochrome Adapter
Specifications
Printer
At Standard TTL Levels
Signal
Name
- Strobe
+ D.ata Bit 0
+ Data Bit 1
+ Data Bit 2
+ Data Bit 3
+ Data Bit 4
+ Data Bit 5
+ Data Bit 6
+ Data Bit 7
- Acknowledge
+ Busy
+ P. End (out of paper)
+ Select
-Auto Feed
- Error
- Initialize Printer
- Select Input
Ground
Connector Specifications
13
Adapter
Pin Number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18-25
0


14






















25
0
IBM
Monochr
Display a
Printer
Adapter
orne
nd
Monochrome Adapter 17
18 Monochrome Adapter
f
f
f
(8HT6) DO
Ol
02
03
04
05
D6
18H161 D1
ISH131 +1/0 READY
(SNT9) +IR07
DECOUPLINGCAPACITORS
.. ! 1...1 1. .,l-D"-'}:
i Tel Ie, 12e'1== m
110 SLOT
'09 A31
ADB
"0
AD'
'" AD6 A28
74LS244

l l
AD5
A04
"
A03
.02
A27
'" AID
A"
".
."
A23
'"
'"
A20
A16
Al5
AI4
Al3
AI,
All
830
'03
."
DOl
BID
831
'09
BlI
.12
74LS125 11

Bl3
1--_______
9 CIO
BI'
74LS125
5 C4
DO' ...... 1-

820
Monochrome Display Adapter (Sheet 1 of 10)
BAD ISHT 2.4.81

BAI [8HT2.4.81
0
."
[8HT2.4.81
(JQ
BA3 [8HT2.4.8] _.

A4 [8HT2.4)

A5 (8HT2.41
A6 (8H12.4)
_.
A7 [8HT2.4)
AD (8HT2.41
Ai (8H12.41 (JQ
AID [8HT2]
""'l
All [8H12]
Al5 [8HT4)

A16 (8H14)
a
AI7 [8HT4)
AI8 (8HT4)
AI'
[8H14) r.IJ.
AEN (8HT4.6)
-5'

+IZV
-MEMW [8HT3.4)
-MEMR (8HT4.61
-lOW (8HT2.4.8)
-lOR (SHT4,6.8)
+RESET (8HT2.3.5]
-RESET 18H13.5.7.8)
1/0 CLOCK [8H14)
2 74LSI57

RMAO - Z114l2
2Y RMAI
6 i: 3Y u "
11 3A 4Y Al - H}-ceo
10 38 U18 eel
:: SEL G -:::;=+:: U15
-RMA6Jt- A6
5
3 18 IV 4--
7
, RMA4-- ; A:O,' r- U14
2A 4 - RMA91t
28 3 :: cs
10;: 4Y ---+ A5 U13 U12 I
rrr-----,::,::7, 15 ;,
3 18 IV 4--RMAB- ee7
__________ H+f++t+H-+------T_---;5i-j2A 2Y L-
RMA
9-= J
-jt
G4Y.!.L 2 iro 4
L -H+H-+++H-+--h---'.J' 15 1 IGU7fv1
-=- 3 IB
+-""""""""'""----.

15 11
74lS04
I 10 574lS02
--------v-- 6 ) U17
18HT 6.101
t
(8HT 6.10)
[SHT 6.10]
T
18HT 6.10)
ATO (8HT 5.6)
ATl
T AT!
AT' (SHT 5.6)
AT. [8HT 5,61
AT5
T AT6
AT7 (8HT 5,6)
RAO 18HT 7.12)
RAl 18HT 7.12)
RA2 (8HT 7.121
RA' (SHT 5,71
(SHT3) WE
CURSOR (8HT 5)
HSYNC (SHT 5)
VSYNC ISHT 5)
DISPEl ISHT 5J
9 74886
18HT 11 +RESETdE
15 +5V
RPJ
Monochrome Display Adapter (Sheet 2 of 10)
,v
lRPI
JI 10
'1U2
B 74LS04
r l/ T 74S1B
ISHT 1)+AESET
12 l4LSOB pJ. U54
13 U3 11


1 74lSOO
10 Ul00 8

U25 3


1
74SI12A
3D 311
+5V ' U6
L..:::::::i; 40
U1
40
1O
12
J
1
14 51 50
U25 6
K U' 74LS1O
741810


10 PH 'T

(SHT 1)-RESEl

1 ,
13 eLK
14LSD4
U44
r

74LS112A
374811
(SHT1)-MEMW
-..:s
.r:J
4LS
r

ISHT"
ISHT"
E
1 U2 2 2 5 12 U57 13 9 U2
,SHT., -CPU MSEl
.,v" 0 r--i-J 1 eLK U5 13 U2 12
6 74LS153
15 elR 11 74lS74
51CD
1 3 74LS74 10 0 9
TESTOSC : IY 1
1l U3 ;1 T
(SHT7)HRES
12 74LSOO I 1 I I ,v 1 CLR
U
' - r 1
U24
13 U25 11 4 PH 0 6
U36 Ie
ISHT2) RA3 , L 11 2CO 9
I +
5v
ii 2Y
132C3II,D

MHZ 8 -=- I 15
7 OSCI
I 3
74LS17
'EJ
ISIIT 2J DISPEl
4 10 105
ISIIT2JCURSOR

,-- 11 30U55
3Q 10
(SHT2) HSYIIC 13::
(SHT2) VSYlfC 1460 60 15
-JUMPER ISHT71
+JUMPER ISNT4.51
CEROM ISHllO)
0'
(SHT5)
SII (SHT10)
WE IS'T'.61
+CACS ceLK ISHT2j
+CCLK 18815.101
-CCLK (SHT2]
-XACK
+XACK
+IQREADY (SHTI)
BoreLK 18817,101
ROMAIl (SH110)
.tLRVIDEO (8815.7.101
-CURSORDLY (8HT5)
-DISPENOlY (8H17}
+DlSPEN OlY (SHT1)
+CURSDRDlY (SNT5)
+HSYNCDLY
+VSYNCDlY 18H15.11
ISHT3)+ CClK

-----.<
I 12074814 474lS32
II B
10 CLK Q 9 5 100
.. V

Monochrome Display Adapter (Sheet 3 of 10)
(SHTll 1I0ClO&K
ISHT 11
ISHT II
(SHT1)
ISHTI)
(SH-T 11
ISHT II
(StlTI)
(SHTI)
(8HT 1I
(SHT1)
(SHT1)
ISHTll
IOR
-lOW
BA3
"'AEN
AS
.,
AS
A4
B ..
BAI
BAO
AS
..
(StlTI) -MEMR
ISHT II
(S8TI)
(SHT1)
-MEMW
'18
.,9
.11
AI6
ISHT1) AI5
"'HSYIICDlY
(S8T1) +lV1DEO

10 U46 B

5 U46 6

,"53P!- 3 , 4 14l3Z
"56 5 U43
6

'S2A

5 GZB
G1 - 15
r--!- 61 U52
4 GZA YO
3
e Y7
I
5 GZB
,
Y2 13
B
,

"50
L-
3 e
, B
'L-
14lS139
2 A YO 4


5 G2B
, "51
G2A
G1 fB
e 214lS02
, B

5
, A
'---

13 U53 11
-STATUSSEl
14lS04
6
"56
,
1 mI

13 elR 0 9
IZ 0 U45
(SHT3)
6845E ISHT 2)
11
elK ij
"'GRPDCO ISHT8)

I
"44
6845CS (SHT 2)
"'6845CS (SHT 3)
13 U46 11
14lS244

q 1"001::

-SEL 1 (SHT1)
RDGATECC ISHT6I
-ROGATE AT (SHT 61
-CPUMSEl (S8T3)
OATAGATE (S8T 6)
BOD
B01
B ..
B03
(SHT6)
(SHT61
ISHT6I
(SHT6I
Monochrome Display Adapter (Sheet 4 of 10)
[SHTI] "RESET
(SHT3) "V8VNCDlV
74LS393 74LS393
2
12 ClR OA 11
"BLINK
I CLR U2B 6
13 A U2B
I 00
CURSOR BUNK
[SHT7) -ENABLE BLINK
(SHT3) "CUR8DRDLV
[SHT7) "ENABLE BUNK
(SHT3) -CURSDRDLV
I 74LSOB

2 U46 3
10 U3 B
'---h. 14S2D
4 ""p!--
5,--1"
UB) [8HT7)
(SHT21 ATO
All
ATDX
3n
! 0 O!
ATIX
4 0
An
AT3
AT<
AT5
AT6
(SHT2) AT7
ISHT71 "VIDEO ENABLE
18HT3] "CCLK
ISHT II -RESET
ISHT3) -CLRVIDED
[SHT4) "SOOTS
ISHT3) 05
::
=
=
=

ISHT11 SEROATA
> (8H13) "JUMPER
t

'A3
I
"'2
"C:I ,AI
;- (SHT21 ",0
1 6 AT2X 1
8 9 AT3x 8

13 "31 12 AT4X 13
14 15 AT5X 14 "3D
11
"
AT6X 11
18 19 AT7X
"
19
1
IfCl'
11
CLR



':'2
U26 8
I
I
L

I

I CLK
13 U43 11
flt
-fO]
974LS02
CLR
1
8 U27
10
10
"5V --T :' U49
13
15
1174LS02
I
4 748B6
2 8
,5220
"29
20 7
"RVV

3 C V1 3Q 10 +UNDERUNE
1
3D
L---

-B[OI
_ 5 G2B

7 -B(71
I A V7
2 B U48
3 C
I


1 81 11 13 12
2 U41 V4 U

Ilf) (SHT71
[SHT 7)
"B&WVIDEO ISHT7)
SERIN (SHT10]
...


Monochrome Display Adapter (Sheet 5 of 10)

"'"
a::
0
=
0
/')
if
0
e

>
Co

'CI


...
1 74LS32
ISH 11
. .,
N
2 UIOa J
[SHI] 10R
[SH 11 MEMR
(SH 3) DATAGATE
ISH 21 CC0
1
cc 1
CC2
CC3
CC
,
CC5
CC6
[SH 2) CC7
ISH 3) +XACK
(SH 4] ROSATECc
(SH 3) WE
[SH 2) AT0
1
AT1
AT2
AT3
AT
,
AT5
AT6
ISII2] AT7
1312 B03
_
_ =\
ISH 41RDGATEAT (1 eLK i! ill /
Monochrome Display Adapter (Sheet 6 of 10)
---BOO
---B01
---B02
---B03
---B04


B06
B07
'1
(SHI]
(SH 2.4}.8,9]
[8112.4.8,9)
(8112.4.7.9)
[8112.4,8,9)
(SH2.B,91
(SHZ.7.B,9]
(SH 2.8,9)
(SH 2.8.9)

'DO

80'
(SKTBI
80'
ISUTBI 805
ISHT4] -SEll
(SIIT!I RESET
(SKT51
I
Iml
(SKT5)
""
ISHT 5) +ALPHA DOTS
(SHT31 -BiSPENDLY
+MSYNCDlY
(SHT3) +VSYNC DU

(SKT3) -JUMPER
8 (SHT51 +B/WVIDEO
=
DOTClK
n
If

ISHT 10) Lee7
(8HT 101 lee6


(SKT3) -ClRVIDEO

(SRT 101 lee5
-
(SNT lQ CDEMBITD

ISKl3) +DISPENDlY
..

Ul
14 ,
5
6
<5V
RPI'1!lU8
8

+5\18P113 u53
: 10 t- 74lS00
74LSIO
122D 10
7
13:: U58 t=+B/W
eLK 3Q
CLA
200

R2
-?IA
.!.
A

TV..!...
-!-2I U63
j
PINa
"L

PIN4
+13A
.!
PIN5
14
13
4A
4Y 12
8
.!L
I"
C4il20PF
-HIGHLIGHT PIN6
SEl

r
s
15
-
200
+5\1
HI
PIN 1
t=fi?
r
PIN2
3 DClK 5 4 74LSOB
cai,120PF
74L8244

"--- +\I10EO Plln
13 + j 1 +HORllDRIVE PINB
11 ,
VERTIlRIVE ----PIN9
-=j 148.8

U64
1
2 U54 3
UIOI
r
c
C1
I
+5V-+PR
- I
Q 5
, 0
eLK eLR
'-------f,"-
9 74LSOD
@U25 8
,....1!!:!!!!..
13
28
U42
74lS04
14
2A
'V1
11
'h'
174811
15
12
'0
V
13
U"
'---
r
Monochrome Display Adapter (Sheet 7 of 10)
-HRES ISKT31
+VIDEOENABLE 18H151
+ENABLE BLINK (8H151
-ENABLE BLINK 18H15)
J3
9PIN
0-8HEll
CONNECTOR
+lVIDEO 18HT41
8ERDATA (8HT5)

cr\

=
=
=

=
e

>
=-

....

...
ISHEET 61 BOD
(SHEET 6) BDl
(SHEET 6J BD2
(SHEET 6) BD3
(SHEET 61 B04
ISHEET6) BD5
{SHEET6IBD6
'ISHEET61 BD7
(SHEET IIRESET
---
--
---
--
--
---

BD3 B 9
i-
'9
.----------"-'-1>' eLK DE
Jcsrle5*cs*csITcslcslcslcslo02''''
I I OATAO
>SV --'-''''------.----.--.------.-,
HPI HPI HPI API HPI
DATA 1
T
TAa
OATAS
7405
800 3
3
7405
4 -AUT.I)FDXT
20 5
50 30 7 llr::; 10 '
4010 V I I
1 I 7405 J_
C
>:
60 L--'!"ilr::;;:3jD<>"::.3,-----__ .. SL&JeT""-1N
I -WPC 17 _ e.
PIN2 __
PIN3 __
PIN4--
PIN5--
PIN6--
PIN1--
PIN8---
PIN9--

PINI9
PIN 20
PIN"
PIN 22
PIN2
PIN2
PIN 25
PINI---
PIN 14---
PIN 16---
PIN 11---
L-___ -


-IRQEN
(SHEEl91
+IRQEN
(SHEEl91
ISNEETlJ-IOW 14 2G 2Y2 1 C5::c .0022#1
:: ,:: USI -
74lS02
ISHEET11-IDR
ISHEET1) BA3 9 74820
(SHEETIIBA2 =dR"
1 U62
(SHEET 41 +GRPDCD __ --'
----:=l: Ie tV2 5

NOTE: ex ARE CAPACITORS PROVIDED ON OUTPUTS FOR FILTERING. NOT
USEDDN PRESENT CARD ASSEMBLY.
Monochrome Display Adapter (Sheet 8 of 10)
-RPA
ISHEEl91
-RPB
(SHEEl9)
-RPC
(SHEEl9)
25-PIND-SHEll
CONNECTOR AND
SHEEl9
J4
25-PIND-SHEll
CONNECTOR AND
SHEEl9
74lS244

DAUO , .
V
18
'00
DATAl 4 16 BOI
DATU
,
14 .IIZ
DATA 3

IZ BOB
DATA 4 11
U40
9 .04
(SHEET 8)
DATA 5 13 7 B05
OATA6 15 5 BOB
DATA 7 17 3 807
ISHEET S)
RPA H I 19

RPI 74lSI25
J4
25-"'N
D-SHELL
CONNECTOR
PIli 15
ERROR 9
3
8
gt:l!LS04 pO
"'113
+SlCT
9 5 B

PIII2
<PE II 10
I lj j
V

18
lCK 9 U57 10
16
PIli 10
14
PIN II
+BUSY IZ
U37
(SHEETS)
-STROBE II,
V
9
(SHEET8J-



g
ISHEETS)

r

AUTOFDXT
13!
l
7
15
,
",LCTII 17 3
,r;:

1"IT
B BPI
V
-

3 B
-.PC
74LSI25
,r.::.:
4lSlZ5
12 It <111Q7
-IROEN

(SHEET I)
tD
>
!
Monochrome Display Adapter (Sheet 9 of 10)
S'
...

.....
(SHT2) RAO
(SHT2) RAI
(SH121 RA2
(SHT2) ceo
.0 Q
------', COl
CC2
CC'
CC4
CC'
CC6
-8
. -------;'.
.-----i'.
U34
(SHT21 CC7
(SHT3) + ceLK
(SHT3) ROMAII
'-----i',
'------T8
-----i'l elK CLR

(SHT3) +JUMPER
(SHT3) -CEROM
(SHT51 SERIIT
(SHT3I -ClRVIDED
(SH13) DOTelK
(SHT3) SII
CGEltBITDfSHT7)

BAO 00 9 2 A
, AI
01
10

6 .2 02
\I
C
OH 13
2
AS
03
\3
0

...
" 6
..
15
\I E
9 AS
D.
16 12'
U.2
12
2 '8 06
\1 "G
15
I.,
01 H
16

19 19
U33
+800T8 (SHT5)
SERII
18 All
7 ClR
21 AI2
20CE
elKINH
'------ ':" '----
lCC7 (SHl7)
leC6 (SH17)
lCt5 (SHl7)
Monochrome Display Adapter (Sheet 10 of 10)
--- -
----
- ----
- ---
- - ---
- - - ---
----- --_.-
Personal Computer
Hardware Reference
Library
mM Color/Graphics
Monitor Adapter
6361509
ii
Contents
Description .................................... 1
Controller ................................. 5
Mode Set Register . . . . . . . . . . . . . . . . . . . . . . . . . .. 5
Display Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 5
Character Generator ......................... 5
Timing Generator ........................... 6
Composite Color Generator ................... 6
Alphanumeric Mode ......................... 6
Graphics Modes ............................ 9
Basic Operations ........................... 12
Programming Considerations ..................... 15
Programming the Mode Control and Status Register 15
Programming the 6845 CRT Controller ......... 15
Color-Select Register ....................... 18
Mode-Control Register ...................... 19
Mode-Control Register Summary .............. 20
Status Register ............................ 20
Sequence of Events for Changing Modes ........ 21
Memory Requirements ...................... 22
Specifications ................................. 23
Logic Diagrams ................................ 27
Index ........................................ Index-l
iii
iv
Description
The IBM Color/Graphics Monitor Adapter is designed to attach
to the IBM Color Display, to a variety of television-frequency
monitors, or to home television sets (user-supplied RF modulator
is required for home television sets). The adapter is capable of
operating in black-and-white or color. It provides three video
interfaces: a composite-video port, a direct-drive port, and a
connection interface for driving a user-supplied RF modulator. A
light pen interface is also provided.
The adapter has two basic modes of operation: alphanumeric
(A/N) and all-points-addressable (APA) graphics. Additional
modes are available within the A/N or APA graphics modes. In
the A/N mode, the display can be operated in either a 40-column
by 25-row mode for a low-resolution monitor or home television,
or in an 80-column by 25-row mode for high-resolution monitors.
In both modes, characters are defined in an 8-wide by 8-high
character box and are 7-wide by 7-high, double dotted characters
with one descender. Both uppercase and lowercase characters are
supported in all modes.
The character attributes of reverse video, blinking, and
highlighting are available in the black-and-white mode. In the
color mode, 16 foreground and 8 background colors are available
for each character. In addition, blinking on a per-character basis
is available.
The monitor adapter contains 16K bytes of storage. As an
example, a 40-column by 25-row display screen uses 1000 bytes
to store character information and 1000 bytes to store
attribute/ color information. This means that up to eight screens
can be stored in the adapter memory. Similarly, in an 80-wide by
25-row mode, four display screens can be stored in the adapter
memory. The entire 16K bytes of storage in the display adapter
are directly accessible by the processor, which allows maximum
program flexibility in managing the screen.
In A/N color modes, it is also possible to select the color of the
screen's border. One of 16 colors can be selected.
Color/Graphics Monitor Adapter 1
In the AP A graphics mode, there are two resolutions available: a
medium-resolution color graphics mode (320 PELs by 200 rows)
and a high-resolution black-and-white graphics mode (640 PELs
by 200 rows). In the medium-resolution mode, each picture
element (PEL) may have one of four colors. The background
color (Color 0) may be any of the 16 possible colors. The
remaining three colors come from one of the two
program-selectable palettes. One palette contains
green/red/brown; the other contains cyan/magenta/white.
The high-resolution mode is available only in black-and-white
because the entire 16K bytes of storage in the adapter is used to
define the on or off state of the PELs.
The adapter operates in noninterlace mode at either 7 or 14 MHz,
depending on the mode of the operation selected.
In the A/N mode, characters are formed from a ROS character
generator. The character generator contains dot patterns for 256
different characters. The character set contains the following
major groupings of characters.
16 special characters for game support
15 characters for word-processing editing support
96 characters for the standard ASCII graphics set
48 characters for foreign-language support
48 characters for business block-graphics support (for the
drawing of charts, boxes, and tables using single and double
lines)
16 selected Greek characters
15 selected scientific-notation characters
The color/graphics monitor function is on a single adapter. The
direct-drive and composite-video ports are right-angle mounted
connectors on the adapter, and extend through the rear panel of
2 Color/Graphics Monitor Adapter
the system unit. The direct-drive video port is a 9-pin, D-shell,
female connector. The composite-video port is a standard female
phonojack.
The display adapter uses a Motorola 6845 CRT Controller device.
This adapter is highly programmable with respect to raster and
character parameters. Therefore, many additional modes are
possible with programming of the adapter.
On the following page is a block diagram of the Color/Graphics
Monitor Adapter.
Color/Graphics Monitor Adapter 3
rocessor P
A ddress o.
..
Processor
Data
..
I ~
4
Address
Latch
~
Address
6845
Latch
CRT
Controller
Palette/
Overscan
Model
Control
,o.
Display
Input
~ ~ ..
Buffer r--
Buffer
(16K Bytes)
~ ~ ~ ,
,Ir

~
Output
Latch
Data Data
r-
Latch Latch
f ..
Graphics
-
...
Serializer
o.
Character
~
Alpha
.. Generator
Serializer
ROM
Timing
..
.. Generator
& Control
Color/Graphics Monitor Adapter Block Diagram
....
..... n
I--
I--
rL:
..
..
o.
o.
Processo
Data
~
Color
~
Encoder
r-.
~
I
..
..
Composite
Color
r-.
Generator
R
G
B
Horizontal
Vertical
Controller
The controller is a Motorola 6845 Cathode Ray Tube (CRT)
Controller. It provides the necessary interface to drive the
raster-scan CRT.
Mode Set Register
The mode set register is a general-purpose, programmable, I/O
register. It has I/O ports that may be individually programmed.
Its function in this adapter is to provide mode selection and color
selection in the medium-resolution color-graphics mode.
Display Buffer
The display buffer resides in the processor-address space, starting
at address hex B8000. It provides 16 bytes of dynamic
read/write memory. A dual-ported implementation allows the
processor and the graphics control unit access to this buffer. The
processor and the control unit have equal access to this buffer
during all modes of operation, except in the high-resolution
alphanumeric mode. In this mode, only the processor should have
access to this buffer during the horizontal-retrace intervals.
While the processor may write to the required buffer at any time,
a small amount of display interference will result if this does not
occur during the horizontal-retrace intervals.
Character Generator
A ROS character generator is used with 8K bytes of storage that
cannot be read from or written to under program control. This is
a general-purpose ROS character generator with three character
fonts. Two character fonts are used on the Color/Graphics
Monitor Adapter: a 7-high by 7-wide double-dot font and a
7 -high by 5-wide single-dot font. The font is selected by a
jumper (P3). The single-dot font is selected by inserting the
jumper; the double-dot font is selected by removing the jumper.
Color/Graphics Monitor Adapter 5
Timing Generator
This generator produces the timing signals used by the 6845 CRT
Controller and by the dynamic memory. It also solves the
processor/ graphic controller contentions for access to the display
buffer.
Composite Color Generator
This generator produces base-band-video color information.
Alphanumeric Mode
Every display character position in the alphanumeric mode is
defined by two bytes in the regen buffer (a part of the monitor
adapter), not the system memory. Both the Color/Graphics
Monitor Adapter and the Monochrome Display and Printer
Adapter use the following 2-byte character-attribute format.
Display-Character Code Byte Attribute Byte
7 6 543 2 o 7 6 543 2 o
The following table shows the functions of the attribute byte.
Attribute Function Attribute Byte
7 6 5 4
B R G B
FG Background
Normal B 0
Reverse Video B 1
Nondisplay (Black) B 0
Nondisplay (White) B 1
I = Highlighted Foreground (Character)
B = Blinking Foreground (Character)
0 0
1 1
0 0
1 1
6 Color/Graphics Monitor Adapter
3 2 1
I R G
Foreground
I 1 1
I 0 0
I 0 0
I 1 1
0
B
1
0
0
1
The definitions of the attribute byte are in the following table.
7 654 3 2 1 0
IBIR G BII IR G BI
I
I L---I _ ~ : ~ n ~ ~ e : : i : ~ n d Color
- : Background Color
Blinking
In the alphanumeric mode, the display can be operated in either a
low-resolution mode or a high-resolution mode.
The low-resolution alphanumeric mode has the following features:
Supports home color televisions or low-resolution monitors.
Displays up to 25 rows of 40 characters each.
Has a ROS character generator that contains dot patterns for
a maximum of 256 different characters.
Requires 2,000 bytes of read/write memory (on the adapter).
Has an 8-high by 8-wide character box.
Has two jumper-controlled character fonts available: a 7-high
by 5-wide single-dot character font with one descender, and a
7-high by 7-wide double-dotted character font with one
descender.
Has one character attribute for each character.
The high-resolution alphanumeric mode has the following
features:
Supports the IBM Color Display or other color monitor with
direct-drive capability.
Supports a black-and-white composite-video monitor.
Displays up to 25 rows of 80 characters each.
Color/Graphics Monitor Adapter 7
Has a ROS display generator that contains dot patterns for a
maximum of 256 characters.
Requires 4,000 bytes of read/write memory (on the adapter).
Has an 8-high by 8-wide character box.
Has two jumper-controlled character fonts available: a 7-high
by 5-wide single-dot character font with one descender, and a
7-high by 7-wide double-dot character font with one
descender.
Has one character attribute for each character.
The Color/Graphics Monitor Adapter will change foreground and
background colors according to the color value selected in the
attribute byte. The following figure shows the color values for
the various red, green, blue, and intensity bit settings.
R G B I Color
0 0 0 0 Black
0 0 1 0 Blue
0 1 0 0 Green
0 1 1 0 Cyan
1 0 0 0 Red
1 0 1 0 Magenta
1 1 0 0 Brown
1 1 1 0 White
0 0 0 1 Gray
0 0 1 1 Light Blue
0 1 0 1 Light Green
0 1 1 1 Light Cyan
1 0 0 1 Light Red
1 0 1 1 Light Magenta
1 1 0 1 Yellow
1 1 1 1 White (High Intensity)
Note: Not all Monitors recognize the intensity (I) bit.
8 Color/Graphics Monitor Adapter
Graphics Modes
The Color/Graphics Monitor Adapter has three graphics modes:
low-resolution, medium-resolution, and high-resolution color
graphics. However, only medium- and high-resolution graphics
are supported in ROM. The following figure shows these modes.
Mode Horizontal Vertical Number of Colors Available
(PELs) (Rows) (Includes Background Color)
Low Resolution 160 100 16 (Includes black-and-white)
Medium 320 200 4 Colors Total
Resolution 1 of 1 6 for Background and
1 of Green, Red, or Brown or
1 of Cyan, Magenta, or White
High Resolution 640 200 Black-and-white only
Low-Resolution Color/Graphics Mode
The low-resolution mode supports home televisions or color
monitors. This mode, not supported in ROM, has the following
features:
Contains a maxImum of 160 PELs by 100 rows, with each
PEL being 2-high by 2-wide.
Specifies 1 of 16 colors for each PEL by the I, R, G, and B
bits.
Requires 16,000 bytes of read/write memory on the adapter.
Uses memory-mapped graphics.
Medium-Resolution Color/Graphics Mode
The medium-resolution mode supports home televisions or color
monitors. It has the following features:
Contains a maximum of 320 PELs by 200 rows, with each
PEL being I-high by I-wide.
Color/Graphics Monitor Adapter 9
Preselects 1 of 4 colors for each PEL.
Requires 16,000 bytes of read/write memory on the adapter.
Uses memory-mapped graphics.
Formats 4 PELs per byte in the following manner:
7 6 5 4 3 2 o
C1 CO C1 CO C1 CO C1 CO
First Second Third Fourth
Display Display Display Display
PEL PEL PEL PEL
Organizes graphics storage into two banks of 8,000 bytes,
using the following format:
Memory
Address
(in hex)
B8000
B9F3F
BAOOO
BBF3F
BBFFF
Function
Even Scans
(0,2,4, ... 198)
8,000 bytes
Not Used
Odd Scans
(1,3,5 ... 199)
8,000 Bytes
Not Used
Address hex B8000 contains the PEL instruction for the
upper-left corner of the display area.
10 Color/Graphics Monitor Adapter
Color selection is determined by the following logic:
C1 co Function
0
0
1
1
0 Dot takes on the color of 1 of 16 preselected background colors
1 Selects first color of preselected Color Set 1 or Color Set 2
0 Selects second color of preselected Color Set 1 or Color Set 2
1 Selects third color of preselected Color Set 1 or Color Set 2
C 1 and CO select 4 of 16 preselected colors. This color
selection (palette) is preloaded in an II a port.
The two color sets are:
Color Set 1 Color Set 2
Color 1 is Green Color 1 is Cyan
Color 2 is Red Color 2 is Magenta
Color 3 is Brown Color 3 is White
The background colors are the same basic 8 colors defined for
low-resolution graphics, plus 8 alternate intensities defined by
the intensity bit, for a total of 16 colors, including black and
white.
High-Resolution Black-and-White Graphics Mode
The high-resolution mode supports color monitors. This mode
has the following features:
Contains a maximum of 640 PELs by 200 rows, with each
PEL being I-high by I-wide.
Supports black-and-white only.
Requires 16,000 bytes of read/write memory on the adapter.
Addressing and mapping procedures are the same as
medium-resolution color/graphics, but the data format is
different. In this mode, each bit in memory is mapped to a
PEL on the screen.
Color/Graphics Monitor Adapter 11
Formats 8 PELs per byte in the following manner:
First Display PEL
Second Display PEL
Third Display PEL
Fourth Display PEL
Fifth Display PEL
Sixth Display PEL
Seventh Display PEL
Eighth Display PEL
~
Basic Operations
I
I II
In the alphanumeric mode, the adapter fetches character and
attribute information from its display buffer. The starting address
of the display buffer is programmable through the CRT
controller, but it must be an even address. The character codes
and attributes are then displayed according to their relative
positions in the buffer. The following addresses will produce an
"AB" in the upper-left corner of a 40 by 25 screen and an "X" in
the lower-right corner.
(Even)
Memory
Address
(in hex)
B8000
Starting B8001
Address
Last
Address
B8002
B8003
B87CE
B87CF
Display Buffer
Character Code A
Attribute A
Character Code B
Attribute B
Character Code X
Attribute X
12 Color/Graphics Monitor Adapter
(Example of a 40 by 25 Screen)
AB
X
Video Screen
The processor and the display control unit have equal access to
the display buffer during all of the operating modes, except the
high-resolution alphanumeric mode. During this mode, the
processor gains access to the display buffer during the vertical
retrace time. If it does not, the display will be affected with
random patterns as the microprocessor is using the display buffer.
In the alphanumeric mode, the characters are displayed from a
pre-stored ROM character generator that contains the dot
patterns for all of the displayable characters.
In the graphics mode, the displayed dots and colors, up to 16K
bytes, are fetched from the display buffer.
Color/Graphics Monitor Adapter 13
14 Color/Graphics Monitor Adapter
Programming Considerations
Programming the Mode Control and Status
Register
The following I/O devices are defined on the Color/Graphics
Monitor Adapter.
Hex
Address A9 AS A7 A6 A5 A4 A3 A2 A1 AD Function of Register
308 1 1 1 1 0 1 1 0 0 0 Mode Control Register (001
309 1 1 1 1 0 1 1 0 0 1 Color Select Register (001
30A 1 1 1 1 0 1 1 0 1 0 Status Register (011
30B 1 1 1 1 0 1 1 0 1 1 Clear Light Pen Latch
30C 1 1 1 1 0 1 1 1 0 0 Preset Light Pen Latch
304 1 1 1 1 0 1 0 Z Z 0 6845 Index Register
305 1 1 1 1 0 1 0 Z Z 1 6845 Oata Register
Z = don't care condition
Programming the 6845 CRT Controller
The controller has 19 internal accessible registers, which are used
to define and control a raster-scan CRT display. One of these
registers, the index register, is used as a pointer to the the other
18 registers. It is a write-only register, which is loaded from the
processor by executing an 'out' instruction to I/O address hex
3D4. The five least-significant bits of the I/O bus are loaded into
the index register.
In order to load any of the other 18 registers, the index register is
first loaded with the necessary pointer, then the data register is
Color / Graphics Monitor Adapter 15
loaded with the information to be placed in the selected register.
The data register is loaded from the processor by executing an
'out' instruction to I/O address hex 3D5.
The table on the next page defines the values that must be loaded
into the 6845 CRT Controller registers to control the different
modes of operation supported by the attachment.
16 Color/Graphics Monitor Adapter
40 by 25 80 by 25
Address Register Register Alpha- Alpha- Graphic
Register Number Type Units I/O numeric numeric Modes
0 RO Horizontal Character Write 38 71 38
Total Only
1 R1 Horizontal Character Write 28 50 28
Displayed Only
2 R2 Horizontal Character Write 20 5A 20
Sync Position Only
3 R3 Horizontal Character Write OA OA OA
Sync Width Only
4 R4 Vertical Total Character Write 1F 1F 7F
Row Only
5 R5 Vertical Total Scan Write 06 06 06
Adjust Line Only
6 R6 Vertical Character Write 19 19 64
Displayed Row Only
7 R7 Vertical Character Write 1C 1C 70
Sync Position Row Only
8 R8 Interlace Write 02 02 02
Mode Only
9 R9 Maximum Scan Write 07 07 01
Scan Line Line Only
Address
A R10 Cursor Start Scan Write 06 06 06
Line Only
B R11 Cursor End Scan Write 07 07 07
Line Only
C R12 Start
-
Write 00 00 00
Address (H) Only
0 R13 Start Write 00 00 00
Address (L) Only
E R14 Cursor Read/ XX XX XX
Address (H) Write
F R15 Cursor Read/ XX XX XX
Address (L) Write
10 R16 Light Pen (H)
-
Read XX XX XX
Only
11 R17 Light Pen (L)
-
Read XX XX XX
Only
Note: All register values are given in hexadecimal
6845 Register Description
Color / Graphics Monitor Adapter 17
Color-Select Register
The color-select register is a 6-bit output-only register. Its I/O
address is hex 3D9, and it can be written to using a processor
'out' command. The following are the bit definitions for this
register.
Bit 0 Selects blue border color in 40 by 25 alphanumeric
mode.
Selects blue background color (CO-Cl) in 320 by 200
graphics mode.
Selects blue foreground color in 640 by 200 graphics
mode.
Bit 1 Selects green border color in 40 by 25 alphanumeric
mode.
Selects green background color (CO-Cl) in 320 by 200
graphics mode.
Selects green foreground color in 640 by 200 graphics
mode.
Bit 2 Selects red border color in 40 by 25 alphanumeric mode.
Selects red background color (CO-Cl) in 320 by 200
graphics mode.
Selects red foreground color in 640 by 200 graphics
mode.
Bit 3 Selects intensified border color in 40 by 25
alphanumeric mode.
Selects intensified background color (CO-Cl) in 320 by
200 graphics mode.
Selects intensified foreground color in 640 by 200
graphics mode.
Bit 4 Selects alternate, intensified set of colors in the graphics
mode.
Selects background colors in the alphanumeric mode.
Bit 5 Selects active color set in 320 by 200 graphics mode.
18 Color/Graphics Monitor Adapter
When bit 5 is set to 1, colors are determined as follows:
C1 co Set Selected
0 0 Background (Defined by bits 0-3 of port hex 3D9)
0 1 Cyan
1 0 Magenta
1 1 White
When bit 5 is set to 0, colors are determined as follows:
C1 co Set Selected
0 0 Background (Defined by bits 0-3 of port hex 3D9)
0 1 Green
1 0 Red
1 1 Brown
Bit 6 Not used
Bit 7 Not used
Mode-Control Register
The mode-control register is a 6-bit output-only register. Its I/O
address is hex 3D8, and it can be written to using a processor
'out' command. The following are bit definitions for this register.
Bit 0 A 1 selects 80 by 25 alphanumeric mode.
A 0 selects 40 by 25 alphanumeric mode.
Bit 1 A 1 selects 320 by 200 graphics mode.
A 0 selects alphanumeric mode.
Bit 2 A 1 selects black-and-white mode.
A 0 selects color mode.
Bit 3 A 1 enables the video signal. The video signal is
disabled when changing modes.
Color/Graphics Monitor Adapter 19
Bit 4 A 1 selects the high-resolution (640 by 200)
black-and-white graphics mode. One of eight colors can
be selected on direct-drive monitors in this mode by
using register hex 3D9.
Bit 5 A 1 will change the character background intensity to
the blinking attribute function for alphanumeric modes.
When the high-order attribute is not selected, 16
background colors or intensified colors are available.
This bit is set to 1 to allow the blinking function.
Mode-Control Register Summary
Bits
0 1 2 3 4
0 0 1 1 0
0 0 0 1 0
1 0 1 1 0
1 0 0 1 0
0 1 1 1 0
0 1 0 1 0
0 1 1 1 1
z = don't care condition
5
1
1
1
1
z
z
z
40 x 25 Alphanumeric Black-and-White
40 x 25 Alphanumeric Color
80 x 25 Alphanumeric Black-and-White
80 x 25 Alphanumeric Color
320 x 200 Black-and-White Graphics
320 x 200 Color Graphics
640 x 200 Black-and-White Graphics
Enable Blink Attribute
640 x 200 Black-and-White
Enable Video Signal
Select Black-and-White Mode
Select 320 x 200 Graphics
80 x 25 Alphanumeric Select
Note: The low-resolution (160 by 100) mode requires special programming and is
set up as the 40 by 25 alphanumeric mode.
20 Color/Graphics Monitor Adapter
Status Register
The status register is a 4-bit read-only register. Its I/O address is
hex 3DA, and it can be read using the processor 'in' instruction.
The following are bit definitions for this register.
Bit 0 A 1 indicates that a regen-buffer memory access can be
made without interfering with the display.
Bit 1 A 1 indicates that a positive-going edge from the light
pen has set the light pen's trigger. This trigger is reset
when power is turned on and may also be cleared by a
processor 'out' command to hex address 3DB. No
specific data setting is required; the action is
address-activated.
Bit 2 The light pen switch is reflected in this bit. The switch
is not latched or debounced. A 0 indicates that the
switch is on.
Bit 3 A 1 indicates that the raster is in a vertical retrace mode.
Screen-buffer updating can be performed at this time.
Sequence of Events for Changing Modes
1 Determine the mode of operation.
2 Reset the video-enable bit in the mode-control register.
3 Program the 6845 CRT Controller to select the mode.
4 Program the mode-control and color-select registers
including re-enabling the video.
Color/Graphics Monitor Adapter 21
Memory Requirements
The memory used by this adapter is self-contained. It consists of
16K bytes of memory without parity. This memory is used as
both a display buffer for alphanumeric data and as a bit map for
graphics data. The regen buffer's address starts at hex B8000.
Read/Write Memory
Address Space (in hex)
System
Read/Write
Memory
Display Buffer
(16K Bytes)
01000
AOOOO
B8000
BCOOO
COOOO
22 Color/Graphics Monitor Adapter
128K Reserved
Regen Area
Specifications
The following pages contain card and connector specifications for
the IBM Color/Graphics Monitor Adapter.
Color/Graphics Monitor Adapter 23
isplay IBM Color D
or other Dir
Monitor
ect-Drive
At Standard TTL Levels
Ground
Ground
Red
Green
Blue
Intensity
Reserved
Horizontal Drive
Vertical Drive
0


6




5

9

0
Color Direct
Drive 9-Pin
D-Shell Connector
1
2
3
4 Color/Gr aphics
rive
5
Direct-D
6
Adapter
7
8
9
Composite Phono Jack
Hookup to Monitor
ideo V
M onitor
Composite Video Signal of
Approximately 1.5 Volts
Peak to Peak Amplitude
Chassis Ground
Connector Specifications (Part 1 of 21
24 Color/Graphics Monitor Adapter
1
2
Color/Gr aphics
teJack Composi
P1 (4- Pin Berg Strip)
for RF Modulator
Color/Graphics
Monitor Adapter
RF
Mo dulator
+ 12 Volts
(key) Not Used
Composite Video Output
Logic Ground
RF Modulator Interface
ht Lig
Pe n
- Light Pen Input
(key) Not Used
- Light Pen Switch
Chassis Ground
+ 5 Volts
+ 12 Volts
Light Pen Interface
Connector Specifications (Part 2 of 2)
1
2
3
4
1
2
3
4
5
6
P2 (6-Pin Berg Strip)
for Light-Pen
Connector
Color/Gr aphics
Monitor
Adapter
Color/Gr aphics
Monitor
Adapter
Color / Graphics Monitor Adapter 25
26 C910r / Graphics Monitor Adapter
Logic Diagrams
The following pages contain the logic diagrams for the IBM
Color/Graphics Monitor Adapter.
Color/Graphics Monitor Adapter 27

QO
n
t
........

.a
e:
I")
III

=



.@1
S-
..
co
.,
co
.. -WMOIIOLW
.. [WAlUILI.
I.
"'
-"
...
'"

.. ...
'" ...
..
. "
...
. .,

.,.
"'
-ENCPUMSADOII
...
'"
..
..
,.
'" ..
...
,.
co
'"
.,
, .
. " .,
.,
'"

'"
."
'"

, . 'M
,.
,.
'"
..
,. -1011
"'

,.
'" 141 :.r"'"
(4) -GM'II
"
....
::
U
Color/Graphics Monitor Adapter (Sheet 1 of 6)
..!:!..I,

..
.,
.,
..
. ,
..
..
II
-
-
-
E
Color/Graphics Monitor Adapter (Sheet 2 of 6)
...
."
."
."
."
."
(1,4,6!
(1,4,&)
(1.'1.6)
(1,4,81
(1,4.S)
(1,4.61
(1.6)
\1,111
'"
'"
'"
'"
'"
'"
'"
'"
'"
'"
'"

0
n
0
-0
..,
.........

=
"=
::r
;::).


0
a.
....
0
..,
;>
=-

....
n>
..,
(tI) MIIZ
Ill-RESET
(iiI
(0) +A<;
{til +AT
(III} +.l!>
(O) -RESET'
(4) +IIRES
15) +VSYNCDLY
(8)
'" (8) +.0.18
(8) +Alq
(0) +A17
Ifll +A16
(Ii) +.0.1<;
,
J
""


"


.
""
,
'"
'"
IU
,--'lL
I

01 01 l
: DZ QZ


fr
:1 II
L--
:))4

I
t-"-'i _" _: _
H:;"
.f---LJ. SIll
"
lSec.
t=bG




.

". :01 QI: un
6 1
::;

,I

L


"
.
""

1I J Q
'if' .:
".
<; 'lA
Lg<LK
,'"
nbL-------

, :
'L.-
'----
11 ...--LS02
'----
LE..) ""

L.g 0 II
""
It (LK ,


11 LR
'> GlB +"--.!!!Pf!
:m
, "
nil ' '----
, ' LSO'
, .
L.-
I

1
""
, '"
vo 1<;

VI
V2 11
,
, '
II

, .
"
' . . '
I (lR
'I
Color/Graphics Monitor Adapter (Sheet 3 of 6)
+Q5 (4)
+0'1 (2)
+'ill"
'"
,.,
'"
(4.5)
'"
,.,
'" +OArAGATE (0,
'"
'"
'"
(31 -Q2'
(31 +cASCO
131 -<;fL,
(21 -"EST
12J tOO
(21 tDI
(21 +0'
(21 to"
(2) ~ O ~
(1.41
."
'"
(3.41
'"
'"
'"
'"
Color/Graphics Monitor Adapter (Sheet 4 of 6)
~
~
n
e..
=
.,
"-
~
~
e:
~
III
a:
=
e .
....
=
.,
>
=-
III
"C
....
I'D
.,
'"
'"
'"
'"
'"
.,
'" (OJ I ~ ItHI
,.,
'"
,.
.U''''DU 12.3,4)
: ~ = : :!:
Color/Graphics Monitor Adapter (Sheet 5 of 6)
(5) (OMP WID
(5) YSYN(OUT
IS) HSYNCOUT
IS) lOUT
(6) BOUT
(5) G CUT
IS) II OIlT
(2) DO
(2) DI
(2J DZ
(2) D1
(2) D'I
(2) D'i
(2) Dr.
121 D1
(3) + DATA GATE
(8) -t1EI1R
(8) -lOR
(8) +AEN
(4) + 10 READY
"
.

.
"" LSl2
."
JIVlOEOJ.l(K
CHASSI5G11OUNO
,
,
111'+100
n ,
RlllOn
"" " ..
,
" l
'''fj
.,,, ',.,
.r---;;-
9-PINO-TYPE
CONNECTOR
" " "
"
" "
"
" "
"
"
..
"
" "
"
" "
"
" "
"
..
"
"
.-
,
'"
"" L52"'i
"'-<IT _ "_,, _G _"". '''.
I.CD C'i
.0It7J,tF
HHHHiHHH .iE
'"
'" " " '"
C2'i en cil Cll (II,
.. ,
+12Y
l
,
'"
,
'"
,
".
,
'"
,
'"
.
'"
.
'"
."
"'.
,
"
r-
'"
'iiHH '0-'
'"
'" Cl'I CI9 a.
t--- 110
'"
" f
,h''' ,O"1J,tF I IOuF
'"
'" ...
'"
'"
'"
'"
'"
'" m
'"
'" m
'"
'"
'"
'"
'"
."
'"
'"
'"
,n
'"
."
'" , ..
'"
n'
" ">so."
Color/Graphics Monitor Adapter (Sheet 6 of 6)
-LP(N 5W 1"
-LPENINPUT
(3'

,
,
11,3)
I

11,3)
."
11,31
."
11,31
11.31
(1,3)
'"
(1,3)
'"
(1.31
'"
11.3)
."
(1.3)
"" '"
'"
'" + An
'" ''''
(3'
,3,
(3'
(3,
. '"
(3'
-1011 (3,8)
-lOll (1,3)
-MUft' {3.41
IlDl1
r'
""
':' L51t.
(3.,4.111
.,,' (3.81
+IOCLK , ..

"" " ..
'"
12.11)
" "
13,4,5)
""
'"'
34 Color/Graphics Monitor Adapter
Index
A
alphanumeric mode 6
B
basic operations 12
c
change modes 21
character generator 5
color-select register 18
composite color generator 6
controller 5
D
description 1
display buffer 5
Index-l
G
graphics modes 9
H
high-resolution black-and-white 11
low-resolution color 9
medium-resolution color 9
high-resolution black-and-white graphics mode 11
L
logic diagrams 27
low-resolution color/graphics mode 9
M
medium-resolution color/graphics mode 9
memory requirements 22
mode set register 5
mode types
alphanumeric 6
graphics 9
mode-control register 19
mode-control register summary 20
modes of operation 1
Index-2
p
programming considerations 15
programming the mode control and status register 15
programming the 6845 crt controller 15
R
registers
color-select 18
s
mode control and status 15
mode set 5
mode-control 19
status 21
sequence of events for changing modes 21
specifications 23
status register 21
T
timing generator 6
Index-3
Index-4

Potrebbero piacerti anche