Background technology
In CD baking and rewritable system, need exist with non return to zero coded system (Non Return to Zero) earlier through the symbol data (symbol data) of two steps, convert 14 channel bits data (channel bit data) again to eight.Above-mentioned these steps are called as eight to 14 modulation (Eight to Fourteen Modulation).And in the standard of Red Book, by ten four figures according to the crossfire of being formed in, data occurring is 0 o'clock, its development length must not be greater than ten one-periods, also must not be less than three cycles, this restriction of zero extension time continuously, in Red Book, be called continuous distance of zero mark degree rule (run-length rule), the limitation reason of this extension time is that this ten four figures need be used as the important evidence of keeping linear speeds such as CD-ROM drive according to crossfire, its foundation of relying be exactly the continuous distance of zero mark degree of ten four figures according to crossfire, the three wherein minimum cycles are being represented under 1.2 meter per seconds 720 kilo hertzs signal, ten the highest one-periods are then being represented the following 196 kilo hertzs signal of 1.2 meter per seconds, any surpass or the signal that is lower than the standard cycle all can be regarded as rub-out signal.
In addition, Red Book has also defined digital accumulated value (digital sum value), and it is tried to achieve by the non-return-to-zero coding value of accumulating ten four figures certificates.Purpose is to allow the average electrical potential energy of non-return-to-zero coding value of ten four figures certificates near DC potential.Standard according to Red Book, any two groups by eight data that are modulated to 14, all must assign one group three combine code (merging bit) therebetween, its objective is and to make entire stream after the combine code that adds three of this groups, except meeting continuous distance of zero mark degree rule, also can allow the average electrical potential energy of non-return-to-zero coding value of whole ten four figures certificates near the direct current place value, therefore, combine code certainly will need some computings just can learn its optimal value.
Prior art is to have utilized four groups of storeies or register intactly to write down last pen ten four figures according to, back one ten four figures digital accumulated value and rank, the non-return-to-zero coding position value according to, ten four figures certificates, comes to shine upon combine code according to the table of presetting by the data in these four groups of storeies.Yet such method needs very big memory headroom store this default table, and decoding scheme need carry out computing to bits of data very, so can slow down the speed of CD baking and rewritable system handles data.
Summary of the invention
Therefore fundamental purpose of the present invention provides a kind of method that determines combine code, to address the above problem.
The invention provides a kind of method that determines combine code, its ten four figures that comprise the output of eight to 14 modulators become ten five-digit number certificates according to this according to increasing one digit number, per three bit data of this ten five-digit numbers certificate are corresponded to a zone digit accumulated value to produce five zone digit accumulated values, this five zone digits accumulated value is added to the initial number accumulated value to produce once digital accumulated value and to produce combine code according to digital accumulated value of this time and default value.
The invention provides a kind of device that determines combine code, it comprises: digital accumulated value processing unit, be used for ten four figures of eight to 14 modulators output are become ten five-digit number certificates according to this according to increasing one digit number, per three bit data of this ten five-digit numbers certificate are corresponded to a zone digit accumulated value producing five zone digit accumulated values, and this five zone digits accumulated value is added to the initial number accumulated value to produce time digital accumulated value; With the combine code maker, produce this combine code according to digital accumulated value of this time and default value.
With respect to prior art, the present invention is because of adding one with ten four figures certificate " 0 " formation ten five-digit number certificates, therefore it five can be divided into five group of three bit data, make digital accumulated value processing unit once only need handle three data, and then learn the combine code of final selection according to interlock circuits such as digital accumulated value processing units, therefore than the previous method that directly is mapped to combine code, have and save circuit space significantly, and can take into account the advantage of arithmetic speed according to table.
Embodiment
Please refer to Fig. 1.Fig. 1 is the block scheme according to optical disc burning system 10 of the present invention.Optical disc burning system 10 includes eight to 14 modulators 12, digital accumulated value processing unit 14, digital accumulated value comparer 16, combine code selector switch 18, parallel list entries output unit 20, continuous distance of zero mark degree judging unit 22, first impact damper 24 and second impact damper 26.Eight to 14 modulators 12 are linked to digital accumulated value processing unit 14, first impact damper 24 and continuous distance of zero mark degree judging unit 22, its eight bit data of being responsible for being read by the CD pick-up head converts ten four figures certificates to, and sends other unit to and further process.Continuously distance of zero mark degree judging unit 22 then is responsible for checking the continuous distance of zero mark degree of ten four figures certificates of input, and export continuous distance of zero mark degrees of data to digital accumulated value processing unit 14 with as the basis for estimation of combine code (merging bit) after this.Numeral accumulated value processing unit 14 is linked to digital accumulated value comparer 16, it is responsible for ten four figures according to adding one " 0 " with form ten five-digit numbers according to, calculate time digital accumulated value, produce four groups of numeral accumulated values according to all possible combine code situation again and be sent to digital accumulated value comparer 16 and do last combine code and judge.Numeral accumulated value comparer 16 is linked to combine code selector switch 18, and it is responsible for judging last combine code, and the output combine code selects signal to be sent to combine code selector switch 18.Combine code selector switch 18 is linked to parallel list entries output unit 20, its be responsible for output signal deliver to parallel list entries output unit 20 with last combine code assign into two ten four figures according in, and export in the mode of sequence.
Please refer to Fig. 2.Fig. 2 is according to one embodiment of the present of invention.In this embodiment, suppose that the input data that the institute desire is handled are metric " 79 ", and these data be transformed into binary eight-level code metadata (symbol data) for " 01001111 ".And this symbol data of eight can be converted into 14 channel bits data after through eight to 14 modulators 12, is expressed as " 00100001000100 ".These pen ten four figures are according to being transfused to digital accumulated value processing unit 14, continuous distance of zero mark degree judging unit 22 and first impact damper 24 immediately.Wherein distance of zero mark degree judging unit 22 is responsible for checking whether the ten four figures certificate of input meets continuous distance of zero mark degree rule (run-length rule) continuously, and extremely digital accumulated value processing unit 14 is with the basis for estimation as combine code to export continuous distance of zero mark degrees of data, and first impact damper 24 then is stored in this pen ten four figures certificate wherein to wait for last combine code.These channel bits data of 14 can be added one at the highest one earlier after entering digital accumulated value processing unit 14 " 0 ", and become ten five-digit number certificates, and be expressed as " 001000010001000 ".Then, these pen ten five-digit numbers are divided into five sections according to meeting, and it is respectively " 001 "; " 000 ", " 010 ", " 001 " and " 000 "; so form five groups three section bit data, and according to the rule of non-return-to-zero coding, suppose initial non-return-to-zero coding value (initialNRZ level) for " 1 "; then rank, the non-return-to-zero coding position value of each three section of these pen ten five-digit number certificates then is respectively " 1,1 ,-1 ", "-1,-1,-1 ", "-1,1; 1 "; " 1,1 ,-1 " and "-1,-1 ,-1 ".Rank, non-return-to-zero coding position according to each section are worth as can be known, and the digital accumulated value of first section is 1+1-1=1, and therefore pairing zone digit accumulated value is " 1 "; The rest may be inferred, and the zone digit accumulated value of second section is-1-1-1=-3; The zone digit accumulated value of the 3rd section is-1+1+1=1; The zone digit accumulated value of the 4th section is 1+1-1=1; The zone digit accumulated value of the 5th section is-1-1-1=-3.And last, these five zone digit accumulated values can be accumulated in together and form zone digit accumulated value summation, and this zone digit accumulated value summation is 1-3+1+1-3=-3.And hypothesis initial number accumulated value (initial DSV) is " 1 ", it adds the zone digit accumulated value summation of having tried to achieve "-3 " promptly can produce time digital accumulated value, in the present embodiment promptly, the inferior digital accumulated value of this ten five-digit numbers certificate is "-3+1=-2 ".
Please refer to Fig. 3.Fig. 3 is the combine code table of comparisons among the present invention, this table record under all three combine code situations, contrast the zone digit accumulated value that various initial non-return-to-zero coding values can produce.Numeral accumulated value processing unit 14 can be according to from the combine code table of comparisons among the continuous distance of zero mark degrees of data of continuous distance of zero mark degree judging unit 22 and above-mentioned Fig. 3 each the digital accumulated value under the various combine code situations being sent to digital accumulated value comparer 16.Numeral accumulated value comparer 16 can need the most approaching according to digital accumulated value " 0 " principle decide last combine code, and select signal to be sent to combine code selector switch 18 combine code; Last selected digital accumulated value and the ten five-digit numbers non-return-to-zero coding value according to most significant digit is deposited in second impact damper 26, during with the digital accumulated value of decision next record ten five-digit number certificates, use as initial number accumulated value and initial non-return-to-zero coding value.Combine code selector switch 18 can according to the combine code of being exported from digital accumulated value comparer 16 select signal with last combine code assign to ten four figures according in the middle of the crossfire.
Referring again to Fig. 3.In the present embodiment, initial non-return-to-zero coding value is " 1 ", therefore can learn, when combine code is by Fig. 3 " and 010 " time, its rank, non-return-to-zero coding position are " 1 ,-1 ,-1 ", therefore pairing zone digit accumulated value is " and-1 "; When combine code is " 001 " time, its rank, non-return-to-zero coding position are " 1,1 ,-1 ", therefore pairing zone digit accumulated value is " and 1 "; When combine code is " 100 " time, its rank, non-return-to-zero coding position are "-1 ,-1 ,-1 ", therefore pairing zone digit accumulated value is " and-3 "; When combine code is " 000 " time, its rank, non-return-to-zero coding position are " 1,1,1 ", therefore pairing zone digit accumulated value is " and 3 ".Numeral accumulated value processing unit 14 can be with above-mentioned inferior digital accumulated value of trying to achieve "-2 ", add these four groups possible zone digit accumulated values respectively and form four groups of numeral accumulated values, and be sent to digital accumulated value comparer 16 with being about to these four groups digital accumulated values.And digital accumulated value comparer 16 will make digital accumulated value reach as far as possible " 0 ", therefore acceptable combine code should be the zone digit accumulated value for " 1 " " 001 " and the zone digit accumulated value for " 3 " " 000 ".If the continuous distance of zero mark degrees of data that continuous distance of zero mark degree judging unit 22 is sent demonstrates, when combine code for " 001 " or " 000 " time neitherly can violate continuous distance of zero mark degree and must not and be not less than the regulation in 3 cycles greater than 11 cycles, then digital accumulated value comparer 16 can directly be determined the combine code that selection is last according to default value; Relatively, no matter if the continuous distance of zero mark degrees of data of being sent according to continuous distance of zero mark degree judging unit 22 demonstrate is when combine code for " 001 " or " 000 " Shi Jiehui violates continuous distance of zero mark degree and must not and be not less than the regulation in 3 cycles greater than 11 cycles, then digital accumulated value processing unit 14 can output signal inform that digital accumulated value comparer 16 must the selection of backward ground conform with continuous distance of zero mark degree rule, but all the other bigger combine codes of the absolute value of digital accumulated value.In the present embodiment, the continuous distance of zero mark degree of neither violation rule under various combine code situations, then digital accumulated value comparer 16 can be with combine code " 000 " or " 001 " be sent to combine code selector switch 18.At last, combine code selector switch 18 will " 000 " or " 001 " be inserted in handled this pen ten four figures and reach according to this between last the ten four figures certificate, and be sent to the action that parallel list entries output unit 20 is done last output.
With respect to prior art, the present invention is because of adding one with ten four figures certificate " 0 " formation ten five-digit number certificates, therefore it five can be divided into five group of three bit data, make digital accumulated value processing unit once only need handle three data, and then learn the combine code of final selection according to interlock circuits such as digital accumulated value processing units, therefore than the previous method that directly is mapped to combine code, have and save circuit space significantly, and can take into account the advantage of arithmetic speed according to table.
The above only is preferred embodiment of the present invention, and variation and the modification done under the prerequisite that does not break away from spirit of the present invention and claims scope all belong to the covering scope of patent of the present invention.