home *** CD-ROM | disk | FTP | other *** search
/ The CIA World Factbook 1992 / k3bimage.iso / sel / 04 / 0037 / fdcable.doc < prev    next >
Encoding:
Text File  |  1991-12-02  |  10.4 KB  |  187 lines

  1. The message below was originally posted as an explanation of why it was
  2. necessary to set both floppy disk drives up with the same drive select
  3. jumpers when you want one to be drive A: and the other to be drive B:.
  4. It explains in detail the whys and wherefores of twisted floppy cables and
  5. how to set up the drive selects on the floppy drives.  The version below has
  6. been edited slightly to make it more generally applicable.
  7.  
  8. Written and uploaded by Tom Rawson (73577,243).
  9.  
  10. Michael ... Glad you got your problem fixed.  Here's the way it works to make
  11. you set both drives for DS1:
  12.  
  13. (1) The controller puts out two signals on the drive cable, called "Drive
  14. Select A" and "Drive Select B", to select the appropriate drive when issuing
  15. commands. In other words, if (for example) the controller sends a "step"
  16. signal to the drive to move the heads in or out one track, it uses a single
  17. wire in the cable - called, strangely enough, "Step" - to send the command. A
  18. pulse on this wire means "move the head in or out" (which direction is
  19. determined by another line, "Direction"). The Drive Select A & B signals
  20. determine which of the two drives will respond to the command, A: or B:. That
  21. way the controller doesn't need a whole bunch of separate command wires for
  22. each drive - just one set of command wires, and different drive select wires
  23. to say which drive should respond to the commands.
  24.  
  25. (2) The "DS" jumper on the drive determines which drive select wire the drive
  26. will pay attention to:  if you set it to DS1 it looks at Drive Select A (and
  27. thus - lo and behold - becomes drive A:); if you set it to DS2 it looks at
  28. Drive Select B, and is then drive B:. (Some drives number the drive selects 0
  29. and 1 instead of 1 and 2, but the same principle applies). Given all this, if
  30. things were organized in the apparently logical way, with all the wires hooked
  31. up as described above, your advisor who wanted you to set one drive as DS1
  32. and one as DS2 would have been correct; the drive set up as DS1 would have
  33. drive A: and the one set up as DS2 would have been drive B:.  But we forgot
  34. something:  the cable.  Here's where the fun starts.
  35.  
  36. (3) Take a look at your floppy cable - the ribbon cable from the controller
  37. board to one drive then the other.  If all the wires were straight things
  38. would behave as described above.  But they aren't:  the cable either starts at
  39. the controller, and at some point several wires (7, to be exact) are split out
  40. of the cable, twisted 1/2 turn, go through the middle connector, twist back to
  41. their normal alignment, and go on to the end connector; OR, the wires are
  42. split out of the cable AFTER the middle connector and go into the end
  43. connector twisted.  In either case the effect is the same:  one connector has
  44. those 7 wires in their normal alignment, and the other has them twisted 1/2
  45. turn.  (Most cables are of the former type, with the twisted section going 
  46. through the middle connector).
  47.  
  48. (4) OK, what is the effect of this funny Moebius twist in your cable?  Well,
  49. it just so happens that those 7 wires are pins 10 through 16 of the connector
  50. (you can count yourself - the marked wire, usually red or blue, is pin 1).
  51. The effect of flipping them over like that in one connector is to put the
  52. signal that was on pin 10 in the cable on pin 16 of the connector, and vice
  53. versa; the same swap is done with 12 and 14.  This means that whatever signal
  54. the controller sends on pin 10 comes out on pin 16 in that one connector, and
  55. vice versa; again, the same is true of pins 12 and 14.  It further turns out
  56. that the Drive Select A and B signals are pins 12 and 14 of the cable (I'll
  57. get to pins 10 and 16 below, and the odd-numbered pins are all grounded, so
  58. swapping them around doesn't matter).  SO, when the controller sends out a
  59. Drive Select A signal it comes out on pin 12 of the cable - or pin 14 of the
  60. connector with the cable flipped.  When it sends out a Drive Select B signal
  61. it's vice versa.
  62.  
  63. (5) All the drive select jumpers on the drive do is pick which pin (12 or 14)
  64. the drive looks at to determine whether to respond to commands from the
  65. controller.  If you jumper both drives as DS1 they will both respond to
  66. signals on pin 12.  BUT, due to the twist in the cable, the drive on the
  67. connector with the twisted wires gets a signal on pin 12 of the drive that
  68. originally was on pin 14 of the cable; that's drive select B, and it will
  69. respond to that one.  The drive on the connector with "normal" wire alignment
  70. will also respond to the signal on pin 12, but that comes from pin 12 of the
  71. cable, and that's Drive Select A. Voila! You have both drives jumpered as DS1;
  72. one responds to Drive Select A; the other responds to Drive Select B - and
  73. that was the object all along.  The twist in the cable does the trick.
  74. Furthermore, since it is usually the _middle_ connector where the twisted
  75. wires are connected, and the twisted wires are for drive B:, usually the drive
  76. on the middle connector is B:.
  77.  
  78. (6) Note some other effects of this scheme:  If you jumper the drive on the
  79. connector with twisted wires as DS2 and the one on the connector with normal
  80. wiring as DS1 - as you probably did at first - they will both respond to Drive
  81. Select A.  If you jumper both drives as DS2 it will also work, but it will
  82. swap things so that the connector where the wires are twisted will be drive
  83. A:, and the one with normal wiring will be drive B:.
  84.  
  85. (7) Pins 10 and 16 of the cable are Motor Enable A and Motor Enable B
  86. respectively; these lines start the drive motor _and_ turn on the red access
  87. light.  They are swapped due to the cable twist EXACTLY like the Drive
  88. Selects, and everything said about the Drive Select lines above applies to the
  89. Motor Enable lines as well.
  90.  
  91. The possible arrangements of drive selects and connectors can be summarized
  92. as follows; the letters (A, B) in the table indicate which drive letter the
  93. drive will respond to when the system is running:
  94.  
  95. For systems where the floppy drive cable has a twist in some of the
  96. connectors:
  97.  
  98.         Connector:      With twisted wires      Wires aligned normally
  99.                         (usually in the mid-    (usually at the end
  100.                         dle of the cable)       of the cable)
  101.         Drive Select
  102.         ------------
  103.             1                   B                       A
  104.  
  105.             2                   A                       B
  106.  
  107. The most common arrangement is that shown in line 1 of the table:  BOTH
  108. drives jumpered for DS1; the drive on the middle connector is B: and the one
  109. on the end connector is A:.
  110.  
  111. Note that, as mentioned above, some drives have drive select jumpers marked
  112. "DS0" and "DS1" instead of "DS1" and "DS2"; in that case everything above
  113. applies, but you have to use "DS0" where I said "DS1" and "DS1" where I
  114. said "DS2".  This variation is due to individual manufacturers' labeling
  115. preferences as there is no particular standard.
  116.  
  117. For systems where the floppy drive cable DOES NOT have a twist in some of the
  118. connectors (this is rare but I have included it for completeness):
  119.  
  120.         Connector:              Either
  121.                         
  122.         Drive Select
  123.         ------------
  124.             1                      A
  125.  
  126.             2                      B
  127.  
  128.  
  129. Notes on "terminating resistors":  A terminating resistor is a small chip,
  130. usually with 14 or 16 pins and often a different color than the usual black
  131. of most ICs (grey, blue, yellow, etc.).  Its purpose is to stop signals in
  132. the cable from "ringing" due to reflections; I suppose you can view it as
  133. like putting some soft material in the cap at the end of the pipe so it
  134. doesn't bang around so much when the water goes on and off.  There should
  135. be one terminating resistor chip on the board at each end of the floppy
  136. disk drive cable.  The controller card always has one of these chips, so
  137. you don't have to worry about that end.
  138.  
  139. Most disk drives have a socket for this chip.  Some come with the chip
  140. installed, some don't.  The main thing you have to know is that the termina-
  141. ting resistor ALWAYS goes on the LAST drive on the cable.  If you only have
  142. one floppy drive, it goes there.  If you have two, there should be a
  143. terminating resistor installed in the LAST drive ONLY.  Note that the only
  144. thing that matters here is where the drives are physically located on the
  145. cable; which drive gets the terminating resistor has NOTHING to do with
  146. which one is A: or B:, since the latter can be modified through changing
  147. the drive select jumpers without physically moving the drives on the cable.
  148.  
  149. If you have are installing a second floppy or replacing a floppy drive, you
  150. want to be sure that you have one and only one terminating resistor,
  151. installed in the last drive in the cable.  You don't want one in each drive,
  152. nor do you want one in the middle drive and none in the last drive (though
  153. I have seen the latter configuration work, you can't depend on it).  To
  154. accomplish this you need to figure out where the resistor is on your 
  155. drive(s), and whether it's installed.  The position varies widely on
  156. different types of drives, so you have to depend on the drive documentation,
  157. the dealer, the manufacturer, or others who know, but it is usually somewhere
  158. vaguely accessible and visible - like inside a hole cut for that purpose,
  159. or near the back edge of the circuit board on the drive (though it probably 
  160. won't be as accessible or visible as you'd wish).  On some drives it is near
  161. the drive select jumpers.  I have heard that some drives don't actually
  162. allow you to remove the resistor, but instead have a jumper that activates
  163. or deactivates it; I believe this arrangement is quite rare.
  164.  
  165. Note that if you have one drive that you are pretty sure has a resistor and
  166. one that doesn't, you can simply install the one with the resistor at the
  167. end of the cable and the other one in the middle, and don't bother with
  168. moving the resistor around.  Then set the drive select jumpers according
  169. to the table above to get the drives appropriately arranged as A: and B:.
  170.  
  171. For the technically curious, the terminating "resistor" is actually a 
  172. "resistor pack" which contains several individual resistors.  The circuit
  173. is such that the signals in the cable which are "terminated" by this
  174. resistor pack are "pulled up" to a positive voltage and/or "pulled down"
  175. to ground through resistors.  I believe in most cases the resistor packs
  176. used for the floppies are the combined pull up/pull down type, but I'm
  177. not positive.
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.