home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / hard_prj / flop14st / hdflop.2 < prev    next >
Text File  |  1993-07-01  |  6KB  |  102 lines

  1. Introduction and Notes for adding High density disk drives to the Atari ST
  2.  
  3. The first thing you must do, is to verify that your existing HDD controller IC
  4. is a suitable one for the modifications. The controller on the Atari ST is a
  5. Western Digital WD1772 and carries a suffix (usually) of 00-02 or 02-02. As it
  6. is explained in the following texts, the original chip is designed to run at
  7. 10MHz and only the 02-02 chip will handle the higher clock speed of 16MHz, so
  8. ensure that you have a compatible HD controller first.
  9.  
  10. There are no major problems with running two disk drives either one of each or
  11. two high density drives but a little jiggery pokery is required to get it all
  12. rolling properly. The type of HD drive you select will depend upon you but some
  13. are easier to work with than others - it is essential that you get a drive that
  14. will handle the full Shugart specs and not one of the (increasingly common) PC
  15. type HD drives that has limited functions. The HD drive MUST have the ability
  16. to send out the HD select signal on it's interface connector. The PC does not
  17. use this normally as the HD select is controlled by the PC host card and tells
  18. the drive what kind of disk is inserted (this is the reason that the PC can
  19. mess up a HD disk by formatting the media with the wrong data rate).
  20.  
  21. For full compatibility you'll need to gate the HD select signal with the drive
  22. select lines so that you can mix both high density and normal density drives
  23. on the same bus.
  24.  
  25. Some of the later series of HD drives have a pull-up on the HD select line that
  26. will stop you accessing the normal 720k drive as a second unit. This can be
  27. overcome by swapping jumpers (assuming you get a drive that can be configured
  28. properly) or by changing the pull-up to a higher value and arranging gates so
  29. that it is driven and held low for non high density disk access.
  30.  
  31. You may also experiance timing problems with some obscure makes of drive, so
  32. be careful to make sure you know what the drive unit you are buying can/can't
  33. do.
  34.  
  35. Finally, if you boot from the A: drive and you make this your high density one
  36. then be aware that you will need a small "autoboot" program to set the step
  37. rate BEFORE you can boot from a high density disk. This program MUST reside on
  38. the first track of the disk or the boot will fail for resons explained below
  39.  
  40.                               HOW IT WORKS
  41.  
  42. Basically the 720k and 1.44 meg disks drives are compatible in as much as that
  43. they both have 2 sides and 80 tracks. Now the important difference is the speed
  44. at which they write to the media. With 720k disks, the data is written out by
  45. the drive at 250k bits/second - this is known as "double density" and uses MFM
  46. encoding. A high density drive uses exactly twice this speed at 500kb/s and
  47. hence, writes twice as much data to the media. This is layed down by the format
  48. program as 18 sectors (instead of 9 on a 720k) per track of 512 bytes per
  49. sector. This faster rate is still MFM encoded and is known as "high density".
  50. There is yet a faster rate again at 1Mb/s that is used on the IBM machines and
  51. creates disks of 2.88 meg capacity but a new controller IC would be needed for
  52. this (anyway, the disks are too expensive yet) and it's known as "quad density"
  53. and there is an older standard known as "single density" which was half the
  54. data rate of the original 720k we discussed at 125Kb/s (remember the old CPM
  55. machines and things).
  56.  
  57. OK, you've swallowed all that (what you haven't....) now consider that since
  58. the physical interface is the same and only the data rate changes (a high
  59. density drive unit switches it's data rate up to 500kb/s when you plug in a
  60. disk with an extra hole) between 720k and 1.44 meg disks, it becomes easy to
  61. see that if we send the data at the same speed as the high density standard,
  62. then we can talk to high density media. How do we do this - easy, double the
  63. clock rate to the disk contoller chip. It's normally run at 8MHz, so run it
  64. now at 16 MHz and presto... you have your high density interface. You can pick
  65. up a 16MHz clock in the Atari from the video shifter.
  66.  
  67. One unfortunate side effect of doing this, to which I referred earlier was that
  68. since the data rate has changed and the speed doubled, then it now takes the
  69. HD controller chip half the time to carry out any operation than it did before.
  70. Now this means that effectively, the STEP rate of the disk drive (a function of
  71. the controller chip) is now halved from 3ms to 1.5ms (and I haven't yet found
  72. a drive that'll go this fast). So the problem when booting from a HD disk, is
  73. that you must load a little utility that will change the STEP rate  (programmed
  74. by the operating system) to 6ms (which when clock doubled becomes 3ms).
  75.  
  76. Now, this utility has to be small enough to fit on track 0 otherwise the disk
  77. drive will try and step out to the second track at 1.5ms (which it won't do)
  78. and the drive goes out of sync. Quite a number of programs incorporate the
  79. ability to change step rates and a small program can be written to do the job
  80. (I have written such a small utility if anyone wants it).
  81.  
  82.  
  83.                              COMPATIBILITY
  84.  
  85. There are one or two commercial 720k disks that complain and refuse to load if
  86. tried in a converted machine with a 1.44 meg as drive A: and if you're a games
  87. freak then it is probably better that you make the HD unit, your B: drive to
  88. maintain compatibilty. Once written and formatted, TOS takes care of how many
  89. sectors per track there are and I have found no (serious) problems at all with
  90. two HD drives fitted to my Atari Mega 3. One last point to bear in mind is that
  91. a lot of (both commercial and PD) utilities were written to allow the use of
  92. 9, 10 or 11 sector formats, so these will not work with an 18 sector disk and
  93. any cleanup/repair/disk doctors that can't handle HD media, will most probabyly
  94. foul things up for you and make an even worse mess - you have been warned.
  95.  
  96. Oh yes, forgot to mention you can handle 5.25" HD drives as well but you need
  97. to fit an external switch (the 5.25" HD doesn't have an HD select line OUT)
  98.  
  99. Happy hacking.....
  100.  
  101. Martin GW6HVA @ GB7OSP
  102. ə