- Source: Group coded recording
In computer science, group coded recording or group code recording (GCR) refers to several distinct but related encoding methods for representing data on magnetic media. The first, used in 6250 bpi magnetic tape since 1973, is an error-correcting code combined with a run-length limited (RLL) encoding scheme, belonging into the group of modulation codes. The others are similar encoding methods used in mainframe hard disks or microcomputer floppy disks until the late 1980s. GCR is a modified form of a NRZI code, but necessarily with a higher transition density.
Magnetic tape
Group coded recording was first used for magnetic-tape data storage on 9-track reel-to-reel tape. The term was coined during the development of the IBM 3420 Model 4/6/8 Magnetic Tape Unit and the corresponding 3803 Model 2 Tape Control Unit, both introduced in 1973. IBM referred to the error correcting code itself as "group coded recording". However, GCR has come to refer to the recording format of 6250 bpi (250 bits/mm) tape as a whole, and later to formats which use similar RLL codes without the error correction code.
In order to reliably read and write to magnetic tape, several constraints on the signal to be written must be followed. The first is that two adjacent flux reversals must be separated by a certain distance on the media, defined by the magnetic properties of the media itself. The second is that there must be a reversal often enough to keep the reader's clock in phase with the written signal; that is, the signal must be self-clocking and most importantly to keep the playback output high enough as this is proportional to the density of flux transitions. Prior to 6250 bpi tapes, 1600 bpi tapes satisfied these constraints using a technique called phase encoding (PE), which was only 50% efficient. For 6250 bpi GCR tapes, a (0, 2) RLL code is used, or more specifically a 4/5 (0, 2) block code sometimes also referred to as GCR (4B-5B) encoding. This code requires five bits to be written for every four bits of data. The code is structured so that no more than two zero bits (which are represented by lack of a flux reversal) can occur in a row, either within a code or between codes, no matter what the data was. This RLL code is applied independently to the data going to each of the nine tracks.
Of the 32 five-bit patterns, eight begin with two consecutive zero bits, six others end with two consecutive zero bits, and one more (10001) contains three consecutive zero bits. Removing the all-ones pattern (11111) from the remainder leaves 16 suitable code words.
The 6250 bpi GCR RLL code:
11 of the nibbles (other than xx00 and 0001) have their code formed by prepending the complement of the most significant bit; i.e. abcd is encoded as aabcd. The other five values are assigned codes beginning with 11. Nibbles of the form ab00 have codes 11baa, i.e. the bit reverse of the code for ab11. The code 0001 is assigned the remaining value 11011.
Because the all-ones code is not used in normal data, at most 8 one-bits can appear in a row. Sequences of 9 or more one-bits (in practice 14 all-ones codes, or 70 one-bits, were used) are used as a synchronization pattern.
Because of the extremely high density (for the time) of 6250 bpi tape, the RLL code is not sufficient to ensure reliable data storage. On top of the RLL code, an error-correcting code called the Optimal Rectangular Code (ORC) is applied. This code is a combination of a parity track and polynomial code similar to a CRC, but structured for error correction rather than error detection. For every seven bytes written to the tape (before RLL encoding), an eighth check byte is calculated and written to the tape. When reading, the parity is calculated on each byte and exclusive-ORed with the contents of the parity track, and the polynomial check code calculated and exclusive-ORed with the received check code, resulting in two 8-bit syndrome words. If these are both zero, the data is error free. Otherwise, error-correction logic in the tape controller corrects the data before it is forwarded to the host. The error correcting code is able to correct any number of errors in any single track, or in any two tracks if the erroneous tracks can be identified by other means.
In newer IBM half-inch 18-track tape drives recording at 24000 bpi, 4/5 (0, 2) GCR was replaced by a more efficient 8/9 (0, 3) modulation code, mapping eight bits to nine bits.
Hard disks
In the mid-1970s, Sperry Univac, ISS Division was working on large hard drives for the mainframe business using group coding.
Floppy disks
Like magnetic tape drives, floppy disk drives have physical limits on the spacing of flux reversals (also called transitions, represented by one-bits).
= Micropolis
=Offering GCR-compatible diskette drives and floppy disk controllers (like the 100163-51-8 and 100163-52-6), Micropolis endorsed data encoding with group coded recording on 5¼-inch 100 tpi 77-track diskette drives to store twelve 512-byte sectors per track since 1977 or 1978.
= Micro Peripherals
=Micro Peripherals, Inc. (MPI) marketed double-density 5¼-inch disk drives (like the single-sided B51 and double-sided B52 drives) and a controller solution implementing GCR since early 1978.
= Durango
=The Durango Systems F-85 (introduced in September 1978) used single-sided 5¼-inch 100 tpi diskette drives providing 480 KB utilizing a proprietary high-density 4/5 group coded encoding. The machine was using a Western Digital FD1781 floppy disk controller, designed by a former Sperry ISS engineer, with 77-track Micropolis drives. In later models such as the Durango 800 series this was expanded to a double-sided option for 960 KB (946 KB formatted) per diskette.
= Apple
=For the Apple II floppy drive, Steve Wozniak invented a floppy controller which (along with the Disk II drive itself) imposed two constraints:
Between any two one bits, there may be a maximum of one zero bit.
Each 8-bit byte must start with a one bit.
The simplest scheme to ensure compliance with these limits is to record an extra "clock" transition before each data bit according to differential Manchester encoding or (digital) FM (frequency modulation). Known as 4-and-4 encoding, the resulting Apple implementation allowed only ten 256-byte sectors per track to be recorded on a single-density 5¼-inch floppy. It uses two bytes for each byte.
Close to a month prior to the shipment of the disk drive in spring 1978, Wozniak realized that a more complex encoding scheme would allow each eight-bit byte on disk to hold five bits of useful data rather than four bits. This is because there are 34 bytes which have the top bit set and no two zero bits in a row. This encoding scheme became known as 5-and-3 encoding, and allowed 13 sectors per track; it was used for Apple DOS 3.1, 3.2, and 3.2.1, as well as for the earliest version of Apple CP/M:
Reserved GCR-codes: 0xAA and 0xD5.
Wozniak called the system "my most incredible experience at Apple and the finest job I did".
Later, the design of the floppy drive controller was modified to allow a byte on disk to contain up to one pair of zero bits in a row. This allowed each eight-bit byte to hold six bits of useful data, and allowed 16 sectors per track. This scheme is known as 6-and-2 encoding, and was used on Apple Pascal, Apple DOS 3.3 and ProDOS, and later with Apple FileWare drives in the Apple Lisa and the 400K and 800K 3½-inch disks on the Macintosh and Apple II. Apple did not originally call this scheme "GCR", but the term was later applied to it to distinguish it from IBM PC floppies which used the MFM encoding scheme.
Reserved GCR-codes: 0xAA and 0xD5.
= Commodore
=Independently, Commodore Business Machines (CBM) created a group coded recording scheme for their Commodore 2040 floppy disk drive (launched in the spring of 1979). The relevant constraints on the 2040 drive were that no more than two zero bits could occur in a row; the drive imposed no special constraint on the first bit in a byte. This allowed the use of a scheme similar to that used in 6250 bpi tape drives. Every four bits of data are translated into five bits on disk, using the same 5-bit codes as IBM to ensure there are never more than two zero bits in a row, but in a different order:
Like the IBM code, at most eight one bits in a row are possible, so Commodore used sequences of ten or more one bits in a row as a synchronization sequence.
This more efficient GCR scheme, combined with an approach at constant bit-density recording by gradually increasing the clock rate (zone constant angular velocity, ZCAV) and storing more physical sectors on the outer tracks than on the inner ones (zone bit recording, ZBR), enabled Commodore to fit 170 KiB on a standard single-sided single-density 5.25-inch floppy, where Apple fit 140 KiB (with 6-and-2 encoding) or 114 KiB (with 5-and-3 encoding) and an FM-encoded floppy held only 88 KiB.
= Sirius/Victor
=Similar, the 5.25-inch floppy drives of the Victor 9000 aka Sirius 1, designed by Chuck Peddle in 1981/1982, used a combination of GCR and zone bit recording by gradually decreasing a drive's rotational speed for the outer tracks in nine zones while increasing the number of sectors per track to achieve formatted capacities of 606 KiB (single sided) / 1188 KiB (double-sided) on 96 tpi media. The GCR code is identical to the Commodore one.
= Brother
=Starting around 1985, Brother introduced a family of dedicated word processor typewriters with integrated 3.5-inch 38-track diskette drive. Early models of the WP and LW series used a Brother-specific group-coded recording scheme with twelve 256-byte sectors to store up to 120 KB on single-sided and up to 240 KB on double-sided double-density (DD) diskettes. Reportedly, prototypes were already shown at the Internationale Funkausstellung 1979 (IFA) in Berlin.
= Sharp
=In 1986, Sharp introduced a turnable 2.5-inch pocket disk drive solution (drives: CE-1600F, CE-140F; internally based on the FDU-250 chassis; media: CE-1650F) for their series of pocket computers with a formatted capacity of 62464 bytes per side (2× 64 kB nominal, 16 tracks, 8 sectors/track, 512 bytes per sector, 48 tpi, 250 kbit/s, 270 rpm) with GCR (4/5) recording.
Other uses
GCR was also evaluated for a possible use in bar code encoding schemes (packing efficiency, timing tolerances, amount of storage bytes for timing information, and DC output level).
See also
4B5B, another rate-4/5 code, but with looser (0,3) RLL constraints
8b/10b encoding, a rate-4/5 (0,4) RLL code, which is also DC balanced
Modified Frequency Modulation (MFM)
Run Length Limited (RLL)
Eight-to-Fourteen Modulation (EFM)
Error-correcting code
Group code
Integrated Woz Machine (IWM, a GCR disk controller in Apple computers)
Paula (MOS Technology 8364, a GCR-capable disk controller in Commodore Amiga computers)
Individual Computers Catweasel (a special diskette controller able to read some GCR formats)
KryoFlux (a special diskette controller able to read some GCR formats)
Notes
References
Further reading
ANSI INCITS 40-1993 (R2003) Unrecorded Magnetic Tape for Information Interchange (9-track, 800 bpi, NRZI; 1600 bpi, PE; and 6250 bpi, GCR)
ANSI INCITS 54-1986 (R2002) Recorded Magnetic Tape for Information Interchange (6250 bpi, GCR)
Sallet, Herbert W. (July 1977). "Magnetic tape: A high performer: Magnetic tape has evolved into a highly effective medium for high-density and low-cost-per-bit data recording". IEEE Spectrum. 14 (7): 26–31. doi:10.1109/MSPEC.1977.6501525.
Sidhu, Pawitter S. (December 1976). "Group-Coded Recording Reliably Doubles Diskette Capacity". Computer Design: 84–88.
"(unknown)". Perkin-Elmer Data Systems News. Perkin-Elmer Data Systems. 1977-06-14. {{cite journal}}: Cite uses generic title (help)
Hsiao, (Ben) M. Y.; Carter, William C.; Thomas, James W.; Stringfellow, William R. (September 1981). "Reliability, Availability, and Serviceability of IBM Computer Systems". IBM Journal of Research and Development. 25 (5): 462. doi:10.1147/rd.255.0453. (NB. Mentions the 5/4 RLL code used on 6250 bpi tape drives.)
Qualstar 34XX Technical Service Manual (PDF) (Revision J ed.). Canoga Park, CA, USA: Qualstar Corporation. pp. 3-4..3-7. 500450. Archived from the original (PDF) on 2011-09-30. Retrieved 2017-03-23. (NB. Additional detail on the GCR tape format.)
US 3685033, Agrawala, Ashok K. & Srivastava, Keshava, "Block encoding for magnetic recording systems", published 1972-08-15, assigned to Honeywell Inc. (NB. Application No: US 66199. See also: CA993998A, CA993998A1, DE2142428A1)
US 4210959, Wozniak, Stephen G., "Controller for magnetic disc, recorder, or the like", published 1980-07-01, assigned to Apple Computer, Inc. (NB. Application Number: US 5/904420)
US 4564941, Woolley, Richard N.; Glover, Neal & Williams, Richard, "Error detection system", published 1986-01-14, assigned to Apple Computer, Inc. (NB. Application Number: US 06/559210. See also: CA1208794A, CA1208794A1, DE3443272A1, DE3443272C2)
Dockery, Sean Brendan. "Apple II disk encoding".
NEC µPD72070 – Floppy Disk Controller Specification Version 2.0 (PDF). 2.0 preliminary. NEC Corporation. October 1991. Archived from the original (PDF) on 2017-03-20. Retrieved 2017-03-20.
Åkesson, Linus (2013-03-31). "GCR decoding on the fly". Archived from the original on 2017-03-21. Retrieved 2017-03-21.
Trikaliotis, Spiro (2010-03-05). "Commodore GCR "mysteries"". Archived from the original on 2014-08-05.
"GCR ROM en-/decoder in Commodore 8050 and 8250 disk drives". Forum 64. Archived from the original on 2010-03-12.
Irwin, John W.; Cassie, John V.; Oppeboen, Harlyn C. (September 1971) [1970-12-11]. "The IBM 3803/3420 Magnetic Tape Subsystem". IBM Journal of Research and Development. IBM: 391–400. CiteSeerX 10.1.1.89.7834.
Docket (June 2014). "Milestone-Proposal:Introduction of the Apple Macintosh Computer, 1984". Archived from the original on 2018-07-09. Retrieved 2018-07-09.
"Crazy Disk Encoding Schemes". Big Mess O' Wires (BMOW) – Plus Too. 2011-10-02. Archived from the original on 2018-07-09. Retrieved 2018-07-09.
Dickreiter, Michael; Dittel, Volker; Hoeg, Wolfgang; Wöhr, Martin (2014). Handbuch der Tonstudiotechnik (in German). Walter de Gruyter GmbH & Co KG. ISBN 978-3-11-031650-6. ISBN 3-11031650-1. Retrieved 2018-07-09.
Bergmans, Jan W. M. (2013-03-09) [1996]. "Chapter 4.8.3 Group-Coded Recording (GCR) Code". Digital Baseband Transmission and Recording (reprint ed.). Philips Research, Eindhoven, Netherlands: Kluwer Academic Publishers / Springer Science+Business Media. doi:10.1007/978-1-4757-2471-4. ISBN 978-1-4419-5164-9. Retrieved 2018-07-09.
Camras, Marvin (2012) [1988]. Magnetic Recording Handbook (reprint ed.). Van Nostrand Reinhold Company / Springer Science+Business Media. doi:10.1007/978-94-010-9468-9. ISBN 978-9-40109468-9. LCCN 86-24762. ISBN 9-40109468-3. Retrieved 2018-07-09.
"In Single-Drive Setup – Tape System Has Three Densities". Computerworld. XIII (19). Louisville, Colorado, USA: CW Communications/Inc.: 59. 1979-05-07. Retrieved 2018-07-09.
External links
"Les Disquettes Et Le Drive Disk II" (in French). Archived from the original on 2018-07-09. Retrieved 2018-07-09., "Les Nibbles" (in French). Archived from the original on 2017-03-22. Retrieved 2018-07-09., "La Methode PRODOS: Rapide Et Efficace" (in French). Archived from the original on 2018-07-09. Retrieved 2018-07-09.
Kata Kunci Pencarian:
- Group coded recording
- Manchester code
- Group code
- Commodore 4040
- 9-track tape
- Error detection and correction
- Commodore 8050
- GCR
- Commodore 1541
- List of algebraic coding theory topics