FOR SERVICE... NOTE NEW TOLL-FREE TELEPHONE NUMBERS: 800-621-1253 IN ILLINOIS CALL: 800-572-1324 16P-3001-301 OCTOBER, 1981 THEORY OF OPERATION LATER SYSTEM BOARDS UPRIGHT OR TABLE GAMES e CPU/VIDEO BOARD ROM BOARD INTERFACE BOARD POWER SUPPLY (Refer to 16P-3001-300 for theory on Defender early system boards) 2 444444710) ELECTRONICS, INC. 3401 N. California Ave., Chicaga. IL 60618 Cable Address: WILCOIN, CHICAGO (312) 267-2240 CONTENTS IDENTIFICATION OF LATER SYSTEM BOARDS ...... | INTRODUC HON EE SIE ar ale dob t x UR CIRCE ajau BLOCK DIAGRAM THEORY ....................... 3 DETAILED THEORY See Ed ee Wieg nt Eee 9 Reset EEUE uus ov eA EDS IE Re a ay ae ea KY MALA Watchdog: CIFGUlE EER rb GE VAS Sa cha De ties 10 MPU I oes OE OR a Seb ne il, eau xus ecard ae we VER D 11 Clock Generator faut ED Res i E kt N GE viiti e e 12 E ang Generator sant e epe ala era o donee 13 Video Address Generator i.v SE tee eee $E bnn ia 14 Video Ram Gen rol. use db RE RR e xatd ea De de a e uoa a 15 Video: Ram TERDEE EER e Supe eee REY ed d IE SA a ik 17 Video Ram Address Multiplexer .................... 0 18 Video Ra E DE TREE SI S LLL ETT 20 Video Shift RBgISLOrS oss cos ek EERS ig gile 6 ee 22 Golor Ram CuCl: ves dd Red bas ee ede esau geye dia oe odes 23 Monitor Sync Generator....................... Rae eR ee nd 24 Blanking GSU cox se 868 ox RR RE DE Up dU Ean lal P pO COR nin 25 Page O-Decoder sirena ta yeh ie UN EAM eeu eer e d EE STA 25 CMOS BAM -——— —— À— E a eğ Eed 26 Vertical Count Buel es mti Baal EEN e aç ere e kk Esa 27 Count 240 ih Sosis d SE NEE SR du BE aeu qtd A 27 ROM Board Memory Scheme ............. sse ne 28 Section/Page Select Decoder suw, BEE pa t RA Naa 29 ROM Seğtion/Half Decoder. uso dap ERREUR ae a a a 30 ROM Board PIA/Dëcoder EE EE Essak salsa 1,880 P ERR 31 Interface Board Assembly ute sa e eph eee PERRIS 32 POWErSUDDIY 630.00 ase ME ESE EE HE MEET dca a CS E EN 34 IDENTIFICATION OF LATER SYSTEM 3CARDS e CPU/VIDEO BOARD TWO DECODER ROMS, BATTERIES AT LOWER RIGHT. im e ROM BOARD WIESE HERR SS E 14 AND 16-PIN ICS E Quee PO EET MOUNTED PERPENDICULAR ET TO ROM ICS. Di iuit p Š wid gn 00000 ae. Mas OR N n e INTERFACE BOARD TOTAL OF SIX CHIPS PLUS RESISTOR PACK. - `n = r. lw tee » mu -. - E E - E - nd SECTION 1 INTRODUCTION The video system in this game consists of five (5) printed circuit boards, a number of switches, and a Video Monitor. The printed circuit boards contain most of the electronic circuitry in the game. Switches provide controlling inputs for play of the game and the Video Monitor provides a high-resolution color display of game action. The basic functions of the five circuit boards are as follows. (Refer to Figure 1-1.) The Power Supply provides the necessary voltages for proper game operation. Regulated DC outputs of +5VDC, -5VDC, +12VDC, and unregulated DC outputs of +12VDC, -12VDC, and 427 VDC are supplied. An additional AC output (6.3 VAC) is used to power lamps for general illumination purposes. The CPU/Video board contains a microcomputer Central Processing Unit (CPU), which performs the "brain" function of the system. The CPU controls the rest of the system according to the program (list of instructions) assigned to it by a programmer. This board also contains the Video Control circuitry and Video Memory. The information stored in the Video Memory represents the picture the CPU wants displayed on the Video Monitor. The Video Control circuits read the contents of the Video Memory and convert these contents into color signals which are then fed to the Video Monitor. The ROM board provides ROM storage for the programs and data base which control the operation of the Video System and supply the necessary data for game operations. The ROM board contains: the game program, the diagnostic (self-test) programs, permanent data used by programs, and I/O (Input/Output) ports. An Input port is used by the system to check the status of input switches. An Output port is used to control the on-board Self-Test indicator LEDs, and game play-selected sounds produced bv the Sound Board. | SYNC. VIDEO rm | CS Qs Es: 30ARD INTERFACE BOARD —-5VDC REG. i SOUND SELECT | d I. 1 x E : zi Ii <: E du a “Q zi xi cj © GC Si 2] Uil — x 2! S| zi =: =: -! í jä OL OI cc T aj ö = = EI > >) > >: =I eu RI Zu + pi © > —i2V0C UNREG, -INE 117/220 VAC TRANSFORMER POWER SUS2.Y BOARC j TWAS 6.3 VAZ |+27voc UNREG. ISOLATED) SEKER | COIN DOOR EON LOCKOUT MAS SNI RELAY Figure 1-1. Simpiified Block Diagram The Sound Board is able to generate various sound effects upon appropriate command from the CPU. These commands are received via the ROM board. The audio signals generated in response to these commands are amplified on-board, and routed directly to the game speaker system. The Interface Board provides input ports to interface the Video System to the Player Control Panel. These inputs allow the CPU to check the status of the l-and 2- player start switches and player panel control switches. SECTION 2 BLOCK DIAGRAM THEORY The Williams Video Came System generates a color video display of 360 x 240 pixels (picture elements) on a standard Color Monitor. The Color Monitor provides one complete (non-interlaced) scan of the screen every 16.66 mSec, for a standard frame rate of 60 Hz. The screen may contain up to 16 different colors at once, which are selected under program control from a total of 256 available colors. For each pixel to be displayed, a 4-bit binary code representing one of the 16 currently-available colors is stored in a memory called the Video RAM. These 4-bit pixel codes are continuously read out of the Video RAM in the order they are to be displayed, and used as an address to access l of 16 8-bit codes stored in a 16 byte memory called the color RAM. Each of these 16 codes represents 1 of the 256 total available colors (28-256). Each 8-bit color code output from the color RAM represents a different combination of brightness levels for the Red, Blue, and Green guns in the monitor, producing 1 of the 256 possible color combinations. The result is a process of two basic steps for the display of a picture: 1. Select 16 of 256 available colors for the current display by loading the 8-bit value for each color selection into 1 of the 16 color RAM locations. The address at which each color code is stored determines which 4-bit pixel code will cause it to be displayed. 2. Select which of the 16 currently available colors will be displayed at each pixel location on the screen by storing the appropriate 4-bit codes in the Video RAM. Figure 2-1 is a block diagram showing the main features of the Williams Video Game System hardware. The Reset circuit produces 2 reset pulses, RESET (Reset Not) and CR (Clocked Re- set Not), in response to either a low supply voltage (power-up or power-down) or the reset pushbutton being depressed. These pulses assure that the MPU (Microprocessor Unit) and eritical timing components such as the Video Address Generator are forced into a stable state during power fluctuations or testing, and synchronized when normal operation begins. When the reset condition has terminated, a properly functioning MPU will restart the main program, executing system diagnostics and then the game program itself. The Watchdog circuit is a timer which resets the MPU unless it is cleared before it counts 8 vertical scans. The timer is cleared by writing a specific data pattern at a specifíc memory address. The command to clear the Watchdog is built into the game program so that during normal game operation the Watchdog is always cleared before it forces the MPU to reset. Should the MPU stop executing the proper instruction sequences and fail to clear the Watchdog, the reset will bring the game up in "Game Over". The Clock Generator provides basic timing for the video system and consists of a 12 MHz oscillator and dividers to 4 MHz and 6 MHz clocks. The 12 MHz clock is also applied to the Video RAM Timing Circuit with other derived timing signals to provide timing for access to the Video RAMs. The 4 MHz clock signal derives the E and Q clocks required by the MPU, clocks the Video Address Generator, and, (with the 6 MHz clock), provides timing for the Video Shift Registers. The E and Q Generator divides the 4 MHz clock to produce E and Q clocks. These 1 MHz clock phases provide the timing for the MPU and are also applied to the Video RAM Timing Circuit. The Video Address Generator provides the 14 addresses that scan the Video RAM to produce a frame on the monitor 60 times a second. Function CR, (Clocked Reset Not), 1s synchronized with the E clock and holds the counter reset when it is low. When it goes high, the 4 MHz clock is counted to produce the addresses. The addresses are applied through the Vertical Decoder and Video Address Multiplexer to scan the Video RAM banks. In addition, an output is applied to the Watchdog circuit and outputs are decoded to provide horizontal and vertical sync for the Color Monitor and blanking in the Vídeo D-to-A Driver. The Screen Control reverses and inverts the screen image for player 2 in a cocktail table game. Its signal is applied to the Vertical and Horizontal Decoders, as well as to the Video Shift Registers. The three RAM Banks are scanned simultaneously by the Video Address Bus, and individually by the microprocessor. The Video RAM Control Circuit accepts microprocessor address bits A8 through A15 to address a PROM. The PROM provides pseudo-address bits PA8 through PA13, and E and WE (Enable Not and Write Enable Not) functions. This control circuit al- lows the microprocessor to access the Video RAM Banks individually with seguen- tial addresses. The circuit also provides multiplexing signal MUX 1 to the Video RAM Address Multiplexer. The Video RAM timing circuit uses the 12 MHz, E, and Q clocks to produce Video RAM timing. Each Video RAM bank provides 16K address locations, and is accessed with seven address bits at a time. The memory in the RAM is configured in a matrix with 7 of the 14 address bits latched in to select a row in the memory matrix and then the remaining 7 address bits latched in to select a column. Function RAS (Row Address Select Not) and CAS (Column Address Select Not) latch the addresses into the RAM at the proper time. Functions MUX 1 from the Video RAM control circuit and MUX O pass high, and low-order video address bits for video access, also low-order microprocessor address bíts and pseudo-address bits for microprocessor video access. Function SRL (Shift Register Load Not) latches the data outputs from the three RAM Banks into the Video Shift Register after each video access. Function WE is produced at an appropriate time during microprocessor access to enable the WE (Write Enable Not) outputs from the Video RAM control circuit. The Video RAM Address Multiplexer uses the MUX 0 and MUX 1 signals to place ap- propriate addresses on the Memory Address Bus (MAf through MA6) for latching by the RAS and CAS signals. MUX O MUX 1 ADDRESSES RAM LOW LOW UP AD, Pseud.A8-A13 Row HIGH LOW UP Al-A7 Column LOW HIGH VAO-VA6 Row HIGH HIGH VA7-VA13 Column Video RAM is accessed by the Video Address Bus every microsecond and the data is latched into the Video Shift Register. When the microprocessor reads from RAM, the E (Enable Not) signal from the Video RAM control circuit latches the data from the appropriate RAM Bank into the MPU Data Bus. The Video Shift Registers load the data from the RAM Banks into shift registers. Functions SRL (Shift Register Load Not) and the 4 MHz clock synchronize loading of data into the shift register. The 6 MHz clock shifts out the 4-bit sets of data in parallel. The data loaded into the shift registers in sets of four bits define a pixel (picture element). Four bits from RAM Bank 1 are first presented 4 B1EMPIEH WJISÄS eue) O3PJA SUETIITM JO Saanjeeg UFEN * 1-7 əan8ra 751134 22K 297! (D oe Ree J T^? ZENER QB © RSS 42.00 2N4401 PA) IK ZRI, R26 4 TR TO CLOCK GENERATOR 8 (> VIDEO ADDRESS GENERATOR RESET f. TO MPU RESET GATE & CMOS RAM TO PIA'S ON ROM 8 LEGEND: 1. VOLTAGES IN PARENTHESES TAKEN WITH RESET SWITCH DEPRESSED. [^ INTERFACE BOARDS. 2. COMPONENT REFERENCE DESIGNATIONS UNDER VOLTAGE READINGS ARE PROBABLE DEFECTS IF VOLTAGE IS ABNORMAL. Figure 3-1. Reset Circuit of this latch is to provide a fast transition of RESET from its asserted (low) state to its negated (high) state. With RESET high, CR will go high at the next rising edge of E clock, which clocks the high present at the D input of the data latch out to the Q output. Depressing Reset switch, SWl, shorts the charge on C90 to ground. This turns off both 010 and Q9. When 010 turns off it breaks the emitter circuit of Q11, forces it off and breaks the 011/012 latch effect. Since neither O11 or Q9 supplies base drive to Q12, it turns off, and RESET is pulled low by R66, forcing CR low. When the Reset button is released, C90 begins to charge again. From this point, the circuit operates as described in the power-up sequence. The power-down sequence is triggered by either the H2 VDC unregulated supply or the 45 VDC regulated supply dropping below acceptable limits. Since the oper- ation of the sensing circuits is similar, only the +12 VDC sensor is described. During normal circuit operation, ZR1 is biased on, but is operated close to its turn-off point by R48. Some of the current flowing through ZR1 also flows through R49, biasing Q5 on. The collector of Q5 pulls the base of Q6 down to 0.1 VDC, forcing Q6 off. When a power-down (or voltage drop) occurs, ZRl stops conducting as the supply voltage drops. This removes the base bias of Q5, turning it off and allowing R50 to bias Q6 back on. This has the same effect as pushing the RESET button, shorting the charge on C9 to ground, thereby asserting reset outputs RESET and CR. WATCHDOG CIRCUIT (Figure 3-2) The Watchdog Circuit is a timer which resets the MPU if it is not cleared at least once every 133 mSec. To clear the watchdog timer, the MPU writes a specific data byte (3816 or 3916) into address C3FF16 with page O selected. The game program is designed to perform this clear operation reg- ularly, ensuring that the watchdog will not reset the MPU during normal operation. Noise transients and other problems will sometimes cause an MPU to jump out of the normal program sequence. If this happens the MPU will often misinterpret MPU MPU ADORESS DAT, BUS B Op INDICATES MPU INDICATES FAULTY LOCKUP MPU, ROM, OR RAM T f266ms N [= 133 ms UI VY uu | be izs2s SK A9 e| 74133 AT sj = " NC n A6 i o3 WORg TO MPU AS H n RESET GATE A3 A2 2 = WOFF (co!0) [ NOTE: TO DISABLE WATCHDOG RESET, CUT PAD & GROUND INPUT TO 30 GATE.TO RESTORE CIRCUIT REMOVE GROUND AND FLOW SOLDER ACROSS PAD. FROM COLOR RAM ADORESS [> DECODE LOGIC FROM VIDEO = ADORESS COUNTER Figure 3-2. Watchdog Circuit 10 instructions and data, causing it to become stuck in a continuous program loop which has nothing to do with the real intent of the program. Because it is "caught in a loop", the MPU will not clear the watchdog timer, and after 133 mSec, the watchdog circuit issues a WDR (Watchdog Reset Not) pulse to the MPU reset gate. The MPU is forced to reset and begin proper program execution. Function WDFF (Watchdog Flip-Flop) from the color RAM address decode logic is gated with the MPU Address and Data bits as shown. The output of gate ØD goes low when the MPU writes 3816 or 3416 into address C3FF16 with Page O selected. This signal is inverted to clear the Watchdog timer 3C. The timer counts vertical scans from the Video Address Generator Circuit parallel-load pulse at inverter IJ pín 10. If the counter is allowed to count eight vertical scans (133 mSec) without being cleared, its Q4 output will go high, causing WDR to go low, to force an MPU reset. Í Note that there is a speclal pad shown which may be broken, and one side grounded in order to disable the Watchdog circuit. This may be necessary to troubleshoot certain problems if the Watchdog circuit repeatedly resets the MPU. MPU (Figure 3-3) ME The MPU (Microprocessor Unit) address and data busses, and the R/W (Read/Write Not) control signal are buffered because the number of devices loading them would exceed the drive capability of the MPU chip. C4 ,O.luF ES RIS Ria DIEI DIS 47K — 40 MALT 9 (NOTE 2) [RO C1 FROM RESET CIRCUIT < 34 | 1 E ipe E & Q GENERATOR Bs) Ba oig Dia BS-B. 2 “BA aJ (NOTE 1) G&— i = = bo DI Dal as os] NOTES: [s pel |. HAUT a BS-BA ARE USED ON os LATER MODELS WITH DMA ONLY. DE 2. NMI a FIG PROVIDED BY SOME DT CONTROL PANEL INTERFACE MODELS. i I 1 R/ W > i 7 MPU ADDRESS 8US MPU DATA BUS Figure 3-3. MPU 11 The buffers driving the address and R/W lines are uni-directional, transmitting signals from the MPU outputs to the bus. The data bus buffers are bi-directional, transmitting data from the bus to the MPU when R/W is high, and from the MPU to the data bus when R/W is low. R/W is also used by memory de- vices and other peripheral devices during data transfers. During normal operation the buffers are continuously enabled. When a DMA (Direct Memory Access) controller is used, (on later games), the MPU may allow it to drive the busses and R/W control line by asserting BA. This disables the buffers, effectively disconnecting the MPU from the address and data busses, and R/W. The DMA device is then notified by signal BS*BA that it may use the bus- ses. Four inputs to the MPU (HALT, NMI, IRQ, FIRQ) are pulled high by resistors (R14, R13, R12, & R11) to ensure that they are not active unless pulled low by a peripheral device. A low on the HALT input cduses the MPU to enter a halt state, disable its bus buffers and allow the busses to be controlled by another device. At this point BA and BS are asserted: (BABS). As stated above, this output is used on later games with a DMA controller. NMI; FIRQ; and IRQ are interrupt inputs. Asserting any of these signals causes. the MPU to finish its current instruction, save the status of the program being executed, and execute an interrupt service routine. NMI and FIRQ are not used in early-model games. IRQ is supplied by the IRQA and IRQB outputs (4 mSec and Count 240 interrupt respectively) of the ROM board PIA. The E and Q inputs to the MPU are both 4 MHz clock signals, with the Q leading E by 90%. A timing diagram of these signals may be found in the E and Q Generator paragraph. Clamping diodes D12 through D15 prevent the MPU E and Q inputs from being driven more than 0.7 VDC above +5VDC or below ground. The MPU reset gate (60) allows the MPU to be reset by either WDR or RESET. CLOCK GENERATOR (Figure 3-4) The Clock Generator Circuit provides three basic clock frequencies from which all system timing is derived. The 12 MHz clock is divided by two to obtain a 6 MHz clock, and by three to obtain a 4 MHz clock. The 12 Mhz source is a two-inverter crystal oscillator with a third inverter to buffer its output. It is inverted once more to become 12 MHz for the Video RAM timing circuit, and 12 MHz is then inverted to provide a delayed 12 MHz clock for a latch section of 6R. The 6R latch supplying 6 MHz is connected in the toggle mode, with the D input driven by the Q output. The output (6 MHz) changes states on the rising edge of the 12 MHz clock, providing an n output of one half the clock pulse input frequency. The S input is driven by CR, forcing Q to a logic zero as long as CR is low. CR goes high in synchronization with the E clock signal. The 6 MHz output always starts from a logic zero and is in sync with the E clock. Two JK flip-flops (7R) are configured as a divide-by-three counter. Since the K inputs are tied high, the flip-flops toggle when the J input is high during a high clock pulse. If the J input is low during the clock pulse the flip-flop will perform a clear operation (Q = 0,0=1). With the J inputs wired to Q and Q outputs as shown, the circuit has 3 stable states as shown in the timing dia- gram. The output pulse rate is an asymmetrical 4 MHz. To obtain a 50% duty-cycle, the pulse at 7R-6 is used to clear a D latch section of 6R. The rising edge of 12 MHz following this pulse clocks the high at the D input to the Q output, producing a 4 MHz, 50% duty-cycle clock as shown in the 12 12MHz SUS C» BOARD (FOR USE ON LATER MODELS) TO E& Q GENERATOR & œ VIDEO SHIFT REGISTERS TP 7P TALSOA [> VIDEO RAM TIMING CIRCUIT TO VIDEO L> SHIFT REGISTERS Figure 3-4. Clock Generator timing diagram. The Q output provides a 4 MHz signal which is 180? out of phase with the Q output. Note that the 12 Mhz clock used here is delayed to com- pensate for the propagation delay of the 7R flip-flops. E AND Q GENERATOR (Figure 3-5) The E & Q Generator supplies two overlapping clock signals necessary to the operation of the MPU. These clocks are called E and Q. They are both 1 MHz, 50% duty-cycle, and Q leads E by 90? (250 nSec). Since the MPU accesses memory only when the E clock is high, E is also used by some of the memory decoding cir- cuits, the Video RAM timing circuit, and synchronizes the 6 MHz clock and the Video Address generator. The E and Q Generator consists of three D-type latches. The first flip-flop has its Q output wired to its D input causing it to toggle on the rising edge of the 4 MHz clock. The first flip-flop is wired in the toggle mode with its D input tied to its Q output. This produces a 2 MHz output at the Q and Q terminals of this flip-flop. The 2 MHz signal clocks a second flip-flop, also wired in the toggle mode, causing a 1 MHz square wave to appear at its Q output. This is the Q clock signal. The third flip-flop has its D input tied to the Q clock signal, causing its Q output (the E clock signal) to follow the Q clock. Because this flip-flop is clocked by the 2 MHz signal, it is clocked 90? later than the flip-flop provi- ding the Q clock, causing E to lag Q by 90%. See the timing diagram in Figure 3-5. 13 6D-10 (POWER-ON RESET) TO MPU, VIDEO RAM TIMING, DECODING CIRCUIT, 8 POWER ON RESET FROM CLOCK [> GENERATOR | }eS00ns E jo lus — P ux k—250ns Figure 3-5. E AND Q GENERATOR Video Address Generator (Figure 3-6) The Video Address Generator supplies the 14 address-bit which scans the entire Video RAM 60 times each second, reading out pixel codes to the Video Shift Re- gisters. When power is first applied to the system, the Reset circuit asserts CR (Clocked Reset Not), clearing the four 9316 type counters (5J, 5H, 5F, and SE) which generate the Video Address. Function CR is synchronized with the 1 MHz E clock. The generator is a 16-bit binary counter with the most-significant 14 bits used as the Video Address bus. The two least-significant bits of the counter generate a carry to VAO once every 4 counts of the 4 MHz clock, causing VAO to toggle at a 1 MHz rate, hence incrementing (adding 1 to) the video ad- dress once every microsecond. The least-significant 4-bit counter stage (5J) is continuously enabled by pulling its CEP and CET inputs high, allowing it to count the 4 MHz clock whenever CR is hígh. The parallel inputs for preloading the counter are not used and are grounded. The PÉ input is disabled by tying it high. When this first state reaches its terminal count (all Q outputs high), output TC enables the CEP inputs of the three most-significant counter stages. The CET input of the second 4-bit stage (5H) is pulled high, allowing it to count a 4 MHz clock pulse every time the TC output of the first stage is high. (A high TC output indicates a carry from that stage on the next clock pulse). The second and third 4-bit stages (5F and 5E) enable the CET inputs of the next stages in the same manner, causing each stage to count only on a carry from the previous st- age, and since all stages are clocked by the same 4 MHz signal, all outputs change on the same clock pulse. When the last video address (16,38310) is reached, all pixel codes in the Video RAM have been read out to the screen, and the Video Address Generator is ready to reset to count O on the next clock pulse. Since the video address is incremented once per microsecond, the elapsed time from video address zero to video address 16,38310 is approximately 16.4 mSec. 14 iim ES m EFI EUN MR Po Ti Pe Ps PeP ome 5J sue” roof ^ 5H 9316 cEP 9316 me he "| Qj Q2Q3 TC] T CP 000; Qo Qs TC ir iE 9203 TC AAR BE EB 2 š 4MHz cl TT 50-1 {WATCHDOG CIRCUIT) jS Gms us 128u8 sd L d be dus E: a£-5 a ed ye Es 16.6ms RM je 250ms | 3 [9 l | 48-8 SE -15 —elle-250ns Figure 3-6. Video Address Generator At this count, the TC output from stage 5E latches a high at the 4E output. This is gated with the TC outputs from stages 5J and SE to produce a low to the PE inputs of stages 5F and 5E. The next clock pulse preloads these counters to 16,12810 and counting, continuing until 16,38310 is reached a second time, increases the counting time to approximately 16.6 mSec. When TC from 5E goes high the second time, a low is latched at the output of 4E. The following clock pulse advances the counter to all zeroes. The CL input of the latch is connected to VA13, and as VA13 goes low, the latch (AE) is cleared to provide a parallel load at the next full count. The Screen Control applied to A8 of the Vertical decoder provides a top to bottom flip, allowing the second player access to an upright and right-reading image in a cocktail table game. The signal from the Screen Control is also applied to the Horizontal Decoder and to the Video Shift Registers. VIDEO RAM CONTROL (Figure 3-7) The Video RAM Control Circuit allows sequential MPU addressing of the three 10K video RAM banks. With eight low-order MPU Address Bus bits applied to the RAM, the high-order bits access a PROM for generation of psuedo-address bus and bank-enable signals. MPU adddress bits A8 through Al5 are applied to Horizontal decoder PROM 3K and appropriate PA8 through PA13 (Pseudo-Address) bits are produced at the DO through D5 outputs. Bits D6 and D7 provide a bank-select code. MPU Address bits Al4 and Al5 are gated to produce a low enable function for all addresses below C000. (For addresses C000 through FFFF, both Al4 and Al5 are high and MPU access to the RAM is inhibited). The Screen Control applied to A8 of the Horizontal decoder provides a left to right flip of the screen for Player 2 1n 15 FROM € & Q GENERATOR D> MPU wE per as FROM VIDEO RAM TIMING (> FROM MPU [> RAM s IDEO R ADDRESS MULTIPLEXER R/w* TO CMOS RAM & COLOR RAM ADDRESS DECODER e) BEE m WRITE WHEN H (OPPOSITE OF ET PSEUDO ADDRESS BUS u n FS n ; soo] — le 883m MET kf bd SIE TO VIDEO RAM | | —sd250nsk— | ADDRESS MULTIPLEXER 6P-12 PT CIT TREE: rf i REMAINS HIGH PULSES LOW WITH V y V DURING READ WRITE OPERATION IS PLAN WEI WE WES N TO vioeo RAM TO VIDEO RAM DATA LATCHES Figure 3-7. Video RAM Control cocktail table games. The Screen Control is also applied to the Horizontal decoder and to the Video Shift Registers. With both the D6 and D7 PROM outputs low, 1-0f-4 decoder 2F produces a low YO enable signal for RAM Bank 1. A high D6 and low D7 produce a low Yl enable signal for RAM Bank 2; A low D6 and high D7 produce a low Y2 enable for RAM Bank 3. Function R/W (Read/Write Not) is inverted to produce a low during read which is gated with the YO, Yl, and Y2 functions. This pulses El, E2 and E3 low, to en- able Video RAM data latches for Banks 1, 2, and 3. With a write operation, R/W (Read Not/Write) is gated with the E Clock and WE (Write Enable) from the Video RAM Timing Circuit to produce a low from 6P pin 6. The E Clock ensures that the function is in phase with the MPU and WE synchronizes the function to the Video RAM access timing. The low output is gated with the YO, Yl and Y2 lows to produce low WEI, WE2, and WE3 (Write Enable Not) to enable writing to the three RAM Banks. The E Clock is gated to produce a low MUX 1 (Multiplex 1) enabling MPU RAM ac- cess. For addresses from C000 to FFFF, Al4 and Al5 inhibit MUX 1. The inverted R/W function is applied to the CMOS RAM and to the Color RAM Address Decoder. 16 VIDEO RAM TIMING (Figure 3-8) The Video RAM Timing Circuit uses the 12 MHz and E and @ clocks to produce the timing required for access to the Video RAM. The timing for multiplexing seven memory address bits at a time and latching them into the RAMs is required. In addition, a load pulse is produced every microsecond for shift registers that forward video information toward the Color Monitor. The E and Q clocks are applied to Exclusive-OR gate 5R; which provides a high output when one, and only one, input is high. A low output occurs if both inputs are high or both are low. The result is a 2 MHz square wave that is clocked into a 4S data latch section at 12 MHz. The Q output is then clocked into the second 4S latch section to provide the 2 MHz MUX 0 signal. Clocking through the latches provides the phase relationship needed to multiplex the 14 video address bits into two groups of seven memory address bits for RAM rows and columns (and MPU/Pseudo-Address bits into two groups). When MUX O is low, row address bits are selected; when it is high, column address bits are selected. NOTE MUX O is used in conjunction with MUX 1 from the Video RAM Control Circuit. When the MPU is addressing the RAM (any address below C000) and during the high state of the E clock, MUX l is low, selecting the two groups of MPU and pseudo- address bits. When the E clock is low, MUX 1 is high, select- ing the two groups of video address bits. When the MPU is accessing memory locations from C000 through FFFF, MUX 1 is high, regardless of the state of the E clock. During such MPU cycles, video address bits are selected and the RAM is accessed; however, the data read from the RAMs remains isolated from the video shift register and the MPU data bus. TO VIDEO ADDRESS MULTIPLEXER TO VIDEO RAM E TO VIDEO RAM E 5 CONTROL GENERATOR TO SHIFT REGISTER (SR) LOAD CONTROL 8 SR CLOCK INHIBIT FLIP-FLOP CLOC 12 MHz FROM CLOCK — GENERATOR — 6-83.3ns TO VIDEO RAM 8 12 MHz VIDEO RAM DATA LATCH / BUFFERS E 500ns — — 250m a = [J i + le-250 ns + fe 41.6n kai [e 250ns | w 83.308 + [e 250ns 4333505 m > je 167 ns — be 12503 4 — F-2SOns of je 41.6n8 ER a = e - has Figure 3-8. Video RAM Timing 17 Outputs of the 4S latches are gated to produce RAS (Row Address Select Not). As this function goes low (always during the low state of MUX O, row addresses are latched into RAM. The 12 MHz clock is inverted to delay the 2 MHz signal from the second 4S latch by approximately 42 mSec, producing CAS (Column Address Select Not) and WE (Write Enable) signals. As function CAS goes low (always during the high state of MUX 1), column address bíts are latched into RAM. The high state of WE causes the Video RAM Control Circuit to produce write-enable signals to the Video RAM during the MPU write operation to the Video RAM. The Q Clock, function WE, and RAS are gated to produce function SRL (Shift Register Load Not). This function pulses low every microsecond to load data from the RAM into the shift register. VIDEO RAM ADDRESS MULTIPLEXER (Figure 3-9) This circuit multiplexes 14 video address bits; 8 MPU, and 6 pseudo-address bits, seven bits at a time, to provide row and column RAM memory address bits. Video, MPU, and pseudo-address bits are applied through multiplexer chips and selected with proper timing for the Video and MPU systems. Access is with the video system reading and refreshing the screen, the MPU system writ- ing to define the Color Monitor display, and reading/writing from/to the portions of RAM that are off-screen and used for scratchpad memory. The multi- plexer circuit consists of four dual 4-to-1 multiplexers. With MUX O and MUX 1 both low, PA8 through PA13 and AO (applied to the IO inputs of 4F, 3G, 3I, and 4H) are placed on the MAO through MA6 memory address bus. When function RAS (Row Address Select Not) goes low, MAO through MA6 are detected into the RAMs. When MUX O goes high, MPU address bits Al through A7 are placed on the MAO through MA6 bus, and then latched into RAM when CAS (Column Address Select Not) goes low. This completes the addressing cycle for MPU access. When MUX 1 goes high, video address bits VAO through VA6 (MUX O low) and VA7 through VA13 (MUX O high) are selected and latched into RAM by the falling edges of RAS and CAS. 18 VIDEO PROM ADDRESS BUS RAS le-d2ns CAS IT ILJA — FROM MUX ! VIDEO RAM FROM MUX 2 VIDEO RAM H © n n w & [=] < > x o X wu z - le 167ns Figure 3-9. Video RAM Address Multiplexer 19 VIDEO RAM (Figures 3-10) The Video RAM is provided by 3 banks of eight 16K-by-1 bit RAM chips. Seven ad- dress inputs on a memory address bus are used to access the memory locations. During video system access, the data outputs are loaded in shíft regísters to provide video information for the monitor. During MPU read operations, data is placed on the MPU data bus; during MPU write, MPU data from the MPU data bus is written into the RAM. Because of the similarity of RAM banks 1, 2, and 3 only bank 1 will be discussed. For an MPU read operation, row addresses are placed on the MAO through MA6 bus and the falling edge of RAS (Row Address Select Not) latches the row address into the RAM. Next, column addresses are placed on the bus and the falling edge of CAS (Column Address Select Not) latches the column address bits. Data is read out of all three RAM Banks. The rísing edge of RAS clocks the RAM Bank Data Bus/bits DIO through D17, D20 through D27, and D30 through D37 into data buffers. Function El (Enable 1 Not) from the Video RAM Control circuit is then applied to the OE (Output Enable) input of data buffer 1M, placing the Bank 1 Data Bus bits D10 through D17 onto the MPU Data Bus. For an MPU write operation to Bank 1, the three RAM Banks are accessed as des- cribed for the read operation and data is read from Banks 2 and 3 onto the Data Bus bits D20 through D27 and D30 through D37. The Video RAM Control Circuit provides WEL (Write Enable 1 Not) and the MPU Data Bus DO through D7 is written into RAM Bank 1. Video system access to the RAM is the same as described for MPU access except that neither El nor WEl is produced. Instead, the Video RAM Timing Circuit causes the three RAM Bank Data Busses to be loaded into shift registers. Note that during MPU access time, when the MPU is accessing addresses above RAM CO00,g-FFFFig, the video address bus accesses the RAM, but the RAM Bank Data Busses are ignored since El, WEl, and the Video RAM Timing Circuit load signal are all inactive. 20 “SANYO Hi09 OL NOWWOD 3MV 40-00 9 9vW-OVW `2 ANYS HOJ JYV S3S3H -LN3HVd NI SNOILYN9ISIO € "Site 34V NYH nv 'Z "SdiHD WY TIY NO SNIJ HAYS JHL OL 03SSn8 3HY 9VW-OVM `N SALON 5U315193M LAHS éadol Z| Sha VIVO (Z1 TANYA WB OJOIA ot N N S N | N À YSA N h MANAANA ~ [+] o ARA AAA A Y TOU LNO9 AVE s 03014 WOH4 DadIA MOV m N ETEM Naa SN si g sı N Gİ A £i €l ol oi eur [or N T Wee eg N HI H] A1 [zi N 4 4 4 N 9 9 9 — — N : oz W e bi v ië bi N = mro sa , 9d q u3x31di LIN ous SSS SAIN RNS SS SS SO SES ESE SENSN, SS rp. (EES) AMOWAN 95 (pea) (e2a) big (sta) (s2a) SiG (920) (924) 910 (284) (420) 210 BAMAAAAAASAAASASAAAAANSAAASAS dIHD WVU 9b TY Figure 3-10. Video RAM 21 VIDEO SHIFT REGISTERS (Figure 3-11) The Video Shift Registers convert the 24-line RAM Bank Data Bus into a 4-bit serial data flow. With information for six pixels (picture elements) on the RAM Bank Data Bus, a load pulse from the Video RAM Timing Circuit places the information into the shift registers and the 6 MHz clock shifts it out to the Color RAM Address Multiplexer through Multiplexer 2M. For upright games and Player 1 in table games, 10 to 40 registers are selected. For Player 2 in table games, Screen Control goes high to select the 1P to 4P registers. The former registers are discussed. When function SRL (Shift Register Load Not) goes low, the RAM Bank Data Busses are loaded into the shift registers. Function SRL also sets the 5S latch section to produce a high clock inhibit. The Dl4 through Di7 bits loaded into the H inputs of the shift registers are available at the QH outputs. The rising edge of the 4 MHz clock clears the 58 latch to permit the following rising edge of the 6 MHz clock to shift the D10 through D13 bits, loaded into G of the shift register, to the OH output. The following four 6 MHz rising edges, clock the D24 through D27, D20 through D23, D34 through D37, and D30 through D33 data bits to the OH output. After l microsecond, a new SRL pulse is produced to load the new data available from the next video system RAM access. This process is continuously repeated as a part of normal game operation. FROM RAM m re ° To? DATA OATA A o TA SHIFT REGISTER BANK3 ANK2 NKI LOAD CONTROL c Bea NN NSS SEE SHT E F2) 4MHZ (SEE SHT | OF a) AVA E LLLLLL 23% ZZ ET 38 BE ASS TES TK EE SSNS SSS Sä ZZZZ AZ 73 ET iB E EL a Ea Z 7 e= 77 48 OIE! ai el 13414 314] sie 13114] 13/4 COEFGH EFFE KELJAN Voeren sick 40 2 yd 30 15. 15/CK FI Tas ON INH 74165 on? 1 E 128. ore INM rts ony? S/L — CK i S/L GK T = S/E i T2 | 7 2 i 1 | Era Eat T N A BUS BANK 3 NH DATA BUS SANRE ZZ OZ ZZ ZZ | Nr us SERİN SEE SHT DE KS [NX NIS NA NBER BIS BEET NSS SS om "Wes iil N + Ë N i N 10F2 i i i IS = — N | E EEN da LR DATA BUS BANK 3 (47 ZELİL ZZZZZ ZÁ N [A AS m <<< ES W DATA BUS BANK2 = www —— N EEN r las 7 BANK IT Ae SIT TPIT AT Ör. iz 13/14] 3] 4 3 4 "PEK 316] 13114] 3] al 316 | ERROL CO EF Gn CDEFGH CDEF GH CDEF GH (SEE SHT IOF 2) DEd EX, raks QM Qa fes one, BK, Mes on E SU çk SA CK SÄ CK J | S/L CK | | n T2 T : I İmei bk il + mn | Figure 3-11. Video Shift Registers 22 COLOR RAM CIRCUIT (Figure 3-12) The Color RAM is accessible to the MPU for storing data to define available col- ors for presentation on the Color Monitor. The circuit continuously accepts four lines of serial address information from the Video Shift Registers to ac- cess the color RAM and places the data out for digital-to-analog conversion to drive the red, green, and blue color guns of the Monitor. During intervals be- tween horizontal traces when the serial information represents data from scratchpad RAM, a blanking signal inhibits the drive to the Color Monitor guns. Functions R/W (Read Not/Write), PSO (Page Select O Not) from the Page Select Decoder (inverted to be PSO), and the E Clock are gated to provide a high to 60 and 6J gates. Function E5 (Enable 5 Not), which corresponds to address C0001g6 and MPU address bit A4 are gated with this high to produce a high WDFF (Watchdog-Flip-Flop) for address COl0jg or a low WCR (Write Color RAM Not) for address C00016. WDFF is applied to the Watchdog Timer. Function E5 is applied to the color RAM address multiplexer to select MPU ad- dress bits AO through A3. RAMs 1C and 2C are addressed with the low WCR, and the state of the MPU Data Bus bits DO through D7 is written into the addressed location. ' TO COLOR RAM | 60 Yız WOFF (COIO) a CONTROL LOGIC A 2| Tan WATCHOOG CIRCUIT FROM VIDEO _ WE * RAM CONTROL ^ 3 FROME 80 E a] 60 Ye | GENERATOR 7411 | FROM PAGE PSO ir 10 [> O SELECT DECODER |" v 8M, FROM PAGE ES 7404 3 4 0 DECODER I^ O FROM HORIZONTAL > BLANK ING BLANKING MPU ADDRESS BUS A4 AQ rmm se — laa alı, — SERIAL O H FROM | < SERIAL | VIDEO SHIFT| C SERIAL 2 10 REGISTERS | cemal 3 m FROM PAGE m, ES G TO VIDEO O DECODER ^^ REENT | MONITOR 3* W/R SIGNALS READ WHEN LOW, WRITE WHEN HIGH. (OPPOSITE OF R/W) Figure 3-12. Color RAM Circuit 23 With ES high, Serials 0, 1, 2, and 3 are passed through the 2E multiplexer to RAMs 1C and 2C for reading. Data Output bits DOO, DOl, and DO2 from RAM 2C are applied to a D-to-A converter for the red gun. With all three bits high, Q3 is cut off and no red gun drive is provided. A low DOO forward biases D9 to turn on Q3 for minimum red gun drive. Low outputs on DOO, DOL, and D02, and com- binations of the three outputs forward bias D9, Dil, and D12 for seven different intensity levels of red gun drive. The green gun circuit is similar, using the 2C DO3 and 1C DOO and DOl outputs. The blue gun circuit accepts the 1C DO2 and DO3 outputs to provide no blue gun drive with both outputs high and three intensity levels with either one or both outputs low. During the intervals that the data on the serial busses represent scratchpad RAM, the BLANKING function goes high and cuts off 04. This removes power from Q1, Q2, and Q3 and no drive is provided to the Color Monitor guns. MONITOR SYNC GENERATOR (Figure 3-13) Horizontal and Vertical sync pulse timing is derived from the video address bus, which advances to the next video address (1 count) every microsecond. The first Horizontal Sync pulse after the game is turned on starts at video address count 56, or 56 uSec after the Video Address Generator begins counting. Horizontal Sync 1s a 4 uSec pulse which occurs once every 64 uSec at the 56th video address count (count 55) of each 64 count horizontal line. Vertical ad- dresses VA3, VA4 and VAS are high, and VA2 low, at horizontal count 55 of each line, causing horizontal sync to be asserted. When the horizontal count reaches 60, VA2 goes high, ending the horizontal sync pulse. The Vertical Sync pulse is a 0.77 mSec pulse that occurs every 16.6 mSec. VA9 through VA13 are gated to produce a hígh vertical sync at vertical count 248. The pulse ends when the Video Address Counter reaches the all-zero count. ADDRESS 16.64 Bus ad l-z3ms e | VAIO 10 va? — 13] WER] aa) VAZ — 1] m» l ZA, YE — VERT. SYNC. ONUR 7486) — > come ed Ut HORIZ. SYNC. [— MONITOR MONITOR SYNC. GENERATION Figure 3-13 Monitor Sync Generator 24 BLANKING CIRCUIT (Figure 3-14) This circuit is used to disable the video output to the Color Monitor when the memory section (scratchpad memory) outside the limits of the Color Monitor screen is being used. Using video address bits VAO, VA2, VAAG, and VAS, as inputs to a quad-input NAND gate 5C, the blanking signal is activated (set high) when the video address bits are all high by a low pulse from 5C-8 to the 4B latch. The blanking signal remains high for 14 microseconds: the time it takes for address bits VAO, VAI, and VAS to reach the proper states to cause pin 6 of 4C to go low. TO VIDEO DRIVERS [= ar cS 53us vA ges mI BLANKING | Sous | besoss 35-6 Figure 3-14. Blanking Circuit PAGE O DECODER (Figure 3-15) The Page 0 Decoder generates enable signals for MPU access of the color RAM, CMOS RAM, Vertical Count Buffer, and Interface Board PIA when Page Ois selected. Function PSO (Page Select O Not) is asserted as long as Page O is selected, and PE-PSO is asserted when the MPU accesses Page Selectable Memory (COOO through CFFF) with Page O selected. When the MPU accesses Page Selectable Memory (C000 through CFFF) with Page O selected, PSO and PE*PSO are both asserted, enabling one-of-four decoder 4K. With A10 and All as inputs, each decoder output corresponds to a 1K segment of the page, and is asserted (low) whenever the MPU accesses an address within that 1K segment. The address shown on each output of the 74139 is the starting address of the 1K segment for which that output will be asserted. Function IPIA is an active high signal and is generated by using a 7427 NOR gate as a negative-logic NAND gate (output is high only when all inputs are low). Note that additional address decoding for the Interface Board PIA is provided on the Interface Board. 25 FROM PAGE SELECT DECODER L FROM ROM/PAGE DECODER > Figure 3-15. CMOS RAM (Figure 3-16) Page 0 Decoder The CMOS RAM has a standby power supply (Bl, B2, B3) to save critical data while main power is off, and a memory protect circuit gating its R/W (Read/Write Not) input to protect the upper 128 locations from being changed while the coin door is closed. When the coin door is open, the data in the upper 128 locations of the CMOS RAM may be changed. When the coin door interface switch is closed, a low is applied to inverter 5B, causing the MP (Memory Protect) signal to go high. Function MP will be low anytime the coin door switch is open or disconnected. Function MP is gated with MPU address bit A7 to produce a WI (Write Inhibit) signal which is asserted anytime the coin door is closed and the MPU is addressing any location from C60016 to C7FFjg. Function WI is gated with the MPU R/W line to provide the CMOS RAM with a R/W signal which will not go low (write) for any of the upper 128 locations (C600 through C7FF) while the coin door is closed. When the coin door is open, MP is negated and no write signal is inhibited. If the MPU is ad- dressing one of the lower 128 locations (C400;6 through C5FF16), A7 will be low and a write signal is not inhibited at any time. Two chip-enable inputs (CE1, CE2) must be asserted to access the RAM chip. Function CE2 is asserted by RESET, which is high during normal operation. CEI is asserted when both E6 and PSÓ are asserted, enabling the CMOS RAM for a data transfer when the MPU addresses any location from C400 to C7FF with Page 0 COIN DOOR WRITE PROTECTION SWITCH CLOSED) Figure 3-16. 26 013 INSBI7 ikards 8! Ba 83 İm amm ilam LSV LSV LEV MPU X W/R SIGNALS ARE READ WHEN — DATA LOW, WRITE WHEN HIGH (OPPOSITE OF R/W) selected. Which of the 256 RAM locations gets accessed is determined by MPU address bits AO through A7. The RAM output buffers are disabled (tri-stated) by R/W when the MPU writes data to the RAM, and enabled when the MPU reads the RAM, thus allowing the RAM input and output bits to be tied together to the bi-directional MPU Data Bus with no drive conflicts. Data-transfers occur over MPU Data Bus bits DO through D3, bits D4-D/ are ignored. Diodes Dl4 and D13 form a switch that connects the CMOS RAM and gate 6H to the higher of the two supply voltages. When main power is on, current flows through D13 from the +5 power supply and Dlé is reverse biased, isolating the standby batteries from the circuit. When the main power is turned off (or fails), and the +5VDC supply drops, D14 begins to conduct as its cathode reaches .7VDC below its anode, and holds the RAM Vec at 3.8 VDC. The +5VDC supply continues to drop to OV, causing D13 to become reverse biased and isolating the 45VDC supply line from the standby supply. When the +5V supply has dropped to approximately 4.75 VDC the Reset circuit as- serts CR, negating the CE2 input of the RAM and disabling any data transfers un- til the main power is on and stabilized. IC 6H and resistor R51 are also con- nected to the standby supply in order to prevent the R/W input of the RAM from going low (write mode) with power off. VERTICAL COUNT BUFFER (Figure 3-17) This buffer provides the program the ability to determine the vertical position of the scan on the monitor. When this circuit is accessed, the high-order 6 bits of the Video Address Bus are placed onto the MPU Data Bus. When the MPU reads from address CBOO, the Page O Decoder provides a low E7 (Enable 7 Not). Function E7 is gated with a low PSO (Page Select O Not) from the ROM Board to place a low on the enable inputs of buffer 3D. Video address bits VA8 through VA13 are then placed on MPU Data Bus bits D2 through D7. MPU +v VIDEO DATA ADDRESS BUS FS s m FROM PAGE SELECT DECODER FROM PAGE O DECODER Figure 3-17. Vertical Count Buffer COUNT 240 (Figure 3-18) COUNT 240 produces an interrupt for the MPU indicating that the scan is at the bottom of the screen. COUNT 240 is applied to the PIA on the RAM Board to produce an interrupt for the MPU. When the video address reaches 15,36010 (Vertical Count 240), VALO through VA13 are all high, causing COUNT 240 to go high. Since VA1O through VAl3 remain high for all video addresses above 15,35910, COUNT 240 will be asserted for approximately 1.3 mSec (until the video address reaches maximum and starts again at zero). Since the screen is "scanned" or "refreshed" 60 times per second, COUNT 240 occurs at a 16.6 mSec rate. 27 VIDEO ADDRESS BUS VA 10 9 ET 9| ac TO ROM IVA12 — | 12] > VAI3 EEE 7421 COUNT 240 BOARD PIA 3 MS -IRQ TO 1J1-3 Figure 3-18. Count 240 ROM BOARD MEMORY SCHEME (Figure 3-19) The ROM board in the DEFENDER game contains the main game program. Figure 4-1 shows a typical pair of memory devices used on the ROM board. The main game program requires that there be 4K memory locations present in or between ICI and 1C4, IC2 and IC5, IC3 and IC6 to contain memory sections labeled D, E, and F. These memory sections correspond to address blocks D000, E000, and FOOO. If ICl is a 2K memory device, then IC4 must be a 2K memory device also to provide the necessary memory locations. When the memory section (D, E, or F) is split this way, the Upper/Lower ROM Decoder LE (Lower-Half Enable Not) is con- nected to pin 18 (CS2: Chip Select 2 Not) of ICl and the Upper/Lower ROM Decoder UE (Upper-Half Enable Not) connected to pin 18 (CS2) of ICA. These signals select the memory section half (D000 or D800). While the memory section half is being selected, the ROM/Page Decoder selects the memory section by supplying a CSI (Chip Select 1 Not) signal to pin 20 of each memory IC (IC1 and IC4) of the section (D) selected. Note that jumpers Wl and W4 must be added when IC1 and IC4 are 2K memory de- vices. These jumpers are needed to make the pin 20 CSI connection common to both ICs and to connect the UE signal as reguired. FROM PAGE SELECT DECODER IC!6-3 [> FROM ROM/ PAGE DECODER Ic26-8f> MAIN PROGRAM LOWER HALF FROM UPPER/LOWER GE ROM DECODER | MAIN PROGRAM UE W4 3 PAGE ENABLE EW LOWER HALF AIO MPU ADDRESS BUS MPU DATA BUS 28 Figure 3-19. ROM Board Memory Scheme When IC1 is a 4K device, IC4 can be used to hold extra game features. (This is the case with IC3 and IC6.) Using ICl and IC4 as an example, pin 18 of ICl is address-bit 11 of the input address, and pin 18 of IC4 becomes the input for the PLE (Page enable lower half not) signal through jumper W3 from the Upper/Lower ROM Decoder. Also, pin 20 of IC4 is independent of ICl pin 20, and is connected to the Page Select Decoder through jumper W2. Table 4-1 shows the two versions of DEFENDER produced. Note that only version 2 has need for jumpers W2 and W4. TABLE 4-1 DEFENDER MEMORY SECTION VERSION VERSION IC 1 2 1 2 1 4K K D000 D000 2 AK AK E000 E000 3 4K 4K FOOO FOOO 4 - 2K - D800 5 45 = - = 6 2K 2K C000/7* C000/7* 7 2K 2K C000/3* Oo C000/3* 8 2K 2K C000/2* COOO/?* 9 2K 2K C000/1* cCOOO/L* 10 2K 2K C800/3* CBOO/3* 11 2K 2K C800/2* c800/2* 12 2K + 2K C800/1* CBOO/1* * Memory Section/Page ICs 6 through 12 contain memory block C000, and all pages thereof. Note that CS 3 (Pin 21) of each IC is tied high through resistor Rl, R2, or R3 so that input is always enabled. SECTION/PAGE SELECT DECODER (Figure 3-20) =: am This decoder provides page-enable signals PSO through PS9 using MPU data bits DO, Dl, D2, and D3. These four bits are BCD input signals to IC17, which, when clocked, presents these bits to pins 15, 14, 13, and 12 of IC13, a BCD-to- Decimal converter. 1IC17 is clocked when pin 10 goes low. This occurs whenever the E clock, R/W input from the MPU, and the memory section D enable signal (Yl of IC15) all go low. IC13 then provides an enable signal to 1 of 10 possible pages selected by the BCD input. Memory section selections are made by ICl5 and MPU address bits 15, 14, 13, and 12. Address bits 12 and 13 provide the selection input, and bits 14 and 15 (which activate once the address is above BFFF) provide a clock pulse from pin 8 of IC18 when both bits are high. When page zero is selected by IC13 (PS0), and memory section C is selected by IC15 (PE), Pin 3 of IC14 goes low, effectively producing PE*PSO for input to the page zero decoder on the CPU/Video Board. 29 2 (| v D| Va Oo SELECTS I OF iO PAGES TO APPEAR AT COOO THROUGH CFFF. PAGE 0 CONTAINS COLOR RAM, CMOS RAM, VERTICAL COUNT BUFFER, AND PIA. PAGES | THROUGH 9 CONTAIN ROM ONLY. EI BS e VVVVVVVVVY la Ld v O O [ — TO PAGE O DECODER (CPU/VIDEO BOARD) [> ENABLES SELECTED PAGE > ENABLES MAIN PROGRAM ROM'S L | >IC26-9,-12 EDMA m TO DMA (LATER MODELS ONLY) PE-PSO 1026-13 TO PAGE O DECODER MPU N s — (CPU/VIDEO BOARD) ADDRESS BUS AA ICI5-I5 ICI6-10 SECTION / PAGE SELECT DECODER Figure 3-20. Section/Page Select Decoder ROM SECTION/HALF DECODER (Figure 3-21) This decoder uses the eleventh MPU address bit (All) and the MPU R/W signal to determine the memory section half to be used by the main program. When address bit All is low, IC19 presents a high to pin 4 of IC18. Then, when the R/W signal is high, the output of IC18 (pin 6) is a low (LE), ena bling the lower half of the memory section selected. When address bit All is high and the MPU R/W signal is high, the pin 3 output of IC18 is a low (UE), enabling the upper half of the memory section selected. FROM MPU ADDRESS BUS © — MAIN PROGRAM LOWER HALF OF 4K SECTION MAIN PROGRAM — UPPER HALF FROM MPU [> OF 4K SECTION Figure 3-21. ROM Section/Half Decoder 30 ROM BOARD PIA/DECODER (Figures 3-22 & 3-23) The PIA decoder uses inputs from the MPU address bus and the Section/Page De- coder. Address bits A10 and All are applied to pins 14 and 13 of IC15 re- spectively. A low output at Pin 9 (Y3) is produced when A10 and All are both high (CCOO) and PE (Page-Enable-Not) from the Section/Page Decoder is low. This Y3 output is then gated with MPU address bit A4 and PSO (Page Select Zero Not) from the Section/Page Decoder to produce RPIA (ROM PIA) (address CC10). The A2 output of IC19 is gated through IC20, and applied to pin 24 of IC22 (CS1). The RPIA output of IC20 is applied to Pin 22 of 1022 (CS0). MPU address bit A3 is applied to Pin 23 of 1C22 (CS2). Data bits O through 7 on the MPU Data Bus are used for, inputs from/outputs to, the coin door switches and sound module. Peripheral register A is used for coin door data and register B is used for sound module control. The program peri- odically reads register A and writes to register B to reguest sounds. Inputs CAl, CA2, and CBl are from the Count 240 circuit, the coin door slam switch, and function VAll from the video address generator. The negative-to-positive transition of any of these inputs cause TROA & B (Interrupt Reguest Not) to go low. The MPU then reads the PIA to determine which input occurred. The CB2 lead is incorporated to provide "handshake" between the MPU chip on the Sound Board; this handshake is not implemented in DEFENDER. MPU address bits AO and Al are applied to Pins 35 and 36 of IC22 for Register select zero and Register select one (RSO and RS1) controls. The R/W signal from the MPU is applied to Pin 21 of IC22 and controls the direction of data flow through the PIA. The E input at Pin 25 of IC22 is the clock source for the chip. The Reset circuit input to the PIA at Pin 34 is used to clear the PIA registers when the game is being reset. FROM SECTION/PAGE ,, PS | IC23 SELECT DECODER RPIA | 6 (CEK) 2) O TO ROM BOARD PIA 5 FROM MPU AIO ADDRESS BUS | 1 — FROM SECTION / PAGE | PAGE ENABLE SELECT DECODER !— fie 45V ICI9 = 140, AZ FROM MPU [52 3 > ° [> TO ROM BOARD PIA (IC22) ADDRESS BUS cla Icio ów pus 7404 44 CO > o! % USED ON LATER MODELS ONLY. ROM BOARD PIA DECODER Figure 22. ROM PIA Address Decoder 31 10F 4 DIAGNOSTIC 330A LED OUTPUTS FROM RESET CIRCUIT [> 16237 FROM E 8 Q GENERATOR [ > = I R/ M SELECT ae PASEAR OE g Vas, UNO voo SOUND MODULE TO/FROM MPU MPU DATA BUS «C 1 INPUT * (> AO 36 C32 FROM MPU [ > Tros Troer ADDRESS BUS < JFROM COIN DOOR SWITCHES FROM E 24 > ROM BOARD PIA DECODER (> = | INPUT FROM EE SS GENERATOR (D> 4 mSEC (van So