JPH023853A - Interface method for cpu - Google Patents

Interface method for cpu

Info

Publication number
JPH023853A
JPH023853A JP63149092A JP14909288A JPH023853A JP H023853 A JPH023853 A JP H023853A JP 63149092 A JP63149092 A JP 63149092A JP 14909288 A JP14909288 A JP 14909288A JP H023853 A JPH023853 A JP H023853A
Authority
JP
Japan
Prior art keywords
data
cpu
control circuit
read request
request signal
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
JP63149092A
Other languages
Japanese (ja)
Inventor
Kyosuke Hashimoto
恭介 橋本
Makoto Muto
誠 武藤
Masato Miyahara
宮原 真人
Yuusaku Himono
檜物 雄作
Osamu Michihira
修 道平
Yuichi 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.)
Furukawa Electric Co Ltd
Mazda Motor Corp
Original Assignee
Furukawa Electric Co Ltd
Mazda Motor 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 Furukawa Electric Co Ltd, Mazda Motor Corp filed Critical Furukawa Electric Co Ltd
Priority to JP63149092A priority Critical patent/JPH023853A/en
Publication of JPH023853A publication Critical patent/JPH023853A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To permit CPU to write data at its own timing by preventing a control from making the read request of data to CPU while CPU executes the write action of data. CONSTITUTION:The control circuit 2, to which CPU 1 writes data while the control circuit 2 outputs the read request signal of data to CPU 1, cancels the read request 12 signal and re-outputs the read request signal 18 when the writing of data terminates. When the read request signal 29 of data is generated in the control circuit 2 while the CPU 1 writes data, the control circuit 2 outputs the read request signal 22 of data when the writing of data terminates. Even if there is or not the read request from the control circuit to CPU, CPU can write data at its own timing and the processing of CPU can be simplified.

Description

【発明の詳細な説明】 (産業上の利用分野) 第4図は従来のCPUと制御回路との接続を示すブロッ
ク回路図であり、第5図は第4図の各部のタイミングチ
ャートを示す図である。CPtJlと外部との通信を制
御する制御回路2とは読み出し/書き込み信号線(R/
W)3.データの読み出し要求信号線(R−REQ)4
.読み出し/書込みパルス線(RWP)5及び8本のデ
ータ線(D。
[Detailed Description of the Invention] (Industrial Application Field) Fig. 4 is a block circuit diagram showing the connection between a conventional CPU and a control circuit, and Fig. 5 is a diagram showing a timing chart of each part in Fig. 4. It is. The control circuit 2 that controls communication between CPtJl and the outside is a read/write signal line (R/
W)3. Data read request signal line (R-REQ) 4
.. 5 read/write pulse lines (RWP) and 8 data lines (D.

〜D、)6によりで接続されている。今、CPU1は制
御回路2にデータを書き込む時にデータの書き込み状態
であることを示すために読み出し/書き込み信号線3に
第5図(a)のr低」信号27を出力する。この時に制
御回路2からCPUIに対しデータの読み出し要求信号
線4に第5図ら)の「低」出力28を出力し、データの
読み出しを要求する。
~D, )6. Now, when writing data to the control circuit 2, the CPU 1 outputs the "r low" signal 27 shown in FIG. 5(a) to the read/write signal line 3 to indicate that the data is being written. At this time, the control circuit 2 outputs a "low" output 28 (see FIG. 5) to the data read request signal line 4 to the CPUI to request data read.

CPUIは読み出し要求信号線4が「低」レベルになる
と、読み出し/書き込み信号線3の「低」出力を解除し
、第5図(a)の「高」出力29としてデータの読み出
し状態とする。その後、CPU1は第5[ff(e)に
示すデータの読み出し/書き込みのタイミングパルス3
0を読み出し/書き込みパルス線5に出力し、制御回路
2はこのパルス線5に同期してデータ線6に第5図(d
)に示すデータ31を出力する。CPUIはこの出力さ
れたデータ31を読み出し、制御回路2は読み出しが終
了した時点で読み出し要求信号の出力を第5図(ロ)の
「高」レベル32にしデータの読み出し要求がないこと
をCPUIに示す、その後、CPUIは再び制御回路2
ヘデータを書き込むため読み出し/書き込み信号線3の
出力を「低」レベル33にする。
When the read request signal line 4 becomes a "low" level, the CPU releases the "low" output of the read/write signal line 3 and sets the data read state as a "high" output 29 in FIG. 5(a). Thereafter, the CPU 1 uses the data read/write timing pulse 3 shown in the fifth [ff(e)].
0 to the read/write pulse line 5, and the control circuit 2 outputs the signal to the data line 6 in synchronization with this pulse line 5 as shown in FIG.
) is output. The CPU reads this output data 31, and when the read is completed, the control circuit 2 outputs the read request signal to the "high" level 32 in FIG. 5(b) to notify the CPU that there is no data read request. , then the CPU again switches to the control circuit 2.
In order to write data to the memory card, the output of the read/write signal line 3 is set to a "low" level 33.

(発明が解決しようとする課M) しかしながら、従来のCPUのインタフェース方法では
、頻繁にデータの読み出し要求信号が発生されるとCP
Uはデータの書き込みに支障を生じ、CPUのタイミン
グで自由にデータの読み出しあるいは書き込みが出来な
くなるという問題点がある。
(Problem M to be solved by the invention) However, in the conventional CPU interface method, if a data read request signal is frequently generated, the CPU
U causes problems in data writing, and there is a problem in that data cannot be freely read or written at the timing of the CPU.

本発明は、上記事情に鑑みてなされたものであり、CP
Uでの処理を簡単化し、CPUの自由なタイミングでデ
ータの読み出し/書き込みが出来るCPUのインタフェ
ース方法を提供することを目的とする。
The present invention has been made in view of the above circumstances, and is
It is an object of the present invention to provide a CPU interface method that simplifies processing in the U and allows data to be read/written at the CPU's free timing.

(課題を解決するための手段) 上記目的を達成するために、本発明によれば、CPUと
外部との通信を制御する制御回路との間で該制御回路か
ら該CPUヘデータを読み出し、該CPUから該制御回
路ヘデータを書き込むCPUのインタフェース方法にお
いて、前記制御回路が前記CPUにデータの読み出し要
求信号を出力中に前記CPUが前記制御回路にデータの
書き込みを行うと前記制御回路は該読み出し要求信号を
キャンセルし、データの書き込み終了時点で前記読み出
し要求信号を再出力し、前記CPUが前記制御回路にデ
ータの書き込み中に前記制御回路内にデータの読み出し
要求信号が発生すると前記制御回路はデータの書き込み
終了時点でデータの該読み出し要求信号を出力するCP
Uのインタフェース方法が提供される。
(Means for Solving the Problems) In order to achieve the above object, according to the present invention, data is read from the control circuit to the CPU between the CPU and the control circuit that controls communication with the outside, and the data is read out from the control circuit to the CPU. In the CPU interface method for writing data to the control circuit, when the CPU writes data to the control circuit while the control circuit is outputting a data read request signal to the CPU, the control circuit outputs the read request signal. and re-outputs the read request signal at the end of data writing, and when the data read request signal is generated in the control circuit while the CPU is writing data to the control circuit, the control circuit outputs the data. A CP that outputs the data read request signal at the end of writing.
A U interface method is provided.

(作用) 制御回路からCPUヘデータの読み出し要求信号が出力
されていると否とに拘らず、CPUがデータの書き込み
動作を、行っている間は制御回路からCPUヘデータの
読み出し要求はせず、その結果CPUは自らのタイミン
グでデータの書き込みが可能となる。
(Function) Regardless of whether or not a data read request signal is output from the control circuit to the CPU, while the CPU is performing a data write operation, the control circuit does not request the CPU to read data; As a result, the CPU can write data at its own timing.

(実施例) 以下、本発明の実施例を添付図面に基づいて詳細に説明
する。
(Example) Hereinafter, an example of the present invention will be described in detail based on the accompanying drawings.

第1図は本発明のCPtJのインタフェース方法を説明
するためるCPUと制御回路の接続を示すブロック回路
図である。CPUIと制御回路2との接続は第4図と同
様である。まず、制御回路2にデータの読み出し要求信
号線8を介して読み出し要求信号が制御回路2のフリッ
プフロップ7のD端子に入力されると、フリップフロッ
プ7がクロック信号線9のクロック信号に同期してセッ
トされ、制御回路2がCPUIヘデータの読み出し要求
信号線4に第2図(b)の「低」出力12を出力してC
PU1にデータの読み出しを要求する。
FIG. 1 is a block circuit diagram showing the connection between a CPU and a control circuit for explaining the CPtJ interface method of the present invention. The connection between the CPUI and the control circuit 2 is the same as that shown in FIG. First, when a read request signal is input to the control circuit 2 via the data read request signal line 8 to the D terminal of the flip-flop 7 of the control circuit 2, the flip-flop 7 is synchronized with the clock signal of the clock signal line 9. is set, and the control circuit 2 outputs the "low" output 12 shown in FIG. 2(b) to the data read request signal line 4 to the CPUI.
Requests PU1 to read data.

この時に、CPUIは、制御面Wi2にデータを書き込
むためにデータの書き込みの有無を示す読み出し/書き
込み信号線3を第2図(a)の「低」出力13にして、
データの書き込みを示す、この時、制御回路2の7リツ
プフロツク7はリセットされ、制御回路2はデータの読
み出し要求信号線4を第2図(b)の「高」出力14に
し、データの読み出し要求を一時取り止める。
At this time, in order to write data to the control surface Wi2, the CPUI sets the read/write signal line 3, which indicates the presence or absence of data writing, to the "low" output 13 in FIG. 2(a).
Indicating data writing, at this time, the 7-liplock 7 of the control circuit 2 is reset, and the control circuit 2 sets the data read request signal line 4 to the "high" output 14 in FIG. 2(b), requesting the data read. will be temporarily suspended.

CPU1は第2図(、c )に示すデータの読み出し/
書き込みのタイミングパルス15を読み出し/書き込み
パルス線5に出力し、このタイミングパルス15に同期
して書き込むべきデータ16をデータ線6に出力する。
The CPU 1 reads the data shown in Figure 2 (,c).
A write timing pulse 15 is output to the read/write pulse line 5, and data 16 to be written is output to the data line 6 in synchronization with this timing pulse 15.

CPUIは、データの書き込みが終了すると、読み出し
/書き込み信号線3を第2図(a)に示す「高」出力1
7にして制御回路2ヘデータの書き込みがないことを示
す、この時、フリップフロップ7のリセットが解除され
るためにクロック信号に同期してフリップフロップ7の
読み出し要求信号線8は再びセット状態にされる。制御
回路2はデータの読み出し要求信号線4を再び第2図(
b)の「低J出力18にし、cpUlに対してデータの
読み出しを要求する。
When the CPUI finishes writing the data, the read/write signal line 3 is set to the "high" output 1 shown in FIG. 2(a).
7 to indicate that no data is written to the control circuit 2. At this time, the reset of the flip-flop 7 is released, so the read request signal line 8 of the flip-flop 7 is set again in synchronization with the clock signal. Ru. The control circuit 2 connects the data read request signal line 4 again to the line shown in FIG.
b) "Set low J output to 18 and request data read from cpUl.

一方、CPUIは制御回路2にデータを書き込むために
、第3図(a)に示すように、読み出し/書き込み信号
線3を「低」出力19にしてデータの書き込みを行う。
On the other hand, in order to write data to the control circuit 2, the CPUI sets the read/write signal line 3 to the "low" output 19 and writes the data, as shown in FIG. 3(a).

読み出し/書き込み信号線3が「低」レベルの間に制御
回路2に第3図(b)に示すデータの読み出し要求信号
20が発生してもフリップフロップ7はリセットのまま
であるので、制御回路は読み出し要求信号線4を「高」
のままにしておいてデータの読み出し要求が発生してい
ることをCPUIに知らせない。CPUIから制御回路
2へのデータの書き込みが終了し、CPU1が読み出し
/書き込み信号線3を第3図(a)のように「高」出力
21にすると、制御回路2はフリップフロップのリセッ
トを解除しクロック信号に同期して読み出し要求信号線
4を第3図ら)の「低」出力22し、ここではじめてデ
ータの読み出し要求をCPUIに伝える。このように、
CPUIは自らのタイミングでデータの書き込みを行う
ことができる。
Even if the data read request signal 20 shown in FIG. 3(b) is generated in the control circuit 2 while the read/write signal line 3 is at a "low" level, the flip-flop 7 remains reset. sets read request signal line 4 to “high”
This will not notify the CPU that a data read request has occurred. When the writing of data from the CPUI to the control circuit 2 is completed and the CPU 1 sets the read/write signal line 3 to the "high" output 21 as shown in FIG. 3(a), the control circuit 2 releases the reset of the flip-flop. Then, in synchronization with the clock signal, the read request signal line 4 is set to a "low" output 22 (see FIG. 3), and a data read request is transmitted to the CPUI for the first time. in this way,
The CPUI can write data at its own timing.

(発明の効果) 以上説明したように本発明によれば、CPUと外部との
通信を制御する制御回路との間で該制御回路から該CP
Uヘデータを読み出し、該CPUから該制御回路ヘデー
タを書き込むCPUのインタフェース方法において、前
記制御回路が前記CPUにデータの読み出し要求信号を
出力中に前記CPUが前記制御回路にデータの書き込み
を行うと前記制御回路は該読み出し要求信号をキャンセ
ルし、データの書き込み終了時点で前記読み出し要求信
号を再出力し、前記CPUが前記制御回路にデータの書
き込み中に前記制御回路内にデータの読み出し要求信号
が発生すると前記制御回路はデータの書き込み終了時点
でデータの該読み出し要求信号を出力することにより、
制御回路からCPUヘデータの読み出し要求があっても
なくてもCPUは自らのタンミングでデータの書き込み
が可能となり、CPUの処理が簡単化できるという効果
がある゛。
(Effects of the Invention) As explained above, according to the present invention, communication between a CPU and a control circuit that controls communication with the outside is performed from the control circuit to the CPU.
In the CPU interface method of reading data to a U and writing data from the CPU to the control circuit, when the CPU writes data to the control circuit while the control circuit is outputting a data read request signal to the CPU, the CPU writes data to the control circuit. The control circuit cancels the read request signal and re-outputs the read request signal at the end of data writing, and a data read request signal is generated in the control circuit while the CPU is writing data to the control circuit. Then, the control circuit outputs the data read request signal at the end of data writing, thereby
Regardless of whether or not there is a request to read data from the control circuit to the CPU, the CPU can write data by its own timing, which has the effect of simplifying the processing of the CPU.

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

第1図は本発明のCPUのインタフェース方法を説明す
るためのCPUと制御回路の接続を示すブロック回路図
、第2図及び第3図は夫々第1図の各部のタイミングチ
ャート、第4図は従来のCPUのインタフェース方法を
説明するためのCPUと制御回路の接続を示すブロック
図、第5図は第4図の各部のタイミングチャートである
。 1・・・CPU、2・・・制御回路、3・・・読み出し
/書き込み信号線、4・・・データの読み出し要求信号
線、5・・・読み出し/書き込みパルス線、6・・・デ
ータ線、7・・・フリップフロップ、8・・・データの
読み出し要求信号線、9・・・クロック信号線。 第1図 第2図
FIG. 1 is a block circuit diagram showing the connection between the CPU and the control circuit for explaining the CPU interface method of the present invention, FIGS. 2 and 3 are timing charts of each part of FIG. 1, and FIG. FIG. 5 is a block diagram showing the connection between a CPU and a control circuit for explaining a conventional CPU interface method, and FIG. 5 is a timing chart of each part in FIG. DESCRIPTION OF SYMBOLS 1... CPU, 2... Control circuit, 3... Read/write signal line, 4... Data read request signal line, 5... Read/write pulse line, 6... Data line , 7...Flip-flop, 8...Data read request signal line, 9...Clock signal line. Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] CPUと外部との通信を制御する制御回路との間で該制
御回路から該CPUヘデータを読み出し、該CPUから
該制御回路ヘデータを書き込むCPUのインタフェース
方法において、前記制御回路が前記CPUにデータの読
み出し要求信号を出力中に前記CPUが前記制御回路に
データの書き込みを行うと前記制御回路は該読み出し要
求信号をキャンセルし、データの書き込み終了時点で前
記読み出し要求信号を再出力し、前記CPUが前記制御
回路にデータの書き込み中に前記制御回路内にデータの
読み出し要求信号が発生すると前記制御回路はデータの
書き込み終了時点でデータの該読み出し要求信号を出力
することを特徴とするCPCのインタフェース方法。
A CPU interface method in which data is read from the control circuit to the CPU and data is written from the CPU to the control circuit between the CPU and a control circuit that controls communication with the outside, wherein the control circuit reads data to the CPU. When the CPU writes data to the control circuit while outputting a request signal, the control circuit cancels the read request signal, re-outputs the read request signal at the end of data writing, and the CPU writes data to the control circuit. A CPC interface method, characterized in that when a data read request signal is generated in the control circuit while data is being written to the control circuit, the control circuit outputs the data read request signal at the end of data writing.
JP63149092A 1988-06-16 1988-06-16 Interface method for cpu Pending JPH023853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63149092A JPH023853A (en) 1988-06-16 1988-06-16 Interface method for cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63149092A JPH023853A (en) 1988-06-16 1988-06-16 Interface method for cpu

Publications (1)

Publication Number Publication Date
JPH023853A true JPH023853A (en) 1990-01-09

Family

ID=15467524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63149092A Pending JPH023853A (en) 1988-06-16 1988-06-16 Interface method for cpu

Country Status (1)

Country Link
JP (1) JPH023853A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8827579B2 (en) 2010-08-31 2014-09-09 Seiko Epson Corporation Grounding structure and recording apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8827579B2 (en) 2010-08-31 2014-09-09 Seiko Epson Corporation Grounding structure and recording apparatus

Similar Documents

Publication Publication Date Title
JPH023853A (en) Interface method for cpu
JPH04323755A (en) Dma device
JPS5833764A (en) Time monitor system
JP2968636B2 (en) Microcomputer
JP3028998B2 (en) DMA transfer circuit
JPS6049465A (en) Data transfer method between microcomputers
JP2884620B2 (en) Digital image processing device
JPS6061859A (en) Data communication system of microcomputer
JPS61156089A (en) Display unit
JPH0535658A (en) Information processor
JPS62256160A (en) Simultaneous access preventing system for interprocessor register
JPS58169614A (en) Bus control system
JPH01109425A (en) Fifo memory
JPH01287767A (en) Control circuit for ram
JPH0496826A (en) Interrupt controller
JPS59149538A (en) Speed converting circuit
JPH01114963A (en) Input/output circuit
JPS62147557A (en) Data transfer system between memories
JPS61127025A (en) Optical disk controller
JPS646495B2 (en)
JPH02275526A (en) Rapid data transfer circuit
JPS6057456A (en) Memory access device of microprocessor
JPH0573484A (en) Information processing system
JPH0581445A (en) Microcomputer lsi
JPH08287001A (en) Display circuit