home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / cbm / 3513 < prev    next >
Encoding:
Text File  |  1992-08-31  |  5.3 KB  |  122 lines

  1. Newsgroups: comp.sys.cbm
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!sdd.hp.com!hp-col!warren
  3. From: warren@col.hp.com (Warren Tustin)
  4. Subject: Re: How do you make an RS-232 cable?
  5. Sender: news@col.hp.com (Usenet News)
  6. Message-ID: <1992Aug31.215628.13290@col.hp.com>
  7. Date: Mon, 31 Aug 1992 21:56:28 GMT
  8. References: <1992Aug31.052345.24059@cmutual.com.au>
  9. Organization: HP Colorado Springs Division
  10. Lines: 110
  11.  
  12. nag@cmutual.com.au (Neville Grills) writes:
  13. > Does anybody have any instructions or a circuit diagram
  14. > (or know where I could get one) of how to make an RS-232 cable from
  15. > the user port of a C64? I have a modem but can't connect it to the 
  16. > commodore. I could buy one but I'm too cheap. There are instructions at 
  17. > cwaves I believe but I think its still off the air. 
  18. > Any help appreciated
  19. > Neville             
  20. > -- 
  21. >  ___ _                       |Neville Grills, Systems Analyst   
  22. >   /|/ __ __                  |Colonial Mutual Life Australia. (ACN 004021809)
  23. >  / | /_((_/                  |EMAIL:  NGrills@cmutual.com.au
  24. > _________/___________________|PHONE:  +61-3-6076585   FAX:  +61-3-6076198  
  25.  
  26. *******************************************************************************
  27.  
  28. I have posted this before, but it has been awhile.
  29. It works for me and didn't cost much.
  30.  
  31. Warren Tustin
  32. warren@col.hp.com
  33. --
  34. *******************************************************************************
  35. *******************************************************************************
  36.  
  37. Here are the plans for an User port TO RS232 connector using just ONE IC and
  38. 4 capacitors.  It uses a Linear Technology LT1133 buffer that has 3 RS232
  39. drivers and 5 receivers.  It has worked for me with no problems and takes
  40. a minimum amout of wiring to get to work.  My board is only the width of
  41. the user port and about 1.5 inches deep in size.
  42.  
  43. Parts list:
  44.      LT1133CN plastic dip or LT1133CJ ceramic dip RS232 driver from Linear
  45.         Technologies
  46.      (It takes 27mA max (17mA typical) so is well below the 100mA limit of
  47.      the user port)
  48.          Driver In pins  (15,19,21)  TTL/CMOS compatible.  Unused inputs
  49.                    |  |  |   should be tied to +5v.
  50.          Driver Out pins (11, 7, 5)  RS232 compatible.  Short circuit 
  51.                          protected from -30v to +30v.
  52.          Receiver In pins  (6, 8, 9, 10,12)  Accept RS232 levels (+-30v)
  53.                 |  |  |   |     |   and have 0.4v of hysteresis to
  54.                 |  |  |   |  |   provide noise immunity.
  55.          Receiver Out pins (20,18,17,16,14)  TTL/CMOS outputs.
  56.  
  57.      NOTE: Lines above indicate which inputs go with which outputs, and
  58.            the pairs can be interchanged freely.  I connected them as
  59.                described below because the wiring worked out the best for me. 
  60.  
  61.      4 - >= 1uF capacitors   Used to generate RS232 voltages by a charge pump
  62.                    technique inside IC
  63.      1   1uF capacitor  To bypass the 5volt supply for noise rejection.
  64.  
  65.      1   User port female connector.  (I just dug this up, I'm not sure 
  66.      where these can be found, I think it is 0.159" spacing, 24pin.
  67.  
  68.      1   RS232 25pin female connector.  Can be found at R-Shack
  69.     
  70.      Some sort of .1" spacing proto board
  71.  
  72. Connections:
  73.  
  74. User port connector (Looking into the C64 or C128)
  75.  
  76.          1  2  3  4  5  6  7  8  9 10 11 12
  77.     ------------------------------------
  78.     |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
  79.     ------------------------------------
  80.      A  B  C  D  E  F  H  J  K  L  M  N
  81.  
  82. Ground & Power:
  83.   Pins 1, A, 12, N to Ground of board.
  84.   LT1133 pin 2 to pin 2 of User port connector (+5 volts)
  85.   1uF capacitor between pin2 and ground (bypass cap)
  86.   LT1133 pin 13 to Ground.
  87.   RS232 connector pins 7 & 1 to Ground.
  88.  
  89. LT1133 capacitors:
  90.   1uF from pin 1 (V+) to ground  (If polarized (electrolytic) + side to pin 1)
  91.   1uF from pin 24 (V-) to ground (As above but + side to ground)
  92.   1uF from pin 3 (C1+) to pin 4 (C1-) (Again if polarized, + side to pin 3)
  93.   1uF from pin 22 (C2+) to pin 23 (C2-) (Again if polarized, + side to pin 22)
  94.     
  95.  
  96.     Commodore side                                       RS232 side
  97.   User port    Signal    Pin of       Signal        Pin of       RS232
  98.   pin          name      LT1133      direction      LT1133       connector
  99.   ---------    ------    ------      ---------      ------       ---------
  100.    B  FLAG2     Din        20         <--             6              3
  101.    C   PB0    Din     also connect to above pin 20
  102.    D   PB1      RTS        21             -->         5              4
  103.    E   PB2      DTR        19         <--             7              20
  104.    F   PB3      RI         18             -->         8              22
  105.    H   PB4      DCD        17             -->         9              8
  106.    J   PB5      Not used
  107.    K   PB6      CTS        16             -->         10             5
  108.    L   PB7      DSR        14         <--             12             6
  109.    M   PA2      Dout       15             -->         11             2
  110.  
  111.  
  112. This assumes that you want to connect all of the communication lines.  I did
  113. it this way because the C128 programmers reference guide had all of the signals
  114. above listed.  If you want to drop RI (ring indicator) you could also use an
  115. LT1134 which has 4 drivers and 4 receivers.
  116.  
  117. ****************************************************************************
  118.                            warren@col.hp.com
  119. ****************************************************************************
  120.