JPH06224944A - Serial data reception circuit - Google Patents

Serial data reception circuit

Info

Publication number
JPH06224944A
JPH06224944A JP5009778A JP977893A JPH06224944A JP H06224944 A JPH06224944 A JP H06224944A JP 5009778 A JP5009778 A JP 5009778A JP 977893 A JP977893 A JP 977893A JP H06224944 A JPH06224944 A JP H06224944A
Authority
JP
Japan
Prior art keywords
serial data
data
circuit
clock
bit
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
JP5009778A
Other languages
Japanese (ja)
Inventor
Tetsuji Maruichi
徹二 丸一
Toshihiro Matsunaga
敏裕 松永
Masatoshi Sudo
雅俊 須藤
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.)
Hitachi Image Information Systems Inc
Hitachi Ltd
Hitachi Advanced Digital Inc
Original Assignee
Hitachi Image Information Systems Inc
Hitachi Ltd
Hitachi Video and Information System Inc
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 Image Information Systems Inc, Hitachi Ltd, Hitachi Video and Information System Inc filed Critical Hitachi Image Information Systems Inc
Priority to JP5009778A priority Critical patent/JPH06224944A/en
Publication of JPH06224944A publication Critical patent/JPH06224944A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the serial data reception circuit at a low cost and with a small circuit scale which is able to receive phase modulation serial data. CONSTITUTION:A start-stop synchronization data conversion circuit 2 samples received phase modulation serial data by using a clock signal being higher than a bit rate, that is, a multiple of (mX2)XjXp of the bit rate of phase modulation serial data fed from a clock generating circuit 5. Then the circuit 2 converts the phase modulation serial data into m-bit parallel data in the unit of p-bits based on data of majority decision of each of j-sets of sampling data. A control circuit 3 reads the parallel data from the start-stop synchronization data conversion circuit 2 and a logic arithmetic operation circuit 4 generates p-bit data of the phase modulation serial data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、調歩同期シリアルデー
タ、或は位相変調シリアルデータを読み込むシリアル通
信回路に関し、特に、調歩同期シリアルデータ受信回路
で、調歩同期シリアルデータ又は位相変調シリアルデー
タを読み込むために用いて好適なシリアルデータ受信回
路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial communication circuit for reading start-stop synchronization serial data or phase modulation serial data, and more particularly to a start-stop synchronization serial data receiving circuit for reading start-stop synchronization serial data or phase modulation serial data. The present invention relates to a serial data receiving circuit suitable for use in the above.

【0002】[0002]

【従来の技術】以下従来例について説明する。2. Description of the Related Art A conventional example will be described below.

【0003】通信方式の違うデータの送受信を行なう通
信回路としては、特公開昭55−140936「通信制
御装置」がある。この受信動作においては、調歩同期
式,独立同期式,フラグ同期式等の通信方式の異なるデ
ータを各通信方式に対応した通信制御インタフェースに
より、それぞれパラレルデータにフォーマット変換し、
通信制御コントローラで読み込み、演算制御装置に供給
する。又通信制御コントローラは、各通信制御インタフ
ェースでパラレルデータにフォーマット変換するための
設定及び制御を行なう構成となっている。
As a communication circuit for transmitting and receiving data of different communication systems, there is Japanese Patent Publication No. Sho 55-140936 "Communication control device". In this receiving operation, data of different communication systems such as start-stop synchronization type, independent synchronization type, and flag synchronization type are format-converted into parallel data by a communication control interface corresponding to each communication type,
It is read by the communication controller and supplied to the arithmetic and control unit. Further, the communication control controller is configured to perform setting and control for format conversion into parallel data at each communication control interface.

【0004】[0004]

【発明が解決しようとする課題】上記したように、従来
方式では、位相変調シリアルデータと調歩同期シリアル
データの通信方式の異なるデータを読み込む場合には、
それぞれに専用のデータ変換回路が必要となる。
As described above, in the conventional method, when reading data of different communication methods of phase-modulated serial data and start-stop synchronous serial data,
A dedicated data conversion circuit is required for each.

【0005】しかし、位相変調データ変換回路と調歩同
期データ変換回路用いる場合、回路規模が大きくなる。
又、位相変調データ変換回路は汎用品としての入手は困
難であり、MPU(マイクロプロセッサ)を用いて開発
する必要が有る。そのため回路規模が大きくなり、又短
期間及び低コストの製品開発において問題となる。
However, when the phase modulation data conversion circuit and the start-stop synchronization data conversion circuit are used, the circuit scale becomes large.
Further, the phase modulation data conversion circuit is difficult to obtain as a general-purpose product, and it is necessary to develop it using an MPU (microprocessor). Therefore, the circuit scale becomes large, and it becomes a problem in short-term and low-cost product development.

【0006】又位相変調シリアルデータを直接、制御回
路のポートから取り込み処理する方法もあるが、この場
合には、前記位相変調シリアルデータが伝送されている
期間、制御回路の処理は前記位相変調シリアルデータの
取り込みに専念しなければならず、他の処理を満足に行
なえなくなってしまう。
There is also a method of directly fetching the phase modulation serial data from the port of the control circuit, but in this case, the processing of the control circuit is performed by the phase modulation serial data while the phase modulation serial data is being transmitted. You have to concentrate on capturing the data, and other processing cannot be performed satisfactorily.

【0007】本発明の他の目的は、上記問題を解決し、
位相変調シリアルデータを読み込む小規模,低コストな
シリアルデータ受信回路を提供することである。
Another object of the present invention is to solve the above problems,
It is an object to provide a small-scale, low-cost serial data receiving circuit that reads phase-modulated serial data.

【0008】[0008]

【課題を解決するための手段】上記した目的を達成する
ために、本発明では、クロック生成手段にて、入力され
る位相変調シリアルデータのビットレートのk倍(k>
m+2)のクロックを生成するクロック生成手段と、該
クロック生成手段からのクロックを入力し、前記位相変
調シリアルデータの1ビット、あるいは2ビット単位の
データをビットレートがm+2[bit/sec]の調歩同期シ
リアルデータフォーマットのシリアルデータと見なし、
前記クロック生成手段からのクロックでサンプリング
し、そのサンプリングデータk/(m+2)個単位で多
数決判定し、第1の“0”のデータ以降のmビットのデ
ータをビット数mのパラレルデータとして出力し、又該
パラレルデータに変換できたことを示すステータスデー
タを出力する調歩同期データ変換手段と、該調歩同期デ
ータ変換手段から出力される前記ステータスデータに応
じパラレルデータを読み出しを行なう制御手段と、該制
御手段で読み込んだパラレルデータを論理演算、あるい
は論理判定により、もとの前記位相変調シリアルデータ
の1ビットあるいは2ビット単位のビットデータを生成
する論理演算手段と、で構成するようにした。
In order to achieve the above-mentioned object, in the present invention, the clock generation means uses k times the bit rate of the phase-modulated serial data inputted (k>
(m + 2) clock generating means and a clock from the clock generating means are input, and data of 1 bit or 2 bit unit of the phase-modulated serial data is transmitted at a bit rate of m + 2 [bit / sec]. Considered as serial data in synchronous serial data format,
Sampling is performed by the clock from the clock generation means, a majority decision is made in units of k / (m + 2) sampling data, and m-bit data after the first "0" data is output as parallel data of bit number m. Also, start-stop synchronization data conversion means for outputting status data indicating that the parallel data has been converted, control means for reading parallel data according to the status data output from the start-stop synchronization data conversion means, and The parallel data read by the control means is logically operated or logically determined to generate bit data in units of 1 bit or 2 bits of the original phase-modulated serial data.

【0009】[0009]

【作用】調歩同期データ変換回路で、位相変調シリアル
データを該位相変調シリアルデータのビットレートのk
倍のクロックによりサンプリング、及び多数決判定し、
1ビット、あるいは2ビット単位でビット数mのパラレ
ルデータに変換する。
In the start-stop synchronization data conversion circuit, the phase-modulated serial data is converted into the bit rate k of the phase-modulated serial data.
Sampling with a double clock, and majority decision,
It is converted into parallel data of bit number m in units of 1 bit or 2 bits.

【0010】従って、本発明によれば、位相変調シリア
ルデータを、専用の位相変調データ変換回路を用いるこ
となく読み込み可能となる。又、制御回路は前記調歩同
期データ変換回路からのステータスデータによりパラレ
ルデータの読み込みを行なうため処理が占有されること
はない。
Therefore, according to the present invention, the phase modulation serial data can be read without using a dedicated phase modulation data conversion circuit. Further, since the control circuit reads parallel data according to the status data from the start / stop synchronization data conversion circuit, the processing is not occupied.

【0011】これより、回路規模が小さく、又低コスト
な構成で、位相変調シリアルデータを受信することが出
来る。
As a result, it is possible to receive the phase-modulated serial data with a small circuit scale and a low cost structure.

【0012】[0012]

【実施例】以下、本発明の実施例を図面を用いて説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0013】図1は本発明の第1の実施例としてのシリ
アルデータ受信回路を示すブロック図、図4は図1の要
部信号のタイミングを示すタイミングチャート、図5は
図2の要部信号のタイミングを示すタイミングチャート
である。
FIG. 1 is a block diagram showing a serial data receiving circuit as a first embodiment of the present invention, FIG. 4 is a timing chart showing the timing of the main signal of FIG. 1, and FIG. 5 is the main signal of FIG. 3 is a timing chart showing the timing of FIG.

【0014】尚、図4各符号は、それぞれ図1の各符号
と対応している。
Note that each reference numeral in FIG. 4 corresponds to each reference numeral in FIG.

【0015】まず、第1の実施例であるシリアルデータ
受信回路の動作について図1及び図4を用いて説明す
る。
First, the operation of the serial data receiving circuit according to the first embodiment will be described with reference to FIGS.

【0016】位相変調シリアルデータA(図4A)のビ
ットデータは、1ビット周期期間の信号レベルが“0”
の期間と“1”の期間の比によって表され、例えば、ビ
ットデータは、1ビット周期期間の“0”の期間が
“1”の期間よりも長い場合は、“0”を、又1ビット
周期期間の“0”の期間が“1”の期間よりも短い場合
は、“1”を示す信号である。この位相変調シリアルデ
ータAは、シリアルデータ入力端子(1)を介して入力
され調歩同期データ変換回路(2)に供給される。又調
歩同期データ変換回路(2)は、制御回路(3)からの
制御信号Eにより、入力される位相変調シリアルデータ
Aをクロック生成回路(5)からのサンプリングクロッ
クH(図4H)でサンプリングしたサンプリングデータ
B(図4B)を多数決判定するデータ個数jを例えば、
j=8個に設定され、又、パラレルデータBに変換する
ビット数mを例えば、m=7ビットに設定される。
The bit data of the phase-modulated serial data A (FIG. 4A) has a signal level of "0" during a 1-bit cycle period.
Is represented by the ratio of the period of 1 to the period of “1”. For example, in the case of bit data, if the period of “0” in the 1-bit cycle period is longer than the period of “1”, the bit data is “0” or 1 bit. When the "0" period of the cycle period is shorter than the "1" period, the signal indicates "1". The phase-modulated serial data A is input via the serial data input terminal (1) and supplied to the start-stop synchronization data conversion circuit (2). Further, the start-stop synchronization data conversion circuit (2) samples the phase-modulated serial data A input by the control signal E from the control circuit (3) with the sampling clock H (FIG. 4H) from the clock generation circuit (5). For example, the number j of pieces of data for judging majority of the sampling data B (FIG. 4B) is
j = 8, and the number of bits m to be converted into the parallel data B is set to, for example, m = 7 bits.

【0017】又クロック生成回路(5)は、制御回路
(3)からの制御信号Fにより、クロック発生回路
(6)より出力される基本クロックGを、調歩同期デー
タ変換回路(2)に入力される位相変調シリアルデータ
Aのビットレートの(m+2)×j倍の周波数のサンプ
リングクロックHとして出力する分周比に設定される。
すなわち、制御信号Fは、例えば8ビットのバイナリデ
ータであり、クロック生成回路(5)は、例えばPTC
(プログラマブルタイマカウンタ)のようなものであ
り、制御信号Fで示されるカウント値をタイマ初期値と
してタイマカウンタに設定し、デクリメントしてゆき、
タイマカウンタ値が零になった時に、出力を反転させ、
又タイマカウンタにタイマ初期値を設定するという動作
を繰り返すことにより基本クロックGを分周したサンプ
リングクロックHを生成する。
The clock generation circuit (5) inputs the basic clock G output from the clock generation circuit (6) to the start-stop synchronization data conversion circuit (2) according to the control signal F from the control circuit (3). It is set to a frequency division ratio to be output as a sampling clock H having a frequency of (m + 2) × j times the bit rate of the phase-modulated serial data A.
That is, the control signal F is, for example, 8-bit binary data, and the clock generation circuit (5) is, for example, PTC.
Like a (programmable timer counter), in which the count value indicated by the control signal F is set in the timer counter as the timer initial value and decremented.
When the timer counter value reaches zero, the output is inverted,
Further, by repeating the operation of setting the timer initial value in the timer counter, the sampling clock H obtained by dividing the basic clock G is generated.

【0018】又、調歩同期データ変換回路(2)では、
入力される位相変調シリアルデータAを、クロック生成
回路(5)からのサンプリングクロックHでサンプリン
グし、又、例えばサンプリングクロックHがビットレー
トの(m+2)×j倍のクロックの場合、サンプリング
クロックHでサンプリングしたデータj個ごとを多数決
判定する。又多数決判定したデータから最初の“0”の
ビットをスタートビットとして検出し、このスタートビ
ット以降のmビットのデータを例えばシフトレジスタを
用いてパラレルデータBに変換する。又、調歩同期デー
タ変換回路(2)は、パラレルデータBに変換したこと
を示す信号として例えば、多数決判定されたmビットの
データに続いて“1”のデータを検出した時に“1”と
なるステータスデータC(図4C)を出力する。
In the start / stop synchronization data conversion circuit (2),
The phase-modulated serial data A that is input is sampled with the sampling clock H from the clock generation circuit (5), and, for example, when the sampling clock H is a clock of (m + 2) × j times the bit rate, the sampling clock H is used. A majority decision is made for every j pieces of sampled data. Further, the first bit of "0" is detected as the start bit from the data determined by the majority decision, and the m-bit data after the start bit is converted into the parallel data B using, for example, a shift register. Also, the start-stop synchronization data conversion circuit (2) becomes "1" when it detects "1" data following the majority-decision-determined m-bit data as a signal indicating that the parallel data B has been converted. The status data C (FIG. 4C) is output.

【0019】制御回路(3)は、調歩同期データ変換回
路(2)からのステータスデータCに応じ、例えばステ
ータスデータCを割り込み信号として入力し、該ステー
タスデータCが“0”から“1”に変化したことを検出
したときに、割り込み処理を行ないパラレルデータBを
読み込む。又制御回路(3)で読み込んだパラレルデー
タBは、論理演算回路(4)で、論理演算、又は論理判
定の少なくともどちらか一方の処理により、調歩同期デ
ータ変換回路(2)でパラレルデータBに変換された位
相変調シリアルデータAのビットデータを生成する。こ
こで、パラレルデータBから、位相変調シリアルデータ
Aのビットデータを生成する方法として、例えば、位相
変調データ変換回路(2)において、位相変調シリアル
データAが1ビット単位でビット数m=7のパラレルデ
ータBに変換された場合、制御回路(3)で読み込んだ
パラレルデータBのbit4を判定し、bit4が
“0”ならビットデータは“0”、又bit4が“1”
ならビットデータは“1”とする方法が考えられる。
The control circuit (3) inputs, for example, the status data C as an interrupt signal according to the status data C from the start / stop synchronization data conversion circuit (2), and the status data C changes from "0" to "1". When the change is detected, the interrupt processing is performed and the parallel data B is read. Further, the parallel data B read by the control circuit (3) is converted into parallel data B by the start / stop synchronization data conversion circuit (2) by at least one of logical operation and logical judgment by the logical operation circuit (4). Bit data of the converted phase-modulated serial data A is generated. Here, as a method of generating bit data of the phase-modulated serial data A from the parallel data B, for example, in the phase-modulated data conversion circuit (2), the phase-modulated serial data A has a bit number m = 7 in 1-bit units. When converted into parallel data B, the bit 4 of the parallel data B read by the control circuit (3) is determined. If bit 4 is “0”, the bit data is “0”, and bit 4 is “1”.
In that case, a method of setting the bit data to "1" can be considered.

【0020】以上の動作により、位相変調シリアルデー
タの受信が可能となる。
By the above operation, the phase modulated serial data can be received.

【0021】次に、第2の実施例である位相変調シリア
ルデータ及び調歩同期シリアルデータの両方式のシリア
ルデータを受信可能とするシリアルデータ受信回路につ
いて説明する。
The second embodiment of the serial data receiving circuit capable of receiving both phase modulated serial data and start / stop synchronization serial data will be described below.

【0022】図2は第2の実施例であるシリアルデータ
受信回路の構成を示すブロック図、図5は図2の要部信
号のタイミングを示すタイミングチャートである。
FIG. 2 is a block diagram showing the configuration of the serial data receiving circuit according to the second embodiment, and FIG. 5 is a timing chart showing the timing of the main signal of FIG.

【0023】すなわち第2の実施例は、図1に示した構
成の他に、シリアルデータ入力端子(7)と、モード検
出回路(9)とが設けられている。
That is, the second embodiment is provided with a serial data input terminal (7) and a mode detection circuit (9) in addition to the configuration shown in FIG.

【0024】では、第2の実施例であるシリアルデータ
受信回路の動作について図2,図4及び図5を用いて説
明する。
The operation of the serial data receiving circuit of the second embodiment will be described with reference to FIGS. 2, 4 and 5.

【0025】尚、図4,図5各符号は、それぞれ図2の
各符号と対応している。
The symbols in FIGS. 4 and 5 correspond to the symbols in FIG. 2, respectively.

【0026】位相変調シリアルデータA(図4,図5の
A)は、シリアルデータ入力端子(1)を介してスイッ
チ回路(8)の一方の入力端子と、モード検出回路
(9)とに供給される。又調歩同期シリアルデータM
(図5M)は、スイッチ回路(8)の他の一方の入力端
子とモード検出回路(9)とに供給される。モード検出
回路(9)では、位相変調シリアルデータAと調歩同期
シリアルデータMとの少なくともどちらか一方が入力さ
れたことを検出し、その検出結果を例えば位相変調シリ
アルデータAが入力されている場合は“0”を、それ以
外の時は“1”の1ビットのモード検出データJ(図5
J)を出力し、制御回路(3)に供給する。ここでモー
ド検出回路(9)で位相変調シリアルデータAが入力さ
れたことを検出する方法として、例えば、位相変調シリ
アルデータのデータ伝送開始を示すアテンション信号、
例えば位相変調シリアルデータの1ビット周期期間より
はるかに長い期間“0”の信号を検出する方法がある。
The phase-modulated serial data A (A in FIGS. 4 and 5) is supplied to one input terminal of the switch circuit (8) and the mode detection circuit (9) via the serial data input terminal (1). To be done. Asynchronous serial data M
(FIG. 5M) is supplied to the other one input terminal of the switch circuit (8) and the mode detection circuit (9). The mode detection circuit (9) detects that at least one of the phase-modulated serial data A and the start-stop synchronization serial data M is input, and the detection result is detected, for example, when the phase-modulated serial data A is input. Is "0", otherwise it is "1" 1-bit mode detection data J (see FIG. 5).
J) is output and supplied to the control circuit (3). Here, as a method of detecting the input of the phase-modulated serial data A in the mode detection circuit (9), for example, an attention signal indicating the start of data transmission of the phase-modulated serial data,
For example, there is a method of detecting a "0" signal for a period much longer than the 1-bit cycle period of phase-modulated serial data.

【0027】又、スイッチ回路(8)では、制御回路
(3)からの制御信号Lに応じ、例えば制御信号Lが
“0”の場合は入力端子I側に、又制御信号Lが“1”
の場合は入力端子II側に切り変えられ、位相変調シリア
ルデータAと調歩同期シリアルデータMとが合成された
シリアルデータK(図5K)を出力し調歩同期データ変
換回路(2)に供給する。又クロック生成回路(5)
は、例えば前述した第1の実施例でのPTCであっても
良く、制御回路(3)からの制御信号Fにより、クロッ
ク発生回路(6)からの基本クロックGを分周する分周
比を変化させ、例えば、調歩同期データ変換回路(2)
に入力されるシリアルデータKのデータが位相変調シリ
アルデータAのデータの場合は、位相変調シリアルデー
タAのビットレートの(m+2)×j倍のサンプリング
クロックHを生成し、又調歩同期データ変換回路(2)
に入力されるシリアルデータKのデータが調歩同期シリ
アルデータMのデータの場合は、調歩同期シリアルデー
タMのビットレートのj倍のサンプリングクロックHを
生成し、調歩同期データ変換回路(2)に供給する。こ
こで制御信号Fは、例えば、8ビットのバイナリデータ
であり、調歩同期データ変換回路(2)に供給するサン
プリングクロックHを生成するためのタイマカウンタの
カウンタ初期値である。
Further, in the switch circuit (8), depending on the control signal L from the control circuit (3), for example, when the control signal L is "0", it is on the input terminal I side, and the control signal L is "1".
In the case of, the input terminal II side is switched, and the serial data K (FIG. 5K) in which the phase-modulated serial data A and the start-stop synchronization serial data M are combined is output and supplied to the start-stop synchronization data conversion circuit (2). Clock generation circuit (5)
May be, for example, the PTC in the above-described first embodiment, and a division ratio for dividing the basic clock G from the clock generation circuit (6) by the control signal F from the control circuit (3) may be used. Change, for example, start / stop synchronization data conversion circuit (2)
When the data of the serial data K input to is the data of the phase-modulated serial data A, the sampling clock H of (m + 2) × j times the bit rate of the phase-modulated serial data A is generated, and the start-stop synchronization data conversion circuit (2)
When the data of the serial data K input to is the data of the asynchronous serial data M, a sampling clock H of j times the bit rate of the asynchronous serial data M is generated and supplied to the asynchronous data conversion circuit (2). To do. Here, the control signal F is, for example, 8-bit binary data, and is a counter initial value of a timer counter for generating the sampling clock H to be supplied to the start-stop synchronization data conversion circuit (2).

【0028】又、調歩同期データ変換回路(2)は、ス
イッチ回路(8)から入力されるシリアルデータKが位
相変調シリアルデータAのデータの場合、例えば、クロ
ック生成回路(5)からのサンプリングクロックHによ
りサンプリングしたサンプリングデータを多数決判定す
る個数jをj=8個に、及びパラレルデータBに変換す
るビット数mをm=7に設定され、又、スイッチ回路
(8)から入力されるシリアルデータKが調歩同期シリ
アルデータMのデータの場合、例えば、クロック生成回
路(5)からのサンプリングクロックHによりサンプリ
ングしたサンプリングデータを多数決判定する個数jを
j=8個に、及びパラレルデータBに変換するビット数
mをm=6に、制御回路(3)からの制御信号Eにより
設定される。こうして、調歩同期データ変換回路(2)
は、制御信号Eに応じ、入力される位相変調シリアルデ
ータA、又は調歩同期シリアルデータMを、それぞれサ
ンプリングクロックHでサンプリングし、そのサンプリ
ングデータj個ごとを多数決判定したデータからスター
トビットを検出し、そのスタートビットに続くmビット
のデータを抽出しビット数mのパラレルデータBを生成
し制御回路(3)に出力する。又、調歩同期データ変換
回路(2)は、シリアルデータKをパラレルデータBに
変換したことを示すステータスデータCを出力する。
When the serial data K input from the switch circuit (8) is the phase-modulated serial data A, the start-stop synchronization data conversion circuit (2) is, for example, a sampling clock from the clock generation circuit (5). The number j of majority judgments of the sampling data sampled by H is set to j = 8, the number of bits m to be converted into the parallel data B is set to m = 7, and the serial data input from the switch circuit (8) is set. When K is the asynchronous serial data M, for example, the number j of majority judgments of the sampling data sampled by the sampling clock H from the clock generation circuit (5) is converted to j = 8 and to the parallel data B. The number of bits m is set to m = 6 by the control signal E from the control circuit (3). Thus, the start-stop synchronization data conversion circuit (2)
According to the control signal E, the phase-modulated serial data A or the start-stop synchronization serial data M is sampled by the sampling clock H, respectively, and the start bit is detected from the data obtained by the majority decision for every j pieces of the sampling data. , M bits of data following the start bit are extracted to generate parallel data B having the number of bits m and output to the control circuit (3). The start-stop synchronization data conversion circuit (2) outputs status data C indicating that the serial data K has been converted into parallel data B.

【0029】制御回路(3)は、モード検出回路(9)
からのモード検出データJに基づき、スイッチ回路
(8)を制御する制御信号Lと、調歩同期データ変換回
路(2)を制御する制御信号Eと、クロック生成回路
(5)を制御する制御信号Fとを出力する。又、調歩同
期データ変換回路(2)からのステータスデータCに応
じ、例えばステータスデータCを割り込み信号として入
力し、該ステータスデータCが”0”から”1”に変化
したことを検出したときに、割り込み処理を行ないパラ
レルデータBを読み込む。又制御回路(3)では、モー
ド検出回路(9)からのモード検出データJが位相変調
シリアルデータAが入力されていることを示している場
合は、読み込んだパラレルデータBを、論理演算回路
(4)で、論理演算、又は論理判定の少なくともどちら
か一方の処理により調歩同期データ変換回路(2)でパ
ラレルデータBに変換された位相変調シリアルデータA
のビットデータを生成する。ここで、パラレルデータB
から、位相変調シリアルデータAのビットデータを生成
する方法として、例えば、位相変調シリアルデータAが
1ビット単位でビット数7のパラレルデータBに変換さ
れた場合、制御回路(3)で読み込んだパラレルデータ
Bのbit4を判定し、bit4が“0”ならビットデ
ータは“0”、又bit4が“1”ならビットデータは
“1”とする方法が考えられる。
The control circuit (3) includes a mode detection circuit (9).
A control signal L for controlling the switch circuit (8), a control signal E for controlling the start / stop synchronization data conversion circuit (2), and a control signal F for controlling the clock generation circuit (5) based on the mode detection data J from And output. Further, in response to the status data C from the start / stop synchronization data conversion circuit (2), for example, the status data C is input as an interrupt signal, and when it is detected that the status data C has changed from "0" to "1". , Interrupt processing is performed and parallel data B is read. Further, in the control circuit (3), when the mode detection data J from the mode detection circuit (9) indicates that the phase modulation serial data A is input, the read parallel data B is changed to the logical operation circuit ( In 4), the phase-modulated serial data A converted into the parallel data B in the start / stop synchronization data conversion circuit (2) by at least one of the logical operation and the logical determination.
Generate the bit data of. Here, the parallel data B
As a method of generating the bit data of the phase-modulated serial data A, for example, when the phase-modulated serial data A is converted into parallel data B having a bit number of 7 in 1-bit units, the parallel data read by the control circuit (3) is used. A method of judging bit4 of the data B and setting the bit data to "0" if the bit4 is "0" and setting the bit data to "1" if the bit4 is "1" can be considered.

【0030】これらの動作によって、位相変調シリアル
データA及び、調歩同期シリアルデータMのどちらが入
力されても、受信可能としている。
These operations enable reception of either the phase-modulated serial data A or the start-stop synchronization serial data M.

【0031】以上が、第1の実施例及び第2の実施例の
動作の説明である。
The above is a description of the operation of the first and second embodiments.

【0032】尚、第1及び第2の実施例では、調歩同期
データ変換回路(2)において、位相変調シリアルデー
タを1ビット単位でパラレルデータに変換する方式を用
いているが、本発明はこれに限らず、クロック発生回路
(5)で分周して得られるサンプリングクロックを位相
変調シリアルデータのビットレートの(m+2)×j×
1倍,(m+2)×j×2倍,…,(m+2)×j×p
倍とすることにより位相変調シリアルデータを1ビッ
ト,2ビット,…,pビット単位でパラレルデータに変
換可能であることは明らかである。
In the first and second embodiments, the start / stop synchronization data conversion circuit (2) uses the method of converting the phase-modulated serial data into parallel data in 1-bit units. The sampling clock obtained by dividing the frequency by the clock generation circuit (5) is not limited to (m + 2) × j × of the bit rate of the phase-modulated serial data.
1 time, (m + 2) × j × 2 times, ..., (m + 2) × j × p
It is obvious that the phase-modulated serial data can be converted into parallel data in units of 1 bit, 2 bits, ...

【0033】又図2のモード検出回路(9)において、
位相変調シリアルデータAの検出を、位相変調シリアル
データAの伝送開始を示すアテンション信号により検出
する場合について述べたが、本発明は、シリアルデータ
入力端子(1)が、複数の信号線から構成されており、
位相変調シリアルデータ伝送用信号線以外の信号線によ
り検出する場合にも、有効である。
In the mode detection circuit (9) of FIG. 2,
The case where the detection of the phase-modulated serial data A is detected by the attention signal indicating the start of transmission of the phase-modulated serial data A has been described, but in the present invention, the serial data input terminal (1) is composed of a plurality of signal lines. And
This is also effective when detecting by a signal line other than the signal line for phase modulation serial data transmission.

【0034】又図2のモード検出回路(9)において、
モード検出データJの状態を位相変調シリアルデータA
が入力されることにより変化させているが、本発明にお
いては、調歩同期シリアルデータMが入力される場合に
モード検出データJの状態を変化させてもよい。
In the mode detection circuit (9) shown in FIG.
The state of mode detection data J is phase-modulated serial data A
However, in the present invention, the state of the mode detection data J may be changed when the start / stop synchronization serial data M is input.

【0035】又図2のモード検出回路(9)は、制御回
路(3)に含まれても良い。
The mode detection circuit (9) of FIG. 2 may be included in the control circuit (3).

【0036】次に、第2の実施例におけるクロック生成
回路(5)の構成の他の実施例について説明する。
Next, another embodiment of the configuration of the clock generation circuit (5) in the second embodiment will be described.

【0037】図3は、第3の実施例としてのクロック生
成回路(5)を示すブロック図である。
FIG. 3 is a block diagram showing a clock generation circuit (5) as a third embodiment.

【0038】図3において、クロック発生回路(6)か
らの基本クロックGは、分周回路1(10)と、分周回
路2(11)とに供給される。分周回路1(10)及び
分周回路2(11)は、例えば、PTCのようなもので
良い。分周回路1(10)は、制御回路(3)からの制
御信号Fにより、調歩同期データ変換回路(2)に入力
される位相変調シリアルデータAのビットレートの(m
+2)×j倍のサンプリングクロックHが得られる分周
比に設定され、又分周回路2(11)は調歩同期データ
変換回路(2)に入力される調歩同期シリアルデータM
のビットレートのj倍のサンプリングクロックHが得ら
れる分周比に設定される。こうして分周回路1(10)
で分周された基本クロックGは、クロックQとしてスイ
ッチ回路(12)の一方の入力端子に供給され、又分周
回路2(11)で分周された基本クロックGは、クロッ
クRとしてスイッチ回路(12)の他の一方の入力端子
に供給される。スイッチ回路(12)では、制御回路
(3)からの制御信号F’に応じて、例えば、制御信号
F’が1ビットの信号であり、“0”の時は、入力端子
III側に、又制御信号F’が“1”の時は、入力端子IV
側に切り換えられ、クロックQとクロックRとを選択出
力したサンプリングクロックHを調歩同期データ変換回
路(2)に供給する。
In FIG. 3, the basic clock G from the clock generating circuit (6) is supplied to the frequency dividing circuit 1 (10) and the frequency dividing circuit 2 (11). The frequency dividing circuit 1 (10) and the frequency dividing circuit 2 (11) may be, for example, PTC. The frequency dividing circuit 1 (10) receives the control signal F from the control circuit (3) and outputs the bit rate (m of the bit rate of the phase-modulated serial data A input to the start-stop synchronization data conversion circuit (2).
The frequency dividing ratio is set to obtain a sampling clock H of +2) × j times, and the frequency dividing circuit 2 (11) inputs the start / stop synchronization serial data M to the start / stop synchronization data conversion circuit (2).
The frequency division ratio is set to obtain a sampling clock H that is j times the bit rate. Thus, the frequency divider circuit 1 (10)
The basic clock G divided by is supplied to one input terminal of the switch circuit (12) as a clock Q, and the basic clock G divided by the divider circuit 2 (11) is supplied as a clock R to the switch circuit. (12) It is supplied to the other one input terminal. In the switch circuit (12), for example, the control signal F ′ is a 1-bit signal according to the control signal F ′ from the control circuit (3), and when it is “0”, the input terminal is
To the III side, and when the control signal F'is "1", input terminal IV
The sampling clock H, which is switched to the side and selectively outputs the clock Q and the clock R, is supplied to the start-stop synchronization data conversion circuit (2).

【0039】これより、調歩同期データ変換回路(2)
に入力される位相変調シリアルデータA、又は調歩同期
シリアルデータMを受信するのに必要なサンプリングク
ロックHを生成することができる。
From this, the start-stop synchronization data conversion circuit (2)
It is possible to generate the sampling clock H necessary for receiving the phase-modulated serial data A or the start-stop synchronization serial data M input to the.

【0040】尚、図3の分周回路1(10)及び分周回
路2(11)は、分周比を変化可能なものについて説明
したが、本発明は、固定の分周比しか持たない分周回路
を用いた場合においても適用可能なことは明らかであ
る。
Although the frequency dividing circuit 1 (10) and the frequency dividing circuit 2 (11) in FIG. 3 have been described as being capable of changing the frequency dividing ratio, the present invention has only a fixed frequency dividing ratio. It is obvious that the method can be applied even when the frequency divider circuit is used.

【0041】又、図2のスイッチ回路(8)及び図3の
スイッチ回路(12)は、それぞれ制御回路(3)から
の制御信号L及び制御信号F’により制御される場合に
ついて説明したが、本発明は、これらスイッチ回路
(8)及びスイッチ回路(12)が、モード検出回路
(9)からのモード検出データJにより制御される場合
についても適用される。
The switch circuit (8) in FIG. 2 and the switch circuit (12) in FIG. 3 have been described in the case of being controlled by the control signal L and the control signal F'from the control circuit (3), respectively. The present invention is also applied to the case where the switch circuit (8) and the switch circuit (12) are controlled by the mode detection data J from the mode detection circuit (9).

【0042】[0042]

【発明の効果】以上説明したように、本発明によれば、
調歩同期データ変換回路に位相変調シリアルデータのビ
ットレートの(m+2)×j倍のサンプリングクロック
を与えることにより、位相変調シリアルデータをビット
単位でパラレルデータに変換でき、論理演算又は論理判
定の少なくともどちらか一方の処理により位相変調シリ
アルデータのビットデータを生成することにより、位相
変調シリアルデータの受信が可能となる。
As described above, according to the present invention,
By giving a sampling clock of (m + 2) × j times the bit rate of the phase-modulated serial data to the start-stop synchronization data conversion circuit, the phase-modulated serial data can be converted into parallel data in bit units, and at least either logical operation or logical judgment can be performed. By generating the bit data of the phase-modulated serial data by one of the processes, the phase-modulated serial data can be received.

【0043】又調歩同期データ変換回路に位相変調シリ
アルデータのビットレートの(m+2)×j倍のサンプ
リングクロックと調歩同期シリアルデータのビットレー
トのj倍のサンプリングクロックとを切り換えて供給す
ることにより、位相変調シリアルデータ及び、調歩同期
シリアルデータのどちらにも対応可能なシリアルデータ
受信回路が、小規模で低コストに実現できる。
Further, by supplying a sampling clock of (m + 2) × j times the bit rate of the phase-modulated serial data and a sampling clock of j times the bit rate of the asynchronous serial data to the start / stop synchronization data conversion circuit by switching. A serial data receiving circuit that can handle both phase-modulated serial data and start-stop synchronous serial data can be realized in a small scale and at low cost.

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

【図1】本発明の第1の実施例としてのシリアルデータ
受信回路を示すブロック図である。
FIG. 1 is a block diagram showing a serial data receiving circuit as a first embodiment of the present invention.

【図2】本発明の第2の実施例としてのシリアルデータ
受信回路を示すブロック図である。
FIG. 2 is a block diagram showing a serial data receiving circuit as a second embodiment of the present invention.

【図3】本発明の第3の実施例におけるクロック生成回
路を示すブロック図である。
FIG. 3 is a block diagram showing a clock generation circuit according to a third embodiment of the present invention.

【図4】図1及び図2のシリアルデータ受信回路の要部
信号タイミングを示すタイミングチャートである。
4 is a timing chart showing signal timing of main parts of the serial data receiving circuit of FIGS. 1 and 2. FIG.

【図5】図2のシリアルデータ受信回路の要部信号タイ
ミングを示すタイミングチャートである。
5 is a timing chart showing signal timing of main parts of the serial data receiving circuit of FIG.

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

1,7…シリアルデータ入力端子、2…調歩同期データ
変換回路、3…制御回路、4…論理演算回路、5…クロ
ック生成回路、6…クロック発生回路、8,12…スイ
ッチ回路、9…モード検出回路、10…分周回路1、1
1…分周回路2。
1, 7 ... Serial data input terminal, 2 ... Start-stop synchronization data conversion circuit, 3 ... Control circuit, 4 ... Logical operation circuit, 5 ... Clock generation circuit, 6 ... Clock generation circuit, 8, 12 ... Switch circuit, 9 ... Mode Detection circuit, 10 ... Dividing circuit 1, 1
1 ... Divider circuit 2.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 須藤 雅俊 神奈川県横浜市戸塚区吉田町292番地株式 会社日立製作所AV機器事業部映像本部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Masatoshi Sudo, 292 Yoshida-cho, Totsuka-ku, Yokohama-shi, Kanagawa Stock company, AV equipment division, Hitachi Ltd.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】調歩同期シリアルデータの送受信を行なう
シリアルデータ通信回路において、 フォーマット変換,制御コード(符号)判別,制御コマ
ンドの解読,ステータス情報の送出等を行なう演算処理
回路を有し、入力される調歩同期シリアルデータを、該
調歩同期シリアルデータのビットレートのn倍の外部ク
ロックでサンプリングし、そのサンプリングデータn個
ごとを多数決判定したビットデータより、スタートビッ
トを検出し、該スタートビットに続くmビットのデータ
ビットを抽出しビット数mのパラレルデータに変換し、
該パラレルデータと、前記調歩同期シリアルデータを前
記パラレルデータに変換したことを示すステータスデー
タとを出力するデータ変換手段(2)と、 位相変調されたシリアルデータを入力し、前記データ変
換手段(2)に供給するシリアルデータ入力手段1
(1)と、 シリアルデータ入力手段1(1)に入力される位相変調
シリアルデータのビットレートより高い周波数のクロッ
クを発生するクロック発生手段(6)と、 前記クロック発生手段(6)から出力されるクロックを
分周し、前記位相変調シリアルデータのビットレートの
k倍(k>m+2)のクロックを生成し、前記データ変
換手段(2)に供給するクロック生成手段(5)と、 前記データ変換手段(2)から出力される前記ステータ
スデータに応じ、前記位相変調シリアルデータのpビッ
ト単位でビット数mのパラレルデータに変換されたデー
タを読みだし、論理演算、または論理判定の少なくとも
どちらか一方の処理により前記位相変調シリアルデータ
のpビットのビットデータを生成する論理演算手段
(4)と前記データ変換手段(2)と前記論理演算手段
(4)及び前記クロック生成手段(5)とを制御する制
御手段(3)と、 から成ることを特徴とするシリアルデータ受信回路。
1. A serial data communication circuit for transmitting / receiving start-stop synchronous serial data, comprising an arithmetic processing circuit for performing format conversion, control code (code) discrimination, control command decoding, status information transmission, etc. The start-stop synchronization serial data is sampled with an external clock that is n times the bit rate of the start-stop synchronization serial data, and a start bit is detected from the bit data for which a majority decision is made for every n sampling data, and the start bit is continued. m data bits are extracted and converted to parallel data with m bits,
Data conversion means (2) for outputting the parallel data and status data indicating that the start-stop synchronization serial data has been converted to the parallel data, and phase-modulated serial data as input, and the data conversion means (2 ) Serial data input means 1
(1), clock generation means (6) for generating a clock having a frequency higher than the bit rate of the phase-modulated serial data input to the serial data input means 1 (1), and output from the clock generation means (6) A clock which is k times (k> m + 2) the bit rate of the phase-modulated serial data and is supplied to the data conversion means (2); According to the status data output from the means (2), the phase-modulated serial data is read out as data converted into parallel data with a bit number m in p-bit units, and at least one of logical operation and logical judgment is performed. Logical operation means (4) for generating p-bit bit data of the phase-modulated serial data by the processing of and the data conversion Stage (2) and said logical operation means (4) and the serial data receiving circuit, wherein the control means (3) and in that it consists of the control of a clock generating means (5).
【請求項2】請求項1に記載のシリアルデータ受信回路
において、 調歩同期シリアルデータを入力するシリアルデータ入力
手段2(7)と、 該シリアルデータ入力手段2(7)からの調歩同期シリ
アルデータと、前記シリアルデータ入力手段1(1)か
らの位相変調シリアルデータとを選択出力するデータ選
択手段(8)と、 前記位相変調シリアルデータと前記調歩同期シリアルデ
ータの少なくとも一方が入力されたことを検出し、検出
結果を出力するモード検出手段(9)と、 を設けたことを特徴とするシリアルデータ受信回路。
2. The serial data receiving circuit according to claim 1, wherein serial data input means 2 (7) for inputting asynchronous serial data and asynchronous serial data from said serial data input means 2 (7) A data selection means (8) for selectively outputting the phase-modulated serial data from the serial data input means 1 (1), and detecting that at least one of the phase-modulated serial data and the start-stop synchronization serial data is input. The serial data receiving circuit is characterized by further comprising a mode detecting means (9) for outputting a detection result.
【請求項3】請求項1または2に記載のシリアルデータ
受信回路において前記クロック生成回路は、前記シリア
ルデータ入力手段1(1)に入力される前記位相変調シ
リアルデータのビットレートのk倍のクロックを生成す
るクロック分周手段1(10)と、 前記シリアルデータ入力手段2(7)に入力される前記
調歩同期シリアルデータのビットレートのn倍のクロッ
クを生成するクロック分周手段2(11)と、 前記制御回路(3)からの制御信号に応じ、該クロック
分周手段1(11)からのクロック1と、該クロック分
周手段2(2)からのクロック2とを選択出力するクロ
ック選択手段(12)と、 を有することを特徴とするシリアルデータ受信回路。
3. The serial data receiving circuit according to claim 1, wherein the clock generation circuit is a clock having a bit rate k times the bit rate of the phase-modulated serial data input to the serial data input means 1 (1). And a clock frequency dividing means 2 (11) for generating a clock that is n times the bit rate of the start-stop synchronization serial data input to the serial data input means 2 (7). And a clock selection for selectively outputting the clock 1 from the clock frequency dividing means 1 (11) and the clock 2 from the clock frequency dividing means 2 (2) according to the control signal from the control circuit (3). A serial data receiving circuit comprising: a means (12);
JP5009778A 1993-01-25 1993-01-25 Serial data reception circuit Pending JPH06224944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5009778A JPH06224944A (en) 1993-01-25 1993-01-25 Serial data reception circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5009778A JPH06224944A (en) 1993-01-25 1993-01-25 Serial data reception circuit

Publications (1)

Publication Number Publication Date
JPH06224944A true JPH06224944A (en) 1994-08-12

Family

ID=11729705

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5009778A Pending JPH06224944A (en) 1993-01-25 1993-01-25 Serial data reception circuit

Country Status (1)

Country Link
JP (1) JPH06224944A (en)

Similar Documents

Publication Publication Date Title
JP3264670B2 (en) Data communication system
JPH06224944A (en) Serial data reception circuit
JP3008637B2 (en) Digital demodulation circuit
US6134288A (en) Apparatus and method for generating a decoding clock signal in response to a period of write and read clock signals
JP3026398B2 (en) Data phase change method and circuit
JPH02250535A (en) Bit phase synchronizing circuit
JP2001308832A (en) Device for converting speed
JPS63164554A (en) Automatic recognizing system for data speed
JPH0546535A (en) Data transfer interface device
JP2697552B2 (en) Code error detection circuit
JPH10136035A (en) Modulation/demodulation device
JPH0368007A (en) Information processor
JPH03222539A (en) Start bit detection circuit
JPH065831B2 (en) Signal frame transmission method
KR950001927B1 (en) Circuit for detecting digital data synchronous signal
JPH08321852A (en) Two signal system mixed data transmission circuit
JPH11289590A (en) Audio data processor
JPH0595347A (en) Timing extract device
JPH06350590A (en) Cdt reception circuit
JPH03104319A (en) Error detection circuit
JPH04344732A (en) Data transmission system
JP2002281504A (en) 0/1 detecting circuit
JPS599740A (en) Input/output control device
JPS5899827A (en) Shift controlling system of keyboard device
JPH02112320A (en) Decoding circuit for change point encoding signal