JPS5896327A - Interface circuit - Google Patents

Interface circuit

Info

Publication number
JPS5896327A
JPS5896327A JP19540581A JP19540581A JPS5896327A JP S5896327 A JPS5896327 A JP S5896327A JP 19540581 A JP19540581 A JP 19540581A JP 19540581 A JP19540581 A JP 19540581A JP S5896327 A JPS5896327 A JP S5896327A
Authority
JP
Japan
Prior art keywords
signal
gate
data
coincidence
register
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
JP19540581A
Other languages
Japanese (ja)
Other versions
JPH0210978B2 (en
Inventor
Takashi Ito
俊 伊藤
Takeshi Onishi
健 大西
Masayuki Ishida
雅之 石田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP19540581A priority Critical patent/JPS5896327A/en
Publication of JPS5896327A publication Critical patent/JPS5896327A/en
Publication of JPH0210978B2 publication Critical patent/JPH0210978B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • G06F13/4226Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus with asynchronous protocol

Abstract

PURPOSE:To obtain a device which operates stably, by outputting a gate signal from a control means, and allowing a coincidence detecting circuit to detect the coincidence between a data kind signal inputted from an external circuit and a selection signal outputted from the control means, etc. CONSTITUTION:A control means after outputting a selection signal outputs a gate signal, and a coincidence detecting circuit detects the coincidence between a data kind signal inputted from an external circuit and the selection signal outputted from the control means. For example, a data kind signal 7 and a selection signal 9 from a control circuit 5 are inputted to a coincidence detecting circuit 1, which once detecting their coincidence, sends a coincidence detection signal 11 to an AND gate 12. Then, the control circuit 5 outputs a gate signal 10 to a flip-flop 13, which then sends a synchronizing gate signal 14 to the AND gate 12. The AND gate 12 ANDs a data strobe signal 8, the coincidence detection signal 11, and synchronizing gate signal 14 to input an AND signals 12 to a register 3, thus storing data 6.

Description

【発明の詳細な説明】 この発明はインターフェイス回路に関し、たとえばマイ
クロコンピュータと非同期の外部機器との閣でデータの
憚受を行うようなインターフェイス回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an interface circuit, and more particularly, to an interface circuit that receives data between a microcomputer and an asynchronous external device.

第1図はこの発明の背景となるインター7142回路の
ブロック図であり、第2図は第1図の各部の波形図であ
る。
FIG. 1 is a block diagram of an inter 7142 circuit which is the background of this invention, and FIG. 2 is a waveform diagram of each part of FIG. 1.

次に、第1図および第2図を参照して従来のインターフ
ェイス回路の構成とともに動作について説明する。−数
構出回路1には外部からデータ種別信号7と制御回路5
から遍択信@9とが与えられる。データ種別信号7はレ
ジスタ3に入力されるデータ6の種別を表わすものであ
り、制御回路5から出力される選択信@9はレジスタ6
に与えられるデータを選択するためのものである。−数
構出回路1はデータ種別信号7と選択信@9との一致を
検出し、一致していれば一致検出信号11をANDゲー
ト2に与える。このANDゲート2には外部からデータ
ストロープ信号8と制御回路5からゲート信号10とが
与えられる。このゲート信@10は選択信号9が出力さ
れた後導出されるものである。ANDゲート2はデータ
ストローブ信号8と一数構出信@11とゲート信@1o
との論理積をとり、その出力信号12をレジスタ3に与
える。レジスタ3は論理積信号12が入力されたタイミ
ングにおいてデータ6を記憶する。レジスタ3に記憶さ
れたデータ6はレジスタ4に与えられる。レジスタ4は
制御回路5がら与えられる信号に基づいて、データ6を
記憶する。なお、レジスタ4および制御回路5はたとえ
ばマイクロコンピュータに内蔵されるものである。
Next, the configuration and operation of a conventional interface circuit will be explained with reference to FIGS. 1 and 2. - The data type signal 7 and the control circuit 5 are input to the number output circuit 1 from the outside.
From this, the universal selection belief @9 is given. The data type signal 7 represents the type of data 6 input to the register 3, and the selection signal @9 output from the control circuit 5 is input to the register 6.
This is for selecting data given to . - The number output circuit 1 detects a match between the data type signal 7 and the selection signal @9, and if they match, provides a match detection signal 11 to the AND gate 2. A data strobe signal 8 and a gate signal 10 from the control circuit 5 are applied to the AND gate 2 from the outside. This gate signal @10 is derived after the selection signal 9 is output. AND gate 2 has data strobe signal 8, one output @11 and gate signal @1o
The output signal 12 is given to the register 3. The register 3 stores data 6 at the timing when the AND signal 12 is input. Data 6 stored in register 3 is given to register 4. Register 4 stores data 6 based on a signal given from control circuit 5. Note that the register 4 and the control circuit 5 are built in, for example, a microcomputer.

上述のごとく、従来のインターフェイス回路では、制御
回路5から出力されるゲート信号1oと外部から入力さ
れるデータストローブ信号8とが非同期であるため、A
NDゲート2においてデータストローブ信号8とゲート
信号1oとのタイミングがとれないことがあり、第2図
に示す論理積信号12′のように非常にパルス幅のWい
信号が出力されることもある。このため、レジスタ3は
論理積信@12′に基づいて正常にデータを記憶しなく
なることがあった。
As mentioned above, in the conventional interface circuit, since the gate signal 1o outputted from the control circuit 5 and the data strobe signal 8 inputted from the outside are asynchronous,
In the ND gate 2, the timing of the data strobe signal 8 and the gate signal 1o may not be synchronized, and a signal with a very wide pulse width may be output, such as the AND signal 12' shown in FIG. . For this reason, the register 3 may not normally store data based on the AND signal @12'.

それゆえに、この発明の主たる目的は、上述の欠点を解
消し得て、安定な動作をし得るインターフェイス回路を
提供することである。
Therefore, the main object of the present invention is to provide an interface circuit which can eliminate the above-mentioned drawbacks and which can operate stably.

この発明を要約すれば、制御手段から選択信号を出力し
た後にゲート信号を出力し、−数構出回路で外部から入
力されるデータ種別信号と制御手段から出力される選択
信号との一致を検出する。
To summarize the invention, after outputting a selection signal from the control means, a gate signal is output, and a match between a data type signal inputted from the outside and a selection signal outputted from the control means is detected by a number output circuit. do.

また、制御手段から出力されるゲート信号を外部から入
力されるストローブ信号に同期して記憶し、この信号と
一致検出信号とストローブ信号とに基づいてデータをレ
ジスタに記憶させるようにし、それによって外9部から
入力される信号とインターフェイス回路とを同期させる
ように構成したものである。
Further, the gate signal outputted from the control means is stored in synchronization with the strobe signal inputted from the outside, and data is stored in the register based on this signal, the coincidence detection signal, and the strobe signal, thereby allowing the external The interface circuit is configured to synchronize the signal input from the ninth section with the interface circuit.

この発明の上述の目的およびその他の目的と特徴は以下
に図面を参照して行う詳細な説明から一層明らかとなろ
う。
The above objects and other objects and features of the present invention will become more apparent from the detailed description given below with reference to the drawings.

第3図はこの発明の一実施例のブロック図である。この
第3図は以下の点を除いて第1図と同じである。すなわ
ち、データストローブ信@8とゲート信号10とを同期
させるために状態記憶手段としての7リツプ70ツブ1
3が設けられる。このフリップ70ツブ13は制御回路
5からゲート信号10が入力されると、データストロー
ブ信号8の立ち下がりのタイミングでゲート信号10を
記憶する。そして、同期ゲート信@14をANDゲート
2に与える。
FIG. 3 is a block diagram of one embodiment of the present invention. This FIG. 3 is the same as FIG. 1 except for the following points. That is, in order to synchronize the data strobe signal @ 8 and the gate signal 10, 7 rip 70 rip 1 is used as a state storage means.
3 is provided. When the flip 70 tube 13 receives the gate signal 10 from the control circuit 5, it stores the gate signal 10 at the timing of the fall of the data strobe signal 8. Then, the synchronous gate signal @14 is given to the AND gate 2.

第4図は第3図の各部の波形図である。次に、第3図お
よび第4図を参照してこの発明の一実施例の具体的な動
作について説明する。−数構出回路1は第1図と同様に
して、データ種別信号7と選択信号9との一致がとれる
と一数構出信@11をANDゲート2に与える。制御口
l110は選択信号9を出力した俵ゲート信号10を7
リツプフロツプ13に与える。フリップ70ツブ13は
データストローブ信@8の立ち下がりのタイミングでゲ
ート信号10を記憶し、同期ゲート信号14をANDゲ
ート2に与える。ANDゲート2はデータストローブ信
号8と一致検出信号11と同期ゲート信号14との論理
積をとり、論理積信号12をレジスタ3に与える。レジ
スタ3は論理積信号12が入力されたタイミングでデー
タ6を記憶する。
FIG. 4 is a waveform diagram of each part of FIG. 3. Next, the specific operation of one embodiment of the present invention will be described with reference to FIGS. 3 and 4. - The number output circuit 1 provides a number output @11 to the AND gate 2 when the data type signal 7 and the selection signal 9 match. The control port l110 outputs the bale gate signal 10 which outputs the selection signal 9.
It is given to lip flop 13. The flip 70 tube 13 stores the gate signal 10 at the timing of the fall of the data strobe signal @8, and provides the synchronous gate signal 14 to the AND gate 2. The AND gate 2 performs the logical product of the data strobe signal 8, the coincidence detection signal 11, and the synchronization gate signal 14, and provides the logical product signal 12 to the register 3. The register 3 stores data 6 at the timing when the AND signal 12 is input.

このように、ゲート信号10をデータストローブ信号8
に同期させることにより、データストa−ブ信@8の期
間中にゲート信号10が立ち下がっても同期ゲート信号
14は次のデータストローブ信号8の立ち下がりまで保
持されるので、論理積信号12はデータストローブ信号
8と同じパルス幅を有することになる。したがって、従
来のようにデータストローブ信号8とゲート信号10と
が同期していないことにより論理積信号12がパルス幅
の狭い論理積信号12を出力することがない。したがっ
て、レジスタ3には確実にデータ6が記憶される。
In this way, the gate signal 10 is converted into the data strobe signal 8.
Even if the gate signal 10 falls during the period of the data strobe signal @8, the synchronous gate signal 14 is held until the next falling edge of the data strobe signal 8, so that the AND signal 12 will have the same pulse width as data strobe signal 8. Therefore, the AND signal 12 does not output the AND signal 12 with a narrow pulse width because the data strobe signal 8 and the gate signal 10 are not synchronized as in the conventional case. Therefore, data 6 is reliably stored in register 3.

以上のように、この発明によれば、ゲート信号をストロ
ーブ信号に同期させて、レジスタにデータを記憶させる
ための信号としているので、レジスタに確実にデータを
記憶させることができる。
As described above, according to the present invention, since the gate signal is synchronized with the strobe signal and used as a signal for storing data in the register, data can be reliably stored in the register.

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

第1図はこの発明の背景となるインターフェイス回路の
概略ブロック図である。第2図は第1図の各部の波形図
である。第3図はこの発明の一実施例のブロック図であ
る。第4図は第3図の各部の波形図である。 図において、1は一致検出回路、2はANDゲート、3
はレジスタ、5は制御回路、13はフリップ70ツブを
示す。 代理人 葛 野 信 −(外1名) 第1図 第2図 御峠射/2’ 第3目 ・    第41 iAゼ檜倦逮2
FIG. 1 is a schematic block diagram of an interface circuit that forms the background of this invention. FIG. 2 is a waveform diagram of each part of FIG. 1. FIG. 3 is a block diagram of one embodiment of the present invention. FIG. 4 is a waveform diagram of each part of FIG. 3. In the figure, 1 is a coincidence detection circuit, 2 is an AND gate, and 3
is a register, 5 is a control circuit, and 13 is a flip 70 tube. Agent Makoto Kuzuno - (1 other person) Figure 1 Figure 2 Gotoge Sho/2' 3rd/41st iAze Hinoki Arashi 2

Claims (1)

【特許請求の範囲】 データと、ストローブ信号と、#記データの種別を表わ
すデータ種別信゛号とを受け、前記データが所望のデー
タであればレジスタに記憶するインターフェイス回路に
おいて、 前記レジスタに記憶すべきデータを選択するための選択
信号を出力するとともに、前記選択信号を出力した後に
ゲート信号を出力する制御手段、前記データ種別信号と
前記選択信号との一致を検出して一致検出信号を出力す
る一致検出手段、前記ゲート信号を前記ストローブ信号
に同期して記憶する状態記憶手段、および 前記−数構出信号と前記状態記憶手段出力と前記ストロ
ーブ信号とに基づいて、前記データを前記レジスタに記
憶させるゲート手段を備えた、インターフェイス回路。
[Scope of Claims] An interface circuit that receives data, a strobe signal, and a data type signal representing the type of # data, and stores the data in a register if the data is desired data, comprising: a control means for outputting a selection signal for selecting data to be selected and a gate signal after outputting the selection signal; detecting coincidence between the data type signal and the selection signal and outputting a coincidence detection signal; a coincidence detecting means for storing the gate signal in synchronization with the strobe signal, and a state storing means for storing the gate signal in synchronization with the strobe signal, and storing the data in the register based on the minus number output signal, the state storing means output, and the strobe signal. An interface circuit with gate means for storing.
JP19540581A 1981-12-03 1981-12-03 Interface circuit Granted JPS5896327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19540581A JPS5896327A (en) 1981-12-03 1981-12-03 Interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19540581A JPS5896327A (en) 1981-12-03 1981-12-03 Interface circuit

Publications (2)

Publication Number Publication Date
JPS5896327A true JPS5896327A (en) 1983-06-08
JPH0210978B2 JPH0210978B2 (en) 1990-03-12

Family

ID=16340559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19540581A Granted JPS5896327A (en) 1981-12-03 1981-12-03 Interface circuit

Country Status (1)

Country Link
JP (1) JPS5896327A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0381783U (en) * 1989-12-12 1991-08-21

Also Published As

Publication number Publication date
JPH0210978B2 (en) 1990-03-12

Similar Documents

Publication Publication Date Title
KR880009520A (en) Digital data memory system
JPS6371662A (en) Time-stamp circuit
JP2641276B2 (en) Two-stage synchronizer
JPS5896327A (en) Interface circuit
JPH0789653B2 (en) Horizontal sync signal processing circuit
JP2757714B2 (en) Frame pulse generation circuit
JP3063291B2 (en) Line monitoring circuit
JPH03190332A (en) Jitter absorbing circuit
JPH04255171A (en) Reference signal generating circuit
SU1129723A1 (en) Device for forming pulse sequences
JPS5972845A (en) Asynchronous data receiving circuit
KR930002893Y1 (en) Corresponding signal detecting circuit
JP2590688B2 (en) Frame phase matching circuit
JPS62209934A (en) Frame synchronizing device
JPH04363914A (en) Synchronization clock generator
JPH0710042B2 (en) Timing signal generator
JPS6248402B2 (en)
JPS6141426B2 (en)
JPS5654696A (en) Memory device
JPH03273414A (en) Signal selecting system
JPH0556699B2 (en)
JPS63173432A (en) Clock crossing over circuit
JPH02180442A (en) Multiplex synchronizing circuit
JPH03211594A (en) Polarity detecting/fixing circuit for pulse signal
JPH01288130A (en) Data expansion circuit