JPH04316126A - Code converting device - Google Patents

Code converting device

Info

Publication number
JPH04316126A
JPH04316126A JP10810491A JP10810491A JPH04316126A JP H04316126 A JPH04316126 A JP H04316126A JP 10810491 A JP10810491 A JP 10810491A JP 10810491 A JP10810491 A JP 10810491A JP H04316126 A JPH04316126 A JP H04316126A
Authority
JP
Japan
Prior art keywords
code
nrz
bit cell
circuit
logic circuit
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.)
Granted
Application number
JP10810491A
Other languages
Japanese (ja)
Other versions
JP3044817B2 (en
Inventor
Hiroshi Abe
浩 阿部
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP10810491A priority Critical patent/JP3044817B2/en
Publication of JPH04316126A publication Critical patent/JPH04316126A/en
Application granted granted Critical
Publication of JP3044817B2 publication Critical patent/JP3044817B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To obtain a small-sized code converting device which is excellent in easiness. CONSTITUTION:When an NRZ code is inputted, the 1st and 2nd logic circuits respectively share the '0' and '1' conversion of an FM0 code and the 3rd logic circuit obtains the FM0 code by EXNORing the converted '0' and '1'. Then the 5th and 6th logic circuit respectively share the '1' and '0' conversion of an FM1 code and the 7th logic circuit obtains the FM1 code. When the FM0 or FM1 code is inputted, the 1st position detecting means 121 latches the FM1 code at the 1/4 position of its bit cell and the 2nd position detecting means 122 latches the FM0 code at the 3/4 position of its bit cell. The 4th logic circuit 123 obtains the NRZ code by NORing the exclusive OR of the outputs and latching the outputs at a bit cell changing point.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、パーソナルコンピュ
ータ等に接続される符号変換装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code conversion device connected to a personal computer or the like.

【0002】0002

【従来の技術】図2は従来の符号変換装置の一構成例を
示すブロック図であり、21はパーソナルコンピュータ
等からなる端末、22は符号変換装置である。端末21
と符号変換装置22はインタフェース線Aで結合されて
いる。インタフェース線AはRS−232C又はRS−
422等であり、符号はNRZを使用している。符号変
換装置22はインタフェース線Aの規格に適合したドラ
イバー及びレシーバ部23を介してシリアルI/O・1
チャンネル目24に接続されている。また、インタフェ
ース線Bで他装置が符号変換装置22に結合されている
。インタフェース線Bは特殊インタフェースであり、符
号はFM0またはFM1を使用している。符号変換装置
22はインタフェース線Bに適合したドライバー及びレ
シーバ部28を介してシリアルI/O・2チャンネル目
27に接続されている。シリアルI/O・1チャンネル
目24及びシリアルI/O・2チャンネル目27は内部
バスによりマイクロプロセッサ25とメモリ26に接続
される。
2. Description of the Related Art FIG. 2 is a block diagram showing an example of the configuration of a conventional code conversion device, in which numeral 21 is a terminal such as a personal computer, and 22 is a code conversion device. Terminal 21
and code conversion device 22 are coupled by an interface line A. Interface line A is RS-232C or RS-
422, etc., and uses the code NRZ. The code conversion device 22 converts the serial I/O via the driver and receiver section 23 that conforms to the standards of the interface line A.
It is connected to channel number 24. Further, other devices are coupled to the code conversion device 22 via an interface line B. Interface line B is a special interface and uses the code FM0 or FM1. The code conversion device 22 is connected to the serial I/O second channel 27 via a driver and receiver section 28 compatible with the interface line B. Serial I/O 1st channel 24 and serial I/O 2nd channel 27 are connected to microprocessor 25 and memory 26 by an internal bus.

【0003】端末21からのNRZ符号送信データはシ
リアルI/O・1チャンネル目24でシリアルパラレル
変換され、マイクロプロセッサ25の制御で、メモリ2
6にバッファリングされ、シリアルI/O・2チャンネ
ル目27でパラレル変換され、FM0又はFM1符号送
信データで前記他装置に送信される。
The NRZ code transmission data from the terminal 21 is converted from serial to parallel by the serial I/O 1st channel 24, and is stored in the memory 2 under the control of the microprocessor 25.
6, is converted into parallel by the serial I/O second channel 27, and is transmitted to the other device as FM0 or FM1 code transmission data.

【0004】逆に他装置からのFM0又はFM1符号送
信データは、シリアルI/O・2チャンネル目27でシ
リアルパラレル変換され、マイクロプロセッサ25の制
御で、メモリ26にバッファリングされ、シリアルI/
O・1チャンネル目24でパラレルシリアル変換され、
NRZ符号送信データで端末21に送信される。
On the contrary, FM0 or FM1 code transmission data from another device is serial-parallel converted by the serial I/O second channel 27, buffered in the memory 26 under the control of the microprocessor 25, and sent to the serial I/O.
Parallel-to-serial conversion is performed on O.1 channel 24,
It is transmitted to the terminal 21 as NRZ code transmission data.

【0005】図3はNRZ符号、FM0符号及びFM1
符号の例である。NRZ符号はデータビットが“1“の
時はハイレベルの状態で、“0“の時はロウレベル状態
となる。FM0符号はビットセルの開始点で必ずレベル
が反転し、データビットが“0“であればビットセルの
中心でさらにレベルを反転させ、“1“であればそのま
まの状態を継続する。FM1符号はビットセルの開始点
で必ずレベルが反転し、データビットが“1“であれば
ビットセルの中心でさらにレベルを反転させ、“0“で
あればそのままの状態を継続する。
FIG. 3 shows the NRZ code, FM0 code, and FM1 code.
This is an example of a code. The NRZ code is at a high level when the data bit is "1", and is at a low level when the data bit is "0". In the FM0 code, the level is always inverted at the start point of the bit cell, and if the data bit is "0", the level is further inverted at the center of the bit cell, and if it is "1", the state continues as it is. In the FM1 code, the level is always inverted at the starting point of the bit cell, and if the data bit is "1", the level is further inverted at the center of the bit cell, and if it is "0", the state continues as it is.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記構
成の符号変換装置では、2つのチャンネルを持つシリア
ルI/O、マイクロプロセッサ、メモリ等が必要となり
、ハードウェア量が大きくなり、さらにはマイクロプロ
セッサを動作させるソフトウェア(マイクロプログラム
)の開発が必要となるという欠点があった。
However, the code conversion device with the above configuration requires a serial I/O having two channels, a microprocessor, memory, etc., which increases the amount of hardware and furthermore requires a microprocessor. The drawback was that it required the development of software (microprograms) to make it work.

【0007】この発明が解決しようとする課題は、以上
述べた問題点を除去し、簡易性の優れた装置を提供する
ことである。
The problem to be solved by the present invention is to eliminate the above-mentioned problems and provide a device with excellent simplicity.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するため
に、本発明に係る符号変換装置は、NRZ符号とFM0
符号とを相互に符号変換するものであって、NRZ符号
の“0”ビットセルに対してそのビットセルの中心で反
転させる第1の論理回路と、NRZ符号の“1“ビット
セルに対してビットセルごとに反転させる第2の論理回
路と、前記第1の論理回路出力と前記第2の論理回路出
力との排他的論理和の否定出力よりFM0符号を得る第
3の論理回路とを備えたNRZ/FM0符号変換回路と
、FM0符号をそのビットセルの1/4位置でラッチす
る第1の位置検出手段と、FM0符号をそのビットセル
の3/4位置でラッチする第2の位置検出手段と、前記
第1の位置検出手段及び第2の位置検出手段との出力の
排他的論理和の否定をビットセル変化点においてラッチ
してNRZ符号を得る第4の論理回路とを備えたFM0
/NRZ符号変換回路とからなることを特徴とするもの
である。
[Means for Solving the Problems] In order to solve the above problems, a code conversion device according to the present invention converts NRZ codes and FM0 codes.
A first logic circuit that inverts the code at the center of the bit cell for a "0" bit cell of the NRZ code, and a logic circuit for each bit cell for a "1" bit cell of the NRZ code. NRZ/FM0 comprising a second logic circuit for inverting, and a third logic circuit that obtains an FM0 code from a negative output of an exclusive OR of the first logic circuit output and the second logic circuit output. a code conversion circuit; a first position detection means for latching the FM0 code at a 1/4 position of the bit cell; a second position detection means for latching the FM0 code at a 3/4 position of the bit cell; and a fourth logic circuit that obtains an NRZ code by latching the negative of the exclusive OR of the output with the position detecting means and the second position detecting means at the bit cell change point.
/NRZ code conversion circuit.

【0009】また、上記第1の論理回路に代えてNRZ
符号の“1”ビットセルに対してそのビットセルの中心
で反転させる第5の論理回路を用い、上記第2の論理回
路に代えてNRZ符号の“0“ビットセルに対してビッ
トセルごとに反転させる第6の論理回路を用い、上記第
3の論理回路に代えて前記第5の論理回路出力と前記第
6の論理回路出力との排他的論理和の否定出力よりFM
1符号を得る第7の論理回路とを備えたNRZ/FM1
符号変換回路を形成してもよい。そして、上記FM0/
NRZ符号変換回路をFM1符号を入力してFM1/N
RZ符号変換回路として構成してもよい。
[0009] Also, instead of the first logic circuit, an NRZ
A fifth logic circuit that inverts the "1" bit cell of the code at the center of the bit cell is used, and a sixth logic circuit that inverts the "0" bit cell of the NRZ code for each bit cell instead of the second logic circuit. FM from the negative output of the exclusive OR of the fifth logic circuit output and the sixth logic circuit output instead of the third logic circuit.
NRZ/FM1 with a seventh logic circuit that obtains the 1 code.
A code conversion circuit may also be formed. And the above FM0/
FM1/N by inputting the FM1 code to the NRZ code conversion circuit
It may also be configured as an RZ code conversion circuit.

【0010】0010

【作用】図1(a)において、NRZ/FM0符号変換
回路11にNRZ符号が入力すると、第1の論理回路1
11はNRZ符号の“0”ビットセルに対してそのビッ
トセルの中心で反転させる。第2の論理回路112はN
RZ符号の“1“ビットセルに対してビットセルごとに
反転させる。第3の論理回路113は前記第1の論理回
路111の出力と前記第2の論理回路112の出力との
排他的論理和の否定を出力する。この出力がFM0符号
となり、NRZ/FM0符号変換される。
[Operation] In FIG. 1(a), when an NRZ code is input to the NRZ/FM0 code conversion circuit 11, the first logic circuit 1
11 inverts a "0" bit cell of the NRZ code at the center of the bit cell. The second logic circuit 112 is N
The "1" bit cell of the RZ code is inverted for each bit cell. The third logic circuit 113 outputs the negative of the exclusive OR of the output of the first logic circuit 111 and the output of the second logic circuit 112. This output becomes the FM0 code and is converted into NRZ/FM0 code.

【0011】FM0/NRZ符号変換回路12にFM0
符号が入力すると、第1の位置検出手段121はFM0
符号をそのビットセルの1/4位置でラッチする。第2
の位置検出手段122はFM0符号をそのビットセルの
3/4位置でラッチする。これらの出力を第4の論理回
路123で、排他的論理和の否定をとりビットセル変化
点においてラッチしてNRZ符号を得る。これによりF
M0/NRZ符号変換される。
FM0/NRZ code conversion circuit 12
When the code is input, the first position detection means 121 detects FM0.
Latch the code at the 1/4 position of its bit cell. Second
The position detection means 122 latches the FM0 code at the 3/4 position of the bit cell. A fourth logic circuit 123 performs exclusive OR on these outputs and latches them at bit cell change points to obtain an NRZ code. This allows F
M0/NRZ code conversion is performed.

【0012】図1(b)において、NRZ/FM1符号
変換回路13にNRZ符号が入力すると、第5の論理回
路131はNRZ符号の“1”ビットセルに対してその
ビットセルの中心で反転させる。第6の論理回路132
はNRZ符号の“0“ビットセルに対してビットセルご
とに反転させる。第7の論理回路133は前記第5の論
理回路131の出力と前記第6の論理回路132の出力
との排他的論理和の否定を出力する。この出力がFM1
符号となり、NRZ/FM1符号変換される。
In FIG. 1B, when the NRZ code is input to the NRZ/FM1 code conversion circuit 13, the fifth logic circuit 131 inverts the "1" bit cell of the NRZ code at the center of the bit cell. Sixth logic circuit 132
The "0" bit cell of the NRZ code is inverted for each bit cell. The seventh logic circuit 133 outputs the negative of the exclusive OR of the output of the fifth logic circuit 131 and the output of the sixth logic circuit 132. This output is FM1
code, and is converted into NRZ/FM1 code.

【0013】FM1/NRZ符号変換回路14にFM1
符号が入力すると、第1の位置検出手段121及び第2
の位置検出手段122は図1(a)と同様に作用し、第
4の論理回路123からNRZ符号を得て、FM1/N
RZ符号変換するように作用する。
FM1/NRZ code conversion circuit 14
When the code is input, the first position detection means 121 and the second
The position detecting means 122 operates in the same manner as in FIG. 1(a), obtains the NRZ code from the fourth logic circuit 123,
It acts to perform RZ code conversion.

【0014】[0014]

【実施例】以下この発明に係る符号変換装置の実施例を
図により説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of a code conversion apparatus according to the present invention will be explained with reference to the drawings.

【0015】[第1の実施例][First embodiment]

【0016】図4はこの発明の第1の実施例を示すブロ
ック図であって、31はパーソナルコンピュータ等から
なる端末、32は符号変換装置である。端末31と符号
変換装置32とはインタフェース線Cで結合されている
。インタフェース線CはRS−232C又はRS−42
2等であり、符号はNRZを使用している。また、符号
変換装置32はインタフェース線Dで他装置とも接続さ
れている。インタフェース線Dは特殊インタフェースで
あり、符号はFM0を使用している。符号変換装置32
は、インタフェース線Cの規格に適合したドライバー及
びレシーバ部33とインタフェース線Dに適合したドラ
イバー及びレシーバー部34とを介してNRZ/FM0
変換回路11とFM0/NRZ変換回路12に接続され
ている。
FIG. 4 is a block diagram showing a first embodiment of the present invention, in which 31 is a terminal such as a personal computer, and 32 is a code conversion device. The terminal 31 and the code conversion device 32 are coupled by an interface line C. Interface line C is RS-232C or RS-42
2, and uses the code NRZ. The code conversion device 32 is also connected to other devices via an interface line D. Interface line D is a special interface, and its code is FM0. Code conversion device 32
The NRZ/FM0
It is connected to the conversion circuit 11 and the FM0/NRZ conversion circuit 12.

【0017】NRZ/FM0変換回路11の詳細実施例
の回路図を図5に示す。図6は図5の回路図に対応した
タイムチャートである。図5において、41はDフリッ
プフロップ、42はJKフリップフロップ、43はイン
バータ、44はOR回路、45はEXNORである。D
フリップフロップ41とOR回路44で図1の第1の論
理回路111を構成し、Dフリップフロップ41、イン
バータ43及びJKフリップフロップ42で図1の第2
の論理回路112を構成し、EXNOR45は図1の第
3の論理回路113を構成する。
A circuit diagram of a detailed embodiment of the NRZ/FM0 conversion circuit 11 is shown in FIG. FIG. 6 is a time chart corresponding to the circuit diagram of FIG. In FIG. 5, 41 is a D flip-flop, 42 is a JK flip-flop, 43 is an inverter, 44 is an OR circuit, and 45 is an EXNOR. D
The flip-flop 41 and the OR circuit 44 constitute the first logic circuit 111 in FIG. 1, and the D flip-flop 41, inverter 43, and JK flip-flop 42 constitute the second
EXNOR45 constitutes the third logic circuit 113 in FIG.

【0018】図6を参照して図5の動作を説明する。N
RZ符号の送信データ(NRZSD信号)は、送信クロ
ック(ST1信号)と同期がとられている。NRZSD
信号はDフリップフロップ41によりラッチされ、Dフ
リップフロップ出力■のように1/2ビット遅延する。 OR回路44はDフリップフロップ出力■とST1信号
によりOR出力■を得る。一方、ST1信号はインバー
タ43で反転され逆相の
The operation of FIG. 5 will be explained with reference to FIG. N
The transmission data of the RZ code (NRZSD signal) is synchronized with the transmission clock (ST1 signal). NRZSD
The signal is latched by the D flip-flop 41 and delayed by 1/2 bit like the D flip-flop output (2). The OR circuit 44 obtains an OR output ■ from the D flip-flop output ■ and the ST1 signal. On the other hand, the ST1 signal is inverted by the inverter 43 and has the opposite phase.

【0019】[0019]

【外1】[Outside 1]

【0020】信号となる。Dフリップフロップ出力■を
[0020] It becomes a signal. D flip-flop output ■

【0021】[0021]

【外2】[Outside 2]

【0022】信号とJKフリップフロップ42にて処理
すると、JKFF出力■を得る。Dフリップフロップ出
力■とJKFF出力■はEXNOR45により、FM0
符号の送信データ(FM0SD信号)に変換される。こ
のように、NRZ符号からFM0符号の変換が行なわれ
る。
When the signal is processed by the JK flip-flop 42, a JKFF output (2) is obtained. D flip-flop output ■ and JKFF output ■ are set to FM0 by EXNOR45.
It is converted into code transmission data (FM0SD signal). In this way, the conversion from the NRZ code to the FM0 code is performed.

【0023】FM0/NRZ変換回路12の詳細実施例
のブロック図を図7に示す。図8は図7のブロック図に
対応したタイムチャートである。
A block diagram of a detailed embodiment of the FM0/NRZ conversion circuit 12 is shown in FIG. FIG. 8 is a time chart corresponding to the block diagram of FIG.

【0024】51は通信速度の64倍のクロックを生成
するクロック生成回路であり、サンプリング用としての
基本クロックを生成している。52はFM0符号のデー
タ(FM0RD信号)のビットセル開始の変化点を検出
する変化点検出回路であり、ビットセル検出によりパル
ス(e)を出力する。53はビットセル開始からビット
セルの1/4位置を検出するカウンタ回路であり、1/
4位置を示すパルス(a)を出力するとともに、1/4
位置でのFM0RD信号のラッチデータ(c)を出力す
る。すなわち、このカウンタ回路53は図1における第
1の位置検出手段121を構成する。
A clock generation circuit 51 generates a clock 64 times the communication speed, and generates a basic clock for sampling. 52 is a change point detection circuit that detects a change point at the start of a bit cell of FM0 code data (FM0RD signal), and outputs a pulse (e) upon bit cell detection. 53 is a counter circuit that detects the 1/4 position of the bit cell from the start of the bit cell;
While outputting the pulse (a) indicating the 4 position,
The latch data (c) of the FM0RD signal at the position is output. That is, this counter circuit 53 constitutes the first position detection means 121 in FIG.

【0025】54はビットセル開始からビットセルの3
/4位置を検出するカウンタ回路であり、3/4位置を
示すパルス(b)を出力するとともに、3/4位置での
FM0RD信号のラッチデータ(d)を出力する。この
カウンタ回路54は図1における第2の位置検出手段1
22を構成する。
54 is the 3rd bit cell from the start of the bit cell.
This is a counter circuit that detects the /4 position, and outputs a pulse (b) indicating the 3/4 position, as well as latch data (d) of the FM0RD signal at the 3/4 position. This counter circuit 54 is the second position detecting means 1 in FIG.
22.

【0026】55はRT信号としてNRZ符号のデータ
(NRZRD信号)の同期クロックを送出するRTクロ
ック送出回路である。56はカウンタ回路53からのラ
ッチデータ(c)とカウンタ回路54からのラッチデー
タ(d)を比較する比較回路であり、ラッチデータ(c
),(d)のEXNORデータを変化点パルス(e)で
ラッチしたデータ(f0)を出力する。57はNRZ符
号のデータ(NRZRD信号)を送出するNRZRD送
出回路であり、RTクロック送出送出回路55からのR
T信号の立ち下がりに同期したデータでNRZRD信号
を出力する。これら比較回路56、RTクロック送出回
路55及びNRZRD送出回路57は図1における第4
の論理回路123を構成する。
Reference numeral 55 denotes an RT clock sending circuit that sends out a synchronized clock of NRZ code data (NRZRD signal) as an RT signal. 56 is a comparison circuit that compares the latch data (c) from the counter circuit 53 and the latch data (d) from the counter circuit 54;
), (d) EXNOR data is latched by the changing point pulse (e) and outputs data (f0). 57 is an NRZRD sending circuit that sends out NRZ code data (NRZRD signal);
The NRZRD signal is output as data synchronized with the falling edge of the T signal. These comparison circuit 56, RT clock sending circuit 55, and NRZRD sending circuit 57 are the fourth one in FIG.
A logic circuit 123 is configured.

【0027】以上のように、FM0RD信号のビットセ
ル開始からビットセルの1/4位置と3/4位置でFM
0RD信号が同一の場合、NRZSD信号は“1“であ
り、異なった場合NRZSD信号は“0“となり、図8
に示すタイムチャートのようにFM0符号からNRZ符
号の変換が行なわれる。
As described above, the FM0RD signal starts at the 1/4 position and 3/4 position of the bit cell from the start of the bit cell.
When the 0RD signals are the same, the NRZSD signal is "1", and when they are different, the NRZSD signal is "0", as shown in FIG.
Conversion from FM0 code to NRZ code is performed as shown in the time chart shown in FIG.

【0028】[第2の実施例][Second embodiment]

【0029】図9はこの発明の第2の実施例を示すブロ
ック図であって、31はパーソナルコンピュータ等から
なる端末、62は符号変換装置である。端末31と符号
変換装置62とはインタフェース線Cで結合されている
。インタフェース線CはRS−232C又はRS−42
2等であり、符号はNRZを使用している。また、符号
変換装置62はインタフェース線Dで他装置とも接続さ
れている。インタフェース線Dは特殊インタフェースで
あり、符号はFM1を使用している。符号変換装置62
は、インタフェース線Cの規格に適合したドライバー及
びレシーバ部33とインタフェース線Dに適合したドラ
イバー及びレシーバー部34とを介してNRZ/FM1
変換回路13とFM1/NRZ変換回路14に接続され
ている。
FIG. 9 is a block diagram showing a second embodiment of the present invention, in which 31 is a terminal such as a personal computer, and 62 is a code conversion device. The terminal 31 and the code conversion device 62 are connected by an interface line C. Interface line C is RS-232C or RS-42
2, and uses the code NRZ. The code conversion device 62 is also connected to other devices via an interface line D. Interface line D is a special interface and is designated by FM1. Code conversion device 62
The NRZ/FM1
It is connected to the conversion circuit 13 and the FM1/NRZ conversion circuit 14.

【0030】NRZ/FM1変換回路13の詳細実施例
の回路図を図10に示す。図11は図10の回路図に対
応したタイムチャートである。図10において、71は
Dフリップフロップ、72はJKフリップフロップ、7
3はインバータ、74はOR回路、75はEXNORで
ある。Dフリップフロップ71とOR回路74で図1の
第5の論理回路131を構成し、Dフリップフロップ7
1、インバータ73及びJKフリップフロップ72で図
1の第6の論理回路132を構成し、EXNOR75は
図1の第7の論理回路133を構成する。
A circuit diagram of a detailed embodiment of the NRZ/FM1 conversion circuit 13 is shown in FIG. FIG. 11 is a time chart corresponding to the circuit diagram of FIG. In FIG. 10, 71 is a D flip-flop, 72 is a JK flip-flop, and 7
3 is an inverter, 74 is an OR circuit, and 75 is an EXNOR. The D flip-flop 71 and the OR circuit 74 constitute the fifth logic circuit 131 in FIG.
1, the inverter 73 and the JK flip-flop 72 constitute the sixth logic circuit 132 in FIG. 1, and the EXNOR 75 constitutes the seventh logic circuit 133 in FIG.

【0031】図11を参照して図10の動作を説明する
。NRZ符号の送信データ(NRZSD信号)は、送信
クロック(ST1信号)と同期がとられている。NRZ
SD信号はDフリップフロップ71によりラッチされN
Q端子より、Dフリップフロップ出力■のようにインバ
ートされて1/2ビット遅延する。OR回路74はDフ
リップフロップ出力■とST1信号によりOR出力■を
得る。一方、ST1信号はインバータ73で反転され逆
相の
The operation of FIG. 10 will be explained with reference to FIG. The transmission data of the NRZ code (NRZSD signal) is synchronized with the transmission clock (ST1 signal). NRZ
The SD signal is latched by the D flip-flop 71 and the N
From the Q terminal, the D flip-flop output is inverted like ■ and delayed by 1/2 bit. The OR circuit 74 obtains an OR output ■ from the D flip-flop output ■ and the ST1 signal. On the other hand, the ST1 signal is inverted by the inverter 73 and has the opposite phase.

【0032】[0032]

【外3】[Outer 3]

【0033】信号となる。Dフリップフロップ出力■を
[0033] It becomes a signal. D flip-flop output ■

【0034】[0034]

【外4】[Outside 4]

【0035】信号とJKフリップフロップ72にて処理
すると、JKFF出力■を得る。Dフリップフロップ出
力■とJKFF出力■はEXNOR75により、FM1
符号の送信データ(FM1SD信号)に変換される。こ
のように、NRZ符号からFM1符号の変換が行なわれ
る。
When the signal is processed by the JK flip-flop 72, a JKFF output ■ is obtained. D flip-flop output ■ and JKFF output ■ are FM1 by EXNOR75.
It is converted into code transmission data (FM1SD signal). In this way, conversion from NRZ code to FM1 code is performed.

【0036】FM1/NRZ変換回路14の詳細実施例
のブロック図を図12に示す。FM1/NRZ変換回路
14は第1の実施例の図7に示したFM0/NRZ変換
回路12を用いることができ、各構成部分は図7のもの
と同様である。FM1符号を入力した場合のタイムチャ
ートは図13のようになる。動作は第1の実施例におけ
るFM0/NRZ符号変換回路12と同様であるが、F
M1符号を入力した場合について説明する。
A block diagram of a detailed embodiment of the FM1/NRZ conversion circuit 14 is shown in FIG. The FM0/NRZ conversion circuit 12 shown in FIG. 7 of the first embodiment can be used as the FM1/NRZ conversion circuit 14, and each component is the same as that shown in FIG. The time chart when the FM1 code is input is as shown in FIG. The operation is similar to that of the FM0/NRZ code conversion circuit 12 in the first embodiment, but
The case where the M1 code is input will be explained.

【0037】変化点検出回路52はFM1符号のデータ
(FM1RD信号)のビットセル開始の変化点を検出す
るように動作し、ビットセル検出によりパルス(e)を
出力する。カウンタ回路53は1/4位置を示すパルス
(a)を出力するとともに、1/4位置でのFM1RD
信号のラッチデータ(c)を出力する。カウンタ回路5
4は3/4位置を示すパルス(b)を出力するとともに
、3/4位置でのFM1RD信号のラッチデータ(d)
を出力する。比較回路56ではラッチデータ(c),(
d)のEXNORデータを変化点パルス(e)でラッチ
したデータ(f1)を出力する。NRZRD送出回路5
7は、このデータ(f1)を入力してRTクロック送出
送出回路55からのRT信号の立ち下がりに同期したデ
ータでNRZRD信号を出力する。
The changing point detection circuit 52 operates to detect a changing point at the start of a bit cell of FM1 code data (FM1RD signal), and outputs a pulse (e) upon bit cell detection. The counter circuit 53 outputs a pulse (a) indicating the 1/4 position, and FM1RD at the 1/4 position.
Outputs the latch data (c) of the signal. Counter circuit 5
4 outputs the pulse (b) indicating the 3/4 position, and the latch data (d) of the FM1RD signal at the 3/4 position.
Output. In the comparator circuit 56, latch data (c), (
Data (f1) obtained by latching the EXNOR data of d) with the changing point pulse (e) is output. NRZRD sending circuit 5
7 inputs this data (f1) and outputs the NRZRD signal as data synchronized with the falling edge of the RT signal from the RT clock transmission circuit 55.

【0038】以上のように、FM1RD信号のビットセ
ル開始からビットセルの1/4位置と3/4位置でFM
1RD信号が同一の場合、NRZSD信号は“0“であ
り、異なった場合NRZSD信号は“1“となり、図1
3に示すタイムチャートのようにFM1符号からNRZ
符号の変換が行なわれる。
As described above, from the start of the bit cell of the FM1RD signal, the FM
If the 1RD signals are the same, the NRZSD signal is "0", and if they are different, the NRZSD signal is "1", as shown in Figure 1.
From FM1 code to NRZ as shown in the time chart shown in 3.
A sign conversion is performed.

【0039】[0039]

【発明の効果】以上説明したように、この発明によれば
符号変換装置において、NRZ符号をFM0又はFM1
符号にハードウェアロジック的に変換する回路と、FM
0又はFM1符号をNRZ符号にハードウェア的ロジッ
クに変換する回路を設けたので、マイクロプロセッサ及
びマイクロプログラムのソフトウェアが必要なくなり、
小型化と簡易化の向上が期待できる。
Effects of the Invention As explained above, according to the present invention, in the code conversion device, the NRZ code is converted into FM0 or FM1.
A circuit that converts into code using hardware logic, and FM
Since a circuit is provided to convert 0 or FM1 code into NRZ code using hardware logic, a microprocessor and microprogram software are no longer required.
Improvements in size and simplicity can be expected.

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

【図1】構成概念を説明する図であり、図1(a)は第
1構成のブロック図、図1(b)は第2構成のブロック
図である。
FIG. 1 is a diagram illustrating a configuration concept; FIG. 1(a) is a block diagram of a first configuration, and FIG. 1(b) is a block diagram of a second configuration.

【図2】従来の符号変換装置の一構成例を示すブロック
図である。
FIG. 2 is a block diagram showing a configuration example of a conventional code conversion device.

【図3】NRZ符号、FM0符号及びFM1符号の例で
ある。
FIG. 3 is an example of an NRZ code, an FM0 code, and an FM1 code.

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

【図5】NRZ/FM0変換回路の詳細実施例の回路図
である。
FIG. 5 is a circuit diagram of a detailed embodiment of the NRZ/FM0 conversion circuit.

【図6】図5の回路図に対応したタイムチャートである
FIG. 6 is a time chart corresponding to the circuit diagram of FIG. 5;

【図7】FM0/NRZ変換回路の詳細実施例のブロッ
ク図である。
FIG. 7 is a block diagram of a detailed embodiment of an FM0/NRZ conversion circuit.

【図8】図7のブロック図に対応したタイムチャートで
ある。
FIG. 8 is a time chart corresponding to the block diagram of FIG. 7;

【図9】この発明の第2の実施例を示すブロック図であ
る。
FIG. 9 is a block diagram showing a second embodiment of the invention.

【図10】NRZ/FM1変換回路の詳細実施例の回路
図である。
FIG. 10 is a circuit diagram of a detailed embodiment of the NRZ/FM1 conversion circuit.

【図11】図10の回路図に対応したタイムチャートで
ある。
FIG. 11 is a time chart corresponding to the circuit diagram of FIG. 10;

【図12】FM1/NRZ変換回路の詳細実施例のブロ
ック図である。
FIG. 12 is a block diagram of a detailed embodiment of an FM1/NRZ conversion circuit.

【図13】FM1/NRZ変換回路のタイムチャートで
ある。
FIG. 13 is a time chart of the FM1/NRZ conversion circuit.

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

11            NRZ/FM0符号変換
回路111          第1の論理回路112
          第2の論理回路113     
     第3の論理回路12           
 FM0/NRZ符号変換回路121        
  第1の位置検出手段122          第
2の位置検出手段123          第4の論
理回路13            NRZ/FM1符
号変換回路131          第5の論理回路
132          第6の論理回路133  
        第7の論理回路14        
    FM1/NRZ符号変換回路21      
      端末 22            符号変換装置23   
         ドライバー及びレシーバ部24  
          シリアルI/O・1チャンネル目
25            マイクロプロセッサ26
            メモリ 27            シリアルI/O・2チャ
ンネル目28            ドライバー及び
レシーバ部A              インタフェ
ース線B              インタフェース
線31            端末
11 NRZ/FM0 code conversion circuit 111 First logic circuit 112
Second logic circuit 113
Third logic circuit 12
FM0/NRZ code conversion circuit 121
First position detection means 122 Second position detection means 123 Fourth logic circuit 13 NRZ/FM1 code conversion circuit 131 Fifth logic circuit 132 Sixth logic circuit 133
Seventh logic circuit 14
FM1/NRZ code conversion circuit 21
Terminal 22 Code conversion device 23
Driver and receiver section 24
Serial I/O 1st channel 25 Microprocessor 26
Memory 27 Serial I/O 2nd channel 28 Driver and receiver section A Interface line B Interface line 31 Terminal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  NRZ符号とFM0符号とを相互に符
号変換する符号変換装置であって、NRZ符号の“0”
ビットセルに対してそのビットセルの中心で反転させる
第1の論理回路と、NRZ符号の“1“ビットセルに対
してビットセルごとに反転させる第2の論理回路と、前
記第1の論理回路出力と前記第2の論理回路出力との排
他的論理和の否定出力よりFM0符号を得る第3の論理
回路とを備えたNRZ/FM0符号変換回路と、FM0
符号をそのビットセルの1/4位置でラッチする第1の
位置検出手段と、FM0符号をそのビットセルの3/4
位置でラッチする第2の位置検出手段と、前記第1の位
置検出手段及び第2の位置検出手段との出力の排他的論
理和の否定をビットセル変化点においてラッチしてNR
Z符号を得る第4の論理回路とを備えたFM0/NRZ
符号変換回路とからなることを特徴とする符号変換装置
Claim 1: A code conversion device that mutually converts codes between an NRZ code and an FM0 code, wherein
a first logic circuit that inverts a bit cell at the center of the bit cell; a second logic circuit that inverts a "1" bit cell of the NRZ code for each bit cell; an NRZ/FM0 code conversion circuit comprising a third logic circuit that obtains the FM0 code from the negative output of the exclusive OR with the output of the logic circuit 2;
a first position detection means for latching the code at 1/4 position of its bit cell;
A second position detecting means latches at the position, and the negative of the exclusive OR of the outputs of the first position detecting means and the second position detecting means is latched at the bit cell change point and NR
FM0/NRZ with a fourth logic circuit that obtains the Z code
A code conversion device comprising a code conversion circuit.
【請求項2】  NRZ符号とFM1符号とを相互に符
号変換する符号変換装置であって、NRZ符号の“1”
ビットセルに対してそのビットセルの中心で反転させる
第5の論理回路と、NRZ符号の“0“ビットセルに対
してビットセルごとに反転させる第6の論理回路と、前
記第5の論理回路出力と前記第6の論理回路出力との排
他的論理和の否定出力よりFM1符号を得る第7の論理
回路とを備えたNRZ/FM1符号変換回路と、FM1
符号をそのビットセルの1/4位置でラッチする第1の
位置検出手段と、FM1符号をそのビットセルの3/4
位置でラッチする第2の位置検出手段と、前記第1の位
置検出手段及び第2の位置検出手段との出力の排他的論
理和の否定をビットセル変化点においてラッチしてNR
Z符号を得る第4の論理回路とを備えたFM1/NRZ
符号変換回路とからなることを特徴とする符号変換装置
[Claim 2] A code conversion device that mutually converts codes between an NRZ code and an FM1 code, wherein
a fifth logic circuit for inverting a bit cell at the center of the bit cell; a sixth logic circuit for inverting a "0" bit cell of the NRZ code for each bit cell; an NRZ/FM1 code conversion circuit comprising a seventh logic circuit that obtains the FM1 code from the negative output of an exclusive OR with the logic circuit output of No. 6;
a first position detection means for latching the code at 1/4 position of the bit cell; and FM1 code at 3/4 position of the bit cell;
A second position detecting means latches at the position, and the negative of the exclusive OR of the outputs of the first position detecting means and the second position detecting means is latched at the bit cell change point and NR
FM1/NRZ with a fourth logic circuit that obtains the Z code
A code conversion device comprising a code conversion circuit.
JP10810491A 1991-04-15 1991-04-15 Code conversion device Expired - Lifetime JP3044817B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10810491A JP3044817B2 (en) 1991-04-15 1991-04-15 Code conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10810491A JP3044817B2 (en) 1991-04-15 1991-04-15 Code conversion device

Publications (2)

Publication Number Publication Date
JPH04316126A true JPH04316126A (en) 1992-11-06
JP3044817B2 JP3044817B2 (en) 2000-05-22

Family

ID=14475980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10810491A Expired - Lifetime JP3044817B2 (en) 1991-04-15 1991-04-15 Code conversion device

Country Status (1)

Country Link
JP (1) JP3044817B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100458825C (en) * 2007-04-20 2009-02-04 东莞市太平洋计算机科技有限公司 Ultrahigh frequency RFID reader baseband signal decoding method
CN102467674A (en) * 2010-11-16 2012-05-23 北京中电华大电子设计有限责任公司 Ultrahigh-frequency label FMO (Fast Moving Object) encoding digital signal circuit and implementation method thereof
JP2014154910A (en) * 2013-02-05 2014-08-25 Rohm Co Ltd Base band signal decoding circuit, decoding method, and power supply device using them

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100458825C (en) * 2007-04-20 2009-02-04 东莞市太平洋计算机科技有限公司 Ultrahigh frequency RFID reader baseband signal decoding method
CN102467674A (en) * 2010-11-16 2012-05-23 北京中电华大电子设计有限责任公司 Ultrahigh-frequency label FMO (Fast Moving Object) encoding digital signal circuit and implementation method thereof
CN102467674B (en) * 2010-11-16 2014-08-27 北京中电华大电子设计有限责任公司 Ultrahigh-frequency label FMO (Fast Moving Object) encoding digital signal circuit and implementation method thereof
JP2014154910A (en) * 2013-02-05 2014-08-25 Rohm Co Ltd Base band signal decoding circuit, decoding method, and power supply device using them

Also Published As

Publication number Publication date
JP3044817B2 (en) 2000-05-22

Similar Documents

Publication Publication Date Title
US6260152B1 (en) Method and apparatus for synchronizing data transfers in a logic circuit having plural clock domains
US20020075173A1 (en) Parallel in serial out circuit for use in data communication system
JPH1022799A (en) Phase detection circuit
JPH03191633A (en) Data transfer system
JPH0775343B2 (en) Synchronization detection circuit and method
US6163584A (en) Synchronization element for converting an asynchronous pulse signal into a synchronous pulse signal
US6232796B1 (en) Apparatus and method for detecting two data bits per clock edge
JPH04316126A (en) Code converting device
KR960701539A (en) SINGLE-ENDED PULSE GATING CIRCUIT
US20020178392A1 (en) Method and apparatus for generating a second signal having a clock based on a second clock from a first signal having a first clock
KR950013806B1 (en) Serial/parallel conversion method and device of data
JPH1168861A (en) Simultaneous two-way transmission reception method and simultaneous two-way transmission reception circuit
KR100366793B1 (en) Apparatus for pulse sequence generation using Shift Register
JP2734287B2 (en) Sampling clock information generation circuit
JPS62233931A (en) Parallel serial converter
KR910009093B1 (en) Coded mark inversion coding circuit
JP2565144B2 (en) Serial-parallel converter
JP3334466B2 (en) Parallel / serial conversion circuit
KR970056528A (en) Analog Bus / I ^ 2C Bus Protocol Converters
JP2970241B2 (en) Sampling clock information generation circuit
KR100314675B1 (en) Apparatus for bi-phase in digital television
JPH0544685B2 (en)
JPH0738386A (en) Data latch circuit
JPS59156049A (en) Signal detecting circuit
JPS63184133A (en) Comparator

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000215