JPH0744569B2 - Serial data receiving circuit - Google Patents
Serial data receiving circuitInfo
- Publication number
- JPH0744569B2 JPH0744569B2 JP62255837A JP25583787A JPH0744569B2 JP H0744569 B2 JPH0744569 B2 JP H0744569B2 JP 62255837 A JP62255837 A JP 62255837A JP 25583787 A JP25583787 A JP 25583787A JP H0744569 B2 JPH0744569 B2 JP H0744569B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- frame
- status
- reception
- received
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000006243 chemical reaction Methods 0.000 claims description 16
- 238000004891 communication Methods 0.000 claims description 4
- 230000004044 response Effects 0.000 claims description 3
- 125000004122 cyclic group Chemical group 0.000 claims description 2
- 238000001514 detection method Methods 0.000 description 7
- 238000000034 method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000037433 frameshift Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明はシリアル・データ通信における受信回路に関
し、特にステータス情報を必要とするシリアル・データ
受信回路に関する。TECHNICAL FIELD The present invention relates to a receiving circuit in serial data communication, and more particularly to a serial data receiving circuit that requires status information.
従来、ある定まったデータ通信プロトコル、例えば、HD
LC(High Level Data Link - Control Procedure)フレ
ーム・フォーマットで送られてくるシリアル・データを
受信する方法としては、第3図に示すように受信データ
と受信データに関するステータス・データを独立に扱う
手法がとられていた。これはHDLCフレーム・フォーマッ
トで信号線306により送られてくる信号Xを受信する場
合、つぎの手順でシリアル・パラレル変換が行われる。
まず受信回路が受信可能状態となると受信回路は同期検
出モードになり、シフト・レジスタ301により受信され
るシリアル・データXの中のフラグの検出が開始され
る。この状態は最初のフラグが検出されるまで継続され
る。フラグが検出されて、シリアル・データXに関する
フレーム同期が確立するとデータ受信状態に遷移し、受
信データのアセンブルを開始する。データ受信状態で
は、シフト・レジスタ301から出力された受信データ
を、あらかじめ定められたビット長nごとに、シリアル
・パラレル変換回路302でnビットのパラレル・データ
Yにアセンブルする。パラレルデータYはアセンブルさ
れる毎に、信号線307を通して受信FIFOメモリ303に転送
される。通常受信FIFOメモリ303は数段のFIFO構成をと
る。受信FIFOメモリ303の各段はパラレル・データYを
格納するためのnビット幅のレジスタと、パラレル・デ
ータYの存在をしめす1ビットのユース・ビット・レジ
スタと、受信フレームの最後のデータであることを表す
1ビットのエンド・ビット・レジスタから成る。受信回
路は受信FIFOメモリ303の先頭段のユース・ビット・レ
ジスタによって、ホスト・システムにパラレル・データ
Yの引取りを要求する。ホスト・システムはエンド・ビ
ット・レジスタがアクティブである受信データを読み出
すまで順次受信FIFOメモリ303からパラレル・データを
読み出し続ける。Conventionally, a certain data communication protocol, for example, HD
As a method of receiving serial data sent in LC (High Level Data Link-Control Procedure) frame format, there is a method of separately treating received data and status data related to the received data as shown in FIG. It was taken. When receiving the signal X sent by the signal line 306 in HDLC frame format, serial-parallel conversion is performed in the following procedure.
First, when the receiving circuit becomes the receivable state, the receiving circuit enters the synchronous detection mode, and the detection of the flag in the serial data X received by the shift register 301 is started. This state continues until the first flag is detected. When the flag is detected and the frame synchronization for the serial data X is established, the state transits to the data receiving state and the assembling of the received data is started. In the data receiving state, the received data output from the shift register 301 is assembled into n-bit parallel data Y by the serial / parallel conversion circuit 302 for each predetermined bit length n. Each time the parallel data Y is assembled, it is transferred to the reception FIFO memory 303 through the signal line 307. The normal reception FIFO memory 303 has a FIFO structure of several stages. Each stage of the reception FIFO memory 303 is an n-bit wide register for storing the parallel data Y, a 1-bit youth bit register indicating the existence of the parallel data Y, and the last data of the reception frame. It consists of a 1-bit end bit register that indicates that. The receiving circuit requests the host system to retrieve the parallel data Y by the use bit register at the top of the receiving FIFO memory 303. The host system continues to read parallel data from the receive FIFO memory 303 sequentially until the end bit register is active to read the received data.
受信回路はデータ受信中でもフラグ検出機能は有効であ
り、一度データ受信状態に移ってから再びフラグを検出
すると、1つのフレームの終了とみなし、受信終了状態
に移る。フレームの受信が終了すると、ステータス生成
回路304はそのフレームのステータス・データZを信号
線308を通してステータス・レジスタ305に書き込む。The flag detection function is effective even during reception of data in the receiving circuit, and if the flag is detected again after shifting to the data receiving state once, it is regarded as the end of one frame and shifts to the receiving end state. When the reception of the frame is completed, the status generation circuit 304 writes the status data Z of the frame to the status register 305 through the signal line 308.
ホスト・システムはフレームの最後のデータを受信FIFO
メモリ303から取り出した後、ステータス・レジスタ305
を読み出し、受信フレームに誤りのないことを確認す
る。The host system receives the last data in the frame FIFO
Status register 305 after being removed from memory 303
To check that there is no error in the received frame.
上記の手法により、HDLCフレーム・フォーマットで送ら
れてくるシリアル・データXはパラレル・データYに変
換され受信される。By the above method, the serial data X sent in the HDLC frame format is converted into the parallel data Y and received.
上述した従来の方法によると、入力されたシリアル・デ
ータXから変換したパラレル・データYを読み出した場
合、1フレームの全てのパラレル・データYを読み出し
た後でそのフレームに関するステータス・データを読み
出して受信フレームの正当性を判断する。このため1つ
の受信フレームのステータス・データを読み出すまで、
次のフレームを受信できないという欠点がある。According to the conventional method described above, when the parallel data Y converted from the input serial data X is read, the status data regarding the frame is read after reading all the parallel data Y of one frame. Determine the validity of the received frame. Therefore, until the status data of one received frame is read,
There is a drawback that the next frame cannot be received.
上述した従来の受信回路では受信したシリアル・データ
とステータス・データを独立した情報として処理するの
に対し、本発明においてはそれぞれを同じ受信情報とし
て取り扱うところに独創的内容を有する。In the conventional receiving circuit described above, the received serial data and status data are processed as independent information, whereas the present invention treats each as the same received information, which has an original content.
本発明の目的は、上述した欠点に鑑みなされたものであ
り、HDLCフレーム・フォーマトで受信したシリアル・デ
ータXをパラレル・データYに変換する受信回路におい
て、パラレル・データYおよびそのステータス・データ
Zを受信FIFOメモリに交互に書き込むことにより1フレ
ームごとにこれら2つのデータを含む1つの受信情報と
して記憶させるとともに、ホスト・システムによるステ
ータス・データZの正当性の判断結果を待つことなく連
続してフレームの受信をすることを可能ならしめること
にある。The object of the present invention has been made in view of the above-mentioned drawbacks. In a receiving circuit for converting serial data X received by an HDLC frame format into parallel data Y, parallel data Y and its status data Z Are alternately written to the reception FIFO memory to store as one reception information including these two data for each frame, and continuously without waiting for the result of judgment of the validity of the status data Z by the host system. The point is to be able to receive frames.
本発明によるシリアル・データ受信回路は、シリアル・
データ通信の所定のフレーム・フォーマットに従って送
信されるシリアル・データXが受信されて前記1フレー
ムごとにシフトレジスタに一時記憶され、この一時記憶
されたシリアル・データXから所定のフラグが検出され
てフレーム同期が確立しデータ受信状態になると、シリ
アル・パラレル変換回路が前記シフト・レジスタから供
給される前記シリアル・データXをnビット単位のパラ
レル・データYに変換し、かつステータス生成回路が受
信した前記シリアル・データXの巡回冗長検査を実行し
てステータス・データZを生成し、ホスト・システムが
所定の受信フレームの最後のデータを読み出した後に前
記ステータス・データZを読み出すことによって前記所
定の受信フレームの正当性を判断した後で次のフレーム
の受信が可能となるシリアル・データ受信回路におい
て; 前記ステータス生成回路または受信フレームごとのデー
タ長をカウントする受信レングス・カウンタのいずれか
一方と、受信フレームごとの先頭フラグと終了フラグと
の期間はインアクティブに、前記終了フラグと次の先頭
フラグとの期間はアクティブになるステータス書き込み
制御回路と、このステータス書き込み制御回路の出力信
号に応答して前記ステータス生成回路および受信レング
ス・カウンタの一方の出力信号と前記シリアル・パラレ
ル変換回路の出力信号との一方を選択するマルチプレク
サと、このマルチプレクサの選択出力信号を格納する受
信FIFOとを備え、前記ステータス書き込み制御回路の出
力信号が前記インアクティブのときに前記パラレル・デ
ータYが、前記アクティブのときに前記ステータス・デ
ータZがそれぞれ前記受信FIFOメモリに交互に書き込ま
れて1フレームごとにこれら2つのデータを含む1つの
受信情報として記憶されるとともに、前記ホスト・シス
テムによる前記受信フレームの正当性の判断結果を待つ
ことなく連続して前記フレームの受信をすることが可能
になるようにしたことを特徴とする。The serial data receiving circuit according to the present invention is
Serial data X transmitted according to a predetermined frame format of data communication is received and temporarily stored in the shift register for each frame, and a predetermined flag is detected from the temporarily stored serial data X to detect the frame. When synchronization is established and a data reception state is established, the serial / parallel conversion circuit converts the serial data X supplied from the shift register into parallel data Y in units of n bits, and the status generation circuit receives the data. The cyclic receive check of the serial data X is performed to generate the status data Z, and the status data Z is read after the last data of the predetermined reception frame is read by the host system. The next frame can be received after the validity of In the serial data reception circuit; either the status generation circuit or the reception length counter that counts the data length of each reception frame, and the period of the start flag and end flag of each reception frame are inactive, and the end A status write control circuit that is active during the period between the flag and the next head flag, and one output signal of the status generation circuit and the reception length counter in response to the output signal of the status write control circuit and the serial / parallel signal. A multiplexer that selects one of the output signals of the conversion circuit and a reception FIFO that stores the selection output signal of the multiplexer are provided. When the output signal of the status write control circuit is inactive, the parallel data Y is , When said active The status data Z are alternately written in the reception FIFO memory and stored as one reception information including these two data for each frame, and the host system determines the validity of the reception frame. It is characterized in that the frame can be continuously received without waiting for the result.
次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.
第1図は本発明の第1の実施例のシステム構成を示すブ
ロック図である。図中101は例えば8ビット長のシフト
・レジスタでありHDLCフレーム・フォーマットで信号線
108により送られてくるシリアル・データXの中からフ
ラグを検出しHDLCフレームとのフレーム同期を確立す
る。フラグが検出されて、シリアル・データXに関する
フレーム同期が確立するとデータ受信状態を遷移し、受
信データのアセンブルを開始する。データ受信状態で
は、シリアル・パラレル変換回路102によりシフト・レ
ジスタ101から出力される受信したシリアル・データX
をあらかじめ定められたビット長nごとに、nビット長
のパラレル・データYにアセンブルされ、信号線109に
出力される。パラレル・データYはアセンブルされる毎
に、マルチプレクサ103を通して受信FIFOメモリ104に転
送される。マルチプレクサ103はシリアル・パラレル変
換回路102から出力されるパラレル・データYと受信CRC
のチェックを行う受信CRCステータス生成回路105の出力
であるステータス・データZとを、後述するステータス
書き込み制御信号107によりマルチプレクスし受信FIFO
メモリ104に転送する。通常受信FIFO104は数段のFIFO構
成をとる。受信FIFOメモリ104の各段はパラレル・デー
タYを格納するためのnビット幅のレジスタと、パラレ
ル・データYの存在をしめす1ビットのユース・ビット
・レジスタと、受信フレームの最後のデータであること
を表す1ビットのエンド・ビット・レジスタから成る。
受信回路は受信FIFOメモリ104の先頭段のユース・ビッ
ト・レジスタによって、ホスト・システムにパラレル・
データYの引き取りを要求する。受信回路はデータ受信
中でもシフト・レジスタ101によるフラグ検出機能は有
効であり、一度データ受信状態に移ってから再びフラグ
を検出すると、1つのフレームの終了とみなし、受信を
終了するが、再び次のフレーム受信のためにフレーム同
期検出状態に移る。ステータス書き込み制御回路106は
フレーム同期が確立している間すなわちフレームの先頭
フラグと終了フラグの間はステータス書き込み制御信号
107をインアクティブとしパラレルデータYをマルチプ
レクサ103を通して受信FIFOメモリ104に書き込む。ま
た、受信フレームと次の受信フレームの間、つまり、終
了フラグを検出してから次のフラグを検出する間はステ
ータス書き込み制御信号107はアクティブとなり、受信C
RCステータス生成回路105のステータス・データZが信
号線101を通して受信FIFメモリO104に書き込まれる。フ
レームの受信が終了すると、受信CRCステータス生成回
路105は受信フレームのステータス・データZをマルチ
プレクサ103を通して受信FIFOメモリ104に書き込む。こ
の一連の動作により、受信FIFOメモリ104に空きがある
限り受信回路はHDLCフォーマットの受信フレームを連続
して、受信ステータスと共に受信FIFOメモリ104にバッ
ファリングすることが可能である。一方ホスト・システ
ムはエンド・ビット・レジスタがアクティブである受信
データ、すなわち受信フレームの最後のデータを読み出
すまで順次受信FIFOメモリ104から受信データを読み出
し続ける。ホスト・システムは1つの受信フレームの最
後のデータをエンド・ビット・レジスタにより検知し、
そのデータを受信FIFOメモリ104から取り出した後、さ
らにもう一度受信FIFOメモリ104を読み出す。読み出し
たデータは受信CRCステータス生成回路105で生成された
受信フレームに関するCRCチェックのステータス・デー
タZであり、このステータスから受信フレームに誤りの
ないことを確認する。もし受信FIFOメモリ104に更にデ
ータが格納されていれば、それは次のフレームの受信デ
ータであり、ホスト・システムは再び受信FIFOメモリ10
4からの受信データの読み出しを開始する。FIG. 1 is a block diagram showing the system configuration of the first embodiment of the present invention. In the figure, 101 is, for example, an 8-bit shift register, which is a signal line in the HDLC frame format.
A flag is detected from the serial data X sent by 108 to establish frame synchronization with the HDLC frame. When the flag is detected and the frame synchronization for the serial data X is established, the data receiving state is transited and the assembling of the received data is started. In the data reception state, the received serial data X output from the shift register 101 by the serial / parallel conversion circuit 102.
Are assembled into parallel data Y having an n-bit length for each predetermined bit length n and output to the signal line 109. Each time the parallel data Y is assembled, it is transferred to the reception FIFO memory 104 through the multiplexer 103. The multiplexer 103 receives the parallel data Y output from the serial / parallel conversion circuit 102 and the reception CRC.
And the status data Z, which is the output of the reception CRC status generation circuit 105 for performing the check, is multiplexed by the status write control signal 107 described later to receive FIFO.
Transfer to the memory 104. The normal reception FIFO 104 has a FIFO structure of several stages. Each stage of the reception FIFO memory 104 is an n-bit wide register for storing the parallel data Y, a 1-bit use bit register indicating the existence of the parallel data Y, and the last data of the reception frame. It consists of a 1-bit end bit register that indicates that.
The receiving circuit uses the use bit register in the first stage of the receiving FIFO memory 104 for parallel connection to the host system.
Request to retrieve data Y. The flag detection function of the shift register 101 is effective even during reception of data in the reception circuit. If the flag is detected again after shifting to the data reception state, it is considered that one frame has ended, and reception is ended, but the next The frame shift detection state is entered for frame reception. The status writing control circuit 106 is a status writing control signal while the frame synchronization is established, that is, between the head flag and the end flag of the frame.
107 is made inactive and parallel data Y is written in the reception FIFO memory 104 through the multiplexer 103. Further, the status write control signal 107 becomes active between the reception frame and the next reception frame, that is, while the end flag is detected and the next flag is detected, and the reception C
The status data Z of the RC status generation circuit 105 is written in the reception FIF memory O104 through the signal line 101. When the reception of the frame is completed, the reception CRC status generation circuit 105 writes the status data Z of the reception frame into the reception FIFO memory 104 through the multiplexer 103. Through this series of operations, the reception circuit can continuously buffer the reception frames in the HDLC format in the reception FIFO memory 104 together with the reception status as long as the reception FIFO memory 104 has a free space. On the other hand, the host system sequentially continues to read the received data from the receive FIFO memory 104 until the received data whose end bit register is active, that is, the last data of the received frame is read. The host system detects the last data of one received frame by the end bit register,
After taking out the data from the reception FIFO memory 104, the reception FIFO memory 104 is read again. The read data is the CRC check status data Z related to the received frame generated by the received CRC status generation circuit 105, and it is confirmed from this status that the received frame has no error. If more data is stored in the receive FIFO memory 104, it is the next frame of received data and the host system again receives the receive FIFO memory 10
Start reading the received data from 4.
上記の手法により、HDLCフレーム・フォーマットで送ら
れてくるシリアル・データXはパラレル・データYに変
換されるとともに、その受信フレームのステータスZも
続けて受信FIFOメモリに書き込まれるため、連続したHD
LCフレームの受信が可能である。By the above method, the serial data X sent in the HDLC frame format is converted into the parallel data Y, and the status Z of the received frame is also continuously written in the receive FIFO memory.
LC frames can be received.
第2図は本発明の第2の実施例のシステム構成を示すブ
ロック図である。本図は第1図におけるCRCチェック回
路であるステータス生成回路に対し、受信レングス・カ
ウンタを配置した構成例である。本実施例は、ホスト・
システムが受信データの読み出しにDMA等を用いた場合
等に有効である。信号線208を通して送られてくる受信
したシリアル・データXをパラレル・データYに変換す
る受信回路は、第1図のシリアル・パラレル変換回路と
同じ構成をとる。FIG. 2 is a block diagram showing the system configuration of the second embodiment of the present invention. This figure shows a configuration example in which a reception length counter is arranged for the status generation circuit which is the CRC check circuit in FIG. In this embodiment, the host
This is effective when the system uses DMA etc. to read the received data. A receiving circuit for converting the received serial data X sent through the signal line 208 into parallel data Y has the same configuration as the serial / parallel conversion circuit of FIG.
第2図中201は8ビット長のシフト・レジスタでありHDL
Cフレーム・フォーマットで送られてくるシリアル・デ
ータXの中からフラグを検出しHDLCフレームとのフレー
ム同期を確立する。フラグが検出されて、シリアル・デ
ータXに関するフレーム同期が確立するとデータ受信状
態に遷移し、受信データのアセンブルを開始する。デー
タ受信状態では、あらかじめ定められたビット長nごと
に、シリアル・パラレル変換回路202によりシフト・レ
ジスタ201から出力されたシリアル・データXをnビッ
ト長のパラレル受信データYにアセンブルし信号線209
に出力する。受信データYはアセンブルされる毎に、マ
ルチプレクサ203を通して受信FIFO204に転送される。マ
ルチプレクサ203はシリアル・パラレル変換回路202から
出力されるパラレル・データYと受信フレームのデータ
長をカウントする受信レングス・カウンタ回路205の出
力であるステータス・データZとを、後述するステータ
ス書き込み制御信号207によりマルチプレクスし受信FIF
Oメモリ204に転送する。通常受信FIFOメモリ204は数段
のFIFO構成をとる。受信FIFOメモリ204の各段はパラレ
ル・データYを格納するためのnビット幅のレジスタ
と、パラレル・データYの存在をしめす1ビットのユー
ス・ビット・レジスタと、受信フレームの最後のデータ
であることを表す1ビットのエンド・ビット・レジスタ
から成る。受信回路は受信FIFOメモリ204の先頭段のユ
ース・ビット・レジスタによって、ホスト・システムに
パラレル・データYの引き取りを要求する。受信回路は
データ受信中でもフラグ検出機能は有効であり、一度デ
ータ受信状態に移ってから再びフラグを検出すると、1
つのフレームの終了とみなし、受信を終了するが、再び
次のフレーム受信のためにフレーム同期検出状態に移
る。ステータス書き込み制御回路206はフレーム同期が
確立している間すなわちフレームの先頭フラグと終了フ
ラグの間はステータス書き込み制御信号207をインアク
ティブとし、パラレル・データYをマルチプレクサ203
を通して受信FIFOメモリ204に書き込む。また、受信フ
レームと次の受信フレームの間、つまり終了フラグを検
出してから次のフラグを検出する間はステータス書き込
み制御信号207はアクティブとなり受信レングス・カウ
ンタ回路205のステータス・データZが出力210を通して
受信FIFOメモリ204に書き込まれる。フレームの受信が
終了すると、受信レングス・カウンタ回路205は受信フ
レームのステータス・データZをマルチプレクサ203を
通して受信FIFO204に書き込む。この一連の動作によ
り、受信FIFO204に空きがある限り受信回路はHDLCフォ
ーマットの受信フレームを連続して受信FIFO204にバッ
ファリングすることが可能である。一方ホスト・システ
ムはエンド・ビット・レジスタがアクティブである受信
データ、すなわち受信フレームの最後のデータを読み出
すまで順次受信FIFOメモリ204から受信データを読み出
し続ける。ホスト・システムは1つの受信フレームの最
後の受信データをエンド・ビット・レジスタにより検知
し、そのデータを受信FIFOメモリ204から取り出した
後、さらにもう一度受信FIFOメモリ204を読み出す。読
み出したデータは受信レングス・カウンタ回路205で作
成された受信フレームに関するステータス・データZで
あり、ホスト・システムはこのステータス・データZか
ら受信フレームに誤りのないことを確認する。もし受信
FIFOメモリ204に更にデータが格納されていれば、それ
は次のフレームの受信データであり、ホスト・システム
は再び受信FIFOメモリ204からの受信データの読み出し
を開始する。In FIG. 2, 201 is an 8-bit shift register, which is HDL.
A flag is detected from the serial data X sent in the C frame format to establish frame synchronization with the HDLC frame. When the flag is detected and the frame synchronization for the serial data X is established, the state transits to the data receiving state and the assembling of the received data is started. In the data receiving state, the serial / parallel conversion circuit 202 assembles the serial data X output from the shift register 201 into parallel received data Y having an n-bit length, and the signal line 209
Output to. The reception data Y is transferred to the reception FIFO 204 through the multiplexer 203 every time it is assembled. The multiplexer 203 outputs the parallel data Y output from the serial / parallel conversion circuit 202 and the status data Z output from the reception length counter circuit 205 that counts the data length of the reception frame, to a status write control signal 207 described later. By multiplexing and receiving FIF
Transfer to O memory 204. The normal reception FIFO memory 204 has a FIFO structure of several stages. Each stage of the reception FIFO memory 204 is an n-bit wide register for storing the parallel data Y, a 1-bit use bit register indicating the existence of the parallel data Y, and the last data of the reception frame. It consists of a 1-bit end bit register that indicates that. The receiving circuit requests the host system to take in the parallel data Y by the use bit register at the head stage of the receiving FIFO memory 204. The flag detection function is effective even when the receiving circuit is receiving data, and if the flag is detected again after shifting to the data receiving state, 1
The reception is considered to be the end of one frame, but the frame synchronization detection state is entered again for the reception of the next frame. The status write control circuit 206 makes the status write control signal 207 inactive while the frame synchronization is established, that is, between the head flag and the end flag of the frame, and sets the parallel data Y to the multiplexer 203.
Through the receive FIFO memory 204. Further, the status write control signal 207 becomes active between the reception frame and the next reception frame, that is, while the end flag is detected and then the next flag is detected, and the status data Z of the reception length counter circuit 205 is output 210. Is written to the reception FIFO memory 204 through. When the reception of the frame is completed, the reception length counter circuit 205 writes the status data Z of the reception frame into the reception FIFO 204 through the multiplexer 203. Through this series of operations, the reception circuit can continuously buffer the reception frames of the HDLC format in the reception FIFO 204 as long as the reception FIFO 204 has a free space. On the other hand, the host system sequentially continues to read the received data from the reception FIFO memory 204 until the end bit register is active, that is, the last data of the received frame is read. The host system detects the last received data of one received frame by the end bit register, retrieves the data from the receive FIFO memory 204, and then reads the receive FIFO memory 204 again. The read data is the status data Z relating to the received frame created by the received length counter circuit 205, and the host system confirms from this status data Z that the received frame has no error. If received
If more data is stored in the FIFO memory 204, it is the received data of the next frame, and the host system starts reading the received data from the receive FIFO memory 204 again.
上記の手法により、HDLCフレーム・フォーマットで送ら
れてくるシリアル・データXはパラレル・データYに変
換されるとともに、その受信フレームのステータスも続
けて受信FIFOメモリに書き込まれるため、連続したHDLC
フレームの受信が可能である。By the above method, the serial data X sent in the HDLC frame format is converted into the parallel data Y, and the status of the received frame is continuously written in the receive FIFO memory.
The frame can be received.
以上説明したように本発明によれば、例えば、HDLCフレ
ーム・フォーマットで送られてくる受信信号であるシリ
アル・データXをパラレル・データYに変換する受信回
路において、シリアル・データXからステータス書き込
み制御回路により得られたステータス制御信号のアクテ
ィブおよびインアクティブに対応してパラレル・データ
Yおよびテータス・データZがそれぞれ受信FIFOメモリ
に交互に書き込まれて1フレームごとにこれら2つのデ
ータを含む1つの受信情報として記憶されるとともに、
ホスト・システムによる受信フレームの正当性の判断結
果を待つことなく連続してHDLCフレームの受信をするこ
とが可能になる。As described above, according to the present invention, for example, in a receiving circuit that converts serial data X, which is a received signal sent in the HDLC frame format, into parallel data Y, status write control from serial data X is performed. Parallel data Y and status data Z are alternately written to the reception FIFO memory in response to the active and inactive status control signals obtained by the circuit, and one reception including these two data is performed for each frame. Is stored as information,
It becomes possible to receive HDLC frames continuously without waiting for the result of the host system to judge the validity of received frames.
第1図は本発明を用いた第1の実施例を示すブロック
図、第2図は本発明を用いた第2の実施例2を示すブロ
ック図、第3図は従来例のシステムの構成を示すブロッ
ク図である。 101……シフト・ルジスタ、102……シリアル・パラレル
変換回路、103……マルチプレクサ、104……受信FIFOメ
モリ、105……ステータス生成回路、106……ステータス
書き込み制御回路、107……ステータス書き込み制御信
号、108……シリアル・データX、109……パラレル・デ
ータY、110……ステータス・データZ、201……シフト
・レジスタ、202……シリアル・パラレル変換回路、203
……マルチプレクサ、204……受信FIFO、205……ステー
タス生成回路、206……ステータス書き込み制御回路、2
07……ステータス書き込み制御信号、208……受信信号
X、209……パラレル変換データY、210……ステータス
・データZ、301……シフト・レジスタ、302……シリア
ル・パラレル変換回路、303……受信FIFO、304……ステ
ータス生成回路、305……ステータス・レジスタ、306…
…受信信号X、307……パラレル変換データY、308……
ステータス・データZ。FIG. 1 is a block diagram showing a first embodiment using the present invention, FIG. 2 is a block diagram showing a second embodiment 2 using the present invention, and FIG. 3 is a system configuration of a conventional example. It is a block diagram shown. 101 ... Shift resistor, 102 ... Serial / parallel conversion circuit, 103 ... Multiplexer, 104 ... Reception FIFO memory, 105 ... Status generation circuit, 106 ... Status writing control circuit, 107 ... Status writing control signal , 108 ... serial data X, 109 ... parallel data Y, 110 ... status data Z, 201 ... shift register, 202 ... serial-parallel conversion circuit, 203
...... Multiplexer, 204 …… Reception FIFO, 205 …… Status generation circuit, 206 …… Status writing control circuit, 2
07 ... Status writing control signal, 208 ... Reception signal X, 209 ... Parallel conversion data Y, 210 ... Status data Z, 301 ... Shift register, 302 ... Serial / parallel conversion circuit, 303 ... Receive FIFO, 304 ... Status generation circuit, 305 ... Status register, 306 ...
… Received signal X, 307 …… Parallel conversion data Y, 308 ……
Status data Z.
Claims (1)
フォーマットに従って送信されるシリアル・データXが
受信されてフレームごとにシフトレジスタに一時記憶さ
れ、この一時記憶されたシリアル・データXから所定の
フラグが検出されてフレーム同期が確立しデータ受信状
態になると、シリアル・パラレル変換回路が前記シフト
・レジスタから供給される前記シリアル・データXをn
ビット単位のパラレル・データYに変換し、かつステー
タス生成回路が受信した前記シリアル・データXの巡回
冗長検査を実行してステータス・データZを生成し、ホ
スト・システムが所定の受信フレームの最後のデータを
読み出した後に前記ステータス・データZを読み出すこ
とによって前記所定の受信フレームの正当性を判断した
後で次のフレームの受信が可能となるシリアル・データ
受信回路において; 前記ステータス生成回路または受信フレームごとのデー
タ長をカウントする受信レングス・カウンタのいずれか
一方と、受信フレームごとの先頭フラグと終了フラグと
の期間はインアクティブに、前記終了フラグと次の先頭
フラグとの期間はアクティブになるステータス書き込み
制御回路と、このステータス書き込み制御回路の出力信
号に応答して前記ステータス生成回路および前記受信レ
ングス・カウンタの一方の出力信号と前記シリアル・パ
ラレル変換回路の出力信号との一方を選択するマルチプ
レクサと、このマルチプレクサの選択出力信号を格納す
る受信FIFOとを備え、前記ステータス書き込み制御回路
の出力信号が前記インアクティブのときに前記パラレル
・データYが、前記アクティブのときに前記ステータス
・データZがそれぞれ前記受信FIFOメモリに交互に書き
込まれて1フレームごとにこれら2つのデータを含む1
つの受信情報として記憶されるとともに、前記ホスト・
システムによる前記受信フレームの正当性の判断結果を
待つことなく連続して前記フレームの受信をすることが
可能になるようにしたことを特徴とするシリアル・デー
タ受信回路。1. A predetermined frame for serial data communication.
When the serial data X transmitted according to the format is received and temporarily stored in the shift register for each frame, a predetermined flag is detected from the temporarily stored serial data X, frame synchronization is established, and a data reception state is set. , A serial-parallel conversion circuit converts the serial data X supplied from the shift register to n
The bit data is converted into parallel data Y, and the status generation circuit performs a cyclic redundancy check on the received serial data X to generate status data Z. In a serial data receiving circuit capable of receiving the next frame after determining the validity of the predetermined received frame by reading the status data Z after reading the data; the status generation circuit or the received frame A status in which one of the reception length counters that counts the data length of each frame, the head flag and the end flag of each received frame is inactive, and the end flag and the next head flag are active. Write control circuit and output of this status write control circuit A multiplexer that selects one of the output signals of the status generation circuit and the reception length counter and the output signal of the serial-parallel conversion circuit in response to a signal, and a reception FIFO that stores the selection output signal of the multiplexer. And when the output signal of the status write control circuit is inactive, the parallel data Y is written alternately in the receive FIFO memory and the parallel data Y is written in the receive FIFO memory in one frame. 1 including each of these two data
Is stored as one received information and the host
A serial data receiving circuit characterized in that it is possible to continuously receive the frame without waiting for a result of judgment of the validity of the received frame by the system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62255837A JPH0744569B2 (en) | 1987-10-09 | 1987-10-09 | Serial data receiving circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62255837A JPH0744569B2 (en) | 1987-10-09 | 1987-10-09 | Serial data receiving circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0198348A JPH0198348A (en) | 1989-04-17 |
| JPH0744569B2 true JPH0744569B2 (en) | 1995-05-15 |
Family
ID=17284285
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62255837A Expired - Lifetime JPH0744569B2 (en) | 1987-10-09 | 1987-10-09 | Serial data receiving circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0744569B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0795766B2 (en) * | 1989-06-30 | 1995-10-11 | 株式会社日立製作所 | Digital data communication device and data communication adapter used therefor |
| CN115080477B (en) * | 2022-05-30 | 2024-01-30 | 杭州初灵信息技术股份有限公司 | Method and system for serial communication |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5854763A (en) * | 1981-09-28 | 1983-03-31 | Nec Corp | Line adaptor |
-
1987
- 1987-10-09 JP JP62255837A patent/JPH0744569B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0198348A (en) | 1989-04-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0744569B2 (en) | Serial data receiving circuit | |
| JP3119275B2 (en) | Data transmission circuit | |
| JP2759984B2 (en) | Signal transfer device | |
| JPH04290342A (en) | Information transfer system | |
| JP2760323B2 (en) | ATM cell format conversion circuit | |
| JPS59123333A (en) | System for converting data transfer speed | |
| JPS59132479A (en) | Data processing circuit | |
| JP3098056B2 (en) | Cell data transfer method by ATM multiplex transmission | |
| JPS6083451A (en) | Synchronous data buffering system | |
| KR100189529B1 (en) | Memory control apparatus and method of disk data decoder for DVD | |
| JPH01129635A (en) | Received fifo control circuit | |
| JP4051615B2 (en) | Disk unit | |
| JPH0744580B2 (en) | Data length conversion circuit | |
| JPH0123987B2 (en) | ||
| JP2002135270A (en) | Asynchronous data transfer method | |
| JP3075273B2 (en) | Cell buffer control circuit | |
| JP2672737B2 (en) | Control method of multi-frame synchronization circuit | |
| JP2526542B2 (en) | Information processing device | |
| JPH01226236A (en) | Start-stop data transmission system | |
| JPH11103304A (en) | Cell synchronization circuit and cell multiplexer | |
| JPH03159426A (en) | System for housing independent synchronous terminal equipment | |
| JPS593573A (en) | Magnetic disk controller | |
| JPH0669897A (en) | Frame conversion circuit | |
| JPS5850038A (en) | Telemeter data processing device | |
| JPH088544B2 (en) | Frame sync signal detection circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080515 Year of fee payment: 13 |