摘要 |
<p>The present invention relates to a method for coding a data stream (DS), in which the digital sum value (DSV) of the coded data stream (CS) should be close to zero and two alternative code words (CWa, CWb) can be used for the coding at least for some of the possible data values (Bytes).It is the object of the invention to propose a method for coding a data stream (DS) which provides for simple coding of the data stream (CS) whilst at the same time ensuring a digital sum value (DSV) close to zero.According to the invention, the object is achieved by a method in which the digital sum value (DSV) of the coded data stream (CS) is determined, this value is compared with a first or a second boundary value (BV) in dependence on the polarity (Pol) of the coded data stream (CS) and a received data value (Byte) is coded by a first or a second code word (CWa, CWb) belonging to the respective boundary value (BV) in dependence on the result of the comparison.</p> |