home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / commodore / main-faq / part7 < prev    next >
Encoding:
Internet Message Format  |  1998-04-05  |  30.8 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!news.kodak.com!news-pen-16.sprintlink.net!newsfeed.nysernet.net!news.nysernet.net!206.229.87.26!news-east.sprintlink.net!news-peer.sprintlink.net!news-backup-west.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!207.15.61.35!omantsrv11.csgsystems.com!news
  2. From: cbmfaq-info@mail.jbrain.com (CBM FAQ Information)
  3. Newsgroups: comp.sys.cbm,news.answers,comp.answers
  4. Subject: COMP.SYS.CBM: General FAQ, v3.1 Part 7/9
  5. Supersedes: <cbmmainfaq70398@msen.com>
  6. Date: 5 Apr 1998 00:01:13 -0800
  7. Organization: A Red Hat Commercial Linux Site
  8. Lines: 742
  9. Sender: brain@alabanza.net
  10. Approved: news-answers-request@mit.edu (Emily Havens)
  11. Expires: 05 May 1998
  12. Message-ID: <cbmmainfaq70498@msen.com>
  13. NNTP-Posting-Host: 207.25.124.14
  14. Summary: This posting contains answers to questions that commonly surface in
  15.          comp.sys.cbm.  This posting will tell you enough to get your
  16.          computer connected to a network, fixed, and/or enhanced.  This file
  17.          should be read by new users of comp.sys.cbm before posting to the
  18.          group.  It should also be proofread by users who are currently
  19.          active in comp.sys.cbm.
  20. Keywords: CBM FAQ Help List C64 C128 VIC Modem
  21. Errors-To: cbmfaq-errors@mail.jbrain.com (CBM FAQ Errors)
  22. Xref: senator-bedfellow.mit.edu comp.sys.cbm:86780 news.answers:126983 comp.answers:30755
  23.  
  24. Archive-name: cbm-main-faq.3.1.p7
  25. Comp-answers-archive-name: commodore/main-faq/part7
  26. News-answers-archive-name: commodore/main-faq/part7
  27. Comp-sys-cbm-archive-name: main-faq/part7
  28. Version: 3.1
  29. Last-modified: 1996/01/25
  30.  
  31.   ---------------------------------------------------------------------------
  32.   
  33.   Table of Contents (for this file)
  34.   ---------------------------------
  35.  
  36.   10.  Emulators
  37.   10.1.  What is an emulator?
  38.   10.2.  What platforms do 64 emulators exist on?
  39.   10.3.  What platforms do 128 emulators exist on?
  40.   10.4.  Are any other Commodore computers emulated?
  41.  
  42.   11.  Troubleshooting
  43.   11.1.  What do I do for my ill disk drive?
  44.   11.2.  What do I do for my ill computer?
  45.   11.2.1.  What do I do for my ill Commodore 64?
  46.   11.2.2.  What do I do for my ill Commodore 128?
  47.   11.3.  What do I do for my ill keyboard?
  48.   
  49.   12.  Modifications and Cabling
  50.   12.1.  How can you alter which side a 1571 reads from?
  51.   12.2.  How do I open a C128 power supply?
  52.   12.3.  How do I make a cable to hook my CBM 1902A to my 64 or 128?
  53.   12.4.  How do I build a simple RS-232 interface cable?
  54.   12.5.  How do I build a 2400/9600 bps RS-232 interface cable?
  55.   12.6.  How can I determine how much VDC video memory is in my C128?
  56.   12.7.  How do I build a GEOCable interface?
  57. + 12.8.  How do I connect my Commodore printer to an IBM PC?
  58.   
  59.   ---------------------------------------------------------------------------
  60.  
  61.  
  62.   10.  Emulators
  63.   
  64.   As time moves on, people move to other computer systems, for business resons
  65.   or otherwise.  However, many still long to play Commodore games, use 
  66.   Commodore software, and enjoy Commodore demos.  Thus, emulators were born
  67.   to bring the non-Commodore computer owner the enjoyment of owning a
  68.   Commodore.
  69.   
  70.     
  71.   10.1.  What is an emulator?
  72.   
  73.   An emulator is a piece of software that runs on a given platform and
  74.   emulates, or mimics, the operation of another machine.  When the
  75.   emulator loads up a program, the programs runs as though it were running
  76.   on the emulated platform.
  77.  
  78. | For more information on emulators and their use, please see The Commodore 
  79. | emulator FAQ, maintained by Ken Gifford  (tsrken@voicenet.com).  It 
  80. | can also be found on Jim Brain's MAILSERV server (See Section 6.5.2 for more
  81. | information).
  82.   
  83.   For those with WWW browsers, the CBM Emulation FAQ is at:
  84.  
  85. | http://www.hut.fi/~msmakela/cbm/faq/
  86.                           
  87.   
  88.   10.2.  What platforms do 64 emulators exist on?
  89.   
  90.   64 emulators exist on the following machines:
  91.   
  92.   Amiga
  93.   IBM
  94.   Atari ST
  95.   Macintosh
  96.   UNIX
  97.   
  98.   
  99.   10.3.  What platforms do 128 emulators exist on?
  100.   
  101.   There is a very basic Commodore 128 emulator bundled available for the 
  102.   UNIX platform under X.  It is bundled with X64.
  103.  
  104.   
  105.   10.4.  Are any other Commodore computers emulated?
  106.   
  107.   There is a commodore product called the PET emulator that remaps a
  108.   Commodore 64 to emulate a PET 40 column unit (i.e. PET 4032).  You can
  109.   run this program on a C64 to emulate a PET, or you can run this program
  110. | on a 64 emulator to emulate a PET on an IBM, for example.  
  111.  
  112. + As for VIC-20 emulators, one exists for the Amiga, and there is a program
  113. + similar to the PET Emulator that allows a C64 to emulate a VIC-20.  For the
  114. + UNIX OS, one called VICE is available for machines with X Windows.  Contact
  115. + Andre Fachat (a.fachat@physik.tu-chemnitz.de) for more information.  The
  116. + emulator is at: http://www.tu-chemnitz.de/~fachat/
  117.  
  118. + For the MS-DOS platform, a program called V20 is available at:
  119. + http://shell.ihug.co.nz/~be/vic.htm
  120. + For more information on this emulator contact Bryce Ewing at
  121. + be@ihug.co.nz.
  122.  
  123.   Although not necessarily a different Commodore computer, there is a
  124.   GEOS emulator in the works.  It is called GEOS Warp v1.0 and information
  125.   is available at http://stud1.tuwien.ac.at/~e9426444/geoswarp/index.html.
  126.   A version for the Apple PowerMac is in the alpha stage, and support for
  127.   a PC version.  Plans for a UNIX/X11 version are still unclear.  The author
  128.   is Andreas Varga, and can be contacted at e9426444@stud1.tuwien.ac.at.
  129.  
  130. + VIC-20 Emulator for DOS
  131. + Paul Robson (Author)
  132. + autismuk@aol.com (Internet Contact)
  133. + http://users.aol.com/autismuk/vic20.zip (WWW URL)
  134.  
  135.  
  136.   11.  Troubleshooting
  137.   
  138.   
  139.   11.1.  What do I do for my ill disk drive?
  140.  
  141.   If the drive spins and the LEDs are off:
  142.   
  143.   At the back of the 1541 circuit board are two bridge rectifiers - stout
  144.   epoxy packages with 4 leads each. The innermost one is defective
  145.  
  146.   If both LEDs are dim:
  147.   
  148.   The 5VDC regulator is bad.
  149.   
  150.   If both LEDS are on:
  151.   
  152.   Drive did not make it through the power-on reset sequence.  Kernal ROM
  153.   (901229-05) is susepct, as is (in order of expectation):  VIA (6522), 
  154.   CPU (6502), RAM (6116 or equivalent), or a "glue" chip in the reset logic
  155.  
  156.   If your drive won't even accept input from the computer, and the drive
  157.   light is making some blinking pattern, then the drive may be telling you
  158.   what is wrong.
  159.   
  160.   No Blink       Kernal (E000-FFFF) ROM or 6522 VIA Failure
  161.   One Blink      6116 RAM Failure
  162.   Two Blinks     Possible Zero Page RAM Failure
  163.   Three Blinks   DOS (C000-CFFF) ROM Failure
  164.   Four Blinks    DOS (C000-CFFF) ROM Failure
  165.   Five Blinks    6116 RAM Failure
  166.   Six Blinks     6116 RAM Failure
  167. | Six Blinks     2114 RAM Failure at c4 or c5 (8050)
  168.   Seven Blinks   6116 RAM Failure
  169.   Eight Blinks   6116 RAM Failure
  170.  
  171.  
  172.   1541
  173.  
  174.   The most common problem facing the 1541 disk drive is alignment.  If your
  175.   1541 has trouble reading commercial disks, or reading disks written some
  176.   time ago, but has less trouble reading recently written disks, chances are
  177.   that your 1541 is out of alignment.  C= service centers will typically align
  178.   a 1541 for anywhere from $20 to $45.  There are also 1541 alignment
  179.   programs, (e.g. Free Spirit's "1541/71 Alignment System") which allow you
  180.   to align a 1541 yourself.  There are those who claim that this does not
  181.   produce good results, but there are others who claim to have had
  182.   satisfactory results with these programs.  There were a couple of articles
  183.   in COMPUTE Gazette and I think RUN on how to do this.  The real problem is
  184.   mechanical in nature and can be over come.  Other products are PHYSICAL
  185.   EXAM 1541 and 1571 versions.
  186.   
  187. + All but the very earliest 1541 units can accomodate either a 1541 ALPS
  188. + mechanism or a newer Newtronics mechanism.  Keep that in mind when 
  189. + swammping mechanisms.
  190.  
  191.   1571
  192.  
  193.   The C=1571 drive is normally a double sided drive.  However, it can also
  194.   emulate a 1541 and read single sided disks.  Some of the earlier 1571's had
  195.   older system chips (ROMs) which caused a couple of problems.  One, these
  196.   older drives were typically very slow when writing to the back side of a
  197.   disk.  Two, it would take these drives ~30 seconds to go into single sided
  198.   mode.  To check your ROM version, read the error channel of the disk drive
  199.   right after startup.  On the 128, just PRINT DS$.  On the 64, use:
  200.  
  201.   10 open15,8,15:input#15,a,a$,b,c:close15:printa,a$,b,c
  202.  
  203. | Run the program; if the message says v3.1, you have the newer ROM.
  204. | If it has a version 3.0 or older, you have the older ROM.
  205.  
  206.   One problem that might occur is not having the head close enough to the disk
  207.   as required because of the light tension of the spring that pulls the head
  208.   down.  Somewhere I remember that there was supposed to be a replacement
  209.   part.  However, one of the alignment programs suggesting using pennies to
  210.   weight it down and lo and behold it started working.
  211.  
  212.   1581
  213.  
  214.   The C=1581 drive is a 3.5" drive that uses DSDD 800K disks.  It is
  215.   compatible with both the C64 and C128, although some programs will not work
  216.   correctly with the 1581.
  217.  
  218.   A small number of 1581's were shipped with an early version of a controller
  219.   chip which has problems with some software.
  220.  
  221.   
  222.   11.2.  What do I do for my ill computer?
  223.   
  224.   At times, every computer must be serviced.  As the parts supply of Commodore
  225.   equipment dwindles, servicing becomes harder.  However, there are many
  226.   sources in Section 16.2 that can service your Commodore machine, and here
  227.   are some things you can do to service it yourself.
  228.   
  229.   If the screen is garbled, but BASIC seems to be limping along, and any
  230.   command is met by an error, RAM could be bad.  You can look at bit 
  231.   patterns on the screen by determining screen codes for  garbage characters.
  232.   only bit 4 (32) should be on.  After you determine which bits, here is the
  233.   bit->IC mapping:
  234.        
  235.   Bit 7 (128) : U12
  236.   Bit 6 (64)  : U24
  237.   Bit 5 (32)  : U11
  238.   Bit 4 (16)  : U23
  239.   Bit 3 (8)   : U10
  240.   Bit 2 (4)   : U22
  241.   Bit 1 (2)   : U9
  242.   Bit 0 (1)   : U21
  243.  
  244.   A common problem with the C-64 is it's power supply.  The C64 power
  245.   supplies are not especially powerful, and have this disturbing tendency to
  246.   fail.  If your computer stops working, first check the power supply.
  247.   Replacement power supplies can be obtained from a number of mail order
  248.   places (e.g. Tenex, Parsec, Inc.).  Additionally, several places advertise
  249.   "heavy-duty" power supplies that come with warranties, and give the C64
  250.   enough power to run a REU.
  251.  
  252.   If your power supply goes, it can sometimes take other parts of the
  253.   computer with it.  If your power supply has died, but the C64 continues
  254.   to fail with a known working power supply, it is likely that a few of your
  255.   chips got fried.
  256.  
  257.   Also, another common problem with the C64 is the fuse inside the computer.
  258.   If the system power on light comes on, but you get a blank screen, suspect
  259.   the fuse.  It is usually blown by misinsertion of devices into the computer.
  260.   
  261. + According to the official Commodore Diagnostician II Reference Chart 
  262. + released September 1989:
  263.  
  264. + " intermittent blank screen or graphics " are caused by:
  265.   
  266. + Bad power supply
  267. + Failed 6510 Microprocessor Chip
  268. + Failed 6567 VIC NTSC (6569 PAL) Chip
  269. + Failed 82s100 Programmable Logic Array Chip (PLA)
  270. + Failed 901226 Basic ROM Chip
  271. + Failed 4164 Memory RAM
  272.   
  273. + The PLA chip is 40% responsible for all full screen failures.  
  274.  
  275.  
  276.   11.2.2.  What do I do for my ill Commodore 128?
  277.  
  278.   Like the 1571, the C-128 has an older ROM and a newer ROM.  The differences
  279.   between the two are less serious than is the case with a 1571.  The easiest
  280.   way to tell the difference is to click down the CAPS LOCK key and hit Q
  281.   while in BASIC direct mode.  If you see a lower case q, then you have an
  282.   older ROM.  If you see an upper case Q, then you have a newer ROM.  New ROMs
  283. | can be ordered from (e.g. Paxtron Corporation) for about $25.  The ROM 
  284. | chips in the 128 are all socketed, so replacing the chips is relatively
  285. | easy.
  286.        
  287.   
  288.   11.3.  What do I do for my ill keyboard?
  289.   
  290.     Clean it:
  291.  
  292.     Materials you will need:
  293.  
  294.     Denatured (rubbing) alcohol, a clean pencil eraser, cotton swabs, a small
  295.     Phillips head screwdriver, a jewellers size Phillips screwdriver, a
  296.     solder iron of some type, and a Commodore 64 computer keyboard.
  297.  
  298.     Procedure:
  299.  
  300.     1. FIRST AND FOREMOST. Make certain that you have discharged any static
  301.        electricity in your body by grounding yourself to something like a cold
  302.        water pipe. Otherwise, you could blow chips in your computer if you
  303.        were to touch the wrong things.
  304.  
  305.     2. Turn off your computer and unplug any and all cords and connectors,
  306.        fast-loaders, modems, etc. (just have yourself a naked (if you will
  307.        excuse the expression) computer).
  308.  
  309.     3. Thoroughly clean all external connectors and ports with the swabs and
  310.        alcohol. Also, clean all plugs that go into those ports. If the problem
  311.        you had persists, proceed with the following:
  312.  
  313.     4. On a clean surface, turn your key-board upside-down. Remove the screws
  314.        in the bottom.
  315.  
  316.     5. CAREFULLY, separate the two halves about an inch. Unplug the connector
  317.        to the "power" LED on the top of the C-64.
  318.  
  319.     6. Place the two halves flat so that the keyboard is facing  you. The two
  320.        halves will be connected by a wire harness. This harness may be held
  321.        down by tape that must be removed in order to place the unit flat.
  322.  
  323.     7. Remove the 15 or so brass screws that hold the  circuit  board  under
  324.        the keyboard.
  325.        
  326.     7a.Unsolder the wires going to the shift-lock key.
  327.  
  328.     8. Turn the circuit board over. You will see the bottom of the keyboard
  329.        with a rubber "U" under each key, which makes contact with the board.
  330.        You will also see on the circuit board, a pair of gold contacts for
  331.        each key on the C-64.
  332.  
  333.     9. CAREFULLY wash ALL the rubber "U"'s and the gold contacts with the
  334.        swabs and rubbing alcohol. Allow the alcohol to DRY.
  335.  
  336.     10.Gently, clean each gold contact with the eraser. BRUSH AWAY THE ERASER
  337.        CRUMBS (I use  a  small  hand-held, battery-powered vacuum cleaner).
  338.  
  339.     11.Re-clean the gold contacts with the swabs and alcohol to ensure that
  340.        you have removed ALL traces of the eraser.
  341.  
  342.     12.Reassemble the C-64 in the reverse order of disassembly.
  343.  
  344.  
  345.   12.  Modifications and Cabling
  346.   
  347.   As time wears on, many Commodore owners are turning to themselves to
  348.   manufacture small interfaces, modify their systems, and perform other
  349.   enhancements.  Here are some common things the user can construct
  350.   himself or herself.
  351.   
  352.    
  353.   12.1.  How can you alter which side a 1571 reads from?
  354.   
  355.   On a 128, you can force the 1571 to go into single sided mode with the drive
  356.   command "u0>m0".  (Issue such a command with open15,8,15,"u0>m0":close15.)
  357.   On the 64, a 1571 defaults to single sided mode, but you can convert it to
  358.   double sided mode (and read full double sided disk in 64 mode) with the
  359.   drive command "u0>m1".  While in single sided mode, you can actually format
  360.   both sides of the disk as separate file systems.  The command "u0>h0"
  361.   selects the regular side of the disk, and "u0>h1" selects the flip side of
  362.   the disk.  Note that the flip side, when formatted this way, cannot be read
  363.   by a 1541; neither side will be readable by a 1571 when the disk is
  364.   inserted upside-down.
  365.  
  366.   
  367.   12.2.  How do I open a C128 power supply?
  368.  
  369.   First, unplug both leads running from the power supply and turn it upside
  370.   down.  Locate four (4) small circles in the bottom; two are in the corners 
  371.   and two in the other end a bit nearer each other.
  372.  
  373.   Find some sharp tool, e.g. pin or nail.  In turn, poke it inside each of 
  374.   the cirles, firmly, and pull the caps off gently. They'll come out easily. 
  375.   Breaking the caps should not matter, but there is no need to destroy the 
  376.   casing in process.
  377.  
  378.   Unsrew the 4 Phillips headed srews with an appropriate tool.
  379.  
  380.   Notes: 
  381.   
  382.   This does not apply to the C64 brick!
  383.   
  384.   Some 128 power supplies do not have rubber feet; rather, they have "L"-
  385.   shaped extensions on the casing.  The caps on these extensions are not
  386.   made of rubber, but can be removed.
  387.  
  388.  
  389.   12.3.  How do I make a cable to hook my CBM 1902A to my 64 or 128?
  390.   
  391.   Here is the diagram used to make a replacement Chroma / Luminence 40
  392.   column cable, that the 1902A uses, to connect to the 64 or 128.  
  393.  
  394.         _______                             ________
  395.       /    3    \      1.  Not Used        /    2    \    *1. Luminance
  396.      / 2       4 \    *2.  Audio          / 4      5  \   *2. Ground  
  397.     !             !   *3.  Ground        !             !  *3. Audio out
  398.     !      6      !   *4.  Chroma        ! 1    6    3 !   4. Video out
  399.     !             !    5.  Not Used      !             !   5. Audio in
  400.      \ 1       5 /    *6.  Luminance      \  7     8  /   *6. Chroma
  401.       \____n____/                          \____n____/     7. Not used
  402.                                                            8. Not used
  403.          1902A                                64/128
  404.                             * Actually used
  405.  
  406.  
  407.   12.4.  How do I build a simple RS-232 interface cable?
  408.   
  409.   Here are a couple of different interface ideas, and another can be found
  410.   at ftp://ftp.funet.fi/pub/CBM/documents/rs232.txt
  411.  
  412.   Using MAX-232 IC:
  413.     
  414.   Userport C64                                           C64 RS232
  415.                           _________
  416.                          |         |
  417.       PA2 M-----------11-|         |-14------------------- TXD (2)
  418.       PB1 D-----------10-|         |--7------------------- RTS (4)
  419.       PB6 K-----------12-| MAX 232 |-13------------------- CTS (5)
  420.     FLAG2 B---X--------9-|         |--8------------------- RXD (3)
  421.       PB0 C---|          |         |--3--|+-|
  422.       VCC 2-----------16-|         |--1-----|              DB25-connector
  423.       GND N------X----15-|         |
  424.                  X--|+-2-|         |--5--|+-|
  425.                  X--+|-6-|_________|--4-----|
  426.                  |
  427.                  |---------------------------------------- GND (7)
  428.  
  429.    -|+- capacitor 22uF/16V
  430.    -  +
  431.  
  432.   Using Transistors:
  433.  
  434.                           RS-232 interface
  435.                       <Transistors are 2n2222>
  436.   <24 pin edge connector>
  437.   N <-----------------------+-----------+
  438.                            /            !
  439.           22k         !-!>+             !
  440.   M <----/\/\/--------!                 !
  441.                       !---+             !
  442.           1k               \            !  <male db25 connector>
  443.   2 <----/\/\/--------------+------------>-------------------> 2
  444.                                         !
  445.                       +-----------------+
  446.                        \
  447.                         +<!-!                22k
  448.                             !---------------/\/\/------------> 8
  449.                         +---!
  450.                        /
  451.   H <-----------------+
  452.  
  453.   E <--------------------------------------------------------> 20
  454.  
  455.   C <---+
  456.         !
  457.   B <---+-------------+
  458.                        \
  459.                         +---!                22k
  460.                             !---------------/\/\/------------> 3
  461.                         +<!-!
  462.                        / 
  463.   A <-----------------+--------------------------------+-----> 7
  464.                                                        !
  465.                                                        +-----> 4
  466.                                                        !
  467.                                                        +-----> 1
  468.  
  469.  
  470.   If you are having problems with this circuit as it stands, you may wish
  471.   to modify it in this way to reverse the clock signal:
  472.   
  473.   Disconnect the emitter and collector on the middle transistor of the 
  474.   diagram (the one that goes to the H line on the computer side)
  475.   Connect the collector to pin 2 on the 24 pin edge connector (the 5v Vcc 
  476.   line), connect the emitter to pin H on the same connector, then connect a 
  477.   1k ohm resistor to the same pin H and the other end of the resistor to pin N
  478.   or A. 
  479.   
  480.  
  481.   12.5.  How do I build a 2400/9600 bps RS-232 interface cable?
  482.   
  483.   A new programming technique makes it possible to acheive 9600 bps on an
  484. | unexpanded Commodore 64 without the use of a Swiftlink cartridge.  
  485.   Daniel Dallmann of Germany is the originator of this technique and is
  486.   currently writing modem drivers for some of the popular C64 terminal
  487.   emulation programs to take advantage of this new technique.
  488.   
  489.   The interface described below is a little more complex than the one
  490.   in Section 12.4, but has many advantages:
  491.  
  492.   * The interface generates proper EIA232 (RS-232) voltage levels.  
  493.     The one in Section 12.4 relies on the ability of most newer RS232
  494.     equipment to handle lower voltages.
  495.     
  496.   * The following interface can be used as a direct replacement for the
  497. |   interface in Section 12.4, and will work will all most
  498.     telecommunications programs at up to 2400 bps, while providing the
  499.     necessary interfacing to allow suitably equipped applications to
  500. |   operate at up to 9600 bps.  (Some programs needing DCD and DTR lines
  501. |   may have problems.)
  502.     
  503.   * if you currently own a normal RS232 interface, that interface can be
  504.     modified to incorporate the new interfacing for 9600 bps operation.   
  505.     (in some cases one line of the old interface has to be disconnected,
  506.      see note **1 )
  507.  
  508.   9600 bps is the maximum limit this type of technique due to the timing
  509.   limitations of the C64.  The delay between the activation of the NMI-handler
  510.   and the falling edge of rxd is too long.  The handler must be called in 
  511.   less than 100 cycles.  That's no problem at 9600 bps, but for 19200 baud 
  512.   (the next higher baud rate), you have only 50 cycles, and that's impossoble 
  513.   (because of VIC-DMA ).  On a C128 in fast mode 38400 baud may be possible,
  514.   but I don't have a C128, so someone else has to try it out.
  515.  
  516.  
  517.               Schematic of a very simple RS232-Interface:
  518.   
  519.   
  520.     userport                       MAX232         rs232   9pin  25pin
  521.                                 +----------+
  522.                                 !          !
  523.   (C)    pb0--+                 !          !
  524.               !                 !    /!    !
  525.   (B)  flag2--*--------------------O< !---------  rxd     2      3
  526.               !                9!    \!    !8
  527.   *7*    sp2--+                 !          !
  528.                                 !          !
  529.   *6*   cnt2--+                 !          !
  530.               !                 !          !
  531.   *L*    pb7--+ <NOTE **1!>     !          !
  532.                                 !  !\      !
  533.   (M)    pa2--*--------------------! >O---------  txd     3      2
  534.               !               11!  !/      !14
  535.   *5*    sp1--+                 !          !
  536.                   74ls00        !          !
  537.                   +-----+       !          !
  538.                   !     !       !  !\      !
  539.   (D)    pb1-*------>O-------------! >O---------  rts     7      4
  540.              !   1!     !3    10!  !/      !7
  541.              +----!     !       !          !
  542.                  2!     !       !    /!    !
  543.   (K)    pb6--------O<-----*-------O< !---------  cts     8      5
  544.                  6!     !4 !  12!    \!    !13
  545.                   !     !--+    !          !
  546.   (1)    gnd------!     !5      !          !---   gnd     5      7
  547.                  7!     !       !          !15
  548.   (2)    +5V------!     !       !          !     (dsr     6      6)
  549.                 14+-----+       !          !
  550.                                 !          !     (dcd     1      8)
  551.                                 !          !
  552.                                 !          !     (dtr     4     20)
  553.                     c2  ! !+    !          !
  554. | (2)    +5v------------! !-----!          !     (ri      9     22)
  555.                         ! !    2!          !
  556.                                 !          !
  557.                     c4 +! !     !          !
  558.   (1)    gnd------------! !-----!          !
  559.                         ! !    6!          !
  560.                                 !          !
  561.                      c1 ! !+    !          !
  562.                       +-! !-----!          !
  563.                       ! ! !    1!          !
  564.                       !         !          !
  565.                       +---------!          !
  566.                                3!          !
  567.                      c3 ! !+    !          !
  568.                       +-! !-----!          !
  569.                       ! ! !    4!          !
  570.                       !         !          !
  571.                       +---------!          !
  572.                                5!          !
  573.                                 !          !
  574.   (1)    gnd--------------------!          !
  575.                               15!          !
  576.                                 !          !
  577.   (2)    +5V--------------------!          !
  578.                               16+----------+
  579.  
  580.   (x) - connections required for a normal RS232-Interface.
  581.   *x* - additional connections to go up to 9600 baud.
  582.  
  583. | remark: The MAX232 needs 4 capacitors to generate +/- 10 volts to
  584. |         drive the RS-232 unit.  The values are as such:  (in uF)
  585.  
  586. |         IC       C1   C2   C3   C4                        
  587. |         -------  ---  ---  ---  ---
  588. |         MAX232   1.0  1.0  1.0  1.0  
  589. |         MAX232A  0.1  0.1  0.1  0.1  
  590. |         MAX232E  1.0  1.0  1.0  1.0  
  591.                          
  592.   notes :
  593.      **1 Some other interfaces use this pin.  In that case you have to cut 
  594.          the connection and change it to new way.  PB7 is normally used to 
  595.          receive the DSR (Data Set Ready) signal from the modem, but this 
  596.          signal isn't supported by all terminal programs.  Because of the new 
  597.          wiring DSR will seem to be active to all 'old' programs, so that 
  598.          there won't be any troubles.
  599.  
  600.  
  601.      Top view of the used ICs:
  602.   
  603.           74 LS 00                    MAX232
  604.           +------+                   +------+
  605.      inA -!1 \/14!- vcc       +cap1 -!1 \/16!- Vcc
  606.      inA -!      !-  inC      +cap2 -!      !- GND
  607.     outA -!      !-  inC      -cap1 -!      !- RS232/txd
  608.      inB -!      !- outC      +cap3 -!      !- RS232/cts
  609.      inB -!      !-  inD      -cap3 -!      !- TTL/^cts
  610.     outB -!      !-  inD      -cap4 -!      !- TTL/txd
  611.      gnd -!7    8!- outD  RS232/rts -!      !- TTL/^rts
  612.           +------+        RS232/rxd -!8    9!- TTL/rxd
  613.                                      +------+
  614.           4 X NAND
  615.                                      2 X RS232 transmitter
  616.                                      2 X RS232 receiver
  617.  
  618.         user port (view on C64s backside)
  619.  
  620.        1  2  3  4  5  6  7  8  9 10 11 12   (top)
  621.       ------------------------------------
  622.        A  B  C  D  E  F  H  J  K  L  M  N   (bottom)
  623.   
  624.           1 - GND       A - GND
  625.           2 - +5V       B - ^flag2
  626.           3 - ^reset    C - pb0
  627.           4 - cnt1      D - pb1
  628.           5 - sp1       E - pb2
  629.           6 - cnt2      F - pb3
  630.           7 - sp2       H - pb4
  631.           8 - ^pc2      J - pb5
  632.           9 - atn in    K - pb6
  633.           10- 9V AC     L - pb7
  634.           11- 9V AC     M - pa2
  635.           12- GND       N - GND
  636.  
  637.  
  638.   12.6.  How can I determine how much VDC video memory is in my C128?
  639.  
  640.   Here are two ways to detect whether the C128 VDC chip has 16kB or 64kB
  641.   of RAM. 
  642.  
  643.   1 rem fred's nifty program to determine size of 8563 dram
  644.   5 w=dec("cdcc"):r=dec("cdda")
  645.   10 bank15: ad=dec("d600"): da=ad+1 :rem setup ml
  646.   20 pokead,28: s=peek(da): pokeda,63 :rem select 64k
  647.   30 i=16896: sysw,i/256,18:sysw,iand255,19:sysw,85,31 :rem write $55
  648.   40 i=16896: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc1 :rem read here
  649.   50 i=17152: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc2 :rem and here
  650.   60 i=16896: sysw,i/256,18:sysw,iand255,19:sysw,170,31 :rem write $aa
  651.   70 i=16896: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc3 :rem read here
  652.   80 i=17152: sysw,i/256,18:sysw,iand255,19:sysr,,31:rregc4 :rem and here
  653.   90 pokead,28: pokeda,s:sysdec("ff62") :rem restore 16/64k
  654.   95 print chr$(14)chr$(147)
  655.   100 if c1=c2 and c3=c4 then print "16K": else print"64K"  :rem did it echo? 
  656.   110 end
  657.  
  658.   or:
  659.  
  660.   POKE DEC("D600"),28:POKE DEC("D601"),63:SYS DEC("FF62"):SCNCLR
  661.  
  662.   If you have 16k the screen will fill with zeros; 64k will give you a 
  663.   ready prompt.
  664.  
  665.  
  666.   12.7.  How can I convert my C64 to run on battery power?
  667.  
  668.   The July, 1990 issue of 73 Amateur Radio has an article on converting
  669.   the C64 and 1541 to run on DC power. I'll summarize the C64 portion:
  670.  
  671.   DC Power Conversion for the C64
  672.  
  673.   1. Locate component CR4 on the circuit board. Mark the positive hole on
  674.      the board. Desolder and remove the component.
  675.      
  676.   2. Rest :-)
  677.  
  678.   3. Connect the marked hole to +12V.
  679.  
  680.   4. Desolder and remove VR1. Looking down at the component side of the
  681.      board, connect a wire from the vacant right hand hole and run it to
  682.      +12V.
  683.  
  684.   5. Locate L5. It will probably be in one of two locations. On the older
  685.      version, desolder the right hand leg and lift. On the newer version,
  686.      desolder the top leg and lift.
  687.  
  688.   6. Connect +5V to the empty L5 hole.
  689.  
  690.   7. Locate the R37 and R100 pads. Use a continuity meter to find the pads
  691.      that are connected. Desolder and lift these legs. You will insert a
  692.      60 Hz clock here.
  693.  
  694.   8. You could generate this clock using a variety of methods. Here's one:
  695.                                   +12V
  696.           __________________________|
  697.           |                         |
  698.           | C1    R1          ______|_______
  699.           |-)|-+-/\/\/-+-----|6     8       |
  700.           |    |       \     |              |
  701.           |   XTAL1    / R2  |    MM5369    |
  702.           |    |       \     |              |
  703.           |-)|-+-------+-----|5            1|---> 60 Hz (to R37 pad)
  704.             C2               |      2       |
  705.                               ---------------
  706.                                     |
  707.                                    GND
  708.  
  709.   C1 = 30 pF
  710.   C2 = 3-15 pF (variable)
  711.   XTAL1 = 3.57 MHz crystal
  712.   R1 = 1k
  713.   R2 = 10M
  714.  
  715.   It is suggested that you use a short length of shielded coax cable to
  716.   connect the 60 Hz output to the R37/R100 pad.
  717.  
  718.   Also, it is suggested that you use a frequency counter to tune the above
  719.   circuit to exactly 60 Hz.
  720.  
  721.   This conversion would work well if you wanted to use the C64 in a car or powered
  722.   by a solar set-up.
  723.  
  724.  
  725.   12.7.  How do I build a GEOCable interface?
  726.   
  727.   The interface is simply a cable between the printer and the user port.  
  728.   The pinout is as follows:
  729.   
  730.   pin on 64        pin on printer
  731.   
  732.   a  Ground        33  Grond
  733.   b  Flag 2        11  Busy
  734.   c  PB0            2  Data 1
  735.   d  PB1            3  Data 2
  736.   e  PB2            4  Data 3
  737.   f  PB3            5  Data 4
  738.   h  PB4            6  Data 5
  739.   j  PB5            7  Data 6
  740.   k  PB6            8  Data 7
  741.   l  PB7            9  Data 8
  742.   m  PA2            1  Strobe
  743.   n  Ground        16  Ground
  744.  
  745.   Superscript uses the same cable, but has the following change:
  746.  
  747.   b  Flag 2        10  Acknowledge
  748.  
  749.   Either wiring will work with either program, but the GEOCable wiring
  750.   is preferred.
  751.   
  752.   
  753. + 12.8.  How do I connect my Commodore printer to an IBM PC?
  754.  
  755. + Look for the plans for the interface at:
  756.  
  757. + http://www.coast.net/simtel/msdos/info/c64topc.zip
  758.  
  759.   
  760. -- 
  761. Jim Brain, Embedded System Designer, Brain Innovations, Inc. (BII) (online sig)
  762. bii@mail.jbrain.com "Above views DO reflect my employer, since I'm my employer"
  763. Dabbling in WWW, Embedded Systems, Old CBM computers, and Good Times!      -Me-
  764. BII Home: http://www.jbrain.com          CBM Info: http://www.jbrain.com/vicug/
  765.