(AA) MOTOROLA MC6847 Non-interlace SEMICONDUCTORS MC6847Y 3501 ED BLUESTEIN BLVD., AUSTIN, TEXAS 78721 interlace MOS MC6847/MC6847Y VIDEO DISPLAY GENERATOR (VDG) The video display generator (VDG) provides a means of interfacing the M6800 microprocessor family (or similar products) to a standard col- or or black and white NTSC television receiver. Applications of the VDG include video games, process control displays, home computers, education, communications, and graphics applications. The VDG reads data from memory and produces a video signal which will allow the generation of alphanumeric or graphic displays. The generated video signal may be modulated to either channel 3 or 4 by using the compatible MC1372 (TV chroma and video modulator). This modulated signal is suitable for reception by a standard unmodified television receiver. A typical TV game is shown in Figure 1. @ Compatible with the M6800 Family, the M68000 Family, and Other Microprocessor Families @ Generates Four Different Alphanumeric Display Modes, Two Semi- graphic Modes, and Eight Graphic Display Modes @ The Alphanumeric Modes Display 32 Characters Per Line by 16 Lines Using Either the Internal ROM or an External Character Generator @ Alphanumeric and Semigraphic Modes May Be Mixed on a Char- acter-by-Character Basis @ Alphanumeric Modes Support Selectable Inverse on a Character- by-Character Basis @ internal ROM May Be Mask Programmed with a Custom Pattern @ Full Graphic Modes Offer 64x 64, 128x 64, 128x96, 128x 192, or 256 x 192 Densities @ Full Graphic Modes Use One of Two 4-Color Sets or One of Two 2-Color Sets @ Compatible with the MC1372 and MC1373 Modulators Via Y, R-Y (pA), and B-Y (@B) Interface ®@ Compatible with the MC6883 (74LS783) Synchronous-Address Multi- plexer @® Available in Either an Interlace (NTSC Standard) or Non-interlace Version (N-CHANNEL, SILICON-GATE) VIDEO DISPLAY GENERATOR L SUFFIX CERAMIC PACKAGE CASE 715 ll P SUFFIX PLASTIC PACKAGE CASE 711 S SUFFIX CERDIP PACKAGE CASE 734 PIN ASSIGNMENT Vsstie —“” 40 []DD7 DDE 2 39fICss Dpog 3 38 HS DD10}4 37 FS bo20)5 36 T] RP DD3 6 3517 A/G pp4 7 34[J A/S DD50 8 33 I] CLK CHBO9 32 J] INV #8 10 31 DINT/EXT @A11 30 []GMO MSQ12 29[]GM1 DA5[}13 28 [ly pDA6q14 27 (1GM2 DA7{]15 26 [JDA4 DAs] 16 25 f1DA3 VecQ17 24 [JDA2 pASi8 231]DA1 DA10[}19 221] DAO DA11f] 20 211] DA12 ©MOTOROLA INC., 1984 DS9823-R1 MC6847eMC6847Y 4X Color Burst Freq. 14.38 MHz FIGURE 1 — BLOCK DIAGRAM OF A TV GAME USING THE VDG AND THE MC6809E MPU i" / 2 IRE NNwW-OZ Mod RF Signal to TV This device contains circuitry to protect the in- puts against damage due to high static voltages or electric fields; however, it is advised that nor- mal precautions be taken to avoid application of any voltage higher than maximum rated voltages to this high impedance circuit. Reliability of operation is enhanced if unused inputs are tied to an appropriate logic voltage (e.g., either Vss or iE non : S0-S2 Synchronous CLK I CLK MC6883 Address MC6809E Multiplexer DAO DAO MPU Ole A0-A15 Z0-Z7 WE CAS RAS_~ AS HS $B \ ) oA y 16 48 MC6847 y 4 / \ y Video Dynamic Display DO-D7 bee. \ > RAM L Generator 8 Array : rm (MCM4027, co faz yO? MCM4116, MCM6633 H AO-A15 or MCM6665) B U f Mode E R ys AO0-A15 L Game __| ; A Paddles DO-D7 CS t MC6846 mH ROM 1/O Timer CS 'CLKr CLK (Note 1) § PL p— tHDAD —> tHDAH PR le — DAO-DAS3. tops —>_E \ Z DDO-DD7, CSS ? (DDH —F NOTES: 1. The VDG may power-up using either the rising or falling edge of the clock (dotted line). 2. Transitions of DA4-DA12 occur outside the display area. DAO-DA3 access the 16 bytes of data displayed during each scan line in the dis- play area. _ __ 3. Long cycle timing applies to CG1, RG1, RG2, and RG3 modes (see Table 3). A/G is high; AS, INT/EXT, and INV input levels do not affect the VDG in long cycle modes. 4. Usable RAM access time for the long cycle may be calculated using the following equation: tRACL = 8°1/fmax~ tHDADmay ~ tODSmin~ tCLKr lf address and data buffers are used, the access time must be adjusted accordingly. 5. All timing is measured to and from a low voltage of 0.8 volts and a high voltage of 2.0 volts unless otherwise specified. FIGURE 5 — SHORT CYCLE HORIZONTAL ACCESS TIMING tCLKr CLK P<—— 'HDAD ——> 'HDAH <— DAO-DA3 _\ jf tHDA4D —— tHDA4H <<— DA4 ‘Dos —> DDO-DD7 — CSS, A/G, A/S, _ ~< — INT/EXT —_— oes os puemened tbDH —— <—— NOTES: 1. The VDG may power-up using either the rising or falling edge of the clock as shown in Figure 4. 2. Transitions of DA5-DA12 occur outside the display area. DAO-DA4 access the 32 bytes of data displayed during each scan line in the dis- play area. 3. Short cycle timing applies to the four alphanumeric modes, two semigraphic modes, and to the CG2, CG3, CG6, RG6 modes (see Table 3). For the four graphic modes, A/G is high and the A/S, INT/EXT, and INV input levels do not affect the VDG. 4. Usable RAM access time for the short cycle may be calculated using the following equation: tRACS = 4°1/fmax— tHDA4D max ~ (DDSmin~ tCLKr lf address and data buffers are used, the access time must be adjusted accordingly. 5. All timing is measured to and from a low voltage of 0.8 volts and a high voltage of 2.0 volts unless otherwise specified. MOTOROLA Semiconductor Products Inc. 6 $/t9G £07 = SHd) © “Aejdsip ay) yo uoNJOd aAnoeut ayy Buuinp aBueyo jim ZL VQ-SVq © “AdYQ) +4dYO) —-j/,*GEe=ddM Aq pauiwiajap aq Aew yipiM asind gy - ‘ISHQ, + ISHQ) — 3/1 °Gg'g1 =SHM) Aq pauiwaiap aq Aew Ypim asind SH ° ‘pailoads asimsayjO SsauN SYOA Q'Z JO aBeyjOn YBiy e pue SOA Q’Q JO BHeYOA MO] e WO PUe O} PaINseaw si Buin I)y * Z 9 G v “$dHQy + ISHQ) — 4/1 Gg = dYSH) Aq pauiwalap aq Aew gy 01 SH '€ c l O N —— P| HVOA) 19\UNDD Ssaippy jeonJaA YBnosyy, ajddiy uibag : K, | ssaippy per SU 0ZZ A SSaIPpY PIIEA clV¥a-sva p BION ava ————> € S10N Z BION ( . AK du \ 1d dQ) 9 S10N < 1d6) * p SHd) INAS NS NS RS NS NS Vo ONIWIL NOILVZINOYHONAS TWLNOZIYOH GNV L3S3Y¥d MOY ‘SS3SYOGV IVOILYSA — 2 aYNDIS soiydesBiusas ‘souaunueydiy ‘GOH ‘99D ‘END ‘ZOD :apow ssad0e/juawal|a 0YS,, £9H ‘ZO ‘LOY ‘19D :‘sapow ssac0e/juawaja 6u07 , £0G-0Ga LX3/1LNI'S/¥ ‘ANI ‘SSD eleg pier 77D KeeG pie >A eed ‘Pile ied pie a wT TTL LL LLLLLULLLLLLLLLLLULLLLLLLLLLLLULLLLULL Lf, OO a ot » VGA SHYVHD) a ai ¥ _ ____ xX _ SSOIPPY PIA xX. xX ‘SSOsPpV PEA > GED GED @ SSBIPPV PIEA Xx a bva —— —— — “ i ywilLV2 - ssaippy PEA XxX... sk SSBIPPY PIEA >, Ga, Gan SSaIppy PEA X_ “ZX KX eva-ova . (J8Ps0Q Jal UaasIDS UO sajoeseyd 1S414) ele PEA __ /aa-0aa WITH, eieq pieA TTL LLLLLLLLLEEETEEEELEDOT TIRE Pe M i (LLL LULL LLLLLLLULLLLLLLLLLLLLLLL LL aL L a on _ bxa/ AN! 38 I @Hy ns] OM) On) Mar NS) VWVHO > h TOWe ~--X_-X X V PIeA aa . KS rva Q¢vHa, xX. SSIPPV PIIEA > Gun & @ 4 eva-0vd /\+# XK _, SSaJppY PI|EA x __ I XX TS \*" J (aur JO Buruulbag wioi4 UMOYS sdiysuoNejay Buluwi,) ONIWNIL Q1OH OGNV dNL3aS VLVG GNVA GNV SSSYCQV IWLNOZIYOH — 9 3HND Id She Nee cme coe ductor Products Inc. emicon j (AA) MOTOROLA S MC6847eMC6847Y FIGURE 8 — FIELD SYNC (FS) TIMING ~—— toF st ——> b<— tD FS; —> FS p—\; —\ N , A tWES > Note 1 tPFS Note 2 NOTES: 1. twes =32*tpHST = 32+(277.5+1/f) 2. tpES = 262«tpHST = 262+(227.5+1/f) for MC6847 tpES = 262. 5«tpHSsT = 262.5+(227.5+1/f) for MC6847Y FIGURE 9 — MEMORY SELECT (MS) TIMING MS / Note 1 \ \, ”, tDMSV eID MST ~ MAO-MA12 Valid Address XK Valid Address -—\ Valid Address X Valid Address NOTES: 1. MS is asserted asynchronously with respect to CLK. (AA) MOTOROLA Semiconductor Products Inc. 8 MC6847eMC6847Y FIGURE 10 — VIDEO AND CHROMINANCE OUTPUT WAVEFORM RELATIONSHIPS ; a C487, _ ote t Lett Border Nowe3 Right Border? tWHS > (LB 'AV Sino} S Note 4 - pie Note 2 RB ync x Blank AIG SJ Lo WL e— 'HBNK , 1 Note 5 WM [ T WH —>- r-—- End of _ __ l i | lf A/G=0 Horizontal Al GeCSS l | Sync A/GeCSS | | fe tHCD | Note 1 | | | | rf tcB | | | | | V oa | | 68 Va A/G+A/Gecss | | _ y urst Css | i | | OL mn “+ [ | (Burst is removed [ i | [ for [ | | K/G*CSS*GMO) | | | | | | | 1 _ ! | | Red | | Magenta Orange 6A ve A/G + A/GeCSS ,Yellow, Blue | ] Buff | VOL A/GeCSS | | Green 5 {Cyan} Lf NOTES: 1. tuep =3.5«1/f 2. tay = 128+1/f 3. taVB = 185.5«1/f 4. Refer to Figure 7 5. tHBNK = 42«1/f FIGURE 11 — CHROMA PHASE DELAY Y XK YA—> <— V4 oA / $B q —> ae tvB (AA) MOTOROLA Semiconductor Products Inc. 9 MC6847eMC6847Y FIGURE 12 — TIMING DIAGRAMS VIDEO RISE AND FALL TIMES (illustrates Beginning of One Horizontal Line) <——— tH NK >| tf tWH t aFP WHS BP | <—ls Vsync F50% -10% HBr be >| he tHiBt 10% 90% V Blank V 10% VWL VWM VWH -—-——-— -—--—- 90% tty ey be V tfCoB IH 90% 10% tCBr VR 90% ob 10% 90% Ni VBurst 90% + 10% L10% VOL (CBf od be ° | tCB | <—''¢B tioA >| traA trCHA ° tICHA > 90% HE + COA pcos VR oA 10% ) 10% 90% VOL 90% 10% 90%-E_F 10% MOTOROLA Semiconductor Products Inc. 10 MC6847eMC6847Y FIGURE 13 — DISPLAY AREA TIMING Vertical Blanking 13 H Lines j Top Border 25 H Lines Active Display Area 192 H Lines 192 Lines 242 Lines 262% Lines Interlace for Each Field 262 Lines Non-Interlace Falling Edge of FS* a aan «aus aun G7 an = Bottom Border 26 H Lines Vertical Retrace 6 H Lines TAV TAVB tHST * Typically 2.4 us after start of vertical blank. FIGURE 14 — TYPICAL FORMAT OF THE TELEVISION SCREEN BORDER (Black in all alpna/semigraphic modes. Green or buff (off-white) in all graphic modes. Controlled by the VDG.) 256 Dots DISPLAY AREA (49,152 dots, all under VDG control in all modes. Each one of up to 8 colors when on depending on mode.) —t--__-——-19? Dots” *One on each non-interlaced line; for interlace, the lines of the odd field are copied into the even field thus doubling the number of dis- played dots. MOTOROLA Semiconductor Products Inc. 11 MC6847eMC6847Y VIDEO DISPLAY GENERATOR DESCRIPTION The MC6847/ MC6847Y video display generators provide a simple interface for display of digital information on a color monitor or standard color/black and white television receiver. Television transmissions in North and South America and Japan conform to the National Television System Commit- tee (NTSC) standards. This system is based on a field repeti- tion rate of 60 fields per second. There are 525 interlaced lines per frame or one-half this number per field. The MC6847 scans one field of 262 lines 60 times per sec- ond. The MC6847 non-interlace VDG is recommended for use in systems (i.e., TV games and personal computers) where absolute NTSC compatibility is not required. If NTSC compatibility is required, perhaps for caption overlays on broad-case signals, then the MC6847Y interlace VDG is recommended. NOTE A system with the MC6847 VDG and the MC1372 video modulator forms a transmitter, transmitting at 61.2 MHz (channel 3) or 67.25 MHz (channel 4) depen- ding on component values chosen. This being a Class | TV device, care must be taken to meet FCC re- quirements Part 15, Subpart H. However, if the com- posite video output from the MC1372 were to drive the television directly, Section 15.7 of the FCC specifica- tion must be adhered to. SIGNAL DESCRIPTION DISPLAY ADDRESS OUTPUT LINES (DA0-DA12) Thirteen address lines are used by the VDG to scan the display memory as shown in Figures 4-7. The starting ad- dress of the display memory is located at the upper left cor- ner of the display screen. As the television sweeps from the left to right and top to bottom, the VDG increments the RAM display address. The timing for two accesses starting at the beginning of the line is shown in Figure 6. These lines are TTL compatible and may be forced into a high- impedance state whenever MS (pin 12) goes low. AQ-A3 change during the active display area. A4 changes during the active display area in the alohanumerics, semigraphics, CG2, CG3, CG6, and RG6 modes. A5-A12 do not toggle within the active display area but instead, ripple through the address during border and blanking time. DATA INPUTS (DDO-DD7) Eight TTL compatible data lines are used to input data from RAM to be processed by the VDG. The data is then in- terpreted and transformed into luminance (Y) and chroma outputs (dA and @B). POWER INPUTS — Vcc requires +5 volts +5%. VSS requires zero volts and is normally ground. The tolerance and current requirements of the VDG are specified in the Elec- trical Characteristics. VIDEO OUTPUTS (¢A, $B, Y, CHB) — These four analog outputs are used to transfer luminance and color information to a standard NTSC color television receiver, either via the MC1372 RF modulator or via drivers directly into Y, ¢A, @B television video inputs (see Figures 10, 11, and 12). Luminance (Y) — This six level analog output contains composite sync, blanking and four levels of video luminance. oA — This three level analog output is used in combina- tion with @B and Y outputs to specify one of eight colors. o#B — This four level output is used in combination with oA and Y outputs to specify one of eight colors. Additional- ly, one analog level is used to specify the time of the color burst reference signal. Chroma Bias (CHB) — This pin is an analog output and provides a DC reference corresponding to the quiescent value of ¢A and #B. CHB is used to guarantee good thermal tracking and minimize the variation between the MC1372 and MC6847. This pin, when pulled low, resets certain registers within the chip. In a user’s system, this pin should not nor- mally be used as an input. It is used mainly to enhance test Capabilities within the factory. FIGURE 15 — COLOR COMPOSITE VIDEO TO COLOR MONITOR +5V = 360 = 960 1N3064 ] Adjust for r dc Output 14 13 12 4.3 V =0.4mA pp Typ 2N4403 MC1372 Y 2N4401 Color 759 . 33k Composite =20V Video = 470 = Out 10 0.1 a 8 vA Adjust for 3 4 gps = 750 ac Output *3.9 kQ is MC1372 effective load, Ratio: Color to Video Trim pin 12 voltage doesn’t move and is virtual ground. MOTOROLA Semiconductor Products Inc. 12 MC6847° MC6847Y SYNCHRONIZING INPUTS (MS, CLK) THREE-STATE CONTROL — (MS) is a TTL compatible input which, when low, forces the VDG address lines into a high-impedance state, as shown in Figure 9. This may be done to allow other devices (such as an MPU) to address the display memory (RAM). CLOCK (CLK) — The VDG clock input (CLK) requires a 3.579545 MHz (standard color burst) TV crystal frequency Square wave. The duty cycle of this clock must be between 45 and 55% since it controls the width of alternate dots on the television screen. The MC1372 RF modulator may be used to supply the 3.579545 MHz clock and has provisions for a duty cycle adjustment. The VDG will power-up using either the rising or falling edge of the clock. The dotted line on the CLK signal in Figure 4 indicates this characteristic of latching in data on either clock edge. SYNCHRONIZING OUTPUTS (FS, HS, RP) Three TTL compatible outputs provide circuits, exterior to the VDG, with timing references to the following internal VDG states: FIELD SYNC (FS) — The high-to-low transition of the FS Output coincides with the end of active display area (see Figure 8). During this time interval, an MPU may have total access to the display RAM without causing undesired flicker on the screen. The low-to-high transition of FS coincides with the trailing edge of the vertical synchronization pulse. HORIZONTAL SYNC (HS) — The HS pulse coincides with the horizontal synchronization pulse furnished to the television receiver by the VDG (see Figure 7). The high-to- low transition of the HS output coincides with the leading edge of the horizontal synchronization pulse and the low-to- high transition coincides with the trailing edge. ROW PRESET (RP) — If desired, an external character generator ROM may be used with the VDG. However, an ex- ternal four bit counter must be added to supply row ad- dresses. The counter is clocked by the HS signal and is cleared by the RP signal. RP pulses occur in all alphanumeric and semigraphics modes; no pulses are output in the full graphic modes. RP occurs after the first valid 12 lines. Therefore, use an FS clocked preloadable counter such as a 74LS161 as shown in Figures 7, 14, and 23. MODE CONTROL LINES INPUT (A/G, A/S, INT/EXT, GMO, GM1, GM2, CSS, INV) Eight TTL compatible inputs are used to control the operating mode of the VDG. A/S INT/EXT, CSS, and INV may be changed on a character-by-character basis. The CSS pin is used to select between two possible alphanumeric col- ors when the VDG is in the alphanumeric mode and between two color sets when the VDG is in the Semigraphics 6 or full graphic modes. Table 1 illustrates the various modes that can be obtained using the mode control lines. There are two dif- ferent types of memory access concerning these modes, they are a short and a long access cycle, which differ by a FIGURE 16 — EXTERNAL CHARACTER GENERATOR ROW COUNTER FOR MC6847 +5V OWW- ae 4 5 6 +5V PQ P1 P2 P3 f 1 V 16 CC RP ) omens Mn La' ; CEP | From FS a: cer 2 4 | 74 MC6847 LS161 2 — GND HS »> CP 8 L t _fA 1 Q0 Q1 Q2 Q3 ~- yop y ‘Ne " MOTOROLA Semiconductor Products Inc. 13 ve Row Address (Zero Through Eleven) MC6847eMC6847Y TABLE 1 — MODE CONTROL LINES (INPUTS) PI G) DI Yn INV | GM2 | GM1 GMO Alpha/Graphic Mode Select # of Colors Internal Alphanumerics Internal Alphanumerics Inverted External Alphanumerics External Alphanumerics Inverted Semigraphics 4 (SG4) Semigraphics 6 (SG6) - Se ss $ OO CLO OO OO OO x KK KK KK KI OK KIRK ORM OO - eS em KH OOOO] RK KI KK KK OX - POOH SF OO] _— KI mK OK OK OK - Of Of O -] OF KK KI KK OK OX x KK KKK KK mR Kp ooo Oo x KKK KKK KR OF erm Pr OO 64 x 64 Color Graphics One (CG1) 128 x 64 Resolution Graphics One (RG1) 128 x 64 Color Graphics Two (CG2) 128 x 96 Resolution Graphics Two (RG2) 128 x 96 Color Graphics Three (CG3) 128 x 192 Resolution Graphics Three (RG3) 128 x 192 Color Graphics Six (CG6) 256 x 192 Resolution Graphics Six (RG6) NO Fh FH HH HI] CO OO shift of one full 3.58 MHz cycle. One of the differences be- tween these access times, in the short access time frame, is a shift of one full 3.58 MHz cycle from the corresponding normal long access time frame, as shown in Figure 6. The modes using short access times read memory twice as often as the long access modes. OPERATION OF THE VDG A simplified block diagram of the VDG is shown in Figure 17a and a detailed block diagram is shown in Figure 1/b. The externally generated 3.58 MHz color burst clock drives the VDG. Referring to Figures 11 and 12, note that the horizontal screen span from blanking to blanking is 193.1 clock periods ( = 53.95 ys). The display window is offset from the left-hand edge by 283 periods and lasts for 128 periods (35.75 ps). Of the 242 lines on the vertical screen from blank- ing to blanking, 192 lines are used for the display. The display window is offset from the top by 25 lines. Under the constraint of the master clock, the smallest display element possible for the VDG is half period of the 3.58 MHz clock wide by one scan line high. All other display elements are multiples of this basic size. DISPLAY MEMORY ADDRESS DRIVERS The address drivers normally drive the video refresh ad- dress into the display memory so characters may be displayed on the CRT. When the memory select pin (MS) is pulled low by an external decoder, the driver outputs go toa high-impedance state so external three-state drivers may switch the MPU produced address onto the display memory address bus; the MPU may directly manipulate data in the display memory. VIDEO TIMING AND CONTROL This subsystem of the VDG includes the mode decoding, timing generation, and associated row counter logic, and uses the 3.58 MHz color frequency to generate horizontal and vertical timing information (via linear shift register counters), which the video and chroma encoder uses to generate color video information. The horizontal timing for the VDG is summarized in Figure 7. Ten and one-half cycles of the 3.58 MHz subcarrier are transmitted on the back porch MOTOROLA Semiconductor Products Inc. 14 of every horizontal blanking period. This color burst ts sup- pressed during vertical sync and equalizing intervals. Color burst is also suppressed in the most dense two color graphic modes. This leads to some interesting rainbow effects on the display which is frequency and pattern dependent. The ver- tical timing for the VDG Is given in Figure 18. Vertical retrace iS initiated by the luminance signal being brought to the blanking level. The vertical blanking period begins with three lines of equalizing pulses followed by three lines of serrated vertical sync pulses followed by three more lines of equaliz- ing pulses. The remaining vertical blanking period contains the normal horizontal sync pulses. The equalizing and serra- tion pulses are at half line frequency. Notice the difference in spacing between the last horizontal sync pulse and the first equalizing pulse in even and odd fields. It is the half line dif- ference between fields that produces the interlaced picture in a frame. Vertical timing between fields for the non-interlaced VDG, on the other hand, is identical. The equalizing and ser- ration pulses are, however, at the horizontal frequency. The 3.58 MHz color frequency is also used to clock the video shift register load counter. This counter and the video shift clock inhibit circuitry derive the dot-clock for the output of the video shift registers and the load signals for the video shift registers’ input latches. The vertical and horizontal ad- dress counters generate the addresses for the external display memory. INTERNAL CHARACTER GENERATOR ROM Since many uses of the VDG will involve the display of alphanumeric data, a character-generator ROM is included on the chip. This ROM will generate 64 standard 5x7 dot matrix characters from standard 6-bit ASCII input. A stan- dard character set is included in the MC6847 although the ROM is custom programmable. INTERNAL/EXTERNAL CHARACTER GENERATOR MULTIPLEXER The internal/external multiplexer allows the use of either the internal ROM or an external character generator. This multiplexer may be switched on a character-by-character basis to allow mixed internal and external characters on the CRT. The external character may be any desired dot-pattern in the standard 8x 12 one-character display matrix, thus allowing the maximum 256 x 192 screen density. MC6847°MC6847Y FIGURE 17a — SIMPLIFIED VDG BLOCK DIAGRAM MPU Address Bus MPU Data Bus +5 OV Vop Vss VDG ! FS Refresh | «RAM 512 Bytes to . 6K Bytes cc Timing and ‘ Control Ag J —<—}- 6” 2 6,70r8 | “8 / Character MUX Generator ROM A f Y Luminance Parallel To oO nee Le Serial Shift Register, pias oA Video Chroma Encoder B-Y oB CHB VIDEO AND COLOR SUBSYSTEM The 8-bit output of the internal/external multiplexer is called Y. The luminance signal, Y, and the two chrominance serialized in an 8-bit shift register clocked at the dot-clock outputs, @A (R-Y) and @B (B-Y), can be combined frequency. (modulated) by an MC1372 into a composite video signal The luminance information from the shift register is sum- with color.Figures 8, 9, 10, and 16 show the relationship be- med with the horizontal and vertical sync signals to produce tween the luminance and chrominance signals and the resul- a composite video signal less the chrominance information, tant color. MOTOROLA Semiconductor Products Inc. 15 (A-@) (A-dy) a¢ Ve Hd A Wy SH SE. t | mNOSe t t 10}€j3Ua5) _ {S19A91 p) (S|8A9} 9) feo 49019 oa SS oo v-QG ! V-Q A A ze? aseug-9 - IGA A ae t ‘49 “SSO T — oO. paceparu| e €\ iasay v 7A Ge <9 _ jeusayuy = ae > adn JUNO) SU Ulpg pue PsEg . pacejajuj-uo 19 19 Ty PorerneN AG* 2 _ 91607 | — <— e1eQ INO 91D 1d 10}@18Ua5) 2HW £01 Ip sayoie sayniey sayole} 49019 L <— <——$ eieg uy yD 76 aseud-!g JIA Q T | | ' { j ce | | se! | | = € ce \? 1 HS) ' re} jSuiwy jeuoZzuOH) <— re) er ee ee re re | ) 10 10 we pm 1 ! L i . 1 ZHW ZO'L Sayoie] auljadig at a. Oy Qj g SSO 6el4 |= | PS} sung | | S "09 ue Suit . 9 veg —| 91607 | 0 2 a oF as 1x3 wJ jaxaidninyy 1 ' 1 jp PO — — iN! Pot cE << 0 d 0 1" 8 1 8\ | sa)UNOD MOY o/V \ &X 1 [ en ee ee | . \ il i i L f- |2 py cm 9/V “uaQ) Jeu Y9D 7PUD g 27 (9) 9S ‘pS duaWwNUeUdy y D g A be f /\ c- Ve- | t= | t= | ey ty ey ee s| z- ; 2- | @- 4 @- | Hund ajddiy ssauppy jena, ! 3 ern ssauppy jeluOzuOH = -— @ \ | iiazty | i i (9606) ! (8b02) , (vcOl) | (CIS) | (92) | (821) | (v9) i (CE) S (8) i (v) \ (C) i (t) 1°] 7 n 0; 0, 0, 04, 0, 0 ;, 0 4, 0 0 { \ \ sayoe] ereg | { 1 _ qg!'aitatataiatitaiié«a 5 1 rl L j 1 1 | \ | j | j \ vA \ 4 i b } ~<}— Ltt tt i tf a a ek 2 . : 0aqg 1gqgqQ— ¢caqq_ ¢ada pqq sqgq g30dqGQ = 2dQ wivG ttvad olva 6vaq svad évd 9vVQ SVG bvaG eva ~eéva iva ova SWA ‘Ne J XY ned sng ereg Aeldsigq sng ssauppy Aejdsig WVYDVIG 19018 DAA G3aTIVLaG — Zt AYNODIS “BOEUBIU| 10} (9/4 °G L77)°G 797 = SHd 4 +g 79z = AI "ODEUAIUI-UON JO} ($/4*G 627) *Z97 = SHdi«7zgz = Shy (1/4 *S £@Z)°0% = SHdi-QZ = ANA “¢ “saul UedOS jeyUOZUOY 71 = di -Z AN SW BG'L =S4 QL 1-St 68a 1 = = ANAM) — st E977 LE x (BE ~ BB} = JapiOg saddy) Su 79°, =SU OQ LL-SW GZGQ 1 = ANGH)-s Eg/ 7 LE x (ZL b-bZG) = J8PIOg 18M0}7 si G/'p =SU 9OE 6LZ x (BEP-SSh) = SHM) st G'€9 =SU QE BLT X (G-LZ7-GSP) = sug'€g9 =SU 99E'6LZ x (0-G-LZZ) = LSH) ‘suoneinojey Burwiy ajdwexy “aUUH Ut SIUIOd aWeS ay) ae CQ Pue GGp SysewW SWI] SU 99f 6£2 = ZHW 8G°C/1 “yaps0g saddn ay) 10} an) S490|D ZHW 8G'E JO g = SaSayjUaIeg-UOl) "s9y0e7e4) JO MOY spjoy awes ayy “UaasIDS ay) 0) BunuM yo Sasodind 10) Ajjeioadsa SW 8/0 LE = (ZHA BOP LE/L) DANDY ISJ4 BYI Jal SaWwo) — 48PJ0q ayy 40 Wed Se pasapisuod aq Ayjenioe pjnod ANGHj, Sx90]9 ZHA BOP LE JO¥[ 11 ¢SILON INDIO 0} 18S8Ig MOY 18214 duMi—>| ee Z 10N dUSH}—>} pg <—____——_ du, ______»> —h h duh J iN du ‘ | ‘ - S4M ~) I 3J8H SINDIO 18S8Ig MOY ON :d10N, } rae | l My | Wd. SSdev/9 | an ssaey/9 Wn Do_.» | OCT + —-\———T Pn pom uA ve v S$S90V/9+V/9 | ‘ " SSdev/9N+V¥/9 HIA | SSDev/9 SS2ev/9 | an SSdeV/D SSD9V/D 0A 9, ma v" sung at SL i a¢ {Mh ‘a | N Sh fh BP, [Yih [] YA A ge | SSdevV/D+V/9 SSOeV/N+V/9 } . ‘ SSOePV/D — SSDPW/D Hin os I +V¥/9 +¥/9 & ~ (Is a zs 3 Is rt s = SB Ss - s {5 2. se a ~ ¢ 8 8 - 32 ®@s 8 ge RB sswvio ys © 18 S S 8 s 8 @ 8.23 |®,8 ge 8 Sos Aj | & 19 _ an , & & a jo & a OHM a Oo a a © a O a oO a |mo oa o WM IM | y v Y M 1 t Y Y yoeig =A ws } | AU uur seid 6 QuA cong ncn Rap sawon q QOOOCGOOHOHOOO®@ ODOOGOOOOHDOOO—— |_|, MMA " n> —>} U83JIS UO aut} psog Jacdn PBRNN OO | e CICNoONUsl(si(AolsiGleEl ZI # BUI] BANDY JaYV ASINd IPWOZUOH — peigeiq aanoy 1S414 agSis 2108 19M07 8 § , € SION nen — ANBA, p 310N ANGA) —~-—_ > (INJAd/ 1) 10 dy paoepaiul platy vaag padejiaiuy pyaty PPO _ (o4) H6l >| leg SHdi 61 >| & be— SHdig —Phe— SHdig —>}<— sHdie —>| 7 n — SHdi ¢ ——be— SHdig ——}e— SHdie —sIp ir SHd) Go >| <— —>| SHd) fe— >| SHdi be P| SHdi fx (sHesul asc Buiuuly jeoWeA aoR}E3U] 104) ONIWIL IWOILYSA SOVIBSLNI-NON — 8L SYNDIs A ALUN SHd) g'9 —>| ~« ductor Products Inc. - icon 17 (AA) MOTOROLA Sem MC6847eMC6847Y DISPLAY MODES There are two major display modes in the VDG. Major mode 1 contains four alphanumeric and two limited graphic modes. Major mode 2 contains eight graphic modes. Of these, four are full color graphic and four restricted color graphic modes. The mode selection for the VDG is sum- marized in Table 2. The mnemonics of these fourteen modes are explained in the following sections. In major mode 1 the display window is divided into 32 col- umns by 16 character element rows thus requiring 512 bytes of memory. Each character element is 8 half periods by 12 scan lines in size as shown in Figure 19. The area outside the display window is black. The VDG has a built-in character generator ROM contain- ing the 64 ASCII characters in a 5x 7 format (see Figure 20). The 5x7 character font is positioned two columns to the right and three rows down within the 8x 12 character ele- ment. Six bits of the 8-bit data word are typically used for the internal ASCII character generator. The remaining two bits may be used to implement inverse video, color switching, or external character generator ROM selection on a character- by-character basis. For those who wish to display lower case letters, special characters, or even limited-graphics, an exter- nal ROM may be used. If such external ROM is used, all of the 8x 12 picture elements, or pixels, in the character ele- ment can be utilized. Characters may be either green on a dark green background or orange on a dark orange background, depending on the state of the CSS pin. The in- vert pin can be used to display dark characters on a bright background. TABLE 2 — SUMMARY OF MAJOR MODES Major Mode 1 — Alpha Modes . Title Memory Display Elements Colors Title Memory Display Elements Colors Alphanumerics | 512x 8 9 5 2 Semigraphic 4 | 512x8 (internal) 8 3 3] 7 Secce . 8 | Element e 2 - ee0o e Alphanumerics| 512x8 2 8 2 Semigraphic 6 | 5128 4 (External) e 12 Element ee. |6©°8 eo @ @ Major Mode 2 — Graphics Modes Title Memory | Colors Comments 64 x 64 Color Graphic 1kx8 4 Matrix 64 x 64 Elements 128 x 64 Graphics” 1kx8 2 Matrix 128 Elements Wide by 128 x 64 Color Graphic 2kx8 4 64 Elements High 128 x 96 Graphics* 15kx8 2 Matrix 128 Elements Wide by 128 x 96 Color Graphic 3kx8 4 96 Elements High 128 x 192 Graphics* 3kx8 2 Matrix 128 Elements Wide by 128 x 192 Color Graphic 6kx8 4 192 Elements High 256 x 192 Graphics 6kx8 2 Matrix 256 Elements Wide by 192 Elements High *Graphics mode turns on or off each element. The color may be one of two. MOTOROLA Semiconductor Products Inc. 18 < & O = i O = SMOJ Ul ng 4% 44 sluawaja Aejdsig Z6{ y \ HAbufapoathniainal a evo SaudeID Fy \ \ \ x x Ju "JUGWI]I BINIDIG BUO SatyIDEeds 1q BU YDIUM UI WY Aejdsip jo saldq ry t 01 Jad ; uonnjosey pig jo wnwixew e sasn apow XIS SIIHdVYD NOILNIOS3Y euL siuawaje Aedsig 9sz uaa S@ 10709 EWES 0 SAAO] Ul ing Ad 03 €3 sjuewaj3 Aedsig Z61 evo t "JUBWI)S BIMIDIG BUO SaiIdeds $1:1qQ yO Wed aUO YSIYM UI WY Aejdsip Joo] 19 | | to | 00] ae) | | 9] [oe —p{Z mo1 39d SHYDEID 10j09 x 0 0 ' ' x x ‘ JO S21AQ ppIg jO WNUIxeW @ SasN apOW X1S SIIHdVYD HO10D UL siuawaja Ae\dsig BZi 43et5 S@ 10109 ewes SMOJ U} yg \ wuaw Al ta Ly Siuauraje AeidsiQ Z6t aug sowydes ; ; ; ; -Q}8 BINIDI GUO Salpi9ads 11q aUO YOIYM Ul Wiyy Aeidsip 40 SarAQ Z0€ a | by | ey Jen Inf $7 Jor | 4 Ole mo? 18d u2019 uonnjosey 0 jo wnhuwixew e Sasn apow 33HH1 SJIHdVHD NOLLN1OS3Y FUL sjuawaja Aedsig 9zi SE 10}09 ewes ; SMOS Ul a a] 03 €3 siuawaja Aejdsig 96 008 evo ' “weur | z x 0 ) \ x x pu 819 BINDId BUO Sa1yIdads SajAq JO W1ed BUD YIU UT WY Ae\dsip jo 09 to| 09 ]'9 09 J'9 J % 19 7 wiz mo) 19d ysei9 SAYdeID 10,;0D 0 SatAq 7/0 jO Whwixew e Sasn epow 94HH1 SOIHdVYD HOI) euL siuawaja Ae\dsig eZ1 $e 10j09 ewes SAAOJ Ul 4g \ 4 val Ly s\uawaye AeidsiQ 96 aup soyder9 x ; ; ' , “JUBWI]S B3NIDIG BUO SaljOads 11Q BUD YIIYM UL WYH Aejdsip yo salAq ‘a 4 | ey je a {a Is | y | UONNOSEY F Piz mol 19d veeID Se 10/09 WES 0 SEG| JO WNWixeW e Sasn apowW OMAL SOIHdVYD NOLLNIOS3Y O41 siuawaja Aedsig ZI sjuawaje Aejdsig »9 0 tz Fea 7e€ ou x "JUSWA}S B1NIDId BUO SatpIOads S}Iq JO ed BUO YOIUM UI Wy Aejdsip jo | 09 | 19 | Ue) |' 09 | 9 | | to| € [03 fa j ca [Fa so1 10d 91 soyderg 10909 | * 0 0 \ 0 x ‘ SaiAq ByOZ JO WNWixeW e Sasn BPOW OMI SIIHdDVYD YOT0D YL F —P{ syuawiaia Aedsig BZI 9 S€ 10}09 ewes Y SMO) Ut ng ng ' Siuawaja Aedsig £9 y9e1g 0 l ‘Se rae ioe | GveSiad uaa x t 0 x x t “WUSWa[a BIN}IId GUO Sayi9ads 1Iq aUO YdIUM Ul WY Aejdsip jo saiAq joys ey | ey | La) 9) | HILO e io I i i | | "1 | L mor 10d uaag eI } 0 0 pZ0t JO wNWixew e Sasn apoW JNO SIIHdVYO NOILNIOS3Y e841 qr) —>| € rf siuawaja Aedsiq ezt 10}03) x1 abueiog | t ejuabeywf OF t 7 uedAy { (9) Sjuawaya Ae\dsig 19 498 wnat OF O l ; ; { \ efoa | ta | za |e | paul if t x of} of o x xf Oof lof Oo tof Oofto J Of to ee ee Mol Jad angi ott 0 v "yUaWIIa BIMIDId BUD Sa1pads SIIQ oO Jed BUD YUM UI WH Aeidsip SIaWaa Aedsig $9 uaa weap a JO SajAq pZO1 JO WNWwixew e sasn apowW INO SIIHdVYD YO109 8UL 10109 | of 19 a6ueio F 4 t t ejuabew F OF t 1 wwawel3 { odin [fr ued Ft] 0 au ] ° SMo1 u! Bra} of 0 \ € A ac ; , ; [° >] Aa] | 1 Sjuawaja Aesdsig Gp cou V4 , \ x x x x t 0 ‘sq Buluiewes Org tay a | as el sd a ir by MO) Jad e18 ana y oy t ‘ 0 OM) ay) AQ PauUIUalEp $1 10j09 ‘syed jenba xs Olu! papiaip st aj6ue) { siuawaja Aedsig $9 MOU®A F Lg O t -038) JOp anjamy Aq 1Op 1YyBia au “Seduasaj} Ip Buimoyjo) By) YA BpOoU owes va f OF O if UNOA DIHdUVHOIWAS OU) 03 sejWIS SI BPOW XIS DIHd WHOIS OUL weg | Xa x 0 1010) § ODF 13 x7 auegog ti tg t ejuabe=:w F OF | t { luawa}3 ueAQ t 0 ry t enxe avo} ort ES sono wah ofotids alr, dul “Sq aaiyr AQ pauiMAeP St siuawaja Ae\dsig z€ oeig ss 3 3 x x x x x 3 iT o syed payeuiuny)! 40 20109 auy “SNQ e1ep OGA Bu} UO 11q Buipuodsa2i09 a y | a) a) | 05 | 19 | 40) | zy bey |e 4 moval itolo ' e AQ pauiuuaiap si ied Ydea JO BoUeUIWIN] YY “SYIeEd yeNbe sNncdy OW) y MO) Jad vain fof of o \ Paplaip si (SIOp Bram) Aq S1OP IyBia) ajGueIdes & YdIYA Ul 10;e:9Ua6 - siuawaya Ae\dsig 99 weal xt xix! o , S24des6 asiN0d,, j2uJBjJU! UC SBSN BPOW YNOI SIINDVHODIWGS PUL aiid pea 10109 | oof 19h zo @ e ¢ SsayseseyD) WOISND ocee jO MOY 8UO ° . e D4 ee e Zi pade|dsip eq Aeus $333 SMO) UI abueio 42e19 \ ee e0@ 6 SJ9IDBIEYD,, JOP Z| XQ IUBIA}PIP 9GZ 02 dN YM Sjes OQUUAS AYUdeIB s1a12eey7) 91 x9e1a 40819 abue9 0 { JO SIUC) JBIIEIEYD WOISND ‘SNYL “28]1UNDD MO! B Se |}aM Se sOje/0U06 3 M0) 19d uaai9 481g \ x x x t 0 0 19)9@78YD jeusa}X9 UE SAaSN BPOW WNYILX3 DIVIANNNVHdIV 8UL i . suaoeieyd Ze e168 yoeg uaai9 0 0 souawnueudy jeusaiu} ; apod HlOSV enxa {ANI 10 SSD : ; ‘OWS ‘LW ‘ZWD ‘LNI/LX3 “W/S ‘W/9) suid apou ay) 0) palseu ammeter SE camenes Booes Zt -uoo Ayeuiaixe oq Aew eseyi pue aay SiIq OMY SeALa] BPO? [1IDSV Pf 5 WQ XIS BY “C< = >NEBLOGVEZIO’ —' +. 1.8%S4.1 dS ffINI *. ‘ siete) ut yoelg ® eR burr 4 \ ZAXMANLSHOdONWINCIHDSIGIGVO’ —s_ : Suayoeveyo , nae we ne x x x 0 of 0 JOp uaaas AQ Op eAy Buimoyoy ay) suleju0d YoIy) s0)es0U06 \ -yr" my MAO} 3 xe18 ne +3] a 18 t 0 JOOEIYS jEUIO\U!I Ue SESN BPOW WYNYIINI DIUINNNVHdI PL 8 Srayoe1ey CE 49e18 D4 0 . sna eve Hag epoyw Avdsig sepiog $=spunoiByegs 40109 seDGIeYD FANIT SSD FOWD | IWS § ZWO§ LNI/LDG FY/SI V/9 UGUWO: n —_ “ 9 9 #180 D0A ueeiss AL 10}09) BUld DOA SIJGOW DQA dO NOildI¥OS30 Galivlad — € 31aVL 9 Semiconductor Products Inc. 1 (AA) MOTOROLA MC6847¢eMC6847Y FIGURE 19 — ALPHANUMERIC MODE (INTERNAL) 512 Characters (32 x 16) Typical Character COOCGOCE 00000000 Se eee s ee | @ — Dot Off $808 ose Sogccsec Ober Lit SEISSES SOO CO800088 00066600 OOHOGOdOO + $+++4 Inverted Normal Black Character Orange or Green Background (Selectable) Character Source: Internal — 6 Bit ASCII Generator ROM On Chip or User Definable External — Users ROM Black Background Orange or Green Character (Selectable) The two limited graphic modes are Semigraphics 4 and Semigraphics 6. In Semigraphics 4, the 8x 12 dot character block is divided into four pixels (each pixel is four half-clocks by six scan lines). The four low-order bits (DDO-DD3) of each incoming byte of data select one of sixteen possible illumina- tion patterns while the next three bits (DD4-DD6) determine the color of the illuminated elements. The most significant bit is unused. Figure 21 shows the color and pattern selec- tions. In Semigraphics 6 the 8x 12 dot character block is divided into six pixels, each four half-clocks by four scan lines. The six low-order bits of each byte of incoming data select one of 64 possible illumination patterns while the CSS input and the high-order data bits (DD6-DD7) determine the color of the illuminated elements. The display window in major mode 2 (full graphics) has a less rigorous format than in major mode 1. The display elements vary from one scan line to three scan lines in height. The length of the display element is either eight or sixteen half-periods wide. Each display element is divided in- to four or eight pixels. The former corresponds to a full color mode while the latter a restricted color mode, like the semigraphics modes, represents illumination data. When it is high the pixel is illuminated with the color chosen by the col- or set select (CSS) pin. When it is low the pixel is black. In the full color modes, pairs of data bits choose one of four colors in one of two color sets defined by the CSS pin. Depending on the state of the CSS pin, the area outside the display window is either green or buff. The display formats and color selection for this major mode are summarized in Figure 19. THE 64x64 COLOR GRAPHICS ONE (CG1) MODE — The 64 x 64 color graphics mode generates a display matrix of 64 elements wide by 64 elements high. Each element may be one of four colors. A 1k x8 display memory is required. The display RAM is accessed 16 times per horizontal line. Each pixel equals four half-clocks by three scan lines. THE 128x64 RESOLUTION GRAPHICS ONE (RG1) MODE — The 128x 64 graphics mode generates a matrix 128 elements wide by 64 elements high. Each element may be either ON or OFF. However, the entire display may be one of two colors, selected by using the color set select pin. A 1k x8 display memory is required. The display RAM ts ac- cessed 16 times per horizontal line. Each pixel equals two half-clocks by three scan lines. MOTOROLA Semiconductor Products Inc. 20 FIGURE 20 — AVAILABLE ALPHANUMERICS MD4=INV = D4 MD7=AS=D7 © =Inverted Character — Illuminated Background, Dark Character _O .1.2_3 4.5 _6_.7_8_9_A_B_C_D_E_F oO @ A B C 0 E€ F GH t Js K & MN O 1. P Q R TUVW RX Y Z | 2_ *# $ % & () + _ 3. 0 1 2 3 4 5 6 7 8 9 : ; = ? ~ @©ONQOGOGGQDDDAOGCDOO - @00GE0000000000089 -§ @©9@0000000006006060 7 @©90GOOQDGOGOOCGEC6EDO THE 128 x 64 COLOR GRAPHICS TWO (CG2) MODE — The 128 x 64 color graphics mode generates a display matrix 128 elements wide by 64 elements high. Each element may be one of four colors. A 2k x 8 display memory is required. The display RAM is accessed 32 times per horizontal line. Each pixel equals two half-clocks by three scan lines. THE 128x96 RESOLUTION GRAPHICS TWO (RG2) MODE — The 128x 96 graphics mode generates a display matrix 128 elements wide by 96 elements high. Each element may be either ON or OFF. However, the entire display may be one of two colors selected by using the color set select pin: A 1.5k x 8 display memory is required. The display RAM is accessed 16 times per horizontal line. Each pixel equals two half-clocks by two scan lines. THE 128 x 96 COLOR GRAPHICS THREE (CG3) MODE — The 128x 96 color graphics mode generates a display 128 elements wide by 96 elements high. Each element may be one of four colors. A 3k x 8 display memory is required. The display RAM is accessed 32 times per horizontal line. Each pixel equals two half-clocks by two scan lines. THE 128 x 192 RESOLUTION GRAPHICS THREE (RG3) MODE — The 128x 192 graphics mode generates a display matrix 128 elements wide by 192 elements high. Each ele- ment may be either ON or OFF, but the ON element may be one of two colors selected with the color set select pin. A 3k x 8 display memory is required. The display RAM is ac- cessed 16 times per horizontal line. Each pixel equals two half-clocks by one scan line. THE 128 x 192 COLOR GRAPHICS SIX (CG6) MODE — The 128 x 192 color graphics mode generates a display 128 elements wide by 192 elements high. Each element may be one of four colors. A 6k x 8 display memory is required. The display RAM is accessed 32 times per horizontal line. Each pixel equals two half-clocks by one scan line. THE 256x192 RESOLUTION GRAPHICS SIX (RG6) MODE — The 256 x 193 graphics mode generates a display 256 elements wide by 192 elements high. Each element may be either ON or OFF, but the ON element may be one of two colors selected with the color set select pin. A 6k x 8 display memory is required. The display RAM is accessed 32 times per horizontal line. Each pixel equals one half-clock by one scan line. MC6847¢MC6847Y FIGURE 21 — SEMIGRAPHIC MODE ENCODING (a) Data and Display Formats 3 ly | D7 | D6 | Ds | D4 | Ds | D2 | D1 | Do | D D 6L <— Chroma >>| Luma — > 1 0 Semigraphics 4 A 4 (PWcLK) D5 D4 Css | D7 | Dg | Ds | D4 | Dg | D2 | Dr | Do | D3 D5 YY x— Chroma Le Luma > D, Do | 4L Semigraphics 6 (b) Color Selection 4(PWCLK) Luma SG4 SG6 Color DN D6 Ds D4 | Css | D7 D6 0 Xx Xx Xx Xx Xx X Black 1 0 0 0 0 0 0 Green 1 0 0 1 @) 0 1 Yellow 1 0 1 0 @) 1 0 Blue 1 0 1 1 0 1 1 Red 1 1 0 0 1 0 0 Buff 1 1 0 1 1 0 1 Cyan 1 1 1 0 1 1 0 Magenta 1 1 1 1 1 1 1 Orange FIGURE 22 — GRAPHIC MODE ENCODING (a) Data Format (b) Display Format y YV 3L CGI 3L CG2 [07 De] Ds D4] D3 02] D1 Do |Color Graphic + 7 - — 4(T/2) >| « 2 (7/2) so la D D> | D D Resolution 3L RG1 L | | | | Zt CG3 | D7 | D6 | Ds | 4 | 03 | 2 | 1 | 0 Color Graphic I Luma >| 2 (T/2) > my 2(1/2) >| be _ >| Y a a (| J] | 7 J ff jare C++ SH iiec5o 2(T/2) > <* 2 (7/2) - eo oo thes a 1 apace 2(T/2) >| we * 17/2 bs (c) Color Selection Long Element Modes Short Element Modes lution CSS Border oa Mode Color Mode DN Color DN+1 DN Color 0 Green 0 Black 0 0 Green 0 Green 1 Green 0 1 Yellow 0 Green 1 Green 1 0 Blue 0 Green 1 Green 1 1 Red 1 Buff 0 Black 0 0 Buff 1 Buff 1 Buff @) 1 Cyan 1 Buff 1 Buff 1 0 Magenta 1 Buff 1 Buff 1 1 Orange MOTOROLA Semiconductor Products Inc. 21 MC6847eMC6847Y TYPICAL SYSTEM IMPLEMENTATION The block diagram in Figure 23 shows how the VDG is related to other functional blocks in a typical system (non-6883). A negative row preset signal (RP) generated by the VDG initializes the row scan counter for the external character generator once every twelve scan lines, while the negative horizontal sync (HS) acts as clock to this counter. The negative field sync (FS) generates an interrupt to the MPU, signifying that the display memory can be updated without interference with the VDG display function. This signal must not be confused with the system vertical sync signal. Field sync is activated by the end of the vertical display window and deactivated by the trailing edge of ver- tical sync. This gives the MPU a total of thirty-two scan lines or 2.03 ms to update the display memory. The MPU acknowledges the interrupt request from the VDG by bring- ing the negative memory select input (MS) to the VDG low. This puts the address bus output from the VDG into high- impedance state, thus relinquishing bus control to the MPU. The timing relationship of horizontal sync, row preset, and field sync are shown in Figures 7, 8, and 13. The display memory is an element-by-element map of the display window on the screen. The VDG addresses the display memory storage locations in succession and translates their contents into luminance and chrominance levels. The frequency of address update is dependent on the length of the display element. Recall that display elements in major mode 1 are four periods and major mode 2 are either four or eight periods of the master clock. Data from the display memory is latched on every address transition. Hence, the data for the first display element must be stable four or eight periods before the horizontal display window depending on the display mode selected. This timing require- ment is illustrated in Figure 6. Examination of Figures 21 and 22 reveal that all display elements within major mode 1 are similar while those within major mode 2 are largely dissimilar. Therefore, mode switch- ing between alphanumeric modes and semigraphic modes can be carried out freely. Care must be taken, however, when performing mode switching in major mode 2. The only compatible modes are between CG1 and RG1, and between CG6 and RG6. Minor mode switching within the same major mode in a given element row can be achieved as long as It is between compatible modes. It should be quite apparent that major mode switching on an element-by-element basis is im- practical. It can be achieved, however, at the expense of added component count. The element formats in the VDG lend themselves to major mode switching between element MOTOROLA Semiconductor Products Inc. 22 rows. The presence of row preset in major mode 1 serves as a flag for the beginning of a new element row. Detection of this signal can initiate a major mode switch from 1 to 2. Display memory size is a function of the display density. Quite often a graphic display contains shapes that are several times larger than that of the display elements in the VDG. This is particularly true of certain video games. Much of the display consists of a fixed background. The vertical size of a display element can be doubled or quadrupled by simply ig- noring the lowest order or the first two low order vertical ad- dresses, respectively, from the VDG. Reduction of address lines naturally leads to reduction in memory size. Another method of memory reduction is to store objects or object fragments in ROM and store their display addresses in the RAM portion of display memory. Here, the larger the object fragment, the greater the memory saving. ASSOCIATED DEVICES MC6883 — SYNCHRONOUS ADDRESS MULTIPLEXER (SAM) This device, a linear bipolar companion to the MC6800 or MC6809E (external clock inputs), is primarily a VDG transparent-access controller. It allows the microprocessor to load and store to VDG display memory (‘screen RAM") without waiting for a blank screen interval. Figure 1 shows a typical system using the SAM and the MC6809E. The in- herent interleaved direct memory accesses (IDMA) which occur, continuously keep the VDG updated with the proper data (independently of mode), as well as keeping the dynamic memory (used as system memory with the MC6833) refreshed. This is done through a IDMA process as well, dur- ing the time the VDG does not need display data (horizontal and vertical sync times). In addition to being a transparent memory access and dynamic memory controller, the SAM also functions as an external clock generator for the MC6800/6809E (slight addi- tional circuitry is required for the MC6800). MC1372/1373 CHROMA/RF MODULATOR The MC1372 is a chrominance phase-shift modulator with built in RF up-converter. The part may be used without the RF modulator for chroma only, or the RF oscillator may be defeated and composite chrominance and luminance can be obtained. The MC1373 is an RF modulator only (similar to the sec- ond half of the MC1372) and can be used to up-modulate separate luma and chroma signals at the receiver for high quality video reception. FIGURE 23 — TYPICAL VDG SYSTEM MC6846 Riot > Game Paddles 7. f RA 8 A A A > 16 12 A M68XX Desoder 2 ~ MPU Latch ; P _ : v t> b— A D 4 p >1R/W 1RO b- | NS CLK / Display A FS Mode WS Memory CLK Control To TV Set > A Y 149 Vestigal < R-Y — \4C6847 SB Filter MC1372 _ B-Y VDG CHB _ ff D ‘8 RF _— (] Tank INT/EXT Db 3.58 MHz Hs ES RP A/S—2a > XTAL | A External Character CLK PE CLR / ~|ROW Generator 5 / / A / 4 ROM 8 Row Counter p7e Add 8 APPENDIX A FIGURE 24 — PROM MARKING CUSTOM MC6847 ORDERING INFORMATION NS a a The following information is required when ordering a custom MCU. This information may be transmitted to Motorola in the following media: PROM(s) MCM2716s or MCM2708s MDOS disk file To Initiate a ROM pattern for the MCU it is necessary to first contact your local field service office, local sales person, or your local Motorola representative. PROMs — The MCM2708 or MCM2716 type PROMs, pro- grammed with the customer program (positive logic sense for address and data), may be submitted for pattern genera- tion. The PROMs must be clearly marked to indicate which PROM corresponds to which address space (QO00-3FF HEX), (400-7FF) or (O00-7FF). See Figure 24 for recommended marking procedure. After the PROM(s) are marked they should be placed in conductive IC carriers and securely packed. Do not use styrofoam. 23 MOTOROLA Semiconductor Products Inc. 000 400 xxx = Customer ID VERIFICATION MEDIA All original pattern media (PROMs or Floppy Disk) are filed for contractual purposes and are not returned. A computer listing of the ROM code will be generated and returned along with a listing verification form. The listing should be thoroughly checked and the verification form completed, signed, and returned to Motorola. The signed verification form constitutes the contractual agreement for creation of the customer mask. If desired, Motorola will program a blank -~ MC6847eMC6847Y 2716 EPROM (supplied by the customer) from the data file used to create the Custom mask to aid in the verification pro- cess. ROM VERIFICATION UNITS Ten MC6847s containing the customer's ROM pattern will be sent for program verification. These units will have been made using the custom mask but are for the purpose of ROM verification only. For expediency they are usually un- marked, packaged in ceramic, and tested only at room temperature and 5 volts. These RVUs are included in the mask charge and are not production parts. FLEXIBLE DISKS The disk media submitted must be single-sided, single- density, 8-inch, MDOS compatible floppies. The customer must write the binary file name and company name on the disk with a felt-tip pen. The floppies are not to be returned by Motorola as they are used for archival storage. The minimum MDOS system files must be on the disk as well as the ab- solute binary object file (filename.LO type of file). An object file made from a memory dump using the ROLLOUT com- mand is also admissable. Consider submitting a source listing as well as the following files: filename.LX (EXOR- ciser® loadable format) and filename .SA (ASCII Source Code). These files will of course be kept confidential and are used 1) to speed up the process in house if any problems arise, and 2) to speed up our customer to factory interface if a user finds any software errors and needs assistance quickly from the factory representatives. MDOS is Motorola's Disk Operating System available on development systems such as EXORcisers, or EXORsets, etc. FIGURE A-2 Customer Name Address City Phone ( ) State _ Zip Contact Ms/Mr Customer Part Number Pattern Media 2/708 PROM 2716 PROM MDOS Disk (Note 2) Other (NOTE: Other media requires prior factory approval) Signature Title © Registered trademark of Motorola Inc. EXORset is a trademark of Motorola Inc. (AA) MOTOROLA Semiconductor Products Inc. 24 MC6847eMC6847Y OUTLINE DIMENSIONS 1. DIMENSION[-A-]1S DATUM. 2. POSITIONAL TOLERANCE FOR LEADS: LP 10.25 (0.010) @TIA®! 3. IS SEATING PLANE. 4. DIMENSION “L” TO CENTER OF LEADS WHEN FORMED PARALLEL. 5. DIMENSIONING AND TOLERANCING PER ANSI Y14.5, 1973. P SUFFIX PLASTIC PACKAGE CASE 711-03 MILLIMETERS} INCHES DIM) MIN | MAX | MIN | MAX aAgnnannnnaAnAAnRnNnAAARAAAA A | 51.69 | 52.45 | 2.035 | 2.065 “ " B | 13.72 | 14.22 | 0.540 | 0.560 | c | 3.94 { 5.08 | 0.155 | 0.200 P 8 D | 0.36 | 0.56 | 0.014 | 0.022 F | 1.02]! 1.52 | 0.040! 0.060 O 0 G 2.54 BSC 0.100 BSC r A oe ay J 10.20 | 0.38 | 0.008 | 0.015 oe K | 292 | 343] 0.115{ 0.135 | (Ni of 1 L 15.24 BSC 0.600 BSC | D l | wT a Joc" nw | 0.51 | 1.02 | 0.020 | 0.040 We ge Oe by SEATING PLANE NOTES: 1. POSITIONAL TOLERANCE OF LEADS (0D), SHALL BE WITHIN 0.25 mm (0.010) AT MAXIMUM MATERIAL CONDITION, IN RELATION TO SEATING PLANE AND EACH OTHER. 2. DIMENSION L TO CENTER OF LEADS WHEN FORMED PARALLEL. 3. DIMENSION B DOES NOT INCLUDE MOLD FLASH. L SUFFIX CERAMIC PACKAGE CASE 715-04 MILLIMETERS| INCHES pim! min [MAX | MIN | MAX A | 50.29 (51.31 | 1.9801 2.020 os on B | 1463 | 15.49 | 0.576 | 0.610 mi C | 3.05 | 4.32 |0.120/ 0.170 B Dp | 038 | 0.53 | 0.075 | 0.021 | F | 0.76 | 1.40 | 0.0301 0.055 1° 10 G 254 BSC 0.100 BSC — —~ J | 0.20 | 0.33 | 0.008 [ 0.013 [A] - moe -—_t— K [2.54 | 4.19 | 0.100 | 0.165 _ L {| 14.99 (15.65 | 0.590 | 0.616 al i M _ 19° — 109 ra = —p—i_c _ N | 1.02 [ 1.52 | 0.040] 0.050 H—-! bi (-T-J/J i K \ . MOTOROLA Semiconductor Products Inc. 25 MC6847eMC6847Y OUTLINE DIMENSIONS (CONTINUED) S SUFFIX CERDIP PACKAGE CASE 734-03 MILLIMETERS INCHES Dim; MIN | MAX | MIN | MAX A | 51.31 [53.24 | 2.020 | 2.096 B | 12.70 [15.49 | 0.500 | 0.610 D | 0.38 | 0.56} 0.015 | 0.022 F | 1.27 | 1.65] 0.050 | 0.065 B G 2.54 BSC 0.100 BSC D) J | 0.20 | 0.301 0.008 | 0.012 K | 3.18 | 4.06 | 0.125 | 0.160 L 15.24 BSC 0.600 BSC 1 20 |M | 5° | 150 50 | 150 re ae eee ee N | 0.51 | 1.27 | 0.020 | 0.050 A L al 1. DIMENSION-A-IS DATUM. ™ } 2. POSITIONAL TOLERANCE f | j FOR LEADS: ; | L aj | # | 00.25 (0.010) @ | T/A @ | tele pF —l-o [Lew 3. IS SEATING PLANE. 4. DIMENSION LTO CENTER OF LEADS WHEN FORMED PARALLEL. 5. DIMENSION AANDB INCLUDES MENISCUS. ——__—- (AA) MOTOROLA Semiconductor Products Inc. This page intentionally left blank. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters can and do vary in different applications. All operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and @) are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer. Literature Distribution Centers: USA: Motorola Literature Distribution; P.O. Box 20912; Phoenix, Arizona 85036. EUROPE: Motorola Ltd.; European Literature Centre; 88 Tanners Drive, Blakelands, Milton Keynes, MK14 5BP, England. JAPAN: Nippon Motorola Ltd.; 4-32-1, Nishi-Gotanda, Shinagawa-ku, Tokyo 141, Japan. ASIA PACIFIC: Motorola Semiconductors H.K. Ltd.; Silicon Harbour Center, No. 2 Dai King Street, Tai Po Industrial Estate, Tai Po, N.T., Hong Kong. | (MA) MOTOROLA A11724-5 PRINTED IN USA(1994) MPS/POD MC6847/D