SERVICE MANUAL MODEL C64 COMPUTER SEPTEMBER 1985 PN-314001-02 Commodore Business Machines, Inc. 1200 Wilson Drive, West Chester, Pennsylvania 19380 U.S.A. Commodore makes no expressed or implied war ranties with regard to the information contained herein. The information is made available solely on an as is basis, and the entire risk as to quality and accuracy is with the user. Commodore shall not be • .liable for any consequential or incidental damages in connection with the use of the information con tained herein. The listing of any available replace ment part herein does not constitute in any case a recommendation, warranty or guaranty as to quality or suitability of such replacement part. Reproduction or use without expressed permission, of editorial or pictorial content, in any matter is prohibited. This manual contains copyrighted and proprietary information. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written oermis- sion of Commodore Electronics Limited. Copyright © 1985 by Commodore Electronics Limited. All rights reserved. CONTENTS Title Page SPECIFICATIONS 1 PRODUCT PARTS LIST 2 BLOCK DIAGRAM 3 CIRCUIT THEORY POWER SUPPLY 4 RESET LOGIC 5 CLOCK CIRCUITS 6 I/O, ROM, EXPANSION PORT 7 RAM CONTROL LOGIC 8 5 PIN VIDEO AND AUDIO OUTPUTS 9 8 PIN VIDEO AND AUDIO OUTPUTS 10 CASSETTE INTERFACE 11 KEYBOARD, JOYSTICK & PADDLE INTERFACES 12 SERIAL INTERFACE. USER PORT 13 TROUBLESHOOTING GUIDE '. 14 BOARD IDENTIFICATION 17 PCB ASSEMBLY #326298-01 BOARD LAYOUT .". 18 PARTS LISTS 19,20 PIN ASSIGNMENTS 21 SCHEMATIC #326106 21,22 PCB ASSEMBLY #250407-04 BOARD LAYOUT 23 PARTS LIST 24,25 MODULATOR SCHEMATIC #251025 26 SCHEMATIC #251138 26,27 PIN ASSIGNMENTS 27 PCB ASSEMBLY #250425-01 ^ BOARD LAYOUT 28 PARTS LIST 29,30 /_ MODULATOR SCHEMATIC #251696 31 SCHEMATIC #251469 31,32 PIN ASSIGNMENTS 32 C64 COMPUTER GENERAL DESCRIPTION • The "All Purpose" Commodore 64 is the complete/computer for,/„ education, home or small business applications. Supported by quality peripherals and a full range of software, the Commodore 64 is perfect for the family. No other computer can offer such variety of uses and applications at such an affordable price. MEMORY • 64K RAM ROM • 20K ROM Standard (includes operating system and BASIC interpreter) MICROPROCESSOR • 651OA Microprocessor-1.02 MHz clock • Compatible with the 6502 DISPLAY • 40 Columns X 25 lines of text COLORS • 16 Background, border and character colors CHARACTERS • Upper & lower case letters, numerals and symbols • Reverse characters • All PET graphic characters DISPLAY MODES • Text characters • High resolution graphics RESOLUTION • 320 X 200 Pixels SPRITES • 8 independent sprites • Each consists of 24 X 21 pixels and up to 4 colors • Each independently expandable horizontally and vertically • Collision detection for sprite to sprite and data to sprite collisions SOUND • 6581 Sound Interface Device includes 3 independent tone generators—each with 9 octaves • Each voice includes programmable ADSR generator (Attack, Decay, Sustain, Release) and control of sawtooth, triangle, square, variable pulse and noise waveforms • Full filtering capabilities with low, high and band pass filters • External sound input KEYBOARD • Full size typewriter style design KEYS • 66 Keys total • 2 Cursor control keys • 4 Function keys (up to 8 user defined/programmable functions possible) • Upper and lower case character set • Graphic character set INPUTS/OUTPUTS • User port • Serial port • ROM cartridge port • 2 Joystick/ paddle ports • Video port • C1530 Cassette drive interface port FEATURES • Built-in BASIC 2.0—over 70 commands, statements and functions • Full screen editor PERIPHERALS • C1541 Diskdrive • C1530 Datasette • MPS 801 Dot matrix printer • MPS 802 Dot matrix printer • MPS 803 Dot matrix printer • DPS 1101 Daisey wheel printer • C1520 Plotter/Printer • C1702 Color monitor • CM 141 Color monitor POWER REQUIREMENTS • 120 Volts, 60 Hz Specifications subject to change without notice. PARTS LIST C-64 PLEASE NOTE: Commodore part numbers are provided for reference only and do not indicate the availability of parts from Commodore. Industry standard parts (Resistors, Capacitors, Connectors) should be secured locally. Approved cross-references for TTL chips. Transistors, etc. will be available in manual form through the Service Department in November of 1984. Unique or non-standard parts will be stocked by Commodore and are indicated on the parts list by a "C". TOP CASE ASSY Top Case C 326113-01 Keyboard C 326166-02 LEO Plate C 326160-01 Nameplate C 326161-01 Lamp Holder Set C 903820-03 LED Assembly C 1001039-01 BOTTOM CASE ASSY Bottom Case C 326114-01 Foot, Self-Adhesive C 950157-04 PCB Shield Plate C 326131-01 PCB Insulation Sheet C 326288-01 ACCESSORIES Users Manual C 320974 Power Supply C 251053-02 RF Cable C 326189-01 Switch Box C 904778-01 C-64 BLOCK DIAGRAM 1- 2- 3- ADDRESS I 4- DECODING EXPANSION CASSETTE 5- PORT 6 PLA PORT 1 7- A V 6510 MICRO DATA BUS PADDLES BASIC ADDRESS BUS ROM 8K RF MOD J L SID CHIP SYNC KERNAL CHROMA ROM LUMA 8K 6567 VIC CHIP MONITOR CHARACTER GENERATOR ROM 4K 64K ROM KEYBOARD 6526 MATRIX CIA CONTROL PORTS USER PORT There are three versions of the C64. The C64 with a five pin connector video output (326106), The C64 with an eight pin connector video output (251138), and the C64B which has improved system clock circuit design (251469). Most circuit theory explanations will be the same for all three versions. Refer to schematic 326106 unless noted otherwise. The Power Supply. The external power supply generates a regulated 5VDC and 9VAC. 5VDC is applied to pins 5 and 1 of CN7 on the C64 pcb. Filtered by 15,097, and C100 it is then controlled by on/off switch S1. This 5VDC output supplies the microprocessor logic. 9VAC is applied to pins 6 and 7 of CN7 on the C64 pcb. +12VDC, + 5VDC CAN and 9VDC unregulated are outputs that are derived from this 9VAC supply. The 9VAC supply is made available on pins 10 and 11 of the USER PORT CN2. 12VDC Generation 9VAC is added to 9VDC through CR6, and rectified by CR5. The unregulated DC output is filtered by C88 and C89 then regulated at 12VDC by VR1. The regulated output is filtered by C57 and C59. The 12VDC supplies the VIC and SID IC, and the audio amplifiers. + 5VDC CAN Generation 9VAC is rectified by CR4. The unregulated DC output is filtered by C19, and C95 then regulated at 5VDC by VR2. The regulated output is filtered by C102 and C103. The output called 5VDC CAN is separated and individually filtered into two outputs called Vvid and Vc. Vvid is the 5VDC supply for the video circuits, and Vc is the 5VDC supply for the clock circuits. 9VDC Unregulated Generation. CR4 rectifies the 9VAC input. The output is 9VDC unregulated. This supply powers the cassette motor transistor amplifier circuits, and the RF modulator on the C64B version. 7 C64 CIRCUIT THEORY Vfll CR5 47O IN40OI 50V ♦-^If— C88 .22 IIIO 2 ~: ~ 50V IN400I UNIREG VR2 7805 _pfi2_ -r —CSV I II2200 45 PB4 - - 16V ^T3 mO 5 Tioo I CD -I6V - m HE5ET CIOO .22 r-5HlEJ_D GND. POWER TNPUT CN7 (7-PIN MALE DIN) CAN +5 o- -f—*+VviD CG4 '± CG3_ it: CGI 10 1.47 I T.47 25V " 50V " - 50V 20% 20% L2 CAN +5o- +vc 5:CGG^_ »O 1.47 I 25V " 50V " 20% C64 CIRCUIT THEORY < RESET > +5V +5V R3& IK +5V Reset Logic Circuits. U20 is a 556 IC timer configured as a one shot multivibrator. The output pulse width is determined by the size of R34 and C24. Pulse width = 1.1 x R34 x C24 » .5 seconds. The output on pin 9 is "high" active. The output of U8 is "low" active. Reset initializes all the processor logic and causes the processor to load the program counter register with the address of the first instruction of the operating system program called the KERNAL. The starting address is stored in locations $FFFC and $FFFD. The first instruction is decoded and executed giving KERNAL control of the computer opera tions. The reset pulse occurs when turning the power on to the computer. ■•f C64 CIRCUIT THEORY The C64 Clock Circuits. Crystal Y1 develops a 14.31818MHz fundamental frequency clock signal. U31 is a Dual Voltage Con trolled Oscillator. The output on pin 10 is a 14.31818 MHz clock signal called the color clock. R27 can be adjusted to obtain exact output frequency. U30 is a frequency divider that outputs a 2MHz signal on pin 6. U29 is a D flip flop which outputs a 1 MHz signal on pin 9. U32 is a Phase/Frequency Detector which compares the output of the U29 to the phase 0 clock, and outputs a dc voltage on pin 8 that is proportional to the phase difference between the inputs. The second half of the Dual Voltage Controlled Oscillator U31 generates an 8.1818MHz clock signal called the DOT Clock. The VIC IC divides the DOT clock by eight and outputs this as the phase 0 clock on pin 17. The output of the Phase/Frequency Detector is applied to the frequency control input pin 2 of U31. This causes tracking of the dot clock and the color clock because one input, pin 3 of U32, is the phase 0 clock which is derived from the dot clock, and the other input pin 1 of U32, is derived from the color clock. -TP——o tS U3/ 87of PAL P'^ +• Mi The C64B Clock Circuits. Refer to schematic 251469 Crystal Y1 develops the fundamental 16MHz clock signal. U31 is a Clock Generator IC that outputs the 8.1818MHz DOT clock on pin 6, and the 14.31818 MHz color clock on pin 8. C64 CIRCUIT THEORY CARTRIDGE/EXPANSION 144-PlKJ PEMALE) CN6 I/O and ROM Address Decoding and Expansion Port. I/O Address Decoding Logic. U17 is a Programmable logic array (PLA). The output F5 on pin 12 called I/O goes "low" when any of the I/O devices controlled by U15 are selected. The addresses are listed below for each device. VIC IC $D000 - $DO2E SID IC $D400 - $D7FF Color Ram $D800 - $DBFF CIA1 $DCOO - $DCOF CIA2 $DDOO - $DDOF I/O 1 $DEOO - $DEFF I/O 2 $DFOO - $DFFF ROM Address Decoding. Basic ROM resides at locations $A000 - $BFFF. The output F1 pin 17 of the PLA U17 goes "low" when the BASIC ROM is selected. The KERNAL ROM resides at locations $E000 - $FFFF. The output F2 pin 16 of the PLA U17 goes "low" when the KERNAL ROM is selected. The CHARACTER GENERATOR ROM resides at locations $D000 - $DFFF. The output F3 pin 15 of the PLA U17 goes "low" when the Character Generator ROM is selected. The Expansion Port Connections. The expansion port is an extension of the microprocessor address, data, and control bus. ROML decodes addresses $8000 - $9FFF, and ROMH decodes addresses $E000 - $FFFF. These are outputs from the PLA used to select the cartridge inserted in the expansion port. I/O 1 input from U15 decodes addresses $DEOO - $DEFF. I/O 2 output from U15 decodes addresses $DFOO - $DFFF. J - 906107-01 6510 PIN MICROPROCESSOR ASSIGNMENT 1 01 Phase 1 clock input. This clock input is 40-RES used to develop the internal overlapping 39 -Q2 phase 2 clock. 1 MegHz or 2 MegHz speeds. 38-R/W RDY 37-DB0 Single step operation input. A low applied 36 -DB1 212T thr Pr°CeSSOr t0 halt' The <™ £2 1?ressJine b8in9 itched will be on 35 -DB2 the address bus. Can also be used to in 34-DB3 terface slower devices to the micropro 33-DB4 cessor. K 32 -DB5 IRQ Interrupt request input. When a low pulse 31 -DB6 is applied a jump to a location specified 30 -DB7 by the contents of FFFE and FFFF will oc- 29-P0 28-P1 ™i°*f6rViCe the interrupt' if the '"terrupt mask flag is not set. This is a maskable interrupt. 27-P2 4 NMI 26 -P3 Non-maskable interrupt input. A low tran- 25-P4 SSt^k08!^ specified by FFFAa jump t0 a tolocation and FFFB a subrou- 24-P5 23-A15 5 AEC Tl WhlCh wl" service the interrupt. Address enable control input. A low ap 22-A14 plied to will cause the address bus to 21 ^-GND enter hi impedance state, so other devices can control the address bus. 6 VCC 5VDC input. 7-20 A0-A15 22,23 Address bus outputs. Unidirectional bus used to address memory and I/O devices. PIN The address bus can be disabled by con ASSIGNMENT trolling the AEC input. 21 GND Dc ground connection. 24-29 P0-P5 I/O bidirectional port. This port can be OOCn V'a memory locati°ns 0000 and 0001 = Output register 0000 = Data direction register 30-37 DB0-DB7 Bidirectional data bus. This is the bus that passes the data to or from any I/O device or memory. 38 R/W Read/Write output. The processor gener ates a low level when writing, and a high level when reading. This signal is usual!? 39 02 ! J>U-PUt; The Processor generates clock signal from the phase 1 clock applied. The two clock signals are 180 degrees out of phase. The phase 2 clock GNO- 14 •s used in decoding I/O and memory on -F3 the positive half cycle. 40 RES Reset input interrupt. A low pulse causes U17 - 90611401 a jump to a subroutine specified by FFFC and FFFD, which will initialize all proces PROGRAMMABLE sor controlled devices. This occurs during LOGIC ARRAY (PLA) a power up sequence. a C64 CIRCUIT THEORY RAM Control Logic. U13 and U25 are multiplexers. The address outputs from the microprocessor are passed to RAM via U13 and U25 when the output Address Enable Control (AEC) from the VIC IC is "high". When AEC is "low" the VIC IC outputs refresh addresses on pins 24 - 31. AEC goes "low" when the system clock, phase 2, is "low". Since all I/O decoding occurs when phase 2 is "high", refresh is transparent to the processor. Eight 4164 DRAMS provide 64k bytes of memory. One 2114 RAM (U6) provides 512 bytes of memory allocated for screen color data storage. 275 28 300 22 > 248 23 > 330 20 ) 275 27.5 - J - T i J - J - 4 -1 - -1 - iJ - ) 150 20 ) 248 28 ) 242 20 [) 275 22 U5 U4 23G4A 23C4A 6ASIC KERNAL ROM ROM (AOOO- (EOOO- A3 (OOOO- BPFF) FFFF) OFFF) -ODIN i -oDOUT -oVCC -oVSS RATOR CARTRIDGE / EXPAMSION (4^-PltsJ FEMALE) CI SCHEMATIC #326106 SHEET 2 OF 2 - VIC t SID 5HOULD HAVE SEPARATE GNO RE7URM5. (14.31618 MHe-NTSC 17.734472 MHi- I-PIM FEMALE) GNG 22 r ( •■ 3 CAsjsrrg CATHObl Stfii CT 2. JUMKH WIRC NTSC«*.*) HAL <+3) r SOLDERIMg SIDE i'O'O'O-D'OfO. fitt'O.ll PUj§£* SScDil? Atrr wo.tiQ4OT w^* btTAIL [71 TO F/X A&OMW? TO VOLTAGE fi£6&LA70* JCAEtV MJxiO AMD NVT HEXAGON M3 AXE DETAIL USED. EYELET CAN St/3Sr?7VTE. Vs\ RfOt. /7" AS SO/TABLE FOR 6S49 RCV. f AMD 4S6? R€V.5 . DO MOT USE FOR V.e OR 6569 RCV.3. [7| CZO4. iT AS SU/TABLC FOR MBf/ZA/O/. \J\ CtO3. iT /« 34//TABLE FOR 4S49 REV./. OUT MHEAf USE rS/raj (Iif7 JTEM /S6 ), DO MOT US£ THhS CAFACtTOR. BOARD LAYOUT #250407-04 CO PARTS LIST - PCB ASSEMBLY #250407-04 C — Indicates Commodore Stocked Part Number INTEGRATED CIRCUITS RESISTORS {Continued) U1.U2 6526 CIA C 906108-01 R26 Jumper Wire R39 390 U3 2364 Basic ROM C 901226-01 R27 Pot 5000 R41 1M U4 2364 Kernal ROM C 90122703 R28 1K R42 82 U5 2332 Char ROM C 901225-01 R29 1K R43 3.3K U6 2114L-20 RAM 901453-01 R30 1K R44 3.3K U7 6510 n Processor C 906107-01 R31 180 R45 3.3K U8 7406 901522-06 sub: R33 47K R50 1M 7416 901522-14 R34 47K R51 1.5K U9-U12 4164 (200 nS) 901505-01 R35 470K R52 300 U13 74LS257 901521-57 R36 1K R53 390 U14 74LS258 901521-58 R37 2.7K R100 1K U15 74LS139 901521-18 R38 1K R101 22K U16 4066 901502-01 U17 82S100 PLA C 906114-01 RESISTOR PACKS U18 6581 SID C 906112-01 RP1.2 330, 8 Pin (Bourns No. U19 6567 VIC II C 906109-04 4308R-102-330) U20 LM556 901523-03 RP3 3.3K0. 8 Pin (Bourns No. U21-U24 4164 (200 nS) 901505-01 4308R-101-332) U25 74LS257 901521-57 RP4 3.3K0, 10 Pin U26 74LS373 901521-29 U27 74LS08 901521-03 CAPACITORS U28 4066 901502-01 U29 74LS74 901521-06 C1-7 Ceramic .1 /tF, 25V U30 74LS193 901521-26 C8 Electrolytic 10/iF, 25V, + 50%. -10% U31 74LS629 901521-68 C9 Ceramic .1 /iF, 25V U32 MC4044 906128-01 C10.11 Ceramic 470 pF, 50V, 10% C12 Ceramic .1 /iF, 25V TRANSISTORS C13,14,15 Electrolytic 10 /iF, 25V, + 50%. -10% C16 Ceramic .1 /iF, 25V Q1.2 2SC1815 C 902693-01 sub: C17 Electrolytic 10/iF, 25V, + 50%. -10% Q3 TIP29 A 902653-01 C18 Ceramic .1 /iF, 25V Q7.8 2SC1815 C 902693-01 C19 Electrolytic 2200/iF, 16V DIODES C20.21 Film .22 /iF, 100V, 20% v^eramic . I /tr, Zov CR1 2.7V Zener IN4371 906103-02 C23 Ceramic 360 pF, 50V, 10% CR2 7.5V Zener IN755 900941-01 C24 Electrolytic 10 /tF, 25V, + 50%. -10% CR4 Bridge S2VB10 C 251026-01 C25-33 Ceramic .1 /tF, 25V DBA20B C 251026-02 C34 Electrolytic 10/tF. 25V, + 50%. -10% DBA20C C 251026-03 C35 Ceramic .1 /tF, 50V CR5.6 Rectifier IN4001 900750-01 C36 Ceramic 20 pF, 50V, 5% SL C37 Ceramic 1000 pF, 50V. 10% B RESISTORS — All values are in ohms- 1/4 W, C38 Ceramic 51 pF, 50V. 5% SL 5%, unless noted otherwise. C39-47 Ceramic .1 /iF, 25V C48 Ceramic 1800 pF. 50V. 10% B R1 3.3K R6 1K C49-54 Ceramic .1 /tF, 25V R2 1.5K R7 10K C55 Ceramic .1 /tF, 50V R3 10K R16 1K C56 Ceramic .1 /tF. 25V R4 1K R17 2.7K C57 Electrolytic 10/tF. 25V, + 50%. -10% R5 560 R19 15K C58 Ceramic .1 /tF, 50V 24 PARTS LIST - PCB ASSEMBLY #250407-04 (Continued) C — Indicates Commodore Stocked Part Number CAPACITORS (Continued) CONNECTORS C59,60 Ceramic -1 a*F, 25V CN1 Header Assy, 20 Pin 903331-20 C62.65 Electrolytic 10 MF, 25V, + 50%. CN4 6 Pin Din C 903361-01 -10% CN5 8 Pin Oin C 325573-01 C66,67,68 Ceramic .1 *F. 25V CN6 44 Pin Card Edge C 906100-02 C70 Film 16 pF, 5% CN7 7 Pin Din C 251116-01 C74.82 Ceramic .1 /iF, 25V CN8.9 Plug Assy. 9 Pin MINID C 906126-01 C83 Ceramic 82 pF, 5% CN10 Header Assy, 3 Pin 903332-03 C84 Ceramtc .1 mF, 25V C85 MISCELLANEOUS Ceramic .47 /iF. 50V, 10% C88 Electrolytic 1000 /*F, 25V L2 Coil Inductor 2.2 pH 901151-17 C89 Ceramic .1|tF. 25V L4 Coil Inductor 1.2 jiH 325570-01 C90 Electrolytic 470 /iF, 50V L5 Choke Coil C 325559-02 C91 Electrolytic 100 /*F. 16V, + 50%, -10% Y1 Crystal 14.31818 MHz C 900558-01 C92 Ceramic 25V C93 Ceramic 1800 pF, 50V, 10% B SW1 Rocker Switch DPDT 904500-01 C94 Electrolytic 10 MF, 25V, + 50%, -10% VR1 Voltage Regulator C95.96 Ceramic .1 /iF. 25V MC7812CT 901527-01 C97 Ceramic .22 ,d=, 25V VR2 Voltage Regulator C98.99 Ceramic • 1/*F. 50V, +80%, MC7805CT 901527-02 -20% C100 Ceramic •22 tf, 25V M1 Modulator C 251080-01 C101 Ceramic .1 i*. 50V, + 80%, -20% F1 Fuse, Normal Bio, 250V, 1.5A C102 Electrolytic 10 /*F. 25V, + 50%, FB1-5 . Ferrite Bead 903025-01 -10% FB7-23 C103 Ceramic • 1/tF. 25V C104 Connector Panel C105 Ceramic .1 lit. 25V (Power, ON. OFF) 251095-01 C108 Electrolytic 10 /iF, 25V, 20% Cartridge Guide 326116-01 C200 Ceramic .1 |«F, 25V Shield Box C 251023-01 Shield Cap C 251024-01 MODULATOR SCHEMATIC #251025 COLOR IMO ftQTE :2SC1fefl4 OR EQlVALENf 2Q4 :2SCI73O0ft EQIVALENI '.2SC46O OftEOlVAlENT 406 :2SC212O OR EQlVALENf &01 .HZ-7 D£D3:1SS119 LUMIIN 04.DS:iSSB60ft1SSi74 D6riSS11Q 6 ALL CAPACITANCE VALUES !f TALL RESISTANCE VALUES :O frALL INDUCTANCE VALUES ;H RfOUT Mf£R CARRIER SOXCTORO LttdAl. ■ H 4 Oil. MALI TERMINALS 1 SYNCtLUMSIG.INPUT «r COLOR SIG. INPUT AUDIQ SiQ.INPUT COMP. SIG. OUTPUT i COLOR SIG.OUTPUT it IffTER CARRIER SaECTOR RF. OUTPUT CHANNEL TRIMMER | 1.REC0MMENQEQ p.C.fl.HQLE CENTERS (COMPONENT SlQgy jtALL PtMENSlO^ ARE IN MILLIMETERS 3. NQ.BTERMIKIAI SHQRT«dPAL JNO ( 31M3J NldPP) NOI$NVdX3/3SQiy±dVO T1 Ail rx v*p TO9 T"*ussmm*\ m If ,? £^2 gi^ 2-t9tP izn 6n ETW7 £-JBt AS* 2. tSBF* t!!!^. 5*4 p 4i k X'* 5*5 /^ :tt? SCHEMATIC #251138 SHEET 1 OF 2 Uf7 C2O3 c^oa 7700-OOf — — u 12 7700-00/ — HBMAfOt 0iPFtS%SL O&e 6569 RE V3 FOR U1G6>1 (NTSC) (PAL) 26 U7 - 906107-01 6510 MICROPROCESSOR PIN ASSIGNMENT 1 01 Phase 1 clock input. This clock input is 01 1 40 -RES used to develop the internal overlappinq RDY 2 39 -02 phase 2 clock. 1 MegHz or 2 MeglE IRQ 3 38 -R/W speeds. RDY NMI 4 37 DBO Single step operation input. A low applied AEC VCC 5 36 DB1 SCflHHSe *?•linePTessor rent address to halt-willTh°becuron being fetched 6 35 DB2 AO 7 the address bus. Can also be used to in 34 DB3 A1 8 terface slower devices to the micropro 33 DB4 cessor. A2 9 32 I-DB5 IRQ Interrupt request input. When a low pulse A3 10 31 OB6 isi applied a jump to a location specified A4 11 30 by the contents of FFFE and FFFF will oc- DB7 A5 12 29 PO mari°,?erVICe the lntemjPt. if the interrupt A6 13 28 P1 mask flag is not set. This is a maskable A7 14 interrupt. 27 P2 NMI A8 15 26 P3 Non-maskable interrupt input. A low tran A9 16 sition will cause a jump to a location 25 P4 A1O- 17 specfied by FFFA and FFFB to a subrou 24 P5 A11- 18 tine which will service the interrupt. 23 A15 AEC A12- 19 Address enable control input. A low ap 22 A14 plied to will cause the address bus to A13- 20 21 GNO enter hi impedance state, so other devices can control the address bus 6 VCC 5VDC input. 7-20 A0-A15 22,23 Address bus outputs. Unidirectional bus used to address memory and I/O devices PIN The address bus can be disabled by con ASSIGNMENT trolling the AEC input. 21 GND Dc ground connection. 24-29 P0-P5 I/O bidirectional port. This port can be PE + 1 28 controlled via memory locations 0000 and UUUl • "7 2 27 Ms 0001 = Output register 3 26 0000 = Data direction register 15- 4 25 30-37 DB0-DB7 Bidirectional data bus. This is the bus that -'10 5 24 -in passes the data to or from any I/O device or memory. 13- 6 23 -h2 38 R/W Read/Write output. The processor gener 7 22 -h3 ates a low level when writing, and a high 11- 8 21 114 level when reading. This signal is usually 9 20 decoded for read or write operations to '15 memory or I/O. F7- 10 19 -CE 39 02 Phase 2 output. The processor generates F6- 11 18 this clock signal from the phase 1 clock 12 applied. The two clock signals are 180 F5" 17 F4- 13 16 degrees out of phase. The phase 2 clock •F2 is used in decoding I/O and memory on GND- 14 15 F3 the positive half cycle. 40 RES Reset input interrupt. A low pulse causes a jump to a subroutine specified by FFFC U17 - 906114-01 and FFFD, which will initialize all proces PROGRAMMABLE sor controlled devices. This occurs during a power up sequence. LOGIC ARRAY (PLA) CD ' 3 .' KEYBOARD OWTR0LPORT1 CONTROL PORTZ SERIAL BUS USE* < 24-PtN MALE EDGE ) ( 20-PtN MALE) (MALE OB? ) (MALE OB? ) 16-P/N FEMALE DIN) CNZ C/V / CN? CNd H SCHEMATIC #251138 SHEET 2 OF 2 cas /?//'* f**' FOLMMNG VALUE SHOULD BE USE 6S&7/&/S 60/FtSXSL ZZK£l ♦/* IS69 f&f 6NftS%SL 2i*n. 6S69 HBO 92F*t5& S. SOUND CARKZK SELECT Cf»L ONLY) SHORT S.SHHg K* 6./ML J.AU- J. ^^.^. RESISTORS ARE tS< WATT tsn. [Z\ CLOCK CtRCUtTl ITEM h/TSC PAL H.3J3/8 f7.734472 Y1 HHg HHt SHIELD GND fiffSS% /S"tSX ■#/ C70 N33OO NUCO 0(1 toon RS2 JO OH 330 a RSJ 39O&. fOOd C/07 — rOuF ^ M /. ^C WO(/lD BE USED TO DRIVE ONLY DEVICES WOECATED. POWER INPUT CN7 WTES-UNLESS OTHERWISE SPECIFIED i ( 7JW HALE OIN ) 27 ^ cassette MODULATOR PAL CARRIER *#4 2Zf025-Ot SELECT -02(6ER) -OH (UK) -02(GER) -03 (OK) JUMPER DOt/T CARE OPEN SHORT **CARE SWITCH I&/T CARE ^Jre POSITION position DETAIL 'C" SOUND CARRIER SELECT ro BOARD LAYOUT #250425-01 PARTS LIST - PCB ASSEMBLY #260425-01 C — Indicates Commodore Stocked Part Number INTEGRATED CIRCUITS RESISTORS (Continued) U1,U2 6526 CIA C 906108-01 R39 390 R50 1M U3 2364 Basic ROM C 901226-01 R41 1M R51 1.5K U4 2364 Kernal ROM C 901227-03 R42 82 R60 100 U5 2332 Char ROM C 901225-01 R43 3.3K R100 1K U6 2114L-20 RAM 901453-01 R44 3.3K R101 22K U7 6510 n Processor C 906107-01 R45 3.3K U8 7406 901522-06 sub: 7416 RESISTOR PACKS 901522-14 U9-U12 4164 (200 nS) 901505-01 RP1,2 338, 8 Pin (Bourns No. U13 74LS257 901521-57 4308R-102-330) U14 74LS258 901521-58 RP3 3.3KQ, 8 Pin (Bourns No U15 74LS139 901521-18 4308R-101-332) U16 4066 901502-01 RP4 3.3KB, 10 Pin, 1/4 W U17 82S100 PLA C 906114-01 RP5 1KQ, 6 Pin U18 6581 SID C 906112-01 U19 6567 VIC II C 906109-04 CAPACITORS U20 LM556 901523-03 U21-U24 4164 (200 nS) 901505-01 C1-7 Ceramic .1 /tF, 25V U25 74LS257 901521-57 C9 Ceramic .1 /tF, 25V U26 74LS373 901521-29 C10.11 Ceramic 470 pF, 50V, 10% U27 74LS08 901521-03 C12 Ceramic .1 /tF, 25V U28 4066 901502-01 C13 Electrolytic 10 /tF, 25V, +50%, -10% U31 7701/8701 C 251527-01 C15 Tantalum 4.7 /tF, 16V, 20% C19 Electrolytic 2200 /tF. 16V TRANSISTORS C20 Film .22 /tF, 100V. 20% C22 Ceramic .1 /iF, 25V Q1 TIP29 A 902653-01 C23 Ceramic 360 pF, 50V, 10% sub: Q2-4 2SC1815 C 902693-01 390 pF DIODES C24 Electrolytic 22 /tF, 25V. +50%, -10% C31.33,34 Ceramic .1 /tF. 25V CR1 2.7V Zener IN4371 906103-02 C37 Ceramic 1000 pF, 50V, 10% B CR2 6.8V Zener IN754A C38 Ceramic 51 pF, 50V, 5% SL CR4 Bridge S2V310 C 251026-01 sub: C39-46 Ceramic .1 /tF, 25V DBA20B C 251026-02 sub: C48 Ceramic 1800 pF, 50V, 10% B DBA20C C 251026-03 C50,51,53 Ceramic .1 /tF, 25V CR5.6 Rectifier IN4001 900750-01 C59 Ceramic .1 /tF, 25V CR9. IN4148 sub: C88 Electrolytic 1000 /iF, 25V CR12-16, C90 Electrolytic 470 /tF, 50V IN914 100-105 C91 Electrolytic 100/tF. 16V. +50%, -10% C93 Ceramic 1800 pF, 50V, 10% B RESISTORS - All values are in ohms- 1/4 W, C101 Ceramic .1 /tF, 50V, +80%, -20% 5%, unless noted otherwise. C102 Ceramic .1 /tF, 25V C150-152 Ceramic 470 pF, 50V, 10% R1 3.3K R26 3.3K C153 Ceramic 68 pF, 50V, 5% R2 470 R31 180 C154 Ceramic 470 pF, 50V, 10% R3 100K R33 47K C200 Ceramic .1 /tF, 25V R4 1K R34 47K C204 Ceramic 150 pF, 50V. 10% R5 560 R35 470K C205 Ceramic 220 pF, 50V. 5% R6 1K R37 2.7K R7 10K R38 1K CT1 Trimmer 40 dF 29 PARTS LIST.- PCB ASSEMBLY #250425-01 (Continued) C — Indicates Commodore Stocked Part Number CONNECTORS MISCELLANEOUS (Continued) CN1 Header Assy, 20 Pin 903331-20 SW1 Rocker Switch DPDT 904500-01 CN4 6 Pin Din C 903361-01 CN5 8 Pin Din C 325573-01 VR1 Voltage Regulator CN6 44 Pin Card Edge C 906100-02 MC7812CT 901527-01 CN7 7 Pin Din C 251116-01 VR2 Voltage Regulator CN8,9 Plug Assy, 9 Pin MINID C 251057-01 MC7805CT 901527-02 CN10 Header Assy, 3 Pin 903332-03 M1 Modulator C 251696-01 MISCELLANEOUS Connector Panel L1 Coil Inductor 2.2 pH 901151-17 (Power, ON, OFF) 251095-01 L4 Line Filter Assy C 251701-01 Cartridge Guide 326116-01 L5 Coil Inductor 1.2 /tH 901152-01 F1 Fuse, Normal Bio, 250V, 1.5A Y1 Crystal 14.31818 MHz C 251467-01 30 MODULATOR SCHEMATIC #251696 7 COCOK IN O ■O COLOR OUT LUA4UN O our GROUND AUDIO IN o NOTES /. D1.DZ \MAtStK OR EQUIVALENT 2. D3 : MAS7 OR EQUIVALENT 3. 04, OS :/JxS/?? L02MHI ax*) (7.33MM-PAL) Yi /4.3/S/S HHr U3t 770/ a/9 6S67 un 7 700 NTSC-itMCTN£ . CH6 31 PIN 1-7/39 DB0-DB7 Processor data bus connections. Bidirec ASSIGNMENT tional data. 8 IRQ Interrupt output. Generates a interrupt signal to the processor indicating service DB6- 1 40 -vcc is needed. The light pen input can be DB5- 2 39 -DB7 acknowledged thru use of this interrupt. DB4- 38 -DB8 10 CS Chip select input. A low signal selects the 3 37 -DB9 VIC 11. DB3- 4 11 R/W Processor read/write connection. DB2- 5 36 -DB10 12 BA Bus available output. A low pulse output DB1- 6 35 -DB11 indicates the VIC 11 chip wants controls DBO- 7 34 -A10 of the processor network to process IRQ- 8 33 -A9 faster video operations that the system LP- 9 32 -A8 clock can handle. CS- 10 31 -A7 13 VDD 12VDC input. R/W- 11 30 -A6C1") 14 COLOR Output contains chrominance, color BA- 12 29 -A5(A13) reference burst, and color of display data. VDD- 13 28 -A4(A12) 15 SYNC/ Output containing video, horizontal and LUM vertical sync, and luminance information. COLOR- 14 27 -A3(A11) 16 AEC Address enable output. This is usually SYNC/LUM- 15 26 -A2(A10) connected to the processor AEC input, AEC- 16 25 -AKA9) controlling the address bus. PHO- 17 24 -A0(A8) AEC = 0 processor address bus disabled, RA§- 18 23 -A11 refresh ram. CAS- 19 22 -PHIN AEC = 1 processor address bus enabled. VSS- 20 21 -PHCL This allows transparent refresh operations. 17 PHO Phase 0 output. Generated from the U19 - 906109-01 phase in signal. MULTIPLEXED 18 RAS Row address strobe output. Selects proper ADDRESSES IN PARENTHESES row when addressing dynamic ram for read/write operations or refresh. 19 CAS Column address strobe output. Selects proper column when addressing dynamic memory for read or write operation. 20 VSS Ground connection. 21 PHCL Color clock, 14.31818 MHZ NTSC. 22 PHIN Clock input. Determines the dot transfer rate to the display. 23-24 A0-A13 Dual function address bus. During a micro processor read or write operation (AEC = 1), AO thru A5 are inputs used to address 47 internal registers. When AEC = 0 « 02 is low, then AO thru A13 are outputs used to refresh dynamic memory. 35-38 D8-D11 Data bus extension. Color display memory data. A8-A11 Address bus extension. Color display memory addressing. 40 VCC 5VDC input. direc- upt arvice be rrupt. icts the output jntrols ;s stem y data. and lation. ally put, sabled, i ' e > proper for jets lamic nsfer i micro- \EC = address 0 = Jtputs lemory SCHEMATIC #251469 SHEET 2 OF 2 SOUNO CAXR&R SZLBCT ONLY) SHORT <$->$MHb PoR GFAL 6 M*i* F*K i.PAL 3. ALL CAPHCI70R VALUZS Ate IN MF 2. ALL R6S/STORS AR6 '/* WAT! ±S% / WC +SMO4/1& 3£ JS&to TO ORIVE. INPUT CN7 ( 7FIN MALE D/AJ) / 32 . ;v T\ C64 CIRCUIT THEORY PB 0 1 2 7 5 6 3 J ^L 1 CTRL STOP SPACE da Q 2 1 3 ? W A SHIFT s E 4 ~1 5 R D X C F T 6 J 7 Y G V B H U 8 9 1 J N M K 0 0 P L + • • ® 1 SHIFT t CLR ss • DEL RET F1 F3 F5 F7 PAI k CRSR CRSR f L_ J RESTORE ! U20 \f 1 6510 •**A/\. 5.55 IV j 5V KEYBOARD MATRIX Joystick Interface. U1 also controls the joystick. Parallel port A accepts inputs from the B joystick connected to control port 2. Parallel port B accepts inputs from the A joystick connected to control port 1. When the joystick is moved up, down, left, right, or the fire button is depressed, a ground potential is applied to the appropriate input of U1. ! Paddle Interface. A Variable resistor is connected to adjusting knob on the paddle. When the knob is rotated, the resistance varies controlling the time constant of an RC network. The Voltage developed across the capacitor is input to an A/D converter internal to the SID chip U18. The digital output is stored in one of the SID registers. The paddle position can be determined by the reading the contents of the appropriate register. U28 is a 4066 CMOS switch.,The signals from the paddles are passed to the SID chip when the Enable inputs (E0 - E3) of U28are "high". NOTE: U1 port assignments are incorrect on schematics. Refer to Keyboard Matrix for correct assignments. 12 C64 CIRCUIT THEORY *P3 9.9K The Serial Interface and User Port Circuits. The Serial Interface. U2 is a Complex Interface Adapter (CIA). Parallel port signals PA3-PA7 control the serial bus inter face. PA3 is the Attention (ATN) output. This signal is inverted by U8 before being transmitted to a device on the bus. PA4 is the Clock output. Data transmitted from the C64 to a device on the bus is synchronized by this clock signal. U8 inverts the output PA4. PA5 is the data output. U8 inverts this output also. Data transmitted from a device on the bus to the C64 is synchronized by a clock generated by the transmitting device. The Clock signal is input on PA6. Data transmitted from a device on the bus to the C64 is input on PA7. When a device on the bus wants to communicate with the C64, SRQ IN goes "low" indicating service is requested. The User Port. Parallel port B of U2 (PBO - PB7) is made available on the user port. Parallel data transfers with exter nal devices are made very easily through this parallel port. SP2 and SP1 are bi-directional serial ports. CNT1 and CNT2 are bi-directional synchronizing clock signals for each serial port. 13 64 TROUBLESHOOTING GUIDE SYMPTOM POSSIBLE SOLUTION Blank screen on power up. • Check External Power Supply U4 (KERNAL ROM), U17 (PLA) U7 (6510 MPU), U3 (ROM) U8(7406 IC), U19 (VIC II) U9-U12 (4164 RAM) U21-U24 (4164 RAM) VR2, CR4, VR1 Out of memory error on power up. Check U9-U12 (4164 RAM) U21-U24 (4164 RAM) ••••USE DIAGNOSTIC TEST - DISK No cursor displayed. Check U1, U15, U7 Intermittent blank screen. Check U2, U7 Powers up with graphic display and Check U14 (74LS258 IC) blinking cursor. Powers up with all the characters Check U26 (74LS373 IC) displayed as blocks. Intermittent display. Check C88 (Possible Bad Connection) Powers up with 'PRESS PLAY ON Check U7 (6510 MPU) TAPE' message and the display blanks. R1 (Possible Bad Connection) On power up the cursor locks up. Check U7 (6510MPU) U20 (556 IC) When 'RETURN' is pressed after a run Check U3 (ROM) command, the cursor goes back to home position. Poke command does not work. Check U3 (ROM) Joystick does not operate correctly. Check U1, U28 (6526 CIA) Wrong frequency. Check C70 No character lettering is displayed on Check U3 (ROM) the screen. U2 (CIA) Graphic characters instead of letters Check U19 (VIC II) displayed. Power up message appears but no Check U1, U15, U7 and U4 cursor. 14 64 TROUBLESHOOTING GUIDE (Continued) SYMPTOM POSSIBLE SOLUTION Cursor jumps back to home position. Check U7 (6510 MPU) Abnormal colors appear in the letters. Check U6 (2114 RAM) U16 (4066 IC) Different characters are displayed and Check RAM cursor is locked when turned on and off. System does not reset and the Check U20 (556 IC) 'RESTORE' key does not work. White band scrolls down the screen. Check External Power Supply (60 HZ HUM) VR2 (5V Regulator) Cursor disappears after the system Check U1 (6526 CIA) warms up. SYNTAX ERROR displayed after Check RAM, U3 (ROM) system warms up. Wavy screen after the system warms Check External Power Supply up. U31 (74LS629 IC) U30 (74LS193 IC) The system resets when it warms up Check U7 (6510 MPU) and long programs do not load. U3 (ROM) Keyboard does not operate correctly Check U1 (6526 CIA) when the system warms up. U3 (ROM) Black band scrolls through screen Check External Power Supply when system warms up. C90, C88, CR4 VR2 (5V Regulator) Cassette motor keeps running. Check U7 (6510 MPU) Cassette motor keeps running even Check Cassette Port for Shorts after a program is done loading. The R4 (Possibly Open) TIP 29 transistor gets extremely hot and the fuse may possibly blow. The cursor disappears when the Check U7 (6510 MPU) cassette is plugged in. Cassette runs extremely slow. The Check U7 (6510 MPU) program seems to load but will not run. 15 64 TROUBLESHOOTING GUIDE (Continued) II SYMPTOM POSSIBLE SOLUTION When loading from a cassette, the Check U20 (556 IC) 'SYNTAX ERROR' message is displayed. DEVICE NOT PRESENT ERROR is Check U1 (6526 CIA) displayed when disk is used. U7 (6510 MPU) R28, R29, R30 Disk drives continue to search when Check U2 (6526 CIA) trying to load. When loading from disk and any key of Check U20 (556 IC) the 4th row of the keyboard is R35 (Possible Bad Connection) pressed, the cursor goes to home position. When loading from disk, a 'FILE NOT Check U4 (ROM) FOUND' message is displayed. U2 (6526 CIA) OUT OF MEMORY ERROR is displayed Check U20 (556 IC) when disk is used. 16 C64 BOARD IDENTIFICATION To date there are 4 versions of 64 PCB assemblies in use. VERSION IDENTIFYING FACTORS PCB ASSY # SCHEMATIC 9 Original 5 pin board 326298-01 326106 (CN5-Video port has 5 pins) A(CR) 8 pin board 250407-04 251138 (CN5-Video port has 8 pins) B 8 pin board 250425 251469 (Reduced oscillator circuit) B-2 8 Din board 250441-01* 251469 (Reduced Osc. w/component changes) — These boards are interchangeable with casework, keyboard, etc.; however, care must be taken to provide the customer with a unit that is compatible with their monitor and cable. — When component level repairs are necessary, be certain to acquire the appropriate part for the board you are repairing. Most modulators are different, as are many of the other components. *The 4th version of 64 board was recently developed and only a few may be in the field. It is termed the 64B-2. All circuits remain the same as the 64B (Schematic 251469) with a few component loca tion changes: 1) Resistors 28, 29, 30, 36, 48 were reduced to Resistor Pack RP5. 2) Diodes CR100-105 are no longer piggybacked. Their new locations are CR9, 12-16. 17 ■•'*■ o CO 0) CM (0 CM CO D O < Q < O CQ 18 PARTS LIST - PCB ASSEMBLY #326298 C — Indicates Commodore Stocked Part Numbers INTEGRATED CIRCUITS RESISTORS (Continued) . U1.U2 6526 CIA C 906108-01 R14 100 R30 1K U3 2364 Basic ROM C 901226-01 R16 1K R31 180 U4 2364 Kernal ROM C 901227-03 R17 1.2K R33 47K U5 2332 Char ROM C 901225-01 R19 15K R34 47K U6 2114L-30RAM 901453-01 R20 6.8K R35 470K U7 6510/i Processor C 906107-01 R21 4.7K R37. 2.7K U8 7406 901522-06 R22 1.5K R38 1K U9-U12 4164 (200 nS) 901505-01 R23 1K R39 390 U13 74LS257 901521-57 R24 3.3K R41 1M U14 74LS258 901521-58 R25 Pot 1K R43 3.3K U15 74LS139 901521-18 R26 75 R44 3.3K U16 4066 901502-01 R27 Pot 2K R45 3.3K U17 82S100 PLA C 906114-01 R28 1K R46 2K U18 6581 SID C 906112-01 R29 1K R51 1.5K 1 1(1 A 6567 VIC II OCO~7 \/l/^ II U19 C 906109-04 U20 LM556 901523-03 NOTE: The input video line requires a 470 ohm, 1/4- watt, resistor soldered to ground. U21-U24 4164 (200 nS) 901505-01 U25 74LS257 901521-57 RESISTOR PACKS U26 74LS373 9 *bV#V # %J 901521-29 U27 74LS08 901521-03 RP1,2 3312, 8 Pin [Bourns No. U28 4066 901502-01 4308R-102-330) U29 74LS74 901521-06 RP3 3.3KQ, 8 Pin (Bourns No. U30 74LS193 901521-26 4308R-101-332) U31 74LS629 901521-68 RP4 3.3KG, 10 I3in 1 IOO KAf^A A/I A UoZ gyO 1 4&O— w 1 CAPACITORS TRANSISTORS C1-3 Ceramic .1 /*F, 50V Q1 2N4401 902652-01 C4-7 Ceramic .47 /iF, 50V, 20% Q2 2N3904 902658-01 C8 Electrolytic 10 pF, 25V# + 50%. -10% Q3 TIP29 B 902653-01 C9 Ceramic .47 fiFt 50V, 20% Q4-8 2N2222 902686-01 C10.11 Ceramic 470 pF, 50V C12-15 Electrolytic 10 fiF, 25V, + 50%, -10% DIODES C16 Ceramic .1 nF, 50V C17 Electrolytic 10 /xF, 25V, + 50%. -10% CR1 2.7V Zener IN4371 C18 Ceramic .1 iiF. 50V CR2 7.5V Zener IN755 C19 Electrolytic 2200 nF, 16V CR3 IN914 C20,21 Film .22 nF, 100V, 20% CR4 Bridge, Varo VM08 906129-01 C22 Ceramic .1 iiF, 50V CR5.6 Rectifier IN4001 C23 Ceramic 360 pF, 50V RESISTORS — All values are in ohms- 1/4 W. C24 Electrolytic 10 iiF, 25V, + 50%, -10% 5%, unless noted otherwise. C25-28 Ceramic .22 /iF. 50V C29 Ceramic .47 /xF, 50V, 20% R1 3.3K R7 10K C30,31,32 Ceramic .1 /xF. 50V R2 1.5K R8 390 C33 Ceramic .47 jxF. 50V, 20% R3 10K R9 75 C34 Electrolytic 10 iiF. 25V, + 50%. -10% R4 1K R10 120 C35 Ceramic .1 nF. 50V R5 560 R11 120 C36 Ceramic 20 pF, 50V R6 1K R13 1K C37 Ceramic 1000 pF. 50V 19 CARTRIDGE/EXPANSION (44 PIN FEMALE)