JPH04336724A - Serial receiver - Google Patents

Serial receiver

Info

Publication number
JPH04336724A
JPH04336724A JP3107462A JP10746291A JPH04336724A JP H04336724 A JPH04336724 A JP H04336724A JP 3107462 A JP3107462 A JP 3107462A JP 10746291 A JP10746291 A JP 10746291A JP H04336724 A JPH04336724 A JP H04336724A
Authority
JP
Japan
Prior art keywords
serial
data
level
output
input
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
JP3107462A
Other languages
Japanese (ja)
Inventor
Masakazu Urade
浦出 正和
So Ishido
石戸 創
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3107462A priority Critical patent/JPH04336724A/en
Publication of JPH04336724A publication Critical patent/JPH04336724A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PURPOSE:To synchronize serial reception in the serial data receiver. CONSTITUTION:A signal inputted from a serial clock input means 10 is inputted to 1st and end level discrimination means 100, 110, and every time the 1st discrimination means 100 discriminates it that the signal level is a predetermined setting level, an output of a register means 30 is set to a counter means 40 and an output of the 2nd discrimination means 110 is used to count the data by a counter means 40 repetitively. Thus, a head bit of a block of a serial reception data is recognized and the synchronization in the unit of blocks attained.

Description

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

【0001】0001

【産業上の利用分野】本発明はシリアル受信装置の改良
に関し、特にシリアルデータ受信の同期化に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to improvements in serial receiving apparatus, and more particularly to synchronization of serial data reception.

【0002】0002

【従来の技術】図2は従来のシリアル受信装置の一例を
示すブロック図であって、10はシリアルクロックを入
力するシリアルクロック入力手段、20はシリアル受信
データを入力するシリアルデータ入力手段、30はシリ
アルデータの1ブロックあたりのビット数を設定するレ
ジスタ手段、40は設定されたデータをシリアルクロッ
ク入力手段10からのクロックによりダウンカウントし
ていくカウンタ手段、50はカウンタ手段40の出力が
カウント動作によりアンダーフローしたことを判定する
比較手段、60は比較手段50の出力を示すシリアル受
信終了フラグ、70はシリアルクロック入力手段10か
らのクロックによりシリアルデータ入力手段20のデー
タをシフト入力するシフトレジスタ手段、80はシフト
レジスタ手段70のパラレルデータを出力するデータ出
力手段である。
2. Description of the Related Art FIG. 2 is a block diagram showing an example of a conventional serial receiving device, in which 10 is a serial clock input means for inputting a serial clock, 20 is a serial data input means for inputting serial reception data, and 30 is a serial clock input means for inputting a serial clock. Register means for setting the number of bits per block of serial data; 40 is a counter means that counts down the set data using a clock from the serial clock input means 10; 50 is a register means for counting down the set data by a clock from the serial clock input means 10; Comparing means for determining underflow, 60 a serial reception end flag indicating the output of the comparing means 50, 70 shift register means for shifting and inputting the data of the serial data input means 20 using the clock from the serial clock input means 10; 80 is a data output means for outputting parallel data from the shift register means 70.

【0003】次に、前記従来例の動作を説明する。あら
かじめシリアルデータの1ブロックあたりのビット数を
レジスタ手段30に設定記憶し、初期状態でレジスタ手
段30のデータをカウンタ手段40に設定する。次に、
シリアルクロック入力手段10からのクロックによって
カウンタ手段40はダウンカウントし、同時にシリアル
データ入力手段20のデータをシフトレジスタ手段70
にてデータをシフト入力する。カウンタ手段40の出力
は比較手段50にてカウンタのアンダーフローが検出さ
れ、シリアル受信終了フラグ60をセットする。シリア
ル受信終了フラグ60の出力は、レジスタ手段30の出
力をカウンタ手段40に設定する信号となる。シフトレ
ジスタ手段70の出力はデータ出力手段80から出力さ
れる。シリアル受信終了フラグ60はマイクロコンピュ
ータなどへの割り込み入力信号となる。
Next, the operation of the conventional example will be explained. The number of bits per block of serial data is set and stored in the register means 30 in advance, and the data in the register means 30 is set in the counter means 40 in an initial state. next,
The counter means 40 counts down by the clock from the serial clock input means 10, and at the same time the data from the serial data input means 20 is transferred to the shift register means 70.
Shift input the data. An underflow of the counter output from the counter means 40 is detected by the comparison means 50, and a serial reception end flag 60 is set. The output of the serial reception end flag 60 becomes a signal for setting the output of the register means 30 in the counter means 40. The output of the shift register means 70 is outputted from the data output means 80. The serial reception end flag 60 serves as an interrupt input signal to a microcomputer or the like.

【0004】0004

【発明が解決しようとする課題】しかしながら、上記従
来例では、シリアルデータのデータブロックの先頭ビッ
トを認識することが出来ない。このため、シリアルクロ
ック信号に1パルス以上のノイズが発生すると、取り込
んだデータの信頼性が著しく低下するという欠点を有し
ていた。
However, in the conventional example described above, it is not possible to recognize the leading bit of a data block of serial data. Therefore, if noise of one pulse or more occurs in the serial clock signal, the reliability of the captured data is significantly reduced.

【0005】[0005]

【課題を解決するための手段】以上の欠点を解決するた
めに、本発明では、シルアル受信クロックの電圧レベル
を変化させることにより、シリアルデータのデータブロ
ックの先頭ビットを認識することとする。
SUMMARY OF THE INVENTION In order to solve the above drawbacks, the present invention recognizes the leading bit of a data block of serial data by changing the voltage level of a serial reception clock.

【0006】つまり、本発明のシリアル受信装置の具体
的な構成は、シリアル受信クロックを入力する第1の入
力端子と、シリアル受信データを入力する第2の入力端
子と、シリアルデータのビット数を記憶するレジスタ手
段と、前記第1の入力端子からの入力レベルが設定レベ
ルであることを判別する第1の判別手段と、前記第1の
入力端子からの入力レベルが前記設定レベル以下である
ことを判別する第2の判別手段と、前記第1の判別手段
の出力により前記レジスタ手段の出力をセットし、前記
第2の判別手段の出力によりダウンカウントするカウン
タ手段と、前記第2の入力端子から入力するデータを前
記第2の判別手段の出力によりシフト入力するシフトレ
ジスタ手段と、前記カウンタ手段のアンダーフローを判
定する比較手段とを有する構成としている。
That is, the specific configuration of the serial receiving device of the present invention includes a first input terminal for inputting a serial reception clock, a second input terminal for inputting serial reception data, and a terminal for inputting a serial reception clock, and a second input terminal for inputting serial reception data. register means for storing; first determining means for determining that the input level from the first input terminal is a set level; and the input level from the first input terminal is equal to or lower than the set level. a second discriminating means for discriminating, a counter means for setting the output of the register means according to the output of the first discriminating means, and counting down according to the output of the second discriminating means, and the second input terminal. The present invention is configured to include a shift register means for shifting input data from the second determining means according to the output of the second determining means, and a comparing means for determining an underflow of the counter means.

【0007】[0007]

【作用】以上の構成により、本発明では、第1の入力端
子からの入力レベルが設定レベルに変化する毎に、カウ
ンタ手段が第1の判別手段の出力によりレジスタ手段の
出力をセットすることが繰返されるので、シリアル受信
データのブロック単位での同期化を図り得るシリアル受
信装置を得ることができる。
[Operation] With the above configuration, in the present invention, the counter means can set the output of the register means by the output of the first determining means every time the input level from the first input terminal changes to the set level. Since the process is repeated, it is possible to obtain a serial receiving device that can synchronize serially received data in units of blocks.

【0008】[0008]

【実施例】以下、本発明の一実施例を図1及び図3ない
し図6を参照しながら説明する。図1は本発明のシリア
ル受信装置のブロック図の一例であって、10はシリア
ル受信クロックを入力する第1の入力端子としてのシリ
アルクロック入力手段、20はシリアル受信データを入
力する第2の入力端子としてのシリアルデータ入力手段
、100は前記シリアルクロック入力手段10からの入
力信号レベルが設定値であることを判別する第1のレベ
ル判別手段、110は前記シリアルクロック入力手段1
0からの入力信号レベルが前記設定値以下であることを
判別する第2のレベル判別手段、30はシリアルデータ
の1ブロックあたりのビット数を記憶するレジスタ手段
、40は前記第1のレベル判別手段100の出力により
レジスタ手段30の出力を入力し、このセットされたデ
ータを前記第1のレベル判別手段110からのクロック
出力によりダウンカウントしていくカウンタ手段、50
はカウンタ手段40の出力がカウント動作によりアンダ
ーフローしたことを判定する比較手段、60は比較手段
50の出力を示すシリアル受信終了フラグ、70はシリ
アルデータ入力手段20から入力するデータを前記第2
のレベル判別手段110からのクロックによりシフト入
力するシフトレジスタ手段、80はシフトレジスタ手段
70のパラレルデータを出力するデータ出力手段である
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. 1 and 3 to 6. FIG. 1 is an example of a block diagram of a serial receiving device according to the present invention, in which 10 is a serial clock input means as a first input terminal for inputting a serial reception clock, and 20 is a second input for inputting serial reception data. Serial data input means as a terminal; 100 is first level determination means for determining that the input signal level from the serial clock input means 10 is a set value; 110 is the serial clock input means 1;
30 is a register means for storing the number of bits per block of serial data; 40 is the first level determining means; 30 is a register means for storing the number of bits per block of serial data; counter means 50 which inputs the output of the register means 30 according to the output of 100 and counts down the set data according to the clock output from the first level determination means 110;
60 is a serial reception end flag indicating the output of the comparison means 50. 70 is a comparison means for determining whether the output of the counter means 40 has underflowed due to a counting operation. 70 is a serial reception end flag indicating the output of the comparison means 50.
80 is a data output means for outputting the parallel data of the shift register means 70.

【0009】図3はシリアルクロック入力手段10に入
力するシリアルクロック信号を示し、図4はシリアルデ
ータ入力手段20に入力するシリアルデータ信号を示す
。また、図5は第1のレベル判別手段100の出力波形
を示し、図6は第2のレベル判別手段110の出力波形
を示す。
FIG. 3 shows a serial clock signal input to the serial clock input means 10, and FIG. 4 shows a serial data signal input to the serial data input means 20. 5 shows the output waveform of the first level determining means 100, and FIG. 6 shows the output waveform of the second level determining means 110.

【0010】本実施例では、シリアルデータの1ブロッ
クあたりのビット数を「8」に設定しており、レジスタ
手段30に設定する値は「8」から「1」を減じた「7
」である。シリアルクロック入力手段10に先ず、図3
に示すシリアルクロックの1番目のパルス(図中VHレ
ベルからVMレベルに変化した点)が入力されると、第
1のレベル判別手段100は入力レベルが前記設定レベ
ル(VMレベル)であることを判別し、図5に示すよう
に入力レベルが設定レベル(VMレベル)にある間、V
Lレベルとなる波形を出力する。同様に、第2のレベル
判別手段110は設定レベル(VMレベル)以下である
ことを判別し、図6に示す出力波形となる。
In this embodiment, the number of bits per block of serial data is set to "8", and the value set in the register means 30 is "7", which is "8" minus "1".
”. First, in the serial clock input means 10, FIG.
When the first pulse of the serial clock shown in FIG. As shown in FIG. 5, while the input level is at the set level (VM level), V
Outputs a waveform that becomes L level. Similarly, the second level determining means 110 determines that the level is below the set level (VM level), resulting in the output waveform shown in FIG.

【0011】次に、図3に示すシリアルクロックの2番
目以降のパルス(図中VHレベルからVLレベルに変化
した点)が入力されると、第1のレベル判別手段100
は設定レベル(VMレベル)ではないことを判別し、図
5に示すようにVHレベルを出力する。同様に、第2の
レベル判別手段110は設定レベル(VMレベル)以下
であることを判別し、図6に示す出力波形となる。
Next, when the second and subsequent pulses of the serial clock shown in FIG.
determines that it is not at the set level (VM level), and outputs the VH level as shown in FIG. Similarly, the second level determining means 110 determines that the level is below the set level (VM level), resulting in the output waveform shown in FIG.

【0012】レジスタ手段30に設定された値「7」は
図5に示す信号のVLレベルでカウンタ手段40に設定
され、カウンタ手段40は図6に示す信号のパルスの立
ち上がりエッジ毎に設定値「7」のダウンカウント動作
をする。比較手段50によりカウンタ手段40の出力が
アンダーフローしたことが判別されれば、シリアル受信
終了フラグ60によりシリアル受信の終了が判定できる
。また、シリアルデータ入力手段20には図4のデータ
が入力され、このデータは図6に示す信号の立ち上がり
エッジ毎にシフトレジスタ手段70によりシフト入力さ
れ、データ出力手段80よりパラレルデータとして出力
される。
The value "7" set in the register means 30 is set in the counter means 40 at the VL level of the signal shown in FIG. 7" down count operation. If the comparison means 50 determines that the output of the counter means 40 has underflowed, the serial reception end flag 60 can determine the end of serial reception. 4 is input to the serial data input means 20, this data is shifted in by the shift register means 70 at every rising edge of the signal shown in FIG. 6, and is output as parallel data from the data output means 80. .

【0013】したがって、本実施例では、シルアルクロ
ック入力手段10のシリアル受信クロックの入力レベル
が設定レベル(VMレベル)となる毎にカウンタ手段4
0がレジスタ手段30の出力をセットすることを繰返す
ので、シリアルデータ受信時の通信開始を正しく判定す
ることができる。
Therefore, in this embodiment, each time the input level of the serial reception clock of the serial clock input means 10 reaches the set level (VM level), the counter means 4
Since the output of the register means 30 is repeatedly set to 0, it is possible to correctly determine the start of communication when receiving serial data.

【0014】[0014]

【発明の効果】以上説明したように、本発明のシリアル
受信装置によれば、シリアルデータ受信時の通信開始を
正しく判定することができるので、シリアルクロック信
号に1パルス以上のノイズが発生しても、シルアルデー
タのデータブロックの先頭ビットを正しく認識すること
ができる。
[Effects of the Invention] As explained above, according to the serial receiving device of the present invention, it is possible to correctly determine the start of communication when receiving serial data, so that noise of one pulse or more is not generated in the serial clock signal. It is also possible to correctly recognize the first bit of a data block of serial data.

【0015】同様に、シリアル受信クロックのレベルを
判別する手段を複数構成すれば、シリアル受信データの
ヘッダ検出だけでなく、シリアル受信データを複数個で
1ブロックを構成するようなシステムのシリアルブロッ
クのヘッダ検出に利用することもできる。
Similarly, by configuring a plurality of means for determining the level of the serial reception clock, it is possible to not only detect the header of serial reception data but also detect the serial block of a system in which one block is composed of a plurality of pieces of serial reception data. It can also be used for header detection.

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

【図1】本発明の一実施例のシリアル受信装置のブロッ
ク構成を示す図である。
FIG. 1 is a diagram showing a block configuration of a serial receiving device according to an embodiment of the present invention.

【図2】従来のシリアル受信装置のブロック構成を示す
図である。
FIG. 2 is a diagram showing a block configuration of a conventional serial receiving device.

【図3】シリアル受信クロックの波形を示す図である。FIG. 3 is a diagram showing a waveform of a serial reception clock.

【図4】シリアルデータの波形を示す図である。FIG. 4 is a diagram showing a waveform of serial data.

【図5】第1のレベル判別手段の出力波形を示す図であ
る。
FIG. 5 is a diagram showing an output waveform of the first level determining means.

【図6】第2のレベル判別手段の出力波形を示す図であ
る。
FIG. 6 is a diagram showing an output waveform of a second level determining means.

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

10        シリアルクロック入力手段(第1
の入力端子) 20        シリアルデータ入力手段(第2の
入力端子) 30        レジスタ手段 40        カウンタ手段 50        比較手段 60        シリアル受信終了フラグ70  
      シフトレジスタ手段80        
データ出力手段 100        第1のレベル判別手段(第1の
判別手段) 110        第2のレベル判別手段(第2の
判別手段)
10 Serial clock input means (first
20 Serial data input means (second input terminal) 30 Register means 40 Counter means 50 Comparison means 60 Serial reception end flag 70
Shift register means 80
Data output means 100 First level discrimination means (first discrimination means) 110 Second level discrimination means (second discrimination means)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】シリアル受信クロックを入力する第1の入
力端子と、シリアル受信データを入力する第2の入力端
子と、シリアルデータのビット数を記憶するレジスタ手
段と、前記第1の入力端子からの入力レベルが設定レベ
ルであることを判別する第1の判別手段と、前記第1の
入力端子からの入力レベルが前記設定レベル以下である
ことを判別する第2の判別手段と、前記第1の判別手段
の出力により前記レジスタ手段の出力をセットし、前記
第2の判別手段の出力によりダウンカウントするカウン
タ手段と、前記第2の入力端子から入力するデータを前
記第2の判別手段の出力によりシフト入力するシフトレ
ジスタ手段と、前記カウンタ手段のアンダーフローを判
定する比較手段とを有することを特徴とするシリアル受
信装置。
Claims: 1. A first input terminal for inputting a serial reception clock, a second input terminal for inputting serial reception data, register means for storing the number of bits of serial data, and a first input terminal for inputting a serial reception clock; a first determining means for determining that an input level from the first input terminal is at a set level; a second determining means for determining that an input level from the first input terminal is equal to or lower than the set level; counter means that sets the output of the register means according to the output of the discriminating means and counts down according to the output of the second discriminating means; What is claimed is: 1. A serial receiving device comprising: shift register means for inputting a shift signal; and comparison means for determining underflow of said counter means.
JP3107462A 1991-05-13 1991-05-13 Serial receiver Pending JPH04336724A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3107462A JPH04336724A (en) 1991-05-13 1991-05-13 Serial receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3107462A JPH04336724A (en) 1991-05-13 1991-05-13 Serial receiver

Publications (1)

Publication Number Publication Date
JPH04336724A true JPH04336724A (en) 1992-11-24

Family

ID=14459797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3107462A Pending JPH04336724A (en) 1991-05-13 1991-05-13 Serial receiver

Country Status (1)

Country Link
JP (1) JPH04336724A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7221198B2 (en) 2003-09-19 2007-05-22 Sanyo Electric Co., Ltd. Interface circuit and a clock output method therefor
JP2008227609A (en) * 2007-03-08 2008-09-25 Sanyo Electric Co Ltd Serial-parallel conversion circuit and liquid crystal display driving circuit
JP2010244259A (en) * 2009-04-03 2010-10-28 Sanyo Electric Co Ltd Interface circuit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7221198B2 (en) 2003-09-19 2007-05-22 Sanyo Electric Co., Ltd. Interface circuit and a clock output method therefor
US7724060B2 (en) 2003-09-19 2010-05-25 Sanyo Electric Co., Ltd. Interface circuit and a clock output method therefor
JP2008227609A (en) * 2007-03-08 2008-09-25 Sanyo Electric Co Ltd Serial-parallel conversion circuit and liquid crystal display driving circuit
JP2010244259A (en) * 2009-04-03 2010-10-28 Sanyo Electric Co Ltd Interface circuit

Similar Documents

Publication Publication Date Title
JP2641999B2 (en) Data format detection circuit
US7260734B2 (en) Method and circuit for transmitting data between systems having different clock speeds
EP0500263A2 (en) Method for synchronising a receiver's data clock
US4101732A (en) Start and stop system
JPH04336724A (en) Serial receiver
US4068180A (en) Methods and apparatus for enhancing resolution in pulse analysis
JPS6229238A (en) Transmitter receiver for start-stop serial data
JP2702773B2 (en) Data monitoring device
JP2680971B2 (en) Asynchronous communication speed detection circuit
US5832033A (en) Clock disturbance detection based on ratio of main clock and subclock periods
JPH04329721A (en) Data reception method
KR100431748B1 (en) Vertical synchronous signal Detector
JP2715953B2 (en) Synchronous circuit
JPH04360334A (en) Start-stop synchronization reception circuit
KR100218467B1 (en) Automatic dial signal recognition apparatus for telephone
JP4747761B2 (en) Serial signal judgment circuit
SU1755377A1 (en) Device for error determination during data transfer through phone line
US4041248A (en) Tone detection synchronizer
KR100208931B1 (en) Rmvd device having a circuit for detecting falling-edge
RU1793552C (en) Device for determination of boundaries of digital information packets
JPH0124992Y2 (en)
SU1099395A1 (en) Receiver of commands for slaving velocity
KR930004541Y1 (en) Multi-mode detection apparatus of tv
JP3006426B2 (en) FM multiplex encoder
JPH0591148A (en) Signal interruption detection circuit