Recording/reproducing apparatus for recording and reproducing multiple kinds of digital signals having different data amounts per unit time
This application is a Continuation-in-part of parent application Ser. No. 08/018,403 filed Feb. 17, 1993, abandoned, and entitled &#34;Data Conversion Method and Recording/Reproducing Apparatus Using the Same&#34;. 
    
    
     BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The present invention relates to a data conversion method for converting digital data to signals suitable for the recording system or the transmission channel used when recording or reading the digital data onto or from a magnetic tape, and a recording/reproducing apparatus employing the data conversion method. The present invention further relates to encoding multiple kinds of data and data blocks of different lengths on the tape with a high density. 
     2. Description of Related Art 
     Prior art data conversion methods employed in magnetic recording/reproducing apparatus include, for example, an 8/10 modulation method such as disclosed in &#34;THE DAT CONFERENCE STANDARD&#34; (issued June 1987). The 8/10 modulation method is a data conversion method in which digital data is partitioned into datawords of 8 bits each for conversion into 10-bit codewords. FIG. 1 is a circuit block diagram for explaining this data conversion method, and FIG. 2 is a data conversion table used for the same. In FIG. 1, the reference numeral 1 designates an encoder for accepting eight-bit digital data and a one-bit table select signal (Q&#39;) at its respective inputs and for outputting a total of 11 bits, i.e. a 10-bit codeword plus a one-bit signal (Q) for selecting the table for the next codeword. Further, the numeral 2 denotes a flip-flop for delaying the codeword table select signal by one dataword. The encoder 1 includes a read-only memory (ROM) or the like which contains the data conversion table shown in FIG. 2, wherein codewords of CDS (Codeword Digital Sum)=0 are mapped on a one-to-one basis to 256 datawords from &#34;OO&#34; to &#34;FF&#34; of hexadecimal numeral while in the case of codewords of CDS=0, pairs of code-words, one with CDS=+2 and the other with CDS=-2, are each mapped to one dataword, the table of Q&#39;=-1 consisting of codewords of CDS=+2 and the table of Q&#39;=+1 consisting of codewords of CDS=-2. The table select signal (Q) is used to select the CDS (the table) having the direction that suppresses the dispersion of charges in the codeword sequence. 
     The operation of the above circuit will now be explained with reference to the timing diagram of FIG. 3. In FIG. 3, the reference signs (a), (Q), and (b) correspond to inputs/outputs at the respective parts shown in FIG. 1, and the reference signs (c) and (d) respectively represent an output signal from an NRZI converter (not shown) and a DSV (Digital Sum Variation) value at the end of each codeword. 
     First, an eight-bit dataword &#34;FF&#34; is input to the encoder 1, along with the table select signal (Q&#39;)=-1, and consequently, the encoder 1 outputs a 10-bit codeword &#34;1111101010&#34; of CDS=+2 corresponding to &#34;FF&#34; for Q&#39;=-1. At the same time, the table select signal Q=-1 is output for the next codeword. The parallel 10-bit signal is then converted to a serial signal, after which the signal is NRZI-modulated. As a result, the DSV value at the end of the codeword becomes +2. 
     Next, when &#34;00&#34; is input to the encoder Is the encoder 1 outputs Q=1 together with a 10-bit signal &#34;0101010101&#34; of CDS=0 corresponding to &#34;00&#34; for Q&#39;=-1 which is produced by introducing a one-symbol delay in the previous output Q=-1. As a results the DSV value at the end of the codeword after NRZI modulation remains at +2. 
     Next, when &#34;11&#34; is input to the encoder 1, the encoder 1 outputs Q=-1 together with a 10-bit signal of CDS=-2 corresponding to &#34;11&#34; for Q&#39;=1. As a result, the DSV value at the end of the codeword after NRZI modulation becomes zero. In this manner, for each eight-bit dataword input to the encoder 1, a codeword to be output is selected from the table of either Q&#39;=-1 or Q&#39;=1 corresponding to the dataword on the basis of the table select signal output previously. The DSV at the end of each codeword after NRZI modulation can only take the value 0, +2 or -2. This means that the DSV dispersion is suppressed, as a result of which DC-free data conversion is realized. 
     As described above, according to the prior art data conversion method, eight-bit data is converted to a 10-bit codeword of CDS=0 or CDS=+2 or -2, and a DC-free signal is produced with the DSV dispersion suppressed, thereby minimizing intersymbol interference on the transmission channel and thus increasing the recording density per track. However, for recent digital magnetic recording/reproducing apparatus using a rotary head, a recording density as high as several square micrometers per bit is demanded, which necessitates not only increasing the recording density per track but also reducing the track width down to several micrometers. To implement such apparatus, it is highly useful to employ a dynamic tracking following (DTF) control system whereby pilot signals for tracking are recorded on the main track recorded by the rotary head and the playback head is controlled to follow the recorded track curves during playback. When the prior art data conversion method is employed in such apparatus for multiplex recording of the pilot signals, the digital signal spectral distribution has to be obtained down to ultra low frequency ranges although the recorded information signals contain no DC components; the resulting problem is that the pilot signals cause external disturbances, leading to increased errors in the detection of the digital signals. 
     One possible approach to overcoming the problem of the pilot signals causing external disturbances to the digital signals may be generating pilot signals synchronized to the digital signals. However, the prior art data conversion method is effective only in suppressing the DSV dispersion and is not capable of actively controlling the DSV, and therefore, has the problem that it cannot generate pilot signals synchronized to the digital signals. 
     FIG. 4 shows a DAT recording format employed in a magnetic recording apparatus using the 8/10 modulation method. As shown, according to the format of FIG. 4, ATF areas for tracking control are provided in each of which pilot signal for tracking control are provided in each of which a pilot signal for tracking control is recorded. Further, FIG. 5 shows a digital VTR recording format which is disclosed in Japanese Patent Application Laid Open No. 3-217179 (1991). As shown, the track is divided into a video data area, an audio data area, a servo pilot area, and a sub code area, the pilot signal being recorded in the servo pilot area only. 
     According to the above construction of the prior art, it is not possible to control the DSV in such a manner as desired, and a separate area has to be reserved for recording a pilot signal for tracking control. Accordingly, accurate tracking control cannot be realized without increasing the data amount and hence increasing the recording rate, which makes it difficult to achieve high density recording. 
     In conventional digital magnetic recording/reproducing apparatus typified by the rotaryhead digital audio tape recorder (R-DAT), data to be recorded on tracks for recording/reproducing are divided into blocks of identical block length. 
     FIG. 54 shows the track format and block format employed into conventional R-DAT. In the figure, part (a) shows the track format, and part (b) shows the block format. Referring to FIG. 54(a), the &#34;MAIN DATA&#34; area holds PCM audio data and an error-correcting code associated with the PCM audio data, a total of 128 blocks, each block signal being recorded in accordance with the block format shown in FIG. 5(b). In the &#34;SUBCODE&#34; areas near both ends of the track, subcode data containing additional function information, etc. are recorded as two blocks, each block written in accordance with the same block format shown in part (b) as the &#34;MAIN DATA&#34; area, the same data of two blocks being written a total of eight times per track (four times near the head of the track and four times near the end of the track). The MSB bit of the block address data shown in part (b) is used to discriminate between the PCM audio data and the subcode data both recorded in the same block format. 
     As described above, in the R-DAT, both PCM audio data and subcode data are recorded in the same block format and subjected to the same signal processing. 
     The conventional magnetic recording/reproducing apparatus is constructed to record data in the format as described above; whether the data to be recorded is the main data such as PCM audio data or the sub data such as additional function information, the data is constructed into data blocks each having the same information capacity, and the signal processing is fundamentally the same whether in recording or reproducing processes. The advantage of this system is that since the same signal processing circuit can be used for both the main data and sub data, the circuit configuration can be made relatively small in size and is easy to design. 
     In digital magnetic recording/reproducing apparatus for video such as digital VTRs, the recording track needs to be divided into separate areas, as in DAT recording, for recording video data amounting to several tens of megabits per second (Mbps), audio data needing a bandwidth several tens of times smaller (less than 1 Mbps) than the video data, and sub data having an even smaller information rate (about 100 kbps). If each area is to be recorded using a block structure having the same information capacity, the block structure needs to be determined in accordance with the video data having the largest information rate, in order to ensure sufficient coding efficiency. As a result, in the case of the sub data having a small information rate; either several data units must be combined in one block or redundant data must be added to fill the block. In cases where the information rate is small, such as audio data and subcode data, using a product code as an error-correcting code is not advantageous from the viewpoint of coding efficiency. For such data, it is common to construct the system so that error correction is performed using only an inner block error-correcting code (e.g., subcode in DAT recording). In this case, however, if a burst error occurs within a block in decoding, all information would be rendered unreproducible. Such burst data loss may be prevented by appending redundant data to the sub data and dividing it into a plurality of blocks, but this would in turn greatly reduce the information efficiency since the information rate of subcode data is by far smaller than that of video data. 
     SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide a data conversion method which, by suppressing low frequency components, can minimize intersymbol interference on the transmission channel, thus permitting increased per-track recording density, as in the prior art data conversion method, and which is capable of generating pilot signals synchronized to digital signals, which has not been possible with the prior art method, and thus achieves increased recording density with reduced track width. 
     It is another object of the present invention to provide a recording/reproducing apparatus optimized for the data conversion method capable of generating pilot signals synchronized to digital signals. 
     It is a further object of the present invention to provide a data conversion method which is capable of generating pilot signals for tracking control and which involves hardly any increase in the recording rate and therefore permits high density recording, and a recording/reproducing apparatus using such a data conversion method. 
     It is a further object of the present invention to reduce the problem of redundant data and coding inefficiency by setting effective and efficient error-correcting codes for video data, main data, and sub data such as sub code data in accordance with their respective information rates, and treat them as different data blocks having different information rates. 
     It is another object of the invention is to ensure reliable signal processing on these different data blocks by providing a signal processing circuit that performs different synchronization detection operations, etc. on the respective data blocks to separate the blocks. 
     According to the present invention, there is provided a data conversion method for word-converting an r-bit first dataword to an m-bit second dataword (r&lt;m) and converting the word-converted m-bit second dataword to an n-bit codeword (m&lt;n), in which, for r/m word-conversion; a sequence of first datawords is divided into groups of x bits where x is the least common multiple of r and m, an arbitrary first dataword selected from x/r groups of first datawords is divided into x/m, and r/(x/m)-bit data obtained by dividing the first dataword into x/m is appended to the LSB (or MSB) side of one or other of the non-divided first datawords to form the m-bit second dataword. The m-bit second dataword can thus be handled as r+(r/(x/m)) (or r/(x/m))+r). Therefore, if, in m/n conversion, the n-bit codeword is formed by dividing it into n1 and n2 bits, the data conversion can be performed by relating r to n1 and r/(x/m) to n2. This serves to reduce the possibility of error propagation due to a bit error that may occur in reverse data conversion. 
     Furthermore, when converting the word-converted m-bit second dataword to the n-bit codeword, the number of successive 0s between a bit &#34;1&#34; and the next bit &#34;1&#34; in each n-bit codeword is limited to 4, and two codewords, one with CDS=+1 and the other with CDS=-1, are paired and related to the m-bit second dataword, the two codewords being selectively used in accordance with a DSV control signal. This enables the DSV to be controlled at a desired value for each codeword, thereby achieving spectrum suppression in a relatively low frequency range. Also, by controlling the CDS polarity in accordance with the DSV control signal, a pilot signal of the DSV variation cycle synchronized to digital data can be generated in the low frequency band where the digital data power spectrum exhibits an abrupt drop. 
     When the above data conversion method is employed in a recording/reproducing apparatus, the number of first datawords to be recorded in a data block, where an error-correcting code and an error-detection code are appended for every synchronizing signal, is set at an integral multiple of x/r. The recording/reproducing apparatus thus constructed achieves an efficient code format that does not require redundant bits. 
     The recording/reproducing apparatus employing the above data conversion method includes: decoding means for decoding n1 bits in the reproduced n-bit codeword into r bits, the reproduced n-bit codeword being divided into n1 bits and n2 bits for reverse conversion into the m-bit second dataword; decoding means for decoding the n2 bits into r/(x/m) bits; decoding means for decoding the n bits into the m bits; identifying means for identifying the type of bits at prescribed positions in the n-bit codeword and for outputting an identification signal designating the identified type; and means for selecting decoded data from the respective decoding means on the basis of the identification signal supplied form the identifying means and for outputting the decoded second dataword. This construction serves to reduce the possibility of the error propagation that may occur between decoded first datawords due to a single bit random error in the n-bit codeword. 
     Another recording/reproducing apparatus of the invention includes: means for recording multiple kinds of data in partitioned areas; means for relating 14-bit codewords of CDS=0 and pairs of codewords of CDS=±2 to respective 12-bit datawords when encoding and recording at least one of the multiple kinds of data and for encoding the data by selectively using these codewords; and means for appending one bit to each 14-bit codeword to form a pair of codewords, one with CDS=+1 and the other with CDS=-1, when encoding and recording at least one other of the multiple kinds of data and for encoding the data by selectively using these codewords. 
     In the above recording/reproducing apparatus, when encoding and recording at least one of the area-partitioned multiple kinds of data, either a 14-bit codeword of CDS=0 or a pair of codewords differing only in MSB, one with CDS=+2 and the other with CDS=-2, are related to one dataword, and the dataword is encoded by selectively using these codewords, thus constructing a DC-free code of Tmin=0.86T and Tmax=4.29T; on the other hand, when encoding and recording at least one other of the multiple kinds of data, one bit is appended to each 14-bit codeword to form a pair of codewords, one with CDS=+1 and the other with CDS=1, and the data is encoded by selectively using these codewords, thus constructing a code that provides the DSV coming round to the same value at prescribed intervals. 
     According to another embodiment of the present invention, a digital magnetic recording/reproducing apparatus having means for organizing recording data into different blocks having different lengths according to the data amount per unit time and for recording the different blocks on the same track is provided. According to the digital magnetic recording/reproducing apparatus of this embodiment a plurality of blocks having different block lengths that respectively match the data rates of plural kinds of data are constructed and recorded on the same track, thereby achieving effective data recording/reproducing. 
     According to another embodiment of the present invention, there is provided a digital magnetic recording/reproducing apparatus having means for setting error-correcting codes that match the respective blocks of different lengths and for appending the error-correcting codes to the respective blocks. According to the digital magnetic recording/reproducing apparatus of this embodiment, different error-correcting codes that respectively match the different blocks of different lengths are appended to the respective blocks, thereby providing an efficient error-correction capability for data recording/reproducing. 
     According to another embodiment of the present invention, there is provided a digital magnetic recording/reproducing apparatus including: means for recording different synchronizing signals for separating the blocks at the heads of the respective blocks of different lengths; means for discriminating between the different blocks of different lengths with the different synchronizing signals; and means for changing the counter value for a ring counter for synchronization protect. 
     According to the digital magnetic recording/reproducing apparatus of this embodiment, a plurality of different synchronizing signal patterns for separating the different blocks of different lengths are placed at the heads of the respective blocks, and in reproduction, the respective blocks are discriminated from each other on the basis of the plurality of different synchronizing signals detected, and the count value for a ring counter for synchronization protection is changed, thus making it possible to carry out different synchronization operations using a single synchronization protection circuit. 
     In another embodiment of the invention, the magnetic recording/reproducing apparatus includes: means for recording multiple kinds of data in partitioned areas; means for relating 10-bit codewords of CDS=0 and pairs of codewords of CDS=±2 to respective 8-bit datawords when encoding and recording at least one of the multiple kinds of data and for encoding the data by selectively using these codewords; and means for appending one bit to each 10-bit codeword to form a pair of codewords, one with CDS=+1 and the other with CDS=-1, when encoding and recording at least one other of the multiple kinds of data and for encoding the data by selectively using these codewords. In this embodiment, the magnetic recording/reproducing apparatus, when encoding and recording at least one of the area-partitioned multiple kinds of data, either a 10-bit codeword of CDS=0 or a pair of codewords, one with CDS=+2 and the other with CDS=-2, are related to one dataword, and the dataword is encoded by selectively using these codewords, thus constructing a DC-free code. On the other hand, when encoding and recording at least one other of the multiple kids of data, one bit is appended to each 10-bit codeword to form a pair of codewords, one with CDS=+1 and the other with CDS=-1, and the data is encoded by selectively using these codewords, thus constructing a code that provides the DSV coming round to the same value at prescribed intervals. 
     The above and further objects and features of the invention will more fully be apparent form the following detailed description with accompanying drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a diagram showing the circuit configuration of a prior art data converting apparatus. 
     FIG. 2 is a code conversion table according to a prior art data conversion method. 
     FIG. 3 including representative signal parts (a)-(d) is a diagram for explaining the operation of the data converting apparatus of FIG. 1. 
     FIG. 4 is a diagram showing a recording format of a prior art DAT. 
     FIG. 5 is a diagram showing a recording format of a prior art digital VTR. 
     FIG. 6 is a diagram showing the number of codewords for deriving codewords in accordance with a first embodiment of the invention. 
     FIG. 7 is a diagram showing a number of codewords for deriving codewords in accordance with a first embodiment of the invention. 
     FIG. 8 is a diagram for explaining the construction of code conversion tables according to the first embodiment of the invention. 
     FIG. 9 is a diagram for explaining the construction of code conversion table according to the first embodiment of the invention. 
     FIG. 10 is a diagram for explaining the construction of code conversion tables according to the first embodiment of the invention. 
     FIG. 11 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 12 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 13 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 14 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 15 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 16 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 17 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 18 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 19 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 20 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 21 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 22 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 23 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 24 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 25 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 26 is a diagram showing code conversion according to the first embodiment of the invention. 
     FIG. 27 is a diagram showing the circuit configuration of a data converting apparatus for implementing the code conversion method of the first embodiment. 
     FIG. 28 including FIGS. 28(A) and 28(B) is a diagram for explaining the operation of the data converting apparatus of FIG. 27. 
     FIG. 29 is a power spectrum diagram showing the effect of the first embodiment. 
     FIG. 30 is a diagram showing the structure of a first dataword block recorded by a recording/reproducing apparatus employing the data conversion method of the first embodiment. 
     FIG. 31 is a diagram showing the structure of the first dataword block recorded by the recording/reproducing apparatus employing the data conversion method of the first embodiment along with the structure of the first datawords recorded at the top of the block. 
     FIG. 32 is a diagram showing the configuration of a circuit for implementing a decoding method in the recording/reproducing apparatus employing the data conversion method of the first embodiment. 
     FIG. 33 is a diagram showing classifications for 5-bit LSB codewords in the codewords of the first embodiment. 
     FIG. 34 including FIGS. 34(A) and 34(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 35 including FIGS. 35(A) and 35(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 36 including FIGS. 36(A) and 36(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 37 including FIGS. 37(A) and 37(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 38 including FIGS. 38(A) and 38(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 39 including FIGS. 39(A) and 39(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 40 including FIGS. 40(A) and 40(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 41 including FIGS. 41(A) and 41(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 42 including FIGS. 42(A) and 42(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 43 including FIGS. 43(A) and 43(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 44 including FIGS. 44(A) and 44(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 45 including FIGS. 45(A) and 45(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 46 including FIGS. 46(A) and 46(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 47 including FIGS. 47(A) and 47(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 48 including FIGS. 48(A) and 48(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 49 including FIGS. 49(A) and 49(B) is a diagram showing code conversion according to a second embodiment of the invention. 
     FIG. 50 is a diagram showing the circuit configuration of a data converting apparatus for implementing the data conversion method of the second embodiment. 
     FIG. 51 is a diagram showing a code select table according to the second embodiment. 
     FIG. 52 including FIGS. 52(A) and 52(B) is a diagram for explaining the operation of the data converting apparatus of FIG. 50. 
     FIG. 53 is a diagram showing a recording format of a recording/reproducing apparatus according to the second embodiment. 
     FIG. 54 is a diagram illustrating the block structure for recording/reproducing circuitry in a prior art magnetic recording/reproducing apparatus. 
     FIG. 55 is a circuit diagram illustrating one embodiment of the invention. 
     FIGS. 56-61 are code conversion tables in one embodiment of the invention. 
     FIGS. 62 including FIGS. 62(a) and 62(b) is diagrams showing data conversion and DSV values in one embodiment of the invention. 
     FIG. 63 including FIG. 63(a) and 63(b) is a block diagram showing the configuration of recording/reproducing in a digital magnetic recording/reproducing apparatus according to one embodiment of the invention. 
     FIG. 64 is a diagram illustrating the block structures of data blocks for recording/reproducing according to the embodiment of the invention. 
     FIG. 65 is a block diagram showing the configuration of a SYNC protection circuit according to the embodiment of the invention. 
     FIG. 66 is a diagram for explaining the output operation of the SYNC protection circuit according to the embodiment of the invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     A first embodiment of the invention will now be described below with reference to accompanying drawings. 
     Now suppose a first dataword length r=8, a word-converted second dataword length m=12, and a data-converted codeword length n=15, to form a code with a modulation parameter Tmax/Tmin=5. At this time, d=0 and k=4, where d is the minimum number of 0s between an arbitrary 1 and the next 1, and k is the maximum number of 0s between an arbitrary 1 and the next 1. The NRZI (F) rule is used to form the code. To achieve such a data conversion, the maximum number of successive 0s in each codeword is limited to 3 on the MSB side, 1 on the LSB side, and 4 within codeword. In this situation, the number of possible codewords having the MSB of 0 and satisfying the 0 run length condition is given in FIG. 6 for each CDS. 
     To form a DC-free code, 2 12  pairs (4096 pairs) of codewords, each pair having codewords of different CDS polarities, should be provided. The numbers given in FIG. 6 are only for codewords whose MSB is 0; by converting the MSB to 1, codewords of reverse CDS polarity can be obtained while satisfying the 0 run length condition. Accordingly, of the codewords given in FIG. 6, only the codewords of CDS=±1 are enough to satisfy the minimum required number of second datawords=2 12  (4096&lt;number of codewords=4650). Therefore, by using only the codewords of MSB=0 and CDS=±1 and by setting the MSB to 0 or 1, it is possible to suppress the dispersion of DSV. 
     FIG. 7 shows possible combinations of codewords n1 and n2 when the codewords of CDS=±1 given in FIG. 6 are each divided into n1=10 bits and n2=5 bits, n1 representing the 10 bits on the MSB side and n2 representing the 5 bits on the LSB side. In FIG. 7, Group A consists of n1 codewords of CDS=0, Group B of n1 codewords of CDS=+2, Group C of n1 codewords of CDS=-2, Group D of n1 codewords of +4, and Group E of n1 codewords of CDS=-4. Each of the codeword groups A to E is subdivided in accordance with the 0 run length at codeword end resulting from the concatenation of the codewords n1 and n2. 
     First, we focus our attention on Group A. It can be seen that there are 18 different n2 codewords that can be paired with A1 while, of the 18 codewords, 17 codewords excluding the codeword &#34;02&#34; can also be paired with A2. Therefore, for Group A, 16 codewords, excluding the codewords &#34;02&#34; and &#34;05&#34;, are used, and m=12 bits are divided into m1=8 bits and m2=4 bits at the time of m/n conversion, to realize m1/n1 (8/10) conversion and m2/n2 (4/5) conversion, respectively. This coding technique serves to avoid propagation of errors between divided codewords at the time of decoding. To utilize this property, when 8-bit first datawords of length (r) supplied from an error-correcting circuit are word-converted to 12-bit second datawords of length (m), four bits separated from the eight bits are mapped to m2, while non-divided 8 bits are mapped to m1. As a result, when a random error occurred to one bit in n bits during the reconstruction process, the error occurring to the first dataword after decoding is limited only to one dataword; the error is thus prevented from propagating between datawords. 
     In the first embodiment, 1s and 0s used to represent one-bit signals are binary numbers, a 1 representing a high level and a 0 a low level. On the other hand, &#34;0&#34; to &#34;F&#34; used to represent datawords, codewords, or parallel data bit sequences are hexadecimal numbers. 
     If the above coding method is provided in 256 pairs, a single bit error in n bits during the reconstruction process can be prevented from propagating between first datawords after decoding. However, as is apparent from FIG. 7, under the condition that satisfies the modulation parameter of the data conversion method of the first embodiment, the above coding method can be applied only to Group A, and cannot be applied to the other Groups B to E. 
     In view of the above situation, we now consider a method of coding, as shown in FIGS. 8 to 10 wherein the m1/n1, m2/n2 coding method is divided into three major coding groups, i.e. the first coding group consisting only of Group A codewords corresponding to the first datawords m1=&#34;00&#34; to &#34;73&#34;, the second coding group consisting of Group B and Group C codewords corresponding to the first datawords m1=&#34;74&#34; to &#34;BA&#34;, and the third coding group consisting of the codewords in the other groups as well as the remaining codewords in Group B and Group C corresponding to the first datawords m1=&#34;BB&#34; to &#34;FF&#34;. 
     First, referring to the first coding group of FIG. 8 which consists only of Group A codewords, if an error occurred to one bit in n bits in the reconstruction process, the error occurring to the first dataword after decoding is limited only to one dataword and is thus prevented from propagating between datawords. 
     Next, in the second coding group shown in FIG. 9, there is provided a one-to-one correspondence for the m2/n2 conversion, but for the m1/n1 conversion, two n1 codewords are mapped to one m1. Therefore, of the encoded 15 bits, if the 10 bits mapped to n1 contains a single bit error, the error occurring to the first dataword after decoding is limited only to one dataword and is thus prevented from propagating between datawords. However, if there is an error in one bit out of the five bits mapped to n2, error propagation can occur between first datawords after decoding from the probability point of view. 
     Further, in the third encoding group shown in FIG. 10, one m1 is mapped to a plurality of n1 codewords for the m1/n1 conversion, while for the m2/n2 conversions a plurality of m2 codewords are mapped to one n2. Therefore, any one bit error can cause error propagation between first datawords after decoding from the probability point of view whether the error is in n1 or n2. 
     In the data conversion method wherein an 8-bit first dataword is word-converted to a 12-bit second dataword which is further converted to a 15-bit codeword, the above coding method has the effect of reducing the possibility of error propagation that may occur between first datawords after decoding due to a single bit detection error in the encoded 15 bits. 
     Code conversion tables thus constructed are shown in FIGS. 11 to 26. The numbers given in FIGS. 11 to 26 represent binary digital signals in hexadecimal notation; &#34;0&#34; to &#34;F&#34; in the uppermost row each correspond to the four bits on the LSB side of a 12-bit input codeword, and &#34;00&#34; to &#34;FF&#34; in the leftmost column each correspond to the eight bits on the MSB side of a 12-bit input codeword, each row and column intersection &#34;XXXX&#34; forming the resulting 16-bit codeword. For example, when a 12-bit dataword &#34;15A&#34; is input, a codeword &#34;9539&#34; is obtained from the intersection between the row of &#34;15&#34; and the column of &#34;A&#34; (see FIG. 12). For a 12-bit input codeword (the second codeword), the resulting codeword consists of 16 bits, of which the MSB corresponds to a Q signal (&#34;1&#34; for a high level and &#34;0&#34; for a low level, representing the end level of an NRZI-modulated codeword when the MSB of the premodulation codeword is &#34;0&#34;), the 15th bit represented the CDS information (&#34;1&#34; for +1 and &#34;0&#34; for -1), and the remaining bits from the 14th bit to the LSB correspond to the bits from the 14th bit to the LSB of the 15-bit codeword to be NRZI-modulated. For the m/n (12/15) data conversion, the codeword output is selected as 16 bits because the codeword MSB control is performed by comparing the CDS information of the codeword to be converted with the end level of the previous NRZI-modulated codeword on the basis of a DSV control signal of 50% duty cycle derived by further dividing the data conversion rate signal. 
     FIG. 27 is a diagram showing an example of a circuit configuration implementing the first embodiment. The reference numeral 3 designates a clock generator circuit which generates, from a channel clock for transmitting a data-converted code, a symbol clock of fCH/10 for transmitting a first codeword (r), a clock (fMW/2) of fCH/30 (a value obtained by multiplying 24, the least common multiple of r and m, by n/m (10/8)) for word-converting the first dataword to the second dataword, a clock (fMW) for parallel-transmitting a converted n-bit codeword, and a DSV control signal (i) for determining the variation frequency of DSV. 
     The numeral 4 is a shift register constructed from three stages of flip-flops (F-F) for transmitting 8-bit first datawords in parallel at the symbol clock (fsym); 5 is a latch circuit that latches at the clock (fMW/2) the 24-bit parallel signal output from the Shift register 4; 6 is a selector for word-converting the first datawords of 3 bytes to two second datawords by using the clock (fMW/2) as a select switch; 7 is an encoder for data-converting each 12-bit dataword to a codeword selected from the tables shown in FIGS. 11 to 26; and 8 is an MSB controller for outputting the MSB of the codeword in accordance with the Q and CDS information supplied from the encoder 7 and the DSV control signal (i) supplied from the clock generator circuit 3, the MSB controller 8 having four EXOR circuits, A to D, and a one-word delay for delaying the end level of the previous NRZI-modulated codeword by one encoding cycle by using the clock (fMW). Further, the numeral 9 designates a parallel/serial converter for loading the encoded 15-bit parallel signal at the clock (fMW) and for converting the parallel signal to a serial signal which is transmitted at the channel clock (fCH), and the numeral 10 indicates an NRZI modulator for causing state inversion (high to low and low to high transitions) when signal &#34;1&#34; is input. 
     FIG. 28 is a timing diagram for explaining the operation of the circuit shown in FIG. 27. The reference signs (a) to (k), (m), (n), and (r) correspond to the respective points designated by the same signs appearing at the inputs/outputs of the respective circuit sections. 
     The operation of the circuit will now be described in detail. 8-bit first datawords (r) fed from an error-correcting circuit section are shifted at the symbol clock (fsym) into and along the shift register 4 and are output as a 3-byte or 24-bit parallel signal. The 24-bit parallel signal is latched by the latch circuit 5 at the clock (fMW/2) of three-symbol cycle. That is, three bytes of signals &#34;08&#34;, &#34;1A&#34;, and &#34;93&#34; are latched by the latch circuit 5 at the rising edge, between times 3 and 4, of the clock (fMW/2) shown in FIG. 28. Of the three bytes of parallel signals, the first byte (8 bits) is input to DH11-DH4 of the selector 6, and the four bits of &#34;1&#34; on the MSB side of the second byte are input to DH3-DH0 of the selector 6. Further, the last byte (8 bits) &#34;93&#34; is input to DL11-DL4 of the selector 6, and the four bits of &#34;A&#34; on the LSB side of the second byte are input to DH3-DH0, respectively. As a result, between time 4 and the first half of time 5 in FIG. 28, the selector 6 outputs a 12-bit parallel signal &#34;081&#34;. Between the second half of time 5 and time 6, the selector 6 outputs a 12-bit parallel signal &#34;93A&#34;. 
     With the above operation, the three 8-bit first datawords &#34;08&#34;, &#34;1A&#34;, and &#34;93&#34; are word-converted to two 12-bit second datawords, &#34;081&#34; and &#34;93A&#34;, by dividing the second byte of the first dataword into two and appending the respective halves to the LSBs of the first and third bytes of the first dataword. Likewise, the three bytes of the first dataword, &#34;41&#34;, &#34;DE&#34;, and &#34;F2&#34;, latched by the latch circuit 5 at the rising edge, between times 6 and 7, of the clock (fMW/2) in FIG. 28, are word-converted by the selector 6 to two second datawords &#34;41D&#34; and &#34;F2E&#34;. 
     Next, we will describe in detail the operation for converting the 12-bit second datawords to 15-bit codewords. For the convenience of explanation, it is assumed that, at time 4 in FIG. 28, the output Q&#39; of the one-word delay in the MSB controller 8 is low, and that the DSV value for the codeword sequence up to the converted second dataword immediately preceding &#34;081&#34; is 0. 
     In this condition, when the second dataword &#34;081&#34; is input to the encoder 7 during the period from time 4 to the first half of time 5, the encoder 7 outputs a signal, 8BC9, in accordance with the conversion tables shown in FIGS. 11 to 26, the signal having a total of 16 bits, i.e. a codeword formed from the LSB to the 14th bit and the CDS signal and Q signal, one bit each, associated with the codeword. To describe the contents of the signal, of the four bits &#34;1000&#34; corresponding to &#34;8&#34;, the MSB represents the Q signal, &#34;0&#34; for a low level and &#34;1&#34; for a high level. Further, of &#34;1000&#34; corresponding to &#34;8&#34;, the bit immediately preceding the MSB represents the CDS signal for the codeword, indicating CDS=-1 and a low level and &#34;1&#34; indicating CDS=+1 and a high level. The remaining two bits of the &#34;1000&#34; corresponding to &#34;8&#34;, plus the 12 bits &#34;BC9&#34;, a total of 14 bits, constitute the data-converted codeword which has 14 bits of &#34;00101111001001&#34; from the 14th bit to the LSB. 
     Of the signals thus created, the Q signal and the CDS signal are input, along with the DSV control signal (i), to the MSB controller 8 which then determines and outputs the MSB of the codeword in accordance with the operation hereinafter described. The DSV control signal (i) is set at &#34;1&#34; (high level) if the DSV is to be dispersed in the positive direction and at &#34;0&#34; (low level) if the DSV is to be dispersed in the negative direction. In the present embodiment, the DSV control signal is set at a high level for the duration of times 4, 5, and 6 and at a low level for the duration of times 7, 8, and 9, so that the CDS is controlled to give +1 for encoding the second datawords &#34;081&#34; and &#34;93A&#34; and -1 for encoding the second datawords &#34;41D&#34; and &#34;F2E&#34;. 
     The operation of the MSB controller 8 will now be described in detail. First, using the EXOR circuit A, it is checked whether the CDS value of the codeword currently output agrees with the direction in which the DSV is to be dispersed; if they agree, a 0 is output, and if they do not agree, a 1 is output, thereby making the CDS value of the codeword agree with the dispersing direction of the DSV. Note, however, that the above output condition is based on the assumption that encoding is performed with the start point of the codeword at a low level at the time of NRZI modulation. Also note that the MSB needs to be determined by referencing the Q&#39; signal (a 0 for a low level and a 1 for a high level) indicating the end level of the previous NRZI-modulated codeword. The output of the EXOR circuit A and the Q&#39; signal are both input to the EXOR circuit B, and when the Q&#39; signal is &#34;0&#34; (indicating that the NRZI-modulated word level at the end of the previous codeword is low), the output level of the EXOR circuit A appears unchanged at the output of the EXOR circuit B. On the other hand, when the Q&#39; signal is &#34;1&#34; (indicating that the NRZI-modulated word level at the end of the previous codeword is high), since the polarity of the CDS of the codeword is inverted after NRZI modulation, the output level of the EXOR circuit A appears inverted at the output of the EXOR circuit B, The output of the EXOR circuit B is supplied as the MSB of the codeword to the parallel/serial converter 9. 
     To describe the above operation as applied to the present embodiment, when the second dataword &#34;081&#34; is input to the encoder 7, the CDS signal output from the encoder 7 is &#34;0&#34;, and the DSV control signal (i) is at a high level (&#34;1&#34;) that causes the DSV to disperse in the positive direction, as can be seen from FIG. 28, so that the EXOR circuit A outputs a high level signal (&#34;1&#34;). At this time, the Q&#39; signal that indicates the end level of the previous NRZI-modulated codeword is at a low level (&#34;0&#34;), so that the EXOR circuit B outputs a as the MSB of the codeword. 
     As a result, a 15-bit parallel signal &#34;1001011101&#34; is loaded into the parallel/serial converter 9 in the middle of time 5 when the clock (fMW) goes low. The loaded bits are then output serially at the channel clock (fCH) from the parallel/serial converter 9 to form a code sequence with the MSB at the top of the sequence. The code sequence output from the parallel/serial converter 9 is fed to the NRZI modulator 10 where the polarity of the signal is inverted each time a &#34;1&#34; is input, the resulting signal being shown in FIG. 28(k). Here, with +1 as a high level and -1 as a low level, the CDS can be calculated as +1, which indicates that the DSV of the code sequence is in the positive dispersing direction. 
     With the above operation, the 12-bit dataword is data-converted to the 15-bit codeword in accordance with the DSV control signal, but it is further necessary to check the end level of the NRZI-modulated codeword, as previously described. This is accomplished by the following operation. 
     The Q signal from the encoder 7 and the MSB signal from the EXOR circuit B are input to the EXOR circuit C in the MSB controller 8. When the MSB is &#34;0&#34;, the Q signal appears unchanged at the output of the EXOR circuit C. On the other hand, when the MSB is &#34;1&#34;, the number of inversions that occur in the NRZI modulation increases by one as the number of 1s in the codeword increases by one, and therefore, the Q signal is inverted for output. During the NRZI modulation, the polarity is inverted between positive and negative in accordance with the level of the connected signal. Therefore, the output of the EXOR circuit C is input to the EXOR circuit D along with the Q&#39; signal indicating the word end level of the previous NRZI-modulated codeword, and when the Q&#39; signal is &#34;0&#34; (indicating the word end level after NRZI modulation is low), the output signal of the EXOR circuit C appears unchanged at the output of the EXOR circuit D. On the other hand, when the Q&#39; signal is &#34;1&#34; (indicating the word end level after NRZI modulation is high), the output of the EXOr circuit C is inverted through the EXOR circuit D. The output of the EXOR circuit D is supplied to the one-word delay as a signal indicating the end level of the NRZI-modulated codeword for the immediately following data conversion. 
     To describe the above operation as applied to the present embodiment, when the second dataword &#34;081&#34; is input to the encoder 7, the Q signal output from the encoder 7 is &#34;1&#34;, and the MSB output from the EXOR circuit B is also &#34;1&#34;, as can be seen from FIG. 28, so that the output of the EXOR circuit D is at a low level (&#34;0&#34;). At this time, the signal Q&#39; that indicates the end level of the previous NRZI-modulated codeword is at a low level (&#34;0&#34;), and therefore, the EXOR circuit D outputs a signal &#34;0&#34; indicating that the end level of the NRZI-modulated codeword is low, the signal &#34;0&#34; being input at the clock (fMW) to the one-word delay through which the signal is delayed by one encoding cycle. By repeating the above operation for every m/n data conversion with one word delay at each time, the end level of each codeword can be checked correctly for continuous sequences of codewords. 
     As described above, the data that has been word-converted by the selector 6 from 8-bit first datawords to 12-bit second datawords is converted by the encoder 7 to a 16-bit codeword, which is further converted by the MSB controller 8 to a 15-bit codeword, capable of determining the dispersing direction of the DSV as desired by the DSV control signal (i), by converting the two bits on the MSB side of the 16-bit codeword to a one-bit signal that determines the polarity of the CDS. Likewise, subsequent second datawords &#34;93A&#34;, &#34;41D&#34;, and &#34;F2E&#34; ar respectively input to the encoder 7 and converted to the signal shown in FIG. 28(j), with their CDSs being controlled in accordance with the DSV control signal (i). As a result, the DSV value at the codeword end obtained at the output of the NRZI modulator 10 has a variation width p-p2 over four data conversion cycles as shown in FIG. 28(k), the resulting signal thus being made to synchronize with the DSV control signal. 
     The power spectrum of the digital signal is dependent on the state transition probability, and by keeping the DSV variation cycle at a constant value, the state transition occurring at the DSV variation cycle becomes high, thus making is possible to obtain a spectrum having high power at frequencies corresponding to the DSV variation cycle. In the present embodiment, the cycle of the DSV control signal is selected to be equal to four m/n data conversion cycles. However, if the signal cycle is set equal to about 10 data conversion cycles, it will be possible to obtain a relatively low frequency signal corresponding to the DSV variation cycle synchronized with the digital data, and such a low frequency signal can be used as a tracking pilot signal that will become necessary when the track width is reduced. FIG. 29 is a diagram illustrating the power spectrum obtained when first datawords constructed from 8-bit m-sequence random signals expressed as X 23  +X 5  +1 are input in a circuit constructed in accordance with the first embodiment but with the cycle of the DSV control signal set equal to ten m/n data conversion cycles. As can be seen from FIG. 29, the resulting spectrum has no DC content (DC-free) and, at the same time, exhibits high power only at frequencies corresponding to the cycle of the DSV control signal. 
     We will now describe a digital magnetic recording/reproducing apparatus that can be constructed into a system optimized for the above-described data conversion method. 
     Digital magnetic recording/reproducing apparatus such as DAT, digital VTR, etc. have the characteristic of being insusceptible to system variation in the sense that degradation in the signal-to-noise ratio does not lead to degradation in the audio and video reproduction performance as long as 1s and 0s can be distinguished. On the other hand, there is some danger with such digital apparatus that only a single bit error in a large volume of information may entirely change the contents of the information. Therefore, in digital magnetic recording/reproducing apparatus, it is essential to employ error-correcting codes for correction of errors caused on the transmission channel. Usually, error-correcting codewords are recorded in error-correcting code blocks separated from one another by a synchronizing signal as shown in FIG. 30. In FIG. 30, the numeral 21 is the synchronizing signal for separating one error-correcting code block from another, 22 is an ID signal for the block identified by the track number or the synchronizing signal, 23 is a parity-check codeword for checking whether the ID signal is correctly reproduced, 24 is an audio/video sector, and 25 is an error-correcting code. Rotary head type digital magnetic recording/reproducing apparatus usually have about 100 such block per track, each block being separated by the synchronizing signal. 
     The following description deals with a method of setting the amount of information for each block. 
     The synchronizing signal 21 serves not only as a signal for separating each error-correcting code block but also as a signal for executing word synchronization for decoding the codeword, encoded and recorded as previously described, into the original dataword. The synchronizing signal thus has a very important role, and therefore, a unique signal that does not usually appear in the recorded signal sequences is often used as the synchronizing signal. This unique signal can only be obtained by reconverting the data-converted codeword. According to the data conversion method of the first embodiment in which 8-bit first datawords are first converted to 12-bit second datawords and then converted to 15-bit codewords, the synchronizing signal length corresponds to 1.5 bytes in the original first datawords. Therefore, if the synchronizing signal sector is constructed from one-byte synchronizing signal data plus 0.5 byte obtained by dividing the first dataword, these components would become separated at the time of decoding, so that he 0.5 byte in the synchronizing signal sector would cause a fixed error and therefore, the one byte data immediately following the synchronizing signal data would also cause a fixed error. This problem may be solved by inserting a dummy dataword of one byte immediately following the first dataword (which may be formed from a fixed pattern) used for the synchronizing signal. 
     However, it is not advantageous in terms of space utilization to add a dummy dataword in a limited package. Therefore, in the recording/reproducing apparatus employing the data conversion method of the first embodiment, the first dataword used for the synchronizing signal is constructed from a fixed pattern of one byte, and the immediately following first dataword is constructed rom a fixed pattern of four bits on the MSB side and data (e.g., a cue signal, track address, etc.) of four or less bits on the LSB side. Ordinary 8-bit datawords are mapped starting with the first dataword of the third byte. The pattern of the synchronizing signal sector may be set in any pattern suitable for the reconversion performed after ordinary data conversion. 
     We will now describe a method of setting the number of first datawords for each block separated by the synchronizing signal. According to the data conversion method of the first embodiment, r-bit first datawords are first word-converted to m-bit second datawords and then data-converted to n-bit codewords. This requires word synchronization for every x bits, where x is the least common multiple of r and m. For example, in the present embodiment, r=8 and m=12, and hence the least common multiple is 24 bits, so that the first codewords are word-synchronized for every three bytes. Since word synchronization is performed for every three bytes in each block, as described above, if the number of first datawords in the block is not an integral multiple of 3, the first dataword remaining after dividing the number by 3 will cause a fixed error. Therefore, in the recording/reproducing apparatus employing the data conversion method of the first embodiment, the number of first datawords per block is selected to be equal to an integral multiple of x/r. 
     The following describes a method of converting the reproduced 15-bit codeword back to the original 12-bit second dataword in the recording/reproducing apparatus employing the above-described data conversion method. 
     FIG. 32 is a diagram illustrating an example of a circuit configuration for decoding the reproduced 15-bit codeword into the original 12-bit second dataword (m), employed in the recording/reproducing apparatus using the data conversion method of the first embodiment. In FIG. 32, the reference numeral 11 is an NRZI demodulator for NRZI-demodulating the reproduction signal transmitted by a reproduction channel clock; 12 is a serial/parallel converter for converting the NRZI-demodulated serial signal, fed from the NRZI demodulator 11, to a 15-bit parallel signal by using a reproduction word clock which is word-synchronized by a synchronizing signal appended to the top of each block; 13 is a first decoder for accepting at its input the 10 bits n1 on the MSB side of the 15-bit codeword (n) output from the serial/parallel converter 12 and for decoding the n1 into a dataword that forms the eight bits on the MSB side of the second dataword; and 14 is a second decoder for accepting at its input the five bits n2 on the LSB side of the 15-bit codeword (n) output from the serial/parallel converter 12 and for decoding the n2 into a dataword that forms the four bits on the LSB side of the second dataword. The numeral 15 designates a third decoder for decoding the 15-bit codeword, output from the serial/parallel converter 12, into 12-bit decoded data. The third decoder 15 is constructed to perform one-to-one decoding when the five bits on the LSB side is of a prescribed type. 
     Furthermore, the reference numeral 16 indicates an LSB discriminating circuit which accepts at its input the five bits on the LSB side of the 15-bit codeword output from the serial/parallel converter 12, and which discriminates the type of the codeword and outputs a control signal (o) designating the classification type; and 17 refers to a selector which selects either the 12-bit dataword having decoded data from the first decoder 13 and the second decoder 14 or the 12-bit dataword from the third decoder 15 by using the control signal supplied from the LSB discriminating circuit 17 as a select SW, and which generates the second dataword (m) after decoding. 
     The operation of this embodiment will now be described. The reproduction signal is NRZI-demodulated by the NRZI demodulator 11 and fed to the serial/parallel converter 12 through which the demodulated serial signal is converted to a 15-bit codeword (n). Of the 15 bits in the codeword (n), the 10 bits n1 on the MSB side are entered to the first demodulator 13, and the five bits n2 on the LSB side are fed to the second demodulator 14 as well as to the LSB discriminating circuit 16. On the other hand, all the 15 bits of the codeword (n) are loaded directly into the third demodulator 15. 
     We will now describe in detail the operation of decoders for decoding the 15-bit codeword back into the 12-bit second dataword. From FIGS. 8 to 10, the five-bit codeword n2 on the LSB side of the 15-bit codeword can be classified in relation to the demodulated 4-bit dataword M2, as shown in FIG. 33. The codewords classified as the first LSB code group n FIG. 33 correspond to the LSB codewords n2 in the first and second coding groups in FIGS. 8 and 9 as well as in the first n1 group for m1=&#34;BB&#34; to &#34;E7&#34; in the third coding group in FIG. 10, and each n1 in the N1 group is related to one decoding data m1 within the limits of the first LSB code group. Further, the codewords classified as the second LSB code group correspond to the LSB codewords classified as the second n1 group in the third coding group as well as the fourth n1 group for m1=&#34;EE&#34; to &#34;FF&#34; in the same coding group. The codewords classified as the third LSB code group correspond to the LSB codewords classified as the third n1 group, while the codewords classified as the fourth LSB code group correspond to the LSB codewords in the n1 group for m1=&#34;E8&#34; to &#34;FF&#34;. Note, however, that the N1 group in the second to the fourth LSB code groups overlaps with the N1 group in the first LSB code group, and that, in some cases, a plurality of M2 are mapped to one LSB codeword n2. 
     Now, the first decoder 13 decodes the 10 bits on the MSB side into an eight-bit dataword. In this case; the top bit in the 10-bit codeword is a control bit for controlling the DSV during demodulation and may therefore be disregarded at the time of decoding. Thus, the remaining nine bits are decoded. The decoding is performed on the codewords in the first and second coding groups in FIGS. 8 and 9 as well as in the first n1 group for m1=&#34;BB&#34; to &#34;E7&#34; in the third coding group in FIG. 10, and the decoded 8-bit dataword is applied to V11-V4 on the selector 17 as data representing the eight bits on the MSB side of the second dataword. On the other hand, the second decoder 14 decodes the five bits on the LSB side into a four-bit dataword. In this case, the decoding is performed on the codeword n2 in the first LSB code group. The decoded 4-bit dataword is applied to V3-V0 on the selector 17 as data representing the four bits on the LSB side of the second dataword. The third decoder 15 decodes the input 15-bit codeword into a 12-bit dataword. In this case also, the top bit on the MSB side is excluded, as in the case of the first decoder 13, and the remaining 14 bits are decoded. The decoding is performed only when the five-bit LSB codeword falls in one of the second to the fourth LSB code groups, and the decoded 12-bit dataword is applied to W11-W0 on the selector 17. 
     The selector 17 is switched to select either the dataword supplied from the first decoder 13 and second decoder 14 or the dataword supplied from the third decoder 15, and outputs the selected dataword as the decoded second dataword; the switching of the selector 17 is controlled by a control signal supplied from the LSB discriminating circuit 16. Of the 15 bits in the codeword, the five bits n2 on the LSB side are input to the LSB discriminating circuit 16 to discriminate the type of the LSB codeword. For example, if the LSB codeword n2 is a codeword discriminated as belonging to one of the second to the fourth LSB code groups, the LSB discriminating circuit 16 outputs a control signal (o) indicating the discriminated type and applies it to the select SW on the selector 17. When no control signal (o) is received, the selector 17 selects the eight-bit MSB dataword V11-V4 supplied from the first decoder 13 and the four-bit LSB dataword V3-V0 supplied from the second decoder 14 and outputs the resulting 12-bit dataword V. On the other hand, when the control signal (o) is received, the selector 17 is switched to select the 12-bit dataword W decoded by the third decoder 15. 
     Thus, the selector 17 outputs the 12-bit dataword m obtained by reconverting the codeword that was encoded in accordance with the tables shown in FIGS. 8 to 10. As described, the 15-bit codeword is decoded on a one-to-one basis to the 12-bit dataword only when the five-bit LSB codeword is decoded by dividing it into 10 bits on the MSB side and 5 bits on the LSB side. This construction serves to reduce the possibility of the error propagation that may occur between decoded first datawords due to a single bit detection error in the 15-bit codeword. 
     In the above decoding method, the discrimination of the five-bit LSB codeword is determined by which of the two major groups, the first LSB code group or the second to fourth LSB code group, the LSB codeword belongs to. However, in an alternative method, the types of codeword may be classified into three major groups, for example, the first LSB code group, the second LSB code group, and the third/fourth LSB code group, and four decoders, i.e. the first to the fourth decoders, may be provided, the outputs of these decoders being selected accordingly by using a control signal from the LSB discriminating circuit. Such configuration may somewhat increase the circuit complexity compared to that of the above embodiment, but will serve to further reduce the possibility of error propagation between decoded first datawords. 
     Thus, according to the first embodiment, eight-bit first datawords are first word-converted to 12-bit second datawords, and then, the 12-bit second datawords are converted to 15-bit codewords, each having bits of CDS=+1 or -1, by executing word-synchronization for every two second datawords, which is the least common multiple of the first and second datawords. In the conversion process, the first byte of the first dataword is mapped to the eight bits on the MSB side of the first of the two second datawords, and the four bits on the MSB side of the second byte of the first dataword are mapped to the four bits on the LSB side of the first of the two second datawords. For the second of the two second datawords, the third byte of the first dataword is mapped to the eight bits on the MSB side, while the four bits on the LSB side of the second byte of the first dataword are mapped to the four bits on the LSB side of the second of the two second datawords, thus accomplishing the 8/12 word-conversion. Thereafter, each 12-bit dataword is converted to a 15-bit codeword (12/15 data conversion). This encoding method permits the 8/10 encoding of non-divided first datawords and the 4/5 encoding of divided first datawords, which serves to reduce the possibility of the error propagation that may occur, due to a single bit error in the codeword, between first datawords during reverse conversion at the time of decoding. Furthermore, when this data conversion method is applied to a recording/reproducing apparatus, it is possible to construct a system capable of efficient recording of data without requiring redundant bits, the system being constructed such that the number of first datawords for each block separated by a synchronizing signal is set at a multiple of r/x and that the first dataword as the synchronizing signal at the beginning of the block is formed from a fixed pattern and the immediately following first dataword is formed from a fixed pattern of four bits on the MSB side and data of four or less bits (e.g., cue signal, track address, etc.) on the LSB side. 
     On the other hands when decoding the 15-bit codeword into the 12-bit second dataword, the 15-bit codeword is divided into 10 bits on the MSB side and five bits on the LSB side, and the 10 bits are decoded into eight bits by the first decoder and the five bits are decoded into four bits by the second decoder, while the 15 bits are decoded into 12 bits by the third decoder. The discriminating circuit discriminates the type of the five bits on the LSB side of the 15-bit codeword and outputs a control signal indicating the discriminated type, on the basis of which the decoded data from the decoders are selected to reconstruct the second dataword. Thus, the codeword is decoded by reverse conversion of 10/8 and 5/4, except when the LSB codeword falls under specific conditions. This has the effect of reducing the possibility of the error propagation that may occur between decoded first datawords due to a detection error in the codeword. 
     Embodiment 2 
     A second embodiment of the invention will now be described below. Suppose a code of dataword length=12 and codeword length=14 with one bit added to form a code with Tmax/Tmin=5. Here, let d=0 and k=4. The NRZI(F) rule is used to construct the code. To satisfy K=4 in each codeword, the number of successive 0s in the codeword is limited to 4, and since one bit is inserted between codewords, the number of successive 0s is limited to 2 on the MSB side and 1 on the LSB side. 
     To form a DC-free code, 4096 pairs of codewords, each pair having codewords of different CDS polarities, should be provided. There are 2481 codewords with CDS=0, 2169 codewords with CDS=+2, and 1888 codewords with CDS=-2, which satisfy the above conditions. Hence, 2481 codewords with CDS=0 and 1615 pairs of codewords with CDS=±2, which differ only in MSB, are used to suppress the dispersion of DSV to achieve DC-free modulation. Code conversion tables thus constructed are shown in FIGS. 34 to 49. The data given in FIGS. 34 to 49 represent binary digital signals in hexadecimal notation. For every 12-bit input data (dataword), there are output a total of 16 bits, i.e. a 14-bit codeword, one-bit data (hereinafter represented by Q) indicating the number of inversions performed on the NRZI-modulated codeword, and the CDS (a zero or nonzero bit) of the codeword. 
     FIG. 50 is a diagram illustrating an example of a circuit configuration implementing the second embodiment. In FIG. 50, the reference numeral 33 is an encoder for converting 12-bit digital data (dataword) to 16-bit digital data shown in FIGS. 34 to 49; 34 and 36 are NOT gates; 35, 37, 38, and 39 are EXOR gates; 40, 42, and 48 are flip-flops; 41 and 46 are selectors; 43 is a parallel/serial converter for converting 14-bit or 15-bit parallel data to a serial data sequence; 44 is a counter; 45 is a four-input NAND gate; and 47 is an NRZI modulator for processing the codeword, converted to serial data, so that the signal polarity is inverted each time a 1 is input. 
     FIG. 51 shows a code select table used to determine a code to be selected in accordance with the current and the previous DSV control signal values, the CDS value of the codeword just selected, and the previous Q&#39; signal. 
     FIG. 52 is a diagram illustrating code conversion and DSV value variation according to the second embodiment. In FIG. 52, (a) is a pilot signal (write at &#34;1&#34;), (b) is a DSV control signal (positive direction at &#34;1&#34;), (c) is input data (12 bits), (d) is a code select signal Q&#39;, (e) is a selected codeword, (f) is a signal waveform to be recorded, and (g) is a DSV value at the end of each codeword. 
     FIG. 53 is a diagram illustrating the recording format of a magnetic recording/reproducing apparatus according to the second embodiment. In FIG. 53, subcode signals, etc. are recorded in the subdata areas (SUB1, SUB2), and video and audio signals are recorded in the main data area (MAIN). Pilot signals are recorded in the subdata areas (SUB1, SUB2). 
     The circuit operation of the second embodiment will now be described below with reference to FIG. 50. 
     First, when the pilot area signal output from the flip-flop 48 is &#34;0&#34;, i.e. when data other than that for the subdata area is to be encoded for recording, 12-bit data is input to the encoder 33 where the 12-bit data is converted to a 14-bit codeword (parallel) by using the code select signal Q&#39; supplied from the flip-flop 42. The resulting 14-bit codeword is supplied to the parallel/serial converter 42. The encoder 33 also outputs a Q signal which is supplied to the selector 41. On the other hand, the selector 46 selects &#34;10&#34; by the input pilot area signal &#34;0&#34;, which sets the load value of the counter 14 to &#34;0010&#34;, and the counter 14 outputs a load CLK of one CLK width to the parallel/serial converter 43 for every 14 CH-CLKs. The parallel/serial converter 43 converts the input 14-bit parallel codeword to serial data which is fed to the NRZI modulator 47. At this time, the output of the NOT gate 34, i.e. the LSB, is input to the parallel/serial converter 43, but since a load CLK is input for every 14 CH-CLKs, the LSB is not output from the parallel/serial converter 43. The serial codeword input to the NRZI modulator 47 is NRZI-modulated for output. The Q signal output from the encoder 33 is input to the selector 41 which selects the Q signal by the pilot area signal and supplies it to the flip-flop 42. 
     On the other hand, when the pilot area signal output from the flip-flop 48 is &#34;1&#34;, i.e. when data for the subdata area is to be encoded for recording, 12-bit data is input to the encoder 33 which converts the 12-bit data to a 14-bit codeword (parallel) by using the code select signal Q&#39; supplied from the flip-flop 42. The resulting 14-bit codeword is supplied to the parallel/serial converter 43. The encoder 33 also supplies a Q signal to the selector 41 and the NOT gate 34, and a CDS signal to the EXOR gate 35. The selector 46 selects &#34;01&#34; by the input pilot area signal &#34;1&#34;, which sets the load value of the counter 14 to &#34;0001&#34;, and the counter 14 supplies a load CLK of one CLK width to the parallel/serial converter 43 for every 15 CH-CLKs. The parallel/serial converter 43 converts the input 14-bit parallel codeword and LSB to serial data which is supplied to the NRZI modulator 47. The serial codeword input to the NRZI modulator 47 is NRZI-modulated for output. The DSV control signal is input to the flip-flop 40 and the EXOR gate 39, the output of the flip-flop 40 being coupled to the other input of the EXOR gate 39. The output of the EXOR gate 39, i.e. the exclusive OR sum of the current DSV control signal and the previous DSV control signal, is supplied to one input of the EXOR gate 38. The EXOR gate 35 EXORs the CDS signal output from the encoder 33 with the Q&#39; signal. The output of the EXOR gate 35 is inverted through the NOT gate 36 and applied to one input of the EXOR gate 37. The EXOR gate 37 EXORs the output of the NOT gate 36 with the Q&#39; signal and supplies the result to the other input of the EXOR gate 38. The EXOR gate 38 EXORs the outputs of the EXOR gates 37 and 39 and supplies the result to the other input of the selector 41. In this manner, the signal selected in accordance with the codeword select table is output as the Q&#34; signal. The Q&#34; signal is selected by the pilot area signal and is fed to the flip-flop 42 to form a code select signal Q&#39; for the next coding. 
     Suppose, for example, that the pilot area signal is &#34;0&#34;, the input data is &#34;3FF&#34;, the previous polarity is &#34;1&#34;, and the Q&#39; signal is &#34;0&#34;. In this case, the 14-bit codeword output from the encoder 33 is &#34;11001000010111&#34;; the CDS is -2 and the DSV is also -2. As a result, the Q signal &#34;0&#34; is output. Next, when data &#34;200&#34; is input, since the Q&#39; signal, i.e. the previous Q signal, is &#34;0&#34;, the selected codeword is &#34;01110011011010&#34;; the CDS is +2 and the DSV is 0. Next, when the pilot area signal and the DSV control signal both go to a &#34;1&#34; and data &#34;E11&#34; is input, since the Q&#39; signal is &#34;1&#34;, the output codeword is &#34;11010111010101&#34;, and a Q signal of &#34;0&#34; and a CDS signal of &#34;0&#34; are output; CDS and DSV are both 0. When data &#34;715&#34; is input, since the Q&#39; signal is &#34;1&#34;, the selected codeword is &#34;00101111101001&#34; and the LSB is &#34;0&#34;; CDS and DSV are both +1. Next, when data &#34;BFC&#34; is input, since the Q&#39; signal is &#34;1&#34;, the selected codeword is &#34;10100111101110&#34; and the LSB is &#34;1&#34;; CDS is +1 and DSV is +2. The above operation is repeated for the subdata areas where the pilot area signal is &#34;1&#34;, thereby achieving a modulation method in which the DSV varies at the cycle of the DSV control signal. 
     Using the above-described modulation method, a tracking servo pilot signal is recorded at two places within one track. Therefore, in the subdata areas (SUB1, SUB2), one LSB bit is added to the 14-bit codeword to form a 15-bit codeword, as described previously, and modulation is performed on the codeword including the pilot signal, while for other areas, the 14-bit codeword is directly modulated. 
     According to the format shown in FIG. 53, two subdata areas are provided within one track, and the pilot signals are recorded in these areas. Alternatively, three or more pilot signal recording areas may be provided within one track in order to enhance the tracking accuracy with a narrower track. It will also be appreciated that the pilot signal may be recorded in any portion within the subdata areas. 
     As described, according to the second embodiment, 12-bit datawords are each converted to a 14-bit codeword which, after NRZI modulation, has a succession of the same level, more than one bit long and five bits at maximum, and provides CDS=0, +2 or -2, the CDS value being controlled to suppress the dispersion of DSV, thus accomplishing a DC-free modulation method. Furthermore, in areas where pilot signals are recorded, one bit is added to the 14-bit codeword to form codewords of CDS=±1, and the modulation is performed so that the DSV varies in synchronism with the DSV control signal to produce a tracking control pilot signal. This eliminates the need for ATF areas, the areas where only tracking control signals are recorded. Moreover, since one bit is added to the codeword and the pilot signal is recorded in a restricted area, it is not necessary to substantially raise the recording rate, and therefore, high density recording is achieved. Furthermore, since the modulation method is basically the same for both the pilot signal areas and other areas, the configuration does not involve any appreciable increase in the circuit complexity. 
     A third embodiment of the invention will now be described below. Suppose a code of dataword length=8 and codeword length=10 with one bit added to form a code with Tmax/Tmin=4. Here, let d=0 and k=3, where d is the minimum number of 0s between an arbitrary 1 and the next 1, and k is the maximum number of 0s between an arbitrary 1 and the next 1. The NRZI(F) rule is used to construct the code. To satisfy k=3 in each codeword, the number of successive 0s in the codeword is limited to 3, and since one bit is inserted between codewords, the number of successive 0s is limited 1 on the MSB side and the LSB side. 
     To form a DC-free code, 256 pairs of codewords, each pair having codewords of different CDS polarities, should be provided. There are 163 codewords with CDS=0, 140 codewords with CDS=+2, and 95 codewords with CDS=-2, which satisfy the above conditions. Hence, 163 codewords with CDS=0 and 93 pairs of codewords with CDS=+2 are used to suppress the dispersion of DSV to achieve DC-free modulation. Code conversion tables thus constructed are shown in FIGS. 56 to 61. The data given in FIGS. 56 to 61 represent binary digital signals in hexadecimal notation. For every 8-bit input data (dataword), there are output a total of 12 bits, i.e. a 10-bit codeword, one-bit data (hereinafter represented by Q) indicating the number of inversions performed on the NRZI-modulated codeword, and the CDS (a zero or nonzero bit) of the codeword. 
     FIG. 55 is a diagram illustrating an example of a circuit configuration implementing this embodiment of the present invention. In FIG. 55, the reference numeral 33 is an encoder for converting 8-bit digital data (dataword) to 12-bit digital data shown in FIGS. 56 to 61; elements 34 and 36 are NOT gates; elements 35, 37, 38, and 39 are EXOR gates; elements 40, 42, and 48 are flip-flops; elements 41 and 46 are selectors; element 43 is a parallel/serial converter for converting 10-bit or 11-bit parallel data to a serial data sequence; element 44 is a counter; element 45 is a four-input NAND gate; and element 47 is an NRZI modulator for processing the codeword, converted to serial data, so that the signal polarity is inverted each time a 1 is input. The code select table of FIG. 51 is also used to determine a code to be selected in accordance with the current and the previous DSV control signal values, the CDS value of the codeword just selected, and the previous Q&#39; signal. FIGS. 56 to 61 are code conversion tables. FIG. 62 including FIGS. 62(A) and 62(B) are diagrams illustrating code conversion and DSV value variation according to the embodiment of the invention. In FIG. 62(A), (a) is a pilot signal (write at &#34;1&#34;), (b) is a DSV control signal (positive direction at &#34;1&#34;), (c) is input data (12 bits), (d) is a code select signal Q&#39;, (e) is a selected codeword, &#34;f&#34; is a signal waveform to be recorded, and (g) is a DSV value at the end of each codeword. The diagram of FIG. 53 also illustrates the recording format of a magnetic recording/reproducing apparatus according to this embodiment of the invention. In FIG. 53, subcode signals; etc. are recorded in the subdata areas (SUB1, SUB2), and video and audio signals are recorded in the main data area (MAIN). Pilot signals are recorded in the subdata areas (SUB1, SUB2). 
     The circuit operation of this embodiment will now be described below with reference to FIG. 55. 
     First, when the pilot area signal output from the flip-flop 48 is &#34;0&#34;, i.e. when data other than that for the subdata area is to be encoded for recording, 8-bit data is input to the encoder 33 where the 8-bit data is converted to a 10-bit codeword (parallel) by using the code select signal Q&#39; supplied from the flip-flop 42. The resulting 10-bit codeword is supplied to the parallel/serial converter 43. The encoder 33 also outputs a Q signal which is supplied to the selector 41. On the other hand, the selector 46 selects &#34;110&#34; by the input pilot area signal &#34;0&#34;, which sets the load value of the counter 44 to &#34;0110&#34;, and the counter 44 outputs a load CLK of one CLK width to the parallel/serial converter 43 for every 10 CH-CLKs. The parallel/serial converter 43 converts the input 10-bit parallel codeword to serial data which is fed to the NRZI modulator 47. At this time, the output of the NOT gate 34, i.e. the LSB, is input to the parallel/serial converter 43, but since a load CLK is input for every 10 CH-CLKs, the LSB is not output from the parallel/serial converter 43. The serial codeword input to the NRZI modulator 47 is NRZI-modulated for output. The Q signal output from the encoder 33 is input to the selector 41 which selects the Q signal by the pilot area signal and supplies it to he flip-flop 42. 
     On the other hand, when the pilot area signal output from the flip-flop 48 is &#34;1&#34;; i.e. when data for the subdata area is to be encoded for recording, 8-bit data is input to the encoder 33 which converts the 8-bit data to a 14-bit codeword (parallel) by using the code select signal Q&#39; supplied form the flip-flop 42. The resulting 10-bit codeword is supplied to the parallel/serial converter 43. The encoder 3 also supplies a Q signal to the selector 41 and the NOT gate 34, and a CDS signal to the EXOR gate 35. The selector 46 selects &#34;101&#34; by the input pilot area signal &#34;1&#34;, which sets the load value of the counter 44 to &#34;0001&#34;, and the counter 44 supplies a load CLK of one CLK width to the parallel/serial converter 43 for every 11 CH-CLKs. The parallel/serial converter 43 converts the input 10-bit parallel codeword and LSB to serial data which is supplied to the NRZI modulator 47. The serial codeword input to the NRZI modulator 47 is NRZI-modulated for output. The DSV control signal is input to the flip-flop 40 and the EXOR gate 39, the output of the flip-flop 40 being coupled to the other input of the EXOR gate 39. The output of the EXOR gate 39, i.e. the exclusive OR sum of the current signal, is supplied to one input of the EXOR gate 38. The EXOR gate 35 EXORs the CDS signal output from the encoder 33 with the Q&#39; signal. The output of the EXOR gate 35 is inverted through the NOT gate 36 and applied to one input of the EXOR gate 37. The EXOR gate 37 EXORs the output of the NOT gate 36 with the Q&#39; signal and supplies the result to the other input of the EXOR age 38. The EXOR gate 38 EXORs the outputs of the EXOR gates 37 and 39 and supplies the result to the other input of the selector 41. In this manner, the signal selected in accordance with the codeword select table shown in FIG. 2 is output as a Q&#34; signal. The Q&#34; signal is selected by the pilot area signal and is fed to the flip-flop 42 to form a code select signal Q&#39; for the next coding. 
     Suppose, for example as shown in FIG. 62(a), that the pilot area signal is &#34;0&#34;, the input data is &#34;7F&#34;, the previous polarity is &#34;0&#34;, and the Q&#39; signal is &#34;0&#34;. In this case, the 10-bit codeword output from the encoder 33 is &#34;1110010101&#34;; the CDS is +2 and the DSV is also +2. As a result the Q signal &#34;1&#34; is output. next, when data &#34;00&#34; is input, since the Q&#39; signal, i.e. the previous Q signal, is &#34;1&#34;, the selected codeword is &#34;0100010001&#34;; the CDS is 0 and the DSV is +2. Next, when the pilot area signal and the DSV control signal both go to a &#34;1&#34; and data &#34;51&#34; is input, since the Q&#39; signal is &#34;0&#34;, the output codeword is &#34;1010010011&#34;, and a Q signal of &#34;0&#34; and a CDS signal of &#34;0&#34; are output; CDS is -2 and DSV is 0. When data &#34;15&#34; is input, since the Q&#39; signal is &#34;0&#34;, the selected codeword is &#34;0101101001&#34; and the LSB is &#34;0&#34;; CDS and DSV are both +1. Next, when data &#34;8C&#34; is input, since the Q&#39; signal is &#34;1&#34;, the selected codeword is &#34;1110100011&#34; and the LSB is &#34;1&#34;; CDS is +1 and DSV is +2. The above operation is repeated for the subdata areas where the pilot area signal is &#34;1&#34;, thereby achieving a modulation method in which the DSV varies at the cycle of the DSV control signal. 
     Using the above-described modulation method, a tracking servo pilot signal is recorded at two places within one track. 
     Therefore, in the subdata areas (SUB1, SUB2), one LSB bit is added to the 10-bit codeword to form a 11-bit codeword, as described previously, and modulation is performed on the codeword including the pilot signal, while for other areas, the 10-bit codeword is directly modulated. 
     According to the format shown in FIG. 10, two subdata areas are provided within one track, and the pilot signals is recorded in these areas. 
     Alternatively, three or more pilot signal recording areas may be provided within one track in order to enhance the tracking accuracy with a narrower track. It will also be appreciated that the pilot signal may be recorded in any portion within the subdata areas. 
     As described, according to the present invention, 8-bit datawords are each converted to a 10-bit codeword which, after NRZI modulation, has a succession of the same level, more than one bit long and four bits at maximum, and provides CDS=0, +2 or -2, the CDS value being controlled to suppress the dispersion of DSV, thus accomplishing a DC-free modulation method. Furthermore, in areas where pilot signals are recorded, one bit is added to the 10-bit codeword to form codewords of CDS=1, and the modulation is performed so that the DSV varies in synchronism with the DSV control signal to produce a tracking control pilot signal. This eliminates the need for ATF areas, the areas where only tracking control signals are recorded. Moreover, since one bit is added to the codeword and the pilot signal is recorded in a restricted area, it is not necessary to substantially raise the recording rate, and therefore, high density recording is achieved. Furthermore, since the modulation method is basically the same for both the pilot signal areas and other areas, the configuration does not involve any appreciable increase in the circuit complexity. 
     A fourth embodiment of the invention will be described below with reference to drawing FIGS. 63-66. 
     FIG. 63 including FIG. 63(a) and 63(b) are a block diagrams showing the configuration of recording/reproducing circuitry in a magnetic recording/reproducing apparatus according to another aspect of the invention. In the figure, the reference numerals 51 and 52 are A/D converters for quantizing a video signal and an audio signal input thereto; 53 and 4 are data compression circuits for performing band compression on the quantized video data and audio data by DCT or other methods; 55 is a memory; 56 is an error-correcting code appending circuit; 57 is a digital signal processing circuit, constructed from the memory 55 and error-correcting code appending circuit 56, for selecting and encoding the band-compressed video and audio data as well as sub data containing additional function information, etc. supplied from a system controller, shuffling the data in memory space in accordance with the block structures that match the data rates of the respective data, and for appending error-correcting codes for output; 58 is a modulator for modulating the respective data with the respective error-correcting code appended thereto into respective recording signals; 59 is a SYNC appending circuit for discriminating the received recording signals between video, audio, and subcode, and appending at the head of each block a synchronizing signal unique to the block for separating one block from another; 60 is a recording amplifier; 61 is a record/playback selector switch; 62 is a rotary head; 63 is a playback amplifier; 64 is an waveform equalizer for performing waveform equalization on the amplified playback signal to deal with intersymbol interference, etc.; 65 is a data detector for detecting data by performing integrating detection, etc. on the waveform-equalized signal; 67 is a PLL circuit for generating playback clock pulses from the detected signal; 66 is a serial/parallel converter for sampling the data detected by the data detector 65 in synchronism with the playback clock pulses and thereby converting it into 8-bit parallel data; 68 is a demodulator for demodulating the parallel data; 71 is an error-detection/correction circuit; 72 is a memory; 73 is a digital signal processing circuit, constructed from the error-detection/correction circuit 71 and the memory 72, for performing error detection and correction on the data demodulated by the demodulator 68, and for deshuffling the data and converting it into decoded data; 69 is a SYNC detector for detecting a SYNC pattern from the parallel data and for generating a detection pulse; 70 is a SYNC protection circuit for discriminating between different SYNC signals by the detection pulse and thereby effecting synchronization protection for each specific SYNC signal; 74 and 85 are data expansion circuits for converting the band-compressed video and audio playback data back to the data of original bandwidths; 76 and 77 are D/A converters for converting the expanded video and audio playback data into respective analog playback signals; and 78 is the system controller which is responsible for the entire system control of the VTR, and which, in the illustrated configuration, performs signal processing such as additional function information processing. 
     FIG. 64 is a diagram illustrating the block structures of the signals processed in the magnetic recording/reproducing apparatus according to the invention. In the figure, (a) shows the code structure for the respective data recorded on one track, and (b), (c), and (d) show the C1 code block structures for video data, audio data, and subcode data, respectively. In the figure, the &#34;SYNC&#34; area is for a synchronizing signal used to separate one block from another, the &#34;ID CODE&#34; area is for additional information, and the &#34;C1 CODE&#34; area is for an error-correcting code appended to the data area. 
     FIG. 65 is a block diagram showing the configuration of the SYNC protection circuit 70. In the figure, the reference numeral 69 is the SYNC detector for detecting a synchronizing signal unique to the respective blocks for separating one block from another; 79 is a SYNC discriminator for discriminating each detected SYNC signal to identify which of the blocks the SYNC signal indicates; 80 is an initial value selector for selecting the count value for a symbol counter (a ring counter for synchronization protection) for synchronization protection for each specific block on the basis of the result supplied from the SYNC discriminator; 81 is the symbol counter for counting the number of symbol clocks on the basis of the playback clocks; 82 is a carry counter for counting the number of carry pulses generated when an overflow occurs in the symbol counter; and 83 is a controller for controlling the synchronization protection operation of the carry counter. 
     FIG. 66 is a timing diagram for explaining the operation of the SYNC protection circuit: Part (a) explains the operation in the absence of SYNC pulses, and Part (b) explains the operation in the case of time drift of SYNC pulses. 
     First, the recording operation will be explained with reference to FIG. 63. 
     The input video signal and audio signal are converted by the A/D converters 51, 52 into 8-bit and 16-bit data, respectively. Usually, the converted video signal has an information rate as high as about 160 Mbps (bps: bits per second), while the converted audio signal has an information rate of about 1 Mbps. In commercial digital VTRs, the digitized data are band-compressed by the data compression circuits 53, 54 using DCT or other method sin order to increase tape utilization; thus, the video data is compressed to about 40 Mbps and the audio data to about 400 kbps (for two channels L and R) in terms of information rate. The compressed data are transferred to the digital signal processing circuit 57 together with the subcode data, such as additional function information, output from the system controller 78. In the digital signal processing circuit 57, blocking, error-correcting code appending, and other signal processing operations are performed on the input data for recording track by track on the tape. 
     The information rate greatly differs between the types of data, i.e. 40 Mbps for video data, 400 kbps for audio data, and 100 kbps for subcode data. If they are to be organized into blocks using the same block format, a block format that can handle the video data having the largest information rate of the three would have to be employed. Suppose, for example, that the audio and subcode data are each organized into a data group of a plurality of data units with a total information rate equivalent to that of the video signal. In this case, as previously described, if an error occurs in any one block on the track, several data units would be put in error at a time, causing a drastic reduction in the error correction rate. On the other hand, if dummy data is inserted in each audio or subcode data to form a block of the size equivalent to the video data, the overall information rate would drop significantly. 
     For these reasons, in the present invention, the digital signal processing circuit 57 performs error correction coding, using the memory 55 and the error-correcting code appending circuit 56, whereby in the C1 block as shown in FIG. 64(b), a 16-byte C1 check code is appended to a 216-byte video signal as an error-correcting code for the video signal. This can correct errors of up to eight bytes within the block. Furthermore, for each column (96 bytes) of the block, an m-byte (8-byte) check code (C2 code) is appended in case of an occurrence of errors of more than eight bytes. This format is capable of correcting errors column-wise and thus provides a powerful burst error correcting capability. If the above format is structured to record the C1×C2 code group on one track, the recording rate is about 240 tracks per second. 
     On the other hand, the information rate of the audio data is 400 kbps for the two channels L and R. If recorded at the above rate of 240 tracks per second, about 1667 bits will be recorded per track. Therefore, if the same C1 block code structure were used for audio as well as for video, one block would suffice for the purpose, and appending a C2 code for each column would be disadvantageous from the viewpoint of redundancy; in this case, therefore, it is more practical to append the C1 code only. In such a format, however, if a Burst error of nine bytes occurred in the first half of the audio block, the audio block would become uncorrectable, thus making it impossible to reproduce sound. Accordingly, in the present invention, the digital signal processing circuit 57 encodes the audio portion in such a manner that an eight-byte C1 check code is appended to 108-byte audio data, as shown in FIG. 64(c), and the audio portion is constructed into two blocks. This can correct errors up to four bytes within the block. 
     In encoding, the data are shuffled in such a manner that the odd-numbered samples from the left channel and the even-numbered samples from the right channel are written in the first audio block while the even-numbered samples from the left channel and the odd-numbered samples from the right channel are written in the second audio block. In this format, if a burst error of nine bytes occurred during reproduction in the first half of the same audio block as previously mentioned, the first block would no doubt become uncorrectable and the data would be lost, but if the second block can be reconstructed, reproduction is possible by means of data interpolation. 
     Likewise, the subcode data portion is encoded by the digital signal processing circuit 57 in such a manner that a 4-byte C1 check code is appended to 54-byte subcode data, as shown in FIG. 64(d), the same data being written four times. After ID information, such as block address, recording track address, etc., is appended immediately preceding each block, the signals respectively encoded as shown in FIG. 64(a) are supplied to the modulator 58. 
     The modulator 58 converts the received data into signals that matches the transmission channel. The signals thus converted block by block are then fed to the SYNC appending circuit 59. The block-by-block signals are recorded one after another on the track, but a synchronizing signal needs to be added in order to separate one block form another so that synchronization can be accurately maintained at the start of each block. In the present invention, using an RLL code (RLL: run length limited with d=2 and k=4 (d: the smallest number of successive 0s, k: the largest number of successive 0s), a plurality of signal patterns with d&lt;2 and k&gt;4 (e.g., &#34;100000101000001&#34;) that cannot occur in encoded data are constructed as synchronizing signals (SYNC signals); these signal patterns are stored in a memory or the like and are added at the head of each of the block-by-block signals to uniquely identify the relevant block. 
     Based on the control signal supplied from the error-correcting code appending circuit 57, the SYNC appending circuit 59 identifies the block format for each block-by-block signal input to it, selects the SYNC signal corresponding to the block, and appends it at the head of the block. The data are then fed to the recording amplifier 60 and recorded on a magnetic medium by means of the rotary head 62. 
     Next, the reproduction operation will be explained with reference to FIGS. 63 and 65. 
     The playback signal reproduced by the rotary head 62 is fed to the playback amplifier 63, and then to the waveform equalizer 64 for waveform equalization. The waveform-equalized playback signal is supplied to the data detector 65 which performs data detection such as integrating detection. The result is fed to the PLL circuit 67 and the serial/parallel converter 66. The PLL circuit 67 generates playback clock pulses from the detection signal. In synchronism with the playback clock pulses, the serial/parallel converter 66 converts the detection signal into parallel data, each data constituting a codeword (symbol). The data is then fed to the demodulator 68 and the SYNC detector 69. 
     The SYNC signal appended to each block in the recording process differs according to the type of data constituting the block, and also, the block length itself is different according to the type of data. Therefore, in SYNC detection, a plurality of SYNC detection operations must be performed simultaneously to identify which type of data the SYNC signal indicates and to provide synchronization protection suitable for each individual block. 
     The SYNC detector 69 detects the SYNC signal from the parallel data output from the serial/parallel converter 66, and outputs a detection pulse to the SYNC protection circuit 70. In the SYNC protection circuit 70, the SYNC discriminator 79 identifies the SYNC signal for each block on the basis of the received SYNC pulse, and supplies the result of the identification to the initial value selector 80 and the error-detection/correction circuit 71. Based on this identification result, the count value with which to start the counting of the ring counter is set to perform synchronization protection at a time interval corresponding to the length of each block; that is, by changing the initial value for counting, the same counter is used to form different counters for the synchronization protection suitable for a plurality of data blocks of different lengths. 
     Based on the identification result, the initial value selector 80 selects a count value corresponding to each SYNC pattern, which value is input to the symbol counter 81. In synchronism with the SYNC detection pulse supplied from the SYNC detector 79 or a load pulse output from the controller 83 in response to a carry signal that is generated when an overflow occurs in the symbol counter 81, the count value is loaded into the symbol counter 81, thus reading the count value and starting the counting operation. When the largest count value for the symbol counter 81 is denoted as M, and the number of symbols is denoted as l, m, and n for data blocks a, b, and c, respectively, the count values f a , f b , and f c  that the initial value selector 80 selects for the respective blocks are given by 
     
         f.sub.a =M-l+l 
    
     
         f.sub.b =M-m+1 
    
     
         f.sub.c =M-n+1 
    
     (where M≧1-1, M≧m-1, M≧n-1) 
     The carry signal generated when an overflow occurs in the symbol counter 81 is input to the carry counter 82. The count value in the carry counter is reset by the application of the SYNC detection pulse. When the count value in the carry counter 82 is &#34;1&#34;, the controller 83 outputs a load pulse in synchronism with the application of the carry signal. If SYNC detection pulses are not input because of the absence or time drift of the SYNC signal, and if the count value in the carry counter reaches &#34;2&#34; or over, the controller 83 does not output a load pulse even when the carry signal is input. On the other hand, during the counting of the symbol counter 81, even when no carry signal is generated, a load pulse is generated at the application of the SYNC detection pulse and is input to the symbol counter 81 to reset the carry counter 82. In this manner, the SYNC protection operation is carried out as shown in FIGS. 66(a) and (b). 
     The demodulator 68 demodulates the parallel data in synchronism with the symbol clock pulses, and the demodulated signal is input to the digital signal processing circuit 73. In the digital signal processing circuit 73, when the SYNC discriminating signal is input, the parallel data is input to the memory 72 where the data is reordered in the memory space into an arrangement that matches the code structure of each block according to video, audio, or sub-code data, the reordered data then being detected and corrected for errors by the error-detection/correction circuit 71, and deshuffled for decoding. The decoded data is separated into video, audio; and subcode data on the basis of the SYNC discriminating signal, and supplied to the system controller 78 and also to the respective data expansion circuits 74 and 75. In the respective data expansion circuits 74 and 75, the decoded video and audio data are expanded to reconstruct the data of the original bandwidths, and in the D/A converters 76, and 77, the data are converted into an analog video signal and an analog audio signal which is output. The decoded subcode data is processed in the system controller 78 as additional function information. 
     The above-embodiment uses data quantized in 8 and 16 bits. It should be appreciated, however, that the teachings of the present application are equally applicable when the data is quantized in four, six, ten or any other number of bits. 
     In the above embodiment, SYNC protection is performed on the basis of a carry at the time of an overflow of the symbol counter that is constructed from an up counter, but alternatively, if the symbol counter is constructed from a down counter and SYNC protection is performed on the basis of a borrow, the same effect can be obtained. 
     As described above, according to the invention, when recording and reproducing different types of data of differing data rates, such as video data having a very large information rate and audio data having a relatively small information rate, blocks of different structures are constructed that match the respective types of data of different information rates, each different block containing an error-correcting code that matches the relevant information rate; this enhances the freedom of block structure design and thereby increases the information efficiency and accuracy in recording/reproducing processes. Furthermore, according to the invention, an increase in the circuit complexity involved in increasing the freedom of block structure design is held to a minimum, and reliable synchronization protection is ensured, thus achieving the construction of an efficient magnetic recording/reproducing apparatus. 
     The inventions described above may be embodied in several forms without departing from the spirit of essential characteristics thereof, the present embodiment is therefore illustrative and not restrictive, since the scope of the invention is defined by the appended claims rather than by the description preceding them, and all changes that fall within metes and bounds of the claims, or equivalence of such metes and bounds thereof are therefore intended to be embraced by the claims.