JPS58225421A - Data processor - Google Patents

Data processor

Info

Publication number
JPS58225421A
JPS58225421A JP10963682A JP10963682A JPS58225421A JP S58225421 A JPS58225421 A JP S58225421A JP 10963682 A JP10963682 A JP 10963682A JP 10963682 A JP10963682 A JP 10963682A JP S58225421 A JPS58225421 A JP S58225421A
Authority
JP
Japan
Prior art keywords
microprocessor
input
output device
data
interrupt
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
JP10963682A
Other languages
Japanese (ja)
Inventor
Takashi Masumura
増村 孝
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
Nippon Electric Co Ltd
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, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP10963682A priority Critical patent/JPS58225421A/en
Publication of JPS58225421A publication Critical patent/JPS58225421A/en
Pending 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/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

PURPOSE:To ensure access at a high speed regardless of the difference of the access timing time, by giving both writing and reading accesses to an input/ output device independently of a microprocessor. CONSTITUTION:Both writing and reading accesses are given to an input/output device independently of a microprocessor. For instance, a data receiving interruption signal SRINT is supplied to a timing controller 7 from an input/output device 2. Then the signal RINT is supplied to a microprocessor 1 via a controller 3. An I/O instruction is transmitted from the processor 1 to reset an interruption, and a selection signal SEL is sent to a timing controller 6 and command data 4 from a device coder 5. Then a signal CRST is transmitted from the coder 4. An I/O instruction is transmitted from the processor 1 to read out the contents of a buffer 9. Then the processor 1 transmits an access timing signal IORQ.

Description

【発明の詳細な説明】 (発明の属する技術分野の説明) 本発明は特殊なデータ入出力制御アクセス方式を具備し
たデータ処理装置に関するもので。
DETAILED DESCRIPTION OF THE INVENTION (Description of the technical field to which the invention pertains) The present invention relates to a data processing device equipped with a special data input/output control access method.

特にマイクロプロセッサとそれに接続された入出力装置
とのアクセスタイミング時間が異なる時に特殊なデータ
入出力制御アクセスを行うデータ処理装置に関する。
In particular, the present invention relates to a data processing device that performs special data input/output control access when the access timings of a microprocessor and an input/output device connected thereto are different.

(従来技術の説明) 従来からマイクロプロセッサを使用したデータ処理装置
においては、マイクロプロセッサが備えたバスに接続さ
れた入出力装置のアクセスタイミング時間が、このマイ
クロプロセッサのアクセスタイミング時間とは異なる場
合がある。
(Description of Prior Art) Conventionally, in a data processing device using a microprocessor, the access timing time of an input/output device connected to a bus included in the microprocessor may differ from the access timing time of the microprocessor. be.

この様なときには、入出力装置のアクセス時間に合わせ
るために、マイクロプロセッサに待ち。
In such cases, the microprocessor waits to match the access time of the input/output device.

あるいは保持(Wait、または、[(old)の機能
を持たせ、入出力装置のアクセスが終了する迄マイクロ
プロセッサの動作を停止させていた。従って、入出力装
置のアクセスタイミング時間がマイクロプロセッサのア
クセスタイミング時間よりも著しく長い場合には、その
期間にわたってマイクロプロセッサの処理が停止してし
まうため、マイクロプロセッサの処理能力が低下すると
いう欠点があった。
Alternatively, the microprocessor operation is stopped until the input/output device access is completed by providing a hold (Wait or [(old)) function.Therefore, the access timing of the input/output device is determined by the microprocessor's access timing. If it is significantly longer than the timing time, the processing of the microprocessor will stop for that period, resulting in a reduction in the processing ability of the microprocessor.

(発明の目的) 本発明の目的は読出しノくソファと書込みノくソファと
を介し、マイクロプロセッサと入出力装置とを接続し、
マイクロプロセッサとは独立に入出力装置に書込みアク
セスと読出しアクセスとを行い、読出し時には読出しバ
ッファにデータを入力したことKよりマイクロプロセッ
サに割込みを発生させ、これによってマイクロプロセッ
サと入出力装置とのアクセスタイミング時間の相違に影
響されずに高速でアクセスを実施することができるデー
タ処理装置を提供することにある。
(Object of the Invention) The object of the present invention is to connect a microprocessor and an input/output device via a reading sofa and a writing sofa,
Write access and read access are performed to the input/output device independently of the microprocessor, and when reading data, an interrupt is generated to the microprocessor by inputting data to the read buffer, thereby allowing access between the microprocessor and the input/output device. An object of the present invention is to provide a data processing device that can perform high-speed access without being affected by timing differences.

(発明の構成と作用の説明) 本発明によるデータ処理装置はマイクロプロセッサと、
入出力装置と、コマンドデコーダと。
(Description of structure and operation of the invention) A data processing device according to the invention includes a microprocessor,
input/output device and command decoder.

デバイスデコーダと、読出しバッファと、書込みバッフ
ァと1割込みコントローラと、第1によび第2のタイミ
ングコントローラとを具備したものである。
The device includes a device decoder, a read buffer, a write buffer, one interrupt controller, and first and second timing controllers.

マイクロプロセッサはアドレスバス、データバス、なら
びに制御バスを備え、割込み機能を       ′1
有するものである。入出力装置は割込み機能を実現する
手段を有するものである。コマンドデコーfはアドレス
バス上のコマンドを解読シテ指令を得るためのものであ
る。デバイスデコーダはアドレスバス上のデバイス情報
を解読してI10デバイスアドレスを決定するためのも
のである。読出しバッファは入出力装置のデータをデー
タバスに送出する前に一時保持するためのものである。
A microprocessor has an address bus, a data bus, and a control bus, and has an interrupt function.
It is something that you have. The input/output device has means for realizing an interrupt function. The command decoder f is used to decode commands on the address bus and obtain commands. The device decoder is for decoding device information on the address bus to determine the I10 device address. The read buffer is used to temporarily hold data from the input/output device before sending it to the data bus.

書込みバッファはデータバス上のデータを入出力装置に
送出する前に一時保持するためのものである。割込みコ
ントローラはマイクロプロセッサに接続され、割込みを
制御するためのものである。第1のタイミングコン)o
−ラはマイクロプロセッサカ書込ミハソファにデータを
書込んだタイミングを捕え、マイクロプロセッサとは独
立に入出力装置に書込みアクセスを行うためのものであ
る。第2のタイミングコントローラは入出力装置からの
受信側割込みのタイミングを捕え、マイクロプロセッサ
の動作とは独立に入出力装置に対して読出しアクセスを
与え、読出しバッファにデータを入力したことに依って
マイクロプロセッサに割込゛みを発生させるためのもの
である。
The write buffer is used to temporarily hold data on the data bus before sending it to the input/output device. An interrupt controller is connected to the microprocessor and is for controlling interrupts. 1st timing control) o
The controller is used to capture the timing at which data is written to the microprocessor and to perform write access to the input/output device independently of the microprocessor. The second timing controller captures the timing of the receiving interrupt from the input/output device, provides read access to the input/output device independently of the operation of the microprocessor, and controls the microprocessor by inputting data to the read buffer. It is used to generate an interrupt to the processor.

(実施例の説明) 次に本発明の実施例について図面を参照し詳細に説明す
る。第1図は本発明によるデータ入出力アクセス方式を
実現するための一実施例の概略ブロック図であり、第2
図は第1図における第1および第2のタイミングコント
ローラの回路図である。
(Description of Embodiments) Next, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a schematic block diagram of one embodiment for realizing a data input/output access method according to the present invention, and FIG.
The figure is a circuit diagram of the first and second timing controllers in FIG. 1.

第1図において、lはマイクロプロセッサ、2は低速度
で動作する入出力装置、3は入出力装置からの多重割込
みを制御する割込みコントローラ、4はマイクロプロセ
ッサからのI10コマンドを解読するためのコマンドデ
コーダ。
In FIG. 1, l is a microprocessor, 2 is an input/output device that operates at low speed, 3 is an interrupt controller that controls multiple interrupts from the input/output device, and 4 is a command for decoding the I10 command from the microprocessor. decoder.

5は入出力装置のI10デバイスを選択するためのデバ
イスデコーダ、6はマイ、クロプロセッサからのコント
ロール信号に依りタイミングを制御するための第1のタ
イミングコントローラ、7は入出力装置2からの割込み
、ならびに第1のタイミングコントローラ6からの起動
指定に依シ制御を行々うための第2のタイミングコント
ローラ、8はトライステート出力を有する第1のドライ
バ、9は受信用の読出しバッファ、lOは送信用の書込
みバッファ、11はトライステート出力を有する第2の
ドライバである。また、第2図において12は第1のA
NDゲート、13はNANDゲート、14はORゲート
、15はR8形の7リツプフロツブ、 16は4人力の
第1のD形フリップフロップ、17〜19は第2〜第4
のANDゲート、20は1人力の第2のD形フリップフ
ロップである。第1図において、マイクロプロセッサ1
はマイクロプロセッサ1の具備するデータバスと、第1
のドライバ8と、読出しバッファ9とを介して入出力装
置2に接続されている。また、マイクロプロセッサ1は
マイクロプロセッサ1の具備するデータバスと、書込み
バッファlOと、第2のドライバ11とを介して入出力
装置2に接続されている。マイクロプロセッサ1が入出
力装置2からデータを受信するときには、入出力装置2
からデータ受信割込み信号$RINTが第2のタイミン
グコントローラ7に与えられる。第2のタイミングコン
トローラ7ではORゲート14を介して入力された$R
INT信号によりR8形フリップフロップ15がセット
され、ステージカウンタとして動作する第1のD形フリ
ップフロップ16を動作させる。入力クロックφの4ク
ロツク後に信号PRETがオンにたり、R8形フリップ
フロップ15はリセットされる。この時、ステージカウ
ンタとして動作する第1のD形フリップフロップ16で
は入出力装置2のアクセスタイミング信号$ l0RQ
が生成され、第4のANDゲート19で読出しを示す信
号$RDが生成される。このとき、入出力装置2に信号
$RDを与えて読出し動作を行う。読出されたデータは
信号$l0RQによって読出しバッファ9にセットされ
、これと同時に割込み用の第2のD形フリップフロップ
20がセットされる。これによって第2のタイミングコ
ントロー27から信号HINTが送出され、割込みコン
トローラ3を介してマイクロプロセッサlに割込み信号
INTが送出される。
5 is a device decoder for selecting the I10 device of the input/output device; 6 is a first timing controller for controlling timing according to a control signal from the microprocessor; 7 is an interrupt from the input/output device 2; and a second timing controller for performing control depending on the activation designation from the first timing controller 6; 8 is a first driver having a tri-state output; 9 is a read buffer for reception; The trusted write buffer, 11, is a second driver with a tri-state output. Also, in FIG. 2, 12 is the first A
ND gate, 13 is a NAND gate, 14 is an OR gate, 15 is an R8 type 7 flip-flop, 16 is a 4-person first D type flip-flop, 17 to 19 are second to fourth flip-flops.
AND gate 20 is a second D-type flip-flop operated by one person. In FIG. 1, microprocessor 1
are the data bus included in the microprocessor 1 and the first
It is connected to the input/output device 2 via a driver 8 and a read buffer 9. Further, the microprocessor 1 is connected to the input/output device 2 via a data bus included in the microprocessor 1, a write buffer IO, and a second driver 11. When the microprocessor 1 receives data from the input/output device 2, the input/output device 2
A data reception interrupt signal $RINT is applied to the second timing controller 7 from the data reception interrupt signal $RINT. In the second timing controller 7, $R input via the OR gate 14
The R8 type flip-flop 15 is set by the INT signal, and the first D type flip-flop 16, which operates as a stage counter, is operated. When the signal PRET turns on after four clocks of the input clock φ, the R8 type flip-flop 15 is reset. At this time, the first D-type flip-flop 16, which operates as a stage counter, receives the access timing signal $l0RQ of the input/output device 2.
is generated, and the fourth AND gate 19 generates a signal $RD indicating read. At this time, a signal $RD is applied to the input/output device 2 to perform a read operation. The read data is set in read buffer 9 by signal $l0RQ, and at the same time, second D-type flip-flop 20 for interrupt is set. As a result, a signal HINT is sent from the second timing controller 27, and an interrupt signal INT is sent to the microprocessor l via the interrupt controller 3.

割込みを受けたマイクロプロセッサlでは割込みをリセ
ットするためのI10命令を送出する。
The microprocessor l that receives the interrupt sends an I10 instruction to reset the interrupt.

デバイスデコーダ5によって入出力装置2の選択信号S
ELが送出され、コマンドデコーダ4によって解読され
て信号0R8Tになり、第2のD形フリップフロップ2
0はリセットされる。さらに、マイクロプロセッサ1は
読出しバッファ9に受信された内容を読出すためのI1
0命令も送出する。そこで、I10アクセスタイミング
信号l0RQ、RDが第1のタイミングコントローラ6
に与えられる。この時、第1のタイミングコントローラ
6における第1のANDゲート12の論理積条件がとれ
て信号RDEが立上り。
The selection signal S of the input/output device 2 is output by the device decoder 5.
EL is sent out and decoded by the command decoder 4 to become the signal 0R8T, which is sent to the second D-type flip-flop 2.
0 is reset. Furthermore, the microprocessor 1 has an I1 for reading the contents received into the read buffer 9.
0 command is also sent. Therefore, the I10 access timing signals l0RQ and RD are transmitted to the first timing controller 6.
given to. At this time, the AND condition of the first AND gate 12 in the first timing controller 6 is satisfied and the signal RDE rises.

読出しバッファの内容が第1のドライノく8を介してデ
ータバスに出力され、マイクロプロセッサ1に受信され
る。マイクロプロセッサlから入出力装置2にデータを
送信するときには、入出力装置2からデータ送信要求割
込み信号$8INTが発生すると、割込みコントローラ
3を介してマイクロプロセッサ1に割込みが発生する。
The contents of the read buffer are output to the data bus via the first driver 8 and received by the microprocessor 1. When transmitting data from the microprocessor 1 to the input/output device 2, when a data transmission request interrupt signal $8INT is generated from the input/output device 2, an interrupt is generated in the microprocessor 1 via the interrupt controller 3.

マイクロプロセッサ1ではデータ送出割込みであると判
断すると、送信データを書込みバッファ10に送出する
ためにI10命令を送出する。この時、デバイスデコー
ダ5では入出力装置2のための選択信号SF!Lが立上
り、工10アクセスタイミング信号l0RQ、WOが第
1のタイミングコントローラ6に与えられる。そこで、
第1のタイミングコントローラ6のNANDゲート13
の論理積条件がとれて、書込みノくソファ10のセット
タイ建ング信号WDSが書込みノくソファ10に与えら
れ、マイクロプロセッサ1からの送信データが書込みバ
ッファ10に書込まれる。これと同時に、第2のタイミ
ングコントローラ7では、ORゲート14を介してR8
形フリップフロップ15がセットされ1.ステージカウ
ンタとして動作する第1のD形フリップフロップ16が
動作する。そこで、入力クロックφの4クロツク後に信
号FR8Tが立上り、R8形フリップフロップ15はリ
セットされる。次に、ステージカウンタとして動作する
第1のD形フリツブフロップ16で入出力装置2のアク
セスタイミング信号$ l0RQが生成され、第3のA
NDゲート18で書込みを示す信号$WDが生成される
When the microprocessor 1 determines that it is a data sending interrupt, it sends an I10 command to send the sending data to the write buffer 10. At this time, the device decoder 5 receives the selection signal SF! for the input/output device 2! L rises, and the access timing signals l0RQ and WO are applied to the first timing controller 6. Therefore,
NAND gate 13 of first timing controller 6
When the logical product condition is satisfied, the set-tie signal WDS of the write buffer 10 is applied to the write buffer 10, and the transmission data from the microprocessor 1 is written into the write buffer 10. At the same time, the second timing controller 7 outputs R8 via the OR gate 14.
A type flip-flop 15 is set and 1. A first D-type flip-flop 16 operates as a stage counter. Therefore, the signal FR8T rises after four clocks of the input clock φ, and the R8 type flip-flop 15 is reset. Next, the access timing signal $l0RQ of the input/output device 2 is generated by the first D-type flip-flop 16 which operates as a stage counter, and the access timing signal $l0RQ of the input/output device 2 is generated.
ND gate 18 generates a signal $WD indicating writing.

これらの信号は入出力装置2へ与えられる。この時第2
のANDゲー)17で論理積の条件がとれて信号WDB
が立上、す、書込みバッファ10の内容が第2のドライ
バ11を介して入出力装置2のデータ入力端子に与えら
れ、マイクロプロセッサ1からの送信データが入出力装
置2へ書込まれる。
These signals are given to the input/output device 2. At this time the second
AND game) 17, the logical product condition is satisfied and the signal WDB
At startup, the contents of the write buffer 10 are applied to the data input terminal of the input/output device 2 via the second driver 11, and the transmission data from the microprocessor 1 is written to the input/output device 2.

(発明の詳細な説明) 本発明には以上説明したように、読出しノくソファと書
込みバッファとを介し、マイクロプロセッサからのデー
タバスを入出力装置に接続しマイクロプロセッサの動作
とは独立して入出力装置に書込みアクセスと読出しアク
セスとを実施し、読出し時にはデータを読出しノ(ソフ
ァにいったん格納してマイクロプロセッサに割込みを発
生させることに依り、マイクロプロセッサの処理を中断
させることなく高速にデータの入出力動作を行わせるこ
とができ、高速のデータ処理装置を比較的低速で小規模
のハードウェアにより実現できると云う効果がある。
(Detailed Description of the Invention) As described above, the present invention provides a method for connecting a data bus from a microprocessor to an input/output device through a read buffer and a write buffer, and to connect the data bus from a microprocessor to an input/output device independently of the operation of the microprocessor. Write access and read access are performed on the input/output device, and when reading data, the data is read out (stored temporarily in the sofa and generated an interrupt to the microprocessor, so that the data can be read out at high speed without interrupting the processing of the microprocessor. This has the advantage that a high-speed data processing device can be realized with relatively low-speed and small-scale hardware.

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

第1図は本発明によるデータ処理装置の一実施例の構成
を示すブロック図、第2図は第1図に示した第1Thよ
び第2のタイミングコントローラの回路ブロック構成を
示す図である。 1・・・マイクロプロセッサ  2・・・入出力装置3
・・・割込みコントローラ 4・・・コマンドデコーダ 5・・・デバイスデコーダ 6.7・・・タイミングコントローラ 8.11・・・ドライバ  9・・・読出しバッファ1
0・・・書込みバッファ
FIG. 1 is a block diagram showing the configuration of an embodiment of a data processing apparatus according to the present invention, and FIG. 2 is a diagram showing the circuit block configuration of the first Th and second timing controllers shown in FIG. 1... Microprocessor 2... Input/output device 3
...Interrupt controller 4...Command decoder 5...Device decoder 6.7...Timing controller 8.11...Driver 9...Read buffer 1
0...Write buffer

Claims (1)

【特許請求の範囲】 アドレスバス、データバス、にらびに制御ノくスを備え
1割込み機能を有するマイクロプロセッサと、前記割込
み機能を実現する手段を具備した入出力装置と、前記ア
ドレスノくス上のコマンドを解読するためのコマンドデ
コーダと、前記アドレスバス上のデバイス情報を解読し
てI10デバイスアドレスを決定するためのデノくイス
デコーダと、前記データノくスに対して前記入出力装置
から送出すべきデータをいったん保持するための読出し
バッファと、前記データノ(スから前記入出力装置に対
して送出すべきデータをいったん保持するための書込み
)くソファと。 前記−fイクロプロセッサに接続されていテ前記割込み
機能を制御するための割込みコンドローラド、前記マイ
クロプロセッサが前記書込みノ(ソファにデータを書込
んだタイミングを捕えて前記マイクロプロセッサとは独
立に前記入出力装置に書込みアクセスを行うための第1
のタイミングコントロー2と、前記マイクロプロセッサ
に対する前記入出力装置からの受信割込みのタイミング
を捕えて前゛°記入出力装置に対する読出しアクセスを
前記マイクロプロセッサの動作とは独立に実施し、前記
読出しバッファにデータを入力したことに依って前記マ
イクロプロセッサに割込みを発生させるための第2のタ
イミングコントロー2とから構成したことを特徴とする
データ処理装置。
[Scope of Claims] A microprocessor equipped with an address bus, a data bus, a control node, and an interrupt function; an input/output device equipped with means for realizing the interrupt function; a command decoder for decoding the above command; a decoder decoder for decoding the device information on the address bus to determine the I10 device address; a read buffer for temporarily holding data to be sent; and a write buffer for temporarily holding data to be sent from the data node to the input/output device. An interrupt controller for controlling the interrupt function is connected to the -f microprocessor, and an interrupt controller is connected to the microprocessor to capture the timing when the microprocessor writes data to the write data (sofa) and performs the input/output operation independently of the microprocessor. The first one for write access to the device.
The timing controller 2 of the microprocessor captures the timing of a reception interrupt from the input/output device to the microprocessor, performs read access to the input/output device independently of the operation of the microprocessor, and stores data in the read buffer. a second timing controller 2 for generating an interrupt in the microprocessor in response to an input of the data processing apparatus.
JP10963682A 1982-06-25 1982-06-25 Data processor Pending JPS58225421A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10963682A JPS58225421A (en) 1982-06-25 1982-06-25 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10963682A JPS58225421A (en) 1982-06-25 1982-06-25 Data processor

Publications (1)

Publication Number Publication Date
JPS58225421A true JPS58225421A (en) 1983-12-27

Family

ID=14515300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10963682A Pending JPS58225421A (en) 1982-06-25 1982-06-25 Data processor

Country Status (1)

Country Link
JP (1) JPS58225421A (en)

Similar Documents

Publication Publication Date Title
JPS63111545A (en) Microprocessor for debug
JP2836081B2 (en) Disk control circuit
JPS58225421A (en) Data processor
JP2808757B2 (en) Microprocessor for debugging
JP2524620B2 (en) Input / output control method
JP2638078B2 (en) Information processing device
JPS6349964A (en) Handshake controller
JPS5938827A (en) Microprocessor ipl system
JPH02263256A (en) Microcomputer and controller
JPS61213958A (en) Data transmission system between cpus
JPS5922145A (en) Interruption control system
JPH08147184A (en) Emulator
JPH01126749A (en) Data control device for peripheral equipment
JPS62190544A (en) Higher link unit for programmable controller
JPH0820934B2 (en) Disk cache control method
JPH05334234A (en) High speed dma transferring device
JPS63155346A (en) Ram check system
JPH023853A (en) Interface method for cpu
JPH0352041A (en) Local memory control circuit
JPS5858632A (en) Controlling method of input/output interface
JPH0365735A (en) Vicarious execution system for diagnosis processing
JPS63191258A (en) Channel device
JPS6349935A (en) Central controller
JPH0652009A (en) In-circuit emulator
JPS6214866B2 (en)