+ All Categories
Home > Documents > Technical Reference Options and Adapters Volume 2 1of5

Technical Reference Options and Adapters Volume 2 1of5

Date post: 05-Apr-2018
Category:
Upload: kgrhoads
View: 226 times
Download: 0 times
Share this document with a friend

of 79

Transcript
  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    1/79

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    2/79

    -------------- - - -- - ---- - - --_ . -

    TechnicalReferenceOptions and AdaptersVolume 2

    Personal ComputerHardware ReferenceLibrary

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    3/79

    Revised Edition (April 1984)The following paragraph does not apply to the United Kingdom or any country where suchprovisions are inconsistent with local law: International Business Machines Corporat ionprovides 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/orchanges 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 aremade periodically to the information herein; these changes will be incorporated in neweditions of the publication.It is possible that this material may contain reference to, or information about, IBMproducts (machines or programs), programming, or services that are not announced inyour country. Such references or information must not be construed to mean that IBMintends 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 fortechnical information about the system should be made to your authorized IBM PersonalComputer dealer.The following paragraph applies only to the United States and Puerto Rico: A Reader'sComment Form is provided at the back of this publication. I f 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 itbelieves appropriate without incurring any obligations whatever. Copyright International Business Machines Corporation 1981, 1982, 1983, 1984ii

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    4/79

    Federal Communications CommissionRadio Frequency Interference StatementWarning: The equipment described herein has been certifiedto comply with the limits for a Class B computing device,pursuant to Subpart J of Part 15 of the FCC rules. Onlyperipherals (computer input/output devices, terminals,printers, etc.) certified to comply with the Class B limits maybe attached to the computer. Operation with non-certifiedperipherals is likely to result in interference to radio and TVreception. I f peripherals not offered by IBM are used with theequipment, it is suggested to use shielded grounded cableswith in-line filters if necessary.CAUTIONThe product described herein is equipped with a groundedplug for the user's safety. I t is to be used in conjunction witha properly grounded receptacle to avoid electrical shock.

    iii

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    5/79

    iv

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    6/79

    - - - -- - - -- ---- - -- ---- - - - ------_ . - Personal ComputerHardware ReferenceLibrary

    mMMonochromeDisplay and PrinterAdapter

    6361511

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    7/79

    i i

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    8/79

    Contents

    Introduction ................................... 1Monochrome Display Adapter Function .............. 1Description ................................ 1Programming Considerations .................. 5Specifications .............................. 9Printer Adapter Function ........................ 11Description ............................... 11Programming Considerations ................. 13Specifications ............................. 17Logic Diagrams ................................ 19

    ill

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    9/79

    iv

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    10/79

    IntroductionThe IBM Monochrome Display and Printer Adapter has twofunctions. The first is to provide an interface to the IBMMonochrome Display. The second is to provide a parallelinterface for the IBM Printers. We will discuss this adapter byfunction.

    Monochrome Display Adapter Function

    DescriptionThe IBM Monochrome Display and Printer Adapter is designedaround the Motorola 6845 CRT Controller module. There are4K bytes of RAM on the adapter that are used for the displaybuffer. This buffer has two ports to which the system unit'smicroprocessor has direct access. No parity is provided on thedisplay 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-bytecharacter generator contains the fonts for the character codes.The characters, values, and screen characteristics are given in "OfCharacters, Keystrokes, and Colors" in your Technical Referencesystem 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 ispresent on any I/O slot. Some of the address bus lines have twoLS loads. No signal has more than two LS loads.

    Monochrome Adapter 1

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    11/79

    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

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    12/79

    The following is a block diagram of the monochrome displayadapter portion of the IBM Monochrome Display and PrinterAdapter.

    ProcessorAddress

    ProcessorData

    AOChipSelect

    TimingSignals

    (12) Memory( 1 ~ AddressMultiplexer

    DataBusGating

    BDO-7 I (8)MA

    MC6845CRTC.

    r

    (10)

    2K MemoryCharacterCode

    (8)(8)

    I""" CharacterClock

    Octal 1Latch

    f--RA Character

    (4) -.. Generator

    DOTCLK

    Shift L... ..Register ..

    Serial DotsHSYNC, VSYNC, CURSOR, DISPEN

    CharacterClock

    (10)

    2K MemoryAttribute

    ,IrOctalLatch

    AttributeDecode

    I

    VideoProcessLogic

    *onitorDirect DriveOutputs

    IBM Monochrome Display Adapter Block Diagram

    Monochrome Adapter 3

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    13/79

    4 Monochrome Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    14/79

    Programming ConsiderationsThe following table summarizes the 6845 controller module'sinternal data registers, their functions, and their parameters. Forthe IBM Monochrome Display, the values must be programmedinto the 6845 to ensure proper initialization of the display.

    IBM MonochromeRegister Register Program DisplayNumber File Unit (Address in hex)

    RO Horizontal Total Characters 61R1 Horizontal Displayed Characters 50R2 Horizontal Sync Position Characters 52R3 Horizontal Sync Width Characters FR4 Vertical Total Character Rows 19R5 Vertical Total Adjust Scan Line 6R6 Vertical Displayed Character Row 19R7 Vertical Sync Position Character Row 19R8 Interlace Mode --------- 02R9 Maximum Scan Line Scan Line D

    AddressR10 Cursor Start Scan Line BR11 Cursor End Scan Line CR12 Start Address (H) --------- 00R13 Start Address (Ll --------- 00R14 Cursor (H) --------- 00R15 Cursor (L) --------- 00R16 Reserved --------- --R17 Reserved --------- --

    To ensure proper initialization, the first command issued to theIBM Monochrome Display and Printer Adapter must be sent tothe CRT control port 1 (hex 3B8), and must be a hex 01, to setthe high-resolution mode. I f this bit is not set, the system unit'smicroprocessor's access to the adapter must never occur. I f thehigh-resolution bit is not set, the system unit's microprocessor willstop running.System configurations that have both an IBM MonochromeDisplay and Printer Adapter, and an IBM Color/GraphicsMonitor Adapter, must ensure that both adapters are properlyinitialized after a power-on reset. Damage to either display mayoccur if not properly initialized.

    Monochrome Adapter 5

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    15/79

    The IBM Monochrome Display and Printer Adapter supports 256different character codes. In the character set are alphanumericsand block graphics. Each character in the display buffer has acorresponding character attribute. The character code must be aneven address, and the attribute code must be an odd address inthe display buffer.7 6 5 4 3 2 0

    Character CodeEven Address (M)

    7 6 5 4 3 2 0

    FI R G I B I I G B I Attribute CodeOdd Address (M + 1)I I I I

    ForegroundIntensityBackgroundBlink

    The adapter decodes the character attribute byte as definedabove. The blink and intensity bits may be combined with theforeground and background bits to further enhance the characterattribute functions listed below:Background Foreground

    R G B R G B Function0 0 0 0 0 0 Non-Display0 0 0 0 0 1 Underline0 0 0 1 1 1 White Character/Black Background1 1 1 0 0 0 Reverse Video

    The 4K display buffer supports one screen of the 25 rows of 80characters, plus a character attribute for each display character.The starting address of the buffer is hex BOOOO. The displaybuffer can be read using direct memory access (DMA); however,at least one wait state will be inserted by the system unit'smicroprocessor. The duration of the wait state will vary, becausethe microprocessor/monitor access is synchronized with thecharacter clock on this adapter.

    6 Monochrome Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    16/79

    Interrupt level 7 is used on the parallel interface. Interrupts canbe enabled or disabled through the printer control port. Theinterrupt is a high-level active signal.The following table breaks down the functions of the I/O addressdecode for the adapter. The i/O address decode is from hex 3BOthrough hex 3BF. The bit assignment for each I/O addressfollows:

    1/0 RegisterAddress Function3BO Not Used3B1 Not Used3B2 Not Used3B3 Not Used3B4 6845 Index Register3B5 6845 Data Register3B6 Not Used3B7 Not Used3B8 CRT Control Port 13B9 Reserved3BA CRT Status Port3BB Reserved3BC Parallel Data Port3BD Printer Status Port3BE Printer Control Port3BF Not Used

    1/0 Address and Bit Map

    Monochrome Adapter 7

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    17/79

    BitNumber Function

    0 + High Resolution Mode1 Not Used2 Not Used3 +Video Enable4 Not Used5 + Enable Blink6,7 Not Used

    6845 CRT Control Port 1 (Hex 388)

    BitNumber Function

    0 + Horizontal Drive1 Reserved2 Reserved3 + Black/White Video

    6845 CRT Status Port (Hex 38A)

    8 Monochrome Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    18/79

    Specifications

    At Standard TTL LevelsGroundGround

    Not UsedIBM Not UsedMonochrome Not UsedDisplay + Intensity

    + Video+ Horizontal- Vertical

    9-PinMonochromeDisplayconnector

    o1 ~ 6 5U 9o

    1234 IBMMonochrome5 Display and6 Printer Adapter789

    Note: Signal voltages are 0.0 to 0.6 Vdc at down level and + 2.4 to 3.5Vdc at high level.

    Connector Specifications

    Monochrome Adapter 9

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    19/79

    10 Monochrome Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    20/79

    Printer Adapter Function

    DescriptionThe printer adapter portion of the IBM Monochrome Display andPrinter Adapter is specifically designed to attach printers with aparallel-port interface, but it can be used as a generalinput/output port for any device or application that matches itsinput/output capabilities. I t has 12 TTL-buffer output points,which are latched and can be written and read under programcontrol using the microprocessor In or Out instruction. Theadapter also has five steady-state input points that may be readusing the microprocessor's In instructions.In addition, one input can also be used to create a microprocessorinterrupt. This interrupt can be enabled and disabled underprogram control. A reset from the power-on circuit is also ORedwith 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 theadapter through a right-angle, printed-circuit-board-mounted,25-pin, D-shell connector. This connector protrudes through therear panel of the system unit or expansion unit, where a cable maybe attached.When this adapter is used to attach a printer, data or printercommands are loaded into an 8-bit, latched, output port, and thestrobe line is activated, writing data to the printer. The programthen may read the input ports for printer status indicating whenthe next character can be written, or it may use the interrupt lineto indicate "not busy" to the software.The output ports may also be read at the card's interface fordiagnostic loop functions. This allows faults to be isolated to theadapter or the attaching device.

    Monochrome Adapter 11

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    21/79

    The following is a block diagram of the printer adapter portion ofthe Monochrome Display and Printer Adapter.8 25-Pin D-Shell

    L ConnectorBus B U f f e ~ r 8 : : : . . . . > - l ~ D a t a Latc ..h _ . . . . . , 8 " - - ~ -.. ..Enable ClockTrans- 1 4 C 8 ~ ___+-____ceiverr IRL. . . - - - . .J

    ,DIRReadData

    O.C.Drivers

    Write DataCommand ~ : : . . : . . : . . : ~ : . . . . : . - : ____ ---.J

    Reset

    Decoder Write ControlRead StatusRead

    I Control

    BusBuffersEnable

    ..

    Y EnablerPrinter Adapter Block Diagram

    12 Monochrome Adapter

    5

    r.

    ControlLatch

    4 Clock f -

    rl Clear

    SLCTINSTROBE

    I - - - - r ~ AUTOFDXTINIT

    SLCTPEACKBUSY

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    22/79

    Programming ConsiderationsThe printer adapter portion of the IBM Monochrome Display andPrinter Adapter responds to five I/O instructions: two outputand three input. The output instructions transfer data into 2latches whose outputs are presented on pins of a 25-pin D-shellconnector.Two of the three input instructions allow the system unit'smicroprocessor to read back the contents of the two latches. Thethird allows the system unit's microprocessor to read the real-timestatus from a group of pins on the connector.A description of each instruction follows.

    IBM Monochrome Display &Printer AdapterOutput to address hex 3BC

    Bit 7 Bit 6 Bit 5 Bit4Pin 9 Pin 8 Pin 7 Pin 6

    The instruction captures data from the data bus and is present onthe respective pins. Each of these pins is capable of sourcing 2.6rnA and sinking 24 rnA.It is essential that the external device does not try to pull theselines to ground.

    IBM Monochrome Display &Printer AdpaterOutput to address hex 3BE

    Bit4IRQEnable

    This instruction causes the latch to capture the five leastsignificant bits of the data bus. The four least significant bitspresent their outputs, or inverted versions of their outputs, to the

    Monochrome Adapter 13

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    23/79

    respective pins as shown in the previous figure. I f bit 4 is writtenas aI , the card will interrupt the system unit's microprocessor onthe condition that pin 10 changes from high to low.These pins are driven by open-collector drivers pulled to +5 Vdcthrough 4.7 kQ resistors. They can each sink approximately 7 mAand maintain 0.8 volts down-level.

    IBM Monochrome Display &Printer AdapterInput from address hex 3BC

    This instruction presents the system unit's microprocessor withdata present on the pins associated with the output to hex 3BC.This should normally reflect the exact value that was last writtento hex 3BC. I f an external device should be driving data on thesepins 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 AdapterInput from address hex 3BD

    This instruction presents the real-time status to the system unit'smicroprocessor from the pins as follows.

    Bit 7 Bit 6 Bi t 5 I Bit4 Bit 3 I Bi t 2 I Bit 1 I Bit 0 IPin 11 Pin 10 Pin 12 I Pin 13 Pin 15 I - I - r - 1

    IBM Monochrome Display &Printer AdapterInput from address hex 3BE

    14 Monochrome Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    24/79

    This instruction causes the data present on pins 1, 14, 16, 17, andthe IRQ bit to be read by the system unit's microprocessor. Inthe absence of external drive applied to these pins, data read bythe system unit's microprocessor will match data last written tohex 3BE in the same bit positions. Notice that data bits 0-2 arenot included. I f external drivers are dotted to these pins, thatdata will be ORed with data applied to the pins by the hex 3BElatch.

    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

    EnablePor= 0 Por = 1 Por=O Por= 1 Por= 1

    These pins assume the states shown after a reset from the systemunit's microprocessor.

    Monochrome Adapter 15

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    25/79

    16 Monochrome Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    26/79

    Specifications

    Printer

    At Standard TTL LevelsSignalName- 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 InputGround

    Connector Specifications

    13

    AdapterPin Number

    123456789101112131415161718-25

    0 14 250

    IBMMonochrDisplay aPrinterAdapter

    ornend

    Monochrome Adapter 17

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    27/79

    18 Monochrome Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    28/79

    fff

    (8HT6) DOOl02030405D618H161 D1

    ISH131 +1/0 READY(SNT9) +IR07

    DECOUPLINGCAPACITORS

    ..! ...1 1. .,l-D"-'}:i Tel 5 ~ I Ie, 12e'1==m

    110 SLOT

    '09 A31ADB "0AD '"D6 A28

    74LS244r - - - - - - - - - ~ I I ~ ~ ' - - - - - - - - - - -~ = = = = = = = = = , ~ : ; l U ~ D l ~ : = = = = = = = = =

    AD5A04 "03.02 A27'"ID A"".." A23'"'"20

    A16Al5AI4Al3AI,All830'03

    ."OlBID831'09BlI.12 74LS125 11r - - - - - - - - - ~ 1 2 ~ I U s g l ~ C ~ I 3 ~ - - - - - - - - - - -Bl3 1--_______ - " . : : 4 L : : ; S 1 . : : " C j I U s g G ~ > . : : : _ - - - - - - - - - - - -9 CIOBI' 74LS125 5 9 ) ~ " " ' - - - - - - - - - - - - -5 C4DO' 1 - - - - - - - - - - ' 7 4 , , ' : : . : S 1 . : : ' : C j I U s g l " ; ~ > _ _ ' 3 ' - - ...... -1 3 ~ - - - ' . - L S - 0 4 - - - - -~ ~ C > o - " 1 2 ' - - - - - _ 820

    Monochrome Display Adapter (Sheet 1 of 10)

    BAD ISHT 2.4.81BAI [8HT2.4.81 0." [8HT2.4.81 (JQBA3 [8HT2.4.8] _.A4 [8HT2.4)5 (8HT2.41

    A6 (8H12.4)_.

    A7 [8HT2.4)D (8HT2.41Ai (8H12.41 (JQ

    AID [8HT2] ""'lll [8H12]Al5 [8HT4)A16 (8H14) aI7 [8HT4)AI8 (8HT4)AI' [8H14) r.IJ.AEN (8HT4.6)

    -5'

    G R O U N O ~

    +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)

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    29/79

    2 74LSI57

    ; ~ ; ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ I ' i ~ : L ~ ' Y ~ 7 R MAO - Z114l22Y RMAI - R M A O ~ 6 5 6 i: 3Y r [ - ~ M A 2 = = u "11 3A 4Y ~ : M A 3 - - R M ~ ~ = + Al - H}- ceo10 38 U18 " , , , , " " , " , , , , , , , " , , , , , , , - , - - : : : 4 , : ~ : ; ~ ; r * - , ' , eel::SEL G l - ' ~ - " - ' - - ' - - - ' c - " - " - ' ~ - " , -:::;=+:: U15 : ~ ~ ! I l l ~ ~ i 7 4 L S 1 5 7 ~ I ~ ~ -RMA6Jt- A65 18 IV 4-- ,RMA4-- ; A:O,' r- = : : : ! t : ~ U142A - t - - ~ M A 5 4 - RMA91 t28 f 2 ~ M A 6 = = 3 :: cs10; : 4Y ~ R M A 7 - - ' - . . . , - " " , , " " , , , i ' ---+ A5 U13 U12 I

    - - - - - - - - - - . - + + f + + - + + f - - - ~ - 4 l - S 1 - 5 7 ~ : ~ . L l rr-----,::,::7, 15 ~ i ! ;, : ; ~ ~ 1 1 ~ E ~ E 8 ~ C ~ ' ~ ~ ~ ~ ~ ~ i 3 18 IV 4 - - RMAB - ~ I / 0 4 ~ ee7__________ +f++t+H-+------T_---;5i-j2A 2Y L- RMA9 -= J-jt ! i , U 1 6 3 Y ~ # 4 l S I 3 9 - - - - - - - - - - - H + f + + - + + f + + - + ~ " ' - . - l 1 3 1 3 ' 1 4 B ~ G4Y.!.L 2 iro 4

    L -H+H-+++H-+--h---'.J' 15 1 GU7 fv1-=- 3 IB+-""""""""'""----.5 ~ ~ ~ 11

    74lS04I 1 1 ~ 10 574lS02--------v-- 6 ) U17

    18HT 6.101t(8HT 6.10)

    [SHT 6.10]T18HT 6.10)

    ATO (8HT 5.6)ATl TT!AT' (SHT 5.6)AT. [8HT 5,61AT5 TT6AT7 (8HT 5,6)

    RAO 18HT 7.12)RAl 18HT 7.12)RA2 (8HT 7.121RA (SHT 5,71

    (SHT3) WE - ~ l - J ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ CURSOR (8HT 5)HSYNC (SHT 5)VSYNC ISHT 5)DISPEl ISHT 5J9 74886

    18HT 11 +RESETdE15 +5VRPJ

    Monochrome Display Adapter (Sheet 2 of 10)

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    30/79

    ,vlRPIJI 10 '1U2 B 74LS04r l/ T 74S1BISHT 1)+AESET 1 3 ~ 1 1 12 l4LSOB pJ. U5413 U3 11

    1 1 3 ~ , 1 1 1 1 74lSOO10 Ul00 8 ~ : : : ! p U25 3i V ~ 4 ~ D 1 1 1 74SI12A3D 311+5V ' U6 L..:::::::i; 40 U1 40 1O 12 J 114 51 50 U25 6 K U' 74LS1O741810 + 5 V ~ f L R Q g B ~ L K 5 l ~ T C 8 ~ L S 0 4 10 PH 'TSHT 1)-RESEl

    1 , 13 eLK14LSD4 U44 r 74LS112A 374811(SHT1)-MEMW -..:s .r:J4LSrSHT"ISHT" E 1 U2 2 2 5 12 U57 13 9 U2,SHT., -CPU MSEl .,v" 0 r--i-J eLK U5 13 U2 12

    6 74LS153 15 elR 11 74lS7451CD 1 7 4 ~ 3 74LS74 10 p ~ L K 0 9TESTOSC : ; ~ ~ IY 1 1l U3 l L ~ L R U ' ;1 T

    (SHT7)HRES 1 ~ ~ C 3 12 74LSOO I 1 I I ,v 1 CLRU' - r 1 ~ 3 7 4 L S l 2 5 ' - - ~ A U24 13 U25 11 4 PH 0 6 U36 IeISHT2) RA3 , L 11 2CO 9I +5vii 2Y

    132C3II,DHZ 8 -=- I 157 OSCI I 3 74LS17'EJ - ~ " 8 ~ ; : r SIIT 2J DISPEl 4 10 105ISIIT2JCURSOR ~ 2 1 1 ' 0 7 ,-- 11 30 U553Q10(SHT2) HSYIIC 13:: : : ~ (SHT2) VSYlfC 1460 60 15

    -JUMPER ISHT71+JUMPER ISNT4.51CEROM ISHllO)

    0' (SHT5)SII (SHT10)

    WE IS'T'.61

    +CACS ceLK ISHT2j+CCLK 18815.101-CCLK (SHT2]

    -XACK+XACK I S H T ~ +IQREADY (SHTI)

    BoreLK 18817,101ROMAIl (SH110).tLRVIDEO (8815.7.101-CURSORDLY (8HT5)-DISPENOlY (8H17}+DlSPEN OlY (SHT1)+CURSDRDlY (SNT5)+HSYNCDLY I S ' T ~ 7 1 +VSYNCDlY 18H15.11ISHT3)+ CClK ----.< I 12074814 474lS32II B10 CLK Q 9 5 100

    . .V ~ ~ R U 1 O I

    MonochromeDisplay Adapter (Sheet 3 of 10)

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    31/79

    (SHTll 1I0ClO&K

    ISHT 11ISHT II(SHT1)ISHTI)(SH-T 11ISHT II(StlTI)(SHTI)(8HT 1I(SHT1)(SHT1)ISHTll

    IOR-lOWBA3

    "'AENAS.,ASA4

    B .BAIBAOAS..

    (StlTI) -MEMRISHT II(S8TI)(SHT1)

    -MEMW'18.,9.11AI6

    ISHT1) AI5i S H T ~ "'HSYIICDlY

    (S8T1) +lV1DEO

    0 U46 B

    U46 6

    , " l S O O ~ ,"53P!- 3 , 4 14l3Z"56 5 U43 6S2A GZB G1 - 15r--!- 61 U52 4 GZA YO3 e Y7 I 5 GZB, Y2 13B, "50L- 3 e

    , B'L -

    14lS1392 A YO 4

    G2B, "51G2AG1 fB e 214lS02, B 5, A'---

    3 U53 11

    -STATUSSEl

    14lS046

    "56

    ,1 mI 3 elR 0 9IZ 0 U45

    (SHT3)

    6845E ISHT 2)11 elK ij

    "'GRPDCO ISHT8)

    I "446845CS (SHT 2)

    "6845CS (SHT 3)

    3 U46 11

    14lS244' ~ ' B q 1"001::

    -SEL 1 (SHT1)

    RDGATECC ISHT6I-ROGATE AT (SHT 61

    -CPUMSEl (S8T3)OATAGATE (S8T 6)

    BODB01B .B03

    (SHT6)(SHT61ISHT6I(SHT6I

    Monochrome Display Adapter (Sheet 4 of 10)

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    32/79

    [SHTI] "RESET(SHT3) "V8VNCDlV74LS393 74LS3932 12 ClR OA 11 "BLINKI CLR U B 6 13 A U2BI 00 CURSOR BUNK

    [SHT7) -ENABLE BLINK(SHT3) "CUR8DRDLV[SHT7) "ENABLE BUNK(SHT3) -CURSDRDLV

    I 74LSOB2 U46 3

    10 U3 B '---h. 14S2D4 " " p ! - -5,--1"

    UB) [8HT7)

    (SHT21 ATOAllATDX 3n! 0 O ! ATIX 4 0

    AnAT3AT

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    33/79

    "'"a::0=/' )if0e>Co'CI

    ...

    1 74LS32ISH 11 .,N 2 UIOa J[SHI] 10R[SH 11 MEMR(SH 3) DATAGATEISH 21 CC0

    1cc1CC2CC3CC,CC5CC6[SH 2) CC7

    ISH 3) +XACK(SH 4] ROSATECc(SH 3) WE[SH 2) AT0

    1AT1AT2AT3AT,AT5AT6ISII2] AT7

    1312 B03_ _~ I I ! ' l i J : : : 7 Q I 4 i ~ ! ! [ ! =\ISH 41RDGATEAT (1 eLK i! ill /

    Monochrome Display Adapter (Sheet 6 of 10)

    ---BOO---B01---B02---B03---B04B 0 5 B06B07

    '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)

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    34/79

    I S H T ~ 'DOI S H T ~ 80'(SKTBI 80'ISUTBI 805ISHT4] -SEll(SIIT!I RESET

    (SKT51I Iml(SKT5) ""SHT 5) +ALPHA DOTS(SHT31 -BiSPENDLY

    I S H T ~ +MSYNCDlY(SHT3) +VSYNC DU(SKT3) -JUMPER

    8 (SHT51 +B/WVIDEO= ( S H T ~ DOTClKnIf ISHT 10) Lee7(8HT 101 lee6

    (SKT3) -ClRVIDEO(SRT 101 lee5- (SNT lQ CDEMBITDISKl3) +DISPENDlY..

    U l

    14 ,5 6

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    35/79

    cr\

    ==~ =>=-.......

    ISHEET 61 BOD(SHEET 6) BDl(SHEET 6J BD2(SHEET 6) BD3(SHEET 61 B04ISHEET6) BD5{SHEET6IBD6'ISHEET61 BD7

    (SHEET IIRESET

    - - ----- ---- ---- 1 I = : ! 1 0 ~ 1 : " 2 Z 2 ' 2 L Z ' 1 / ~ ; Z Z Z Z Z Z 2 Z 2 ~ BD3 B 9i- '9.----------"-'-1>' LK DE

    Jcsrle5*cs*csITcslcslcslcslo02' ' ' 'I I OATAO

    >SV --'-' ' ' '------.----.--.------.-,

    HPI HPI HPI API HPI

    DATA 1TTAaOATAS

    7405800 3 ~ ' J > o - , - , - - - - , , - 3 ~ . + - - - , 6 ' t - - - . - - - - - - - - , 7 + - - - , 5 ' t - - _ - S . = c T " , R O = B E ~ ~ ~ l Q ~ 2 7405 4 -AUT.I)FDXT~ Z L Z L Z ~ 2 Z 2 ~ ~ : g 20 5 U a ! > < " = - - 7 7 4 ~ 0 5 = - - + - h - - = o - - + - - f " " ' ' ' - ' ' ' " ' '

    50 30 7 llr::; 10 ' 9 ~ , t ' 0 5 " - ' r - - + - - - 1 - - - " - " " - ' - ' T ~ 6 D 4010 V I I1 U 3 9 5 Q ~ I 7405 J_C> ~ _ e . - - - - - - - - - - - + - - - - , - - - - - - - - - - - - - i - - - - - - ; " ' e ~ ~ K 60 L--!"ilr::;;:3jD"::.3,-----__ ~ ' - - - - - - - ' ' - - - - - - - - - - 4 - - - ' - ..L&JeT""-1NI -WPC 17 _ e.

    PIN2 __PIN3 __PIN4-PIN5-PIN6-PIN1-P IN8 - - PIN9--P I N 1 ~ ' INI9PIN 20PIN"PIN 22PIN2PIN2PIN 25PINI---

    PIN 14--PIN 16---

    PIN 11---

    L-___ ~ - W ~ P A ' _ _ _ _ _ . -L - _ ~ ~ - - - - - t ~ l 1 ~ " ~ ~ ' ~ O - - - - - - - - - - ~ = = ' - - - - - -

    = = = = = = = = ~ ~ ~ ~ ~ ~ ~ ~ I 5 ~ ' ~ i ~ ~ : ' 1 ~ ~ i ' ~ ~ ~ ~ = = = = = = = = = = = = = = = = = = = = = = ~ ~ ~ ~ ~ = = = = = = = = = = = = = = : : 1 ~ = = = -IRQEN (SHEEl91

    +IRQEN (SHEEl91ISNEETlJ-IOW 14 2G 2Y2 1 C5::c .0022#1I = : ~ N :: : : ~ ,:: USI : ; ~ ~ -

    74lS02ISHEET11-IDR - - - - - - - j f - " " ' : ~ ~ ~ U ; ; 5 7 ; - , 4

    ISHEET1) BA3 9 74820(SHEETIIBA2 =dR" U62(SHEET 41 +GRPDCD ~ " " - _ _-- '

    ----:=l: Ie tV2 5NOTE: ex ARE CAPACITORS PROVIDED ON OUTPUTS FOR FILTERING. NOTUSEDDN PRESENT CARD ASSEMBLY.

    MonochromeDisplay Adapter (Sheet 8 of 10)

    -RPA ISHEEl91-RPB (SHEEl9)-RPC (SHEEl9)

    25-PIND-SHEllCONNECTOR ANDSHEEl9

    J4

    25-PIND-SHEllCONNECTOR ANDSHEEl9

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    36/79

    74lS244DAUO ,. V 18 '00DATAl 4 16 BOIDATU , 14 .IIZDATA 3 IZ BOBDATA 4 11 U40 9 .04 (SHEET 8)DATA 5 13 7 B05OATA6 15 5 BOBDATA 7 17 3 807

    ISHEET S) RPA H 19I S H E E T ~ RPI 74lSI25

    J425-"'ND-SHELLCONNECTOR

    PIli 15 ERROR 9 3 8

    gt:l!LS04 pO"'113 +SlCT 9 5 B

    III2

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    37/79

    (SHT2) RAO(SHT2) RAI(SH121 RA2

    (SHT2) ceo - - - ' ~ 0 Q------',OlCC2CC'CC4CC'CC6

    -8.-------;'..-----i'. U34

    (SHT21 CC7(SHT3) + ceLK(SHT3) ROMAII

    '-----i ','------T8-----i'l elK CLR+ 5 V ~ (SHT3) +JUMPER(SHT3) -CEROM

    (SHT51 SERIIT(SHT3I -ClRVIDED(SH13) DOTelK(SHT3) SII

    CGEltBITDfSHT7)

    AO 00 9 2 A, AI 01 10 6 .2 02 \I C OH 132 AS 03 \3 0 ... ".. 15 \I E9 AS D. 16 1 2 ' U.212 2 '8 06 \1 "G15

    I . , 01 H16 ~ A 8 19 19 U33

    +800T8 (SHT5)

    SERII18 All 7 ClR21 AI2 ~ ~ ~ ~ / l O A D 20CE elKINH

    '------ ':" ' ----

    lCC7 (SHl7)leC6 (SH17)lCt5 (SHl7)

    Monochrome Display Adapter (Sheet 10 of 10)

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    38/79

    - - - --------- - -- ---- - - - -- - - --_ . - Personal ComputerHardware ReferenceLibrary

    mM Color/GraphicsMonitor Adapter

    6361509

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    39/79

    i i

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    40/79

    Contents

    Description .................................... 1Controller ................................. 5Mode Set Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Display Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Character Generator ......................... 5Timing Generator ........................... 6Composite Color Generator ................... 6Alphanumeric Mode ......................... 6Graphics Modes ............................ 9Basic Operations ........................... 12Programming Considerations ..................... 15Programming the Mode Control and Status Register 15Programming the 6845 CRT Controller ......... 15Color-Select Register ....................... 18Mode-Control Register ...................... 19Mode-Control Register Summary .............. 20Status Register ............................ 20Sequence of Events for Changing Modes ........ 21Memory Requirements ...................... 22Specifications ................................. 23Logic Diagrams ................................ 27

    Index ........................................ Index-l

    iii

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    41/79

    iv

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    42/79

    DescriptionThe IBM Color/Graphics Monitor Adapter is designed to attachto the IBM Color Display, to a variety of television-frequencymonitors, or to home television sets (user-supplied RF modulatoris required for home television sets). The adapter is capable ofoperating in black-and-white or color. I t provides three videointerfaces: a composite-video port, a direct-drive port, and aconnection interface for driving a user-supplied RF modulator. Alight pen interface is also provided.The adapter has two basic modes of operation: alphanumeric(A/N) and all-points-addressable (APA) graphics. Additionalmodes are available within the A/N or APA graphics modes. Inthe A/N mode, the display can be operated in either a 40-columnby 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-highcharacter box and are 7-wide by 7-high, double dotted characterswith one descender. Both uppercase and lowercase characters aresupported in all modes.The character attributes of reverse video, blinking, andhighlighting are available in the black-and-white mode. In thecolor mode, 16 foreground and 8 background colors are availablefor each character. In addition, blinking on a per-character basisis available.The monitor adapter contains 16K bytes of storage. As anexample, a 40-column by 25-row display screen uses 1000 bytesto store character information and 1000 bytes to storeattribute/color information. This means that up to eight screenscan be stored in the adapter memory. Similarly, in an 80-wide by25-row mode, four display screens can be stored in the adaptermemory. The entire 16K bytes of storage in the display adapterare directly accessible by the processor, which allows maximumprogram flexibility in managing the screen.In A/N color modes, it is also possible to select the color of thescreen's border. One of 16 colors can be selected.

    Color/Graphics Monitor Adapter 1

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    43/79

    In the APA graphics mode, there are two resolutions available: amedium-resolution color graphics mode (320 PELs by 200 rows)and a high-resolution black-and-white graphics mode (640 PELsby 200 rows). In the medium-resolution mode, each pictureelement (PEL) may have one of four colors. The backgroundcolor (Color 0) may be any of the 16 possible colors. Theremaining three colors come from one of the twoprogram-selectable palettes. One palette containsgreen/red/brown; the other contains cyan/magenta/white.The high-resolution mode is available only in black-and-whitebecause the entire 16K bytes of storage in the adapter is used todefine 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 charactergenerator. The character generator contains dot patterns for 256different characters. The character set contains the followingmajor 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 thedrawing of charts, boxes, and tables using single and doublelines) 16 selected Greek characters 15 selected scientific-notation charactersThe color/graphics monitor function is on a single adapter. Thedirect-drive and composite-video ports are right-angle mountedconnectors on the adapter, and extend through the rear panel of

    2 Color/Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    44/79

    the system unit. The direct-drive video port is a 9-pin, D-shell,female connector. The composite-video port is a standard femalephonojack.The display adapter uses a Motorola 6845 CRT Controller device.This adapter is highly programmable with respect to raster andcharacter parameters. Therefore, many additional modes arepossible with programming of the adapter.On the following page is a block diagram of the Color/GraphicsMonitor Adapter.

    Color/Graphics Monitor Adapter 3

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    45/79

    rocessorAddress o.

    ..

    ProcessorData ..

    4

    AddressLatch

    Address6845 LatchCRTController

    Palette/Overscan

    ModelControl

    ,o . Display Input..

    Buffer r- - Buffer(16K Bytes)

    ,Ir OutputLatchData Datar- Latch Latchf .. Graphics- ... Serializer

    o. Character Alpha.. Generator SerializerROM

    Timing.... Generator

    & Control

    Color/Graphics Monitor Adapter Block Diagram

    ....

    ..... n

    I--

    I--

    rL:....

    o.

    o.

    ProcessoData

    ColorEncoder r-.

    I.. ..

    CompositeColor r-.Generator

    RGB

    HorizontalVertical

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    46/79

    ControllerThe controller is a Motorola 6845 Cathode Ray Tube (CRT)Controller. It provides the necessary interface to drive theraster-scan CRT.

    Mode Set RegisterThe mode set register is a general-purpose, programmable, I/Oregister. It has I/O ports that may be individually programmed.Its function in this adapter is to provide mode selection and colorselection in the medium-resolution color-graphics mode.

    Display BufferThe display buffer resides in the processor-address space, startingat address hex B8000. It provides 16 bytes of dynamicread/write memory. A dual-ported implementation allows theprocessor and the graphics control unit access to this buffer. Theprocessor and the control unit have equal access to this bufferduring all modes of operation, except in the high-resolutionalphanumeric mode. In this mode, only the processor should haveaccess 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 notoccur during the horizontal-retrace intervals.

    Character GeneratorA ROS character generator is used with 8K bytes of storage thatcannot be read from or written to under program control. This isa general-purpose ROS character generator with three characterfonts. Two character fonts are used on the Color/GraphicsMonitor Adapter: a 7-high by 7-wide double-dot font and a7 -high by 5-wide single-dot font. The font is selected by ajumper (P3). The single-dot font is selected by inserting thejumper; the double-dot font is selected by removing the jumper.

    Color/Graphics Monitor Adapter 5

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    47/79

    Timing GeneratorThis generator produces the timing signals used by the 6845 CRTController and by the dynamic memory. It also solves theprocessor/ graphic controller contentions for access to the displaybuffer.

    Composite Color GeneratorThis generator produces base-band-video color information.

    Alphanumeric ModeEvery display character position in the alphanumeric mode isdefined by two bytes in the regen buffer (a part of the monitoradapter), not the system memory. Both the Color/GraphicsMonitor Adapter and the Monochrome Display and PrinterAdapter use the following 2-byte character-attribute format.

    Display-Character Code Byte Attribute Byte7 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 4B R G BFG Background

    Normal B 0Reverse Video B 1Nondisplay (Black) B 0Nondisplay (White) B 1I = Highlighted Foreground (Character)B= Blinking Foreground (Character)

    0 01 10 01 1

    6 Color/Graphics Monitor Adapter

    3 2 1I R G

    ForegroundI 1 1I 0 0I 0 0I 1 1

    0B

    1001

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    48/79

    The definitions of the attribute byte are in the following table.7 654 3 2 1 0IBIR G B I I IR G BI

    I I L---I _ ~ : ~ n ~ ~ e : : i : ~ n d Color- : Background ColorBlinking

    In the alphanumeric mode, the display can be operated in either alow-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 fora 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-highby 5-wide single-dot character font with one descender, and a7-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 followingfeatures: Supports the IBM Color Display or other color monitor withdirect-drive capability. Supports a black-and-white composite-video monitor. Displays up to 25 rows of 80 characters each.

    Color/Graphics Monitor Adapter 7

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    49/79

    Has a ROS display generator that contains dot patterns for amaximum 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-highby 5-wide single-dot character font with one descender, and a7-high by 7-wide double-dot character font with onedescender. Has one character attribute for each character.The Color/Graphics Monitor Adapter will change foreground andbackground colors according to the color value selected in theattribute byte. The following figure shows the color values forthe various red, green, blue, and intensity bit settings.

    R G B I Color0 0 0 0 Black0 0 1 0 Blue0 1 0 0 Green0 1 1 0 Cyan1 0 0 0 Red1 0 1 0 Magenta1 1 0 0 Brown1 1 1 0 White0 0 0 1 Gray0 0 1 1 Light Blue0 1 0 1 Light Green0 1 1 1 Light Cyan1 0 0 1 Light Red1 0 1 1 Light Magenta1 1 0 1 Yellow1 1 1 1 White (High Intensity)

    Note: Not all Monitors recognize the intensity (I) bit.

    8 Color/Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    50/79

    Graphics ModesThe Color/Graphics Monitor Adapter has three graphics modes:low-resolution, medium-resolution, and high-resolution colorgraphics. However, only medium- and high-resolution graphicsare 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 TotalResolution 1 of 1 6 fo r Background and1 of Green, Red, or Brown or

    1 of Cyan, Magenta, or WhiteHigh Resolution 640 200 Black-and-white only

    Low-Resolution Color/Graphics ModeThe low-resolution mode supports home televisions or colormonitors. This mode, not supported in ROM, has the followingfeatures: 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 Bbits. Requires 16,000 bytes of read/write memory on the adapter. Uses memory-mapped graphics.

    Medium-Resolution Color/Graphics ModeThe medium-resolution mode supports home televisions or colormonitors. I t 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

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    51/79

    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 oC1 CO C1 CO C1 CO C1 CO

    First Second Third FourthDisplay Display Display DisplayPEL PEL PEL PEL

    Organizes graphics storage into two banks of 8,000 bytes,using the following format:MemoryAddress(in hex)B8000

    B9F3FBAOOO

    BBF3FBBFFF

    Function

    Even Scans(0,2,4, ... 198)8,000 bytesNot UsedOdd Scans(1,3,5 .. 199)8,000 BytesNot Used

    Address hex B8000 contains the PEL instruction for theupper-left corner of the display area.

    10 Color/Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    52/79

    Color selection is determined by the following logic:C1 co Function0011

    0 Dot takes on the color of 1 of 16 preselected background colors1 Selects first color of preselected Color Set 1 or Color Set 20 Selects second color of preselected Color Set 1 or Color Set 21 Selects third color of preselected Color Set 1 or Color Set 2

    C 1 and CO select 4 of 16 preselected colors. This colorselection (palette) is preloaded in an I Ia port.The two color sets are:

    Color Set 1 Color Set 2Color 1 is Green Color 1 is CyanColor 2 is Red Color 2 is MagentaColor 3 is Brown Color 3 is White

    The background colors are the same basic 8 colors defined forlow-resolution graphics, plus 8 alternate intensities defined bythe intensity bit, for a total of 16 colors, including black andwhite.

    High-Resolution Black-and-White Graphics ModeThe high-resolution mode supports color monitors. This modehas 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 asmedium-resolution color/graphics, but the data format isdifferent. In this mode, each bit in memory is mapped to a

    PEL on the screen.

    Color/Graphics Monitor Adapter 11

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    53/79

    Formats 8 PELs per byte in the following manner:

    First Display PELSecond Display PELThird Display PELFourth Display PELFifth Display PELSixth Display PELSeventh Display PELEighth Display PEL

    Basic Operations

    I I II

    In the alphanumeric mode, the adapter fetches character andattribute information from its display buffer. The starting addressof the display buffer is programmable through the CRTcontroller, but it must be an even address. The character codesand attributes are then displayed according to their relativepositions in the buffer. The following addresses will produce an"AB" in the upper-left corner of a 40 by 25 screen and an "X" inthe lower-right corner.

    (Even)

    MemoryAddress(in hex)B8000

    Starting B8001Address

    LastAddress

    B8002B8003

    B87CEB87CF

    Display BufferCharacter Code AAttribute ACharacter Code BAttribute B

    Character Code XAttribute X

    12 Color/Graphics Monitor Adapter

    (Example of a 40 by 25 Screen)AB

    XVideo Screen

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    54/79

    The processor and the display control unit have equal access tothe display buffer during all of the operating modes, except thehigh-resolution alphanumeric mode. During this mode, theprocessor gains access to the display buffer during the verticalretrace time. I f it does not, the display will be affected withrandom patterns as the microprocessor is using the display buffer.In the alphanumeric mode, the characters are displayed from apre-stored ROM character generator that contains the dotpatterns for all of the displayable characters.In the graphics mode, the displayed dots and colors, up to 16Kbytes, are fetched from the display buffer.

    Color/Graphics Monitor Adapter 13

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    55/79

    14 Color/Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    56/79

    Programming Considerations

    Programming the Mode Control and StatusRegisterThe following I/O devices are defined on the Color/GraphicsMonitor Adapter.

    HexAddress 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 (001309 1 1 1 1 0 1 1 0 0 1 Color Select Register (00130A 1 1 1 1 0 1 1 0 1 0 Status Register (01130B 1 1 1 1 0 1 1 0 1 1 Clear Light Pen Latch30C 1 1 1 1 0 1 1 1 0 0 Preset Light Pen Latch304 1 1 1 1 0 1 0 Z Z 0 6845 Index Register305 1 1 1 1 0 1 0 Z Z 1 6845 Oata RegisterZ = don't care condition

    Programming the 6845 CRT ControllerThe controller has 19 internal accessible registers, which are usedto define and control a raster-scan CRT display. One of theseregisters, the index register, is used as a pointer to the the other18 registers. It is a write-only register, which is loaded from theprocessor by executing an 'out' instruction to I/O address hex3D4. The five least-significant bits of the I/O bus are loaded intothe index register.In order to load any of the other 18 registers, the index register isfirst loaded with the necessary pointer, then the data register is

    Color / Graphics Monitor Adapter 15

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    57/79

    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 loadedinto the 6845 CRT Controller registers to control the differentmodes of operation supported by the attachment.

    16 Color/Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    58/79

    40 by 25 80 by 25Address Register Register Alpha- Alpha- GraphicRegister Number Type Units I/O numeric numeric Modes

    0 RO Horizontal Character Write 38 71 38Total Only

    1 R1 Horizontal Character Write 28 50 28Displayed Only2 R2 Horizontal Character Write 20 5A 20Sync Position Only

    3 R3 Horizontal Character Write OA OA OASync Width Only

    4 R4 Vertical Total Character Write 1F 1F 7FRow Only

    5 R5 Vertical Total Scan Write 06 06 06Adjust Line Only

    6 R6 Vert ical Character Write 19 19 64Displayed Row Only

    7 R7 Vertical Character Write 1C 1C 70Sync Position Row Only

    8 R8 Interlace Write 02 02 02Mode Only

    9 R9 Maximum Scan Write 07 07 01Scan Line Line OnlyAddress

    A R10 Cursor Start Scan Write 06 06 06Line Only

    B R11 Cursor End Scan Write 07 07 07Line Only

    C R12 Start - Write 00 00 00Address (H) Only

    0 R13 Start Write 00 00 00Address (L) Only

    E R14 Cursor Read/ XX XX XXAddress (H) WriteF R15 Cursor Read/ XX XX XX

    Address (L) Write10 R16 Light Pen (H) - Read XX XX XX

    Only11 R17 Light Pen (L) - Read XX XX XX

    Only

    Note: All register values are given in hexadecimal6845 Register Description

    Color / Graphics Monitor Adapter 17

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    59/79

    Color-Select RegisterThe color-select register is a 6-bit output-only register. Its I/Oaddress is hex 3D9, and it can be written to using a processor'out' command. The following are the bit definitions for thisregister.Bit 0 Selects blue border color in 40 by 25 alphanumericmode.Selects blue background color (CO-Cl) in 320 by 200graphics mode.Selects blue foreground color in 640 by 200 graphicsmode.Bit 1 Selects green border color in 40 by 25 alphanumericmode.Selects green background color (CO-Cl) in 320 by 200graphics mode.Selects green foreground color in 640 by 200 graphicsmode.Bit 2 Selects red border color in 40 by 25 alphanumeric mode.

    Selects red background color (CO-Cl) in 320 by 200graphics mode.Selects red foreground color in 640 by 200 graphicsmode.Bit 3 Selects intensified border color in 40 by 25alphanumeric mode.Selects intensified background color (CO-Cl) in 320 by200 graphics mode.Selects intensified foreground color in 640 by 200graphics mode.Bit 4 Selects alternate, intensified set of colors in the graphicsmode.Selects background colors in the alphanumeric mode.Bit 5 Selects active color set in 320 by 200 graphics mode.

    18 Color/Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    60/79

    When bit 5 is set to 1, colors are determined as follows:C1 co Set Selected0 0 Background (Defined by bits 0-3 of port hex 3D9)0 1 Cyan1 0 Magenta1 1 White

    When bit 5 is set to 0, colors are determined as follows:C1 co Set Selected0 0 Background (Defined by bits 0-3 of port hex 3D9)0 1 Green1 0 Red1 1 Brown

    Bit 6 Not usedBit 7 Not used

    Mode-Control RegisterThe mode-control register is a 6-bit output-only register. Its I/Oaddress 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 isdisabled when changing modes.

    Color/Graphics Monitor Adapter 19

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    61/79

    Bit 4 A 1 selects the high-resolution (640 by 200)black-and-white graphics mode. One of eight colors canbe selected on direct-drive monitors in this mode byusing 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, 16background colors or intensified colors are available.This bit is set to 1 to allow the blinking function.

    Mode-Control Register SummaryBits0 1 2 3 40 0 1 1 00 0 0 1 01 0 1 1 01 0 0 1 00 1 1 1 00 1 0 1 00 1 1 1 1

    z = don't care condition

    51111zzz

    40 x 25 Alphanumeric Black-and-White40 x 25 Alphanumeric Color80 x 25 Alphanumeric Black-and-White80 x 25 Alphanumeric Color320 x 200 Black-and-White Graphics320 x 200 Color Graphics640 x 200 Black-and-White Graphics

    Enable Blink Attribute640 x 200 Black-and-WhiteEnable Video SignalSelect Black-and-White ModeSelect 320 x 200 Graphics80 x 25 Alphanumeric Select

    Note: The low-resolution (160 by 100) mode requires special programming and isset up as the 40 by 25 alphanumeric mode.

    20 Color/Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    62/79

    Status RegisterThe status register is a 4-bit read-only register. Its I/O address ishex 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 bemade without interfering with the display.Bit 1 A 1 indicates that a positive-going edge from the lightpen has set the light pen's trigger. This trigger is resetwhen power is turned on and may also be cleared by aprocessor 'out' command to hex address 3DB. Nospecific data setting is required; the action isaddress-activated.Bit 2 The light pen switch is reflected in this bit. The switch

    is not latched or debounced. A 0 indicates that theswitch 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 Modes1 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 registersincluding re-enabling the video.

    Color/Graphics Monitor Adapter 21

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    63/79

    Memory RequirementsThe memory used by this adapter is self-contained. I t consists of16K bytes of memory without parity. This memory is used asboth a display buffer for alphanumeric data and as a bit map forgraphics data. The regen buffer's address starts at hex B8000.

    Read/Write MemoryAddress Space (in hex)

    SystemRead/WriteMemory

    Display Buffer(16K Bytes)

    01000

    AOOOO

    B8000

    BCOOO

    COOOO

    22 Color/Graphics Monitor Adapter

    128K ReservedRegen Area

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    64/79

    SpecificationsThe following pages contain card and connector specifications forthe IBM Color/Graphics Monitor Adapter.

    Color/Graphics Monitor Adapter 23

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    65/79

    isplayBM Color Dor other DirMonitor ect-Drive

    At Standard TTL LevelsGroundGroundRedGreenBlueIntensityReservedHorizontal DriveVertical Drive

    0 6 9Color DirectDrive 9-PinD-Shell Connector

    1234 Color/Graphicsrive5 Direct-D6 Adapter789

    Composite Phono JackHookup to Monitor

    ideoMonitor

    Composite Video Signal ofApproximately 1.5 VoltsPeak to Peak AmplitudeChassis Ground

    Connector Specifications (Part 1 of 21

    24 Color/Graphics Monitor Adapter

    12

    Color/GraphicsteJackomposi

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    66/79

    P1 (4- Pin Berg Strip)for RF Modulator

    Color/GraphicsMonitor Adapter

    RFModulator

    + 12 Volts(key) Not UsedComposite Video OutputLogic Ground

    RF Modulator Interface

    htigPen

    - Light Pen Input(key) Not Used

    - Light Pen SwitchChassis Ground

    + 5 Volts+ 12 Volts

    Light Pen InterfaceConnector Specifications (Part 2 of 2)

    1234

    123456

    P2 (6-Pin Berg Strip)for Light-PenConnector

    Color/GraphicsMonitorAdapter

    Color/GraphicsMonitorAdapter

    Color / Graphics Monitor Adapter 25

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    67/79

    26 C910r/ Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    68/79

    Logic DiagramsThe following pages contain the logic diagrams for the IBMColor/Graphics Monitor Adapter.

    Color/Graphics Monitor Adapter 27

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    69/79

    QOnt........ae:I" )II I=.@1S-..

    co.,co.. -WMOIIOLW.. [WAlUIL I .I."' -"...'".. ...'".... .... .,.,."' -ENCPUMSADOII...'"...,.'"....,.co'".,,.,.,'"'" ."'",. M,.,.'" ..,. -1011"' - L ~ ,.

    '"41 :.r"'"(4) -GM'II

    "...::U

    Color/Graphics Monitor Adapter (Sheet 1 of 6)

    ..!:!..I,r . ~ ~ - - - - - - - - - - - - -

    ...,.,

    .....

    ..

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    70/79

    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)\1111

    '"

    '"'"'"'"'"'"

    '"'"'"'"

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    71/79

    0n0-..,.........

    ="=::r;::).0a.....0..,;>=-....n>..,

    (tI) + I ~ MIIZIll-RESET

    (iiI U ~ N (0) +A

    (O) -RESET'(4) +IIRES15) +VSYNCDLY(8) + I O C U X ~

    '"8) +.0.18(8) +Alq(0) +A17Ifll +A16(Ii) +.0.1

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    72/79

    (31 -Q2'(31 +cASCO

    131 -

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    73/79

    ne..=,"-e:III

    a:=....=,>=-II"C....I'D.,

    '"'"

    '"'"'" .,

    '"OJ ItHI

    ,.,'"

    ,..U''''DU 12.3,4): ~ = : :!:

    Color/Graphics Monitor Adapter (Sheet 5 of 6)

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    74/79

    (5) (OMP WID

    (5) YSYN(OUTIS) HSYNCOUTIS) lOUT(6) BOUT(5) G CUTIS) 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

    " .""Sl2."

    JIVlOEOJ.l(KCHASSI5G11OUNO

    ,,

    111'+100n ,RlllOn

    "".,

    " l' ' ' f j.,,, ' , . , ~ ~ " .r- --;;-

    9-PINO-TYPECONNECTOR

    " " "" " "" " "" " .." " "" "" " "" .. ".-'" ""52"'i

    "'-

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    75/79

    34 Color/Graphics Monitor Adapter

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    76/79

    Index

    Aalphanumeric mode 6

    Bbasic operations 12

    cchange modes 21character generator 5color-select register 18composite color generator 6controller 5

    Ddescription 1display buffer 5

    Index-l

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    77/79

    Ggraphics modes 9

    H

    high-resolution black-and-white 11low-resolution color 9medium-resolution color 9

    high-resolution black-and-white graphics mode 11

    Llogic diagrams 27low-resolution color/graphics mode 9

    M

    medium-resolution color/graphics mode 9memory requirements 22mode set register 5mode typesalphanumeric 6graphics 9mode-control register 19mode-control register summary 20modes of operation 1

    Index-2

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    78/79

    pprogramming considerations 15programming the mode control and status register 15programming the 6845 crt controller 15

    Rregisters

    color-select 18

    s

    mode control and status 15mode set 5mode-control 19status 21

    sequence of events for changing modes 21specifications 23status register 21

    Ttiming generator 6

    Index-3

  • 8/2/2019 Technical Reference Options and Adapters Volume 2 1of5

    79/79


Recommended