JPH08249257A - Serial data receiver - Google Patents

Serial data receiver

Info

Publication number
JPH08249257A
JPH08249257A JP7054839A JP5483995A JPH08249257A JP H08249257 A JPH08249257 A JP H08249257A JP 7054839 A JP7054839 A JP 7054839A JP 5483995 A JP5483995 A JP 5483995A JP H08249257 A JPH08249257 A JP H08249257A
Authority
JP
Japan
Prior art keywords
data
reception
status
error
fifo
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
JP7054839A
Other languages
Japanese (ja)
Other versions
JP3164996B2 (en
Inventor
Yoshiyuki Uejima
良之 上島
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP05483995A priority Critical patent/JP3164996B2/en
Publication of JPH08249257A publication Critical patent/JPH08249257A/en
Application granted granted Critical
Publication of JP3164996B2 publication Critical patent/JP3164996B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE: To store plural data blocks along with corresponding status data inside a reception FIFO and to read the status data only when an error is generated. CONSTITUTION: A reception error detection circuit 2 detects the reception error information of reception data and outputs the status data, a final data detection circuit 3 monitors whether or not the reception data are final data and the reception FIFO 4 stores the reception data converted into a parallel data form in a serial/parallel conversion circuit 1 and final data flags corresponding to them. A reception status control circuit 5 moves the status data stored after the reception data whose final data flag is '1' to a reception status register 6 and a reception status read requesting circuit 7 requests the read of the status data to a CPU 8 when the status data indicates the generation of a reception error.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はシリアルデータ受信装置
に関し、特に受信したシリアルデータをパラレルデータ
に変換して出力するとともに、受信エラー検出を行うシ
リアルデータ受信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data receiving apparatus, and more particularly to a serial data receiving apparatus for converting received serial data into parallel data and outputting the parallel data and detecting a reception error.

【0002】[0002]

【従来の技術】従来、この種のシリアルデータ受信装置
においては、図7に示すように、シリアルデータ形式の
受信データをパラレルデータ形式に変換するシリアル・
パラレル変換回路1と、受信データから受信エラー情報
を検出する受信エラー検出回路2と、シリアル・パラレ
ル変換回路1でパラレルデータ形式に変換された受信デ
ータを格納する受信FIFO(ファーストインファース
トアウト)21とから構成されている。
2. Description of the Related Art Conventionally, in this type of serial data receiving apparatus, as shown in FIG. 7, a serial data converting device for converting received data in serial data format into parallel data format is used.
A parallel conversion circuit 1, a reception error detection circuit 2 that detects reception error information from the reception data, and a reception FIFO (first in first out) 21 that stores the reception data converted into the parallel data format by the serial / parallel conversion circuit 1. It consists of and.

【0003】図示せぬ受信回路によってシリアルデータ
形式で受信された受信データはシリアル・パラレル変換
回路1でパラレルデータ形式に変換される。パラレルデ
ータ形式に変換された受信データは受信された順番で受
信FIFO21に格納される。
Received data received in a serial data format by a receiving circuit (not shown) is converted into a parallel data format by a serial / parallel conversion circuit 1. The reception data converted into the parallel data format is stored in the reception FIFO 21 in the order of reception.

【0004】このとき、受信エラー検出回路2はシリア
ルデータ形式で受信した受信データからアボートやCR
C(Cyclic Redundancy Check
code)エラー等の受信エラー情報を検出し、その
受信エラー情報をステータスデータとして出力する。
At this time, the reception error detection circuit 2 uses the received data received in the serial data format to abort or CR.
C (Cyclic Redundancy Check)
code) Received error information such as an error is detected, and the received error information is output as status data.

【0005】1つのデータブロック(1パケットデー
タ)の受信が終了すると、そのデータブロックの最終デ
ータに続いて受信エラー検出回路2から出力されるステ
ータスデータが受信FIFO21に格納される。
When the reception of one data block (one packet data) is completed, the status data output from the reception error detection circuit 2 following the final data of the data block is stored in the reception FIFO 21.

【0006】受信FIFO21に格納された受信データ
及びステータスデータは受信FIFO21に格納された
順番で、シリアルデータ受信装置に接続されたCPU
(中央処理装置)(図示せず)によって読出される。こ
の方法では受信FIFO21の段数に応じて複数のデー
タブロックを格納することが可能である。
The received data and status data stored in the reception FIFO 21 are stored in the reception FIFO 21 in the order in which they are stored in the CPU connected to the serial data receiving apparatus.
It is read by a (central processing unit) (not shown). In this method, it is possible to store a plurality of data blocks according to the number of stages of the reception FIFO 21.

【0007】上記の方法のほかに、図8に示すように、
受信エラー検出回路2から出力されるステータスデータ
を受信ステータスレジスタ23に格納する方法もある。
この方法によるシリアルデータ受信装置はシリアルデー
タ形式の受信データをパラレルデータ形式に変換するシ
リアル・パラレル変換回路1と、受信データから受信エ
ラー情報を検出する受信エラー検出回路2と、シリアル
・パラレル変換回路1でパラレルデータ形式に変換され
た受信データを格納する受信FIFO22と、受信エラ
ー検出回路2から出力されるステータスデータを格納す
る受信ステータスレジスタ23とから構成されている。
In addition to the above method, as shown in FIG.
There is also a method of storing the status data output from the reception error detection circuit 2 in the reception status register 23.
A serial data receiving apparatus according to this method includes a serial / parallel conversion circuit 1 for converting received data in a serial data format into a parallel data format, a reception error detection circuit 2 for detecting reception error information from the received data, and a serial / parallel conversion circuit. It is composed of a reception FIFO 22 for storing the reception data converted into the parallel data format at 1, and a reception status register 23 for storing the status data output from the reception error detection circuit 2.

【0008】受信回路によってシリアルデータ形式で受
信された受信データはシリアル・パラレル変換回路1で
パラレルデータ形式に変換される。パラレルデータ形式
に変換された受信データは受信された順番で受信FIF
O22に格納される。
The received data received by the receiving circuit in the serial data format is converted into the parallel data format by the serial / parallel conversion circuit 1. The reception data converted into the parallel data format is received in the reception FIFO in the order of reception.
It is stored in O22.

【0009】このとき、受信エラー検出回路2はシリア
ルデータ形式で受信した受信データからアボートやCR
Cエラー等の受信エラー情報を検出し、その受信エラー
情報をステータスデータとして出力する。受信エラー検
出回路2から出力されるステータスデータは1つのデー
タブロックの受信が終了した後に、受信ステータスレジ
スタ23に格納される。
At this time, the reception error detection circuit 2 uses the received data received in the serial data format to abort or CR.
Reception error information such as a C error is detected, and the reception error information is output as status data. The status data output from the reception error detection circuit 2 is stored in the reception status register 23 after the reception of one data block is completed.

【0010】受信FIFO22に格納された受信データ
は受信FIFO22に格納された順番で、シリアルデー
タ受信装置に接続されたCPUによって読出される。ま
た、受信ステータスレジスタ23に格納されたステータ
スデータは受信FIFO22から1つのデータブロック
の最終データが読出された後にCPUによって読出され
る。この方法では受信FIFO22の段数及び受信ステ
ータスレジスタ23の段数によって、受信できるデータ
ブロックの数が決定される。
The reception data stored in the reception FIFO 22 is read by the CPU connected to the serial data receiving device in the order of storage in the reception FIFO 22. The status data stored in the reception status register 23 is read by the CPU after the final data of one data block is read from the reception FIFO 22. In this method, the number of data blocks that can be received is determined by the number of stages of the reception FIFO 22 and the number of stages of the reception status register 23.

【0011】上記の方法はいずれも図6に示すようなシ
ステム構成の下に用いられている。このシステム構成に
おいて、シリアルデータ受信装置11はシリアルデータ
送信装置12と、CPU13と、ダイレクトメモリアク
セスコントローラ(DMAC)14と、RAM(ランダ
ムアクセスメモリ)15と、ROM(リードオンリメモ
リ)16とに夫々接続されている。
All of the above methods are used under the system configuration shown in FIG. In this system configuration, the serial data receiving device 11 includes a serial data transmitting device 12, a CPU 13, a direct memory access controller (DMAC) 14, a RAM (random access memory) 15, and a ROM (read only memory) 16, respectively. It is connected.

【0012】シリアルデータ受信装置11でパラレルデ
ータ形式に変換された受信データはCPU13やダイレ
クトメモリアクセスコントローラ14によって読出さ
れ、RAM15に格納される。
The received data converted into the parallel data format by the serial data receiving device 11 is read by the CPU 13 and the direct memory access controller 14 and stored in the RAM 15.

【0013】ROM16にはCPU13をコントロール
するプログラムが格納されている。CPU13はそのプ
ログラムを実行することで、シリアルデータ受信装置1
1の受信FIFO21,22や受信ステータスレジスタ
23から受信データやステータスデータの読出し処理を
制御する。
The ROM 16 stores a program for controlling the CPU 13. The CPU 13 executes the program so that the serial data receiving device 1
The reception processing of the reception data and the status data from the reception FIFO 21 and 22 of 1 and the reception status register 23 is controlled.

【0014】上記の方法のうち2番目の方法について
は、特開昭63−293657号公報に詳述されてい
る。この公報に開示されたシリアル通信制御装置では受
信データを一時的に格納するFIFO形式の受信データ
バッファと、受信ステータスを一時的に格納するFIF
O形式の受信ステータスバッファとが設けられており、
各バッファ内の受信データと受信ステータスとの対応付
けが行われている。これによって、フレーム毎の割込み
処理を行うことなく、連続する複数のフレームを読取る
ことが可能となっている。
The second method among the above methods is described in detail in JP-A-63-293657. In the serial communication control device disclosed in this publication, a FIFO-type reception data buffer for temporarily storing reception data and a FIFO for temporarily storing reception status.
An O-type reception status buffer is provided,
The reception data in each buffer and the reception status are associated with each other. This makes it possible to read a plurality of consecutive frames without performing interrupt processing for each frame.

【0015】上記の技術以外にも、特開平5−2682
71号公報に開示された技術がある。この技術では第1
のFIFOメモリ内にデータとエラーデータとを格納
し、第2のFIFOメモリにデータの最終バイトを示す
ビットを格納している。
In addition to the above technique, Japanese Patent Laid-Open No. 5-2682
There is a technique disclosed in Japanese Patent No. 71. First in this technology
The first FIFO memory stores the data and the error data, and the second FIFO memory stores the bit indicating the final byte of the data.

【0016】これによって、第1のFIFOメモリに格
納されたデータのうち第2のFIFOメモリの最終バイ
トを示すビットに対応するデータの次のデータをエラー
データとしてエラーレジスタに書込むことができるの
で、第1のFIFOメモリのデータを連続的に読出すこ
とができる。この場合、エラーレジスタに書込まれたエ
ラーデータは第1のFIFOメモリに格納された次のフ
レームの最終バイトが出力されるまでに読出せばよい。
As a result, the data next to the data corresponding to the bit indicating the last byte of the second FIFO memory among the data stored in the first FIFO memory can be written in the error register as error data. , The data in the first FIFO memory can be continuously read. In this case, the error data written in the error register may be read before the final byte of the next frame stored in the first FIFO memory is output.

【0017】また、上記の技術では第2のFIFOメモ
リに最終バイトを示すビットの他にエラービットを格納
しておくことで、そのエラービットにエラーがあること
が示されている場合にのみエラーデータをエラーレジス
タに書込むことを可能としている。この場合、エラービ
ットにエラーがあることが示されなければ、エラーデー
タをエラーレジスタに書込む必要はない。
Further, in the above technique, the error bit is stored in the second FIFO memory in addition to the bit indicating the last byte, so that an error occurs only when the error bit indicates that there is an error. It is possible to write data to the error register. In this case, the error data need not be written to the error register unless the error bit indicates that there is an error.

【0018】[0018]

【発明が解決しようとする課題】上述した従来のシリア
ルデータ受信装置では、1つのデータブロックを受信F
IFOに格納した後に、そのデータブロックの最終デー
タに続けてステータスデータを受信FIFOに格納する
方法の場合、受信FIFOの段数に応じて複数のデータ
ブロックを同一の受信FIFO内に格納することが可能
となるが、1つのデータブロックを受信FIFOから読
出した後に、そのデータブロックの最終データに続けて
受信FIFOに格納されたステータスデータも必ず読出
さなければならない。
In the above-mentioned conventional serial data receiving apparatus, one data block is received F
In the case where the status data is stored in the reception FIFO after the last data of the data block after being stored in the IFO, it is possible to store a plurality of data blocks in the same reception FIFO according to the number of stages of the reception FIFO. However, after reading one data block from the reception FIFO, the status data stored in the reception FIFO must be read after the final data of the data block.

【0019】また、受信データを受信FIFOに格納
し、ステータスデータを受信ステータスレジスタに格納
する方法の場合、受信ステータスレジスタに格納された
ステータスデータは受信エラーが発生しているときだけ
読出すようにすることが可能であるが、予め複数の受信
ステータスレジスタを準備しておかなければ、複数のデ
ータブロックを受信しようとした時に受信ステータスレ
ジスタ内のステータスデータが上書きされてしまうこと
がある。この場合には複数のデータブロックとステータ
スデータとの対応をとることが困難である。
In the method of storing the received data in the reception FIFO and the status data in the reception status register, the status data stored in the reception status register should be read only when a reception error occurs. However, if a plurality of reception status registers are not prepared in advance, the status data in the reception status register may be overwritten when trying to receive a plurality of data blocks. In this case, it is difficult to associate a plurality of data blocks with the status data.

【0020】さらに、特開昭63−293657号公報
に開示された技術の場合、複数のフレームを受信データ
バッファ内に取込み、各フレーム毎に受信ステータスに
よる割込み処理を必要とすることなく、複数のフレーム
を読取ることを可能としているが、複数のフレーム各々
に対応する受信ステータスを格納するために複数の受信
ステータスバッファが必要となる。
Further, in the case of the technique disclosed in Japanese Patent Application Laid-Open No. 63-293657, a plurality of frames are fetched in the reception data buffer, and a plurality of frames are not required for interrupt processing depending on the reception status. Although it is possible to read a frame, a plurality of reception status buffers are required to store the reception status corresponding to each of a plurality of frames.

【0021】さらにまた、特開平5−268271号公
報に開示された技術の場合、第1のFIFOメモリ内に
データとエラーデータとを格納し、第2のFIFOメモ
リにデータの最終バイトを示すビットを格納し、そのビ
ットに対応するデータの次のデータをエラーデータとし
てエラーレジスタに書込むことで、第1のFIFOメモ
リのデータを連続的に読出すことができるようにしてい
る。
Furthermore, in the case of the technique disclosed in Japanese Unexamined Patent Publication No. 5-268271, data and error data are stored in the first FIFO memory, and a bit indicating the last byte of the data is stored in the second FIFO memory. Is stored and the data next to the data corresponding to that bit is written in the error register as error data, so that the data in the first FIFO memory can be continuously read.

【0022】しかしながら、エラーレジスタに書込まれ
たエラーデータを次のフレームの最終バイトが出力され
るまでに読出せなければ、エラーデータが失われてしま
うこととなる。
However, if the error data written in the error register cannot be read before the final byte of the next frame is output, the error data will be lost.

【0023】この技術では第2のFIFOメモリに最終
バイトを示すビットの他にエラービットを格納しておく
ことで、そのエラービットにエラーがあることが示され
ている場合にのみエラーデータをエラーレジスタに書込
むことを可能とし、エラービットにエラーがあることが
示されていなければ、エラーデータをエラーレジスタに
書込む必要はないようにしている。しかしながら、この
方法では受信データを格納する第1のFIFOメモリの
段数に比例して第2のFIFOメモリの段数が決定され
るため、第1のFIFOメモリの段数を増やす時には第
2のFIFOメモリの段数も増やさなければならない。
According to this technique, the error data is stored in the second FIFO memory in addition to the bit indicating the last byte, so that the error data is errored only when the error bit indicates that there is an error. It allows the registers to be written so that the error data need not be written to the error registers unless the error bits indicate an error. However, according to this method, the number of stages of the second FIFO memory is determined in proportion to the number of stages of the first FIFO memory that stores the received data, so when increasing the number of stages of the first FIFO memory, the number of stages of the second FIFO memory is increased. The number of steps must also be increased.

【0024】そこで、本発明の目的は上記の問題点を解
消し、受信FIFO内に複数のデータブロックを対応す
るステータスデータとともに格納可能とし、そのステー
タスデータをエラー発生時にのみ読出すことができるシ
リアルデータ受信装置を提供することにある。
Therefore, an object of the present invention is to solve the above-mentioned problems, to enable a plurality of data blocks to be stored in a reception FIFO together with corresponding status data, and the status data can be read only when an error occurs. It is to provide a data receiving device.

【0025】[0025]

【課題を解決するための手段】本発明によるシリアルデ
ータ受信装置は、シリアルデータをパラレルデータに変
換して受信するとともに、前記シリアルデータのエラー
情報の検出を行うシリアルデータ受信装置であって、前
記パラレルデータ及び前記エラー情報を一時的に格納す
る先入れ先出し形式の受信バッファと、前記エラー情報
を保持するレジスタと、前記受信バッファから読出した
データから前記エラー情報を取出して前記レジスタに移
す手段と、前記レジスタに保持された前記エラー情報が
前記シリアルデータのエラー発生を示す時のみ前記レジ
スタに保持された前記エラー情報の読取り要求を出力す
る手段とを備えている。
A serial data receiving apparatus according to the present invention is a serial data receiving apparatus which converts serial data into parallel data and receives the serial data and detects error information of the serial data. A first-in first-out receiving buffer for temporarily storing the parallel data and the error information; a register for holding the error information; a means for extracting the error information from the data read from the receiving buffer and transferring it to the register; And a means for outputting a read request for the error information held in the register only when the error information held in the register indicates that an error has occurred in the serial data.

【0026】[0026]

【作用】受信したシリアルデータ形式の受信データをシ
リアル・パラレル変換回路でパラレルデータ形式に変換
して受信FIFOに一時的に格納するとともに、受信F
IFOに受信エラー検出回路からのステータスデータを
一時的に格納する。
The received serial data format received data is converted into parallel data format by the serial / parallel conversion circuit and temporarily stored in the receive FIFO.
The status data from the reception error detection circuit is temporarily stored in the IFO.

【0027】この後に、受信ステータス制御回路の制御
の基に受信FIFOからステータスデータを読取って受
信ステータスレジスタに移動し、受信ステータスレジス
タに保持されたステータスデータが受信データのエラー
発生を示す時のみ受信ステータス読取り要求回路からC
PUにステータスデータの読取り要求を出力する。
After this, under the control of the reception status control circuit, the status data is read from the reception FIFO and moved to the reception status register, and is received only when the status data held in the reception status register indicates that an error has occurred in the reception data. From status read request circuit C
Outputs a status data read request to the PU.

【0028】これによって、受信FIFO内に複数のデ
ータブロックを、それに対応するステータスデータとと
もに格納可能とし、そのステータスデータをエラー発生
時にのみ読出すことができる。
Thus, a plurality of data blocks can be stored in the reception FIFO together with the corresponding status data, and the status data can be read only when an error occurs.

【0029】また、受信FIFOの段数によって異なる
が、複数のパケットデータを受信FIFO内に蓄積して
おくことが可能となる。したがって、受信FIFOから
受信データの読出しを行うCPUが他の処理で忙しい場
合でも、受信FIFOに空きが有る限り、複数の受信パ
ケットデータを受信FIFOに蓄積しておくことがで
き、CPUの処理が忙しくなくなった時に受信FIFO
から受信データを読出すことができる。
Further, although it depends on the number of stages of the reception FIFO, it becomes possible to store a plurality of packet data in the reception FIFO. Therefore, even when the CPU that reads received data from the reception FIFO is busy with other processing, as long as there is a free space in the reception FIFO, it is possible to store a plurality of reception packet data in the reception FIFO and the processing of the CPU can be performed. Receive FIFO when you're not busy
The received data can be read from.

【0030】さらに、受信データのエラー情報等を示す
ステータスデータ用レジスタを複数段必要とすることな
く、1つのステータスデータ用レジスタで複数のパケッ
トデータを受信FIFO内に蓄積しておくことが可能と
なる。つまり、ステータスデータを受信データとは別に
レジスタに格納する方法では複数のパケットデータを受
信したい場合、受信可能なパケットデータ数と同数の受
信ステータスレジスタを準備しなければならないが、本
発明では1つの受信ステータスレジスタで複数のパケッ
トデータを受信することができる。
Further, it is possible to store a plurality of packet data in the reception FIFO by one status data register without requiring a plurality of status data registers indicating error information of the received data. Become. In other words, in the method of storing the status data in the register separately from the reception data, when it is desired to receive a plurality of packet data, the same number of reception status registers as the receivable number of packet data must be prepared. A plurality of packet data can be received by the reception status register.

【0031】さらにまた、受信パケットデータにエラー
が発生していない時には受信ステータスデータの読取り
を行う必要がない。すなわち、受信データとステータス
データとを同一の受信FIFOに格納するような方法で
は、受信FIFOから1つのパケットデータのブロック
を読出すたびに必ずステータスデータも受信FIFOか
ら読出す必要がある。
Furthermore, it is not necessary to read the reception status data when no error has occurred in the reception packet data. That is, in the method of storing the reception data and the status data in the same reception FIFO, it is necessary to read the status data from the reception FIFO every time one block of packet data is read from the reception FIFO.

【0032】しかしながら、受信データにおけるエラー
の発生頻度は正常なデータを受信する場合に比べて非常
に低いので、すなわち通信で受信データに誤りが生ずる
確率は10-7程度と低いので、通常、ほとんどのステー
タスデータを読出す必要がない。
However, the frequency of occurrence of an error in the received data is much lower than that in the case of receiving normal data, that is, the probability that an error occurs in the received data during communication is as low as about 10 -7. It is not necessary to read the status data of.

【0033】[0033]

【実施例】次に、本発明について図面を参照して説明す
る。
Next, the present invention will be described with reference to the drawings.

【0034】図1は本発明の一実施例の構成を示すブロ
ック図である。図において、本発明の一実施例によるシ
リアルデータ受信装置はシリアル・パラレル変換回路1
と、受信エラー検出回路2と、最終データ検出回路3
と、受信FIFO4と、受信ステータス制御回路5と、
受信ステータスレジスタ6と、受信ステータス読取り要
求回路7とから構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a serial data receiving apparatus according to an embodiment of the present invention includes a serial / parallel conversion circuit 1
, Reception error detection circuit 2 and final data detection circuit 3
A reception FIFO 4, a reception status control circuit 5,
It is composed of a reception status register 6 and a reception status read request circuit 7.

【0035】シリアル・パラレル変換回路1は図示せぬ
受信回路によってシリアルデータ形式で受信した受信デ
ータをパラレルデータ形式に変換し、その受信データを
最終データ検出回路3及び受信FIFO4に出力する。
The serial-parallel conversion circuit 1 converts received data received in serial data format by a reception circuit (not shown) into parallel data format, and outputs the received data to the final data detection circuit 3 and the reception FIFO 4.

【0036】受信エラー検出回路2はシリアルデータ形
式で受信した受信データからアボートやCRCエラー等
の受信エラー情報を検出し、その受信エラー情報をステ
ータスデータとして出力する。
The reception error detection circuit 2 detects reception error information such as an abort or CRC error from the reception data received in the serial data format, and outputs the reception error information as status data.

【0037】最終データ検出回路3はシリアル・パラレ
ル変換回路1でパラレルデータ形式に変換された受信デ
ータを監視し、その受信データが予め設定された最終デ
ータを示す内容であればその旨を受信FIFO4に出力
する。
The final data detection circuit 3 monitors the reception data converted into the parallel data format by the serial / parallel conversion circuit 1, and if the reception data indicates the preset final data, the reception FIFO 4 to that effect is provided. Output to.

【0038】受信FIFO4はデータ部にシリアル・パ
ラレル変換回路1でパラレルデータ形式に変換された受
信データを受信した順番で格納するとともに、最終デー
タ検出回路3の出力を基に受信データが最終データか否
かを示すビットをその受信データに対応する最終データ
フラグ部(F)に格納する。
The reception FIFO 4 stores in the data section the reception data converted into the parallel data format by the serial / parallel conversion circuit 1 in the order of reception, and based on the output of the final data detection circuit 3, whether the reception data is the final data or not. The bit indicating whether or not it is stored in the final data flag portion (F) corresponding to the received data.

【0039】受信ステータス制御回路5は受信FIFO
4のデータ部から受信データを読出すとともに、その受
信データに対応する最終データフラグ部の内容を確認
し、その内容が“0”であれば受信FIFO4からの受
信データの読取りを要求する。
The reception status control circuit 5 is a reception FIFO.
The reception data is read from the data section 4 and the content of the final data flag section corresponding to the reception data is confirmed. If the content is "0", the reception data is requested to be read from the reception FIFO 4.

【0040】また、受信ステータス制御回路5は最終デ
ータフラグ部の内容が“1”であれば受信FIFO4か
らの受信データの読取りを要求するとともに、その受信
データが1つのデータブロックの最終データであること
をCPU8に通知する。その後に、受信ステータス制御
回路5はその受信データの次のデータがステータスデー
タであると認識し、CPU8に対してデータの読取り要
求を行うことなく、そのステータスデータを受信FIF
O4から受信ステータスレジスタ6に移動する。
If the content of the final data flag portion is "1", the reception status control circuit 5 requests reading of the reception data from the reception FIFO 4, and the reception data is the final data of one data block. This is notified to the CPU 8. After that, the reception status control circuit 5 recognizes that the next data of the reception data is the status data, and receives the status data without receiving the data reading request to the CPU 8.
Move from O4 to the reception status register 6.

【0041】受信ステータス読取り要求回路7は受信ス
テータスレジスタ6に格納されたステータスデータが受
信エラーの発生を示しているか否かを判断する。この場
合、受信ステータス読取り要求回路7はステータスデー
タが受信エラーの発生を示していれば、CPU8に対し
て割込み信号を出力して受信ステータスレジスタ6に格
納されたステータスデータの読取りを要求する。
The reception status read request circuit 7 determines whether or not the status data stored in the reception status register 6 indicates that a reception error has occurred. In this case, if the status data indicates that a reception error has occurred, the reception status read request circuit 7 outputs an interrupt signal to the CPU 8 to request reading of the status data stored in the reception status register 6.

【0042】また、受信ステータス読取り要求回路7は
ステータスデータが受信エラーの発生を示していなけれ
ば、CPU8に対して割込み信号を出力せず、受信ステ
ータスレジスタ6に格納されたステータスデータの読取
り要求は行わない。
If the status data does not indicate that a reception error has occurred, the reception status read request circuit 7 does not output an interrupt signal to the CPU 8 and the read request for the status data stored in the reception status register 6 is issued. Not performed.

【0043】図2は図1の受信FIFO4の構成を示す
図である。図において、受信FIFO4は最終データ検
出回路3からの最終データか否かを示すビットを格納す
る最終データフラグ部4aと、シリアル・パラレル変換
回路1でパラレルデータ形式に変換された受信データを
受信した順番で格納するデータ部4bとからなる。
FIG. 2 is a diagram showing the configuration of the reception FIFO 4 of FIG. In the figure, a reception FIFO 4 receives a final data flag unit 4a for storing a bit indicating whether or not the final data is from the final data detection circuit 3 and received data converted by the serial-parallel conversion circuit 1 into a parallel data format. The data part 4b is stored in order.

【0044】受信FIFO4の最終データフラグ部4a
には受信データが最終データでなければ“0”が、受信
データが最終データであれば“1”が夫々格納される。
最終データフラグ部4aに最終データであることを示す
“1”が格納されている場合、最終データフラグ部4a
に“1”が格納されている受信データの次のデータ部4
bにはステータスデータが格納される。
Final data flag section 4a of the reception FIFO 4
If the received data is not the final data, "0" is stored in, and if the received data is the final data, "1" is stored therein.
When "1" indicating the final data is stored in the final data flag portion 4a, the final data flag portion 4a
"1" is stored in the next data part 4 of the received data
Status data is stored in b.

【0045】これら図1及び図2を用いて本発明の一実
施例の動作について説明する。まず、通信相手からシリ
アルデータ形式で受信した受信データはシリアル・パラ
レル変換回路1でパラレル形式に変換される。
The operation of the embodiment of the present invention will be described with reference to FIGS. First, received data received from a communication partner in serial data format is converted into parallel format by the serial / parallel conversion circuit 1.

【0046】例えば、“1”及び“0”のビット単位で
表されるデータがシリアルに連続して入力される時、そ
れらのデータを8個づつまとめてパラレルデータ(オク
テットデータ)とする。受信回路では受信データの数が
任意であるので、複数のオクテット単位のデータが受信
されることとなる。
For example, when data represented by bit units of "1" and "0" are continuously input serially, eight pieces of the data are grouped into parallel data (octet data). Since the number of received data is arbitrary in the receiving circuit, a plurality of data in units of octets will be received.

【0047】受信エラー検出回路2はシリアルデータ形
式の受信データを常時監視し、受信データに何かエラー
が発生してれば、そのエラー内容を示すデータを出力す
る。但し、受信エラー検出回路2は受信データにエラー
が発生していない場合でも、正常にデータを受信したこ
とを示すデータを出力する。
The reception error detection circuit 2 constantly monitors the reception data in the serial data format, and if any error occurs in the reception data, outputs the data indicating the error content. However, the reception error detection circuit 2 outputs the data indicating that the data is normally received, even if the received data has no error.

【0048】最終データ検出回路3はシリアル・パラレ
ル変換回路1でパラレルデータ形式に変換された受信デ
ータを常時監視し、その受信データを1つのデータブロ
ックの最終データと判断しなければ“0”を、1つのデ
ータブロックの最終データと判断すると“1”を夫々受
信FIFO4に出力する。
The final data detection circuit 3 constantly monitors the received data converted into the parallel data format by the serial / parallel conversion circuit 1, and if it does not judge the received data to be the final data of one data block, it outputs "0". When it is determined that the data is the final data of one data block, "1" is output to the reception FIFO 4, respectively.

【0049】シリアル・パラレル変換回路1でパラレル
データ形式に変換された受信データは受信FIFO4に
出力される。同様に、受信エラー検出回路2の出力デー
タ、つまりステータスデータも受信FIFO4に出力さ
れる。
The reception data converted into the parallel data format by the serial / parallel conversion circuit 1 is output to the reception FIFO 4. Similarly, the output data of the reception error detection circuit 2, that is, the status data is also output to the reception FIFO 4.

【0050】パラレルデータ形式に変換された受信デー
タは受信された順番で受信FIFO4に蓄積され、1つ
のデータブロックの受信が終了すると、そのデータブロ
ックに続いてステータスデータが受信FIFO4に入力
される。よって、受信FIFO4内には「複数の受信デ
ータ+ステータスデータ」の組合せで、受信FIFO4
の段数に応じて複数のデータブロックが蓄積される。
The reception data converted into the parallel data format is stored in the reception FIFO 4 in the order of reception, and when the reception of one data block is completed, the status data is input to the reception FIFO 4 following the data block. Therefore, the combination of "a plurality of reception data + status data" is stored in the reception FIFO4.
A plurality of data blocks are accumulated according to the number of stages.

【0051】受信FIFO4内ではオクテット化された
受信データに対し、最終データ検出回路3の出力データ
に基づいて1つのデータブロックの終りを示す最終デー
タフラグが付加される。つまり、受信FIFO4の各段
は夫々8ビットの受信データと1ビットの最終データフ
ラグとで構成されている。
In the reception FIFO 4, a final data flag indicating the end of one data block is added to the octetized received data based on the output data of the final data detection circuit 3. That is, each stage of the reception FIFO 4 is composed of 8-bit reception data and 1-bit final data flag.

【0052】最終データフラグは1つのデータブロック
の最終データが受信FIFO4に格納された時のみ
“1”となり、それ以外では“0”である。最終データ
フラグが“0”の時には受信FIFO4の受信データが
通常の受信データであることを示している。
The final data flag is "1" only when the final data of one data block is stored in the reception FIFO 4, and is "0" otherwise. When the final data flag is "0", it indicates that the reception data of the reception FIFO 4 is normal reception data.

【0053】また、最終データフラグが“1”の時には
受信FIFO4の受信データが1つのデータブロックの
最終データであることを示すとともに、その最終データ
に続くデータがステータスデータであることを示してい
る。
When the final data flag is "1", it indicates that the reception data of the reception FIFO 4 is the final data of one data block, and that the data following the final data is status data. .

【0054】上記のようにして受信FIFO4に蓄積さ
れた受信データは、シリアルデータ受信装置に接続され
たCPU8によって読出される。受信FIFO4から受
信データが順次読出され、1つのデータブロックの最終
データが読出されると、受信ステータス制御回路5は最
終データに続いて受信FIFO4から出力されるステー
タスデータを受信ステータスレジスタ6に格納するよう
動作する。
The received data accumulated in the receiving FIFO 4 as described above is read by the CPU 8 connected to the serial data receiving device. When the reception data is sequentially read from the reception FIFO 4 and the final data of one data block is read, the reception status control circuit 5 stores the status data output from the reception FIFO 4 subsequent to the final data in the reception status register 6. Works like.

【0055】つまり、受信ステータス制御回路5は受信
FIFO4から読出した受信データの最終データフラグ
を確認し、最終データフラグが“0”の場合、受信FI
FO4からの受信データの読取りをCPU8に要求す
る。
That is, the reception status control circuit 5 confirms the final data flag of the reception data read from the reception FIFO 4, and when the final data flag is "0", the reception FI
The CPU 8 is requested to read the received data from the FO 4.

【0056】また、受信ステータス制御回路5は最終デ
ータフラグが“1”の場合、受信FIFO4からの受信
データの読取りをCPU8に要求するとともに、その受
信データが1つのデータブロックの最終データであるこ
とをCPU8に通知する。
When the final data flag is "1", the reception status control circuit 5 requests the CPU 8 to read the reception data from the reception FIFO 4, and the reception data is the final data of one data block. Is notified to the CPU 8.

【0057】この後に、受信ステータス制御回路5はこ
の最終データの次のデータをステータスデータであると
認識し、CPU8に対してデータの読取り要求を行わず
に、そのステータスデータを自動的に受信FIFO4か
ら受信ステータスレジスタ6に移動させる。その後に、
受信ステータス制御回路5は受信FIFO4に複数のデ
ータブロックが格納されていれば、受信FIFO4から
次の受信データの読取りを行うことになる。
After this, the reception status control circuit 5 recognizes the data next to this final data as the status data, and automatically receives the status data without requesting the CPU 8 to read the data. To the reception status register 6. After that,
When a plurality of data blocks are stored in the reception FIFO 4, the reception status control circuit 5 reads the next reception data from the reception FIFO 4.

【0058】受信ステータスレジスタ6に格納されたス
テータスデータが受信エラーの発生を示している場合、
受信ステータス読取り要求回路7は受信ステータスレジ
スタ6の読取り要求をCPU8への割込み要求で行う。
CPU8は受信ステータスレジスタ6からステータスデ
ータの読取りを行うと、そのステータスデータの内容に
応じて受信エラー処理を行う。
When the status data stored in the reception status register 6 indicates that a reception error has occurred,
The reception status read request circuit 7 issues a read request for the reception status register 6 as an interrupt request to the CPU 8.
When the CPU 8 reads the status data from the reception status register 6, the CPU 8 performs a reception error process according to the content of the status data.

【0059】一連のデータブロックが正常に受信され、
ステータスデータに受信エラーの発生が示されていない
場合、受信ステータス読取り要求回路7はCPU8に対
して受信ステータスデータの読取りを要求する割込みを
発生させない。したがって、CPU8ではステータスデ
ータを毎回読取る必要がなくなるので、CPU8に対す
る負荷が軽減する。
A series of data blocks have been successfully received,
When the status data does not indicate that a reception error has occurred, the reception status read request circuit 7 does not generate an interrupt requesting the CPU 8 to read the reception status data. Therefore, the CPU 8 does not need to read the status data every time, and the load on the CPU 8 is reduced.

【0060】例えば、受信エラーが何も発生していない
時にはステータスデータの値が全て“0”であるとし、
受信エラーが何か発生している時にはそのエラー内容に
対応するステータスデータの値が“1”であるとする
と、受信ステータス読取り要求回路7はステータスデー
タの中に“1”のビットが1つでもあると、CPU8に
対してステータス読取り要求を割込み要求として出力す
る。
For example, when no reception error occurs, it is assumed that the status data values are all "0".
If the value of the status data corresponding to the error content is "1" when any reception error occurs, the reception status read request circuit 7 receives even one "1" bit in the status data. If there is, a status read request is output to the CPU 8 as an interrupt request.

【0061】受信エラーには受信データのエラーチェッ
クのために通信相手が送出したCRCデータとシリアル
データ受信装置が受信データから計算したCRCデータ
とが一致しないことによるCRCエラー、通信相手が途
中でデータ送信を中断した等によるアボートフレーム受
信エラー、受信したパケットが規定のデータ数に満たな
い場合のショートパケットエラー、受信したパケットが
8ビット(オクテット)の整数倍になっていない場合の
端数ビットエラー等がある。
The reception error is a CRC error due to the fact that the CRC data sent by the communication partner for the error check of the reception data does not match the CRC data calculated from the reception data by the serial data receiving device. Abort frame reception error due to interruption of transmission, short packet error when received packet does not reach the specified number of data, fractional bit error when received packet is not an integer multiple of 8 bits (octets), etc. There is.

【0062】図3は本発明の一実施例の動作を示すフロ
ーチャートである。この図3を用いて上記一連の処理動
作について説明する。
FIG. 3 is a flow chart showing the operation of one embodiment of the present invention. The series of processing operations will be described with reference to FIG.

【0063】受信したシリアルデータ形式の受信データ
はシリアル・パラレル変換回路1でパラレルデータ形式
に変換され(図3ステップS1,S2)、受信エラー検
出回路2でシリアルデータ形式の受信データにエラーが
あるかどうかがチェックされる(図3ステップS3)。
The received serial data format received data is converted to parallel data format by the serial / parallel conversion circuit 1 (steps S1 and S2 in FIG. 3), and the received error detection circuit 2 has an error in the serial data format received data. It is checked whether or not (step S3 in FIG. 3).

【0064】シリアル・パラレル変換回路1でパラレル
データ形式に変換された受信データは受信FIFO4に
書込まれ(図3ステップS4)、最終データ検出回路3
で最終データかどうかの判定が行われる(図3ステップ
S5)。上記のステップS1〜S5の処理は1つのデー
タブロックの最終データが受信されるまで繰返し実行さ
れる。
The reception data converted into the parallel data format by the serial / parallel conversion circuit 1 is written in the reception FIFO 4 (step S4 in FIG. 3), and the final data detection circuit 3
Then, it is judged whether or not it is the final data (step S5 in FIG. 3). The above steps S1 to S5 are repeatedly executed until the final data of one data block is received.

【0065】最終データ検出回路3で最終データが検出
されると、その受信データに対応する受信FIFO4の
最終データフラグ部4aに最終データであることを示す
ビット“1”が書込まれる。
When the final data detection circuit 3 detects the final data, a bit "1" indicating the final data is written in the final data flag portion 4a of the reception FIFO 4 corresponding to the received data.

【0066】最終データが受信FIFO4に書込まれた
後に、受信データを受信エラー検出回路2でエラーチェ
ックした結果であるステータスデータが受信FIFO4
に書込まれる(図3ステップS6)。
After the final data is written in the reception FIFO 4, status data, which is the result of error check of the reception data by the reception error detection circuit 2, is received FIFO 4
Is written in (step S6 in FIG. 3).

【0067】次に、CPU8は1つのデータブロックの
最終データまで、受信FIFO4から受信データを順次
読出す(図3ステップS7,S8)。この場合、受信F
IFO4から読出した受信データが最終データであるか
どうかは最終データフラグの内容によって確認すること
ができる。受信FIFO4から読出した受信データが最
終データであるかどうかの確認は受信ステータス制御回
路5で行われる。
Next, the CPU 8 sequentially reads the reception data from the reception FIFO 4 up to the final data of one data block (steps S7 and S8 in FIG. 3). In this case, receive F
Whether the received data read from the IFO 4 is the final data can be confirmed by the content of the final data flag. The reception status control circuit 5 confirms whether the reception data read from the reception FIFO 4 is the final data.

【0068】受信FIFO4から最終データが読出され
た後、受信ステータス制御回路5は受信FIFO4から
ステータスデータを読出して受信ステータスレジスタ6
に移動する(図3ステップS9)。このとき、受信FI
FO4からのデータが受信データかステータスデータか
の判断は受信ステータス制御回路5が行う。
After the final data is read from the reception FIFO 4, the reception status control circuit 5 reads the status data from the reception FIFO 4 and receives the reception status register 6.
(Step S9 in FIG. 3). At this time, the reception FI
The reception status control circuit 5 determines whether the data from the FO 4 is reception data or status data.

【0069】受信ステータス読取り要求回路7は受信ス
テータスレジスタ6に書込まれたステータスデータを判
定し、受信エラーがあるかどうかを判断する(図3ステ
ップS10)。受信ステータス読取り要求回路7で受信
エラーがないと判断されると、1フレームのデータブロ
ックの受信が完了する。
The reception status read request circuit 7 judges the status data written in the reception status register 6 and judges whether there is a reception error (step S10 in FIG. 3). When the reception status read request circuit 7 determines that there is no reception error, the reception of the data block of one frame is completed.

【0070】これに対し、受信ステータス読取り要求回
路7で受信エラーがあると判断されると、受信ステータ
ス読取り要求回路7はCPU8に対してステータスデー
タの読取りを要求する。CPU8はその要求に応答して
受信ステータスレジスタ6からステータスデータを読取
り(図3ステップS11)、そのステータスデータに応
じたエラー処理を行う(図3ステップS12)。その後
に、1フレームのデータブロックの受信が完了する。
On the other hand, when the reception status read request circuit 7 determines that there is a reception error, the reception status read request circuit 7 requests the CPU 8 to read the status data. In response to the request, the CPU 8 reads the status data from the reception status register 6 (step S11 in FIG. 3) and performs error processing according to the status data (step S12 in FIG. 3). After that, the reception of the data block of one frame is completed.

【0071】図4は本発明の他の実施例の構成を示すブ
ロック図である。図において、本発明の他の実施例によ
るシリアルデータ受信装置は受信エラー検出回路2が受
信FIFO9にステータスデータフラグ(F)の情報を
出力するようにし、受信ステータス制御回路10が受信
FIFO9のステータスデータフラグの内容を基に受信
FIFO9からのデータが受信データかステータスデー
タかの判断を行うようにした以外は、図1に示す本発明
の一実施例によるシリアルデータ受信装置と同様の構成
となっており、同一構成要素には同一符号を付してあ
る。また、同一構成要素の動作は本発明の一実施例の動
作と同様である。
FIG. 4 is a block diagram showing the configuration of another embodiment of the present invention. In the figure, in a serial data receiving apparatus according to another embodiment of the present invention, the reception error detection circuit 2 outputs the status data flag (F) information to the reception FIFO 9, and the reception status control circuit 10 outputs the status data of the reception FIFO 9. The configuration is the same as that of the serial data receiving apparatus according to the embodiment of the present invention shown in FIG. 1, except that it is determined whether the data from the receiving FIFO 9 is received data or status data based on the content of the flag. Therefore, the same components are denoted by the same reference numerals. The operation of the same component is similar to that of the embodiment of the present invention.

【0072】受信ステータス制御回路10は受信FIF
O9からデータを読出す時に、受信FIFO9から同時
に読出されたステータスデータフラグの内容を判定し、
そのステータスデータフラグに“1”が立っていればス
テータスデータと判断してそのステータスデータを受信
ステータスレジスタ6に移動する。
The reception status control circuit 10 receives the reception FIF.
When data is read from O9, the contents of the status data flag read simultaneously from the reception FIFO 9 are judged,
If "1" is set in the status data flag, it is determined to be status data and the status data is moved to the reception status register 6.

【0073】この後、受信ステータス制御回路10は受
信ステータスレジスタ6に書込まれたステータスデータ
を判定し、受信エラーがあればCPU8に対してステー
タスデータの読取りを要求する。
Thereafter, the reception status control circuit 10 judges the status data written in the reception status register 6, and if there is a reception error, requests the CPU 8 to read the status data.

【0074】図5は図4の受信FIFO9の構成を示す
図である。図において、受信FIFO9は受信エラー検
出回路2からのステータスデータか否かを示すビットを
格納するステータスデータフラグ部9aと、シリアル・
パラレル変換回路1でパラレルデータ形式に変換された
受信データを受信した順番で格納するデータ部9bとか
らなる。
FIG. 5 is a diagram showing the structure of the reception FIFO 9 of FIG. In the figure, the reception FIFO 9 has a status data flag section 9a for storing a bit indicating whether or not the status data is from the reception error detection circuit 2, and a serial
The parallel conversion circuit 1 includes a data section 9b for storing the received data converted into the parallel data format in the order of reception.

【0075】受信FIFO9のステータスデータフラグ
部9aには受信データがステータスデータでなければ
“0”が、受信データがステータスデータであれば
“1”が夫々格納される。ステータスデータフラグ部9
aにステータスデータであることを示す“1”が格納さ
れている場合、ステータスデータフラグ部9aに“1”
が格納されているデータ部9bにはステータスデータが
格納される。
In the status data flag portion 9a of the reception FIFO 9, "0" is stored if the received data is not status data, and "1" is stored if the received data is status data. Status data flag section 9
If "1" indicating that the data is status data is stored in a, "1" is stored in the status data flag portion 9a.
Status data is stored in the data portion 9b in which is stored.

【0076】このように、受信したシリアルデータ形式
の受信データをシリアル・パラレル変換回路1でパラレ
ルデータ形式に変換して受信FIFO4,9に一時的に
格納するとともに、この受信FIFO4,9に受信エラ
ー検出回路2からのステータスデータを一時的に格納
し、受信ステータス制御回路5の制御の基に受信FIF
O4,9からステータスデータを読取って受信ステータ
スレジスタ6に移動し、受信ステータスレジスタ6に保
持されたステータスデータが受信データのエラー発生を
示す時のみ受信ステータス読取り要求回路7からCPU
8にステータスデータの読取り要求を出力することによ
って、受信FIFO内に複数のデータブロックを対応す
るステータスデータとともに格納可能とし、そのステー
タスデータをエラー発生時にのみ読出すことができる。
As described above, the received data in the serial data format is converted into the parallel data format by the serial / parallel conversion circuit 1 and temporarily stored in the reception FIFOs 4 and 9, and the reception error is received in the reception FIFOs 4 and 9. The status data from the detection circuit 2 is temporarily stored, and the reception FIFO is controlled under the control of the reception status control circuit 5.
The status data is read from O4, 9 and moved to the reception status register 6, and only when the status data held in the reception status register 6 indicates that an error has occurred in the reception data
By outputting a status data read request to 8, a plurality of data blocks can be stored in the reception FIFO together with the corresponding status data, and the status data can be read only when an error occurs.

【0077】これによって、本発明では受信FIFO
4,9の段数によって異なるが、複数のパケットデータ
を受信FIFO4,9内に蓄積しておくことが可能とな
る。したがって、受信FIFO4,9から受信データの
読出しを行うCPU8が他の処理で忙しい場合でも、受
信FIFO4,9に空きが有る限り、複数の受信パケッ
トデータを受信FIFO4,9に蓄積しておくことがで
き、CPU8の処理が忙しくなくなった時に受信FIF
O4,9から受信データを読出すことができる。
Thus, in the present invention, the reception FIFO is
It is possible to store a plurality of packet data in the reception FIFOs 4 and 9, though it depends on the number of stages of 4 and 9. Therefore, even if the CPU 8 that reads the received data from the reception FIFOs 4 and 9 is busy with other processing, it is possible to store a plurality of reception packet data in the reception FIFOs 4 and 9 as long as the reception FIFOs 4 and 9 have a free space. Received when the processing of CPU 8 is not busy
The received data can be read from O4,9.

【0078】また、本発明では受信データのエラー情報
等を示すステータスデータ用レジスタを複数段必要とす
ることなく、1つのステータスデータ用レジスタで複数
のパケットデータを受信FIFO4,9内に蓄積してお
くことが可能となる。つまり、ステータスデータを受信
データとは別にレジスタに格納する方法では複数のパケ
ットデータを受信したい場合、受信可能なパケットデー
タ数と同数の受信ステータスレジスタを準備しなければ
ならないが、本発明では1つの受信ステータスレジスタ
6で複数のパケットデータを受信することができる。
Further, in the present invention, a plurality of stages of status data registers indicating error information of received data are not required, and a plurality of packet data are accumulated in the reception FIFOs 4 and 9 by one status data register. It is possible to leave. In other words, in the method of storing the status data in the register separately from the reception data, when it is desired to receive a plurality of packet data, the same number of reception status registers as the receivable number of packet data must be prepared. The reception status register 6 can receive a plurality of packet data.

【0079】さらに、本発明では受信パケットデータに
エラーが発生していない時には受信ステータスデータの
読取りを行う必要がない。すなわち、受信データとステ
ータスデータとを同一の受信FIFOに格納するような
方法では、受信FIFOから1つのパケットデータのブ
ロックを読出すたびに必ずステータスデータも受信FI
FOから読出す必要がある。
Furthermore, in the present invention, it is not necessary to read the reception status data when no error has occurred in the reception packet data. That is, in the method in which the received data and the status data are stored in the same reception FIFO, the status data is always received in the reception FIFO every time one block of packet data is read from the reception FIFO.
It needs to be read from the FO.

【0080】しかしながら、受信データにおけるエラー
の発生頻度は正常なデータを受信する場合に比べて非常
に低いので、すなわち通信で受信データに誤りが生ずる
確率は10-7程度と低いので、通常、ほとんどのステー
タスデータを読出す必要はない。
However, since the frequency of occurrence of errors in the received data is much lower than that in the case of receiving normal data, that is, the probability that an error will occur in the received data during communication is as low as about 10 -7 , so that it is usually almost normal. It is not necessary to read the status data of.

【0081】[0081]

【発明の効果】以上説明したように本発明によれば、受
信したシリアルデータをパラレルデータに変換して先入
れ先出し形式の受信バッファに一時的に格納するととも
に、この受信バッファに受信したシリアルデータのエラ
ー情報を一時的に格納し、受信バッファから読出したデ
ータからエラー情報を取出してレジスタに移し、レジス
タに保持されたエラー情報がシリアルデータのエラー発
生を示す時のみレジスタの読取り要求を出力することに
よって、受信バッファ内に複数のデータブロックを対応
するエラー情報とともに格納可能とし、そのエラー情報
をエラー発生時にのみ読出すことができるという効果が
ある。
As described above, according to the present invention, the received serial data is converted into parallel data and temporarily stored in the receive buffer of the first in first out format, and the error of the serial data received in this receive buffer is also stored. By temporarily storing information, extracting error information from the data read from the receive buffer, moving it to a register, and outputting a register read request only when the error information held in the register indicates that serial data error has occurred. The advantage is that a plurality of data blocks can be stored in the reception buffer together with the corresponding error information, and the error information can be read only when an error occurs.

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

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

【図2】図1の受信FIFOの構成を示す図である。FIG. 2 is a diagram showing a configuration of a reception FIFO of FIG.

【図3】本発明の一実施例の動作を示すフローチャート
である。
FIG. 3 is a flowchart showing the operation of one embodiment of the present invention.

【図4】本発明の他の実施例の構成を示すブロック図で
ある。
FIG. 4 is a block diagram showing the configuration of another embodiment of the present invention.

【図5】図4の受信FIFOの構成を示す図である。5 is a diagram showing a configuration of a reception FIFO of FIG.

【図6】シリアルデータ受信装置のシステム構成を示す
ブロック図である。
FIG. 6 is a block diagram showing a system configuration of a serial data receiving device.

【図7】従来例の構成を示すブロック図である。FIG. 7 is a block diagram showing a configuration of a conventional example.

【図8】従来例の構成を示すブロック図である。FIG. 8 is a block diagram showing a configuration of a conventional example.

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

1 シリアル・パラレル変換回路 2 受信エラー検出回路 3 最終データ検出回路 4,9 受信FIFO 5,10 受信ステータス制御回路 6 受信ステータスレジスタ 7 受信ステータス読取り要求回路 8 CPU 1 serial-parallel conversion circuit 2 reception error detection circuit 3 final data detection circuit 4, 9 reception FIFO 5, 10 reception status control circuit 6 reception status register 7 reception status read request circuit 8 CPU

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 シリアルデータをパラレルデータに変換
して受信するとともに、前記シリアルデータのエラー情
報の検出を行うシリアルデータ受信装置であって、前記
パラレルデータ及び前記エラー情報を一時的に格納する
先入れ先出し形式の受信バッファと、前記エラー情報を
保持するレジスタと、前記受信バッファから読出したデ
ータから前記エラー情報を取出して前記レジスタに移す
手段と、前記レジスタに保持された前記エラー情報が前
記シリアルデータのエラー発生を示す時のみ前記レジス
タに保持された前記エラー情報の読取り要求を出力する
手段とを有することを特徴とするシリアルデータ受信装
置。
1. A serial data receiving device for converting serial data into parallel data and receiving the parallel data, and detecting error information of the serial data, wherein the parallel data and the error information are temporarily stored in first-in first-out. Format reception buffer, a register for holding the error information, a means for taking out the error information from the data read from the reception buffer and transferring the error information to the register, and the error information held in the register is the serial data. And a means for outputting a read request for reading the error information held in the register only when an error occurs is indicated.
【請求項2】 前記受信バッファは、前記シリアルデー
タのうち1つのデータブロックの最終受信データに連続
して前記エラー情報を格納するよう構成されたことを特
徴とする請求項1記載のシリアル受信装置。
2. The serial receiving apparatus according to claim 1, wherein the receiving buffer is configured to store the error information continuously to the final receiving data of one data block of the serial data. .
【請求項3】 前記受信バッファは、前記シリアルデー
タのうち1つのデータブロックの最終受信データに前記
データブロックの最終を示す情報を付与して格納するよ
う構成されたことを特徴とする請求項1または請求項2
記載のシリアルデータ受信装置。
3. The receiving buffer is configured to add the information indicating the end of the data block to the last received data of one data block of the serial data and store the data. Or claim 2
The serial data receiving device described.
【請求項4】 前記受信バッファは、前記エラー情報に
前記エラー情報であることを示す情報を付与して格納す
るよう構成されたことを特徴とする請求項1または請求
項2記載のシリアルデータ受信装置。
4. The serial data reception according to claim 1, wherein the reception buffer is configured to store the error information by adding information indicating the error information to the error information. apparatus.
JP05483995A 1995-03-15 1995-03-15 Serial data receiving device Expired - Fee Related JP3164996B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05483995A JP3164996B2 (en) 1995-03-15 1995-03-15 Serial data receiving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05483995A JP3164996B2 (en) 1995-03-15 1995-03-15 Serial data receiving device

Publications (2)

Publication Number Publication Date
JPH08249257A true JPH08249257A (en) 1996-09-27
JP3164996B2 JP3164996B2 (en) 2001-05-14

Family

ID=12981800

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05483995A Expired - Fee Related JP3164996B2 (en) 1995-03-15 1995-03-15 Serial data receiving device

Country Status (1)

Country Link
JP (1) JP3164996B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003524225A (en) * 1999-09-30 2003-08-12 シリコン グラフィックス インコーポレイテッド Method and apparatus for handling computer system errors

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05268271A (en) * 1992-03-19 1993-10-15 Nec Corp Error display system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05268271A (en) * 1992-03-19 1993-10-15 Nec Corp Error display system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003524225A (en) * 1999-09-30 2003-08-12 シリコン グラフィックス インコーポレイテッド Method and apparatus for handling computer system errors

Also Published As

Publication number Publication date
JP3164996B2 (en) 2001-05-14

Similar Documents

Publication Publication Date Title
JP4675913B2 (en) Burst processing apparatus and method in wireless communication system
JPH03270532A (en) Filtering control system
JPS62233870A (en) Sequential communication controller
US20040085963A1 (en) Method of organizing data packets
JP3164996B2 (en) Serial data receiving device
EP1095490B1 (en) Bit stuffing for synchronous hdlc
JP3190214B2 (en) Data transmission / reception system
JPH0458646A (en) Buffer management system
JP3230339B2 (en) Communication control device
US20050058188A1 (en) Serial asynchronous interface with slip coding/decoding and CRC checking in the transmission and reception paths
JPS6083451A (en) Synchronous data buffering system
JPH0369244A (en) Data reception control circuit
JPH05327780A (en) Communication interface circuit
JP3334478B2 (en) Broadcast Communication Method in Unidirectional Loop Transmission System
JPH08163178A (en) Digital data receiver
JPH0326136A (en) Reception fifo control circuit
JP4465603B2 (en) Receive data storage method
JP2511697B2 (en) Data receiver
JPH04258046A (en) Data reception control circuit
JP2002009872A (en) Data transmitting system
JPH04362825A (en) Data length correction system at atm terminal equipment
JPS62128636A (en) Detecting system for frame fault
JPS61278238A (en) Address deciding circuit for transmitter terminal equipment
JPH05110586A (en) Cell decomposing device
JP2000200175A (en) Data transmission system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980825

LAPS Cancellation because of no payment of annual fees