Defender Theory Early PCBS (16P-3001 300) Oct 1981
Defender (Red label) (Williams, 1980) · Manual · 38 pages · 13 sections · original scan
16P-3001-300 OCTOBER, 1981
FOR SERVICE...
¢ CPU/VIDEO BOARD Upright Games Only
¢ ROM BOARD Upright or Table Games
¢ INTERFACE BOARD Upright or Table Games
¢ POWER SUPPLY Upright or Table Games
(Refer to 16P-3001-301 for theory on Defender later system boards)
tams ELECTRONICS, INC.
3401 N California Ave., Chicago. IL_ 60618 Cable Address: WILCOIN, CHICAGO (212) 267-2240
CONTENTS
IDENTIFICATION OF EARLY SYSTEM BOARDS ...... i INTRODUCTION ........ 0... c eee eee 1 BLOCK DIAGRAM THEORY ....... eee eee eee 3 DETAILED THEORY ............. 000 c cece eee ees 9 Reset Circuit .... 00... cece tee nent e eens 9 Watchdog Circuit ...... 00. eee 9 Clock Generator .... 0... eee cece eens 12 EandQGenerator .......... cece cette eee eee 13 Video Address Generator ......... 00.0 cee eee eee teens 14 Video Ram Control... 0... eect tenes 15 Video RamTiming ..... 0... cece ee eens 17 Video Ram Address Multiplexer .......... 00.0 eee eee eee eens 18 Video Ram... eee ene 20 Video Shift Registers ... 0... cc eects 23 Color Ram Circuit .... 0.0... cette 24 Monitor Sync Generator... 0.0.0... eee eee 25 Blanking Circuit Page O Decoder CMOS RAM ......... Vertical Count Buffer ......... 2.00.0. . ccc eee eee os COUN 240... cece eee eens 28 ROM Board Memory Scheme ..........-.0. ccc eee ee eee ee eee 29 Section/Page Select Decoder ........... 00. cece eee ee 30 ROM Section/Half Decoder ......... 0... ccc cece eee ee 31 ROM Board PIA/Decoder ........... 0. cc eee eens 32 Interface Board Assembly ......... 000. ccc eee een e eee 33 Power Supply .......... 00 cc ccc cece eee teen ne eee 34
IDENTIFICATION OF EARLY SYSTEM BOARDS
e¢ CPU/VIDEO BOARD SINGLE DECODER ROM, BATTERIES AT UPPER RIGHT.
¢ ROM BOARD 14 AND 16-PIN ICS MOUNTED PARALLEL TO ROM ICS.
e INTERFACE BOARD TOTAL OF FOUR CHIPS PLUS RESISTOR PACK.
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 +27 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 1/0 (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 by the Sound Board.
of MONITOR SYNC, VIDEO SYNC, VIDEO _ |
cPU/VIDEO BOARD INTERFACE BOARD
+5VOC_REG.
SOUND BOARD
~l2VDC_UNREG.
SOUND SELECT
OC REG. +5VDC _REG. LI7VAG (ISOLATED) +l2vDC_RES.
POWER SUPPLY BOARD LINE WW7ye2ovac ‘TRANSFORMER L Te TIT VAG e.3vac (ISOLATED) 4 HOOD GENERAL CAMP ILLUMATION]
Figure 1-1. Simplified 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 Game 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 1 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:
- 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.
- 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 Reset 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 critical 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 specific 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), is 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 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 syne for the Color Monitor and blanking in the Video D-to-A Driver.
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 Al5 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 allows the microprocessor to access the Video RAM Banks individually with sequential 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 0 pass high, and low-order video address bits for video access, also low-order microprocessor address bits 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 appropriate addresses on the Memory Address Bus (MA@ through MA6) for latching by the RAS and CAS signals.
| MUX _0 | MUX_1 | ADDRESSES | |
| LOW | LOW | UP AD, Pseud-A8-Al3 | Row |
| HIGH | LOW | UP Al-A7 | Column |
| LOW | HIGH | VAO-VA6 | Row |
| HIGH | HIGH | VA7-VA13 | Colum |
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 to the Color RAM Address Multiplexer for a pixel. The next 6 MHz clock pulse shifts the other 4 bits from RAM Bank 1. The next two clock pulses shift out
eaempiey we sks awed OaptA SWETTT}M JO SeaNjeag UTeW *[-7Z eaNn3Tq
the bits from RAM Bank 2 and the third and fourth clock pulses, the bits from RAM Bank 3.
Function SRL occurs at a 1 MHz rate, loading sets of four bits into the shift register. The 6 MHz clock shifts the sets of bits out prior to the next load.
The Color RAM Address Multiplexer passes 4-bit sets from the Video Shift Registers to the color RAM. The color RAM is a 16 x 8-bit memory addressed by the four bits. Data stored in the color RAM selects a color for a pixel.
The content of the color RAM is set up initially, and changed during the game by the MPU. When the MPU writes to the color RAM, function E5 (Enable 5 Not) is produced to select MPU address bits AO through A3 through the address multiplexer, and the state of MPU data bits DO through D3 are written into the desired color RAM location.
The 8-bit output from the color RAM is applied to the video D-to-A driver. Three bits define seven intensities for the Red gun, three bits for seven intensities of the Green gun, and the remaining two bits for three intensities of the Blue gun.
The Monitor Sync Generator decodes video outputs from the Video Address Bus to produce horizontal and vertical sync pulses for the Color Monitor. The Horizontal Blanking circuit also decodes Video Address Bus outputs to blank the Color Monitor at the left and right edges of the screen. The Video RAM corresponding to these areas are available to the MPU for “scratchpad” RAM, and the horizontal blanking overlaps the internal Color Monitor horizontal retrace blanking to prevent display on the Color Monitor.
The program is able to determine the vertical position of the_scan on the screen at any time by reading the Vertical Count Buffer. Function E/*PS$ (Enable 7 Not AND Page Select 0 Not) latch the higher order Video Address Bus bits onto the MPU data bus for reading.
In addition, when the trace reaches the bottom of the screen, count 240 is decoded from the Video Address Bus and applied to an I/0 (Input/Output) port on the ROM Board to produce an MPU Interrupt. Also, Video Address Bit All is applied to the I/0 port on the ROM Board to produce a 4 mSec Interrupt.
The Page 0 decoder is provided with Page 0 select functions from the ROM Board and MPU Address leads and enables MPU access to the Interface Board 1/0, the Vertical Count Buffer, CMOS RAM, and the color RAM. The MPU reads and writes to the Interface Board and CMOS RAM, reads the Vertical Count Buffer, and writes to the color RAM.
The CMOS RAM is provided with standby battery power to maintain audit informa-— tion and game adjustments. The CMOS RAM provides 256 4-bit memory locations. Audit information stored in the lower half of the memory, is written to as a part of game operation, and is read from as part of the high score signature attract mode. Game adjustments are stored in the upper half, and during game operation are only read. A “memory protect" switch is held closed when the coin door is closed to provide the Memory Protect function. This prevents writing to the upper half of the memory when the coin door is closed. With the coin door open, writing to the upper half is allowed so that changes to adjustments can be made.
Pages are selected by writing to D$$91¢ with data to select one of up to 1 pages. Address decoding provides chip-selects for the ROMs, for the inputs, and PIA.
The ROM Board PIA scans coin door switches and provides outputs to the Sound Board. This PIA also provides outputs for the diagnostic LEDs. The 4 mSec and Count 249 functions from the CPU/Video Board produce interrupts to the MPU.
The Model Interface Board accepts inputs from player panel switches through a PIA. The Page § Decoder on the CPU/Video Board provides a select-input for the PIA.
7/8
SECTION 3 DETAILED THEORY
RESET CIRCUIT (Figure 3-1) The Reset Circuit ensures orderly start-up and recovery of the game by forcing a reset in response to any of the following situations:
- Power-up (Unit is turned on or power failure has ended).
- Power-down (Unit is turned off or power failure has occurred).
- Reset pushbutton on CPU/Video board is depressed.
- Low line or power supply voltage.
A Reset causes the MPU to start at the proper memory location, disables the CMOS RAM until the MPU is stable, forces all PIA ports to inputs, and synchronizes both the Video Address Generator and the 6MHz clock with the E clock.
Two signals are used for the Reset function: RESET (Reset Not), and CR (Clocked Reset Not). The RESET pulse width (approximately 1 second) is determined by the RC time constant R2/Cl. CR is clocked high after RESET goes high by the next rising edge of the E clock, ensuring that the Video Address Generator and 6MHz divider are synchronized with the E clock when CR goes high.
When power is applied, Cl begins to charge through R2. At this point transistors Q4, Q5, Ql, & Q2 are all off. This allows R10 to pull RESET low, asserting the reset function. Since the CL (Clear Not) input of the data latch which generates CR is tied to RESET, its Q output is forced low, asserting CR.
As the charge on Cl reaches approximately 0.9 VDC, Ql is biased on through Rl and R3. This has no immediate effect, but enables Q2, which will be turned on later. Cl continues to charge, and at approximately 3.0 VDC biases on Q4. As Q4 begins to conduct, it pulls its collector current through R4 and R6, increas— ing the voltage drop across these resistors. When the voltage drop across R6 increases to 0.7 VDC, Q5 is biased on and starts to pull RESET toward +5 VDC.
Since Ql was turned on earlier, there is a current path to ground from the emitter of Q2, causing Q2 to turn on as the voltage on RESET rises. Once Q2 turns on, its collector draws current through R17, increasing the base current of Q5. At this point Q2 and Q5 continue to increase each other's base drive until both transistors are saturated, latching each other in this condition. The purpose
stv +5 UNRES,
2re ost é.8V anaes, ee ZENER 40: +a7v06 " +4.v0e OH i (50-10,50-13,60-1,60-4). . rod, FRoMeso Ii GENERATOR > —— ] a2 7474
| ek | +43.4¥06(0V) | asvoc *8¥ | +3y |
. + Becton. z Grob ‘aanAisw acer |.
| : | a | 1 | |
| a1 | Py | : | |
| 180, | sw | 03 | 2 |
| 3. | Mo. Se com | 2Naso1 | 2 |
Reset
TA_. 10 clock GENERATOR 8 WioE0 ADDRESS GENERATOR RESET ‘TO MPU RESET GATE Becks Faw
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 Cl to ground. This turns off both Ql and Q4. When Ql turns off it breaks the emitter circuit of Q2, forcing it off and breaking the Q2/Q5 latch effect. Since neither Q2 or Q4 is supplying base drive to Q5, it turns off, allowing RESET to be pulled low by R10, forcing CR low. When the Reset button is released, Cl 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 +12 VDC unregulated supply or the +5 VDC regulated supply dropping below acceptable limits. Since the operation of the sensing circuits is similar, only the +12 VDC sensor is described.
During normal circuit operation, ZR2 is biased on, but is operated close to its turn-off point by R66. Some of the current flowing through 2R2 also flows through R65, biasing Q12 on. The collector of Q12 pulls the base of Q11 down to 0.1 VDC, forcing Qll off.
When a power-down (or voltage drop) occurs, ZR2 stops conducting as the supply voltage drops. This removes the base bias of Q12, turning it off and allowing R64 to bias Qll back on. This has the same effect as pushing the RESET button, shorting the charge on Cl 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 C3FF;¢ with page 0 selected. The game program is designed to perform this clear operation regularly, 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 ADDRESS DATA BUS BUS
INDICATES MPU INDICATES FAULTY Lockue MPU, ROM, OR RAM 266m ye 183m8 V io nT mor ‘ fie >it
ARMOR, p worF (colo) NOTE. ‘ECODE LOsIe TO DISABLE MATCHOOG RESET, CUT PAD 8 GROUND INPUT TO 3D GATE.TO RESTORE CIRCUIT REMOVE GROUND AND FLOW SOLDER ACROSS PAD. FROM VIDEO ADERESS ‘COUNTER >>
Figure 3-z. Watchdog Circuit
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 34,6 into address C3FF1¢ with Page 0 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 pin 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.
MPU (Figure 3-3) 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.
| +8v tev tev | +8v | +57 | ty tv |
ry rn
| 2g Snes }ner | ey | a2 | os fos | |
| be Sh bs | = | be | ook | |
| (wore 21 >— BM | | | Sqm FATT p*?. | ; | SS wore |
FRow Rom BOARD > im “<i FROM warcnDo¢ ciRcUIT
| Stas | hs | \ | SS TSLFROM RESET cincuIT |
B
| ie | H | $a | prow e 80 cenenaron |
15] on ‘sv a ray le Se (NOTE I) THA 7408 [13 as 3f vee Je [ss
| ie}, fs | io | wale | oe“ | aoj2 20 | |
| a2] ary (S | he | oofst | theo | ai —2u | |
| ee fo | r | ne | url | 0% | |
| aay 367 fie | ate | othe | ig | S503] | notes: | |
| ass} | ig | us | osl22. | isles 7h, aalS. De | 1. FELT @ 85 +BA ARE USED ON |
| ican) | a | onli | gfe? raze0 868s | Uren MoDeLs wit OMA ONLY. | |
| TOs |e | “stan | lee | lps | [8 06 | 2, NNT. FIRG PROVIDED BY SOME |
| = | mie | Lelers | “al | aef5 or | ‘CONTROL PANEL INTERFACE |
| = | ar | og | les | a2 7 | woes. |
| rd | ore | Her | ef | ||
| = | wake | oxo | |||
| Shas | ar | . |
ato eno rm T
as
as las fa. faz late
Meu RAW
MPU ADDRESS BUS MPU DATA BUS
Figure 3-3. MPU
ll
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 devices 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 tuffers, 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 (R25, R27, R28, & R29) to ensure that they are not active unless pulled low by a peripheral device. A low on the HALT input causes 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: (BA*BS). 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 (5F) 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 4B.
The 4B 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 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 (4C) 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, Q=1). With the J inputs wired to Q and Q outputs as shown, the circuit has 3 stable states as shown in the timing diagram. The output pulse rate is an asymmetrical 4 MHz.
To obtain a 50% duty-cycle, the pulse at 4C-6 is used to clear a D latch section of 4B. 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
lemwe SU
ac-3 ST
40-6
TO VIDEO ADDRESS amaz SS. 2-8 iz GENERATOR 8 TO ROM 7 FES} sete Bonn (ron Use on am CUA Bae ane CATER MODELS) |, qle_|aune__ 10 £80 Generator @ 38 ce VIDEO SHIFT REGISTERS 7aLS04 <r she UN o2
| 38 | 38 | 38 | 7aL804 | |
| 7aLsoa | TaLso4 | 7aLsoa | ca | |
| Re | &3 | she | sNe | |—-t> VIDEO RAM TIMING CIRCUIT |
TT T T2Miz
‘Ene TO VIDEO op. SHIFT REGISTERS cS Fa ot ss
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 compensate for the propagation delay of the 4C 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 circuits, 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-flip. 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 providing the Q clock, causing E to lag Q by 90°. See the timing diagram in Figure 3-5.
R55 3.3K 6D-10 (POWER-ON RESET)
TO MPU, VIDEO RAM TIMING, DECODING CIRCUIT, & POWER ON RESET
FROM _ aMniz clock aM GENERATOR
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 Registers. When power is first applied to the system, the Reset circuit asserts CR (Clocked Reset Not), clearing the four 9316 type counters (2L, 2N, 20, and 2Q) 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 address once every microsecond.
The least-significant 4-bit counter stage (IC-2L) is continuously enabled by pulling its CEP and CET inputs high, allowing it to count the 4 MHz clock whenever CR is high. The parallel inputs for preloading the counter are not used and are grounded. The PE 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 (2N) 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 (2N and 20) 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,3839) 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,38319 is approximately 16.4 mSec.
| +5V | +5 | + | +5V |
ry
| a | tk | fir | aK |
| at | wR | Om |
mT
| lal sel | 5 | sd | | | |, sas) | |
| offi Po iP Ps REP | 9 | P2Ps_FE | Offa POF Pa Ps PEP | 4 |
| Zlcee > ‘2 96 | 2N 936 | eer 20 sie | ace | |
| fcer cP a0 21 2293 r¢}'® | 1Olcer cP a0) 0203 ref! | 1Olcercr a) G23 rq'S VEIN)! | ||
| Eyre" | 3 | 2 yas je | E paps yey | |
| ‘=| ol | | | gol 28) | s|si s/o) | |
| goat | = | Zz x) 5 | >l>| 3/5) | ‘4MHz |
S ol -fajal
| els | alel lel | axel al | Peo | tr |
| Be | BEBE | 3/5/33 | EEEE | tain |
VIDEO ADDRESS BUS tev 3 T Ww m 7434 3c-13
| os | eR | u | 10 | 4» (WATCHDOG |
| aft 5 | 4 | CIRCUIT) |
@ + —16.6ms Sane
| on-s II | IL | an-is IL | Jl |
16.6me
—vle25ons
Figure 3-6. Video Address Generator
At this count, the TC output from stage 2Q latches a high at the 5H output. This is gated with the TC outputs from stages 2L and 2Q to produce a low to the PE inputs of stages 20 and 2Q. The next clock pulse preloads these counters to 16,1289 and counting, continuing until 16,3839 is reached a second time, increases the counting time to approximately 16.6 mSec.
When TC from 2Q goes high the second time, a low is latched at the output of 5H. 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 (5H) is cleared to provide a parallel load at the next full count.
WIDEQ 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 decoder PROM 1G 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 A15 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).
With both the D6 and D7 PROM outputs low, l-of-4 decoder 2F produces a low YO enable signal for RAM Bank 1. A high D6 and low D7 produce a low Yi enable signal for RAM Bank 2; A low D6 and high D7 produce a low Y2 enable for RAM Bank 3. The case of both bits high producing a low SMC (Special Multiplex Control Not) is not implemented in the system.
FROM E80 GENERATOR E>£ ———_____ meu we ogress FROM VI0EO RAW TiwING t>-ME —__, BW From Mey c>S/H sé aba | I
| Tol 6F 8 | MUX t | To viogo RAM |
NH 410 ADDRESS MULTIPLEXER,
5E | moe af 6F 2
| u | 10 | 1 7410 | |||
| | | BK | 4, | L | Awe | To CMOS RAM 8 |
| pet | + | covon hast RoDRESS DECODER |
t TO VIDEO RAM BANK 3
az 1g ost ® ae las s1ex0 na is Feat oshis S n FROM MPU ADDRESS BUS ww | Ir = { t ddd dd 4| sy ac] [ae ise) (ease id
j al | alu Cs00m—5 “| ase yi yi 3 we Le SLO
vy a ls
To vine Raw to | —r!250nehe— [ t i A f jaa elas oafit lars} uf adh tL aii) js 34 al” 1 Le = iT |* , *Z/W SIGNALS READ WHEN LOW, WRITE WHEN ti (OPe0sTE OF aH) PSEUDO ADDRESS BUS
<E 1
MUCTIBLEXER eee >? REMAINS WIGH “PULSES LOW wiTH v DURING READ WRITE OPERATION. wee wes Q To VIDEO RAN To vioEO RAM DATA LATCHES J Bs
Figure 3-7. Video RAM Control
Function R/W (Read/Write Not) is inverted to produce a low during read which is gated with the YO, YI, and Y2 functions. This pulses El, E2 and E3 low, to enable 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 6F pin 12. 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, YI and Y2 lows to produce low WE1, 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 access. 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.
VIDEO RAM TIMING (Figure 3-8) The Video RAM Timing Circuit uses the 12 MHz and E and Q 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 4D; 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 3K data latch section at 12 MHz. - The Q output is then clocked into the second 3K 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 0 is low, row address bits are selected; when it is high, column address bits are selected.
ro Mux 0 ADDRESS.
| cw | ct | oh tL | — | |
| | “S Ql | Qs Qa | g Q| | cas. | TO VIDEO RAM |
GENERATOR >
| K | 3k | ee | ||||||
| e. | TaLs74| | raLs7a | 74874 | |||||
| FROM | 4D \3 | 2 | a | 2 | 4 | 5 | we | 70 VIDEO RAN |
| £80 | an) | Can) | loa |
oP. 4 <q TOSHIFT REGISTER 3] oF \,8 SRL, (SR) LOAD CONTROL 5] 7410 & SR CLock INHIB:T FLIP-FLOP
TO VIDEO RAM 8 VIDEO RAM DATA LATCH / BUFFERS SH pt 83.3ns 12 WHE
= be280%5 @ FT kesons 40-3 i 41.6ns 4 -250ne es A ee eee I ee al Renae ye escie oe | “1 333ns estas. TL Se ee
i | rs He 41.6 ns, i be ys ol
Figure 3-8. Video RAM Timing
Outputs of the 3K latches are gated to produce RAS (Row Address Select Not). As this function goes low (always during the low state of MUX 0, row addresses are latched into RAM. The 12 MHz clock is inverted to delay the 2 MHz signal from the second 3K 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 bits 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 writing 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 multiplexer circuit consists of four dual 4-to-1l multiplexers. With MUX O and MUX 1 both low, PA8 through PA13 and AO (applied to the 10 inputs of 3L, 3N, 30, and Q3) are placed on the MA@ through MA6 memory address bus. When function RAS (Row Address Select Not) goes low, MAO through MA6 are detected into the RAMs. When MUX 0 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 0 low) and VA7 through VA13_ (MUX O high) are selected and latched into RAM by the falling edges of RAS and CAS.
This page reads as a drawing: its text was drawn rather than typeset, and comes out in fragments. See the original scan.
VIDEO RAM (Figures 3-10A and 3-10B.) The Video RAM is provided by 3 banks of eight 16K-by-1 bit RAM chips. Seven address inputs on a memory address bus are used to access the memory locations. During video system access, the data outputs are loaded in shift registers 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.
RAM Banks 1 and 2 are depicted in Figure 3-10A and RAM Bank 3 in 3-10B. RAM Bank 3 differs from RAM Banks 1 and 2 only in that data bits and write-enable functions for MPU write operations are supplied through the multiplexers. The state of the multiplex-select signal is always high, so Bank 3 is functionally identical to Banks 1 and 2. Because of this similarity, most of the discussion will be provided for Bank 1.
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 rising edge of RAS clocks the RAM Bank Data Bus/bits D10 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 4K, 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 described 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. For an operation concerning Bank 3, the Dl, D2, D5, and D6 data bit inputs to multiplexer chips (6H) and the write-enable (WE3) input to multiplexer chip (6G) are permanently selected. This makes Bank 3 functionally identical to Banks 1 and 2. The two D3 and D7 data bit inputs, and the two Write-Enable-Not signals (WE1, WE2) are never selected. With a high SMC, data bits Dl and D2 are presented to RAMs 6M and 6N, respectively. In likewise fashion data bits D5 and D6 are presented to RAMs 6Q and 6R. The WE3 (Write-Enable-Not) signal is presented through multiplexer chip 6G to the write-enable inputs of RAMs 6M, 6N, 6Q, and 6R. Function WE3 is connected directly to the write-enable inputs of RAMs 6L, 60, 6P, and 6S. 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 C000;¢-FFFF16, the video address bus accesses the RAM, but the RAM Bank Data Busses are ignored since El, WE1, and the Video RAM Timing Circuit load signal are all inactive.
MPU Data BUS.
Di7 (war) je (026) bis (25) pia (024)
MEMORY
FROM virgo , ADDRESS BUS nam aooress &S\NNQ
MULTIPLEXER
cP pi7(o27)__3 2 or 4p pis (026) sve
(SP) pis (025) 7. sos 4K(sK0
p14 (024)
By 4] a 15] 4] 15] 4] t I oe to2e) Is ol 6 or
ban [p10 (020) rail J
Is (023) Di2 (022) DIN(oz [p1d (0207 ca DI DO) VIDEO RAM BANK 1_| (2) DATA BUS. au i To vimeo (6L) SHIFT REGISTERS.
NoTES From vingo ( PMELWE2) 4 — - COMMON TO BOTH BANKS”
an (6N) Figure 3-10A. Video RAM (Banks 1 and 2)
This page reads as a drawing: its text was drawn rather than typeset, and comes out in fragments. See the original scan.
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.
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 6E latch section to produce a high clock inhibit. The D14 through D17 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 6E 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 QH 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 QH output. After 1 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 viDEO RAM BANKS 3 SERIAL)
Jove bio}
IF az e765 | lo sa 03a
Gs ‘DATA BUS BANK 1
SERIAL!
DATA BUS BANK 2
DATA BUS BANKS
of oF lors. on bas| coor [oa Far L 74165 ADDRESS, Hi MULTIBLEXER os} ps5] fos: 3]
cr
SERIAL 2
bie. be loz foze 3 lose ial gt lose 13] cr 5] SERIAL 3
oF 7 sl, is Bl xl. be7| al gr bes! 3), 74165 oral gt 03313]
cr ro
| ay | a | a |
Fy Heaters 57 URL ae ak FRow STULL Se
| Vibe0 sar | io | i | 7 |
| MeMoRY | Fe Je | ay l2595 ge |
| MN | seo} | ee-9 |
incur
FRoW clock GENERATOR
Figure 3-11. Video Shift Registers
COLOR RAM CIRCUIT (Figure 3-12) The Color RAM is accessible to the MPU for storing data to define available colors 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 between 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 0 Not) from the Page Select Decoder (inverted to be PSO), and the E Clock are gated to provide a high to 5F and 5G gates. Function £5 (Enable 5 Not), which corresponds to address C0006 and MPU address bit A4 are gated with this high to produce a high WDFF (Watchdog-Flip-Flop) for address C0101 or a low WCR (Write Color RAM Not) for address C0001 6+ WDFF is applied to the Watchdog Timer. Function E5 is applied to the color RAM address multiplexer to select MPU address bits AQ through A3. RAMs 1C and 10 are addressed with the low WCR, and the state of the MPU Data Bus bits DO through D7 is written into the addressed location.
5 wi TO COLOR RAM x ‘RAM CONTROL >,
| omen nE | ee | | |
| FROM PAGE | we 6 | SE |
‘0 bEcopER > FROM y Homi ZontaL > BLANKING BLANKING MPG ADDRESS aus MPU Dara se aus
oo yA0 al prof 20} sla t— onif$ 2
| an a | oe | Unc or2¢—P2} |
sia i288 orl isha, 4, 232
| ‘po SERIAL 0 | 3) 75287 19 | !4}ao *Seof |
veSies| Eee ————,vlt has Polls
| seeirere | >SERAL 2 | ‘chee | | | a he |
SRA S935 oc |e 1 T Is | rou rage pS J 10 vioeo o'oeebbeR > | — SEEM | howitoR
% W/R SIGHALS READ WHEN Low, WRITE WHEN HIGH, (OPPOSITE OF R/W)
Figure 3-12. Color RAM Circuit
With E5 high, Serials 0, 1, 2, and 3 are passed through the 2I multiplexer to RAMs 1L and 10 for reading. Data Output bits DOO, DO1, and DO2 from RAM LL are applied to a D-to-A converter for the red gun. With all three bits high, Q7 is cut off and no red gun drive is provided. A low DOO forward biases D2 to turn on Q7 for minimum red gun drive. Low outputs on DOO, DO1, and DO2, and combinations of the three outputs forward bias D2, D6, and D8 for seven different intensity levels of red gun drive.
The green gun circuit is similar, using the 1L DO3 and 10 DOO and DO1 outputs. The blue gun circuit accepts the 10 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 Q10. This removes power from Q7, Q8, and Q9 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 is 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 addresses VA3, VA4 and VA5 are high, and VA2 low, at horizontal count 55 of each line, causing horizontal syne 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 high vertical sync at vertical count 248. The pulse ends when the Video Address Counter reaches the all-zero count.
VIDEO ADDRESS. BUS [pasate i vag. 13 VERT. VAIO i} 2R \2 SYNC, 2] 741! MONITOR
16.6ms- + 0.77ms val u jvAI2 Jo} 2R ye Tall jval3__9} “of eais Jin of be aus Vas 5 HORIZ. VA 4 41 3q \6_SYNC.
lJ 7404 vae 9 8
MONITOR SYNC. GENERATION
Figure 3-13 Monitor Sync Generator
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, VA4, and VA5, as inputs to a quad-input NAND gate contained in IC35, the blanking signal is activated (set high) when the video address bits are all high. This pulse remains high for 14 microseconds: the time it takes for address bits VAO, VAl, and VA5 to reach the proper states to cause pin 8 of IC35 to go low. During this 14 microsecond period, the blanking key signal present at pin 6 of 1C35 changes states nine times. Both the blanking and blanking key signals then remain in ineffective states for a period of 50 microseconds. After this the entire cycle is repeated.
VIDEO ADDRESS BUS
vas 32 4
i BLANKING i) 5 . VIDEO DRIVERS.
55k 83mm Suse Suet uste — Sy —w i ; fy to, papper 2s \8 UU "Lias-6 vas __g| 7400 $—!4s ——} He se [BLANKING 50us becors-+|
Figure 3-14. Blanking Circuit
PAGE 0 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 0 is selected. Function PS0 (Page Select 0 Not) is asserted as long as Page 0 is selected, and PE*PSO is asserted when the MPU accesses Page Selectable Memory (COOO through CFFF) with Page 0 selected. When the MPU accesses Page Selectable Memory (C000 through CFFF) with Page 0 selected, PSO and PE-PSO are both asserted, enabling one-of-four decoder 2E. With Al0 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.
FROM PAGE PSO SELECT DECODER
FROM PE-PSO ROM/PAGE DECODER ae a
Bus All 13]
Figure 3-15. Page 0 Decoder
CMOS RAM (Figure 3-16) 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 1J, 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 C6004 to C7FF]¢. 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 addressing one of the lower 128 locations (C400) through C5FF jg), 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 PSM are asserted, enabling the CMOS RAM for a data transfer when the MPU addresses any location from C400 to C7FF with Page @
+5 on t nei « ingiga 82 82 Bt ip L8v Lsv18v= Gown 0008 ware Protection swircn x ty ae tvevo cLoseo wren row wou pe _| | on boris cus) 7 wow 47K 704 2H \ 3 ci L|7408
meu % W/R SIGNALS ARE READ WHEN OTA Low, WRITE WHEN HIGH (OPPOSITE OF R/W1 meu ADDRESS Bus
Figure 3-16. CMOS RAM
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-D7 are ignored.
Diodes D10 and D1l form a switch that connects the CMOS RAM and gate 1K to the higher of the two supply voltages. When main power is on, current flows through D1l from the +5 power supply and D10 is reverse biased, isolating the standby batteries from the circuit. When the main power is turned off (or fails), and the +5VDC supply drops, D10 begins to conduct as its cathode reaches ./VDC below its anode, and holds the RAM Vcc at 3.8 VDC. The +5VDC supply continues to drop to OV, causing Dll to become reverse biased and isolating the +5VDC supply line from the standby supply.
When the +5V supply has dropped to approximately 4.75 VDC the Reset circuit asserts CR, negating the CE2 input of the RAM and disabling any data transfers until the main power is on and stabilized. IC 1K and resistor R12 are also connected 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 CBO0, the Page 0 Decoder provides a low E7 (Enable 7 Not). Function E7 is gated with a low PSO (Page Select 0 Not) from the ROM Board to place a low on the enable inputs of buffer 2K. Video address bits VA8 through VA13 are then placed on MPU Data Bus bits D2 through D7.
meu 48y video bata ADDRESS BUS ‘6 wee fa aed pe gr97 [6 — Fase vaio |’ 74367 Of vas| lve 800 p= le she fle vas Za Wey
FROM PAGE SELECT DECODER 8 FROM PAGE 0 p>£T 9 DECODER vals] valg| vail
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,360,109 (Vertical Count 240), VA1O through VA13 are all high, causing COUNT 240 to go high. Since VA1O through VA13 remain high for all video addresses above 15,35919, 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.
VIDEO ADDRESS BUS
16.6ms VA10 a fs vA iz TO ROM
vals COUNT 240 BOARD PIA
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 ICl and Ic4, IC2 and IC5, IC3 and IC6 to contain memory sections labeled D, E, and F.
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 connected 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 IC4. 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 CS1 (Chip Select 1 Not) signal to pin 20 of each memory IC (ICl and IC4) of the section (D) selected.
FROM PAGE SELECT DECODER TcI3-7 D>—PS FROM ROM/PAGE DECODER Ic15-5 P>200@ +5V -_ RB MAIN PROGRAM ., TE 1K LOWER HALF 107-21
- Tc10-21 FROM UPPER/LOWER | MAIN PROGRAM Ewa. ROW OECODER | “oben MALE” D> Eo} . PAGE ENABLE PLE WS wh er a esifo22
| LOWER HALF | M2 | B10 | I a10 |
|A9_22)ng cs3fet
| o7 | Ag | 23/8 | p7liZ__o7 | |
| De] | a7 | ny | pel S06 | |
| 2 | os] | as | 21,5 Ici pal5 | 5 |
| Bfas 28092K pale | 04 | as | 3/,5 pooo/ek 9 fia | Da |
4K Do00/4K.
| Sjas PAGE 7 osps oe | ra | Aaa | p33 | 3 |
| a3 | oz | 4 | Shas | oe |
| ai | oo] | re | AL | 00} |
MPU ADDRESS BUS
MPU DATA BUS
Figure 3-19. ROM Board Memory Scheme
When ICl is a 4K device, IC4 can be used to hold extra game features. In this case, 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 currently available. 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 | 2K | D000 | | D000 |
| 2 | 4K | 4K | E000 | E000 |
| 3 | 4k | 4K | F000 | F000 |
| 4 | - | 2k | - | D800 |
| 5 | - | = | - | - |
| 6 | 2K | 2K | c000/7* | c000/7* | |
| 7 | 2K | 2K | c000/3* | C000/3* | |
| 8 | 2K | 2k | c000/2* | co00/2* | |
| 9 | 2K | 2K | c000/1* | c000/1* | |
| 10 | 2K | 2K | C800/3* | Cc800/3* | |
| ll | 2K | 2K | €800/2* | cg00/2* | |
| 12 | 2K | 2K | ©800/1* | C800/1* |
L __ |
- 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) 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. IC17 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 (¥1 of IC15) all go low. 1C13 then provides an enable signal to 1 of 10 possible pages selected by the BCD input.
Memory section selections are made by IC15 and MPU address bits 15, 14, 13, and
- 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. If memory section E000 through EFFF is selected, and the MPU R/W signal goes low, the EDMA (Direct Memory Access Enable) Signal is produced by IC14 and IC19. When | page zero is selected by 1C13
(P30), . and memory section C is selected by IC15 (PE), Pin 1l of IC16 goes low,
effectively producing PE*PSO for input to the page zero decoder on the CPU/Video Board.
| +5V | +5V | cls |
e108 rci3 7}2 fst saci) L | 2037p Seo | sevects 1 oF 10 paces 10 : [7 ___ se
| oo | . | ae | a | | app aR ar cooo THROUGH |
| A | A | PSS | CPrF. PAGE O CONTAINS | ||
| A | 14 ls | iS. | Pi | COLOR RAM, CMOS RAM, |
| 5 | 7 | la | Beae | VeRrical COUNT BurrER, | |
| 3 | él | jc | 3 | a AND PIA. PAGES | THROUGH |
| oo | ee Es | F525, |9 CONTAIN ROMONLY. |
01M Pan pa
| #2 | ah | P50 |
ono
= To PAGE 0 DECODER (CPU/VIDEO BOARD)
| PAGE ENABLE | + | £000 | ENABLES SELECTED PAGE |
000, £000 ENABLES MAIN PROGRAM ROM'S: FOOO 7, 4 20,0000 yo19 10 LTs08
| ) F582 8 13} | 12 | EDMA | TO DMA |
- 7432 (LATER MODELS ONLY) Ty
| - | ~ | 1e2o4e—_+ 42 | FEPSO |
| aw | 7 | To PAGE 0 DECODER |
sad From meu eI IC20-11 3 E> > (Spurvideo BOARD) ADDRESS 3US PE xcla-2 Tola-a 1015-8 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. Also, the page-enable (PE) signal from the Section/Page Decoder is gated with the section half-enable signal to produce a page-enable signal for the memory section half that is used.
When address bit All is low, IC19 presents a high to pin 5 of IC18. Then, when the R/W signal is high, the output of IC18 (pin 6) is a low (LE), enabling the lower half of the memory section selected. This signal is then gated with the PE signal through IC14, and when both inputs are low the output of IC14 (Pin 6) provides a low (PLE), which is the page-enable signal for the lower half of the memory section.
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. This signal is then gated through IC14 as above to produce, at pin 3, (PUE), the page enable signal for the upper half of the memory section selected.
MAIN PROGRAM age LOWER HALF. OF 4K SECTION 7404 FROM MPU PAI 1 2. ADDRESS BUS PAGE ENABLE LOWER HALF OF 4K SECTION
WAIN PROGRAM 1 OF 4K SECTION
| = | Icis | \ |
Rie FUE_, PASE ENABLE FROM MPU Dew _|_21 7400 JS PUES UPPER HALF OF 4K SECTION PAGE ENABLE FROM : ROM/PAGE DECODER
Figure 3-21. ROM Section/Half Decoder
ROM BOARD PIA/DECODER (Figures 3-22 & 3-23) The PIA decoder uses inputs from the MPU address bus and the Section/Page Decoder. Address bits Al0 and All are applied to pins 14 and 13 of IC15 respectively. A low output at Pin 9 (¥Y3) is produced when Al0 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).
Address bits A2, A3, and A4 are inverted through IC19 and then gated with Y3 through IC20 to produce the RDMA (ROM Direct Memory Access) signal.
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 IC22 (CSO). MPU address bit A3 is applied to Pin 23 of IC22 (CS2).
Data bits 0 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 periodically reads register A and writes to register B to request sounds.
Inputs CAl, CA2, and CBl from the Count 240 circuit, the coin door slam switch, and function VAl1 from the video address generator. The negative-to-positive transition of any of these inputs cause IRQA & B (Interrupt Request 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 ,_ PSO SELECT DECODER =>
[> TO ROM BOARD PIA FROM MPU ADDRESS BUS
FROM SECTION/PAGE SELECT DECODER
ADOReSS BUS me ts A? 5 To ROM BOARD PIA (1622)
cia To2, + W474 pA ae i 10 % USED ON LATER MODELS ONLY.
ROM BOARD PIA DECODER Figure 22. ROM PIA Address Decoder
Lora DIAGNOSTIC +5V 330. LED OUTPUTS
a To meu <<} #0 x
FEET 34 FROM RESET CIRCUIT FROM E 8.0 GENERATOR [>-E 2 ¢ souND. From Mpu [> 84 2 aw uTPuts | To/From TO/FROM MPU (MPU DATA BUS <input %| SUN? MODULE a0 Ed ww TL Al From meu | [>St———*) ADDRESS BUS os a3. FROM COIN DOOR SWITCHES Rom BoARD 40
eno = Icla 47K a 7404 OM VIDEO 4msec (VAIN) = 312. {INPUT Fi AponESS Generator L> i T <Q coin Doon’SwircHEs FROM COUNT 240 GATE [>> COUNT 240 Toropr c39 + “a7opF |470pF + THIS INPUT IS PROVIDED FOR SOUND MODULE BUSY STATUS, USED ON LATER MODELS.
Figure 23. ROM Board PIA
INTERFACE BOARD ASSEMBLY (Figure 3-24) Chip ICl, a PIA, is used to interface player switches with game circuits. MPU Data Bus bits 0 through 7 are used to connect the inputs to the MPU. The MPU R/W signal controls the direction of data flow. MPU address bit A3 is inverted through IC4 and applied to Pin 22 (CSO) of ICl. MPU address bit A2 is applied to Pin 24, CSl.
The IPIA signal from the Page 0 Decoder is inverted through IC4 and applied to Pin 23, CS2. MPU address bits AO and Al are applied to RSO (ROM Select 0) and RS1 (ROM Select 1); respectively. The E clock is used to clock ICl, and the Reset Circuit input is at Pin 34. +5V
FROM RESET CIRCUIT [
FROM E& Q GENERATOR No
CONNECTION FROM MPU
TO/FROM MPU
| OF 16 INPUTS FROM PLAYER CONTROL SWITCHES (9 USED ON DEFENDER) FROM MPU ADDRESS BUS
470 pFD (Ica) + FROM PAGE O DECODER
14049
A3 ie} FROM MPU ADDRESS BUS r) OC =
Figure 24. Interface Board Assembly
POWER SUPPLY +5VDC Regulated, + 12,-12VDC Unregulated Supplies (Figure 3-25) A transformer secondary provides a nominal 21.4VAC referenced to a center-tapped ground to 4J1. The AC is fused and applied across bridge rectifier BRl. A nominal -14.8 VDC (measured at TP3) is filtered by C6 and applied through 4J2 to the Sound Board for audio amplifier power. Similarly, a nominal +12.8 VDC (measured at TP2) is filtered by Cl2 and applied through 432 to the CPU/Video and Sound Board. The unregulated +12 VDC is applied to a power-on reset circuit on the CPU Board and provides amplifier power and an input to a 5-volt regulator on the Sound Board.
One leg of the AC input is applied to a voltage doubler consisting of C2-C3 and D2-D3 to provide a nominal +27.4VDC to regulator ICl. Resistor Rl and R2 provide the voltage reference of 5.1VDC at IC1-5; the values are critical. The V output at IC1-10 is applied to the base of the 2N6057 series regulator and the unregulated +12VDC to the collector to produce 5.1VDC (measured at TP1) which is applied through 4J2 to the CPU/Video, ROM, and (via the CPU/Video Board) the Interface Board.
With an increase of the +5VDC load, the drop across R6 would be greater and the output would tend to decrease. The voltage fed back to IC1-4 (inverting input) causes the voltage at IC1-10 to go more positive to maintain the +5.1 VDC output Similarly, a decrease in the load causes the IC1-10 voltage to go less positive. The voltage divider consisting of R5 and R13 senses output current and at approximately 5A, applies a current limiting bias at IC1-2, dropping the IC1-10 voltage. If the load approaches approximately 6.2A, foldback current limiting occurs and the current through R6 is limited to approximately 1.3A. Therefore, a low voltage output with approximately 200mV dropped across R6 is an indication of an overload on one of the logic boards (CPU/Video, ROM, or Interface). Resistor R7 aids in the foldback current limiting and diode Dl provides temperature compensation for the current limiting.
LED 1 conducts through R16 to provide an indication of output voltage. Note, however, that should a circuit fault cause a high or low voltage, LED 1 may still be lit.
—-—— Tess eneost le fe ReGuLaten wah ie
Lf} FBP pase Tew)
+8700 Box yh Bik M4001 ssevoc
Soa ee tevae F401 No B wes@4t s+ L i + $ oS 1900 Meo = 432-7.8,9,101 25y ~/apvoc Tre ~rv0c UNREGULATED
wen
Figure 3-25. +5VDC Regulated, +12,-12VDC Unregulated Supplies
+27VDC_ Unregulated and +12VDC Regulated Supplies (Figure 3-26) A nominal 20.9VAC from a transformer secondary is applied through 4J1 where it is fused and applied across bridge rectifier BR2. A nominal +26.6VDC is filtered by C13 and applied out 4J3 for power to the coin lockout relay. The +26.6VDC is also applied to regulator IC2 and pass transistor Ql. The 12.1VDC output (measured at TP4) is applied through 4J2 to RAMs on the CPU/Video Board.
The voltage divider consisting of R9 and R10 provides both a reference voltage and feedback to the inverting input at IC2~4. The V output at IC2-10 is applied to the base of Ql, establishing +12.IVDC at TP4. With an increase of the load on the +12VDC, the voltage at IC2-4 tends to go less positive which increases the voltage at IC2-10 to maintain the output voltage. Similarly, a decrease in the load causes the IC2-10 voltage to decrease.
The voltage divider consisting of R11 and R13 sets a current limiting bias of approximately 1A. Should the load increase to approximately 1.3A, foldback current limiting goes into effect and the voltage at IC1-10 is dropped to a level to allow only approximated 50 mA of current through Ql. Therefore, a low voltage output with approximately 15mV dropped across R14 is an indication of an overload on the CPU/Video Board.
Resistor R8 provides temperature compensation. LED 2 conducts through R17 to provide an indication of output voltage. Note, however, that should a circuit fault cause a high or low voltage, LED 2 may still be lit.
So
427v0¢ aegvoc UNREGULATED > 493-3
| Q | Gpasive | Te4 i2voc |
2N3075, Lao ¥121V0C 9 REGULATED
- { 402-3 5% aw
412.906
Ro RW7 SS0K Tek
| LIK 2% | % | 5% |
2 +uavoc q Cc— 4 Me +7, rr 3 4700MFD evDc 350 3
| c8 | +7206 | jee tev |
| 13_y) __ | a | ‘o.1MFO]ioomFo | LED 2 |
OOF Sov |25V
| 30V | ais | RIO, |
| +14.V00 | 2k | 732K |
| 2% | Ye | oan |
| 4 | 4 | c |
= 402-8
Figure 3-26. +27VDC Unregulated and +12VDC Regulated Supplies
~5VDC_Regulated, 6-3VAC Supplies (Figure 3-27) A nominal 9.1VAC from a transformer secondary is applied to 4Jl. One line is fused and the two lines are applied out 4J3 for general illumination power. On cocktail table games, jumper Wl is open and R15 drops the AC voltage to a nominal 6.3VAC. On upright games, jumper Wl shorts R15 and a dropping resistor on the power panel lowers the AC voltage.
A separate fuse is in one line and the two lines are applied across bridge rectifier BR3. A nominal 10.4VDC is produced and filtered by C14. The Q2 voltage regulator provides a -5, + or -0.2VDC output (regulation to within 50mV) to RAMs on the CPU/Video Board. The regulator incorporates internal current limiting and will drop the output voltage to -1.1VDC with a short-circuited load.
LED 3 conducts through R18 to provide an indication of output voltage. Note, however, that should a fault cause a high or low voltage, LED 3 may still be lit.
{> ci +]c10 VED3 mea “Teewroreg soy fiov. we RIB —svoc tek \2K REGULATED
Rie uLEDS et arom + 6.3VAC RIS, 200, : {> 403-2 ou ow! Loew, 6.3VAC [> 4u3-1
Figure 3-27. -5VDC Regulated, 6.3VAC Supplies