JP2994906B2 - Data receiving circuit - Google Patents

Data receiving circuit

Info

Publication number
JP2994906B2
JP2994906B2 JP5082352A JP8235293A JP2994906B2 JP 2994906 B2 JP2994906 B2 JP 2994906B2 JP 5082352 A JP5082352 A JP 5082352A JP 8235293 A JP8235293 A JP 8235293A JP 2994906 B2 JP2994906 B2 JP 2994906B2
Authority
JP
Japan
Prior art keywords
status
data
reception completion
reception
output
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 - Fee Related
Application number
JP5082352A
Other languages
Japanese (ja)
Other versions
JPH06295273A (en
Inventor
和治 伊達
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP5082352A priority Critical patent/JP2994906B2/en
Publication of JPH06295273A publication Critical patent/JPH06295273A/en
Application granted granted Critical
Publication of JP2994906B2 publication Critical patent/JP2994906B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、データ受信回路に関
し、更に詳しくは、受信データとステータスとを同時に
読み出すことが可能なデータ受信回路に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data receiving circuit, and more particularly to a data receiving circuit capable of simultaneously reading received data and status.

【0002】[0002]

【従来の技術】従来、コンピュータ等のシステムにおい
て、他のコンピュータや周辺装置と通信を行うことは日
常的に行われていることである。上記通信システムの中
で、受信データを読み出す方法の一つとしてポーリング
という方法がある。
2. Description of the Related Art Conventionally, in a system such as a computer, communication with other computers and peripheral devices is performed on a daily basis. In the above-mentioned communication system, there is a method called polling as one of the methods for reading the received data.

【0003】この方法は、ある間隔でステータスを読み
だし、データ受信が完了しているかどうかを判定し、受
信が完了していれば有効な受信データを読み出す方法で
ある。
In this method, a status is read at a certain interval, it is determined whether or not data reception is completed, and if reception is completed, valid received data is read.

【0004】また、回路構成としては、ステータスと受
信データとが異なる番地に割り付けられ、ステータスと
受信データとを別々に読み出す構成と、通信速度を高速
にするためステータスと受信データとを同一番地に割り
付けて同時にステータスと受信データとを同時に読み出
す構成とがある。
The circuit configuration is such that the status and the received data are assigned to different addresses, and the status and the received data are read separately, and the status and the received data are set at the same address in order to increase the communication speed. There is a configuration in which the status and the received data are read simultaneously at the same time.

【0005】図3は、従来の、ステータスと受信データ
とを同一番地に割り付けてステータスと受信データとを
同時に読み出すデータ受信回路のブロック図であり、図
4は、図3に示すデータ受信回路の正常に動作した場合
の動作説明に供するタイミングチャートである。
FIG. 3 is a block diagram of a conventional data receiving circuit for allocating a status and received data to the same address and simultaneously reading out the status and the received data. FIG. 4 is a block diagram of the data receiving circuit shown in FIG. 6 is a timing chart for explaining the operation when the operation is normal.

【0006】図3において、受信完了パルスは、受信完
了ステータス生成回路15と受信データレジスタ17と
ステータスレジスタ18とに入力され、受信完了ステー
タス生成回路15により、受信完了ステータスが生成さ
れ、図4に示すように受信完了パルスの立ち上がりで受
信データが有効になったことを示し、読み出し信号の立
ち上がりで無効を示すように動作する。この受信完了ス
テータスにより、読み出された受信データが有効か否か
を判断する。
In FIG. 3, a reception completion pulse is input to a reception completion status generation circuit 15, a reception data register 17 and a status register 18, and the reception completion status generation circuit 15 generates a reception completion status. As shown in the drawing, the rise of the reception completion pulse indicates that the reception data has become valid, and the rise of the read signal indicates that the reception data is invalid. Based on the reception completion status, it is determined whether the read reception data is valid.

【0007】また、受信データは、ステータス生成回路
16と受信データレジスタ17とに入力され、受信完了
パルスにより受信データレジスタ17にラッチされる構
成となっている。
The received data is input to the status generating circuit 16 and the received data register 17, and is latched in the received data register 17 by a reception completion pulse.

【0008】更に、受信完了ステータス生成回路15と
受信データレジスタ17とステータスレジスタ18とか
らの出力は、読み出し期間中に受信完了パルスが入力さ
れても受信データ及びステータスが変化しないようにす
るためのラッチ回路19及びバスバッファ20を介して
データバスから、該データバスに接続された、例えばC
PUや周辺回路等(以下、「CPU等」という。)(図
示せず。)へ読み出される構成となっている。
Further, the outputs from the reception completion status generation circuit 15, the reception data register 17, and the status register 18 are used to prevent the reception data and status from changing even if a reception completion pulse is input during the reading period. From the data bus via the latch circuit 19 and the bus buffer 20, for example, C connected to the data bus.
It is configured to be read out to a PU, a peripheral circuit, etc. (hereinafter, referred to as a “CPU, etc.”) (not shown).

【0009】[0009]

【発明が解決しようとする課題】上述のように、ステー
タスと受信データが異なる番地に割り付けられてあり、
ステータスと受信データを別々に読み出す回路構成の場
合は受信完了ステータスを確認した後(データ受信を完
了した後)にデータを読み出すため、ポーリングでも問
題は無いが、通信速度を高速にするため、ステータスと
受信データを同一番地に割り付けて同時にステータスと
受信データを読み出すことのできる回路構成の場合は、
データの受信完了と受信データの読み出しとが同時に行
われるタイミングが発生する。
As described above, the status and the received data are assigned to different addresses,
In the case of a circuit configuration that reads the status and received data separately, data is read after the reception completion status is confirmed (after data reception is completed), so there is no problem with polling. And the received data is assigned to the same address, and the status and the received data can be read at the same time.
Timing occurs in which the completion of data reception and the reading of received data are performed simultaneously.

【0010】上記データの受信完了と受信データの読み
出しとが同時に行われるタイミングが発生した場合、デ
ータ受信回路内部に対して、受信完了ステータスが受信
データが有効であることを示し、正常に受信データが読
み出されたように動作するが、実際に読み出されたデー
タでは、受信データやステータスのビット間での遅延時
間等のばらつきにより、CPU等が正常な受信データが
読み出せない場合が発生したり、受信データレジスタ1
7とステータスレジスタ18との遅延時間の違いによ
り、受信データは読み込んだが、ステータスが遅延し、
受信完了ステータスが有効として読み出せない為、CP
U等は上記受信データを無効と判断し、データとして取
り込まず、データ抜け等の不具合が発生する。
When the timing at which the completion of the data reception and the reading of the reception data are performed at the same time occurs, the reception completion status indicates to the data reception circuit that the reception data is valid, and the reception data is normally transmitted. Operates as if it were read, but in the data that was actually read, there was a case where the CPU etc. could not read the normal received data due to variations in the delay time between the received data and status bits. Or receive data register 1
Although the received data was read due to the difference in delay time between the status register 7 and the status register 18, the status was delayed.
Since the reception completion status cannot be read as valid, CP
U determines that the received data is invalid, does not take it as data, and causes problems such as missing data.

【0011】上記不具合を防止するために、各ビット間
やレジスタ間の遅延を一定にしたり、データの通信を行
う装置間を同期させ、通信データとデータ読み出しの同
期を取る手段が考えられるが、上記回路を構成するトラ
ンジスタの特性や配線の長さ等をそれぞれ全く同じに
し、各信号の遅延を一定にすること等ができないため、
実現は非常に困難である。
In order to prevent the above-mentioned problems, there are conceivable means for keeping the delay between each bit and between the registers constant, synchronizing the devices for data communication, and synchronizing the communication data with the data reading. Since it is not possible to make the characteristics of the transistors and the lengths of the wirings and the like constituting the above circuits exactly the same and make the delay of each signal constant, etc.
Realization is very difficult.

【0012】次に、図5及び図6を用いて、従来のデー
タ受信回路での不具合発生動作について説明する。図5
は、図3に示すデータ受信回路中1ビット分を更に詳細
に記述した回路図であり、図6は、図5に示すデータ受
信回路の不具合動作の説明に供するタイミングチャート
である。
Next, the operation of the conventional data receiving circuit for generating a defect will be described with reference to FIGS. 5 and 6. FIG. FIG.
FIG. 6 is a circuit diagram describing one bit in the data receiving circuit shown in FIG. 3 in more detail, and FIG. 6 is a timing chart for explaining a malfunction operation of the data receiving circuit shown in FIG.

【0013】まず、図6において、受信完了パルスがハ
イレベルになると、受信データが受信データレジスタ1
7に、ステータスがステータスレジスタ18にラッチさ
れ、それぞれの出力データが遅延してラッチ回路19に
入力される。また、同時に、受信完了ステータス生成回
路15であるフリップフロップがセット状態となり、受
信完了ステータスがハイレベル(有効状態)になる。こ
の直後に読み出し信号がローレベルとなった場合、ラッ
チ回路19は受信データレジスタ17及びステータスレ
ジスタ18の出力をラッチするが、受信データレジスタ
17及びステータスレジスタ18の出力が変化している
タイミングでラッチするため、誤った受信データ及びス
テータスをラッチ回路19はラッチしてしまい、データ
バスには誤った受信データとステータスが読み出される
ため、データバスに接続されたCPU等は誤った受信デ
ータを有効データと判断してしまう。
First, in FIG. 6, when the reception completion pulse goes high, the reception data is stored in the reception data register 1.
7, the status is latched by the status register 18, and each output data is delayed and input to the latch circuit 19. At the same time, the flip-flop that is the reception completion status generation circuit 15 is set, and the reception completion status becomes high level (valid state). If the read signal goes low immediately after this, the latch circuit 19 latches the outputs of the reception data register 17 and the status register 18, but latches at the timing when the outputs of the reception data register 17 and the status register 18 change. Therefore, the erroneous received data and status are latched by the latch circuit 19, and the erroneous received data and status are read out to the data bus, so that the CPU or the like connected to the data bus converts the erroneous received data into valid data. I judge.

【0014】図5に示すデータ受信回路を改良して、受
信完了パルスの立ち下がりで受信完了ステータスをハイ
レベル(有効状態)となるようにしても、受信データ及
びステータスが遅れて入力される(受信完了パルスの立
ち下がり直前で変化する)システムでは、読み出し信号
が受信完了パルス立ち下がり直後にローレベルになれ
ば、図6と同様の不具合が発生する可能性があり、完全
な対策ではない。
Even if the data reception circuit shown in FIG. 5 is improved so that the reception completion status becomes a high level (valid state) at the falling edge of the reception completion pulse, the reception data and status are input with a delay ( If the read signal goes low immediately after the fall of the reception completion pulse, the same problem as in FIG. 6 may occur in the system, and this is not a complete measure.

【0015】本発明は、受信完了パルスと読み出し信号
とがいかなるタイミングで入力されても、誤った受信デ
ータやステータスを有効な受信データやステータスとし
てCPU等へ読み出すことや、有効な受信データをCP
U等が読み捨てることがないデータ受信回路を提供する
ことを目的とする。
According to the present invention, irrespective of the timing at which a reception completion pulse and a read signal are input, incorrect reception data or status can be read out as valid reception data or status to a CPU or the like,
It is an object of the present invention to provide a data receiving circuit that U and the like do not discard.

【0016】[0016]

【課題を解決するための手段】本発明のデータ受信回路
は、読み出し信号に同期して、受信完了ステータスを含
むステータスと受信データとを同時に出力するデータ受
信回路において、受信完了パルスの出力終了時から所定
時間後に、上記受信完了ステータスを無効状態から有効
状態にする手段と、上記読み出し信号が、上記受信完了
ステータスが上記有効状態であるときに入力されている
か、又は、上記受信完了ステータスが上記無効状態であ
るときに入力されているかを判定する手段と、上記受信
完了ステータスが上記有効状態であるときに上記読み出
し信号が入力されている場合、上記受信データ及び上記
有効状態を示す上記受信完了ステータスを含む上記ステ
ータスを出力する手段と、上記受信完了ステータスが
無効状態であるときに上記読み出し信号が入力されて
いる場合、上記受信データ及び上記無効状態を示す上記
受信完了ステータスを含む上記ステータスを出力する手
段とを有することを特徴とするものである。
Data receiving circuit of the present invention, in order to solve the problems] in synchronization with the read signal, the data receiving circuit for outputting simultaneously a status and receive data including a reception completion status, at the output end of the reception completion pulse Predetermined
After the time, the above reception completion status is enabled from the disabled state
Means for the state, the read signal, whether the reception completion status is entered when a the effective state, or means for determining whether the reception completion status is entered when a said invalid state If, when the reception completion status is input the read out <br/> to signal when it is the effective state, said including the reception completion status indicating the received data and the valid state stearyl <br / Status output means and the reception completion status above
If the readout signal when the serial is invalid state is input, and having a means for outputting said status including the <br/> reception completion status indicating the received data and the invalid state Things.

【0017】[0017]

【作用】上記手段を用いることにより、受信完了ステー
タスは、読み出す受信データ及びステータスが有効であ
る場合にのみ有効状態を示し、読み出し信号が受信完了
ステータスが有効状態であるときに立ち下がった場合に
は、受信データと有効状態を示す受信完了ステータスを
含むステータスをデータバスを通してCPU等へ出力
し、次の受信データを受信する状態に戻る。
By using the above means, the reception completion status indicates the valid state only when the reception data and status to be read are valid, and when the read signal falls when the reception completion status is valid. Outputs a status including reception data and a reception completion status indicating a valid state to a CPU or the like through a data bus, and returns to a state of receiving the next reception data.

【0018】また、読み出し信号が受信完了ステータス
が無効状態であるときに立ち下がった場合には、受信デ
ータ及び無効を示す受信完了ステータスを含むステータ
スをデータバスを通してCPU等へ出力し、次の受信デ
ータを受信する状態に戻る。
If the read signal falls when the reception completion status is in an invalid state, a status including reception data and a reception completion status indicating invalidity is output to a CPU or the like via a data bus, and the next reception signal is output. Return to receiving data.

【0019】[0019]

【実施例】以下、一実施例に基づいて、本発明を詳細に
説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail based on one embodiment.

【0020】図1は、本発明の一実施例の1ビット分の
データ受信回路の構成図、図2は、図1に示すデータ受
信回路の動作説明に供するタイミングチャートを示す。
FIG. 1 is a block diagram of a 1-bit data receiving circuit according to an embodiment of the present invention, and FIG. 2 is a timing chart for explaining the operation of the data receiving circuit shown in FIG.

【0021】本実施例においては、受信完了ステータス
がハイレベルのとき、受信データ及びステータスは有効
状態であり、読み出し信号がローレベルのとき、読み出
し動作を行うこととするが、本発明を限定するものでは
ない。
In this embodiment, when the reception completion status is at a high level, the received data and status are in a valid state, and when the read signal is at a low level, a read operation is performed. However, the present invention is limited. Not something.

【0022】図1に示すように、1は受信完了ステータ
ス制御回路であり、以下のような回路構成を成してい
る。まず、クロック部(CK)に受信完了パルスがイン
バータ13を介して入力され、且つ、データ部(D)に
電源(VCC)が接続されているD型フリップフロップ
(以下「フリップフロップ」という。)9の出力(Q)
は、遅延回路7を介してフリップフロップ10の反転リ
セット部(反転R)へ入力されている。尚、本実施例に
於いて、遅延回路7からの出力を受信完了ステータスと
し、フリップフロップ10及びバスバッファ6を介して
データバスへ出力される受信完了ステータスはCPUに
対して使用され、フリップフロップ10からナンド回路
14へ出力される受信完了ステータスは受信完了ステー
タス制御回路1内部に対して使用される。
As shown in FIG. 1, reference numeral 1 denotes a reception completion status control circuit, which has the following circuit configuration. First, a D-type flip-flop (hereinafter, referred to as a “flip-flop”) in which a reception completion pulse is input to the clock unit (CK) via the inverter 13 and a power supply (V CC ) is connected to the data unit (D). ) 9 output (Q)
Is input to the inverting reset unit (inverting R) of the flip-flop 10 via the delay circuit 7. In this embodiment, the output from the delay circuit 7 is used as a reception completion status, and the reception completion status output to the data bus via the flip-flop 10 and the bus buffer 6 is used for the CPU. The reception completion status output from 10 to the NAND circuit 14 is used inside the reception completion status control circuit 1.

【0023】また、データ部(D)に電源(VCC)が接
続され、クロック部(CK)に外部からの読み出し信号
がインバータ11を介して入力されているフリップフロ
ップ10の出力(Q)は、バスバッファ6とナンドゲー
ト14との双方へ入力されている。
The output (Q) of the flip-flop 10 in which a power supply (V CC ) is connected to the data section (D) and an external read signal is input to the clock section (CK) via the inverter 11 is , Are input to both the bus buffer 6 and the NAND gate 14.

【0024】更に、ナンドゲート14には、フリップフ
ロップ10の出力と読み出し信号の反転信号とが入力さ
れ、ナンドゲート14の出力はワンショット回路8のク
ロック部(CK)へ出力され、ワンショット回路8の反
転出力(反転Q)はフリップフロップ9の反転リセット
部(反転R)へ入力される。
Further, the output of the flip-flop 10 and the inverted signal of the read signal are input to the NAND gate 14, and the output of the NAND gate 14 is output to the clock section (CK) of the one-shot circuit 8, The inverted output (Q) is input to the inverted reset unit (R) of the flip-flop 9.

【0025】以上に示す回路構成によって、受信完了ス
テータスが受信データレジスタ3の出力とステータスレ
ジスタ4の出力が確定した後に有効状態になり、かつ、
読み出し信号が受信完了ステータスが有効状態のときに
ローレベルとなると、有効状態を示す受信完了ステータ
スを含むステータスと受信データとを読み出し、受信完
了ステータスが無効状態のときにローレベルとなると、
無効状態を示す受信完了ステータスを含むステータスと
受信データとを読み出す。
With the circuit configuration described above, the reception completion status becomes valid after the output of the reception data register 3 and the output of the status register 4 are determined, and
When the read signal goes low when the reception completion status is in the valid state, the read signal reads the status including the reception completion status indicating the valid state and the reception data, and when the reception completion status goes to the low level when the reception completion status is in the invalid state,
The status including the reception completion status indicating the invalid state and the reception data are read.

【0026】また、2はステータス生成回路、3はデー
タ部(D)に受信データが入力され、且つ、反転ラッチ
部(反転LAT)に受信完了パルスが入力され、出力
(Q)がラッチ回路5のデータ部(Db)へ入力される
受信データレジスタ、4はデータ部(D)にステータス
生成回路2で生成されたステータスが入力され、且つ、
反転ラッチ部(反転LAT)に受信完了パルスが入力さ
れ、出力(Q)がラッチ回路5のデータ部(Da)へ入
力されるステータスレジスタ、6は読み出し信号、フリ
ップフロップ10の出力及びラッチ回路5の出力Qa,
Qbが入力され、データバスに出力するデータバッファ
である。尚、ステータス生成回路2は必要とするステー
タスに応じた回路構成となる。
Reference numeral 2 denotes a status generation circuit, and 3 denotes a data section (D) to which received data is input, and an inversion latch section (inversion LAT) to which a reception completion pulse is input, and an output (Q) to a latch circuit 5. The received data register 4 is input to the data section (Db) of the first section, and the data section (D) receives the status generated by the status generation circuit 2 in the data section (D), and
A status register in which a reception completion pulse is input to an inversion latch unit (inversion LAT) and an output (Q) is input to a data unit (Da) of the latch circuit 5, a read signal, an output of the flip-flop 10, and a latch circuit 5 Output Qa,
This is a data buffer to which Qb is input and output to the data bus. The status generating circuit 2 has a circuit configuration according to the required status.

【0027】次に、図1及び図2を用いて、本発明の一
実施例のデータ受信回路の動作を説明する。
Next, the operation of the data receiving circuit according to one embodiment of the present invention will be described with reference to FIGS.

【0028】まず、図2における、初期状態で受信完了
パルスがローレベルであり、読み出し信号がハイレベル
である期間では、フリップフロップ9はリセット状態に
あり、遅延回路7からの出力(受信完了ステータス)は
ローレベル(無効状態)となる。また、フリップフロッ
プ10(有効受信データリード検出回路)は遅延回路7
からの出力がローレベルであるため、リセット状態にあ
り、フリップフロップ10の出力(読み出し有効信号)
はローレベルとなる。このため、ナンドゲート14の出
力(内部読み出し信号)はハイレベルであり、ワンショ
ット回路8の出力もハイレベルを保持する。
First, in the period in FIG. 2 where the reception completion pulse is at the low level in the initial state and the read signal is at the high level, the flip-flop 9 is in the reset state and the output from the delay circuit 7 (reception completion status) ) Goes low (invalid state). The flip-flop 10 (valid reception data read detection circuit) is
Is in a reset state because the output from the flip-flop is low level, the output of the flip-flop 10 (read valid signal)
Goes low. Therefore, the output of the NAND gate 14 (internal read signal) is at the high level, and the output of the one-shot circuit 8 also holds the high level.

【0029】次に、受信完了パルスがローレベルからハ
イレベルに変化すると、フリップフロップ9がセット状
態になるため、フリップフロップ9のハイレベルとなっ
た出力が遅延回路7により所定時間遅延された後、フリ
ップフロップ10の反転リセット部に入力される。これ
により、フリップフロップ10のリセット状態が解除さ
れる。但し、フリップフロップ10の出力はローレベル
のままである。
Next, when the reception completion pulse changes from the low level to the high level, the flip-flop 9 is set, so that the high-level output of the flip-flop 9 is delayed by the delay circuit 7 for a predetermined time. , Are input to the inverting reset unit of the flip-flop 10. Thereby, the reset state of the flip-flop 10 is released. However, the output of the flip-flop 10 remains at low level.

【0030】次に、上述の状態になった後、ローレベル
の読み出し信号がフリップフロップ10に入力された場
合、即ち、読み出された受信データ及びステータスが有
効である場合(図2のタイミング2)について説明す
る。
Next, after the above-mentioned state is reached, when a low-level read signal is input to the flip-flop 10, that is, when the read received data and status are valid (timing 2 in FIG. 2). ) Will be described.

【0031】まず、読み出し信号がハイレベルからロー
レベルに変化すると、フリップフロップ10のクロック
部(CK)が立ち上がり、フリップフロップ10の出力
はハイレベルになり、同時に、ナンドゲート14の出力
(内部読み出し信号)はローレベルになる。上記フリッ
プフロップ10の出力がハイレベルになることにより、
有効なデータリードが開始されたことになり、データバ
ス上に受信データとステータスが出力されている。この
ときの受信完了ステータスが、ハイレベルであるため、
上記出力された受信データは有効であることを示し、C
PU等は該受信データ及びステータスの処理を開始す
る。
First, when the read signal changes from the high level to the low level, the clock section (CK) of the flip-flop 10 rises, the output of the flip-flop 10 goes high, and at the same time, the output of the NAND gate 14 (the internal read signal ) Goes low. When the output of the flip-flop 10 becomes high level,
This means that valid data read has started, and the received data and status are output on the data bus. Since the reception completion status at this time is high level,
The output data thus received indicates that it is valid, and C
The PU or the like starts processing the received data and status.

【0032】次に、読み出し信号がハイレベルになり、
受信データの読み出しが完了すると、ナンドゲート14
の出力はハイレベルになり、ワンショット回路8はロー
レベルのワンショットパルスを出力する。該ローレベル
のワンショットパルスにより、フリップフロップ9がリ
セット状態になり、フリップフロップ9の出力がローレ
ベルになる。
Next, the read signal goes high,
When the reading of the received data is completed, the NAND gate 14
Becomes high level, and the one-shot circuit 8 outputs a low-level one-shot pulse. The flip-flop 9 is reset by the low-level one-shot pulse, and the output of the flip-flop 9 becomes low.

【0033】続いて、フリップフロップ9の出力(Q)
より遅延回路7を介して、フリップフロップ10の反転
リセット部(反転R)にローレベルの信号が入力し、フ
リップフロップ10がリセット状態になり、フリップフ
ロップ10の出力(Q)がローレベルになる。その後、
次のローレベルの読み出し信号が入力されると、受信デ
ータが無効であることをデータバスに接続されたCPU
等に示す。該動作により、初期状態に戻り、次の受信完
了パルスがハイレベルになるのを待つことになる。
Subsequently, the output (Q) of the flip-flop 9
Through the delay circuit 7, a low-level signal is input to the inversion reset unit (inversion R) of the flip-flop 10, the flip-flop 10 is reset, and the output (Q) of the flip-flop 10 becomes low. . afterwards,
When the next low-level read signal is input, the CPU connected to the data bus informs that the received data is invalid.
Etc. This operation returns to the initial state, and waits for the next reception completion pulse to go high.

【0034】次に、初期状態においてローレベルの読み
出し信号がフリップフロップ10に入力された場合、即
ち、読み出された受信データ及びステータスが無効であ
る場合について説明する。
Next, a case where a low-level read signal is input to the flip-flop 10 in the initial state, that is, a case where the read received data and status are invalid will be described.

【0035】まず、読み出し信号がハイレベルからロー
レベルになると、フリップフロップ10のクロック部が
立ち上がるが、フリップフロップ10の反転リセット部
(反転R)にはローレベルの信号が入力され続けている
ので、フリップフロップ10の出力はローレベルのまま
である。このため、データバス上の受信完了ステータス
は無効を示している。
First, when the read signal changes from the high level to the low level, the clock section of the flip-flop 10 rises, but the low-level signal is continuously input to the inversion reset section (inversion R) of the flip-flop 10. , The output of the flip-flop 10 remains at the low level. Therefore, the reception completion status on the data bus indicates invalid.

【0036】また、読み出し信号がハイレベルになって
も、フリップフロップ10の出力がローレベルのままで
あるので、ワンショット回路8の出力はハイレベルのま
まであるので、フリップフロップ9の出力はローレベル
であり、受信完了ステータスは無効状態を保持する。
Even if the read signal goes high, the output of the flip-flop 10 remains low, and the output of the one-shot circuit 8 remains high. At the low level, the reception completion status holds an invalid state.

【0037】更に、読み出し信号がローレベルになった
後、受信完了パルスが入力され、受信完了ステータスが
ハイレベルになった場合、フリップフロップ10のクロ
ック部(CK)の立ち上がりよりも後にリセット状態が
解除されるため、フリップフロップ10の出力(Q)は
ローレベルのままであり、ワンショット回路8の出力は
ハイレベルのままであり、よって、フリップフロップ9
の出力はハイレベルであり、受信完了ステータスは有効
状態を保持する。
When the reception completion pulse is input after the read signal goes low and the reception completion status goes high, the reset state is set after the rising edge of the clock section (CK) of the flip-flop 10. Since the output is released, the output (Q) of the flip-flop 10 remains at the low level, and the output of the one-shot circuit 8 remains at the high level.
Is at a high level, and the reception completion status holds a valid state.

【0038】しかし、図2のタイミング1に示す様に、
受信完了パスルの立ち下がり直後のタイミングで読み出
し信号が立ち下がった場合、受信データレジスタ3の出
力とステータスレジスタ4の出力とは変化の途中であ
り、ラッチ回路5には誤った受信データとステータスと
がラッチされてしまうことになり、読み出された受信デ
ータ及びステータスは誤っているが、CPU等へ出力さ
れる受信完了ステータスとなるフリップフロップ10の
出力は無効を示しているため、上記CPU等は上記受信
データとステータスとを読み捨てるので、問題はない。
However, as shown in timing 1 of FIG.
If the read signal falls at the timing immediately after the fall of the reception completion pulse, the output of the reception data register 3 and the output of the status register 4 are in the process of changing, and the erroneous reception data and status are stored in the latch circuit 5. Is latched, and the read reception data and status are incorrect, but the output of the flip-flop 10 which is the reception completion status output to the CPU or the like indicates invalid, so that the CPU or the like is invalid. Has no problem because the received data and status are discarded.

【0039】[0039]

【発明の効果】以上、詳細に説明した様に、本発明を用
いることによって、受信データと読み出し信号とが非同
期に入力されるシステムにおいて、データの受信完了と
データの読み出しが同時に行われても、受信データやス
テータスを誤ることなくデータ通信を行うことができ
る。
As described in detail above, by using the present invention, in a system in which received data and a read signal are asynchronously input, even if data reception completion and data read are performed simultaneously. Thus, data communication can be performed without erroneous reception data and status.

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

【図1】本発明の一実施例の1ビットのデータ受信回路
の構成図である。
FIG. 1 is a configuration diagram of a 1-bit data receiving circuit according to an embodiment of the present invention.

【図2】同データ受信回路の動作説明に供するタイミン
グチャートである。
FIG. 2 is a timing chart for explaining the operation of the data receiving circuit.

【図3】従来のデータ受信回路のブロック図である。FIG. 3 is a block diagram of a conventional data receiving circuit.

【図4】同データ受信回路の動作説明に供するタイミン
グチャートである。
FIG. 4 is a timing chart for explaining the operation of the data receiving circuit.

【図5】従来の1ビットのデータ受信回路の構成図であ
る。
FIG. 5 is a configuration diagram of a conventional 1-bit data receiving circuit.

【図6】同データ受信回路の不具合発生動作の説明に供
するタイミングチャートである。
FIG. 6 is a timing chart for explaining a malfunction occurrence operation of the data receiving circuit.

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

1 受信完了ステータス制御回路 2 ステータス生成回路 3 受信データレジスタ 4 ステータスレジスタ 5 ラッチ回路 6 バスバッファ 7 遅延回路 8 ワンショット回路 9、10 フリップフロップ 11、12、13 インバータ 14 ナンドゲート REFERENCE SIGNS LIST 1 reception completion status control circuit 2 status generation circuit 3 reception data register 4 status register 5 latch circuit 6 bus buffer 7 delay circuit 8 one-shot circuit 9, 10 flip-flops 11, 12, 13 inverter 14 NAND gate

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 読み出し信号に同期して、受信完了ステ
ータスを含むステータスと受信データとを同時に出力す
るデータ受信回路において、受信完了パルスの出力終了時から所定時間後に、上記受
信完了ステータスを無効状態から有効状態にする手段
と、 上記読み出し信号が、上記受信完了ステータスが上記
効状態であるときに入力されているか、又は、上記受信
完了ステータスが上記無効状態であるときに入力されて
いるかを判定する手段と、 上記受信完了ステータスが上記有効状態であるときに
読み出し信号が入力されている場合、上記受信データ
及び上記有効状態を示す上記受信完了ステータスを含む
上記ステータスを出力する手段と、 上記受信完了ステータスが上記無効状態であるときに
読み出し信号が入力されている場合、上記受信データ
及び上記無効状態を示す上記受信完了ステータスを含む
上記ステータスを出力する手段とを有することを特徴と
するデータ受信回路。
1. A in synchronization with the read signal, the data receiving circuit for outputting simultaneously a status and receive data including a reception completion status after a predetermined time from the output end of the reception completion pulse, the received
Means to change the communication completion status from invalid to valid
When, the read signal or the reception completion status is entered when a said chromatic <br/> effective state, or whether the reception completion status is entered when a said invalid state determines above when the unit, the reception completion status is the effective state
If serial read signal is input, including the reception completion status indicating the received data and the valid state
Means for outputting said status, on when the reception completion status is the invalid state
If serial read signal is input, including the reception completion status indicating the received data and the invalid state
Data receiving circuit, characterized in that it comprises a means for outputting said status.
JP5082352A 1993-04-09 1993-04-09 Data receiving circuit Expired - Fee Related JP2994906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5082352A JP2994906B2 (en) 1993-04-09 1993-04-09 Data receiving circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5082352A JP2994906B2 (en) 1993-04-09 1993-04-09 Data receiving circuit

Publications (2)

Publication Number Publication Date
JPH06295273A JPH06295273A (en) 1994-10-21
JP2994906B2 true JP2994906B2 (en) 1999-12-27

Family

ID=13772187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5082352A Expired - Fee Related JP2994906B2 (en) 1993-04-09 1993-04-09 Data receiving circuit

Country Status (1)

Country Link
JP (1) JP2994906B2 (en)

Also Published As

Publication number Publication date
JPH06295273A (en) 1994-10-21

Similar Documents

Publication Publication Date Title
JP3156813B2 (en) Buffer control circuit
US6260152B1 (en) Method and apparatus for synchronizing data transfers in a logic circuit having plural clock domains
JP3088180B2 (en) Serial input interface circuit
US5410550A (en) Asynchronous latch circuit and register
KR100434833B1 (en) Serial/parallel conversion circuit, data transfer control device and electronic equipment
US4756006A (en) Bus transceiver
JP2007525766A (en) Collision detection in multiport memory systems
US7177966B2 (en) Microcomputer minimizing influence of bus contention
US6286072B1 (en) System and method for synchronizing data communication between asynchronous buses
US4464715A (en) Memory accessing method
JP2994906B2 (en) Data receiving circuit
US6202117B1 (en) Host adapter integrated circuit having autoaccess pause
US6952791B2 (en) Method and circuit for initializing a de-skewing buffer in a clock forwarded system
US6301188B1 (en) Method and apparatus for registering free flow information
US5548285A (en) Circuit and method of indicating data hold-time
US6463551B1 (en) Debug circuit and microcomputer incorporating debug circuit
JP3458406B2 (en) Interface circuit
JP3246487B2 (en) Semiconductor integrated circuit and control signal generation method thereof
JP3592169B2 (en) Asynchronous data transfer control device and asynchronous data transfer control method
JP2644112B2 (en) FIFO test diagnostic circuit
KR940001432B1 (en) Peripheral system access method by meaus of td-bus
JPH11273380A (en) Lsi operation mode setting signal fetching method and lsi with mode signal fetching function
KR100400933B1 (en) Apparatus for synchronization between CPU and external devices in keyphone system
JP3211971B2 (en) Data input and input / output devices
JP3335926B2 (en) Read and clear circuit

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071022

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081022

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees