JPH05160738A - Cmi decoding system - Google Patents

Cmi decoding system

Info

Publication number
JPH05160738A
JPH05160738A JP34797291A JP34797291A JPH05160738A JP H05160738 A JPH05160738 A JP H05160738A JP 34797291 A JP34797291 A JP 34797291A JP 34797291 A JP34797291 A JP 34797291A JP H05160738 A JPH05160738 A JP H05160738A
Authority
JP
Japan
Prior art keywords
output
phase
positive
cmi
code
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.)
Pending
Application number
JP34797291A
Other languages
Japanese (ja)
Inventor
Takeo Kusama
武夫 草間
Makoto Hasegawa
誠 長谷川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kokusai Denki Electric Inc
Original Assignee
Hitachi Denshi KK
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hitachi Denshi KK filed Critical Hitachi Denshi KK
Priority to JP34797291A priority Critical patent/JPH05160738A/en
Publication of JPH05160738A publication Critical patent/JPH05160738A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)

Abstract

(57)【要約】 【目的】 CMI符号の入力極性にかかわりなく,常に
正しく復合することが可能なCMI復合方式を提供す
る。 【構成】 CMI符号の変化点に位相同期し,くり返し
周期がCMI符号のくり返し周期の1/2に等しい位相
同期パルスを作成し,これを2進カウンタで分周し正相
及び逆相の分周出力を得る。一方,CMI符号でくり返
し周期の1/2以上同一極性が継続する場合に出力を
“1”とする同一極性検出出力と正相及び逆相分周出力
との論理積をとり,正相側論理積出力の方が逆相側論理
積出力よりも“1”の頻度が高くなるように分周出力の
位相を制御して,正相側分周出力が“1”の時点で同一
極性検出出力を判別することによりCMI符号を復合す
る。
(57) [Abstract] [Purpose] To provide a CMI decompression method capable of always correctly decomposing regardless of the input polarity of a CMI code. [Structure] A phase synchronization pulse that is phase-synchronized with the changing point of the CMI code and has a repetition cycle equal to 1/2 of the repetition cycle of the CMI code is divided by a binary counter and divided into positive and negative phases. Get the lap output. On the other hand, when the CMI code has the same polarity for more than ½ of the repetition cycle, the logical product of the same polarity detection output that sets the output to “1” and the positive phase and negative phase frequency division outputs is calculated, and the positive phase side logic is obtained. The phase of the frequency-divided output is controlled so that the product output is more frequently "1" than the negative-phase side logical product output, and the same polarity detection output is output when the positive-phase side frequency-divided output is "1". The CMI code is restored by determining

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はCMI(コーデド・マー
ク・インバージョン)符号の復合方式に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CMI (coded mark inversion) code decoding system.

【0002】[0002]

【従来の技術】データ符号を平衡対ケーブルを用いて伝
送する場合は,直流分がなく,タイミング成分をもつC
MI符号等に変換するのが一般的である。CMI符号は
図3に示すようにデータ“0”に対応させて“01”
(中点で極性が“0”から“1”に変わる。)を,デー
タ“1”に対応させて“00”または“11”を交互に
送るものである。これを受信してもとのデータ符号を復
合するためには,CMI符号の立下り点を検出(図3の
正常接続)し,符号のくり返し周期に等しいパルスを出
力する位相同期ループ回路に同期をかけ,符号の境界を
認識し同期出力パルスを基準にCMI符号の前半,後半
で極性が同じか,異るかを判別し,符号の“1”,
“0”を判定する方式が用いられている。
2. Description of the Related Art When a data code is transmitted using a balanced pair cable, there is no DC component and C having a timing component.
Generally, it is converted into MI code or the like. The CMI code is "01" corresponding to the data "0" as shown in FIG.
(The polarity changes from "0" to "1" at the middle point), and "00" or "11" is alternately sent in correspondence with the data "1". In order to recover the original data code by receiving this, the falling point of the CMI code is detected (normal connection in FIG. 3) and synchronized with the phase locked loop circuit which outputs a pulse equal to the code repetition period. , The boundary of the code is recognized, and it is determined whether the polarities are the same or different in the first half and the second half of the CMI code based on the sync output pulse.
A method of determining "0" is used.

【0003】[0003]

【発明が解決しようとする課題】先にのべた従来方式
で,伝送路の平衡対ケーブルのチップ,リングを入れ替
えて逆に接続した場合についてみると,図3の
FIG. 3 shows the case of replacing the tips and rings of the balanced pair of cables in the transmission line with the above-mentioned conventional method.

【逆接続時】に示したように,立下り検出出力は必ずし
も符号の切りかわり点(境界)を示さず,CMIの復合
が不可能になってしまうという欠点があった。本発明は
上記の従来方式の欠点を除去し,逆接続の場合でもCM
Iの復合を可能とすることを目的とする。
As shown in [at the time of reverse connection], the trailing edge detection output does not always show the switching point (boundary) of the code, and there is a drawback that the CMI cannot be restored. The present invention eliminates the above-mentioned drawbacks of the conventional method, and enables CM even in the case of reverse connection.
The purpose is to enable the reconstruction of I.

【0004】[0004]

【課題を解決するための手段】上記目的の達成のため,
本発明では,まずCMIの立上り点も含めた全ての変化
点を検出し,周期がデータ符号のくり返し周期の1/2
で上記の変化点に位相同期したパルスを発生させる。次
に,このパルスをクロック入力として2分周し,くり返
し周期がデータ符号のくり返し周期に等しい正相及び逆
相の分周出力を得るが,入力クロックを1クロック除去
し,分周出力とCMI符号の位相関係を180度変えら
れる機能ももたせておく。一方,CMI符号で,符号の
くり返し周期の1/2以上の間同一極性が継続する場合
に出力を“1”とする検出回路をもうけ,検出出力と正
相,逆相の各分周出力との論理積をとり,正相側論理積
出力の“1”の発生頻度が逆相側より多くなるように,
分周出力の位相を制御する。
[Means for Solving the Problems] In order to achieve the above object,
In the present invention, first, all the changing points including the rising point of the CMI are detected, and the cycle is 1/2 of the repetition cycle of the data code.
Generates a pulse that is phase-synchronized with the above change point. Next, this pulse is divided by 2 with the clock input to obtain frequency-divided outputs of the positive and negative phases whose repetition period is equal to the repetition period of the data code. However, one clock of the input clock is removed and the divided output and CMI are obtained. It also has a function of changing the phase relationship of the codes by 180 degrees. On the other hand, in the CMI code, a detection circuit is provided to set the output to “1” when the same polarity continues for ½ or more of the code repetition period, and the detection output and the positive and negative phase-divided outputs are provided. AND of the positive phase side logical product output "1" is generated more frequently than the negative phase side,
Controls the phase of the divided output.

【0005】[0005]

【作用】以上の結果,CMI符号の特性から,正相分周
出力の“1”の区間がCMI符号の後半の区間に一致す
ることとなり,この区間で前区間との極性の一致を判別
することによりCMI符号の復合が可能となる。
As a result of the above, from the characteristics of the CMI code, the "1" section of the positive phase frequency division output coincides with the latter half section of the CMI code, and it is determined in this section whether the polarities coincide with the preceding section. As a result, the CMI code can be restored.

【0006】[0006]

【実施例】以下,本発明の一実施例を図面を用いて詳細
に説明する。図1は本発明の一実施例を示すCMI復合
方式のブロック図であり,図2はその動作の概略を示す
動作波形図である。 図1のブロック図は変化点検出部
1,デジタル位相同期ループ回路2,シフトレジスタ
3,4,排他的論理和回路5,アンドゲート6,2進カ
ウンタ7,正相側論理積回路8,逆相側論理積回路9,
アップダウンカウンタ10,クロック除去用フリップフ
ロップ11,復合用フリップフロップ12等から構成さ
れている。図1で,クロックパルスは入力CMIのデー
タ符号のくり返し周波数の整数倍(例えば32倍)のく
り返し周波数をもつパルスである。変化点検出部1は2
段のシフトレジスタと排他的論理和回路から構成され,
CMI入力信号を上記クロックを用いてシフトし,シフ
トレジスタの1段目の出力と2段目の出力との排他的論
理和をとることによりCMIの変化点に同期した検出出
力を得る。次に位相同期ループ回路2において,上記検
出出力を位相比較入力とし,図2に示すように検出出力
に位相同期し,くり返し周期がCMI符号周期の1/2
に等しい同期パルスを作成する。続いて2段のシフトレ
ジスタ3,4と排他的論理和回路5とからなる同一極性
検出回路において,CMI符号が符号周期の1/2以上
の間,同一極性が継続する場合,図2に示す検出出力を
得る。一方,2進カウンタ7で位相同期ループ回路2の
出力の位相同期パルスを分周して正相及び逆相の分周出
力を得ているが,クロック入力回路にアンドゲート6を
持っており2進カウンタ7の入力クロックである位相同
期パルスを1クロック除去し,CMI符号と正相及び逆
相分周出力との位相関係を180度変えられるようにな
っている。また,CMI符号と正相,逆相分周出力との
位相関係を正しく保つため,アップダウン(以後U/D
と記す)カウンタ10,正相側及び逆相側論理積回路
8,9,クロック除去用フリップフロップ11等を備え
ている。正相側論理積回路8では,同一極性検出出力と
正相分周出力との論理積をとり,出力はU/Dカウンタ
10のダウン側入力に加えられている。逆相側論理積回
路9では同一極性検出出力と逆相分周出力との論理積を
とり,出力はU/Dカウンタのアップ側入力に接続され
ている。U/Dカウンタを4進とした場合について述べ
ると,正相分周出力がCMI符号の前半で“1”となっ
ている期間(図2のクロック除去パルスが“0”となる
前の区間)では逆相側論理積出力が“1”となる回数が
正相側論理積出力が“1”となる回数よりも多くなり,
U/Dカウンタは“11”までアップカウントし,この
状態で逆相側論理積出力に“1”が出力されると,クロ
ック除去用フリップフロップ11が1クロックの間出力
を出し,U/Dカウンタは“00”の状態にもどる。以
上の結果,2進カウンタ7は入力のアンドゲート6でク
ロックが除去されるため,1クロックの間歩進を停止
し,CMI符号と正相及び逆相分周出力との位相関係は
180度変ることになり,CMI符号の後半で正相分周
出力が“1”となる。従ってこれ以降は正相側論理積出
力が“1”となる頻度が逆相側出力より高くなり,U/
Dカウンタは“00”付近の状態を保持し,正しい位相
関係が保たれる。なお,U/Dカウンタが“00”の状
態でダウンカウント入力が入っても“00”の状態は変
えないものとする。CMI符号と正相分周出力との位相
関係が正しく保たれた状態で,図1に示すように,復合
用フリップフロップ12において,CMI符号の後半の
期間に同一極性検出出力の1,0を識別することによ
り,正しくデータ符号が復合される。なお,上記の説明
で,正相側分周出力と逆相側分周出力とはそっくり入れ
かえても同じ動作となることは明らかである。
An embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram of a CMI decoding method showing an embodiment of the present invention, and FIG. 2 is an operation waveform diagram showing an outline of the operation. The block diagram of FIG. 1 shows a change point detection unit 1, a digital phase locked loop circuit 2, a shift register 3, 4, an exclusive OR circuit 5, an AND gate 6, a binary counter 7, a positive phase side AND circuit 8, and an inverse circuit. Phase side AND circuit 9,
It is composed of an up / down counter 10, a clock removal flip-flop 11, a decoding flip-flop 12, and the like. In FIG. 1, the clock pulse is a pulse having a repetition frequency that is an integral multiple (for example, 32 times) of the repetition frequency of the data code of the input CMI. The change point detection unit 1 has 2
Consisting of a shift register of stages and an exclusive OR circuit,
The CMI input signal is shifted using the above clock, and the exclusive output of the output of the first stage and the output of the second stage of the shift register is exclusive-ORed to obtain a detection output in synchronization with the change point of CMI. Next, in the phase-locked loop circuit 2, the above-mentioned detection output is used as a phase comparison input, the phase is synchronized with the detection output as shown in FIG. 2, and the repetition cycle is 1/2 of the CMI code cycle.
Create a sync pulse equal to. Subsequently, in the same polarity detection circuit including the two-stage shift registers 3 and 4 and the exclusive OR circuit 5, the case where the same polarity continues while the CMI code is 1/2 or more of the code period is shown in FIG. Obtain the detection output. On the other hand, the binary counter 7 divides the phase-locked pulse output from the phase-locked loop circuit 2 to obtain the positive and negative phase-divided outputs, but has the AND gate 6 in the clock input circuit. One clock of the phase synchronization pulse which is the input clock of the binary counter 7 is removed, and the phase relationship between the CMI code and the positive phase and negative phase divided outputs can be changed by 180 degrees. In addition, in order to maintain the correct phase relationship between the CMI code and the positive-phase and negative-phase frequency-divided outputs, up / down (hereinafter U / D)
A counter 10, positive-phase side and negative-phase side AND circuits 8, 9, a clock removal flip-flop 11 and the like. The positive-phase side AND circuit 8 takes the logical product of the same polarity detection output and the positive-phase frequency division output, and the output is added to the down side input of the U / D counter 10. The opposite-phase side AND circuit 9 takes the logical product of the same polarity detection output and the opposite-phase frequency division output, and the output is connected to the up-side input of the U / D counter. In the case where the U / D counter is set to the quaternary, the period in which the positive phase frequency division output is "1" in the first half of the CMI code (the period before the clock removal pulse in Fig. 2 becomes "0") Then, the number of times the negative-phase side logical product output becomes “1” becomes larger than the number of times that the positive-phase side logical product output becomes “1”,
The U / D counter counts up to “11”, and when “1” is output to the negative-phase side AND output in this state, the clock removal flip-flop 11 outputs an output for one clock, and U / D The counter returns to the "00" state. As a result, since the binary counter 7 has its clock removed by the input AND gate 6, the stepping is stopped for one clock, and the phase relationship between the CMI code and the positive phase and negative phase divided outputs is 180 degrees. Therefore, the positive phase frequency division output becomes "1" in the latter half of the CMI code. Therefore, after that, the frequency at which the logical product output on the positive phase side becomes “1” becomes higher than the output on the negative phase side, and U /
The D counter holds the state near "00", and the correct phase relationship is maintained. Even if a down count input is input while the U / D counter is "00", the state of "00" is not changed. With the phase relationship between the CMI code and the normal phase frequency division output maintained correctly, as shown in FIG. 1, the decoding flip-flop 12 outputs 1, 0 of the same polarity detection output in the latter half period of the CMI code. By identifying, the data code is correctly decoded. In the above description, it is clear that the normal phase frequency division output and the negative phase side frequency division output have the same operation even if they are replaced with each other.

【0007】[0007]

【発明の効果】以上のべたように,本発明によれば,C
MI符号が逆極性で接続された場合でもデータ符号を正
しく復合できることから,平衡対ケーブル等を用いて伝
送する場合,チップ,リング等の極性を意識せずにす
み,布設工事等も極めて容易となる。また,本復合方式
は全てデジタル回路で構成でき集積回路化が容易であ
り,装置の価格低減の効果も大きい。
As described above, according to the present invention, C
Even if the MI code is connected with the opposite polarity, the data code can be correctly restored. Therefore, when transmitting using a balanced pair cable, etc., it is not necessary to be aware of the polarity of the chip, ring, etc., and the installation work is extremely easy. Become. In addition, this decoupling method can be configured as a digital circuit and can be easily integrated into an integrated circuit, which has a great effect on cost reduction of the device.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】ブロック図の概略の動作を示す波形図である。FIG. 2 is a waveform diagram showing a schematic operation of the block diagram.

【図3】CMI波形とタイミング成分を示す波形図であ
る。
FIG. 3 is a waveform diagram showing CMI waveforms and timing components.

【符号の説明】[Explanation of symbols]

1 変化点検出部 2 デジタル位相同期ループ回路 3,4 シフトレジスタ 5 排他的論理和回路 6 アンドゲート 7 2進カウンタ 8 正相側論理積回路 9 逆相側論理積回路 10 アップダウンカウンタ 11 クロック除去用フリップフロップ 12 復合用フリップフロップ 1 Change Point Detection Unit 2 Digital Phase Locked Loop Circuit 3, 4 Shift Register 5 Exclusive OR Circuit 6 AND Gate 7 Binary Counter 8 Positive Phase Side AND Circuit 9 Reverse Phase Side AND Circuit 10 Up Down Counter 11 Clock Removal Flip Flop 12 Decoding Flip Flop

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 CMI符号の変化点に位相同期し,くり
返し周期がCMI符号のくり返し周期の1/2に等しい
位相同期パルスを作成し,これを2分周し正相及び逆相
の分周出力を得るとともに,CMI符号の中で同一極性
がくり返し周期の1/2以上継続する場合に出力を
“1”とする同一極性極性検出出力と正相及び逆相の分
周出力との論理積をとり,正(逆)相側論理積出力の方
が逆(正)相側論理積出力よりも“1”の頻度が高くな
るように分周出力の位相を制御し,正(逆)相分周出力
が“1”の時点で同一極性検出出力を判別することを特
徴とするCMI復合方式。
1. A phase synchronization pulse which is phase-synchronized with a changing point of a CMI code and whose repetition period is equal to ½ of the repetition period of the CMI code is divided into two and divided into a positive phase and a negative phase. The logical product of the same polarity polarity detection output that sets the output to "1" when the same polarity continues in the CMI code for 1/2 or more of the repeating cycle and the frequency division outputs of the positive and negative phases The phase of the frequency division output is controlled so that the logical product output on the positive (reverse) phase side has a higher frequency of "1" than the logical product output on the reverse (positive) phase side. A CMI decoding method characterized in that the same polarity detection output is discriminated when the frequency division output is "1".
JP34797291A 1991-12-03 1991-12-03 Cmi decoding system Pending JPH05160738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34797291A JPH05160738A (en) 1991-12-03 1991-12-03 Cmi decoding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34797291A JPH05160738A (en) 1991-12-03 1991-12-03 Cmi decoding system

Publications (1)

Publication Number Publication Date
JPH05160738A true JPH05160738A (en) 1993-06-25

Family

ID=18393866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34797291A Pending JPH05160738A (en) 1991-12-03 1991-12-03 Cmi decoding system

Country Status (1)

Country Link
JP (1) JPH05160738A (en)

Similar Documents

Publication Publication Date Title
JPS60227541A (en) Digital phase locked loop type decoder
JPH11330970A (en) Manchester coded data decoding device
JPH03191633A (en) Data transfer system
JPS62188446A (en) Synchronizing detection circuit
JPH07131448A (en) Phase comparing circuit
US4740998A (en) Clock recovery circuit and method
US4599735A (en) Timing recovery circuit for synchronous data transmission using combination of L Bi phase and modified biphase codes
JPH05160738A (en) Cmi decoding system
US5510786A (en) CMI encoder circuit
US4809301A (en) Detection apparatus for bi-phase signals
JPH0194723A (en) Frequency-dividing device for digital signal
JPH0644756B2 (en) Synchronous clock generation circuit
KR970024612A (en) Digital sync loop
JP2005142615A (en) Manchester code data receiver
JPS642306B2 (en)
JPH1168861A (en) Simultaneous bidirectional transmission / reception method and simultaneous bidirectional transmission / reception circuit
JPH08181683A (en) Code conversion circuit
KR940004997Y1 (en) Error detection device of digital data signal
JPH10135838A (en) CMI / NRZ conversion circuit
JPH08204692A (en) Transmission signal clock timing extraction method
JPH06140926A (en) Phase comparator circuit
JPH0548588A (en) Parity block synchronization method
JPS63310222A (en) Ending error self-monitor type nrz/cmi code converter
JPH0787379B2 (en) CMI code conversion circuit
JPH0574255B2 (en)