JPH088494B2 - Code conversion method - Google Patents
Code conversion methodInfo
- Publication number
- JPH088494B2 JPH088494B2 JP11826486A JP11826486A JPH088494B2 JP H088494 B2 JPH088494 B2 JP H088494B2 JP 11826486 A JP11826486 A JP 11826486A JP 11826486 A JP11826486 A JP 11826486A JP H088494 B2 JPH088494 B2 JP H088494B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- bit
- conversion
- complementary
- bits
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000006243 chemical reaction Methods 0.000 title claims description 82
- 238000000034 method Methods 0.000 title claims description 10
- 230000000295 complement effect Effects 0.000 claims description 34
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Dc Digital Transmission (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明はパルス信号の伝送に利用する。特に、入力符
号を伝送に適した符号に変換する符号変換方式に関す
る。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention is used for transmission of pulse signals. In particular, it relates to a code conversion method for converting an input code into a code suitable for transmission.
〔概 要〕 本発明は、入力されたm(mは自然数)ビットの符号
をn=m+1ビットの符号に変換するmBnB符号変換方式
において、 識別用のビットを挿入して二種類のmBnB符号変換を行
い、伝送に適した符号を選択して送出することにより、 送信側と受信側との変換対応表が必要なく、簡単な回
路構成で高速かつ低消費電力の符号変換を行うものであ
る。[Summary] The present invention is an mBnB code conversion method for converting an input m (m is a natural number) bit code into a code of n = m + 1 bits, and two types of mBnB code conversion are performed by inserting identification bits. Then, by selecting and transmitting a code suitable for transmission, a conversion correspondence table between the transmission side and the reception side is not required, and high-speed and low power consumption code conversion is performed with a simple circuit configuration.
mビットの符号をnビットに変換する符号はmBnB符号
と称され、PCM通信回線用、特に光PCM通信回線用の符号
として使用されている。この中でも5B6B符号が実用に多
く供されている。A code for converting an m-bit code into an n-bit is called an mBnB code and is used as a code for a PCM communication line, especially for an optical PCM communication line. Of these, the 5B6B code is often used for practical purposes.
従来のmBnB符号では、一般に、mビットの入力符号に
対してn=m+1ビットの出力符号より、その中の特定
の符号組合せを選んで対応させている。すなわち、入力
符号の符号組合せは2m組あり、この2m組に対して2n=2
m+1組のnビットの符号組合せの中から、伝送条件に適
する符号を選んで使用していた。伝送条件としては、符
号のマーク率が1/2に近いこと、同符号連続性が少ない
こと等を基準として選ばれ、これらの条件に近づけるた
めに、mビットの符号に対して2組のnビットの符号を
対応させる場合もある。In the conventional mBnB code, in general, a specific code combination is selected from the output codes of n = m + 1 bits for the input code of m bits and made to correspond thereto. That is, there are 2 m combinations of input codes, and 2 n = 2 for this 2 m combinations.
The code suitable for the transmission condition is selected and used from the m + 1 combinations of n-bit codes. The transmission conditions are selected based on the fact that the mark rate of the code is close to 1/2, the same code continuity is small, etc. In order to approach these conditions, two sets of n bits are set for an m-bit code. In some cases, the signs of the bits are made to correspond.
このような従来のmビットをnビットに変換する符号
変換では、mビットの符号に対応するnビットの符号
は、符号間に論理的変換則が全くないため、mビットか
らnビットおよびnビットからmビットへの変換には、
あらかじめ変換対応表を用意しておく必要があり、この
ための回路構成が複雑であるため、低消費電力化、高速
化の妨げとなっていた。In such a conventional code conversion for converting m bits to n bits, an n-bit code corresponding to an m-bit code has no logical conversion rule between the codes, so that from m bits to n bits and n bits. To m bits conversion,
Since it is necessary to prepare a conversion correspondence table in advance, and the circuit configuration for this is complicated, low power consumption and high speed have been hindered.
本発明は、送信側と受信側とで変換対応表を必要とし
ない符号変換方式を提供することを目的とする。It is an object of the present invention to provide a code conversion method that does not require a conversion correspondence table on the transmitting side and the receiving side.
本発明の符号変換方式は、送信側には、入力されたm
(mは自然数)ビットの符号を伝送に適したn=m+1
ビットの符号に変換するmBnB符号変換手段を備え、受信
側には、上記n=m+1ビットの符号をもとのmビット
の符号に変換する手段を備えた符号変換方式において、
上記送信側には、上記mビットの符号の所定の位置のビ
ットを補符号に変換し、特定のビットに補符号変換を行
ったことを示すビットを挿入して第一のnビット符号を
出力する第一の符号変換手段と、上記特定のビットに補
符号変換を行っていないことを示すビットを挿入して第
二のnビット符号を出力する第二の符号変換手段と、上
記第一のnビット符号および上記第二のnビット符号に
ついて、隣接する符号が異符号である個数を比較する手
段と、この個数の多い方のnビット符号を選択して出力
する手段とを備え、上記受信側には、上記特定のビット
の値に基づいて異なる二つの論理で符号の変換を行う手
段を備えたことを特徴とする。According to the code conversion method of the present invention, the input side receives m
(M is a natural number) n = m + 1 suitable for transmitting a bit code
In the code conversion method, which is provided with mBnB code conversion means for converting into a bit code, and the receiving side is provided with means for converting the above n = m + 1 bit code into the original m bit code,
On the transmitting side, a bit at a predetermined position of the m-bit code is converted into a complementary code, a bit indicating that the complementary code conversion has been performed is inserted into a specific bit, and a first n-bit code is output. And a second code conversion means for outputting a second n-bit code by inserting a bit indicating that complementary code conversion has not been performed into the specific bit, and the first code conversion means. For the n-bit code and the second n-bit code, there are provided means for comparing the numbers of adjacent codes which are different codes, and means for selecting and outputting the n-bit code having the larger number, The side is provided with means for performing code conversion by two different logics based on the value of the specific bit.
本発明の符号変換方式は、mビットからnビットまた
はその逆への変換に論理的規則性がある。The code conversion system of the present invention has logical regularity in conversion from m bits to n bits or vice versa.
本発明の符号変換方式では、二つのnビット符号を生
成し、その一方を選択して伝送する。入力mビット符号
の特定位置の半数または半数の前後の整数のビットを補
符号に変換し、補符号変換の「有」を示す1ビットを付
加して第一のn=m+1ビット符号に変換する。また、
入力mビット符号に補符号変換の「無」を示す1ビット
を付加して第二のnビット符号とする。これらの二つの
nビット符号の中で符号変化点の数を比較し、変化点の
多いnビット符号を出力する。受信側では、nビットの
中から補符号変換の有無を示す1ビットを検出し、補符
号変換なしの場合は他のmビットを直接出力し、補符号
変換有りの場合はmビットの中の補符号変換されたビッ
トを元に戻して出力する。In the code conversion method of the present invention, two n-bit codes are generated, and one of them is selected and transmitted. Half of the specific position of the input m-bit code or an integer bit before and after the half number is converted into a complementary code, and 1 bit indicating "yes" of the complementary code conversion is added and converted into a first n = m + 1 bit code. . Also,
A second n-bit code is obtained by adding 1 bit indicating "none" of complementary code conversion to the input m-bit code. Among these two n-bit codes, the number of code change points is compared, and the n-bit code with many change points is output. On the receiving side, one bit indicating the presence / absence of complementary sign conversion is detected from n bits, and other m bits are directly output when there is no complementary sign conversion, and among the m bits when there is complementary sign conversion. The bits that have been subjected to complementary sign conversion are returned to the original and output.
第1図は本発明実施例の送信側符号変換器のブロック
構成図を示す。FIG. 1 shows a block diagram of a transmitting side code converter according to an embodiment of the present invention.
mビット並列変換回路11は無変換回路12と補符号変換
回路13とに接続される。無変換回路12および補符号変換
回路13は変化点数比較回路14に接続される。また、無変
換回路12の出力と補符号変換回路13の出力との一方が、
変化点数比較回路14に接続されたスイッチ回路15を介し
て受信側に出力される。The m-bit parallel conversion circuit 11 is connected to the non-conversion circuit 12 and the complementary code conversion circuit 13. The non-conversion circuit 12 and the complementary code conversion circuit 13 are connected to the change point number comparison circuit 14. Further, one of the output of the non-conversion circuit 12 and the output of the complementary code conversion circuit 13
It is output to the receiving side via the switch circuit 15 connected to the change point number comparison circuit 14.
mビット並列変換回路11は、入力された直列符号Aを
mビット単位に並列変換する。無変換回路12は、mビッ
ト並列変換回路11の出力した符号A′の特定位置に補符
号変換を行っていないことを示すビットを挿入し、n=
m+1ビットの符号Bを出力する。補符号変換回路13
は、符号A′の所定の位置のビット、符号A′の所定の
位置のビットを補符号とし、さらに無変換回路12がビッ
トを挿入した位置と同じ位置に、符号変換を行ったこと
を示すビットを挿入する。これにより、n=m+1ビッ
トの符号Cを出力する。補符号に変換するビット数は、
mが偶数のときにはその半数、mが奇数のときにはその
半数の前後の整数値である。The m-bit parallel conversion circuit 11 parallel-converts the input serial code A into m-bit units. The non-conversion circuit 12 inserts a bit indicating that the complementary code conversion is not performed at a specific position of the code A ′ output from the m-bit parallel conversion circuit 11, and n =
The code B of m + 1 bits is output. Complementary sign conversion circuit 13
Indicates that the bit at the predetermined position of the code A ′ and the bit at the predetermined position of the code A ′ are used as complementary codes, and that the non-conversion circuit 12 has performed the code conversion at the same position as the position where the bit is inserted. Insert a bit. As a result, the code C of n = m + 1 bits is output. The number of bits to convert to a complementary code is
When m is an even number, it is half, and when m is an odd number, it is an integer value before and after that half.
無変換回路12および補符号変換回路13はさらに、自分
自身が生成した符号の隣合うビットが補符号か同符号か
を判定し、それぞれ異符号の数D、Eを変化点数比較回
路14に出力する。変化点数比較回路14はスイッチ回路15
を制御して、変化点数が多い符号BまたはCを選択し
て、符号Gとして受信側に送出する。変化点数が同数の
場合には、あらかじめ符号BまたはCの一方を選択する
か、または交互に送出することに定めておく。The non-conversion circuit 12 and the complementary code conversion circuit 13 further determine whether adjacent bits of the code generated by themselves are complementary codes or the same code, and output the numbers D and E of different codes to the change point number comparison circuit 14, respectively. To do. The change point comparison circuit 14 is a switch circuit 15
Is controlled to select the code B or C having a large number of change points and send it as the code G to the receiving side. If the number of change points is the same, it is determined in advance that either the code B or C is selected or alternately transmitted.
第2図は受信側符号変換器のブロック構成図を示す。 FIG. 2 shows a block diagram of the receiving side code converter.
nビット並列変換回路21は補符号変換回路22に接続さ
れる。補符号変換回路22はmビット直列変換回路23に接
続される。The n-bit parallel conversion circuit 21 is connected to the complementary code conversion circuit 22. The complementary code conversion circuit 22 is connected to the m-bit serial conversion circuit 23.
nビット並列変換回路21は、送信側でnビットに符号
変換された入力符号Gを並列変換し、nビット単位の並
列符号を出力する。補符号変換回路22は、nビット並列
変換回路21の出力した並列符号の特定位置のビットが補
符号変換の有無を示すことから、このビットの極性によ
り、所定位置のビットが補符号変換されているか否かを
判定して変換操作を行い、mビットの並列符号を出力す
る。mビット直列変換回路は、この並列符号を直列符号
Aに変換して出力する。The n-bit parallel conversion circuit 21 parallel-converts the input code G code-converted to n bits on the transmission side and outputs a parallel code in n-bit units. The complementary code conversion circuit 22 indicates that the bit at the specific position of the parallel code output from the n-bit parallel conversion circuit 21 indicates the presence or absence of the complementary code conversion. Therefore, the polarity of this bit causes the complementary code conversion of the bit at the predetermined position. It is determined whether or not there is a conversion operation, and an m-bit parallel code is output. The m-bit serial conversion circuit converts this parallel code into a serial code A and outputs it.
第3図は送信側における5B6B符号変換の一例を示す図
である。FIG. 3 is a diagram showing an example of 5B6B code conversion on the transmission side.
送信すべき5ビットの元符号a1〜a5は、二つの6ビッ
ト符号に変換される。一方は、元符号の第二ビットa2と
第三ビットa3との間に「1」が挿入され、補符号変換が
施されていない6ビット符号である。また、他方は、元
符号の第一ビットa1および第四ビットa4ビットに補符号
変換が施され、第二ビットa2と第三ビットa3との間に
「0」が挿入される。これらの二つの6ビット符号は、
隣合うビットが異符号である点数すなわち変化点数の多
いものが選択され、変換出力符号b1〜b6として出力され
る。The 5-bit original codes a 1 to a 5 to be transmitted are converted into two 6-bit codes. One is a 6-bit code in which “1” is inserted between the second bit a 2 and the third bit a 3 of the original code and the complementary code conversion is not performed. On the other hand, complementary code conversion is performed on the first bit a 1 and the fourth bit a 4 bits of the original code, and “0” is inserted between the second bit a 2 and the third bit a 3. . These two 6-bit codes are
A bit having a different number of adjacent bits, that is, a bit having a large number of change points is selected and output as the converted output codes b 1 to b 6 .
第4図は受信側における符号変換を示す。 FIG. 4 shows code conversion on the receiving side.
受信した6ビットの符号b1〜b6のうち、第三ビットb3
は変換の有無を示すビットである。したがって、第一ビ
ットb1および第五ビットb5について第三ビットb3との排
他的論理和をとることにより、元符号a1〜a5が得られ
る。Of the received 6-bit codes b 1 to b 6 , the third bit b 3
Is a bit indicating the presence or absence of conversion. Therefore, the original codes a 1 to a 5 are obtained by taking the exclusive OR of the first bit b 1 and the fifth bit b 5 with the third bit b 3 .
表に5B6B符号変換の対応を示す。この表では、5ビッ
ト元符号に対する6ビット無変換符号および6ビット変
換符号、これらの変化点数を示し、さらに、選択出力さ
れる6ビット符号を○印で示す。The table shows the correspondence of 5B6B code conversion. In this table, the 6-bit non-conversion code and the 6-bit conversion code for the 5-bit original code and the number of change points thereof are shown, and the 6-bit code that is selectively output is indicated by a circle.
以上の実施例では、補符号位置をb1、b5、補符号挿入
の有無を示すビットをb3として説明したが、これらの位
置およびビット数は、どのように決めても本発明を同様
に実施できる。 In the above embodiments, the complementary code positions are described as b 1 and b 5 , and the bit indicating the presence or absence of complementary code insertion is described as b 3 , but these positions and the number of bits are the same in the present invention regardless of how they are determined. Can be carried out.
以上説明したように、本発明の符号変換方式は、mBnB
符号変換を論理的規則性に基づいて行うことによって、
従来方式における符号変換回路に比べて回路構成が簡単
となるため、高速化、低消費電力化が可能となる効果が
ある。また本発明では、補符号変換に直接関係しないビ
ットが存在するため、この無関係のビット位置を同期パ
ルス位置あるいはサービス信号挿入位置として使用する
ことによって、符号変換することなく前記符号を判別す
ることが可能である。As described above, the code conversion method of the present invention is based on mBnB
By performing code conversion based on logical regularity,
Since the circuit configuration is simpler than that of the code conversion circuit in the conventional method, there is an effect that high speed and low power consumption can be achieved. Further, in the present invention, since there is a bit that is not directly related to the complementary code conversion, by using this irrelevant bit position as the sync pulse position or the service signal insertion position, it is possible to determine the code without converting the code. It is possible.
第1図は本発明実施例送信側符号変換器のブロック構成
図。 第2図は本発明実施例受信側符号変換器のブロック構成
図。 第3図は送信側における5B6B符号変換の一例を示す図。 第4図は受信側における符号変換の一例を示す図。 11……mビット並列変換回路、12……無変換回路、13…
…補符号変換回路、14……変化点数比較回路、15……ス
イッチ回路、21……nビット並列変換回路、22……補符
号変換回路、23……mビット直列変換回路。FIG. 1 is a block diagram of a transmitting side code converter according to an embodiment of the present invention. FIG. 2 is a block diagram of the receiving side code converter according to the embodiment of the present invention. FIG. 3 is a diagram showing an example of 5B6B code conversion on the transmission side. FIG. 4 is a diagram showing an example of code conversion on the receiving side. 11 …… m-bit parallel conversion circuit, 12 …… No conversion circuit, 13…
Complementary code conversion circuit, 14 ... Change point comparison circuit, 15 ... Switch circuit, 21 ... n-bit parallel conversion circuit, 22 ... Complementary code conversion circuit, 23 ... m-bit serial conversion circuit.
Claims (1)
ビットの符号を伝送に適したn=m+1ビットの符号に
変換するmBnB符号変換手段を備え、 受信側には、上記n=m+1ビットの符号をもとのmビ
ットの符号に変換する手段を備えた 符号変換方式において、 上記送信側には、 上記mビットの符号の所定の位置のビットを補符号に変
換し、特定のビットに補符号変換を行ったことを示すビ
ットを挿入して第一のnビット符号を出力する第一の符
号変換手段と、 上記特定のビットに補符号変換を行っていないことを示
すビットを挿入して第二のnビット符号を出力する第二
の符号変換手段と、 上記第一のnビット符号および上記第二のnビット符号
について、隣接する符号が異符号である個数を比較する
手段と、 この個数の多い方のnビット符号を選択して出力する手
段と を備え、 上記受信側には、上記特定のビットの値に基づいて異な
る二つの論理で符号の変換を行う手段を備えた ことを特徴とする符号変換方式。1. Inputting m (m is a natural number) on the transmitting side
An mBnB code conversion means for converting a bit code into an n = m + 1 bit code suitable for transmission is provided, and the receiving side is provided with a means for converting the n = m + 1 bit code into an original m-bit code. In the code conversion method, the transmitting side converts a bit at a predetermined position of the m-bit code into a complementary code, inserts a bit indicating that the complementary code conversion has been performed into a specific bit, and inserts a bit. And a second code converting means for outputting a second n-bit code by inserting a bit indicating that complementary code conversion has not been performed into the specific bit. A means for comparing the number of adjacent codes having different codes for the first n-bit code and the second n-bit code, and means for selecting and outputting the n-bit code having the larger number. And with the above reception The code conversion method is characterized in that the side is provided with means for performing code conversion by two different logics based on the value of the specific bit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11826486A JPH088494B2 (en) | 1986-05-21 | 1986-05-21 | Code conversion method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11826486A JPH088494B2 (en) | 1986-05-21 | 1986-05-21 | Code conversion method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62274818A JPS62274818A (en) | 1987-11-28 |
| JPH088494B2 true JPH088494B2 (en) | 1996-01-29 |
Family
ID=14732325
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11826486A Expired - Lifetime JPH088494B2 (en) | 1986-05-21 | 1986-05-21 | Code conversion method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH088494B2 (en) |
-
1986
- 1986-05-21 JP JP11826486A patent/JPH088494B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62274818A (en) | 1987-11-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7752482B2 (en) | Hybrid parallel/serial bus interface | |
| EP0230714A2 (en) | Data transmission system | |
| CA2126598C (en) | Waveform shaping method and equipment | |
| KR980007155A (en) | Method and apparatus using data processing system for multilevel data communication providing self clocking | |
| US4092595A (en) | Data transmission system for transmitting primary and secondary intelligence | |
| US7071855B1 (en) | Gray code conversion method and apparatus embodying the same | |
| JPH088494B2 (en) | Code conversion method | |
| US4231023A (en) | Binary to ternary converter | |
| GB1374080A (en) | Transmitting and receiving successive groups of multilevel coded signals | |
| JP3515526B2 (en) | Coding method of control information in a communication system | |
| JP2563239B2 (en) | Synchronous pattern selection method | |
| JPH04252329A (en) | Method for displaying data with variable bit pattern and communication system | |
| EP1001540A2 (en) | Block coding method and apparatus | |
| US4860009A (en) | Bidirectional multiframe converter for data communications systems | |
| EP0282924A2 (en) | Bipolar with eight-zeros substitution and bipolar with six-zeros substitution coding circuit | |
| JP2001069181A (en) | Digital data transmission method and apparatus for implementing the method | |
| JPS61101142A (en) | Data protection circuit | |
| JPH01205628A (en) | Code converting circuit for digital transmission equipment | |
| KR930008947B1 (en) | Frame detected circuit of digital transmitted apparatus | |
| JPS5940735A (en) | Pulse signal tansmitter | |
| JPS63312755A (en) | Code converter | |
| JPS60167550A (en) | Code converter | |
| JPH0637854A (en) | Data transmitter | |
| JPH01314021A (en) | Mbnb code conversion system | |
| JPS61283240A (en) | Coding system |