Radie Shaek° | |Servicel\anwa TRS-80 COLOR COMPUTER 2 NTSC VERSION | Catalog Number: 26-3134/3136 CUSTOM MANUFACTURED FOR RADIO SHACK, A DIVISION OF TANDY CORPORATION 9ELE/VELE-97 TABLE OF CONTENTS SECTION | GENERAL 1.1. Introduction 0... cc eee eee ee ree teen ee eens Dee eae 1.2 System Description .. 0... 0. ccc ee ee renee nee e eee eens 1.3 Memory Map .... 0.0... ccc ee ee ee een ee een eee teen eens SECTION II SPECIFICATIONS 2.1 Physical 0... 0. cee eee eee eee eee eee eee eens 2.2 POWEr .. cc ee eee ee ee nee eee eee ee neat neneee 2.3. Technical ... 0... ccc cc eee ee eee ee eb eee eee eee ene ee nenes SECTION HI DISASSEMBLY/ASSEMBLY 3.1. Disassembly ... 0... ccc ce ee eee eee ee ne eee nett ete 3.2 Assembly .. 0... cc ce ee eee ene eee eee eee eee 3.3 64K Upgrade Instructions .. 0.0... eee ee renee ete eee tenes SECTION IV THEORY OF OPERATION 4.1 MC6809E CPU 1... ec ee eee ene teen ne ene eee enene 4.2 Reset Circuit .. ci ee ee eee ee ee eee eet een eee eee eee 4.3 Memory ... 2... cc ccc ce ce eee ee ee eee ee eee eee eee eee ee eee eens 4.4 Video Generation Circuitry (1C8) 00... eee ee ee eee eee tenes 4.5 Artifacting. 0.0... cc ee ete ne ee ee en eens 4.6 PIAS(IC2 and IC7) 0... ce ee tence nent e eee ete t eet e te ntennes 4.7. ROM (IC12and IC13)......... 0.00 e ees Loewe eee tte eee e teas ennees 4.8 Keyboard Interface (IC7) .. 0... cee eee eee e teen ete nent nee ntnenes 4.9 DAC Circuitry (IC3). 0... cc ce cee ene n een ene net eeebnees an 4.10 SALT Circuitry... 0... ee eee e nee eee ene nneeee 4.11 Cassette Tape Format Information ......... 0.00 c cece eee eee teens 4.12 RS-232C Connector (JK3) 2... ee ee eee ee eee eee eee nes 4.13 Cartridge Connector (CN1). 0... 0... cee een eee eet n enn ee nees 4.14 Power Transformer... ... 0... cc eee eee eee eee nee beeen ne enaees 4.15 Joysticks... ee eee eee eee eee eee nee eee b een ennee 4.16 TV Switch Box 5.1 Introduction... cc ee ee eee eee ete e ee eet eee nett n eens 5.2 Video Problems 5.2.1 No Display 5.2.2 NOSYNC 2... ccc ccc ee eee eee eee eee teen eee e eee en ee neees 5.2.3. “Garbage” on Screen .... 0.0... eee eee eee teen eee ene 5.2.4 Clear Screen, No Sign on 5.2.5 NoOColor .... ccc ccc ec eee ee ee eee eee eee eee eee eee e enna 5.2.6 WrongColors .... 0... ccc cece ee eee ent e eee eee e eben enes 5.2.7. No Artifacting Or Improper Artifacting ......... 0.0. c cee eee eee eee anes SR SQ =0] 00] 0 5.3.1 No Keyboard Entry ... 0... cece ee ce eee eee bee ete eevee nese nees 5.3.2 Some Keys Inoperative .. 0... et ee eee eee eee teeter eee ene neees 5.3.3. Wrong Character for Key Pressed ........ 0c cece ccc cee e eee e en eeeeeenes 54 Processing Problerns .. 0.0.0... cc cc cee ee cet eee teen beeen atta tenes 52 5.4.1 General oe eee eee eee ee te eee nee e ene e eee tent tenner 52 BA? Symptoms 2.0... 0. cc ee eee ee eee bette eee nent eee ne eee n nea 52 5.5 Cassette Problerns 0... ee ce ete ete e eee een t ees 54 5.5.1 Motor Control Problems... 00 ce eee eee eee net tenes 54 5.5.2 Write Problems .........0 00.0005 cence ee ee eee cee eee tee e tenet ee eeeeae 54 5.5.3 Read Problems ..........000: cbc cb ees eee eee ee ees ee sev eevee ereeetaraenes 54 5.6 RS-232C Problems... 2c cc ee ee ee eee eet ee ete eee eee eee ees 55 5.8.1 Output Missing or Incorrect 20... ee tte ee teen ees 55 5.6.2 Input Problems. 0... ee ee ce ee eee eee eee eee teense 55 5.7 Sound Problems ....00. 0.0000 ccc ee ee te ee ene et eee eee eee 55 5.8 Joystick Problems 2.00000. ccc ee ee ee eet eee ete eee et eens 55 6.9 Cartridge Problems 2.0... 0. ce ee ee ee ee ee eee eee 56 5.10 Power Supply ..... See ee cee ch tn eee tet ee ee ne tenet et eee ee ee ene 56 SECTION V! IC INTERNAL CONNECTIONS 22000000 ee eee ete ees 68 SECTION VIIPARTS LIST 000.0. occ ee eet eet eee eee eee eee 78 SECTION Vill SCHEMATIC DIAGRAM .. 2... 0.000 ccc cc ec eee te ee eee tees 86 SECTION IX P.C.B. VIEWS 2006 cc ee ee ence eet e ene te tee eee ees 88 SECTION X EXPLODED VIEW ood ce ere ne ete eens ee cnesnnenes 90 LIST OF FIGURES Fig. Description Page No. 1-1 Color Computer 2 Installation 2... ee ee eee tenet nen eee 7 1-2. Color Computer 2 Block Diagram 2.0... cc ee eect tee eee eee G 1-3. Color Computer 2 Memory Map (Page 1) 2.0... nee een n aes 10 Color Computer 2 Memory Map (Page 2) 20. ce ee ee eens 11 Color Computer 2 Memory Map (Page 3) 20. ee ee tenes 12 Color Computer 2 Memory Map (Page 4) 2.0... ee teenies 14 Color Computer 2 Memory Map (Page 5) 2... eee etnies 15 3-1 GA4K UPGRADE ... 1. ce ne eee eee ees 20 4-1 MC6809E Programming Model... 2.0... ce en tte e eet n eens 23 4-2. MC6809E Pin Assignments... ... 20.0... ee ee eee teen e eee 24 4-3. MC6809E Read/Write Timing at0.89 MHZ 1... ee ee eee 26 4-4 MC6883 Reset Circuitry 0... 0. ce ee eee tee ete eee nees 27 4-5 DRAM Block Diagram ... 0.0... ee nett nee nee e eens 28 46 DRAMTiming ...... 00.0000. ccc cc ee ee ene eens teen e eens 29 4-7 Color Computer 2 Address Decoding ......0 0.0.0.0 ccc ee ee ee eee 30 4-8 Color Computer 2 Artifacting Circuitry 0.0... 00. cc eet ete eee anes 33 4-9 4-10 4-11 4-12 4-13 414 4:15 4-16 4-17 5-1 5-2 5-3 5-5 5-6 5-7 5-8 5-9 5-10 5-11 5-12 5-13 5-14 5-15 5-16 5-17 5-18 Table WN. PIA Block Diagram (MC 6821P, SC 67331P) 2.0... ccc cece tee eee ees 34 Color Computer 2 Keyboard Array... . 0... ccc cee ee eee eee eset ene annus 36 DAC Block Diagram ... 2.0.0.2 keen eee nee nee nen eenne 37 SALT Block Diagram .... 0... eee eee ee eee e eee ete ennenaaa 39 Color Computer 2 Power Supply... .....0 0.0... ccc eee ee een eee ee teen e eens 40 I/O Circuitry... ee eee eee ee tee eee eee ene teen eens 41 RS-232C Connector Pin-Out.. 2.0.0... ccc ce eee eee tee een enenneeeeues 42 Joystick Schematic... 0.0... ccc eee eee ee eee e tee t vate nee en nee 46 Antenna Switch Box Schematic ................0.00 0a See eee e eee eee eee 46 Normal Power Supply... ...... 00. cee ee ee tee eee tne cent tee neaes 60 Defective Power Supply ........ 0.0 ccc cece ee eee teen eee e eee nees 60 High Frequency Component of +5V Source... 0... cece eee eens 61 E and O Clocks. 0... 0... te ee eee tebe teeta bene neenaae 61 VDG Clock (Top) 3.559383 MHZ.... 0... ccc eee eee eee e eee nee naes 62 =) a6 nO = 62 @B and gA Phase... cece eee tent ee eee tenn e eee etenrnenens 63 Band dA Phase... . cc cee ce ee ee eee tee eee eben een stan entrees 63 @B and A Phase... 1... ce eee tee ee eet eee nbn teens 63 Artifacting Signals... 0... ee eee ete eee n eet nns 64 Artifacting Signals... 0.0... cc ce nee e eee nee bene ene enngs 64 Artifacting Signals... 0... ee ete ete een teen ene nnes 64 Address Lines (Typical)... 0.0.0. 00. c cece ce tee eee eee ee ee tenn e tee teeneas 65 Data Lines (Typical) .... 0.0.0... cece cece ete teeta nent ete bene enes 65 RAS and CAS... 1. ec eeee een nent een e et bene eteeeneuens 66 Data In and Data Out Memory Signals ...... nen ee eee nee e te tee ene eeenanes 66 Sound and Cassette Output... . ccc eee eee ett ee eben eee nn neeennnns 67 Cassette Zero Crossing Detector... 0.0... 00 ccc cee eee eee een tae e eet neene 67 LIST OF TABLES Description Page No, Line Printer Variables... 00... ccc cece ccc cece e eet etveveeevnenenenns 44 Alternate Line Printer Variable Values... 0.0.0.0... ccc ccc cc cceuvecucecceuavenes 44 Cartridge Connector Signals ... 0.0.00... ccc cece ce cece ene veneeeveeunnenns 45 SECTION | GENERAL AOILSAOP LHOLY MOILSAOP L441 AAI ASIC ‘ ' Z ¥ALNdWOD YO109 ' = 4 =) Sp c—— f] x0 TTS STI —— | |“"-> [ pee c= J = 30V4IYNALNI Wd iLINW — Wd WV 5D0ud SF LAS NOISIAATSL YAq0HOO3Y 40109 ALLaSSVo YALNIYd Figure 1-1. Color Computer 2 Installation 1.1. Introduction The Color Computer 2 is a refined version of Radio Shack’s popular Color Computer. It is designed to provide the same reliable operation as its predecessor, but incorporates the latest in electronic technology. Interconnection to a printout device, or modem provides maximum versatility of the Color Computer 2, Figure 1-1 shows a typical installation of the Color Com- puter 2. Interconnecting cables are noted which provides signal and control transfer between the major components, Always remember to remove all power from the Color Computer 2 prior to installing any peripheral device to prevent damage to the device or the Color Computer 2. The Color Computer 2 contains an internal BASIC program in ROM which ts accessed when the unit is powered up. Other program modules/ cartridges may be inserted into the receptacle at the right side of the unit. An optional Multipak Interface module allows up to four program paks to be installed at the same time with selec- tion of the specific module active at any one time selected either by software or by a switch on the Multipak Interface module. Additional peripheral devices, such as an external disk drive, may be added to the Color Computer 2 for addi- tional memory storage and retrieval. All inputs to or outputs from the Color Com- puter 2, with the exception of the program module/cartridges, are contained on the rear panel of the unit. These include the joystick inputs (right and left), Serial 1/O, Cass 1/O, TV output connector, Power ON/OFF switch, and RESET switch. A recessed channel switch (for selecting either channel 3 or 4 on the TV) is also located on the rear panel of the unit. 1.2 System Description The primary functions of the Color Computer 2 are performed by five 40-pin Large Scale In- tegration (LSI) chips plus Random Access Mem- ory (RAM) and Read Only Memory (ROM). These five chips are labeled on the Block Dia- gram as CPU, SAM, VDG, and two PIAs. With only these five chips plus Random Access Mem- ory (RAM), Read Only Memory (ROM), and a power supply, the Color Computer 2 will oper- ate and provide a composite video output. How- ever, to allow communication with the outside world, I/O interfaces must be added. The main component of any computer system is the Central Processor Unit (CPU, 1C9). It is the function of the CPU to provide or request data and select the proper address for this data. In addition, the CPU is capable of performing a limited set of mathematical and logical opera- tions on the data. ROM (IC12 + IC13 in Extended Basic) has the function of providing the CPU with a pre- defined set of instructions. Without ROM, the CPU would run wild and randomly execute instructions. In normal operation, the CPU jumps to the start address in ROM after the reset switch has been pressed and then performs the reset program to set up all of the program- mable devices. Following this, the BASIC interpreter residing in ROM is in control of the CPU. RAM (1C14 thru 1C21) provides storage for the programs and/or data currently being executed. In the standard unit, these eight ICs are 16K x 1 but may be upgraded to 64K x 1 ICs as an op- tion. (See Paragraph 3.3 for instructions.) In addition, this same RAM is used to generate the video display. Normally, no conflict will be observed because the program will use one por- tion of RAM and the display will use another. During normal usage, the BASIC interpreter located in ROM will control the execution of programs located in RAM. A central component in the Color Computer 2 is the Synchronous Address Multiplexer (SAM, 1C22). This chip provides refresh and address multiplexing for the RAM. It also provides all of the system timing and device selection. The video display generator (VDG, IC8) pro- vides virtually the entire video interface on one chip and allows several alphanumeric and graphic modes. The mode of operation of the VDG is controlled by one of two Peripheral In- terface Adapters (PIAs, IC2 and IC7)- used in the Color Computer 2. With this information and RAM data, the VDG generates composite video and color information for the modulator circuitry. The remaining circuitry in the Color Computer 2 is devoted to Input/Output (I/O) communica- tion. The most important part of this circuitry is the keyboard which allows the operator to enter information, Other I/O circuits are pro- vided to allow joystick inputs, cassette input and output, and RS-232C input and output. a aquvOsAd> YO.LOANNOO 3NGIHLYVO x4 ‘ 8 e191 ZLOI L _| = Ove" wou wou nc poe fd Ove NOISNWaXx3 oIswa — \ . . I) gov4yaini LLL, Od “Ovd Lad ~ 08d byinoa SLY ~OV sxolusaor i} syauisaor Piha £91 g8L908 = mr — le ov . —— >] | d a |e A l<¢ a ova for | 5 OPH od ad $s . 5 ate ° o Loa 4 ao o |< a |e 8 nN S15 5 tye _ Had NL: a ° > 2 4a~od 7 & | [SORTS mummy? .-§ ra Q ino <— t 7 = As nD | Lvs Nf a “ | Lol 2 }s ; 5 | | Oud a / / 2g | y 2) L 2 y19 5 r | Y 9 re’ s0uLNOD i] sov4uHa.n! v0 ws i OL, ot E yOLOW <1] “aliassvo || z0| 1289 1193 €889 2201 GLY ~ OV. “Tory -ov} _62! 5 ino<=—_4 YATTIOULNOD WV 36089 ~ ] |OWd Wid 190A JINVNAG WS Ps ndd 5 ae me ivd ~Zvd 5 -— g _ 2 o 4a ~od, ; ° 12 ots zS ~0S € Q / / oO , . g 8 * 7a ~oa L 4 £ < . L oO = WN [Aq en) 7 if ° : | —loway 201 Lad ts ~ Ltol LZ ~ pLol 2 |] HOLVYANAD | | 801 oan By 193738 8 X Hp9 40 91 3 17 GNAOS | | 391Aa0 WY DINWNAG zz { AGH ao We iL a Ree ae _ [ g 4a ~0a ASt $91 i i 901 g HOLY LOW ~oaw ” ua4dng yOLVINGOW LO ‘LOI Ls dy its) v~1a Alddn'$ H3MOd ALQL NI DV 1.3. Memory Map The first page of the Memory Map (Figure 1-3) shows the breakdown of the large blocks of memory in the Color Computer 2. One variable in this block is the video display which may be located anywhere in the memory. BASIC nor- mally locates the video display at the hexadeci- mal addresses from 0400 to O5F F--cassette only. The next two pages of the Memory Map explain the addressing for the PIAs. In general, the even numbered memory locations are the I/O regis- ters and the odd numbered memory locations are the control registers. Bit two of the control registers determines what is addressed at the even numbered memory locations. If this bit is set high (logic 1), the data I/O register is ad- dressed. If it is set low, the data direction regis- ter is addressed. Normally, the data direction register is addressed only during initialization to allow configuration of the data inputs and out- puts, By clearing bit 2 and writing to the even numbered memory location one address below, each bit of the PIA may be set as an input or an output. A 1 in the data direction register sets the bit as an output and a O sets the bit as an input. MC6809E VECTORS, SAM <+— 8 BTS ——_ > CONTRO L, ! : J $F FFF EO) MMMM A $FFOO CARTRIDGE ROM }-— —.— —-__l2 &gcooo BASIC ROM J— —— —— —— —- —4< $000 EXPANSION ROM ALTERNATE OPERATING MODE. a — -++~<$s000 RAM +—<$4000 DISPLAY } NORMAL VIDEO 7 $0400 a | | RAM | | 32K ax P| | 16K | — +- 7 75-0600 | Ld Y L YV 4 —<$0000 COLOR COMPUTER USA GE HEX ADDRESS Figure 1-3. Color Computer 2 Memory Map (PAGE 1) —10— ~~ FFOO-FFO3 PIA 1C15 ( BITO= KEYBOARD ROW 1 and right joystick switch BIT 1 = KEYBOARD ROW 2 and left joystick switch BIT 2= KEYBOARD ROW 3 FFOO < BIT3= KEYBOARD ROW 4 BIT 4= KEYBOARD ROW 5 BIT 5= KEYBOARD ROW 6 BIT 6 = KEYBOARD ROW 7 . BIT 7 = JOYSTICK COMPARISON INPUT f BITO Control of the Horizontal 0 = !RQ* to CPU Disabled sync clock (63.5 microseconds) 1 = |RQ* to CPU Enabled BIT 1 Interrupt Input 0 = Flag set on the falling edge of HS 1 = Flag set on the rising edge of HS BIT 2 = Normally 1: 0 = Changes F FOO to the data direction register BIT 3=SEL 1: LSB of the two analog MUX select lines FFO1 < BIT 4=1 Always BIT 5= 1 Always BIT 6 = Not Used . BIT 7 = Horizontal sync interrupt flag ( BITO= KEYBOARD COLUMN 1 BIT 1= KEYBOARD COLUMN 2 BIT 2= KEYBOARD COLUMN 3 FFO2 4 BIT3= KEYBOARD COLUMN 4 BIT 4= KEYBOARD COLUMN 5 BIT 5 = KEYBOARD COLUMN 6 BIT 6 = KEYBOARD COLUMN 7/RAM SIZE OUTPUT . BIT 7 = KEYBOARD COLUMN 8 ( BITO Control of the field sync clock 0 = |RQ* to CPU Disabled 16.667 Ms Interrupt Input 1 = 1RQ* to CPU Enabled BIT 1 0 = sets flag on falling edge FS 1 = sets flag on rising edge FS FFO3 < BIT2=NORMALLY 1: 0O= changes FFO2 to the data direction register BIT 3=SEL2: MSB of the two analog MUX select lines BIT 4= 1 Always BIT 5= 1 Always BIT 6 = Not Used . BIT 7 = Field sync interrupt flag Figure 1-3. Color Computer 2 Memory Map (Cont'd) (PAGE 2} —~1— FF20-FF23 PIA 1014 FF20 < frat FF22 < r FF23 BIT 0 = CASSETTE DATA INPUT BIT 1 = RS-232- DATA OUTPUT BIT 2=6 BIT D/A LSB BIT3=6 BIT D/A BIT 4=6 BIT D/A BIT 5=6 BIT D/A BIT 6=6 BIT D/A BIT 7=6 BIT D/A MSB BIT O Control of the CD RS-232C status Input BIT 1 BIT 2 = Normally 1: BIT 3 = Cassette Motor Control: BIT 4= 1 Always BIT 5= 1 Always BIT 6 = Not Used BIT 7=CD Interrupt Flag BIT 0 = RS-232C DATA INPUT BIT 1= SINGLE BIT SOUND OUTPUT BIT 2= RAM SIZE INPUT BIT 3 = VDG CONTROL OUTPUT BIT 4= VDG CONTROL OUTPUT BIT 5 = VDG CONTROL OUTPUT BIT 6 = VDG CONTROL OUTPUT BIT 7 = VDG CONTROL OUTPUT BIT O Control of the Cartridge BIT 1 Interrput Input BIT 2= Normally 1: BIT 3 = Six BIT Sound Enable BIT 4= 1 Always BIT 5= 1 Always BIT 6 = Not Used BIT 7 = Cartridge Interrupt Flag FF40 — FFBF: Not used 0 = FIRQ* to CPU Disabled 1 = FIRQ* to CPU Enabled 0 = set flag on falling edge CD 1 = set flag on rising edge CD 0 = changes FF20 to the data direction register O= OFF 1=ON HIGH = 16K CHANGEABLE = 64K css GMO & INT/EXT GM1 GM2 A/G 0 = FIRQ* to CPU Disabled 1 = FIRQ* to CPU Enabled 0 = sets flag on falling edge CART* 1 = sets flag on rising edge CART* 0 = changes FF22 to the data direction register Figure 1-3. Color Computer 2 Memory Map (Cont'd) (PAGE 3) The addresses from FFCO to FFDF are the con- trol registers for the SAM address multiplexer chip (1C22). There are no data lines to the SAM chip; therefore, two addresses are used to con- trol each register. In general, writing any data to an even numbered memory location will clear the register and writing any data to an odd num- bered memory location will set the register. Addresses FFCO-FFC5 control the display mode. To select a certain display mode, the display mode control registers (VO-V2) and the PIA (IC2) controlling the VDG chip must all be set to the proper mode. Addresses FFC6 to FFD3 control the display starting address. If all of the registers are cleared, the display will begin at 0000. Normally, register F2 will be set causing the display to start at 0400. This feature of the SAM chip allows the display to be paged through all of the RAM. Register P1 controls a feature which is not used in the Color Computer 2. Therefore, it should be cleared at all times. Addresses FFD6 to FFD9 control the clock speed of the CPU. The Color Computer 2 is de- signed to operate at 0.89 MHz. Therefore, registers RO and R1 should be cleared. Addresses FFDA to FFDD control the memory size setup of the SAM chip. These addresses select 16K or 64K of RAM in the Color Com- puter 2. This memory size option should be changed only by the reset routine in BASIC. Changes at other times may erase the contents of RAM. Register TY, at addresses FFDE to FFDF, controls the map type. If this bit is cleared, the ROMs occupy the upper 32K of the Memory Map with the lower. 32K of address space available for RAM. If this bit is set, the ROMs ‘‘disappear’’ from (are switched out of) the map and all 64K (less the top 256) locations are available for RAM. Caution must be exer- cised in setting this bit. The contro! program must be in low memory and must not return to ROM for obvious reasons. —~13— The final series of addresses in the Color Com- puter 2 are the interrupt and reset vectors. Whenever the CPU receives a reset or interrupt, it will load the address at the indicated location and begin execution at the new location. This dual set of addresses is listed because the vectors are mapped into the top of the BASIC ROM (BFF2-BFFF), For instance, if the CPU reads FFFF it will actually read the contents of BFFF. N.U. 32/64K Dynamic RAMs 16K FFDF NY TY MAP FFDE TYPE (=0) N.U. FFDD N.U. M1 1/110) ¢6 FFDC MEMORY 9.9/1.8 MHz Transparent FFDB SIZE @.9 MHz only | Refresh M@ 1/;0/1;90 FFDA FFD9 R1 1) 1)]6) 6 FFD8 FFD7 RO CPU iloliie FFD6 RATE FFDS =?) P1 PAGE #1 FFD4 FFD3 F6 ) FFD2 FFD1 we F5 FFDG@ FFCF Fa DISPLAY Address of Upper-Left-Most FFCE OFFSET Display Element = 060 + (1/2K Offset) FFCD N.U. F3 FFCC RG6, CG6 (BINARY) i FFCB £9 J 7 RG3 FFCA - CG3 . FFC9 F1 RG2 FFC8 CG2 FFC7 CG1, RG1 FFC6 FO Al. AE, S4, FFCS DISPLAY V2 1 1 1 FECA MODE 1 @,/G/0/6 CONTROL FFC3 V1 1/1/;0;0/)/1/;1/0/)@ FFC2 (SAM) FFC1 V@ 17/0/1/@0)1;0/11/46 FFCO Figure 1-3. Color Computer 2 Memory Map (Cont'd) (PAGE 4) —14~— FFFF OR BFFF RESET VECTOR LSB FFFE OR BFFE RESET VECTOR MSB FFFD OR BFFD ___|NMI VECTOR LSB FFFC OR BFFC NMI VECTOR MSB FFFB OR BFFB SWI1 VECTOR LSB FFFA OR BFFA SWI1 VECTOR MSB FFF9 OR BFF9 IRQ VECTOR LSB FFF8 OR BFF8 |RQ VECTOR MSB FFF7 OR BFF7 FIROQ VECTOR LSB FFF6 OR BFF6 FIRQ VECTOR MSB FFF5 OR BFF5 SWI2 VECTOR LSB FFF4 OR BFF4 SWI2 VECTOR MSB FFF3 OR BFF3 SWI3 VECTOR LSB FFF2 OR BFF2 SWI3 VECTOR MSB FFF1 OR BFF1 RESERVED FFFO OR BFFO RESERVED FFEF-FFEO NOT USED LBS: Least significant bit MSB: Most significant bit Figure 1-3. Color Computer 2 Memory Map (Cont’d) (PAGE 5) —15— SECTION Il SPECIFICATIONS 2.1 Physical Size: Width — 14.75” (37.5 cm) Depth — 10.35” (26.3 cm) Height — 3.15” ( 8.0 cm) Weight: 4.85 Ibs (2.2 kg) 2.2 Power: 120VAC 60 Hz, 0.2 Amps RMS typical 2.3 Technical Microprocessor: Type — Motorola MC6809E Clock Speed -—- 0.89 MHz Memory: RAM: 16K Expandable to 64K ROM: 8K Standard Basic (26-3134) 8K Extended Basic (26-3136), Total of 16K Basic ROM Up to 16K additional ROM (in cartridge) Keyboard: 53-key microprocessor scanned matrix Video: RF Modulated output, channel 3 or 4 32 characters by 16 rows Up to 8 colors Graphic resolution up to 256 x 192 pixels Sound: Sources: Six-bit DAC Single bit Input from cassette recorder Input from cartridge connector Cassette: 1500 Baud, Frequency Shift Keying RS232C: 3-wire interface under software control Joystick: 2 connectors, 2 axes each, DC voltage input of 0.25 to 4.75 volts 64 steps Expansion: 40-pin cartridge connector containing all major CPU signals necessary for interface. -~17- SECTION III DISASSEMBLY /ASSEMBLY —18- 3.1 Disassembly Disassembly of the Color Computer 2 is easily accomplished using only a Phillips screwdriver and a pair of long-nose pliers. Mounting screws for attaching the two halves of the housing are accessible from the underside of the unit. To dis- assemble the computer, follow the steps noted below. 1. Disconnect power and remove signal cables from the unit. Remove cartridge from slot (if applicable). Turn the unit over and place it on a soft sur- face to prevent damage to the keyboard or top cover. Loosen and remove the six (two screws €) and four screws ) mounting screws which attach the base to the top cover. These screws may not easily come out until the unit is turned over. Disconnect from the PCB the cable which is attached to the keyboard. Tag the three wires from the transformer assembly at the left rear of the unit which are attached to the printed circuit board. Re- move the wires using a pair of long-nose pliers. Remove_four (two screws and two screws €5) screws which attach the PCB to the bottom case cover. If it is necessary to remove the shield from the PCB_do so by removing the seventeen clips (2) which attach it to the PCB. Remove the transformer from the unit by re- moving the two attaching screws. Replace- ment of the pigtail fuse assembly should be accomplished using the same type and rating fuse. 2. 3. —19— 3.2 Assembly Assemble the Color Computer 2 in the reverse order of disassembly. The PCB shield is attached to the PCB with metal clips. Five clips ground the shield to the PCB. There are three clips which provide RFI shield ground for the key- board. These shields must be in place to provide proper RFI shielding. When reattaching the wires from the transformer to the PCB, ensure that the wires are installed in the slots of the plastic shield between the transformer and the PCB. This will prevent any damage to the wires or insulation when recon- necting the top and bottom covers, Two dif- ferent types of screws are used to mount the PCB and the top and bottom case parts. Ensure that the correct type is used when reassembling. The strain relief on the power cord consists of a wrap around the plastic bosses at the rear of the unit. Ensure that the power cord is properly routed to afford strain relief to the transformer connections. 3.3 64K Upgrade Instructions To upgrade a 16K Memory Unit to a 64K Mem- ory Unit, the following procedure must be followed: 1. Disassemble the unit as noted in Paragraph 3.1 to allow access to the RAM ICs, IC14 through !C21, Remove these eight ICs from the PCB. Install the 64K x 1 ICs (Radio Shack Part No. 8040665 — total of 8 ICs) in place of the ones removed in !C14 through !C21. Ensure that chips are installed as noted with notch in the proper location. Solder a Jumper wire at terminal J1. (See schematic diagram.) J1 is attached to be- tween IC2 and IC7). Run appropriate diagnostic program to verify proper operation of the new memory chips. Assemble the unit in the reverse order of disassembly. Figure 3-1. 64K Upgrade —20— —21- SECTION IV THEORY OF OPERATION 4.1 MC6809E CPU (IC9) The heart of any computer system is the Central Processing Unit, or CPU. In the Color Computer 2, as well as most modern microcomputers, the CPU is a single Large Scale Integration Circuit (LSI). The CPU gathers instructions and data from memory, interprets and executes the in- structions, and stores the results of the data Operations into memory. Additionally, the CPU stores data to and retrieves data from various input/output (I/O) devices. The 6809E Microprocessor is perhaps the most powerful 8-bit microprocessory available today. There are several ways to determine the ‘‘size’’ of a microprocessor (whether it is 8-bit, 16-bit, 32-bit, or whatever). One way involves the num- ber of data interconnecting lines the processor possesses. Another is the size of the internal registers and the size of the mathematical and logical operations supported by the processor. Although the 6809E has an 8-bit data bus, inter- nally it contains four 16-bit registers and two additional 8-bit registers which may be linked together to form another 16-bit register. The 6809E also supports some 16-bit mathematical and logical operations, Therefore, although it is technically an 8-bit processor, it has some of the power of the 16-bit machines. Figure 4-1 is a ‘‘programmer’s model” of the 6809E CPU. Following is a brief description of the registers and their respective functions. Additional information may be obtained from the 6809E data sheet. The Program Counter (PC) register is a 16-bit register. It is the job of the program counter to keep track of which instruction is next. Instruc- tions for the 6809E processor are from one to five bytes in length. As each instruction is fetched, its specific bit pattern allows internal logic in the CPU to determine the length for that instruction. The PC is then immediately up- dated, even before the remainder of the multi- byte instruction is executed. The Hardware Stack Pointer (S) is another 16- bit register. Its job is to “point” to a specific area of memory that is set aside by the systems programmer for the specific use of the CPU. From time to time, the CPU finds it necessary to “remember” more than it has internal capacity to store. In these cases, it ‘“‘pushes the data onto the stack.'’ Later, when it is ready to retrieve the information, it “pulls the data from the stack.’’ One example of the use of the stack is the execution of a subroutine. Recall that the program counter has already updated itself to contain the address of the next instruction. The Branch to Subroutine (BSR) instruction will alter the contents of the PC. However, after the execution of the subroutine, the CPU is required to return to the next instruction following the BSR. By storing the return address on the stack prior to the altering of the PC, the CPU is able to return to the main program flow upon en- countering the Return from Subroutine (RTS) instruction. X — Index Register Y — Index Register U — User Stack Pointer Pointer Registers S — Hardware Stack Pointer Program Counter Accumulators @ | Direct Page Register Carry Overflow Zero Negative IRO Mask Half Carry FIRO Mask Entire Flag Figure 4-1. MC6809E Programming Model —23- The §S register is also available to the program- mer for temporary storage of data via the Push and Pull instructions. In addition, there is a dedicated User Stack Pointer called the U regis- ter. This register acts the same as the S as far as the pushing and pulling of data by the program- mer, but is not used by the CPU for any of its hardware-related storage requirements. Two additional 16-bit registers are the X and Y index registers. These registers can be used to mark specific points in memory, such as the beginning of a data table, much the same way a book mark can mark the page that is the beginning of the Logarithmic Tables in the back of a math book. Data can then be retrieved from (or stored into) the table by reference to the pointer used. The 6809E CPU (ICQ) contains two 8-bit ac- cumulators, A and B. The accumulators are the main workhorse registers of a CPU, and are the registers upon which most of the mathemati- cal and logical operations are performed. In the 6809E, the two accumulators can be combined to form one double (D) accumulator, which is then a 16-bit register. Another 8-bit register is the Direct Page (DP) register. When memory is accessed in the Direct mode, the most significant eight bits of the address will be taken from the DP register. The Condition Code Register (CC) is best thought of as eight individual bits, rather than an 8-bit group. Six of these individual bits are set or cleared as the result of internal processor operations. The other two bits are used by the programmer to mask out two of the three pos- sible interrupt conditions. The bits are: C — Carry bit. This bit is set when the result of an operation is greater than the capacity of the register to store it. Overflow bit. Similar to the C bit, but it is set when the result is greater than the capacity of the register to store it in “‘two’s complement” notation. Zero bit. This bit is set when the result of an operation is equal to zero, Negative bit. The negative bit is set when the most significant bit (sign bit) of an operation is set. IRQ mask bit. The IRQ mask bit is set by the programmer when it is desired to ignore |RQ interrupts. Half-carry bit. This bit is used by the processor in decimal arithmetic opera- tions. FIRO mask bit. Is set by the program- mer when it is desired to ignore FIRO interrupts. “Entire’’ flag. This bit is set by NMI and IRQ interrupts, indicating that all registers were preserved. It is cleared by FIRQ interrupts, indicating that only PC and CC were preserved. V— Figure 4-2 shows the pinouts of IC9, the 6809E CPU. Note that there are sixteen address lines (AO through A115), These address lines are out- put from the CPU and are used to select one of 65,536 different memory locations. The mem- ory and |/O devices must be wired to accept the correct combination of highs and lows on the address lines. The order of the devices and how they respond to the different lines is called the memory map. m i > Ege Bs a a a Fo4aoikime&®<« 0 ww@eraanoeaedanagate¢e¢€ [1 (1 [81 (51 (8) (8) fS1 18] (5) (1 (8) (81 (81S) (81 £8) (21 1 TSI fe] e Fite Et ts el el ts TENTS 2 Te) Hes) 1J LS) 2) ts] BEE Resse zrrLrLeezz222E8 > ie |e > q < <¢ Figure 4-2. MC6809E Pin Assignments —~24— The CPU has eight data lines (DO-D7). These data lines are bidirectional and are used by the processor to both route data to and retrieve data from memory or I/O devices. The remaining lines on the CPU are used for contro! functions, both input control and out- put control. Of course, the Vcc pin is the power input line to the CPU and the GND line is the return reference for both power and signal. The E and Q lines are the clock inputs to the CPU. These clock signals must be present for the CPU to function. In the Color Computer 2, these signals are provided by the SAM chip and are 50% duty cycle clocks at a frequency of 0.89 MHz. As shown in Figure 4-3, QO is a quadrature clock signal which leads E by 90 degrees. The CPU contains a number of inputs which serve to initiate specific sequences of events. The ones used by the Color Computer 2 are: RESET* — Used on power up and to reini- tialize the CPU. Stops the program flow after the completion of current instruction. Execution will continue after HALT is removed. Non-Maskable Interrupt. Always causes the CPU to “‘interrupt’’ its normal program flow and execute a special ‘Interrupt handler” routine. Interrupt Request. Similar to NMI but may be masked (defeated) by setting the | bit in the CC register. Fast Interrupt Request. Similar to 1ROQ, but masked by the F bit. It is faster because it doesn’t preserve all registers (as do the other interrupts). HALT* — NMI* — IRQ* — FIRQ* — —25— Upon receipt of the RESET signal, or any of the interrupts (if enabled), the CPU will get the ap- propriate subroutine address from the Vector Table (see the map in the Section | — System Description). For the interrupt routines, regis- ters are preserved on the Stack to be restored upon receipt of the RTI (Return from Interrupt) instruction, Other control lines used in the Color Computer 2 are TSC (Three-state Control) and the R/W* (Read/Write) line. The TSC line is an input in- tended for use in a multiprocessor or DMA environment and will cause the Address and Data lines to go into a three-state condition if high. Since the Color Computer 2 does not require multiprocessing, this line is permanently grounded. The R/W* line is an output used by the CPU to inform the external memory and devices whether the data transfer is from the CPU (a write) or to the CPU (a read). Standard 6809E Read/Write timing is shown in Figure 4-3. How- ever, in the Color Computer 2, this timing is modified by the SAM chip so that the addresses are presented to the memory only during the active E time. This presents no problem as long as the memory is sufficiently fast. 1117ns *—_——— 629ns e+ Ni 0.5V 2.4V 2 4V 0.5V 05V > 488ns ————_ 2.4V #—— 279ns ——tm 2.4V \ fe} . 2.4V Rw 2.4V ADDR 0.5V 2.0V _ P3] PAI (ORA) [4] Paz PERIPHERAL 5|PA3 INTERFACE rel Pad 2 = A 7 | PAS © — | PAG 0 BUS INPUT oe REGISTER > 9 (BIR) z2 Ho} PB OUTPUT HO} PBO J REGISTER B » Mis (ORB) i2| P82 PERIPHERAL 13] PB3 INTERFACE hal pea — 8 14 | 22 = 15] PBS 24 -— 16] Pes 23 CHIP 7] P87 * SELECT aed — and aad R/W 21 CONTROL DATA DIRECTION 25) CONTROL REGISTER B — > REGISTER B (DDRB) Ca ees (CRB) INTERRUPT 18] CB1 STATUS Ed CONTROL B 19] cB2 Figure 4-9. PIA Block Diagram MC 6821P $C67331P (6821 Select) — 34— As shown in Figure 4-9, a PIA consists of two 8-bit data registers and 4 control/interrupt lines. The two 8-bit data registers are controlled by two data direction registers. These direction control registers are set up by the reset routine and normally will not be changed. The four control/interrupt lines are controlled by the two control registers. The control regis- ters also handle device selection within the PIA. Two of the four lines function only as interrupt inputs, and the other two lines may be used as interrupt inputs or outputs. PIA IC7 is used mainly for the keyboard. Data register B (pins 10-17) is programmed as an output and is used to strobe the keyboard columns. .The first seven lines of data register A (pins 2-8) are programmed as inputs and are used to read the keyboard rows. Pins 2 and 3 are also used as fire button inputs for the joysticks. The other pins of PIA IC7 serve various func- tions. The most significant bit of data register A (pin 9) is programmed as an input for the joy- stick interface. CA2 and CB2 (pins 19 and 39) are used as outputs. These two lines select one of four joystick or sound inputs. The last two pins of PIA 1C7, CA1 (pin 40) and CB1 (pin 18), are used interrupt inputs. They are both tied to video clock outputs from the VDG (IC8). If enabled, CA1 provides an interrupt after each ‘video line. CB1, if enabled, provides an interrupt after each screen of data (60 Hz). PIA IC2 is used for several different functions. Pins 4-9 of data register A are used for the 6-bit digital to analog converter, Pin 3 of register A is the RS-232C output signal, which is used to drive the printer and other RS-232C-type de- vices. Pin 2 of register A is the input for data from the cassette. Pins 13-17 of data register B are used to control the selection of the various alphanumeric and graphic modes of the VDG. Pin 12 of register B is an input for the memory size jumper. Pin 11 of register B is the single bit sound output. Pin 10 is the RS-232C signal input pin, — 35 — The control and interrupt pins of PIA [C2 also serve various functions. CA1 (pin 40) is the input for the signal CD (a status interrupt input for the RS-232C interface). CA2 is an output used to control the cassette motor. CB1 is the cartridge interrupt input. Whenever a cartridge is inserted into the computer, this input will inter- rupt BASIC and jump to the program in the cartridge. Finally, CB2 is used as an output to enable sound from the DAC chip (IC3). 4.7, ROM (1C12 and 1C13) ROM stands for Read Only Memory, which is a type of memory that retains its data when power is removed from it. When power is ap- plied to the CPU, it immediately attempts to fetch a vector and begin executing instructions. If there were no ROM, the CPU would read random floating states on the data bus, attempt to execute this, and promptly go haywire. The Color Computer 2 contains either one or two ROMs, depending upon whether it is Standard or Extended Color BASIC. Each ROM contains 8K bytes which are programmed to provide the user with certain BASIC commands and func- tions. |1C12 contains Standard BASIC, and IC13 is the socket for the Extended BASIC ROM. 1C12 must always be installed, even in the Ex- tended BASIC machine. Note that all address and data lines, as well as Vcc and ground, are paralleled to the two ROMs. The only line that is independent for each ROM is the CE or chip enable line which is provided by 1C11, the 74LS138, as appropriate. 4.8 Keyboard Interface (1C7) PIA [C7 is the only active component in the keyboard interface circuit. The B side of this PIA is configured as outputs, and connects to the column lines of the keyboard matrix. The A side of IC7 is configured as inputs, and connects to the row lines of the keyboard matrix. PIA IC7 is a select device. The use of PIA compensates for a possible increase in key contact resistance due to prolonged use, and therefore should result in a. highly reliable keyboard interface. To read the keyboard, only one column is enabled by writing a zero in the bit that cor- responds to that column and by writing ones in all the other bits. If a key is being pressed in that column, one of the input lines will be a zero and the key location will correspond to the bit that is low. By scanning each column in the keyboard, all of the keys may be checked. Figure 4-10 shows the keyboard matrix. SES POPOPO GD | 66600000. “sie OOOOOOOO | “ra OO OOOOOD | Figure 4-10. Color Computer 2 Keyboard Array — 36 — 4.9 DAC Circuitry (IC3) Two special analog integrated circuits are used in the Color Computer 2 to implement a multi- tude of analog functions including power supply regulation, cassette operation, the RS-232C serial interface, the joystick interface, and sound production/selection. The DAC chip (IC3) is one of the custom linear integrated circuits used in the Color Computer 2. As its name implies, it contains a Digital to Analog Converter. This chip also contains a sound multiplexer and the circuitry necessary to interface the joystick con- trollers to the microprocessor. Figure 4-11 shows a block diagram of the DAC chip. The DAC itself performs most of the functions of this chip. Six bits of control are used by the DAC to specify a discrete internal analog level. This level is one of the sound inputs to the sound multiplexer. It is also used as a reference for a comparator, the other input of which is one of the four joystick inputs. Finally, the DAC signal is attenuated and used as the cassette recording signal for data storage. Vec There are two select inputs to the DAC chip: Sel A and Sel B. These determine which of the joy- stick inputs is to be compared against the DAC, as well as which sound source is coupled to the sound output pin according to the following table: SelB Sel A Joystick Input Sound Source -=- 00 0 1 0 1 Joy 0 Joy 1 Joy 2 Joy 3 DAC Cassette Cartridge (no sound) The Digital to Analog Converter employs a 64- collector transistor as a current source which gives good linearity over the entire voltage range. In order to determine the position of the joy- stick, the microprocessor uses a technique called “Successive Approximation”. The micropro- cessor first selects the desired joystick input by means of the select pins (which are connected to PIA IC7). AAA Vv AAA.—e vv WEIGHTED CURRENT SOURCES tyiyiry _ = < [3] Do . << 4] D1 2 CURRENT SWITCH Ly Fs] 02 | pata AND « fa] ps f INPUT 1 1/V CONVERTER ~ « 7] pa + [3] 05 Vec 3 BUFFER [ 7] CASS OUT [re > ra|comp. OUT ANALOG } [15 INPUT = "| BUFFER T INPUTS } fia ~ COMPARATOR 73 > ' 11 > anatoc | [1 SELECT ANALOG ND. wauoe a | Loic | switcH [7] SOUND-OUT q ry in 1 a SND SND SND ENABLE I a Figure 4-11. DAC Block Diagram —37-— Next, a value equivalent to the midpoint of the voltage range, 32 decimal for example, is sent to the DAC’s six bit input via PIA IC2. If the DAC output voltage is lower than the joystick voltage, the HI/LO pin of the DAC chip (com- parator output) is low. However, if the DAC voltage is higher, the HI/LO pin is high (logic one). If the HI/LO pin was low, the next value the microprocessor tries is half-way between 0 and the last value, or 16 decimal. If the HI/LO pin was high, the microprocessor tries a value half-way between the last value and 64, or 48 decimal. For each value, the microprocessor either adds or subtracts half the value of the preceding difference, until the final value is found. Since the DAC uses six binary digits, exactly six DAC settings are required to deter- mine the “position” along one axis of the joy- stick. The four joystick inputs to the DAC chip . correspond to two axes for each of two joystick controllers. The sound multiplexing section is very simple. According to the above table, different sound sources are selected by the Sel A and Sel B inputs, and the selected input is routed to the sound output. If the DAC is used as a sound source, the microprocessor simply feeds a suc- cession of values to the six bits of the DAC in order to produce the desired waveshape. The output of the DAC is then buffered and at- tenuated to provide approximately 3.9 volts p-p, which is the level required by the modulator to produce maximum volume. If the cassette is the selected input, then sound from the cassette recorder is routed to the sound output. This level follows the input level up to 3.9 volts p-p, at which point it clips the input waveform. Therefore, the volume control on the cassette should not be set higher than the level which provides 3.9 volts p-p to the DAC chip. Similar- ly, the cartridge may supply the sound source (from AC coupled) since the SND input to the DAC chip biases the input at the midpoint of the allowable voltage swing, which is 3.9 volts p-p. Any greater signal amplitude will result in clipping (distortion) of the sound waveform. — 38 — In addition to the Select inputs, the sound must be enabled by bringing SNDEN to a high level. This input is controlled by PIA IC2. If this pin is at a low level, ali sound (except single bit sound) is disabled. The final function of the DAC chip is to provide the output signal for recording of cassette data. This is, quite simply, a buffered output of the DAC which is attenuated to produce approxi- mately 1 volt p-p into a 2K ohm load. There- fore, it is up to the microprocessor to produce the necessary FSK signals through the DAC and the proper software. 4.10 SALT Circuitry The SALT chip !C1 (Supply and Level Trans- lator) is responsible for supply regulation, RS-232C interface level translation, cassette read operations, and driving the cassette relay, as is shown in the block diagram is Figure 4-12. Figure 4-16 shows the complete power supply circuit. AC voltage is brought into the primary of transformer T1. The secondary of the power transformer provides 17.2 VAC, center-tapped, at 1.8 amps RMS to the Color Computer 2. circuit board. If switch SW1 is closed, this AC voltage is applied to the cathodes of D1 and D2, and to the anodes of D3 and D4. D1 and D2 form a full wave center tapped rectifier with a negative output. This is filtered by electrolytic capacitor C1. This negative voltage is then applied to pin 15 of the SALT chip, where it is internally regulated to -5 VDC and used for the RS-232C output drivers. The negative vol- tage is not used anywhere else in the computer. UNREGULATED +V INPUT [6] D3 and D4 form a full wave center-tapped rectifier with a positive output which is filtered by electrolytic capacitor C2. This positive voltage is applied to the collector of pass transis- tor Q1 and is used to power the SALT chip at pin 16. The SALT chip internally regulates the positive voltage to +5 VDC and provides the base drive current for Q1. The current for the computer is drawn from the emitter of Q1 through resistor R2. The voltage at this point is monitored by pin 3 of the SALT chip and the base drive adjusted to keep the voltage at a steady +5 VDC, +/- 5%. Electrolytic capacitors C5 and C11 are used to prevent oscillation of the power supply. GND Bi] iH, +5 VOLT REGULATOR DRIVER p71] PASS TRANSISTOR BASE DRIVE t 12] PASS TRANSISTOR CURRENT SENSE [3] CURRENT LIMIT UNREGULATED -V INPUT i ~5 VOLT REG L TTL INPUT 1 REGULATED -5 VOLTS |—___-—_», (INTERNAL TO SALT ONLY) FOR RS-232¢ [6] OUTPUT / [12] RS-232C OUTPUT RS-232C INPUTS 4] TTL OUTPUTS fi aI CASSETTE DATA >15] [7] TTL OUTPUT (ZERO CROSSING [17] INPUT} V7 \ TTL INPUT [19] fx m9] RELAY DRIVE OUTPUT Figure 4-12. SALT Block Diagram The SALT chip senses, at pin 2, the amount of current drawn from the supply through R17. If excessive current is drawn, as in the case of a short or component failure, the SALT will ‘fold back” the voltage output of the supply by re- ducing the base drive current, thus protecting the supply. Inductors FB1 and FB2, as well as capacitors C7 through C4, serve to decouple and prevent any digital ‘noise’ which might be present on the DC supply frorn entering the AC line. There are two types of Level Translators con- tained in the SALT chip for use with the RS-232C interface. The output level converter takes as its input a standard TTL signal from PIA 1C2, inverts (t, and uses it to drive the output to ap- proximately +5 VDC for a space and -5 VDC for a mark. This output is coupled through a 270 ohm resistor, R3, to the output connector. R3 serves to limit the amount of current drawn from this output and prevent damage to the SALT chip if the output (at the connector) is inadvertently shorted to an external voltage (such as +12 VDC, which may be present on some RS-232C connectors). AC l20V 60Hz The input level converters have the task of con- verting incoming RS-232C voltage levels to stand- ard TTL signals. These voltages are defined as follows: a ‘‘mark” is a negative voltage between -3 and -25 VDC; a “space” is a positive voltage between +3 and +25 VDC. To simplify the task for the SALT chip, the circuit shown in Figure 4-14 (resistor/zener diode combination) is em- ployed. D5 and D6 clamp the negative voltages and prevent them from reaching the SALT chip. The incoming signals are compared to a reference of 2.0 VDC. If less than that, they are consid- ered to be a mark. Jf greater than that, they are considered a space. The space or mark is then output from the SALT chip at an LS TTL compatible level, and is coupled into PIA IC2. ——" 15 C1 S8C77527 Qi Ot 2SD3I3(E,F) ¢1w) or cS sch KTDBSO(Y,GR) joosi6 100/16 + q c3 c2 fom] 0.1 > 4700/16 +] 220/16 D1, D2 IN4002 or SRIK-2 or 1OEI D3, D4 30DI or GP30B or G3B Figure 4-13. Color Computer 2 Power Supply The cassette loading circuitry interna! to the SALT chip is composed of a zero crossing de- tector. Figure 4-14 shows the input from the cassette being loaded by a 220-ohm resistor, R23, then coupled into the SALT chip through a 510-ohm resistor, R4. R23 serves to load the capacitively-coupled output characteristic of most portable cassette recorders, and R4 limits the current of the incoming signal to prevent damage to the SALT chip if an excessively large peak-to-peak voltage is fed into the cassette input. Although Radio Shack’s CCR-81 does not produce more than 6 volts p-p, the circuitry is protected from voltages as high as 18 volts p-p. The zero-crossing detector internal to the SALT changes state each time the incoming signal passes through zero volts. There is a small amount of hysteresis built in which provides noise immunity and prevents false triggering of the zero-crossing detector. The output of the zero crossing detector is an LS TTL compatible level and is coupled into PIA I1C2. 11 7 t- The final function of the SALT chip is to drive the cassette relay. A TTL signal from PIA IC2 enters pin 10 of the SALT chip where it is connected to the base of an internal Darlington transistor, the emitter of which is grounded. The collector exits the SALT chip at pin 9, and is connected to one end of the cassette relay. The other end of the relay connects to +5. When the incoming signal goes high, the transistor be- comes saturated and connects its end of the cassette relay to ground, causing the relay to energize. When the incoming signal is low, the transistor is cut off. There is no ground return for the +5 volts at the other end of the relay, so it is de-energized. The diode across the collapsing magnetic field (when the relay de- energizes) from damaging the transistor in the TOPIAIC2-2. «<@—— SALT. R4 510 CASSETTE DATA ANA- (ZERO CROSSING) R30 INPUT RS-232C R23 14 ; 4 DATA INPUT | 220 1/2W 1C1 ZENER SALT 1K R29 RS-232C 5 TOPIAIC240 <«—4 /C. CD INPUT 3.9V DS ZENER FROMPIA 6 Ic2-300 RS-232C ree 270 DATA OUT Figure 4-14, 1/O Circuitry —A1l— 4.11 Cassette Tape Format Information The standard TRS-80 Color Computer 2 tape is composed of the following items: 1, A leader consisting of 128 bytes of 55H 2. A Namefile block 3. A blank section of tape equal to approxi- mately 0.5 seconds in length to allow BASIC time to evaluate the Namefile A second leader of 128 bytes of 55H One or more Data blocks An End of File block Ons The block format for Data blocks, Namefile blocks, or an End of File block is as follows: 1. One leader byte — 55H 2. One sync byte — 3CH 3. One block type byte: 01H = Data block FFH= End of File block OOH = Namefile block One block length byte — OOH to FFH 5. Data — 0 to 255 bytes 6. One checksum byte — the sum of all the data bytes plus block type and block length bytes 7. One trailer byte — 55H > The End of File block is a standard block with a length of 0. The Namefile block is a standard block with a length of 15 bytes (OFH). The 15 bytes of data provide information to BASIC and are employed as described below: 1. Eight bytes for the program name 2. One file type byte: OOH = BASIC Program 01H = Data File 02H = Machine Code Program 3. One ASCII flag byte — OOH = Binary, FFH = ASCII 4. One Gap flag byte — 01H = continuous, FFH = gaps 5. Two bytes for the start address of a machine language program 6. Two bytes for the load address of a machine language program 4.12 RS-232C Connector (JK3) The RS-232C interface utilizes a 4-pin DIN con- nector. This interface allows the computer to have serial communications with printers, modems, other computers, or any device capable of interfacing with RS-232C signals. The four signals used by the interface are: 1. CD — a status line 2. RS-232C IN — serial data input 3. GROUND — zero voltage reference 4, RS-232C OUT — serial data out The pinout for the DIN connector is shown in Figure 4-15, as viewed from the rear of the computer. CD RS-232C IN RS-232C OUT Figure 4-15. RS-232C Connector Pin-Out The RS-232C interface hardware in the Color Computer 2 is capable of communication with any device which will operate with the minimum three-signal interface. It is also possible that devices which use a larger set of RS-232C signals may be used with the Color Computer 2. This would be accomplished by connecting unused device inputs to the correct high or low level. In software, the only RS-232C device supported by the 8K BASIC ROM is a serial printer. For use with the printer, the pin assignment of the connector differs slightly from the above description: 1. No Connection 2. Connected to the BUSY output (or status line) of the printer 3. Ground 4. Connected to the Serial Data Input of the printer if your printer does not provide a status line, then pin 2 must be connected to a positive volt- age of +3 to +12 volts. This tells the computer that the printer is ready all of the time. In order to operate, the software must make several assumptions about the printer. These assumptions are: 1. The printer operates at 600 Baud. 2. The printer width is 132 columns. 3. The printer generates a BUSY when it is not ready, 4. The printer will automatically return the carriage at the end of the line. It will also do a line feed at this time. 5. The data format is one start bit, eight data bits, two stop bits, and no parity. Some printers will require that these assump- tions be modified. This may be accomplished by changing RAM variables or by a special driver routine. A list of all the printer variables is given in Table 1. Also, Table 1 lists some alternate values for these variables. The last comma field variable should be set equal to the width value minus the comma field width. The comma field width will normally stay at 16. 4.13 Cartridge Connector (CN1) The 40-pin cartridge connector provides the possibility of expanding the TRS-80 Color Computer 2 in almost any manner. All of the important CPU bus signals are tied to this con- nector. A complete list and brief description of these signals is provided in Table 3. The most common usage of the cartridge con- nector is with the ROM cartridge. For Cartridge detection, the Q clock is connected to the car- tridge interrupt pin, which generates an inter- rupt anytime the cartridge is plugged in and forces the computer to jump to the program in ROM. CAUTION | | | | | DO NOT PLUG A CARTRIDGE IN WITH POWER | APPLIED TO THE COLOR COMPUTER 2 | AS SERIOUS ! | DAMAGE TO THE UNIT AND/OR THE CARTRIDGE MAY RESULT. | In addition to the expected data, address, and R/W lines, several control and special purpose signals are available on the Cartridge connector. They are as follows: —43— HALT* — This active low signal places the pro- cessor in a HALT state immediately following the execution of the current instruction. While in the HALTed state, the processor address and data lines are in the high impedance mode, making it possible for external devices to access RAM and ROM. The processor may be HALTed indefinitely without any loss of internal data. NMI* — This is the non-maskable interrupt input to the CPU. RESET* — This is the master system reset and power-up clear signal. E, Q — These are the two clock signals for the MC6809E CPU. CART* — This is an interrupt input into PIA iC2. It is used to detect the presence of a car- tridge. CTS* — This is the Cartridge Select Signal. It is valid when the processor reads any location from COOO Hex to FEFF Hex, as long as the SAM is in Map Type 0. Note that it is not active during a write to these locations. SND — This signal is connected directly to the sound input of the DAC chip, and allows car- tridge generated sound signals to be fed through the TV sound system. The signal should be AC coupled, and should not exceed 3.9 volts p-p. SCS* — This is a second chip select signal from 1C7, It is active for both reads from and writes to addresses FF40H through FF5FH, regardless of the map type. SLENB* — This signal disables the internal de- vice selection. This allows decoded but unused sections of memory to be used by the cartridge hardware. 4.14 Power Transformer The Color Computer 2 power transformer ac- cepts 120 VAC 60 Hz input and transforms it to 17.2 VAC center-tapped for use by the power supply. The current rating of the secondary of the transformer is 1.8 amps RMS maximum. The transformer should only be replaced with genuine Radio Shack replacement parts. INITIAL VALUE HEXADECIMAL| DECIMAL HEXA- VARIABLE ADDRESS ADDRESS DECIMAL DECIMAL BAUD RATE MSB 0095 149 00 0 BAUD RATE LSB 0096 150 58 88 LINE DELAY MSB 0097 151 00 0 LINE DELAY LSB 0098 152 01 1 COMMA FIELD WIDTH 0099 153 10 16 LAST COMMA FIELD 009A 154 70 112 LINE PRINTER WIDTH 009B 155 84 132 Table 1. Line Printer Variables BAUD RATE: DECIMAL VALUE HEXADECIMAL VALUE MSB LSB MSB LSB 120 BAUD 1 202 01 CA 300 BAUD 0 180 00 BE 600 BAUD 0 88 00 58 1200 BAUD 0 41 00 29 2400 BAUD 0 18 00 12 LINE DELAY: DECIMAL VLAUE HEXADECIMAL VALUE MSB LSB MSB LSB .288 SECONDS 64 0 40 00 .576 SECONDS 128 0 80 00 1.15 SECONDS 255 255 FF FF WIDTH: DECIMAL VALUE HEXADECIMAL VALUE _16 CHARACTERS/LINE 16 10 32 CHARACTERS/LINE 32 20 64 CHARACTERS/LINE 64 40 255 CHARACTERS/LINE 255 FF Table 2. Alternate Line Printer Variable Values —44— PIN SIGNAL NAME DESCRIPTION 1 NC 2 NC 3 HALT* Halt Input to the CPU 4 NMI* Non-Maskable Interrupt to the CPU* 5 RESET* Main Reset And Power-Up Clear Signal to the System 6 E Main CPU Clock (0.89 MHz) _ 7 a Quadrative Clock Signal Which Leads E 8 CART* Interrupt Input For Cartridge Detection 9 +5V +5 Volts (300 MA) 10 DO CPU Data Bit 0 11 D1 CPU Data Bit 1 12 D2 CPU Data Bit 2 13 D3 CPU Data Bit 3 14. D4 CPU Data Bit 4 15 D5 CPU Data Bit 5 16 D6 CPU Data Bit 6 17 D7 CPU Data Bit 7 18 R/W* CPU Read—Write Signal 19 AO CPU Address Bit 0 20 Al CPU Address Bit 1 21 A2 CPU Address Bit 2 22 A3 CPU Address Bit 3 23 A4 CPU Address Bit 4 24 A5 CPU Address Bit 5 25 A6 CPU Address Bit 6 26 A7 CPU Address Bit 7 27 A8 CPU Address Bit 8 28 AQ CPU Address Bit 9 29 A10 CPU Address Bit 10 30 All CPU Address Bit 11 31 A112 CPU Address Bit 12 - 32 CTS* Cartridge Select Signal 33 GND Signal Ground 34 GND Signal Ground 35 SND Sound Input 36 SCS* Spare Select Signal 37 A13 CPU Address Bit 13 38 Al4 CPU Address Bit 14 39 A15 CPU Address Bit 15 40 SLENB* Input to Disable Device Selection Table 3. Cartridge Connector Signals 4.15 Joysticks The optional joystick controllers are two identi- cal assemblies which can plug into JK1 and JK2. Figure 4-16, shows a schematic of the Joystick Assembly, It consists simply of a push button switch for the fire button and the dual potentio- meters connected by a mechanical assembly. The mechanical assembly allows both poten- tiometers to be changed at the same time. This gives the effect of a two-dimensional control. The potentiometers are connected so that 5 volts is applied to one side of the variable resistor, and ground is connected to the other. This allows the center wiper to vary from 0 to 5 volts as the handle is moved. The push button switch merely provides a momentary ground contact for an input signal. WHITE 45V - A B _ 31 ; |+ 2 100K 2 100K PNG YELLOW 5 bal +328 GREEN 1 RED 5 GND BLACK Figure 4-16. Joystick Schematic 4.16 TV Switch Box The antenna switch box consists of a switch and a balun, with connectors provided for attach- ment to the computer, the TV antenna, and the home TV. The switch box is connected to the customer’s TV through the 300 ohm twin-lead output. The TV antenna is attached directly to the switch box. The computer output is connect- ed through a 75-ohm coax cable to the photo plug input on the switch box. Figure 4-17 shows a schematic of the antenna switch box. c | | 60 dB a ee | | = $1 | INPUTFROM | | compuTeER | \oonooy 1 J | | i TWIN LEAD OUTPUT Lo J 44 << - TOTHETV BALUN i | tot It a» ANTENNA INPUT 7 O- ’ 300 ohm > Figure 4-17, Antenna Switch Box Schematic From the computer, the signal is connected to a balun in the switch box which matches the modulator’s 75-ohm output impedance to aTV’s 300-ohm antenna input impedance. This signal is then connected to the switch. The switch is specially designed to provide the 60 dB of isola- tion required between the computer and the TV antenna. — 46 — —A7— SECTION V TROUBLESHOOTING — 48 ~— This section of the manual contains trouble- shooting hints, diagnostic routines, and scope waveforms for the Color Computer 2. Scope set- tings are noted on the individual waveform diagrams. 5.1 Introduction The Color Computer 2 should be serviced only by qualified technicians. Throughout this guide a basic knowledge of computers will be assumed, as will the ability to use a dual-trace oscillo- scope. As is true when servicing any computer, it is important to distinguish between a hardware problem and a software problem. Stated another way, just because a particular program does not yield the results desired by the user, the hard- ware is not necessarily at fault. It is therefore recommended that the technician be thoroughly familiar with the operation of the Color Com- puter 2, as well as the Theory of Operation. Diagnostic aids are available from Radio Shack National Parts to assist the technician in the servicing of the Color Computer 2. Standard troubleshooting techniques include the steps: identify, localize, and isolate. The first step, identify, consists largely of making sure that a problem exists. In this step it is wise to check the obvious. Doing so can save hours of troubleshooting time only to find out that a cable was bad, or that it was some other rel- atively minor problem. After identifying that a problem really does exist, localizing can usual- ly be accomplished by merely observing the symptoms. Isolating a problem down to the defective component will often involve the use of test equipment, and sometimes, by part substitution. Following is a list of virtually all of the problems that might be identified on the Color Computer 2: Video Keyboard Processing problems Cassette RS-232C Sound Joystick Cartridge problems — 49 — If a problem exists in more than one area, the first course of action should be to look for a common cause. Although it is possible to have two or more independent problems, it is more likely that a single failure can cause a multitude of symptoms. It is apparent, for example, that if the power supply is dead, that all of the above areas will have problems. Once a problem has been identified in one of the above areas, it can be localized by observing the specific symptom. For example, if a Cassette problem exists, is it a Read problem, a Write problem, or a Motor Control problem? After the problem is localized, isolating it to a specific component is usually not very difficult. Includ- ed in this section is a flowchart for verifying proper operation of the power supply, oscillo- scape pictures of various signals under proper operation, and a textual description of symp- toms one might expect along with probable causes. 5.2 Video Problems 5.2.1 No Display One of the first indications that the Color Computer 2 is working is the display on the T.V. If upon powerup the T.V. continues to display “snow”, indicating that it is not receiv- ing a signal from the computer, the first thing that should be done is to check the obvious, Is the proper channel selected on the T.V. and the computer? Is the coaxial cable connected from the computer to the T.V. switchbox? Is the switchbox connected to the VHF inputs of the T.V.? is the switchbox in the ‘‘com- puter” position? On sets requiring it, is the 75 ohm VHF link connected to enable the 300 ohm inputs? If the answer to each of the above questions is yes, then either the power supply or the modulator is dead. In this case, a quick check for the presence of +5 volts at the side of C32 should suffice to determine whether the power supply or the modulator is at fault. If the +5 volts is there, then the modulator should be replaced. If the voltage is incorrect or miss- ing, proceed to the section on checking the power supply. It is also possible to have no video, but instead of the screen remaining snowy, it is completely black or blank. In this case, the T.V. is at least receiving a signal from the computer, which in- dicates at least partial functioning of the power supply and modulator. However, there is still the possibility that one or the other of these components is at fault. There is also the pos- sibility of some obvious “‘gotcha’’ — check that the proper channel is selected on both the T.V. and the computer, and that the brightness and contrast of the T.V. are set at an appro- priate level. If these are O.K., then get out the oscilloscope and check for the Y signal at pin 28 of IC8. A normal Y signal is shown in Figure 5-6 (page 62). If the Y signal is present, then the modulator is the most likely suspect. If the Y signal is missing, then IC8 is probably at fault. Other possibilities include the power supply (do a complete check) and circuit board shorts or opens associated with IC8 and the modulator. 5.2.2 No Sync If the image on the screen is not synchronized properly (it is rolling vertically or diagonally), then the most likely suspect is |C8 or the clock signal going to IC8. Of course, there is one obvious thing to check first — are the T.V. and the computer set to the same channel? If so, then scope out the 3.58 MHz clock signal going into pin 33 of IC8. This signal must be at the proper amplitude (TTL level) and the proper frequency (3.58 MHz). A normal clock signal is shown in Figure 5-5 (page 62). If the clock is O.K., then either the VDG (IC8) is bad, or the Y signal is loaded by a PCB short. It is also remotely possible that the modulator is bad. If the clock signal is missing, or the wrong amplitude or frequency, proceed to the section on checking the clock. 5.2.3 “Garbage” on Screen In many cases, a screenful of ‘‘garbage” (random characters) indicates a processing problem. To verify whether or not this is the case, try some simple commands that do not require screen output to prove they are working. For example, “SOUND 60, 20” or some similar sound com- mand may be executed directly if one types carefully. ““CLOAD” should also start the cas- —50— sette and, if a short program is loaded, should stop at the end. If tests like these do not func- tion, proceed to the section on Processing Problems. If the above tests indicate that the processor is functioning normally, then the problem is likely caused by either bad RAMs, (IC14 — IC21), a bad latch (IC5), or a bad VDG (IC8). Substitu- tion with known good RAMs should be used to isolate a RAM problem. For the other two possi- bilities, an oscilloscope should be used to check all signals for valid TTL levels. The latch should be clocked by the RAS* signal, which also ap- pears at pin 4 of the RAM chips. If a bad logic level is found, then the chip producing the logic level is suspect. If no problem is found with the RAMs or the latch, the VDG should be checked by substitution (again, with a known good IC). 5.2.4 Clear Screen, No Sign on When the Color Computer 2 is first powered up, it clears the screen and prints the appropriate BASIC sign on message. If the screen clears, but the signon fails to appear, there is most likely a processing problem. Particularly suspect would be an active FiRO* without a cartridge present. Proceed to the section on processing problems. 5.2.5 No Color Before attempting to fix a no-color problem in the computer, ensure that the T.V. is properly adjusted. The color level control must be set to an appropriate level and the tint control should be approximately centered. The fine tuning con- trol, if present, must be properly adjusted, or no color wiil appear. It is a good idea to try the computer on both channels (3 and 4) to determine if it is merely an adjustment problem. Also note that the com- puter will not generate .color on a T.V. that depends on the Vertical Interval Reference (VIR) signal to be present. Some T.V.s that use the VIR signal to automatically adjust the color have a switch to defeat this feature; others do not. If the VIR option cannot be defeated, then color will not be produced on this T.V. as the computer does not generate the VIR signal. If color is produced on one channel and not on another, it should be determined whether the computer or the T.V. is at fault. This may be done by trying several computers on the com- puter is determined to be at fault, the modulator should be replaced. If the computer does not generate color on any T.V., several possibilities exist. The first thing to check is the presence of the 3.58 MHz clock into the modulator (pin A). A scope picture is shown in Figure 5-5 (page 62). If the clock is missing, or Jess than 100 mV p-p amplitude, the modulator will produce a black and white picture. Probable causes for this include R13 open or increased in value, C61 shorted or leaking, or the modulator itself. (If the clock source, which is the SAM chip, is not working the system will not even produce a black and white picture.) After determining the clock signal to be O.K., the next thing that should be checked is the Chroma outputs of the VDG. The Ch B output (pin 9) should be some steady DC value greater than O volts and probably less than 2 volts— usually about 3/4 to 1 volt. The Phase A and Phase B (pins 11 and 10, respectively,) outputs should display waveforms shown in Figure 5-6 (page 62) thru 5-9 (page 63). Note that the rela- tionship of the DC levels of Phase A and Phase B determines the color (photographs are given for screen colors of red, blue, and green). If any of the signals are missing or at improper levels, the VDG is suspect. If replacing the VDG does not cure the problem, then the signals are loaded by either PC shorts or again, possibly a bad modulator. 5.2.6 Wrong Colors The procedure for troubleshooting wrong colors is basically the same as that for no color. Insure that the T.V. is properly adjusted, paying particular attention to the tint control, and then check the chroma signals coming out of the VDG. Note that an irregularity of the Phase A signal may be caused by the Artifacting circuit (1C4, Q2, and associated resistors, capacitors, and diodes). —51— 5.2.7 No Artifacting Or Improper Artifacting The artifacting circuit in the Color Computer 2 is responsible for generating burst in the high- resolution mode, so that this mode will be displayed in color. Failure of the artifacting circuit could result in one or more of the fol- lowing symptoms: no color in the high-res mode, wrong color all the time, or left part of the screen shaded a different color from the rest of the screen. If no color is obtained in the high-res mode, then either the one-shot (IC4) is not operating, or the transistor (Q2) is not coupling this signal onto Phase A. (Consult the earlier theory of operation for a detailed descrip- tion of how this circuit works.) Oscilloscope pictures of the artifacting circuit are shown in Figures 5-10 (page 64) thru 5-12 (page 64). One strange symptom is that of the left side of the screen being shaded a different color from the rest of the screen. This indicates that the one- shot is taking too long to time out, causing the level of Phase A to be shifted during the active portion of the video display. This may be caused by a defective 1C4, by leakage or improper value of capacitor C26, or by increase in value of resistor R10. 5.3 Keyboard 5.3.1 No Keyboard Entry No keyboard entry may be caused by a variety of factors. These include: broken flex cable which connects keyboard to main PCB, detec- tive PIA 1C7, a short to ground on any of the keyboard row inputs, or a defective keyboard. In particular, note that the capacitors on the joystick fire button leads (C15 and C18) might short and cause this problem. 5.3.2 Some Keys Inoperative The most common cause of some keys not working when others do is an open somewhere — either on the keyboard itself, or in the con- necting flex cable, or on the PC board. If an isolated key does not work, the problem is al- most certainly on the keyboard itself. However, if a whole row or column of keys does not work (see the keyboard matrix on the schematic dia- gram), then any of the above is a possibility. Other possible causes are a defective PIA (IC7). 5.3.3 Wrong Character for Key Pressed lf a different character is displayed other than the one that should be displayed for a given key, the problem is most likely a short. Again, the short could be on the keyboard itself, in the connector, or on the PCB. All of the afore- mentioned possibilities should also be checked. One additional possibility is that of a defect in the processing section, particularly on the data bus. 5.4 Processing Problems 5.4.1 General Processing problems are the most difficult to isolate. This is because there are so many possi- bilities. One of the most valuable tools for locat- ing the cause of processing problems is the osil- loscope. In many cases, it is sufficient to deter- mine whether there is activity on a given line, and that the high and low levels are valid TTL levels. A half-level almost always indicates a problem, except in the case of tri-state outputs. Even a signal with tri-state outputs, when not tri-stated, should go to valid TTL levels. Ob- serve the scope picture of the memory signals, Figure 5-16 (page 66). Note that although the data output line (bottom trace) goes to a half- level at times, that it also goes down to a valid logic O and up to a valid logic 1 at other times. In addition. to showing valid levels, a scope can tell you if the signal is happening at the appro- priate time. Although it sometimes gets rather complicated to trigger off the appropriate com- bination of signals, this is possible if absolutely necessary. As an example, observe Figure 5-6 (page 62), the picture of Y and Phase B. Note that the small negative-going blip of the Phase B signal (bottom trace) happens at exactly the same time as the back porch of the horizontal sync pedestal of Y (top trace). This is evident because time is measured on the horizontal axis of the scope, and the blip is exactly under the back porch. (Recall from the previaus discussion that this is where this blip needs to be to gener- ate color burst), Another example that shows timing is Figure 5-4 (page 61), which shows the quadrature relationship of the E and Q signals. 5.4.2 Symptoms There are several common symptoms of process- or-type problems: the processor may “‘lock up”’ (appear to do nothing), it may ‘go wild’ (ran- domly execute garbage instructions and appear to be doing something, but not what it is sup- posed to be doing), or it may function “almost” correctly, but not quite. Any of these symptoms may be caused by the same type of defect. Therefore, the following items, instead. of being listed by symptom, comprise a processing check list for any type of processor-related problem. 5.4.2.1 E and Q Check for the presence of E and Q. These signals should look like the ones in Figure 5-4 (page 61). If either clock is missing, the CPU will not oper- ate. Also make sure that the clocks have good logic levels. The E clock is more demanding than the O clock, and requires a high logic level of at least 4 volts. These clocks are produced by the SAM chip (1C22). E is sent to both PIAs (IC2 and IC7), the CPU (1C9), the NOR gate (IC10) and the edge connector. The O clock goes only to the processor and the edge connector. Both clocks have small value capacitors on them to prevent harmonic radiation. If any of these components connected to these clock lines be- come shorted, it is likely to reduce the ampli- tude of the clock signal. —52— 5.4.2.2 Interrupt/Halt/Reset After power up, without a cartridge installed and without executing any program, the NMI* line (pin 2), the FIRQ* line (pin 4), the HALT* line (pin 40), and the RESET® line (pin 34) of the processor should all be high. In addition, the |RQ* line (pin 3) should have a 60 Hz pulse on it (it should have a short low-going pulse about every 16m Sec). If any of these lines are stuck low, you have found the problem. Re- place the processor. If the condition still exists, find out what is pulling the line low, and repair it. If the IRQ line is low, the PIA IC7 could be bad, or a problem could exist in the address de- coding section. (Once the PIA generates an inter- rupt, the processor must access the PIA to clear the interrupt.) 5.4.2.3 Address/Data Lines It is rather difficult to define exact patterns of address and data lines on the CPU as these are dependent upon which address is being accessed, and the data to be read or written. All address and data lines should be capable of activity, however, and the output levels should be valid TTL. Figure 5-13 (page 65) and 5-14 (page 65) show typical address and data patterns. Note that some of the address lines may not show activity when the processor is in a loop. How- ever, by depressing the RESET button while scoping the address lines, at least momentary activity should be displayed. Another clue is that typically (although certainly not always) the address lines should act more or less like a fre- quency divider — that is, the frequency of activity on Ai should be half the frequency of activity of AO and twice the frequency of A2, and so on. This is because the processor accesses intructions sequentially until the program counter is altered. If any of the address or data lines seem incapa- ble of generating either a valid logic 1 or valid logic O, a fault is indicated. If the fault persists after replacing the CPU (IC9), then a device which is on the appropriate bus is probably shorted, or there is a PCB short. 5.4.2.4 Address Decoding Section If the CPU is functioning normally, outputting all of the correct addresses, but the appropriate device (ROM, RAM, PIA, etc.) is not selected, a processing problem will be evident. During the “idle’ mode (after power up but before accept- ing keyboard entry), the CPU should be alter- nately accessing the ROM (IC12 to obtain in- structions) and the Keyboard PIA (IC7 looking for keyboard entry.) The ROM chip enable line (1C12, pin 20) should show activity, as should the PIA chip enable (IC7, pin 23). If either of these signals is absent, likely suspects are the SAM chip (I1C22), the 3-to-8 decoder (1C11) or the NOR gate (!C10). The SAM should be checked by substitution, or by observing the SO through S2 lines (pins 25, 26 and 27) on the oscilloscope. The decoder (1C11) can be easily checked with an oscilloscope for proper inputs and outputs, as can I1C12. A final remote pos- sibility is that the ROM (IC12) and the PIA (1C7) are loading the output signals of the decoder (1C11), or that PCB faults exist. 5.4.2.5 Memory Problems If the ROM is being enabled frequently and all other CPU signals are good, but the screen never clears or the screen does clear but the signon does not appear, then either a ROM or RAM problem is indicated. These should be checked by substitution with known good devices. ROM and RAM faults could also be responsible for other processing type problems, such as inter- mittent lock-up, random (garbage) execution, the display of error messages when no error was committed, and incorrect results of computa- tions. The last two cases require careful analysis of the attempted program or command before assuming a ROM or RAM problem. Some typical RAM waveforms (RAS*, CAS*, DATA IN and DATA OUT) are shown in Figure 5-15 (page 66) and 5-16 (page 66). 5.5 Cassette Problems 5.5.1 Motor Control Problems Of all possible problems in the Color Computer 2, lack of motor control is probably the easiest to isolate. Of course, the obvious should not be overlooked, which includes bad cable or bad cassette recorder. Actuation of the relay can be tested by listening for the relay click while de- pressing the Reset button. If the click is heard, but continuity does not appear at pins 1 and 3 (the two outside pins) of the cassette connector, JK4, then either the relay is bad or the PCB or connector is open. If the click is not heard, then possible bad components are !C2, |C1, and the relay itself (open coil), as well as PCB faults. The following simple program will allow check- ing of these components: 10 POKE 65313,60 20 GOSUB 100 30 POKE 65312,52 40 GOSUB 100 50 GOTO 10 100 FOR A=1 TO 100:NEXT A:RETURN After this program is keyed in and run, Scope IC2 pin 39 for a squarewave of approximately 20 Hz. If it is not present, then change IC2. If it is present, then scope IC1 pin 9 for the same squarewave. If it is not there, then change IC1. If it is there, then change the relay, If re- placing the suspect component does not correct the problem, then a PCB fault is indicated. 5.5.2 Write Problems Cassette write problems are also very simple to isolate and repair. Again, don’t forget to verify the obvious, such as the cassette recorder and cable. If you are convinced that a cassette write problem exists, key in and execute the following program: —54— 10 SOUND 200,255:GOTO 10 Now look for the waveforms as shown in Figure 5-17 (page 67). If the top waveform is there, but the bottom one isn’t, look for it directly at the chip (IC3 pin 17). If it is at the chip, but not at the connector, PCB fault or connector fault is indicated. If it is not present at the chip, insure that pin 17 is not shorted to ground. If not, re- place IC3 and re-run the program. If the wave- form is still not present, the replace PIA IC7 and repeat the test. Remember that the cassette output amplitude should be somewhere between 1 and 2 volts p-p. 5.5.3 Read Problems Isolating a cassette read problem is not much more difficult. However, to do so requires an input signal of some kind. A sufficient signal can be the cassette output signal coupled back to the cassette input through a 10 microfarad capacitor. Run the same program as above and look for the waveforms in Figure 5-15 (page 66). If the bottom waveform is not present (the input to the SALT chip, 1C1), then check input com- ponents C23, R23, and R4, as well as the PCB and connector. If the input waveform is present, but not the output waveform, then replace the SALT chip (IC1}. If the output is still not pres- ent, then look for PCB faults or PIA 1C2 to be loading the output waveform. Remember, the input must go both above and below ground, and should be at least 100 mV p-p. Also, the output should be valid TTL levels. 5.6 RS-232C Problems 5.6.1 Output Missing or Incorrect RS-232C problems are just about as easy as cas- sette problems. The output may be checked by entering in the following short program, running it, and scoping the output at JK3 pin 4: 10 POKE 65312,2 20 POKE 65312,0 30 GOTO 10 A square wave of approximately 40 Hz should appear. The square wave should go at least 3 volts negative and at least 3 volts positive. If the output is not there, look for it directly at the chip (1C1 pin 12). If it is still not there, change !C1 and try again. If the output is still not there, change PIA IC2 or look for PCB faults. If the output is at [C1 pin 12 but not at the edge connector, check current-limiting re- sistor R3, or look for PCB faults, It is possible to have a positive-going output, but not the nega- tive going portion, as this is the only circuit in the computer that utilizes the negative portion of the power supply. Check for negative voltage (—7.5 or better) at IC1 pin 15. If it is not there, proceed to the Power Supply flowchart. If it is there, but there is no negative portion to the RS-232C output waveshape, then IC1 is most likely at fault. . 5.6.2 Input Problems RS-232C input problems can be checked in a static condition. Ground pin 1 of JK3 and insure that IC1 pin 5 goes high. Then connect pin 1 of JK3 to +5 volts and insure that [C1 pin 5 goes low. Repeat the test with JK3 pin 2 and !C1 pin 4. If any of the conditions are not met, then re- place IC1. If problems still exist, then change PIA IC2 or check for PCB faults, — 55 ~ 5.7. Sound Problems Almost any sound problem in the Color Com- puter 2 can be traced to IC3. Other possibilities. include PIA IC2 and the modulator. As a quick check, key in the following program and look for the waveform shown in Figure 5-17 (page 67) at the modulator, sound IN: 10 SOUND 200,255: GOTO 10 If the waveform is present but no sound is heard, replace the modulator (did you check to see if the volume control on the T.V. was turned up?). If the waveform is not present, then change IC3 or 1C2 as necessary. If the problem still exists, check for PCB faults. 5.8 Joystick Problems As with sound problems, joystick problems are almost always associated with IC3. Additional possibilities include IC2 for joystick pots, and IC7 for fire button problems. Of course, PCB and connector faults could also be a problem. To test the joysticks, connect two KNOWN GOOD joysticks and key in and execute the following program: 5CLS 10 A = JOYSTK (0) 20 B = JOYSTK (1) 30 C = JOYSTK (2) 40 D = JOYSTK (3) 50 E = (PEEK (65280) AND1) 60 F = (PEEK (65280) AND2)/2 70 PRINT @0,A,B,C,D,F,E 80 GOTO 10 The top two numbers on the screen represent the right joystick. By rotating the joystick, you should be able to get each number to change from 0 to 63 and include all numbers in be- tween. The next two numbers represent the left joystick, which should be tested in the same manner. The bottom two numbers represent the two fire buttons, and will be 1 when the fire button is not depressed and O when the fire button is depressed. (The left number is the left fire button and the right number is the right fire button.) If any of the above testing does not yield the desired results, replace the components dis- cussed above. 5.9 Cartridge Problems In checking any kind of symptom dealing with an external cartridge, the obvious first step is to be sure that you are using a known good cartridge. If a known good cartridge causes the computer to lock up or execute random garbage, the most likely cause would be open address or data lines to the edge connector. To check this, use a dual trace oscilloscope, and check each address and data line, with one probe at the processor and the other at the connector. You should, of course, see identical signals. One other possibility that could cause this symptom would be a ‘‘dual addressing’ type of problem, which would allow more than one device at a time to be activated. This would most likely be caused by the address decoding circuit consisting of SAM (1C22) and [C10 and [C11., If the cartridge does not auto start, the lines QO and CART* should be checked for operis to the connector. 5.10 Power Supply The Color Computer 2 power supply must func- tion properly for the unit to work. Following is a flowchart for complete testing of the power supply. The power supply should be checked without any I/O devices or cartridges attached, as a defective external load could confuse the findings. In addition to tight (+5%) regulation of the DC voltage, the power supply should be relatively free of AC ripple or high frequency noise, Refer to Figure 5-3 (page 61) as well as the flowchart for information on AC content. If the power supply is “almost’’ functioning correctly, but not quite, the symptoms could be quite bizarre, as well as highly intermittent. Of particular interest is the case where the power supply is acting in a half-wave configura- tion rather than a full-wave configuration (com- pare Figures 5-1 (page 60) and 5-2 (page 60)). This causes twice the AC ripple to be on the supply, and reduces the amount of current that can be drawn from the supply. Therefore, the computer might work “normally” without a plug in cartridge, but not function at all with a heavier load. A half-wave supply would also cause the pass transistor to get hotter than normal, and could cause premature failure, —56— Check for +5 VDC at Right End of R2 (End closest to IC1) N 4.75 <.V <5.25 ° ? Scope +5V Source at right end of R2. Set Scope for 50- 100 mV /Div. Is AC Component Power Supply Check Is DCV > 4.75 Volts? Yes < 400 mv? Check negative voltage at 1C1 pin 15 No At least 5 VDC Negative? Supply O.K. —~57 — Preliminary: Unplug the computer. Remove the top case. Connect scope probe ground lead to computer ground. Connect coaxial cable from modulator output to TV/computer switchbox. Connect the 75 ohm twin lead output from switchbox to T.V. Select Channel 3 or 4 as desired on both T.V. and modulator. Plug in computer. Turn on T.V. and computer. Check DC Voltage at collector of Q1 Power Supply Check (continued) No Is Voltage at least 7.5 VDC? Check AC Voltage at anodes of D3 & D4 Measure DCV across R2 No Yes Check AC Voltage at outside lugs © of transformer sec. Supply folded back Replace these Diodes Check capacitors PCB for shorts. REPAIR as required Recheck supply. Recheck Supply Replace switch Recheck supply Locate/replace shorted component. Recheck Measure DCV Check AC voltage at 1Ci-1 at Xfmr primary Replace Xfmr Recheck supply Replace IC1 Recheck supply Replace cord or fusé as required Recheck supply Replace Q1 Recheck supply — 58 ~— _— Lo 7 am Measure voltage at collector of Q1 DCV more than 1 volt higher than end of R2 Replace !C1 Recheck supply Check cathodes of D1&D2 for AC voltage Power Supply Check (continued) ¥ With scope determine frequency of AC component Check AC voltage at anodes of + E D3 & D4 Replace Q1 Recheck supply Replace C2 Recheck supply Replace C5, C11, or C1. Recheck supply Check Vcc pin of each IC to determine if IC excessively noisy Use ‘scope. Replace despike capacitor for that chip Check for broken or missing despike cap- acitors, Replace as reqd. Recheck supply Replace chip Recheck supply Advance next step — 59 — Figure 5-1 Normal Power Supply (120 Hz ripple) Figure 5-2 Defective Power Supply (60 Hz ripple) —60— CH.A — Cathodes of D3, 4 5 Vidivision AC coupled CH. B — Anodes of D1, 2 .2 V/division AC coupled Horizontal — 5 msec/div. Trigger — Internal, CH. A Slope positive All settings same as above. One trans- former lead pulled loose to simulate open diode, Note that ripple frequency has changed from 120 Hz to 60 Hz and that ripple has increased from approximately 1V p-p to 2Vp-p. Although this computer might appear to function, the regular transistor gets ex- cessively hot and erratic operation would likely follow. Figure 5-3 CH. A — +5 V Source (e.g. 1C21 — 8) 100 mV/division AC coupled Horizontal — 0.5 usec/division Trigger — Internal, CH.A Vidal wine Weeee LJ { ry . ' ¥ High Frequency Component of +5 V Source Figure 5-4 CH. A — Qclock (Top R24) 2 V/division DC coupled CH. B — Eclock (Top R26) 2 V/Division DC coupled Horizontal — .2 usec/Div pe Trigger — Internal, CH.A Slope positive Domains Ee, E & O Clocks —61— Figure 5-5, ‘a VDG Clock (top) and Modulator Clock (bottom) Figure 5-6 a i oO y = a Themen, a ” oe e 2 Zit o. 9° oO fo a om fc ,o | vy <« iment << (t ! | Q 2 ACTIVE VIDEO 22 ao eter uu oj i x sYNC PEDESTAL L a Y and 4B —62— CH.A — 1C8 pin 33 1 V/division DC coupled CH. B — Modulator, Top R13 50 mV/division AC coupled Horizontal — .2 ysec/division Trigger — Internal, CH.A Slope Negative CH.A — Y (IC8pin 28) .2 V/division AC coupled CH. B — $B (IC8 pin 10) | V/division DC coupled Horizontal — 10 usec/division Trigger — Internal CH. A Slope positive Note: The dip in the Phase B signal that occurs during back porch time. This un- balances the balanced Modulator inside the 1372 chip (inside the Modulator), causing it to generate the 3.58 MHz Burst Signal for the T.V. This picture was taken with a standard green screen. Figure 5-7 @B and ¢A Phase Relationships for Different ol Colored Screens at Top — Green screen 10 CLS 20 GOTO 20 Middle — Cyan screen (ee ——| 10 CLS6 20 GOTO 20 Bottom — Red screen 10 CLS 4 20 GOTO 20 Note: The different D.C. levels present during active video time for each color. Figure 5-8 . Also note “burst dip” in $B, regardless of color. For All 3 Pictures: CH.A — $B, IC8— 10 u | | | .5 V/division DC coupled CH. B — oA, |IC8 — 11 0.5 V/division DC coupled Horizontal — 20 usec/division = Trigger — Internal, CH. A | | | Slope positive Figure 5-9 ee ee LIT TTL —63— ee ee Artifacting Signals Figure 5-10. To check, the computer must be in the High-Res mode. To accomplish this, run the following program (pay no atten- tion to garbage on the screen): 10 POKE 65314, 24 | | 20 GOTO 20 CH.A — Y (IC8 pin 28) .2 V/division’ AC coupled CH. B — 1C4 pin6 V4 / 2 V/division DC coupled / ee Lees Horizontal — 10 ysec/division r Trigger — Internal, CH.A Slope positive Artifacting Signals Figure 5-11. CH.A — Y (IC8 pin 28) .2 V/division ri el AC coupled CH.B — IC4 pin3 F L, a 2 V/division DC coupled | Horizontal — 10 usec/division ee eee Trigger §— Internal, CH. A Slope positive Artifacting Signals Figure 5-12. CH.A — Y (IC8 pin 28) .2 V/division AC coupled CH.B — Phase A (IC8 — 11) | 1 V/division DC coupled SS Lens Horizontal — 10 usec/division Trigger — Internal, CH. A Slope positive Artifacting Signals —64~— Figure 5-13 \anjeneed Neanjy pee pues | hl on Need Ned fey [ty Ses Address Lines (Typical) Figure 5-14 an atl nl es Gath oa Ge | en eet Data Lines (Typical!) —65— CH. A — AQ (IC9, pin 17) 2 V/division DC coupled CH. B — A7 (IC9, pin 15) 2 V/division DC coupled Horizontal — 2 usec/div. Trigger — Internal, CH. A Slope positive CH.A — D2 (IC9, pin 29) 2 V/division DC coupled CH. B — D3 (IC9, pin 28) 2 V/division DC coupled Horizontal — 2 usec/div. Trigger — Internal, CH. A Slope positive Figure 5-15 RAS* and CAS* Figure 5-16 Petey p |. -—— ! —- _ 7 é id ae i eel > nal a / f 7 | 7 7 _—— / bees y, f i | Data In and Data Out Memory Signals — 66 — CH.A — RAS* (1C19-4) 2 V/division DC coupled CH. B — CAS* (1C19 — 15) 2 V/division DC coupled Horizontal — .1 usec/div. Trigger — Internal, CH.A Slope négative CH.A — Data in (1C19-2) 2 V/division DC coupled CH. B — Data out (1C19 — 14) 2 V/division DC coupled Horizontal — .5 yusec/div. Trigger — Internal CH. A Figure 5-17 oo elle r Sound & Cassette Output Figure 5-18 Cassette Zero Crossing Detector —67— CH.A — Sound out (IC2 pin 1) 2 V/division DC coupled — Cassette out (JK4 — 5) 2 V/division DC coupled Horizontal — .5 msec/div. Trigger — Internal, CH. A Slope positive CH. B 10 sound 200, 255: GOTO 10 CHA — Cassette Zero Crossing Detector (1C1 pin 7) DC coupled CH. B — Cassette input (JK4 — 4) 5 V/division DC coupled Horizontal — .5 msec/div. Trigger — Internal, CH. B Slope positive Note: The cassette output signal (JK4 — 5) is coupled back to the cassette input signal (JK4 — 4) through a 10 uF. The same program as above must be executed. SECTION VI IC INTERNAL CONNECTIONS —~68— 1C1 SALT SC77527P UNREGULATED +V INPUT {5) +5 VOLT REGULATOR 7] PASS TRANSISTOR BASE ORIVE DRIVER 12] PASS TRANSISTOR CURRENT SENSE UNREGULATED ~V INPUT i 13} CURRENT LIMIT REGULATED -5 VOLTS TTL INPUT FOR RS.232¢ [6] (INTERNAL TO SALT ONLY?) OUTPUT fm [ta] RS-232c OUTPUT RS-232C INPUTS iE a TTL OUTPUTS CASSETTE DATA (ZERO CROSSING |11 3] HNPUT) I~ Ll ~~ a [7] TTL OUTPUT [5] RELAY DRIVE OUTPUT IC11 SN74LS138N (Motorola) or MB74LS138M (Fujitsu) or HD74LS138P (Hitachi) Az Aa Ao E; Eo Ex Vec=Pinlé 2 @ @® @)() (6) ~~ GNOD=Pin8 QO o<] oc] o<] og toc] od] 7 }——4 |-4 }—~ } 4 }—4 = 1C14 ~ 21 (64K) MCM6665L20 (Motorola) or HM4864-3 (Hitachi) or MB8264-20P (Fujitsu) 1014 ~ 21 as [4 ie) al AO Al A2 A3 Ad AS A6 A7 CLOCK GENERATOR No. 1 CLOCK GENERATOR No.2 WRITE CLOCK al GENERATOR } 1» jo|~Jo pay NO | = = ADDRESS BUFFER = lofals] ) COL DECODER SENS AMP. I/O GATE DATA INPUT BUFFER LY ROW DECODER ines i | | | | I ( ( { tH sa 65536BIT MEMORY CELL DATA [2] Ow OUTPUT BUFFER ——-—f ——__— 4] Dour Vcc 8 16} GND (16K) MCM4517- (Motorola) or MB8118E (Fujitsu) AO LS A1V|7 a2 [6] aa [ii] AS |10 As [13] RAS [4 | cas [15] W{3 D|2 Column Ey VDD Sense Sense ~+—_ié] vss 2 64 x 128 Cell 3 Memory Array J c g g g By 3 7 Bit - 1of128 Row | 88 7 Bit Decoder 2 ae eco A 8 Latch Output 14] a 5 (Column) we t 64 x 128 Cell - Memory Array RAS CAS Clock Clock *] rl pu a Generator Generator Butter puter —70— IC3 DAC SC77526P Vcc [20] WEIGHTED CURRENT SOURCES tyyyyy = < [3] Do | q ~ ra] 01 < CURRENT SWITCH bg [5] 02 | pata ANO < INPUT IV CONVERTER 16] D3 ~ < [7] 4 « P38] D5 ) BUFFER [ +—|>——+ CASS OUT [16] > | >—+> [9] comp. out ANALOG J} [15 > INPUTS 1 fig ~ COMPARATOR [13] > y anatoc | [1 | SELECT | ANALOG tt sounp-out SELECT | | LoGic .| SWITCH ft] ; en ee | SND SND SND ENABLE I at —71— iC5 SN74LS273N (Motorola) or MB74LS273M (Fujitsu) or HD74LS273P (Hitachi) 06 D7 D5 (Sy Es (ey pes [" Q (es (es Vec=Pin20 GND= Pin 10 (2 (6) (9) 05 Q6 Qo Q| Qo Q3 Qa Q7 cP ()—Po t if L if if i cP D cP D cP D CP D cP D cP OD CP D cP D _ co Pe Q MR OD IC6 SN74LS244N (Motorola) or MB74LS244M (Fujitsu) or HD74LS244P (Hitachi) —72— 1C10 SN74LSO2N (Motorola) or MB74LS02M (Fujitsu) or HD74LS02P (Hitachi) —73-— IC8 MC6847P (Motorola) DISPLAY ADDRESS BUS DISPLAY DATA BUS DAt OA2 DAZ DA4 DAS DAG DA? fea]_fes|_fee}_[i3]_fi4]_{t5)_ [6] DAB DAS DATO DAII DA12> “po7 DD6 DDS O0D4 DD3 OD2 DDI O00 fq {2} [e) [71 fs) [5] [4] [31 SE rt tf td [e|_[sI i] | bhi g| ee feq_{2i] i i tot ft tS q 1 ‘a ¥ pitt yO 7 DY oO? = [ H t DATA LATCHES t ' | rad Ooo 1 a ay oo 40 4 0 Fea *S Jel ee Fs (32) 1 (64) | (128) | (256) | (S42) 411024) | (2048) | (4096) v 7 | VERTICAL ADDRESS RIPPLE COUNTER I = RODRESS COUNT Rey a2 p22} +2 | 2} -2 | +2 fj 22] +2 ' a i) - 1 ; avs([35] 22 » a4 Row COUNTER 2 NT 5 1.02 MH: z Ber Bit ° 4 ane ° VIDEO SHIFT at 8 voc REG LOAD < inv Bape > = OF) move CNTR. AND C be IDECODE LOCK INHIBIT z 2 |Gm2[27| 8 T "VERTICAL TuMmiNG” H 8 cm 29} roy f LINeaR SHIFT REGISTER COUNTER | > = Tt L 1 4. 1 4. 4 L mo BO} (FROM HORIZONTAL TIME} 64TH MICROSECOND COUNTED TIMING DECODE 0; at a 1.02 MHz T T r + T + - ) HORIZONTAL TIMING H a +8V t SRG | 4 1 1 1 1 1 4 7) vec BLPHASE CLK IN DATA [-* 9 “00 FF ceNeRA LATCHES LATCHES = LATCHES Yee 103 wie TOR | CLK OUT DATA }—ont we ea Locke @ ” = T] NONINTERLACED sa onreD 1 INTERNA \ = ic 3 3 - wrentaceo ot 138 css Te ma 4 = BI-PHASE 5 O-A Hl D-A bees £ Y v 3.58 MHz | (6 LEVELS) 1 (4 LEVELS) b ves it es ae BT be BI a) a) FS HS CLK Y HB gA o8 (R-Y} (B-Y} IC9 MC6809EP (Motorola) or HD6809EP (Hitachi) AQ -— A1S 00-D7 8 ~ 23 i131 ~ 24 +7] Vcc . +—] Vss 16 “| PC | INSTRUCTION REGISTER -2—— U p-—on s 4 a RESET INTERRUPT 4] FIRO +— Y $4 CONTROL 3] R . x —_ 3e] LIC Be] AVMA o{ 4 3g] TSC B ooo t op ce BUS 14g HALT CONTROL ——(6] BA 5} BS 33] BUSY ALU TIMING * INTERNAL THREE-STATE CONTROL om 74 — IC2 MC6821P (Motorola) or MBL6821N (Fujitsu) or HD6821P (Hitachi) IC7 SC67331P (Motorola) —— Refer to Figure 4-12 (page 34) 1C22 SN74LS783 or SN74LS785 (MC6883P) (Motorola) $2 $1 SO Vee GND [25] [26] [27 [4d Bol +t $ FFCO-$ FFDF aeane REFRESH REFRESH iw DECOD REQUEST GRANT : , . IER TY FEFRESH COUNTER cP REFRESH BOSC +16 06 O5 O4 O3 Q2 O1 aD clock i _ pau L LOGIC 9] HS CONTROL REGISTER o—> HR ee C6 CS C4 C3 C2 C1 CO WRITE STROBE A15|36 B15 F6 4 A \e A15 Vv , a Al4 F5 ara[37| B14 Vor cP A13 38 J we) A13 B13 F4 D ~ 10K J [8] pao A12/39 Al2 BI2 FS WINDOW All| | w All BT F2 VOG TIMING ERROR J DETECTOR Ai0f} 2 Alo B10 F1 ao[3. Z Bg FO oc 2 as[4 | Z AB B8 3 ADDRESS rs y MULTIPLEXER “ A7|24 AT 87 P13 [ong bK Qo z OW 7{vce LK a|23] 4 AG BG wie v2 8 7] aa 23 / 2 AS B5 v1 asle2 zy MANUAL (EXTERNAL) RESET A4|2l A4 vo a2(I8| a2 wo I PIR AUTOMATIC ai [iz Al Ri (INTERNAL) RESET Vec aofié | AQ RO Z7 26 25 Z4 Z3 22 Z1 ZO REFRESH REFRESH REQUEST TY GRANT qe | YY 45 MULTIPLEXER BIT AND POLARITY CONTROL SELECT {AO-A4) LOGIC Ly I 242 = _ fs R/w[I5 | < Bw +> WINDOW RAS1 5} OSCIN t—> START E MASTER E [I4] ELE TIMING p> BOSC wm) SEL CT hax] "16 gosc Q a |I3 6 | OSCouT BS]4 3] 52] 131] bo old RAS1/Z7 26 25 Z4 23 22 Z1 ZO —~75— 1C12 8040364B (NEC) (Motorola) 1C13 8042364A (NEC) (Motorola) 01 02 03 04 05 06 07 08 [oTrolf ifisiiatislhelfi7] = OUTPUT BUFFERS [12] GND Ww I a fF} 8S} Titty ty | | 24] Vcc a 0 | ~ » Y SELECTER : A3(5 uh 8 g A4la 2 & as [3] 5 4 n Lut a7 [1] tit Q r\ MEMORY n A o MATRIX i As [23 af] ° | (8192 x 8) " < ag |e — i lad cs aio [ig — z n 11 (18 — ° Q1 2SD 313 D.E Q2 2SC945 _— 76 — SECTION VII PARTS LIST —78—-— Exploded View Parts List Description Ref. No. DS RS Part No. Mfr's Part No. 1 Cabinet Assy, Top AZ7134 M00421 1-1 Cabinet Top US 601210810A 1-1 Cabinet Top CA 601210811A 1-2 Plate, Top 711010180A 2 Keyboard AXX0223 187510200A 3 PCB Assy 20261043TA PCB Assy 20261043SA 4 Connector Wire 16P AJ7567 193910680A 5 Connector Pin AJ7571 194101351A 6 Modulator MDV-6 AX9471 525010070A 7 Knob Power AK5012 655000940A 8 Knob Reset AK5638 659510850A 9 Connector PCB [/O Port AJ7572 194210060A 10 Holder Connector AHC2447 411103110A 11 Sheet Shield AHC2448 473310660A 12 Rivet AHC2449 HARRAOO3SN 13 Cover Top Transformer 602310110A 14 Cover Bottom Transformer 602310120A 15 Door |/O Port ADA0391 603610210A 16 Spring Torsion ARB7725 4348 10040A 17 Cabinet Bottom US AZ7135 601310690A Cabinet Bottom CA 601310691A 18 Foot with screw AHC2450 608010060A 19 Holder Reset, Switch AHC2199 411101870A 20 Socket Assy, Pin AJ7574 194010410A 21 Spacer Keyboard 852011130A 22 Spacer Keyboard 852011120A 23 Spacer Keyboard 852011040A 24 Spacer Keyboard © 852011140A Fi Screw, TAP TITE, Pan Head 4x25PT-B F2 Screw, TAP TITE, Pan Head 4x20PT-B F3 Screw, TAP TITE, Pan Head 4x14PT-B F4 Screw, TAP TITE, Binding Head 3x8BT-B F5 Screw, TAP TITE, Binding Head 2.6x6 BT-B F6 Screw, Pan Head 3x10P F7 Nut, Flange 3FN Electrical Parts List CAPACITORS Ref. No. Description DS | RS Part No. Mfr‘’s Part No. C1 Electrolytic 220u F 16V + 20% CC227JDAP CEACG227M* G2 Electrolytic 4700. F 16V +20% CC478MDAP CEACG478M* C3 M-Plastic 0.1nF 5OV +5% CC104JJYP CFOMK104JL or Mylar* 0.1nF 5OV +10% CC104JJMP COOSK104KL C4 Ceramic 0.022), F 50V +80—20% CC223KJCP CKKPK2232* C5 Electrolytic 100uF 16V +20% CC107MDAP CEACG107M* C6 Ceramic 0.033uF 12V +30% CC333NCCP CGBUF333NT C7-9 Ceramic 0.022u F 50V +80—20% CC223KJCP CKKPK223Z* C10 Not Used C11/12 Electrolytic 100uF 16V +20% CC107MDAP | CEACG107M* C13/14 Ceramic 0.022uF 50V +80—20% CC223KJCP CKKPK2232* C15 Mylar .0018p F 50V +10% CC182JJMP COOQMK182K* C16/17 Ceramic 0.022. F 50V +80—20% CC223KJCP CKKPK223Z* C18 Mylar .0018.uF 5O0V +10% CC182JJMP COQMK182K* C19 M-Plastic 0.1uF 50V £5% CC104JJYP CFOQMK104JL or Mylar O.1uF 50V + 10% CC104JJMP COOSK104KL C20 Electrolytic NP/LN 10uF 16V +20% CC106MDAP CEPCG106M* C21 M-Plastic O.1uF 50V +B% CC104JJYP CFOMK104JL or Mylar 0.1nF 50V + 10% CC104JJMP COOSK104KL C22/23 Ceramic 0.022 F 50V +80—20% CC223KJCP CKKPK2232* C24 Ceramic 0.033uF 12V +30% CC333NCCP CGBUF333NT C25 M-Plastic 0.1uF 5OV +5% CC104JJYP CFOMK104JL or Mylar O.1uF 5OV +10% CC104JJMP COOSK104KL C26 Mylar 0.001.F 50V + 10% CC102KJMP COQMK102K* C27 Ceramic 0.022uF 50V +80—20% CC223KJCP CKKPK2232* C28—30 M-Plastic 0.1uF 50V +5% CC104JJYP CFOMK104JL C31 Not Used C32 Electrolytic 10uF 25V +20% CC106MFAP CEACI106M* C33 M-Plastic 0.1uF 5O0V 45% CC104JJYP CFOMK104JL C34 M-Plastic O0.1uF 5OV +5% CC104JJYP CFQMK104JL or Mylar 0.1uF 50V + 10% CC104JJMP COOSK104KL C35 Ceramic 0.033u F 12V +30% CC333NCCP CGBUF333NT C36 M-Plastic 0.1 F 50V +5% CC104JJYP CFOMK104JL or Mylar 0.1uF 50V +10% CC104JJMP COOSK104KL C37 Cer SL 62pF 50V +5% CC620JJCP CCJVK620J* C38/39 Cer SL 56pF 50V +5% CC560JJCP CCJVK560J* C40 M-Plastic 0.1uF 50V +5% CC104JJYP CFOQMK104JL C41/42 Not Used C43/44 Cer NPO 24pF 50V +5% CC240JJCP CCJBK240J* C45 M-Plastic 0.1uF 50V +5% CC104JJYP CFOQMK104JL C46 Electrolytic 10uF 25V +20% CC1O6MFAP CEACI106M* C47 M-Plastic 0.1uF 50V +5% CC104JJYP CFOMK104JL C48 Electrolytic 1uF 50V +20% CC105KJAP CEACK105M* C49 Not Used C50/57 M-Plastic 0.1K F 5O0V +5% CC104JJYP CFOMK104JL C58 M-Plastic 0.1uF 50V +5% CC104JJYP CFOMK104JL or Mylar 0.1uF 50V + 10% CC104JJMP COOSK104KL *Mylar is a registered trademark of E.i, Du Pont de Nemours and Company. —8s0-— Ref. No. Description DS RS Part No. Mfr’s Part No. C59 Cer SL 150pF 50V =5% CC151JJCP CCJVK151J* C60 Not Used C61 Cer SL 150pF 5O0V +5% CC151JJCP CCJVK151J5* C62 Electrolytic 22uF 16V £20% CC226K DAP CEACG226M* C63/66 Ceramic 0.01uF 50V +80—20% CC103JJCP CKKPK1032* TRIMMER CAPACITOR Ref. No. Description DS RS Part No. Mfr’s Part No. TC1 Trimmer, 6 ~ 50pF AC0988 154010240A DIODES Ref. No. Description DS RS Part No. Mfr’s Part No. D1/2 Silicon 1N4002 Rectifier DX0206 SDS!I00036- or Silicon SR1K-2 SDS100026- or Silicon 10E1 DX1039 SDS$1I00003- or Silicon 1N4002 DX0206 SDS100007- D3/4 Silicon 30D1 Rectifier DX2321 SDS!100059- or Silicon GP30B SDS1I00061- or Silicon G3B SDS100078- D5/6 Zener RD3.9E-B Protector DX2323 SZRD3.9EB- or Zener GZA3.9 (Y) SZGA3.9-—Y or Zener UZ-3.9 $ZUZ3.9—__ or Zener RD3.9EN- SZRD3.9EN- or - Zener RD3.9E-L SZRD3.9EL- D7/8 Germanium 1KF20-04 Switching DX2322 SDGE00012- D9-12 Silicon 18953 Switching DX2327 SDS!00015- or Silicon 1N4148 DX0022 SDS!00057- or Silicon 1N4148 DX0022 SDSI00064- D13 Germanium 1KF29-04 Switching DX2322 SDGE00012- ICS Ref. No. Description DS RS Part No. Mfr’s Part No. IC1 8050527 (SC77527P) Bipolar SALT MX6201 SISC50527- 1C2 MC6821P N-MOS PIA AMX4578 SIMC#0004- or MBL6821N SIMB#0004- or HD6821P SIHD#0004- 1C3 8050526 (SC77526P) C-MOS DAC MX6202 S1SC50526- IC4 NJM555D Linear Timer MX5741 SINM555D— or NE555P AMX3652 SIIE555P— Ref No. Description DS RS Part No. Mfr’s Part No. IC5 SN74LS273N TTL Latch AMX4227 SIRNS273N- or MB74LS273M SIMBS273M- or HD74LS273P SIHDS273P- 1C6 SN74LS244N Oo TTL Buffer AMX3864 SIRNS244N- or MB74LS244M SIMBS244M- or HD74LS244P SIHDS244P- 1C7 $C67331P N-MOS PIA Select MX6211 $ISC67331- Ic8 MC6847P N-MOS VDG AMX4575 SIMC6847P- Kors) MC6809EP N-MOS CPU MX5560 SIMC#0003- or HD6809EP SIHD#0003- or HD68A09EP SIHD#0003A 1c10 SN74LS02N TTL Nor-Gate AMX3551 SIRNSO2N— or MB74LS02M SIMBSO2M— or HD74LS02P SIHDSO2P— 1C11 SN74LS138N TTL Decoder AMX4583 SIRNS138N- or MB74LS138M SIMBS138M- or HD74LS138P SIHDS138P- IC12 8040364B ROM BASIC MX6203 SISC40364B or 8040364B (uPD236C-1) SITN40364B *1C13 8042364A ROM Extend MX6200 SISC42364A or 8042364A (uPD2364C-1) SITN42364A 1C14—21 MB8118-12P Memory MX6199 SIMB#0006- or MCM4517-20 SICM4517-2 or MCM4517P-15 SICM4517PF iC22 74LS783 TTL SAM WX6198 74LS8783 or 74LS785 74LS785 *For 26-3136 only JACKS Ref. No. Description DS RS Part No. Mfr’s Part No. JK1/2 DIN Joystick 193410040A or DIN AJ7566 193410070A JK3 DIN RS232C 193410020A or DIN AJ7357 193410050A JK4 DIN Cassette 193410030A or DIN AJ7356 193410060A COIL Ref. No. Description DS RS Part No. Mfr’s Part No. L1 Inductor 100uH ACA8339 142011510A or Inductor 100H 142000801A — 82— TRANSISTORS Ref. No. Description DS RS Part No. Mfr’s Part No. Q1 2SD313 (E) NPN Regulator 2SD526 $T2D313—E or 28D313 (F) $T2D313—F or KTD880 (Y) STKD880—Y or KTD880 (GR) STKD880—G 250945 (P) NPN Switching 28C945 ST2C945—P or 2SC536K (G) 25C536 ST2C536K—G Resistors Ref, No. Description DS RS Part No. Mfr's Part No. R1 Carbon 51 ohm 1/4W = +5% NO103EEC RCSOP510J* R2 M-Film 0.1 ohm Iw =+5% NOOO1EGE RMO1HR10J* R3 Carbon 270 ohm 1/2W +5% NO155EFC RCSHP271J* R4 Carbon 510 ohm 1/4wW +5% NO173EEC RCSOP511J* R5/6 Carbon 4.7Kohm 1/4w +5% NO247EEC RCSQP472J* R7/8 Carbon 10Kohm 1/AW =+5% NO281EEC RCSOP103J* RQ Carbon 1.0Kohm 1/4W +5% NO196EEC RCSQP102J* R10 Carbon 9.1Kohm 1/4W +5% NOQ276EEC RCSOP912J* R11 Carbon 100 ohm 1/2W +5% NO132EFC RCSHP101J* R12 Not Used R13 Carbon 10Kohm 1/AW =+5% NO281EEC RCSOQP103J* R14 Carbon 4.7Kohm 1/4W =+5% NO247EEC RCSQP4725* R15 Carbon 1.5Kohm 1/4W =+5% NO206EEC RCSOP152J* R16 Carbon 10Kohm 1/AW +5% NO281EEC RCSOP103J* R17/18 Carbon 4.7Kohm 1/AW =+5% NO247EEC RCSOP472J* R19 Carbon 100 ohm 1/4W =+5% NO132EEC RCSOP101J* R20 Carbon 100Kohm 1/AW 45% NO371EEC RCSOP104J* R21 Carbon 4.7Kohm 1/4W =+5% NO247EEC RCSOP472J* R22 Carbon 100Kohm 1/4W =+5% N0371EEC RCSOP104J* R23 Carbon 220 ohm 1/2W +5% NO149EFC RCSHP221J* R24 Carbon 100 ohm 1/4W =+5% NO132EEC RCSOP101J* R25 Carbon 150 ohm 1/4W +5% NO142EEC RCSQP151J* R26 Carbon 100 ohm 1/4W +5% NO132EEC RCSOP101J* R27/8 Carbon 4.7Kohm 1/4AW +5% NO247EEC RCSOP472J* R29/30 Carbon 1.0Kohm 1/4W +5% NO196EEC RCSOP102J* R31 Carbon 2.2Kohm 1/4W +5% NO216EEC RCSOP222J* R32/33 Carbon 33 ohm 1/4W =+5% NO087EEC RCSOP330J* —~ 83-— RELAY Ref. No. Description DS RS Part No. Mfr’s Part No. RY1 Relay AR8166 581010140A or 581010160A SWITCHES Ref. No. Description DS RS Part No. Mfr‘s Part No. Swi Push Power AS2900 182110240A SW2 Key Reset AS2849 187010040A SW3 Slide Channel AS2847 183110240A TRANS. Ref. No. Description DS | RS Part No. Mfr's Part No. T1 Power US ATA1056 10101163DA Power CA 10101164DA CRYSTAL Ref. No. Description DS RS Part No. Mfr's Part No. X1 14.31818MHz MX1112 391010720A MISCELLANEOUS Ref. No. Description DS RS Part No. Mfr‘s Part No. Socket, IC 40pP AJ7568 195110200A or Socket, Ic 40P 195110280A Socket, Ic 24P AJ7569 195110180A Socket, IC 24P 195110260A Socket, IC 16P AJ7570 195110140A or Socket, Ic 16P 195110240A Cord Patch AW3222 313510110A or Cord Patch 313510130A Box Switch AX9472 189510030A or Box Switch 189510040A _ 84— SECTION VIII SCHEMATIC DIAGRAM SECTION IX P.C.B. VIEWS — 86 — Main P.C.B. = Ly no lu fi wn wn ee o a ao aes Ww a - r 2 a n > io) 7? FE w ns Ww a a ,* ee, 8 Zu 2.8 qn Gal x= oO m > - fo} e oe lu = Oo oa Top View a FROM POWER TRANS Bottom View FROM POWER TRANS 4AMOd AL OL Tas ANNVHO ALSAOL LHOIW O/I Wigss Lasas ft dened adadeal ’ 9 spose, || _— 88 — SCHEMATIC 5V Rze 47K c28 + J zol_ zi lea | cNI vee ¢S0 est] 2 36 Paor-* < }—n.c. ( 35] ®0'4 Pal es ta paz} ay Ew +5V olarpe 32 inv SNK oR +5V rr" T Vee CLEAR|_2 40 ee Kew 6| 1c4 RE a wy mi Fibee cook 7 555 aK 3 ers A C47 7 3] 008 001 Ts u a Al ics " ¢ pod C27 SR3I 28C945(P I bos] Ls273 bos 02232.2K “or 536K = LATCH 5 {202 KH s $1 oi eck [33 17 a a i (00/16 C50 C63 C5) C52 C53 c54 C64 css C36 c87 CéS 1 Ol ol a Al A Ol | ' 1 Ov —~87— IAGRAM Zz LJcasoino 08,06 RSOUT | s RO3.96-B 10 |casmor! or GZA3.9(Y) 4 Joatat DIN or UZ 3.9 ries nana or RD3SEL -+5V te orRD3.9EN DS SALT IN4148 or RS2320 JK3 Kisos3 RS232C 2 beasmor SC77527 Ql 2SD3IS(EFlor (1W) 033 KTO88OCY,GR) cS oi 1O0f6 100/16 c2 sounon RF OUT Re 4700/16 $ trotv) gs Y He MOV-& 7 DI,D2 IN4002 or SPIK-2 or IOEI D3,D4 3001 or GP30BorG3B Fav > vs Vee 6 T 1034 AC 120V 60 Hz ‘7 Y6 Iolt yg [tl a! 7aLsize |, [12 a ye HE 3 yy He yo 45 G2B_G2A SI 4 5 & +5V Re7 47K RID = pp Pt 100 Seo peep2 4” pgs L2 B pas : < Pes c39 4 — sep 7 a pes LS paz [LE Vas a NOTE (F} ALL RESISTANCE VALUES ARE INDICATED In “OHM" (K=108 OHM, M2to® OHM) (2) ALL CAPACITANCE VALUES ARE INDICATED IN "pr" (P=10%uF} L BY ¥ ICl4~ic2t IGKRAM (26-3134 ,26-3136 -) USED IC; MB SIIBE MCM 45I7BP 20. RX IC14~1c21 64K UPGRADE. 64K RAM IC; uPD 4164-2, HM4864-3 MB 8264-20P, MCM6665 L20 SECTION X EXPLODED VIEW — 90 — EXPLODED —~91— RADIO SHACK, A DIVISION OF TANDY CORPORATION U.S.A.: FORT WORTH, TEXAS 76102 CANADA: BARRIE, ONTARIO L4M 4W5 TANDY CORPORATION AUSTRALIA BELGIUM U.K. — 91 KURRAJONG AVENUE PARCINDUSTRIEL DE NANINNE BILSTON ROAD, WEDNESBURY, MOUNT DRUITT, N.S.W. 2770 5140 NANINNE WEST MIDLANDS WS10 7JN 8A4 Printed in Japan 811110780A '