JPH031265A - Interface circuit - Google Patents

Interface circuit

Info

Publication number
JPH031265A
JPH031265A JP13521689A JP13521689A JPH031265A JP H031265 A JPH031265 A JP H031265A JP 13521689 A JP13521689 A JP 13521689A JP 13521689 A JP13521689 A JP 13521689A JP H031265 A JPH031265 A JP H031265A
Authority
JP
Japan
Prior art keywords
data
cpu
register
contents
comparing
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.)
Pending
Application number
JP13521689A
Other languages
Japanese (ja)
Inventor
Sakae Ito
栄 伊藤
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 JP13521689A priority Critical patent/JPH031265A/en
Publication of JPH031265A publication Critical patent/JPH031265A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To reduce the load of a CPU by providing a setting means which can set arbitrary data, and a comparing means for comparing the data set by this setting means and receiving data and outputting a data coincidence interruption request signal to the CPU, when both the data coincide with each other. CONSTITUTION:This circuit is provided with a setting means 11 which can set arbitrary data, and a comparing means for comparing the data set by this setting means 11 and receiving data and outputting a data coincidence interruption request signal to a CPU, when both the data coincide with each other. That is, in the comparing circuit 12, the contents (D7 -D0) of a receiving buffer register 8 and the contents (D7' - D0') of a data setting register 11 are compared at every bit. As a result, only when all the bits coincide, its output signal, namely, the data coincidence interruption request signal becomes an H level through a NAND gate and a NOT gate. In such a way, it becomes unnecessary that the CPU 10 reads out the contents of the receiving buffer register 8 and executes a comparison check, whenever reception is completed, and the load is reduce.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、情報処理装置のインタフェース回路に係わ
り、特にその受信部に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interface circuit for an information processing device, and particularly to a receiving section thereof.

[従来の技術] 第3図は、従来のシリアルインタフェース回路の受信部
を示すブロック図である。図において、1は外部クロッ
ク入力端子、2は内部クロック発生回路であり、選択ス
イッチ3によってどちらか一方のクロックが選択される
。4は受信制御回路で、上記選択スイッチ3を介してク
ロックを入力し、制御レジスタ5の内容に基づき受信ク
ロックや受信完了割り込み要求信号を出力する。6はデ
ータ入力端子、7はこのデータ入力端子6に人力される
シリアルデータを上記受信制御回路4からの受信クロッ
クに従って取り込む受信レジスタで、シフトレジスタに
より構成される。8は所定ビット数の受信完了によって
上記受信レジスタ7に取り込まれたデータが転送される
受信バッファレジスタであり、この受信バッファレジス
タ8及び上記制御レジスタ5は、データバス9を介して
CPU (中央処理装置)10と接続される。
[Prior Art] FIG. 3 is a block diagram showing a receiving section of a conventional serial interface circuit. In the figure, 1 is an external clock input terminal, 2 is an internal clock generation circuit, and a selection switch 3 selects one of the clocks. 4 is a reception control circuit which inputs a clock via the selection switch 3 and outputs a reception clock and a reception completion interrupt request signal based on the contents of the control register 5; Reference numeral 6 denotes a data input terminal, and 7 a reception register which takes in serial data manually input to the data input terminal 6 in accordance with a reception clock from the reception control circuit 4, which is constituted by a shift register. Reference numeral 8 denotes a receive buffer register to which data fetched into the receive register 7 is transferred upon completion of reception of a predetermined number of bits. device) 10.

次に動作について説明する。Next, the operation will be explained.

外部クロック入力端子lから人力された外部クロック、
あるいは内部クロック発生回路2によって作られた内部
クロックのいずれか一方が選択スイッチ3を通して受信
制御回路4に入力される。
External clock manually input from external clock input terminal l,
Alternatively, either one of the internal clocks generated by the internal clock generation circuit 2 is input to the reception control circuit 4 through the selection switch 3.

受信制御回路4では、制御レジスタ5の内容に従って受
信クロックの発生、停止を制御する。制御レジスタ5は
データバス9を介してCPU10と接続されており、命
令の実行によって制御レジスタ5の内容を読み出したり
、書き換えたりすることができる。すなわち−Cr’U
10における命令の実行によって受信の開始、停止を制
御できる。受信レジスタ7はシフトレジスタ構成になっ
ており、受信制御回路4からの受信クロックに同期して
データ入力端子6に人力されているデータをレジスタ内
に取り込んでいく。予め定められた長さ(ここでは例と
して8ビツト長とする)のデータが受信し終わると、受
信レジスタ7の内容は受信バッファレジスタ8に転送さ
れる。それと同時に、受信制御回路4は受信完了割り込
み要求信号を発生し、CPUl0に対して受信が完了し
たことを知らせる。
The reception control circuit 4 controls generation and stop of the reception clock according to the contents of the control register 5. The control register 5 is connected to the CPU 10 via a data bus 9, and the contents of the control register 5 can be read or rewritten by executing an instruction. i.e. -Cr'U
The start and stop of reception can be controlled by executing the command in step 10. The reception register 7 has a shift register configuration, and takes in the data inputted to the data input terminal 6 into the register in synchronization with the reception clock from the reception control circuit 4. When data of a predetermined length (in this example, 8 bits length) has been received, the contents of the receive register 7 are transferred to the receive buffer register 8. At the same time, the reception control circuit 4 generates a reception completion interrupt request signal to notify the CPU 10 that reception has been completed.

[発明が解決しようとする課題] このような従来のシリアルインタフェース回路において
は、連続的に受信されたデータの中から特定のデータを
検出する場合、受信が完了する毎にCPUによって受信
バッファレジスタの内容を読み出し、これをCPUにお
いて特定のデータと比較する操作が必要であった。この
ため、CP Uがシリアルインタフェース回路によって
占有されてしまったり、あるいはCPUが並列に他の仕
事をしていたとしても受信完了毎の割り込みによって仕
事が中断されるため、効率が低下するという問題点があ
った。
[Problems to be Solved by the Invention] In such a conventional serial interface circuit, when detecting specific data from continuously received data, the CPU updates the receive buffer register every time reception is completed. It was necessary to read the contents and compare them with specific data on the CPU. As a result, the CPU is occupied by the serial interface circuit, or even if the CPU is doing other work in parallel, the work is interrupted by an interrupt every time reception is completed, resulting in a decrease in efficiency. was there.

この発明は上記のような問題点を解決するためになされ
たもので、CPUの負荷を軽減させることができるイン
タフェース回路を得ることを目的とするものである。
This invention was made to solve the above-mentioned problems, and aims to provide an interface circuit that can reduce the load on the CPU.

[課題を解決するための手段] この発明に係るインタフェース回路は、任意のデータを
設定可能な設定手段と、この設定手段に設定されたデー
タと受信データを比較し一致した時にCPUにデーター
救剤り込み要求信号を出力する比較手段とを備えたもの
である。
[Means for Solving the Problems] The interface circuit according to the present invention includes a setting means that can set arbitrary data, and compares the data set in the setting means with the received data, and when they match, sends data to the CPU. and comparison means for outputting a read-in request signal.

[作用] この発明におけるインタフェース回路は、インタフェー
ス回路自身が受信データと設定手段に設定されたデータ
を比較チックする機能を有するため、CPUは従来のよ
うに受信完了毎に受信データを読み出して比較チックす
る必要がなくなる。
[Operation] The interface circuit of the present invention has the function of comparing and ticking the received data and the data set in the setting means, so the CPU reads the received data every time reception is completed and performs a comparison tick, as in the conventional case. There is no need to do so.

[実施例] 以下、この発明の一実施例を図について説明する。[Example] An embodiment of the present invention will be described below with reference to the drawings.

第1図は、この発明におけるシリアルインタフェース回
路の受信部の一実施例を示すブロック図であり、第3図
の従来例と同一部分には同一符号を用いて、その説明は
省略する。図において、11はデータバス9に接続され
たデータ設定レジスタであり、受信バッファレジスタ8
と同一のビット長(ここでは8ビツト長)を有する。1
2は上記データ設定レジスタ11の内容と受信バッファ
レジスタ8の内容をビット単位に比較する比較回路であ
り、一致した場合にはデーター救剤り込み要求信号をC
PUl0に出力する。
FIG. 1 is a block diagram showing an embodiment of a receiving section of a serial interface circuit according to the present invention, and the same parts as those in the conventional example shown in FIG. In the figure, 11 is a data setting register connected to data bus 9, and reception buffer register 8
It has the same bit length (in this case, 8 bit length). 1
2 is a comparison circuit that compares the contents of the data setting register 11 and the contents of the reception buffer register 8 bit by bit, and when they match, a data rescue agent loading request signal is sent to C.
Output to PU10.

次に動作について説明する。Next, the operation will be explained.

先ず予め、データ設定レジスタ11に対しCPUl0に
よってデータを書き込む命令を実行して、目的とする特
定のデータを設定しておく。比較回路12においては、
このデータ設定レジスタ11の内容と受信バッファレジ
スタ8の内容、すなわち受信されたデータとを常に比較
しており、この2つの内容が一致した時にCPU10に
対してデーター救剤り込み要求信号を発生する。
First, a command to write data to the data setting register 11 is executed by the CPU 10 to set specific target data. In the comparison circuit 12,
The contents of this data setting register 11 and the contents of the reception buffer register 8, that is, the received data, are constantly compared, and when these two contents match, a data rescue agent loading request signal is generated to the CPU 10. .

上記データ設定レジスタ11と比較回路12の構成例を
第2図に示す0図中、−点鎖線で囲まれた部分は同一回
路の繰り返しを示し、顧はWRの反転信号を表わす。上
記WRはデータ設定レジスタ11に対してデータを書き
込む命令が実行された時にL′ レベルになる書き込み
信号で、これによってデータ設定レジスタ11の双方向
ゲートが開いて、CPUIQによってデータバス9のD
B7〜DBO上に出力されたデータがレジスタの1段目
のラッチ部分に入り、書き込み終了とともにWRがL′
 レベルに戻ると、書き込まれたデータは2段目のラッ
チ部分に移りレジスタの内容が更新される。比較回路1
2においては、受信バッファレジスタ8の内容(D7〜
DO)と上記データ設定レジスタ11の内容(D7″〜
DO″)をビット毎に比較し、全ビットが一致した時の
みNANDゲート、NOTゲートを介してその出力信号
、すなわちCP UlOへのデータ一致割り込み要求信
号を’ )−I ’ レベルとする。
An example of the configuration of the data setting register 11 and the comparison circuit 12 is shown in FIG. 2. In FIG. 2, a portion surrounded by a dashed line indicates a repetition of the same circuit, and a portion surrounded by a dashed line indicates a repetition of the same circuit, and a portion indicated by a dashed line indicates an inverted signal of WR. The above WR is a write signal that goes to L' level when an instruction to write data to the data setting register 11 is executed.This opens the bidirectional gate of the data setting register 11, and the CPU IQ causes the data bus 9 to be
The data output from B7 to DBO enters the first stage latch part of the register, and when writing is completed, WR becomes L'
When the level returns, the written data is transferred to the second stage latch portion and the contents of the register are updated. Comparison circuit 1
2, the contents of the receive buffer register 8 (D7~
DO) and the contents of the data setting register 11 (D7''~
DO'') is compared bit by bit, and only when all bits match, the output signal, that is, the data match interrupt request signal to the CPU UIO, is set to the ')-I' level via the NAND gate and NOT gate.

以上により、CPUl0は受信完了毎に受信バッファレ
ジスタ8の内容を読み出して比較チエツクする必要がな
くなり、負荷が大幅に軽減される。
As a result of the above, the CPU 10 does not need to read and compare the contents of the receive buffer register 8 every time reception is completed, and the load is significantly reduced.

なお、上記実施例では、受信レジスタ7や受信バッファ
レジスタ8が8ビツト長のものに木皮(を適用した場合
について示したが、任意のビット長のものに適用可能で
ある。
In the above embodiment, the case where the bark is applied to the receiving register 7 and the receiving buffer register 8 having an 8-bit length is shown, but the present invention can be applied to any bit length.

また、上記実施例では、シリアルインタフェース回路に
ついて示したが、パラレルインタフェース回路にも適用
可能である。
Furthermore, although the above embodiments have been described with reference to serial interface circuits, they can also be applied to parallel interface circuits.

[発明の効果] 以上のように、この発明によれば、インタフェース回路
内に、任意のデータを設定可能な設定手段と、この設定
手段に設定されたデータと受信−データを比較し一致し
た時にCP Uにデータ一致割り込み要求信号を出力す
る比較手段とを備えたので、連続的に受信されるデータ
の中から特定のデータを検出する際に、従来のように一
つのデータを受信する毎にC)) Uによってこれを読
み出して比較チエツクする必要がなくなるため、CI)
 Uの負荷が軽減され、インタフェース回路が動作中C
PUは他のジョブを効率的に実行できる。
[Effects of the Invention] As described above, according to the present invention, the interface circuit includes a setting means that can set arbitrary data, and when the data set in the setting means and the received data are compared, Since the CPU is equipped with a comparison means that outputs a data match interrupt request signal to the CPU, when detecting specific data from among continuously received data, it is possible to detect specific data from among data that is continuously received. C)) Since there is no need to read this and compare check with U, CI)
The load on U is reduced and the interface circuit is in operation.
The PU can efficiently execute other jobs.

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

第1図はこの発明の一実施例によるシリアルインタフェ
ース回路の要部構成を示すブロック図、第2図は上記第
1図のデータ設定レジスタと比較回路の構成例を示す回
路図、第3図は従来のシリアルインタフェース回路の要
部構成を示すブロック図である。 ■は外部クロック入力端子、2は内部クロック発生回路
、3は選択スイッチ、4は受信制御回路、5は制御レジ
スタ、6はデータ入力端子、7は受信レジスタ、8は受
信バッファレジスタ、9はデータバス、10はCPU 
(中央処理装置)、11はデータ設定レジスタ(設定手
段)、12は比較回路(比較手段)。 なお1図中、同一符号は同一、又は相当部分を示す。 代理人  大 岩  増 雄(ばか2名)(自発)
FIG. 1 is a block diagram showing the main part configuration of a serial interface circuit according to an embodiment of the present invention, FIG. 2 is a circuit diagram showing an example of the configuration of the data setting register and comparison circuit shown in FIG. 1, and FIG. 1 is a block diagram showing the configuration of main parts of a conventional serial interface circuit. FIG. ■ is an external clock input terminal, 2 is an internal clock generation circuit, 3 is a selection switch, 4 is a reception control circuit, 5 is a control register, 6 is a data input terminal, 7 is a reception register, 8 is a reception buffer register, 9 is data Bus, 10 is CPU
(central processing unit), 11 is a data setting register (setting means), and 12 is a comparison circuit (comparison means). In addition, in FIG. 1, the same reference numerals indicate the same or equivalent parts. Agent Masuo Oiwa (2 idiots) (voluntary)

Claims (1)

【特許請求の範囲】 所定数のデータ受信完了毎に中央処理装置に受信完了割
り込み要求信号を出力するインタフェース回路において
、 任意のデータを設定可能な設定手段と、この設定手段に
設定されたデータと受信データを比較し一致した時に上
記中央処理装置にデータ一致割り込み要求信号を出力す
る比較手段とを備えたことを特徴とするインタフェース
回路。
[Scope of Claims] An interface circuit that outputs a reception completion interrupt request signal to a central processing unit every time reception of a predetermined number of data is completed, comprising a setting means capable of setting arbitrary data, and a data set in the setting means. An interface circuit comprising comparing means for comparing received data and outputting a data match interrupt request signal to the central processing unit when they match.
JP13521689A 1989-05-29 1989-05-29 Interface circuit Pending JPH031265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13521689A JPH031265A (en) 1989-05-29 1989-05-29 Interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13521689A JPH031265A (en) 1989-05-29 1989-05-29 Interface circuit

Publications (1)

Publication Number Publication Date
JPH031265A true JPH031265A (en) 1991-01-07

Family

ID=15146549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13521689A Pending JPH031265A (en) 1989-05-29 1989-05-29 Interface circuit

Country Status (1)

Country Link
JP (1) JPH031265A (en)

Similar Documents

Publication Publication Date Title
KR930009768B1 (en) Computer system and control method thereof
JPS6336338A (en) Interrupt demand generator
US5742842A (en) Data processing apparatus for executing a vector operation under control of a master processor
JP3380827B2 (en) Emulator device
JPH031265A (en) Interface circuit
JPH08171504A (en) Emulation device
JPS58101360A (en) Data processor
KR100336743B1 (en) Processing circuit for data
JP2558902B2 (en) Semiconductor integrated circuit device
KR860001785B1 (en) System program protection circuit of z80 cpu
JP2935710B2 (en) Test equipment for processor integrated circuit devices
JPH0876876A (en) Clock supply control circuit of microprocessor
JP3210939B2 (en) Process control device with PIO simulation memory
KR0171173B1 (en) One-chip microcomputer
JPH03296146A (en) Back-up device for program development
JPS62256138A (en) Data processor
JPH04127244A (en) Microcomputer
JPS63211057A (en) Multiprocessor system
JPH0816490A (en) Computer device
JPH04227519A (en) Microcomputer system
JPH049344B2 (en)
JPH08161253A (en) Dma control method and dma controller
JPH04195316A (en) Power saving circuit
JPH01214945A (en) Microcomputer
JPH02278342A (en) Microcomputer