(AA) MOTOROLA SYNCHRONOUS ADDRESS MULTIPLEXER The SN74LS783/MC6883 and SN74LS785 bring together the MC68039E (MPU), the MC6847 {Color Video Display Generator) and dynamic RAM to form a highly effective, compact and cost effec- tive computer and display system. The SN74LS783/MC6883 is designed to support 4K x 1, 16K x 1 and 64K x 1 (128 column refresh) dynamic RAMs. The SN74LS785 has been modified to support the above listed prod- ucts as well as 16K x 4 and 64K x 1 {256 colurnn refresh) dynamic RAMs. A further enhancement allows the LS785 to support low power dynamic ROMs {such as MCM68364} without additional logic. MC6809E, MC6800, MC6801E, MC68000 and MC6847 (VDG) Compatible Transparent MPU/VDG/Refresh RAM size — 4K, 8K, 16K, 32K or 64K Bytes (Dynamic or Static) Addressing Range — 96K Bytes Single Crystal Provides All Timing Register Programmable: VDG Addressing Modes VDG Offset (0 to 64K) RAM Size Page Switch MPU Rate (Crystal = 16 or = 8) MPU Rate {Address Dependent or Independent} System “Device Selects'’ Decoded ‘On Chip’ Timing is Optimized for Standard Dynamic RAMs +5.0 V Only Operation Easy Synchronization of Multiple SAM Systems DMA Mode TYPICAL SYSTEM BLOCK DIAGRAM Device Selects SN74LS138 $0-S2 — Clk SN74LS783/ p< DAO < HS MC6847 or =) SN74LS785 |=14 MHz TV Display Section is Optional RAW =a . Ew sam = [=| Data }p0-pp7 [e) are Fae ROMs 20-27 TAS ee and MC6809E ] 36 6 (J Oseout 273 35 (RAS1) 7 CAVCik ze 34 8 [-)DA0 Z5(7J 33 9 CHS Z4[) 32 10 CJ] WE z3f5 31 11 CICAS 22[ 30 12 (-) RASO Z1 29 13040 zof 28 14 COE Sof 27 15 CI R/W $1[- 26 16 CA0 S20 25 17 Cal ATI 24 18 CIA2 AG) 23 19 CI A3 A5-1 22 20 (1 Gnd AAT 21 FAST AND LS TTL DATA 5-323 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 MAXIMUM RATINGS (Ta = 25°C unless otherwise noted.) Rating Symbol Value Unit Power Supply Voltage Vec -0.5to +7.0 Vde Input Voltage {Except Osci,) VI —0.5 to 16 Vde Input Current (Except Osc),,) ly —30 to +5.0 mA Output Voltage Vo ~0.5to +7.0 Vde Operating Ambient Temperature Range Ta Oto +70 °c Storage Temperature Range Tstg —65 10 +150 °c Input Voltage Osci,, ViOscip, | — 0.5 to Vec Vde input Current Oscjp, NOsci, |—0.5 to +5.0 mA GUARANTEED OPERATING RANGES Parameter Symbol Min Typ Max Unit Supply Voltage Vcc 4.75 5.0 5.25 v Operating Ambient Temperature Range Ta 0 25 75 °c Output Current High 1OH mA RASO, RAST, CAS, WE _— _ - 1.0 All Other Outputs _ — ~0.2 Output Current Low IOL mA RASO, RAST, CAS, WE _— _ 8.0 VClk _ _ 03 All Other Outputs — _ 4.0 DC CHARACTERISTICS (Unless otherwise noted specifications apply over recommended power supply and temperature ranges.) Characteristic Symbol Min Typ Max Units Input Voltage — High Logic State ViH 2.0 _— _ Vv input Voltage — Low Logic State VIL _ _ 0.8 Vv Input Ciamp Voltage ViK _ _ -—1.5 v (Vcc = Min, lin = —18 MA) All Inputs Except Oscip, Input Current — High Logic State at Max Input Voltage Tl pA (Vcc = Max, Vin = 5.25 V) VCik Input _ _ 200 (Vcc = Max, Vin = 5.25 V) DAO Input _ _ 100 Vcc = Max, Vin = 5.25 V Osci, = Grd) Oscoyt Input — — 250 (Vcc = Max, Vip = 7.0 V) All Other inputs Except Oscjpy _— _ 100 Input Current High Logic State All Inputs Except VCik, WH pA (Vcc = Max, Vin = 2.7 V) DAO Oscjn. Oscout _ _ 20 Input Current — Low Logic State Nie mA (Vcc = Max, Vin = 6.4 ¥) DAO Input _ _ —1.2 (Vcc = Max, Vin = 0.4 V) VCIk Input _ ~30 ~- 60 (Vec = Max, Vin = 0.4 V, Oscip = Gnd) Oscoyt Input _ oa -8 (Vcc = Max, Vin = 0.4 V) All Other Inputs Except Osc), _ _ -.4 Output Voltage — High Logic State _ Vv (Vcc = Min. loH = —1.0 mA) RASO, RAS1, CAS, WE VOHIC) 3.0 — — (Vcc = Min. loH = -—9.2 mA) E,Q VOH(E) |¥cc — 9.75 — — (Vec = Min, low = —0.2 mA) All Other Outputs VOH 2.7 — — Output Voltage — Low Logic State_ _ v (Vec = Min, loL = 8.0 mA) RASO, RAS1, CAS, WE VoLic} _ _ 0.5 (Vcc = Min, lo, = 4.0 mA} E, Q Outputs VOL(E) _ _ 0.5 (Vcc = Min, lo, = 0.8 mA) VClk Output VoLt(v) _ _ 0.6 (Vec = Min, lo, = 4.0 mA) All Other Outputs VoL _ _ 0.5 Power Supply Current lec _ 180 230 mA Output Short-Circuit Current los 30 _ 225 mA FAST AND LS TTL DATA 5- 324 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 @ SN74LS785 AC CHARACTERISTICS (4.75 V] a3 19 £| & | a2 18 Al 17 AQ 16 Least Significant Bit. R/W 15 MPU READ or WRITE. This signal comes directly from the MPU and is used to enable writing to the SAM control register, dynamic RAM {via WE), and to enable device select #0. Oscin 5 Apply 14.31818* MHz crystal and 2.5—-30 pF trimmer to ground. See page 12. DAG 8 Display Address DAO. The primary function of this pin is to input the least significant bit of a 16-bit video display address. The more significant 15-bits are outputs from an internal 15-bit counter which is clocked by DAO. The secondary function of this pin is to indirectly input the o re) logic level of the VDG "FS" (field synchronization pulse) for vertical video address updating. a Et} HS 9 Horizontal Synchronization. The primary function of this pin is to detect the falling edge of > 3 VDG “HS” pulse in order to initiate eight dynamic RAM refresh cycles. The secondary function is to reset up to 4 least significant bits of the internal video address counter. . | VClk 7 VDG Clock. The primary function of this pin is to output a 3.579545 MHz square wave** to the VDG “Clk” pin. The secondary function resets the SAM when this VCIk pin is pulled to logic “0” tevel, acting as an input. Oscout 6 Apply 1.5 kO resistor to 14.31818* MHz crystal and 33 pF capacitor to ground. See page 12. 32 25 Most Significant Bit (Device Select Bits). The binary value of S2, S1, SO selects one of eight 2 £ $1 26 “chunks” of MPU address space (numbers 0 through 7). Varying in length, these “chunks” Fa 4 provide efficient memory mapping for ROMs, RAMs, Input/Output devices, and MPU Vectors. Ana (Requires 74LS 138-type demultiplexer). so 27 Least Significant Bit. w| E 14 E (Enable Clock} “’E’ and “Q" are 90° out of phase and are both used as MPU clocks for the Zz 3 MC6S09E. For the MC6800 and MC6801E, only “*E” is used. "E’’ is also used for many MC6800 w/z Ss peripheral chips. = Q 13 Q (Quadrature Clock). $s Z7t 35 Most Significant Bit = Z6t 34 First, the least significant address bits from the MPU or ‘‘VDG" are presented to 20-25 (4K f=} @| Z5t 33 x 1 RAMs} or 20-26 (16K x 1 RAMs) or Z0-2Z7 (64K x 1 RAMs). Next, the most significant = s Z4t 32 address bits from the MPU or VDG" are presented to Z0-Z5 (4K x 1 RAMs) or 20-26 &&wa) Z3t 31 (16K x 1 RAMs) of ZO -27 (64K x 1 RAMs). Note that for 4K x 1 and 16K x 1 RAMs, Z7 (Pin | Zot 30 35) is not needed for address information. Therefore, Pin 35 is used for a second row Zit 29 address select which is labeled (RAS1). zot 28 Least Significant Bit. RASIt 35 Row Address Strobe Gne. This pulse strobes the least significant 6,7 or 8 address bits into _ dynamic RAMs in Bank #1, S £ RASOTtT 12 Row Address Strobe Zero. This pulse strobes the least significant 6,7 or 8 address bits into a 5} dynamic RAMs in Bank #0. | CAST 11 Column Address Strobe. This pulse strobes the most significant 6,7 or 8 address bits into dynamic RAMs. WEt 10 Write Enable. When low, this pulse enables the MPU to write into dynamic RAM. *14.31818 MHz is 4 times 3.579545 MHz television color subcarrier. Other frequencies may be used. (See page 12.) **When VDG and SAM are not yet synchronized the “square wave” will stretch (see page 10.) t Due to fast transitions, ferrite beads in series with these outputs may be necessary te avoid high frequency (~ 60 MHz) resonances. FAST AND LS TTL DATA 5-326 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 ges: $1 ssag0id UOBZINOAYIUAS O43 S8S]UN ,!"OoSQ,, JO ley) SOWW)) NOY “)yBia 30 ys] 24) 0) | O28G,, 5o sayA2 g 'ABaIyio@ds) avayanasa Pauyap ase “gt 01 ¢1 Buynp pauyapun Buk SINGING F BY) BSIAISYIO “B|DAI AOA Adi SNO(AgId @Yl Ud (fF 10 ZL $1 WOW }) Zt 0) £1 Buunp (2=5) HDIH 8INdINO § sul seq10) Ga7S7 Au) ‘SINOH DHWeUA Woddns OL : 7,2 ‘QL yo spucsasoues |HAHO!P) jnouiias ast ABUL ¥/DA ‘OSPY ‘18; WOOUL $) passeaoe ow A, JO pouad ayy °4 S8}0N yim payew siuied Bulut, DIHO, co iSO, aM bet 1032; 1M TOP, Se] fe 1 1 = TOMO {ONO AR ; jg oaks A oe 193-101P, a | (HO TO}P1-—a — nO, PTOIPA 1 ; (OHO, Ne % at 13104 ‘ OSWH (108-10)P) + |+— —w] = (HOH TO1Py (HO, 7 (S@pPOW AOL BMP) % sf Wt. is cap, | |e 118-101) med bo Wa Wa, Wy Z AY ‘ 1apGu wed wey £7 OSE) TRA IOo) SSaugg" AdW NVA (oul sgauaay nd ciiwA "92-02 be— iHy-10)P) Nee e101) | 1 leg He 101F; HOA HOA Lb #1ON #85) AIDA Vay Pals ae] iA HOI: HA. Git ove j—e— S187] we] fae sae} (0-701, IQ: 103 Soret Wad Oe, Lire 4 eG 75 1S 0S (SvIPlpe fe] Hy eS ‘ —t TT “ ME SEY-OW HIA Hl, / 4) 910), touvins, } 1 1310, {atHOn 8 (2/10, 110-101P) Se] be (HO 101%) | je thn (3ino 3 pae— (13° 10IP) (M9 10)P) | ——— on d z ae at ae Le o we Buie] Ul SiNOY 8908/3949 --- . “ALLA OL ACT AED Pe ACT KF 1Cas9 I 31049 AHOWSW INO 1 {HO O)Py eH] J (10-HO)Py NMONDNG FLVIS = CALLIANW3d FONVHO ANY Lusso HOLT WOHd JONWHD TUM HOL1WOWS3DNWHO 277 701 H WOUs JDNYHO THM TOLH WONIIONVHD ~~ SQy_ anva 3a TUM OWA 38 1SN1 “nde “MdNt SNOILINISIT 1OBWAS tl FIQAD ANIHOVA 3NO pe MOS = JLVY NdlA 40} SIHOI3AVM ONAL — 2 aYNDI FAST AND LS TTL DATA 5-327 Manufacturer 1ve ighted By Its Respecti Material Copyr This SN74LS783/MC6883 @ SN74LS785 eWWn S14) BuLinp sng sseappe 108580010 BY) WO. Popovep a1e sindino '§ ay) BS muayi “BAD ALO WOW Fig SNOIAGIG B41 UG (¢ 10 'Z ‘|’ S} pesseose 81 WOd }! y+ OL Be pue 71-0) 0 Buuinp (¢ °°" 5) HDIH snd g BY) 899/04 Gaz BUR ‘SOY IWeUAQ uoddns Oo, : “gO UE "12 ‘OL yo spucsasoueu [HA 'HOIP) uiyya oon Ae 4154 ‘ospy “ere duicoU] $) 889020 LOHEZ/UOIYIUAS ay] ssa]UN ,IPO>sH,, Jo IWY? SBLUIL JNO) 8) HIDA,, JO POWEd BY | “BEEJPPE di PUOIOS @ 40) PASN Si SSG/PPE OA & 40} PAEN SR MUEYIO 109 SWI OY) “BpOw 2781 MAW I8Bf,, 84} U} na a 1 sa]0N “YSU ay 40 Ya] 441 0) IMOo8,, 0 Say543 g “ANEayiseds) sreynag|s PaUeD aR ,,.,, YN Peysew ejuIod Buu, a ia if a 3M M-10)F} = a { ' (HO ney —t- TIGA. Age ; * . $09 119-1010) 143-1010, a>] [ae toma, [Lehn eas | + * L104 as 7 re PPE (104-1010. af (HOU-101P; wl sve - : ianoat {D1HOn, = [sapow NGL F Xb) TTT ad LY ruvaone] 1HpSTON) el as Wa -, aa 10, [apow ypg ui jl 42 95/8) i! TNA OJ SSaudGy NAW OWA : TmOu) Ssauday Naw SION (MOM) SSadday Naw OuwA| ~ oz-0z 1 iN (Hy 10) PR, Hon | HO, HOA 9-101, 1g ayOny Bag) a HOA er MIA -2 TAN, . Mn (HAHOID) oe] [ae - 15a1Fy zy 23 | Ie -ova {H-10)P; (HO-10)P Hla Hip, HO, | 100 Saal i“ _ im —x CON, e SIGN Tes 1s 0g - (5-710) —m] La, is-wip\-y paul Ie = 7 . Po Me Siva . _ i levine be : |" tansy 131104 (aHGA * t yo iad jl 10-1017, Le (AHO, (HO“1010, 4 bf ™~ f TAO, Ww a (13° 108P; aad rae 10) on 4 # ae 2 a 1 6 eau] ur siuiog a2uasajay or arr RE Re NL ERY ERY AER ETRY ET + INO 259 37949 AdQWAW aNO NOHO!) NMONYNN FL¥LS OILLWHId JDNWHD ANY «SRE Agel - Ny HO4 1 WOu3 DN WHO THK HOLTWOUS3DNVHD — 2777 1980 101 H WOWS JDNVHS TMA TOLHWOWIRONWHD ~~ QQ Or¥A 38 TIM Ova 34 LSTIN andine ‘andi ‘$NOLUINIG20 108WAS at. 37949 INIHIVA BNO ASV4 = 31VY NdIA 49} SINHOJSAVM ONIWILL ~~ € 3HNDI FAST AND LS TTL DATA 5-328 ighted By Its Respective Manufacturer Material Copyr This SN74LS783/MC6883 e SN74LS785 FIGURE 4 — SAM BLOCK DIAGRAM 82 $1 so Vec Gnd fl fi me a [J ry c's $ FFCO - $ FFDF E Address Retresh Refresh ecode Request Grant L Me 4 # Refresh C t ; ° efresh Counter . TY A cP Refresh |< BOSC = 16 al Ei a6 a5 o4 93 Q2 Q1 a0 Clock wt CE | tose fe ¥ yyvyvy¥yY control Regi ontrol Register J Pt ce cs C4 C3 C2 C1 CO Write Strobe ais [1] B15 F6 . Ne AIS ve Y Lo a4 T] we) Ara B14 FS CP ax a13 (] a] A13 813 F4 4 vec ~10K Az —) A12 B12 F3 DAEs | jDao att [] An} an B11 F2 Window J VDGTiming| 7 Error Ai] | A10 B10 FI Detector J Error AS Cc mA Address 69 FO Start BOSC Multiplexer a As ia | AB (See page 9 for signal B8 : Ty 41Y e =2 routing and timing) i — ieee y 2 a7] wm AT B7 PI<4P1 = +2 i=] o — 1600. an a VCIk as (7 Aw) as BG os v2 [Y Be ‘ , <2 Manual AS Oo AS BS =¥if vi (external) 5 Reset a we Ad B4 2 | F < vo . IER a3 (] AB B3 M1 t— iR* M1 , az] —te| A2 B2 i Mo | _ . Automatic _ . (Internal) Al C my Al BI i RI Reset I Vcc ao a) AO 80 DAO RO Refresh Refresh 27 26 25 24 23 Z2 21 ZO Request TY P1# Grant" . YY Yt -é 5 Muttiplexer = * . . Control Bit and Polarity Logic Select (AQ-Ad) = V2) 2 a __ 5 Y — RAW ° RW wr —— ct i> Window O RAS1 _ | E Master > Start EC Selen 7 Timing BOSC T] Oscj, M1 MUX) # {a > 216 ,BOSC Q ia att a a Oscout "Reset Reset as: Yvy Yr yyy 1 vey at Tot oo Uo WT uu [Wm ER, RAS1/Z7 26 Z5 Z4 Z3 Z2 Z1 ZO RASO CAS WE Dots indicate which internal signals reset logic blocks #These signals/logic not used by LS783 FAST AND LS TTL DATA 5-329 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 SAM BLOCK DIAGRAM DESCRIPTION MPU Addresses (A0-A15): These 16 signals come directly from the MPU and are used to directly address up to 64K memory locations (K = 1024) or to indirectly address up to 96K memory locations, by using a paging bit “P” (see pages 17 and 18 for memory maps). Each input is approximately equivalent to one low power Schottky load. VDG Address Counter (BO-B15): These 16 signals are derived from one input (DAO) which is the least significant bit of the VDG address. Most of the counter is simply binary. However, to duplicate the various addressing modes of the MC6847 VDG, ADDRESS MODIFIER logic is used. Selected by three VDG mode bits (V2, V1, and VO) from the SAM CONTROL REGISTER, eight address modifications are obtained as shown in Figure 5. Also, notice that bits B9-B15 may be loaded from bits FO-F6 from the CONTROL REGISTER. This allows the starting address of the VDG display to be offset (in 1/2K increments) from $0000 to $FFFFt. B9-B15 are loaded when a VERTICAL PRE-LOAD {VP) pulse is generated. VP goes active (high) when HS from the VDG rises if DAO is high (or a high impedance). This condition should occur only while the TV electron beam is in vertical blanking and is simply imple- mented by connecting FS and MS together on the MC6847. The VP pulse also clears bits B1-B8. Finally, a HORIZONTAL RESET (HR) pulse may also affect the counter by clearing bits B1-B3 or B1-B4 when HS from the VDG is LOW (see Figure 5). The HR pulse should occur only while the TV electron beam is in horizontal blanking. In summary, DAO clocks the VDG ADDRESS COUNTER; HR initializes the horizontal portion and VF initializes the vertical portion of the VDG ADDRESS COUNTER. REFresh Address Counter (Q0-07): A seven bit binary counter (the LS785 uses an 8-bit counter) supplies bursts of eight* sequential addresses triggered by a HS high to low transition. Thus, while the TV electron beam is in horizontal blanking, eight sequential addresses are accessed. Likewise, the next eight addresses are accessed during the next horizontal blanking period, etc. In this manner, all 128 addresses are refreshed in less than 1.1 milliseconds. Address Muitiplexer: Occupying a large portion of the block diagram in Figure 4, is the address multiplexer which outputs bits Z0O-Z7 (as addresses to dynamic RAM's). Inputs to the address multiplexer include the VDG address (BO-B15) the REFresh address (CO-C6) and the MPU address {A0-A15) or (A0-A14 plus one paging bit ‘‘P"). The paging bit “P” is one bit in the SAM CONTROL REGISTER that is used in place of A15 when memory map TYpe #0 is selected (via the SAM CONTROL REGISTER “TY” bit). Figure 6 shows which inputs are routec to ZO-27 and when the routing occurs relative to one SAM machine cycle. Notice that Z7 and RAS1 share the same pin. 27 is selected if “M1” in the SAM CONTROL REGISTER IS HIGH (Memory size = 64K). Address Decode: At the top left of Figure 4, is the Address Decode block. Outputs $2, $1, and SO form a three bit encoded binary word(S}. Thus S may be one of eight values (0 through 7) with each value representing a different range of MPU addresses. (To enable peripheral ROM's or /O, decode the $2, Si, and SO bits into eight separate signals by using a 74L3138, 74LS155 or 74LS156.) On the LS783, the $2, $1 and SO outputs are not gated with any timing signals. The LS785 forces the S outputs HIGH if accessing ROM (see Memory Map, Figures 14-16) when the E clock is LOW and the Q clock is HIGH (see Timing Diagram, Figures 2-3). This logic implementation allows the LS785 to easily interface with inexpensive “dynamic” ROMs such as MCM68364. Aijong with the A5-A15 inputs is the MEMORY MAP TYpe bit {TY). This bit is soft-programmabie (as are all 16 bits in the SAM CONTROL REGISTER), and selects one of two memory maps. Memory map #0 is intended to be used in systems that are primarily ROM based. Whereas, memory map #1 is intended for a primarily RAM based system with 64K contiguous RAM locations (minus 256 locations). The various meanings of S2, $1, SO are tabulated in Figure 16 (page 19) and again on pages 17 and 18. _ In addition to S2, S1, and SO outputs is a decode of $FFCO through $FFDF which, when gated with E and R/W, results in the write strobe for the SAM CONTROL REGISTER. SAM Control Register As shown in Figure 4, the CONTROL REGISTER has 16 “outputs”: VDG Addressing Modes: V2, Vi, VO MPU Rate: R1, RO VDG Address OFFset: F6, F5, £4, F3, F2, F1, FO Memory Size (RAM): M1, Mo 32K Page Switch: *** P Memory Map TYpe: TY When the SAM is reset (see page 10), all 16 bits are cleared. To set any one of these 16 bits, the MPU simply writes to a unique** odd address (within $FFC1 through $FFDF). To clear any one of these 76 bits, the MPU simply writes to a unique** even address (within $FFCO through $FFDE). Note that the data on the MPU data bus is irrevelant. Inputs to the control register include A4, A3, A2, Al (which are used to select which one of 16 bits is to be cleared or set}, AO (which determines the polarity ... clear or set), and RAW, E and $FFCO-$FFDF) (which restrict the method, timing and addresses for changing one of the 16 bits). For more detailed descriptions of the purposes of the 16 control *|f HS is held low longer than 8 ys, then the number of sequential addresses in one refresh “BURST” is proportional to the time interval during which HS is low. ** See pages 17 or 18 for specific addresses. *** The P bit is also used to select 16K x 4 bit dynamic RAM operation in the LS785. See the Page switch definition in the Programming Guide section. t In this document, the “"$" symbol always preceeds hexidecimal characters. FAST AND LS TTL DATA 5-330 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 © SN74LS785 bits, refer to related sections in the BLOCK DIAGRAM DESCRIPTION (pages 8 through 12) and the PROGRAMMING GUIDE (pages 14 through 18). ** See pages 17 or 18 for specific addresses. FIGURE 5 — VDG ADDRESS MODIFIER Mode Division Variables Bits Cleared by HS (low) V2 v1 vo x Y 0 0 0 12 B1-B4 0 ny) 1 3 1 B1-B3 nt) 1 i) 1 3 B1-B4 0 1 1 2 4 B1-B3 i 0 0 4 2 Bi-B4 1 0 1 1 1 B1-B3 1 1 0 1 1 B1-B4 1 1 1 1 1 None (DMA MODE) FIGURE 6 — SIGNAL ROUTING for ADDRESS MULTIPLEXER Memory Size Signal Row/Column Signals Routed to 20-27 Timing M1 MO Source 27 Z6 25 z24 zZ3 z2 Z1 zo (Figure 2) 4K © 0 0 MPU ROW ®@ AG AS Ad A3 A2 Al AO TI-TA COL @ LOW Ali Ald Ag As A? A6 TA-TF VDG ROW ® B6 B5 B4 B3 B2 B1 BO TF-T2 COL ® LOW Bi1 B10 Bg Bg B? B6 T2-T? REF ROW ®@ C6 cs C4 C3 C2 Cl co TF-T2 COL ® LOW | LOW | LOW | LOW | LOW | LOW | LOW T2-T7 16K x1 0 1 MPU ROW ie) AG AS Ad A3 A2 Al AQ T?-TA COL @ A13 Al2 All A10 Ag Ag AT TA-TF VDG ROW ® BE B5 B4 B3 B2 B1 BO TF-T2 COL @® B13 B12 B11 B10 BS Ba B7 T2-T? REF ROW ®@ cé6 C5 c4 C3 C2 C1 co TF-T2 COL @ Low | Low | LOW | LOW | LOW | LOW | LOW T2-T? 16K x4 0 1 MPU ROW 47 AG 45 Ad A3 A2 Al AO TI-TA {Page bit = 1) COL dD Al3 Al2 All Ai0 Ag Ag A? TA-TF VDG ROW B? B6 B5 B4 B3 B2 B1 BO TF-T2 This mode coL @ B13 B12 B11 B10 Bg B8 B7 T2-T? only available REF ROW c7 cé c5 c4 c3 C2 C1 co TF-T2 with L$785 COL tow | Low | Low | tow | Low | Low | Low j Low | 12-17 64K {dynamic} MPU ROW Al A6 AS Ad A A2 Al AO T?-TA 1 0 COL P/A15@ | Al4 A13 Al2 All A10 Ag ASB TA-TF VDG ROW B7 B6 B5 B4 B3 B2 Bt BO TF-T2 COL B15 B14 B13 B12 Bil B10 BS BS T2-T? REF ROW C7@ C6 cs C4 C3 C2 ci co TF-T2 cOL LOW LOW | LOW ; LOW | LOW | LOW ! LOW | LOW T2-T2 64K (static) MPU ROW A? AG AS A4 A3 AZ Al AO T7-T9 1 1 COL P/A15@ | A114 A13 Al2 All A190 Ag AS TS-TF VDG ROW B? Bé BS B4 B3 B2 B1 BO TF-T1 COL B15 B14 B13 Bi2 B11 B10 Bg B8 T1-T? REF ROW c7® cé6 cs ca c3 C2 C1 co TF-T1 COL LOW LOW | LOW | LOW | LOW | LOW | LOW | LOW T1-T7 @® When using 4K x 1 RAMs, two banks of eight IC’s are allowed. This accounts for Addresses $0000-1FFF. Also, this same RAM can be addressed at $2000-$3FFF, $4000-$5FFF and $6000-$7FFF. @ Z7 functions as RAST and its level is address dependent. For example, when using two banks of 16K x 1 RAMs, RASO is active for addresses $0000 to $3FFF and RAST is active for addresses $4000 to $7FFF. @ If Map TYpe = 0, then page bit “P” is the output (otherwise A15). This is a “don’t care” situation for 16K x 4 MOS RAM inputs. © C7 = Low on LS783. FAST AND LS TTL DATA 5-331 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 internal Reset By lowering Vcc below 0.6 volts for at least one millisecond, a complete SAM reset is initiated and is completed within 500 nanoseconds after Vcc rises above 4.25 volts. NOTE: In some applications, (for example, multiple ‘‘VDG-RAM” systems controlled by a single MPU) multiple SAM ICs can be synchronized as follows: @ Drive all SAM’s from one external oscillator. e Stop external oscillator. @ Lower Vcc below 0.6 volts for at least 1.0 millisecond. @ Raise Vcc to 5.0 volts. @ Start external oscillator. @ Wait at least 500 nanoseconds. Now, the ‘’E’’ clocks from all SAM’s should be in-phase. External Reset When the VClk pin on SAM is forced below 0.8 volts for at least eight cycles of “oscillator-out’’, the SAM becomes partially reset. That is, al! bits in the SAM control register are cleared. However, signals such as RAS, CAS, WE, E or QO are not stopped (as they are with an internal reset), since the SAM must maintain dynamic RAM refresh even during this external reset period. Figure 7 shows how VClk can be pulled low through diode D1 when node “‘A” is low.* When node A” is high, only the backbiased capacitance of diode D1 loads the 3.58 MHz on VClk. Diode D2 helps discharge C1 (Power-on-Reset capacitor) when power is turned off. Diode D3 allows the MPU reset time constant R2C2 to | be greater than the SAM reset time constant. Thereby, ensuring release of the SAM reset prior to attempting | to program the SAM control register. FIGURE 7 — EXTERNAL RESET CIRCUITRY : +5.0V +5.0V ! 9 : , < Node “A” 100 kQ 100 ka 3 D2 R2 D3 Manual ro] System | 7 Reset /’ VClIk Clik Reset SAM VDG MPU MC6883 MC6847 MC680SE VDG Synchronization In order for the VDG and MPU to share the same dynamic RAM (see page 13,) the VDG clock must be stopped until the VDG data fetch and MPU data fetch are synchronized as shown in Figure 12. Once synchronized, the VDG clock resumes its 3.579545 MHz rate and is not stopped again unless an extreme temperature change (or SAM reset) occurs. When stopped, the VDG clock remains stopped for no more than 32 Oscgyt cycles (ap- proximately 2 microseconds.) In the block diagram in Figure 4, DAO enters a block labeled VDG Timing Error Detector. If DAO rises between time reference points** ta and tc, then Error is high and VCtk is the result of dividing BOSC (Buffered Oscoyt = 14 MHz) by four. However, if DAO rises outside the time Window ta to 7¢, then Error goes LOW and the VDG stops. A START pulse at time reference point tg (center of Window) restarts the VDG... properly synchronized. *Use a diode with sufficiently low forward voltage drop to meet Vj_ requirement at ¥VClk. **See timing diagrams on page 5 and 6. FAST AND LS TTL DATA 5-332 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 Changing the MPU Rate (by changing SAM control register bits RO, R1). Two bits in the SAM contro! register determine the period of both “E’’ and “’Q"" MPU clocks. Three rate modes _are implemented as follows: RATE MODE Ai RO SLOW Oo a The frequency of “E” (and “‘Q"’} is f crystal + 16. This rate mode is automatically selected when the SAM is reset. Note that system timing is least critical in this “SLOW” rate mode. A.D. o.61 The frequency of “E” (and “‘Q’’) is either f crystal + 16 orf crystal + 8, depending on the address (Address Dependent) the MPU is presenting. FAST 1 x The frequency of “E” (and “Q") is f crystal + 8. This is accomplished by stealing the time that is normally used for VDG/REFRESH, ard using this time for the MPU. Note: Neither VDG display nor dynamic RAM refresh are available in the “FAST” rate mode. (Both are available in SLOW and A.D. rate modes). When changing between any two of the three rate modes, the following procedures must be followed to ensure that MPU timing specifications are met: RATE MODE SLOW Set RO Set R1 ee This direct path is J A.D. << Sequence #1 not allowed except by i 8 ORO | — FAST La (See Below) Ves R1. hardware reset. Set RO, then CLEAR R1 e May be ANY address from $0000 to $7FFF. SEQUENCE #1: ~~ 7D 00 00 TST #$0000... Synchronizes STA instruction to write during T2-TG (See Figure #38)." 21 00 BRN 00 B7 FF D6 STA #$FFD6 ... Clears bit RO *Note: “TST” instruction affects MC6809E condition code register. Changing the MPU Rate (In Address Dependent Mode) When the SAM control register bits ‘Rt, and ‘‘RO" are programmed to “0” and ‘’1’’, respectively, the Address Dependent Rate Mode is selected. In this mode, the + 16 MPU rate is automatically used when addressing within $0000 to $7FFF* or $FFOO to $FF1F ranges. Otherwise the + 8 MPU rate is automatically used. (Refer to Figure 8 for sample “E” and ‘Q" waveforms yielding + 8to + 16 and + 16to + 8 rate changes}. This mode often nearly doubles the MPU throughput while still providing transparent VDG and dynamic, RAM refresh functions. For example, since much of the MPU’‘s time may be spent performing internal MPU functions (address = $FFFF)**, accessing ROM (address = $8060 to $FEFF) or accessing i/O (address = $FF20 — $FF5F), the faster f crystal + 8 MPU rate may be used much of the time. Note: The VDG operates normally when using the SLOW or A.D. rate modes. However, in the FAST rate mode, the VDG is not allowed access to the dynamic RAM. FIGURE 8 — RATE CHANGE E AND Q WAVEFORMS fast slow fast A. “slow” address detected here ‘fast’ address detected here *When using Memory Map 0, addresses $0000 to $7FFF may access Dynamic RAM. **The MC68C9 outputs $FFFF on AQ-A15 when no other valid addresses are being presented. FAST AND LS TTL DATA 5-333 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 Oscillator in Figure 4, an amplifier between Osc), and Oscoy; provides the gain for oscillation (using a crystal as shown in Figure 9.) Alternately, Pin 5 (Oscj,) may be grounded while Pin 6 (Oscgyt) may be driven at low-power Schottky levels as shown in Figure 10. Also, see Viy, Viz on page 2. Ose tpH(Osc} AC Specifications* Out 2.0V iy o8V Max Typ Min Units 0.8V : t _— 30 22 ns tpL{Osc) pH(Osc) tpL(Osc} _ 30 22 ns t—§ teyc(Osc) > teye(Osc) — 70 62.4 ns | FIGURE 9 — CRYSTAL OSCILLATOR | Suggested Component Values | Freq. | MHz | cv* | cF* | Ri | et | net | ox | SAM 2.5-30 33 1.5 | * ! MC6BB3 14.31818 pF pF ko 100K) 10K — 2.5-30/ 33 1.5 . 16.0000 pF pF ko |7 100K} 10K \ \ \ Recommended Crystal Parameters \ \ 14.31818 MHz** 16.0000 MHz** \ ar It B Rs 109 + 200 100 + 2.00 \ ql co 5.0 pF + 1.5 pF 6.0 pF + 1.0 pF aN ¢ cl 0.0245 pF + 15% 0.0319 pF + 15% SNL, Lt Gy) B L1 5.05 mH 3.1 mH ie a 50K + 10K 40K + 10K co Calibration Tolerance: 0.002% at 26°C Temperature Tolerance: 0.001% 0°C to 70°C FIGURE 10 — TTL CLOCK INPUT 5 Oscjp, SAM ao (R4 = 200 2 Typ, 50 2 Min) M6883 a als ans a Nee Osc Out 74LS00 (Used as an input) Typical input capacitances are 3.0 pF for Pin 5 and 5.5 pF for Pin 6. *Optimum values depend on characteristics of the crystal (X1). For many applications, VCIk must be 3.579545 MHz + 50 Hz! Hence, Oseoyt Must be made similarly “drift resistant” (by balancing temperature coefficients of X1, CV, CF, R1, R2 and R3). **Specifically cut for the SAM are International Crystal Manufacturing, Inc. Crystals (#167568 for 14.31818 MHz or #167569 for 16.0 MHz). However, other crystals may be used. FAST AND LS TTL DATA 5-334 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 THEORY OF OPERATION Video or No Video Although the SAM may be used as a dynamic RAM controller without a video display*, most applications are likely to include a MC6847 video display generator (VDG). Therefore, this document emphasizes use of the SAM with MC6847 systems. Shared RAM (with interleaved DMA) To minimize the number of RAM and interface chips, both the MPU and VDG share common dynamic RAM. Yet, the use of common RAM creates an apparent difficulty. That is, the MPU and VDG must both access the RAM without contention. This difficulty is overcome by taking advantage of the timing and architecture of Motorola MPU’s (MC6800, MC6801E, MC6809E, MC68000). Specifically, all MPU accesses of external memory always occur in the latter half of the machine cycle, as shown below: FIGURE 11 — MOTOROLA MPU TIMING One Machine Cycle A C Y er ClocksO US—<“—stCC (Approx. 1 MHz) LY ne yoo ee ---- sy? MPU Address MPU Data MPU Address MPU Data Window Window Similarly, the MC6847 (non-interlaced) VDG transfers a data byte in a half machine cycle (E or ®2). Thus, when properly positioned, VDG and MPU RAM accesses interleave without contention as shown below: FIGURE 12 — MOTOROLA MPU WITH VDG TIMING VDG Data VDG Data VDBG Address Window VDG Address Window o~ io ra ccfteeoc “ alan Y uti Vill wert rrrSe Se oN E’ Clock: VDG Halt (Approx. 1 MHz) MPU Half So eee | eee eee ee NS v ~* Y MPU Address MPU Data MPU Address MPU Data Window Window This interieaved Direct Memory Access (IDMA) is synchronized via the MC6883 by centering the VDG data window half-way between MPU data windows.** The result is a shared RAM system without MPU/VDG RAM access contention, with both MPU and VDG running uninterrupted at normal operating speed, each transparent to the other. RAM Refresh Dynamic RAM refresh is accomplished by accessing eight*** sequential row addresses every 64*** microseconds until all addresses have been accessed. To avoid RAM access contention between REFRESH and MPU, each of the refresh accesses occupies the “VDG half” of the interleaved DMA (IDMA}. Furthermore, refresh accesses occur only during the television retrace period (at which time the VDG doesn’t need to access RAM). In summary, the VDG, MPU and SAM‘s Refresh Counter all transparently access the common dynamic RAM without contention or interruption. Why IDMA? Use of the interleaved direct memory access results in fast modification to variable portions of display RAM, by the MPU, without any distracting flashes on the screen (due to RAM access contention}. In addition, the MPU is not stowed down nor stopped by the SAM; thereby, assuring accurate software timing loops without costly additional hardware timers. Furthermore, additional hardware and software to give “access permission” to the MPU is eliminated since the MPU may access RAM at any time. *Only 1 pin, (DAQ) out of 40 pins is dedicated to the video display. **See VDG synchronization {page 10) for more detail. ***When not using a MC6847, HS may be wired low for continuous transparent refresh. FAST AND LS TTL DATA 5-335 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 “Systems On Silicon” Concept Total Timing For most applications, the SAM can supply complete system timing from its on-chip precision 14.31818 MHz oscillator. This includes buffered MPU clocks (E and Q), VDG clock, color subcarrier (3.58 MHz), row address select (RAS), column address select (CAS) and write enable (WE). Total Address Decode For most applications, the SAM plus a “1 of 8 decoder” chip completely decodes I/O, ROM and RAM chip selects without wasting memory address space and without needlessly chopping-up contiguous address space. Chip selects | are positioned in address space to allow three types of memory (RAM, local ROM and cartridge ROM) independent | room for growth. For example, RAM may grow from address $0000-up, cartridge ROM may grow from address $FEFF- | down and local ROM may grow from $BFFF-down. Alternately, if the application requires minimum ROM and maximum | contiguous RAM, a second choice of two memory maps places RAM from $0000 to $FEFF. (See Figures 14-16.) In both memory maps all I/O, MPU vectors, SAM control registers, and some reserved address spaces are efficiently contained between addresses $FF00 and SFFFF. How Much RAM? Using nine SAM pins (20-27 and RASO) the following combinations require no additional address logic. | | FIGURE 13 — RAM CONFIGURATIONS | | Address: Chip Select: | MSB LSB | 25Z4Z3Z2Z1Z0.... 6.2 RASO \ One or two banks of aK x 8 (like MCM4027's) —_— neo Oo Danks O x iké | Z5Z4Z3Z271Z0 .. eee RAS) (=Z7) / . | Z6Z5Z4Z32Z22Z1Z0 .... 2... 0. ee RASO One or two banks of 16K x 8 (tike MCM4116’s) Z6Z5Z4Z3Z2Z1Z0 ... 2... ee RAS1 (=27} Z7ZGZ5Z4Z3Z271Z0 . 0. ee RASO One bank of 64K x 8 (like MCM6665's) or one bank of 16K x 4 (like TMS4416’s) PROGRAMMING GUIDE SAM — Programmability The SAM contains a 16-bit controt register which allows the MC6809E to program the SAM for the foltowing options: VDG Addressing Mode....... 3-bits VDG Address Offset......... 7-bits | 32K Page Switch............ 1-bit | MPU Rate................ 2-bits Memory Size............-. 2-bits Map Type.............-... 1-bit Note that when the SAM is reset by first applying power or by manual hardware reset,t all contro/ register bits are cleared (to a logic 0’). VDG Addressing Mode Three bits (V2, V1, VO) control the sequence cf DISPLAY ADDRESSES generated by the SAM (which are used to scan dynamic RAM for video information). For example, if you wish to display Dynamic RAM data as INTERNAL ALPHAN- UMERICS VIDEO, you should program? the MC684? for the INTERNAL ALPHANUMERICS MODE and CLEAR BITS V2, V1 and V0 in the SAM. The table on the following page summarizes the available modes: t See Figure 7 for manuat reset circuit. + Typicatly, part of a PIA (MC6821) at location $FF22 is used to control MC6847 modes. (See MC6847 Data Sheat.} FAST AND LS TTL DATA 5-336 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 ¢ SN74LS785 MC6847 Mode SAM Mode _ Gmet Mode Type GIA GM2¢t GM1t EXT/ css v2 v1 vo Internat Alphanumerics 0 x x 0 x 0 0 0 External Alphanumerics 0 x x 1 xX 0 0 0 OSemigraphics — 4 0 x x 0 x G it) 0 Semigraphics — 6 0 x x 1 x 0 0 0 Semigraphics — 8* ie] x x 0 x 0 1 0 Semigraphics — 12* 0 x x 0 x 1 0 i] Semigraphics — 24* 0 x Xx 0 x 1 1 0 Full Graphics — 1 i t¢) 0 0 x 0 0 1 Full Graphics — 1R 1 0 0 1 x 0 0 1 Full Graphics — 2C 1 0 1 0 x 0 1 0 Full Graphics — 2R 1 0 i 1 Xx 4] 1 1 Full Graphics — 3C 1 1 0 0 x 1 0 0 Full Graphics — 3R 1 1 0 4 x 1 0 1 Full Graphics — 6C 1 1 1 0 x 1 1 9] Full Graphics — 6R 1 1 1 1 x 1 1 6 Direct Memory Accesst x x x Xx x 1 1 1 * $8, S12, & S24 modes are not described in the MC6847 Data Sheet. See appendix “A”. + DMA is identical to 6R except as shown in Figure 5 on page 9. £ The function of these control bits differs on the T1 version of the 6847. See the MC6847T1 data sheet for details. VDG Address Offset Seven bits (F6, F5, F4, F3, F2, F1 and FO) determine the Starting Address for the video display. The “Starting Address” is defined as “the address corresponding to data displayed in the Upper Left corner of the TV screen.” The “Starting Address” is shown below in binary: [re |rs[ra|[ra[rej/rfj[ri[ofojlolojol|o |} o | o | o | \ Most Least wy Significant Significant Bit Bit Note that the “Starting Address’ may be placed anywhere within the 64K address space with a resolution of 1/2K (the size of one alphanumeric page}. Page Switch One bit (P1) is used “in place of A15 from the MC6809E in order to refer access within $0000-$7FFF to one of two 32K byte pages of RAM. For systems using the LS783 and 32K bytes of RAM or less, the Page bit serves no useful function and is a “don’t care.” The L$785 uses the Page bit in conjunction with the memory size bits to determine whether 16K x 1 or 16K x 4 DRAM is being accessed. P1 is set for 16K x 4 and cleared for 16K x 1. The Page bit must also be cleared for the LS785 to function with 4K x 1 DRAMs. FAST AND LS TTL DATA 5-337 This Material Copyrighted By Its Respective Manufacturer MPU Rate SN74LS783/MC6883 @ SN74LS785 Two bits (R1, RO) control the clock rate to the MC6809E MPU. The cptions are: RATE (FREQUENCY OF “E” CLOCK) Rt | RO 0.9 MHz (Crystal Frequency + 16) Slow 0.9/1.8 MHz (Address Dependent Rate) 1.8 MHz (Crystal Frequency + 8) Fast - OC _ (Typical Crystal Frequency = 14.31818 MHz) In the “address dependent rate” mode, accesses to $0000-$7FFF and $FFOO-$FF1F are slowed to 0.9 MHz (crystal frequency = 16) and all other addresses are accessed at 1.8 MHz (crystal frequency + 8). Note: “Slow” (0.9 MHz} operation can be accomplished using 1.0 MHz MC6809E and MC6821 devices. For “Fast” (1.8 MHz) operation, 2.0 MHz MC68BO09E and MC68B21 devices must be used. Memory Size Two bits (M1 and MO} determine RAM memory size. the options are: IMPORTANT! M1 | Mo One or two banks of 4K x 1 dynamic RAMs Q 0 One or two banks of 16K x 1 dynamic RAMs 0 1 One bank of 16K x 4 dynamic RAMs® o | 1 One bank of 64K x 1 dynamic RAMs 1 0 Up te 64K static RAM* 1 1 ® This option is only available when using the LS785. * Requires a latch for demultiplexing the RAM address Note: Be sure to program the SAM for the correct memory size before using RAM (i.e., for a subroutine stack). Map Type One bit {TY) is used to select between two memory map configurations. Writing To The SAM Control Register Any bit in the control register (CR) may be set by writing to a specific unique address. Each bit has two unique addresses ... writing to the even # address clears the bit and writing to the odd # address sets the bit. (Data on the data bus is irrelevant in this procedure.} The specific addresses are tabulated in Figures 14-16. If desired, a short routine may be written to program the SAM CR “a word at a time.”’ For example, the following routine copies “B" bits from “A” register te SAM CR addresses beginning with address ''X.” SAM1 46 ROR A 24 06 BCC SAM2 30 01 INX (LEAX1,X} A? 80 STA O,X~ 20 02 BRA SAM3 SAM2 A? 81 STA O.X** SAM3 5A DEC 8B 26 F2 BNE SAMI1 39 RTS Refer to Figures 14-16 for details. Early versions of the LS783 did not allow the ‘Fast’ MPU rate to be used in conjunction with Map Type “TY = 1.” Devices manufactured after January 1, 1983 allow both “Fast” and “Slow” MPU rates to be used with Map Type “TY = 1.” (Date of manufacture is marked on devices as YYWW where YY is the year and WW is the week of manufacture). 7 6 5 4 3 2 eLLII TTT Po FAST AND LS TTL DATA 5-338 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 @ SN74LS785 FIGURE 14 — MEMORY MAP (TYPE #0) COURSE FINE MC6B09E Vectors, SAM Control, vO MC6809E 8 Address Bits <$FFFF =) $SFFOO ROM2** (S=3) —+<$C000 ian r<$A000 ROMO** {S= 1) Pel wmb-------- $|3|/= (S=O if {S=7 if | r< $8000 | =a a ra | zl > & ou -" aul +< $4000 K — RASO tA 4K — RAS1 $+ 1/02 ~ —Es +50 1 5 (04a) 6 >V > > 1/0; row) 4 Goa) E> > 109 SN74LS156 3 Gap) HZ nc S2 > Ep % Oop) H+ > E ts p =~ am. [10 From LS783 = 3 1 (O4p) pe NC 31 > Ay +5.0 V ~-=~ ,|9 | 80> —3 Ag 0 (Qop) > > RAM READ APPENDIX C VDG/SAM Video Display System Offers 3 New Modes b Y Paul Fletcher There are three new modes created when the VDG and SAM are used together in a video display system. These modes offer alphanumeric compatibility with 8 color low-te-high resolution graphics, 64H x 64 V, 64H x 96 V, 64H x 192 V. The new modes S8, $12, and $24 are created by placing the VDG in the Alpha Internal mode and having the SAM in a 2K, 3K or 6K full color graphics mode. In all modes the VDG’s S/A and Inv. pins are connected to data bits DD7 and DD6 to allow switch- ing on the fly between Alpha and Semigraphics and between inverted and non-inverted aipha. This method is used in most VDG systems to obtain maximum flex- ibility. The three modes divide the standard 8*12 dot box used by the VDG for the standard alpha and semigraph- ics modes into eight 4*3 dot boxes for the S8 mode, twelve 4*2 dot boxes for the S12 mode, and twenty- four 4*1 dot boxes for the $24 mode. Figure 17 shows the arrangement of these boxes. One byte is needed to control two horizontally consecutive boxes. it therefore takes four bytes for the S8, six bytes for the 512, and 12 bytes for the S24 mode to control the entire 87712 dot box. These two horizontally consecutive boxes have four combinations of luminance controlled by bits BO— B3. For convenience B2 should be made equal to BO and B3 should be made equal to B1. This eliminates a screen placement problem which would cause other codes to change patterns when moved vertically on the screen. The illuminated boxes can be one of eight colors which are controlled by B4-B6 {see Figure 18). The bytes needed to contro] all the boxes in the 8*12 dot box must be spaced 32 address spaces apart in the display RAM because of the addressing scheme originally used in the VDG and duplicated by the SAM. This means to place an alphanumeric character on the TV screen it requires 4, 6, or 12 bytes depending on the mode used. These bytes are placed 32 memory locations apart in the display RAM (see Figure 18}. This multiple byte for- mat allows the mixing of character rows of different characters in the same 8*12 dot box creating new char- acters and symbols. It also allows overlining and un- derlining in eight colors by switching to semigraphics at the correct time. These new modes optimize the memory versus screen density tradeoffs for RF performance on color TVs. This could make them the most versatile of all the modes depending on the users creativity and the soft- ware sophistication. FAST AND LS TTL DATA 5-343 This Material Copyrighted By Its Respective Manufacturer Scan Lines $8 Scan Lines $12 Scan Lines $24 SN74LS783/MC6883 @ SN74LS785 FIGURE C1 — DISLAY MODES 88, S12, $24 Bit/Visibie Dot Correlation Address Byte Lal 8 Left Right Lk = NO —————— ele|e\ere e $XX00 ($01) $XX20 ($01) $XX40 ($01) $XX60 ($01) @ Alphanumeric Compatible _— _ Dots Left Right,,, q Red Red $XX00 ($BF) Blue Off $XX20 ($AA) Off Green | $XX40 ($85) ? Orange | Orange | $XX60 ($FF) Off Off $XX80 ($80) Yellow | Yellow | $XXAO ($SF} ® Options: One of 8 colors for Lor R or both. Off = Black “a ® Underline, Overline * @ Mix Character Dot Rows *** Characters will always remain in standard VDG positions. $01 is the VDG “ASCII” code for ‘A’. 3lue_ | Blue ]$xXx00 ($AF) lack ac $XX20 ($80} lack_| Black |$xx40 ($so0} VOG efelelele! |sxxeo ($14) —Code ° e| |$xxso ($18), forT 12 el le $XXAO ($18) D $XXCO ($18) { vDG e| je $XXEO ($18) > Code e @| }$X100 ($18) | for x e e|_}$X120 ($18) Black | Black $X140 ($80) ’ Green | Grean ]$X160 ($8F) FAST AND LS TTL DATA 5-344 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 e SN74LS785 0800$ re s9xoq 10p — x #40 MOl UP 0900$ $exoq lop € xX p jo Mol PE ov00s eid) 3(9) soxoqg jop (a) £ Xx p40 MOl puz £(4) z(q) 0Z00$ L(q) | ze(e) g(e ple saxog 10p ele — Xx pio MOl 1S] 2(®) 0000$» 1() aL x8 yO MOY 2UCQ dew Asowapw u9e19S 8S ASMoY QL x ‘H “4849 Ze = eudiy 10|09 #0 JOj05 40|09 HO #0 HO oa‘za | :a'ea 849018 BS 40 p9 x pg = Iwas SMOY QL uonnjosey uaaias AL (P) 1s (e} Ze GrpEZal] «+ |. 8990/4 BS 40 a suwnjod Ze if uULUNnIOD wy pyeteqtau equabew oiiftule (P) 07 7 ueAy [EP OoTtyt (0) 01 11 apod I1IOSV e4x4 ung jolojt] st , ' rat 8s eudiy| x |X |X | X |X] X pAurws anig ojt{o|let wag lorlulzrter|oo}iolza| x} 1 " MO||3A bi o}jolt oq 4a «(L) uaa o}o]o]t ‘*—_ s—*| yorig | xX | xX |X] oO yojog-«}.09. | 19. | 29] xT SI1dWYX3 LVINUOS AVTdSIG 8S — 29 ABN FAST AND LS TTL DATA 5-345 ighted By Its Respective Manufacturer Material Copyr This SN74LS783/MC6883 e SN74LS785 FIGURE 18 — EQUIVALENT OF OSCILLATOR INPUT AND OUTPUT Vcc Oscout Vcc Vcc Vcc Oscip FIGURE 19 — DAO INPUT Vec Vec Vcc < DAVO—4 FIGURE 20 — VClk INPUT/OUTPUT Vcc VClk Vec Vec | FIGURE 21 — E AND GQ OUTPUTS Vcc Vcc FIGURE 22 — TYPICAL INPUT Vec Vcc FIGURE 23 — TYPICAL OUTPUT Vcc | FAST AND LS TTL DATA 5-346 This Material Copyrighted By Its Respective Manufacturer SN74LS783/MC6883 @ SN74LS785 FIGURE 24 — EXAMPLE of MC6809E, MC6883 and MC6847 COMPUTER * f ROM2 ENDC Als Ald AI Al? 21 {21 wl ty Al2 All AY 19 19 Are AIO AG Ald Ag AG AT AG AS aA CS1 | 24 csi [24 AI cso 122 cSo [22 AZ aioloafefwirn AN RS1 RSI Ag aso aso [28 fo) iS] ° mI PEPPPP PE reerrerl T | ROMI w an w an xy loalalaloapea doin [apn in ro! aw phy | P+) 5 = Ll ml — — —12 — CS$2 E—< 109 C82 -—< 104 EXPANSION BA CONNECTOR as BUSY I iy | | LZ8991N Vid LZB991N Vid | | SLEVBSINDIN WOH ZEEVESINOIN WOH S9eVSSIWOW WO 38,37 38, 37 ROA.B iROA.B 1 | > ee +5V 20 20 24 24 24 py 12¥ 26 7 DI D? oF 26 oF ve o7 D7 -—— D6 2 27 16 16 O05 28 28 15 1§ . b4 29 29 1a 14 03 30 30 13 13 o2 31 31 VW YW 44 Di 32 32 10 10 10 3 9 DO ible 3 DO 33 00 2 oo 3 bo -— q OSPB 64 KEY PB. PA. ce- CA. KEYBOARD PB- PA Ce. CA. - No CONNECTS ~ on NN 0 7 ] | — 2 HERE 7 1 0 1.201 6 4 2 65 4 2 1 ‘| | 7] 19 re] 99] | | "| i i eB ra p9 FT 7 ‘| ‘| ‘| ] a "9] 18] 98) 40 FAST AND LS TTL DATA 5-347 This Material Copyrighted By Its Respective Manufacturer ' ! i SN74LS783/MC6883 e SN74LS785 VIDEO ENCODER 47k MODULATOR e+e CONNECTS Te NRE EN Voc > Oo 11 All 2 = 16 2 A2 $ — [12 ROM? 10, A10 A10 26 2 74 oB-—> 7 3 $1 AI _ T ag ag » ae 35, HOM Scrip t Sl ag 4 Ag it] Ao @ 14 Selects n 18 24 1 > ROMO tak al a? 1s. MED A = 4 AG 23 AS o > 13 22 Voc = 16 E] AS AS 20 CHB}—> 12 24 Gnd 1 Gnd=8 Aa Ad al tn OUrE "tl 19 —EN EN EX) A3 5 4 9} a2 18) a2 L Ai VT at ad 15% & 16 6 AO AO = Oseour TT aaa = Romo 50 pF 14.3181B al — is]. 3 Fas 12| ae RW RW 2 Oscin 37) oe 6 8-35 pF FS BA = 5 TO PIA Bs —/9 — 33 t BUSY HS zai 1S 38 Lic pao }2 221 bao 39 = 7 33 S$ in nom VClk Clk g mes = +5V 34 E o 16 +5V 35 s 13 0 400 k 3 33; mn = wd a nern a 4) FIRG TRIS 0.1 HF yh 3). — RO CAS s 40 watt 27 26 25 24 23 22 21 ZO RASO WE = 2 38] a4) 33] 32] 31] 30] 297 2a 127 117 10 NMI 37] __ RESET a » - ~ ~ ~~ ~ ~~ =| ~{| *|* 7 13*/10*]11*}12"] 67 | 7* [5* a*| [15°] 3° | 32 Vcc pon + — ns Inv 1 y Ag As Ag Ag Ap Ay Ag RAS CAS WE iE 3at Gnd —1 138 ' AS = RAM’s MCM4116A E2nT a 24 2/07 3 El Db? tF Q7 | 14 3 o Q 2 10 pp? 35 25. 2] D6 5 AGE > bs wm «([18__a6|14 4) 5 2) ops *S . 26 2/Ds 7] § [13 as|ie 7} & |e 8 GM2-—> D5 ; ~] DDS 29 2? 2|Da 9 e ba 8 1 Qafia a 7 9 7) ope om? 28 2|ba 12 t 3 a3]14 13 a 12 6 GMor-—> D3 DD3 39 29 De 2/02 14] Vec=20 16 O2)14 14] Voc = 20115 5 oD? css cy DI 16 =10 Gnd = 10 30 D1 2 Gnd 4 Q1}14 17) Gnd = 10 Jig 4} oo1 ExTh > cy) 2| bo 18 po 4 2 Qo |t4 18 D a 19 3 Dpo CLEAR ¥po Vcc vss VeB [27% Gnd s° o° 16* ro +5¥ uy T T eS 410.1 LF = +12 +5V 5V MC6847 Mode Control & Mise ‘OC connects hare. *This pin number on 8 different RAM chips is connected to this point. FAST AND LS FTL DATA 5-348 This Material Copyrighted By Its Respective Manufacturer