home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / ibm / pc / misc / 11566 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  2.4 KB

  1. Xref: sparky comp.sys.ibm.pc.misc:11566 comp.sys.ibm.pc.programmer:343
  2. Newsgroups: comp.sys.ibm.pc.misc,comp.sys.ibm.pc.programmer
  3. Path: sparky!uunet!munnari.oz.au!uniwa!swanee.ee.uwa.oz.au!phillips
  4. From: phillips@uwa.oz.au (Christopher Phillips)
  5. Subject: Re: PC reading Commodore 1541 disks
  6. Message-ID: <phillips.714044418@s9>
  7. Sender: news@swanee.ee.uwa.oz.au
  8. Organization: Elec Eng, Univ of Western Australia
  9. References: <1992Aug6.034338.27999@wam.umd.edu> <1992Aug11.040931.3263@newshost.anu.edu.au> <1992Aug12.052719.4642@qiclab.scn.rain.com> <exuptr.311.713819682@exu.ericsson.se>
  10. Date: 17 Aug 92 09:40:18 GMT
  11. Lines: 35
  12.  
  13. exuptr@exu.ericsson.se (Patrick Taylor) writes:
  14.  
  15. >In article <1992Aug12.052719.4642@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) writes:
  16. >>user0006@student.anu.edu.au (Alex Stivala) writes:
  17. >>>Unfortunately, it's not possible due to the fact that the 1541 uses GCR,
  18. >>>which is *not* readable by IBMPC type drives.  You will either need to put
  19. >>>the data onto MSDOS format disks from a Commodore 64 or 128 with a 1571 (or
  20. >>>1581 if you have 3.5") or use some sort of RS232 connection.
  21.  
  22. >What's GCR?  Anyone?
  23.  
  24. Group Coded Recording.  It is the way the data is stored on the disk.
  25.  
  26. Bits stored on a floppy are stored as magnetic transitions:
  27. 1 for a change from n-s to s-n, and zero for no change.  The '1' transitions
  28. are also used to keep the bit clock in sync, hence you must have at least one
  29. '1' in every N bits, where 100/N is the percentage variance in disk rotation
  30. speed you are willing to tolerate.  Usualy about 3 or 4.
  31. Also, start of data and header blocks are marked by a series of 8 or more ones,
  32. followed by a zero bit to mark the start of the first byte.  This syncs the
  33. clock, and marks the byte boundaries.
  34.  
  35. Hence, you must encode data to be stored on a floppy in a form that does not
  36. have large runs one ones, or more thatn a certain number of zeros in a row.
  37. GCR does this by encoding each nybble of data as a set of 5 bits.  I have
  38. not the code handy, but it is chosen such that there is at least enough
  39. zero's to ensure no long runs of ones, and zeros carfully placed such that
  40. no pair of code words placed next to each other produce a string of more
  41. than 2 zeros.
  42.  
  43. --
  44. Christopher Jam    __________________________________________________
  45. 'Another day, another try.  But remember, SHOOT OR DIE!' -turrican
  46. phillips@swanee.ee.uwa.oz.au        c64 forever!!!!
  47. ------------------------------------------------------------------
  48.