JPH0210978B2 - - Google Patents

Info

Publication number
JPH0210978B2
JPH0210978B2 JP19540581A JP19540581A JPH0210978B2 JP H0210978 B2 JPH0210978 B2 JP H0210978B2 JP 19540581 A JP19540581 A JP 19540581A JP 19540581 A JP19540581 A JP 19540581A JP H0210978 B2 JPH0210978 B2 JP H0210978B2
Authority
JP
Japan
Prior art keywords
signal
data
gate
register
coincidence detection
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
Application number
JP19540581A
Other languages
Japanese (ja)
Other versions
JPS5896327A (en
Inventor
Takashi Ito
Takeshi Oonishi
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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Description

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

第1図はこの発明の背景となるインターフエイ
ス回路のブロツク図であり、第2図は第1図の各
部の波形図である。
FIG. 1 is a block diagram of an interface circuit which is the background of the present 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とゲート信号10との
論理積をとり、その出力信号12をレジスタ3に
与える。レジスタ3は論理積信号12が入力され
たタイミングにおいてデータ6を記憶する。レジ
スタ3に記憶されたデータ6はレジスタ4に与え
られる。レジスタ4は制御回路5から与えられる
信号に基づいて、データ6を記憶する。なお、レ
ジスタ4および制御回路5はたとえばマイクロコ
ンピユータに内蔵されるものである。
Next, the structure and operation of a conventional interface circuit will be explained with reference to FIGS. 1 and 2. The coincidence detection circuit 1 is supplied with a data type signal 7 and a selection signal 9 from the control circuit 5 from the outside. 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 for selecting the data to be applied to the register 6. A coincidence detection circuit 1 detects a coincidence between a data type signal 7 and a selection signal 9, and if they match, a coincidence detection signal 11 is output.
is given to AND gate 2. This AND gate 2 receives a data strobe signal 8 and a control circuit 5 from the outside.
A gate signal 10 is applied from . This gate signal 10 is derived after the selection signal 9 is output. The AND gate 2 performs a logical product of the data strobe signal 8, the coincidence detection signal 11, and the gate signal 10, and provides the output signal 12 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から出力されるゲート信号10と
外部から入力されるデータストローブ信号8とが
非同期であるため、ANDゲート2においてデー
タストローブ信号8とゲート信号10とのタイミ
ングがとれないことがあり、第2図に示す論理積
信号12′のように非常にパルス幅の狭い信号が
出力されることもある。このため、レジスタ3は
論理積信号12′に基づいて正常にデータを記憶
しなくなることがあつた。
As mentioned above, in the conventional interface circuit, the gate signal 10 output from the control circuit 5 and the data strobe signal 8 input from the outside are asynchronous, so the data strobe signal 8 and the gate signal 10 are not synchronized in the AND gate 2. In some cases, the timing cannot be obtained, and a signal with a very narrow pulse width, such as the AND signal 12' shown in FIG. 2, may be output. As a result, the register 3 sometimes fails to properly 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, a gate signal is output after a selection signal is output from the control means, and a match detection circuit detects a match between a data type signal inputted from the outside and a selection signal outputted from the control means.
Further, the date 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. It is configured to synchronize signals input from the outside 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とを同期させるために状態記憶手段
としてのフリツプフロツプ13が設けられる。こ
のフリツプフロツプ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, a flip-flop 13 is provided as state storage means. When the flip-flop 13 receives the gate signal 10 from the control circuit 5, it stores the gate signal 10 at the falling edge of the data strobe signal 8. Then, AND the synchronization gate signal 14
Give to gate 2.

第4図は第3図の各部の波形図である。次に、
第3図および第4図を参照してこの発明の一実施
例の具体的な動作について説明する。一致検出回
路1は第1図と同様にして、データ種別信号7と
選択信号9との一致がとれると一致検出信号11
とANDゲート2に与える。制御回路10は選択
信号9を出力した後ゲート信号10をフリツプフ
ロツプ13に与える。フリツプフロツプ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 coincidence detection circuit 1 generates a coincidence detection signal 11 when the data type signal 7 and the selection signal 9 match in the same way as shown in FIG.
and is given to AND gate 2. After outputting the selection signal 9, the control circuit 10 applies a gate signal 10 to the flip-flop 13. The flip-flop 13 stores the gate signal 10 at the falling edge of the data strobe signal 8, and stores the synchronous gate signal 14.
is given to AND gate 2. The AND gate 2 takes the AND of the data strobe signal 8, the coincidence detection signal 11, and the synchronization gate signal 14, and outputs the AND signal 12.
is given to register 3. The register 3 stores timing data 6 into which the AND signal 12 is input.

このように、ゲート信号10をデータストロー
ブ信号8に同期させることにより、データストロ
ーブ信号8の期間中にゲート信号10が立ち下が
つても同期ゲート信号14は次のデータストロー
ブ信号8の立ち下がりまで保持されるので、論理
積信号12はデータストローブ信号8と同じパル
ス幅を有することになる。したがつて、従来のよ
うにデータストローブ信号8とゲート信号10と
が同期していないことにより論理積信号12がパ
ルス幅の狭い論理積信号12を出力することがな
い。したがつて、レジスタ3には確実にデータ6
が記憶される。
In this way, by synchronizing the gate signal 10 with the data strobe signal 8, even if the gate signal 10 falls during the period of the data strobe signal 8, the synchronized gate signal 14 will remain until the next falling edge of the data strobe signal 8. Since the AND signal 12 is held, the AND signal 12 will have the same pulse width as the 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, register 3 definitely contains data 6.
is memorized.

以上のように、この発明によれば、ゲート信号
をストローブ信号に同期させて、レジスタにデー
タを記憶させるための信号としているので、レジ
スタに確実にデータを記憶させることができる。
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はフリ
ツプフロツプを示す。
FIG. 1 is a schematic block diagram of an interface circuit which 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, 3 is a register, 5 is a control circuit, and 13 is a flip-flop.

Claims (1)

【特許請求の範囲】 1 データと、ストローブ信号と、前記データの
種別を表わすデータ種別信号とを受け、前記デー
タが所望のデータであればレジスタに記憶するイ
ンターフエイス回路において、 前記レジスタに記憶すべきデータを選択するた
めの選択信号を出力するとともに、前記選択信号
を出力した後にゲート信号を出力する制御手段、 前記データ種別信号と前記選択信号との一致を
検出して一致検出信号を出力する一致検出手段、 前記ゲート信号を前記ストローブ信号に同期し
て記憶する状態記憶手段、および 前記一致検出信号と前記状態記憶手段出力と前
記ストローブ信号とに基づいて、前記データを前
記レジスタに記憶させるゲート手段を備えた、イ
ンターフエイス回路。
[Scope of Claims] 1. 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 detection means, a state storage means for storing the gate signal in synchronization with the strobe signal, and a gate for storing the data in the register based on the coincidence detection signal, the output of the state storage means, and the strobe signal. An interface circuit with means.
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 JPS5896327A (en) 1983-06-08
JPH0210978B2 true 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)

Cited By (1)

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

Cited By (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
JPS5896327A (en) 1983-06-08

Similar Documents

Publication Publication Date Title
KR880009520A (en) Digital data memory system
US5233638A (en) Timer input control circuit and counter control circuit
KR900005329A (en) Phase discrimination and data separation method and apparatus
JP2641276B2 (en) Two-stage synchronizer
JPH0210978B2 (en)
US5012493A (en) Phase difference-adjusting circuit
JP2693047B2 (en) Reference signal creation circuit
JPH04363914A (en) Synchronization clock generator
JPH0556699B2 (en)
JPS61171246A (en) Detection circuit for out of synchronism
JPS63199538A (en) Synchronizing device for digital data signal
JPH0710042B2 (en) Timing signal generator
JP2646436B2 (en) Timer control method
JP3144735B2 (en) Synchronous signal generator
JP2590688B2 (en) Frame phase matching circuit
JPS6141426B2 (en)
JP2874444B2 (en) Line monitoring circuit
JP2663484B2 (en) Memory device
JPH01288130A (en) Data expansion circuit
JPH01180142A (en) Synchronizing type phase comparator circuit
JPH0319536A (en) Serial signal separation circuit
JPH01258515A (en) Frame synchronizing circuit
JPS63173432A (en) Clock crossing over circuit
JPS6248402B2 (en)
JPH02119334A (en) Pulse stuff synchronous circuit