home *** CD-ROM | disk | FTP | other *** search
/ Brotikasten / BROTCD01.iso / atari / hdemu.exe / HDHWARE.DOC < prev    next >
Text File  |  1993-04-07  |  7KB  |  163 lines

  1. \SETUP
  2. \LM10,\RM65,\TM3,\BM3
  3. \TEXT
  4. HDEMUL - Hard Drive Emulator interface construction and theory.
  5.  
  6. by Roger Lacey April 1992
  7.  
  8. HDEMUL by Peter Welham is a complete substitute for the SIO2PC software.
  9. Here follows a complete substitute for SIO2PC hardware interface which is
  10. both cheaper and more reliable than the original.
  11.  
  12. Background
  13.  
  14. 1. HDEMUL allows any Atari 8-bit 400/800/XL/XE computer to connect to and
  15. utilise their PC as a file-server connected to the normal 13 pin SIO bus.
  16. 2. Access to up to eight emulated drives is enabled by the manipulation
  17. of Atari disk images stored as standard PC MSDOS files. (The files on the
  18. PC hard or floppy drive are accessed directly when loaded).
  19. 3. Compatibility with files created with SIO2PC is retained.
  20. 4. The disk images are configurable in size from 90 Kilobytes up to 16
  21. Megabytes and so can readily act as a hard drive albeit running at floppy
  22. drive speed.
  23. 5. Transfer of files between the two computers is possible with the Atari
  24. software provided with the HDEMUL MyDOS disk image.
  25. 6. No special drivers are required at the Atari end as the SIO behaves
  26. as standard thus compatibility with the complete range of Atari 8-bit
  27. computers is retained.
  28. 7. Printer interface support is provided for the Atari with the PC
  29. optionally converting Atascii to Ascii, printing to printer, screen or file.
  30. 8. Read Peter Welham's detailed document supplied with his HDEMUL software
  31. for an account of this process.
  32.  
  33. Criteria
  34.  
  35. The criteria necessary to allow the Atari SIO to communicate with the PC
  36. serial interface is for conversion of the RS232 levels of the PC to Atari
  37. logic levels and vice versa. This involves data inversion performed by the
  38. RS232 driver, necessary due to the fact that RS232 logic is inverse to TTL
  39. data logic. Further, it is essential that the interface presents no loading
  40. to the SIO DATA IN (pin 3) at idle and so allow other devices access to the
  41. SIO. Tri-state logic achieves this and a 74LS368 device was chosen as this
  42. device, due to the large number of gates available and their arrangement.
  43. The RS232 driver chosen is in fact a MC1489 Line Receiver device designed
  44. to convert the plus and minus 12V RS232 levels to logic levels 0V and 5V.
  45. This device is also used as a transmitter and although no minus voltage is
  46. presented to the PC, 0V is still recognised as a valid RS232 Mark signal.
  47.  
  48. Operation
  49.  
  50. This is best read with reference to associated diagram.
  51. Find this on this disk as HDHWARE.IMG, a monochrome image file scanned at 200
  52. d.p.i. and containing the vero-strip layout.
  53.  
  54. The 74LS368 (IC1) contains six inverter gates, four enabled by pin 1 (IC1A),
  55. and the remaining two enabled by pin 15 (IC1B). IC1A is clamped on permanently
  56. and IC1B is used in the circuit to SIO DATA IN.
  57.  
  58. IC1B gates are enabled by RS232 REQUEST TO SEND (pin 4) going low when there
  59. is data to send, via IC2 13-11, IC1A 10-9 to IC1A 15. Data present on the
  60. RS232 DATA OUT (pin 2) then goes via IC2 10-8, IC1B 10-9 and IC1B 12-11 to SIO
  61. DATA IN (pin 3). RTS is clamped high via R1 so that IC1B presents a no load
  62. tri-state condition to SIO DATA IN so that normal SIO operation is possible
  63. when a PC is not being used.
  64. Note: RS232 DTR (pin 20) can be used as an alternative for IC1B gate enable.
  65.  
  66. HDEMUL constantly monitors the SIO COMMAND line (pin 7) via IC1A 6-7 and
  67. IC2 1-3 to RS232 RINGING INDICATOR (pin 22), and in it's present revision
  68. (1.2) tends to lock up if this line is not high. As well as going
  69. high when the Atari is switched on this line also provides the data to
  70. control all of the SIO intelligent periferals, and so obviously this line
  71. and it's interpretation is crucial. HDEMUL displays this information
  72. optionally at the bottom of the emulator screen and interprets the commands
  73. to Hexadecimal.
  74.  
  75. Data is received by HDEMUL constantly, regardless of device, from SIO DATA OUT
  76. (pin 5) via IC1A 4-5, IC1A 2-3 and IC2 4-6 to RS232 DATA IN (pin 3). Response
  77. is dictated by the COMMAND data.
  78.  
  79. Construction
  80.  
  81. Building this interface should present no real challenge and requires normal
  82. dexterity with a soldering iron intended for PCB work. Construction is on
  83. Vero-strip which eliminates the need to cut tracks. Layout is un-important,
  84. but the suggested one is easy to follow and has been tested thoroughly.
  85. Remember to run the 0V lines in before fitting the IC's. Sockets are
  86. recommended. I use soldercon pins which give a good stand-off and don't have
  87. bases to restrict access in that respect.
  88.  
  89. Terminations are via Vero pins pushed through and soldered to the strips. These
  90. are then taken off to a SIO cable centre stripped and prepared to accept the
  91. requisite data and power lines. This may then be enclosed in a suitable box
  92. and left permanently in the SIO chain.
  93.  
  94. I recommend a 25 way D-type socket to be fitted to this box rather than a
  95. permanent cable connection to the PC. This way a standard PC comms cable can
  96. be used to connect the SIO interface to the PC and when the PC is not
  97. connected the trailing cable can be removed.
  98.  
  99. A 25-way standard PC comms cable consists of a straight cable consisting of
  100. 25-way male - 25-way female with pins 2 through 8 and 20 connected. Not all
  101. pins are required for our application, but are included for full modem
  102. compatibility.
  103.  
  104. Alternatively PC's use 9-way plugs for their comms ports. If this is the
  105. case a conversion cable can be used as detailed below:-
  106.  
  107. 9-way female - 25-way male D-type connectors.
  108.  
  109.             1-8    DCD
  110.             2-3    RD
  111.             3-2    TD
  112.             4-20   DTR
  113.             5-7    Common
  114.             6-6    DSR
  115.             7-4    RTS
  116.             8-5    CTS
  117.             9-22   RI
  118.  
  119. This is the full 9-25 way conversion. Not all pins are required for our
  120. application, but are included for full modem compatibility as above.
  121.  
  122. Disclaimer
  123.  
  124. Needless to say, attempting this project is solely your own responsibility
  125. and no-one but you can accept resposibility for faulty construction.
  126.  
  127. A slip-up here could permanently damage either or both of your computers so
  128. be advised.
  129.  
  130. Take into account though that as I have succeeded, so may you. If you
  131. anticipate difficulties then it may be possible for me to construct one for
  132. you for a charge of twenty pounds sterling, plus SIO cable, plus postage.
  133.  
  134. Support
  135.  
  136. This hardware and software is released as Freeware.
  137.  
  138. LACE is officially distributing this software and hardware design as a
  139. library special.
  140.  
  141. Contact LACE for your copy NOW. If you have an Atari 8-bit and a PC you
  142. need this!
  143.  
  144. LACE:               081-690 2548 or 081-947-8900
  145.                     156A Swaby Road
  146.                     Earlsfield
  147.                     London
  148.                     SW18 3QY
  149.  
  150. Please copy this design and distribute it to all interested parties.
  151.  
  152. Feedback regarding this hardware and software is required. We need to hear
  153. from you.
  154.  
  155. It really costs little to feedback comments and they are very welcome,
  156. good or bad, believe me!
  157.  
  158. Or better still, join LACE and come to our monthly meetings.
  159.  
  160. Regards, Roger Lacey.
  161.  
  162. EOF
  163. \NP