home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / genie-commodore-file-library / TelcomTools / RS232.ARC / VIC.TXT < prev   
Text File  |  2019-04-13  |  6KB  |  116 lines

  1.                        RS-232 INTERFACING TO THE USER PORT
  2.                                   By Doug Reed
  3.  
  4. (Author's note: this public domain article was first printed in the 
  5. El-Shift-Oh newsletter, August, 1985. It is being released to the nets due
  6. to the avid interest in RS-232 modems. Some changes have been made for
  7. completeness.)
  8.  
  9. The VIC-20, C-64, and C-128 are extremely versatile machines if the user
  10. has╕ the means and determination to use them. The user port can be used as
  11. a parallel output port, or as an RS-232 port. Our scheme is to utilize the
  12. RS-232.
  13.  
  14. Commodore has, rather than use a specialized communications chip as most
  15. computers use, chosen to control all RS-232 functions using a standard
  16. 6522 Versatile Interface Adapter (VIA) for the VIC, or 6526 Complex
  17. Interface Adapter (CIA) for the 64, as well as some complex built-in
  18. software. This is not without limitations, mainly speed, due to the CPU
  19. taking care of so many household tasks, such as screen updating, updating
  20. jiffy clocks, etc. 1200 baud is about the most the C-64 can handle, and
  21. with some programs it doesn't do this so good. Xmodem7.3 has worked about
  22. the best for me (including Vidtex).
  23.  
  24. To use the RS-232 port, you must use a simple hardware interface between
  25. the C-64 and the RS-232 device. As you may know, TTL uses voltage levels of
  26. approximately O-1 volts to represent a logic O and 3-4.5 volts to represent
  27. a logic 1. Well, RS-232 uses -3 to -15 volts as a '1' and +3 to +15 as a
  28. 'O'. And, as you may have figured out by now, ALL of the chips in the VIC
  29. and 64 are TTL compatable, which is a not so marvelous way of saying they're
  30. not RS-232 compatable. If this weren't enough, our friends at the big C=
  31. were somehow able to complicate matters by inverting some of these signals.
  32.  
  33. So, our problem is to shift the computer's TTL output levels to a standard
  34. RS-232 level. Since the VIC-1O11A RS-232 converter cartridge is set up for
  35. outputs to a modem, this is how this circuit is set up. The original
  36. circuit comes from the August 1982 issue of Compute!. The Compute!
  37. circuit did not take into account the inversion of five signals, but these
  38. are provided here with the 74O4.
  39.  
  40. This circuit works with a modem as is, and next month I will have an article
  41. to construct a null modem adapter so that you may use a RS-232 printer
  42. with this circuit.
  43.  
  44. I assume that if you are really interested in this little project that you
  45. already know how to do some electronic construction. The parts will total
  46. around twenty dollars (list), and you probably already have some in your
  47. scrounge box that you can use. The only hard to find part is the connector
  48. between the board and the user port. It is a 12/24 pin connector with 
  49. 0.156 inch lead spacing. If you go to a surplus electronics store, look
  50. for these numbers: '5O 24A 3O' and/or '251 12 3O 16O'. You can expect to
  51. pay about two bucks on this one. An alternate source is Digi-Key, ph.
  52. 800-344-4539, part # C1-12, $2.90 plus $2.00 service charge. This part
  53. will need some surgery as the circuit board will be thinner than the
  54. connector. Try soldering all of the pins on one side of the connector,
  55. then bend the other side's pins down to the circuit board. Now solder
  56. these. You'll also need a DB-25 female circuit board connector of either
  57. the solder or wire-wrap variety, depending on how you go about your
  58. construction. This and all other parts should be available at your local
  59. Radio Shack (tell them they're for your Commodore). I highly recommend
  60. using sockets for the three ICs for two reasons: 1) you can do all your
  61. wiring without damaging the ICs, and 2) if you have an IC go bad, it will
  62. be easier to replace.
  63.  
  64.                                    Parts List
  65. 1 - 7404 (Radio Shack #276-18O2)      1 - 75188 or MC1488 (#276-2520)
  66. 1 - 75189 or MC1489 (#276-2521)       3 - 1N4001 diodes (#276-1101)
  67. 3 - 47uF, 16V capacitors (#272-1O27)  1 - 1OuF, 16V capacitor (#272-1O25)
  68. 4 - 1O kohm, 1/4w resistors(271-1335)
  69. 1 - circuit board (I recommend Radio Shack's #276-154 3 voltage board.)
  70. 1 - DB25F 25pin 'D' connector - style optional (PC mount, or wire-wrap)
  71.  
  72. I think that most of the wiring is straight-forward from the diagram.
  73. Some items that should be mentioned:
  74.  
  75.      1) C1 is the 1O uF capacitor.
  76.      2) C2 - C4 are the 47 uF capacitors.
  77.      3) Ground is connected to:
  78.           74O4  - pin 7
  79.           75188 - pin 7
  80.           75189 - pin 7
  81.      4) +5V is connected to:
  82.           74O4  - pin 14
  83.           75189 - pin 14
  84.      5) +VCC is connected to: 75188 - pin 14
  85.      6) -VCC is connected to: 75188 - pin 1
  86.      7) Connect one side of each of the resistors to +5V. Connect the other
  87.         side individually to the 75189 at pins 2, 5, 9, and 12.
  88.  
  89.      Check with an ohmmeter that the +VCC, -VCC, +5V, and ground lines are
  90. not shorted to each other before you plug it into your computer. If you
  91. have made no wiring errors, it should work fine with any RS232 modem.
  92. Good luck.
  93.  
  94.  
  95.  
  96.         Addendum and Clarification - 6/26/94
  97.  
  98.  
  99. The schematic is not able to totally clarified, due to the limitations in
  100. space - I have tried to recreate the schematic so that it can be easily
  101. understood.
  102.  
  103. The listing above is the clearest way to describe the powerform connections
  104. to this project - they should be clear enough that any hobbiest technician
  105. should be able to follow.
  106.  
  107. It is highly recommended that sockets be purchased for each of the IC's.
  108. You may also consider using wire-wrap, rather than solder to assemble this
  109. project.  It makes correction of wiring errors much cleaner.
  110.  
  111. A case is optional - in fact, I would not consider building a case for this
  112. project; if you feel you need to protect the circuitry, build it so that
  113. your wiring is on the bottom, and then let it rest behind your computer
  114. table in such a way that nothing will be able to fall on it.
  115.  
  116.