JPS61141064A - Electronic circuit - Google Patents

Electronic circuit

Info

Publication number
JPS61141064A
JPS61141064A JP26289084A JP26289084A JPS61141064A JP S61141064 A JPS61141064 A JP S61141064A JP 26289084 A JP26289084 A JP 26289084A JP 26289084 A JP26289084 A JP 26289084A JP S61141064 A JPS61141064 A JP S61141064A
Authority
JP
Japan
Prior art keywords
microprocessor
output
wait
circuit
input
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
JP26289084A
Other languages
Japanese (ja)
Inventor
Isao Ohira
勲 大平
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP26289084A priority Critical patent/JPS61141064A/en
Publication of JPS61141064A publication Critical patent/JPS61141064A/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/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/4234Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a memory bus
    • G06F13/4243Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being a memory bus with synchronous protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To set the start timing of data transfer in terms of a program by installing a data transfer standby means between a memory means and an arithmetic control means. CONSTITUTION:WNDATA from a microprocessor is given to a select signal generator circuit 9 to generate select signals SELSG1-SELSGn, which are input ted to a data selector part 8. Then, when the microprocessor makes a memory read start signal RD active, a weight signal generator circuit 6 makes a WAIT12 active and informs the microprocessor that it should make a WAIT12 active and weight it. A delay circuit 7 inputs the WAIT12 and CLOCK to gener ate timings Z2-Zm delayed by one clock from the WAIT12. According to the logical value of the signal inputted to select input terminals S1-Sn, the data selector 8 selects any of signals 0, Z2-Zm inputted to input terminals D1-Dm to output it to the weight signal generator circuit 6, and resets said circuit.

Description

【発明の詳細な説明】 し技術分野1 本発明はマイクロプロセッサ等の演算制御手段を有する
電子回路、特にそれらのデータの入出力の同期を行う電
子回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field 1 The present invention relates to an electronic circuit having an arithmetic control means such as a microprocessor, and particularly to an electronic circuit that synchronizes data input and output thereof.

L従来技術j 近年、マイクロプロセサ等の演算制御装置の処理速度が
向上してきたため、@翼制御装置がメモリ又は入出力ポ
ートからプログラムやデータを読出す際に、マイクロプ
ロセサのマシンサイクルにデータ転送との同期を取る為
のウェイトサイクルの挿入を必要とする場合がある。
L Prior Art j In recent years, the processing speed of arithmetic control devices such as microprocessors has improved, so when @wing control devices read programs and data from memory or input/output ports, data transfer and data transfer are performed in the machine cycle of the microprocessor. In some cases, it may be necessary to insert a wait cycle to achieve synchronization.

特にマイクロプロセサの読出し動作においては、一般的
に一番速いアクセスタイムが要求されるのはメモリから
プログラムを読出す場合であるので、従来技術ではマイ
クロプロセサの読出し動作詩に、1ウエイトサイクルを
マイクロプロセサに挿入する回路が使用されている。
Particularly in the read operation of a microprocessor, the fastest access time is generally required when reading a program from memory. A circuit inserted into the processor is used.

また、入出力ポートは一般的にアクセスタイムが遅いた
め、マイクロプロセサが入出力ポートをアクセスする時
は、自動的にマイクロプロセサi身か1ウエイトサイク
ルを挿入するというものもある。
Furthermore, since input/output ports generally have slow access times, when a microprocessor accesses an input/output port, one wait cycle is automatically inserted into the microprocessor.

しかし、昨今のように同じ型式名のマイクロプロセサや
メモリでも、低速版と高速版が存在すると次のような問
題が生じる0例えば初期のうちは低速版のマイクロプロ
セサに低速版のメモリを接続すると、マイクロプロセサ
がメモリから読出し動作を叉行する時でもウェイトサイ
クルが必要としない。ところが、高速版のマイクロプロ
セサに置き換えると共にシステムクロックの周波数を高
くするというような仕様変更が生ずると、プログラム読
出し時には2ウエイトサイクルが、プログラム読出し以
外のメモリ読出し時には1ウエイトサイクルが必要とな
る場合がある。又、逆に低速版のメモリを使っていて、
初期のうちはプログラム読出し時には2ウエイトサイク
ル、プログラム読出し以外のメモリ読出し時には1ウエ
イトサイクル挿入していたのが、高速版のメモリに置き
換えた事によって、プログラム読出し時に1ウエイトサ
イクル挿入するだけで読出し動作が行える場合でも、従
来技術ではその都度ウェイトサイクル挿入回路を設計し
直すか、不要なウェイトサイクルを挿入したままマイク
ロプロセサを使用しなければならなかった。
However, these days, when there are low-speed and high-speed versions of microprocessors and memory with the same model name, the following problems occur. For example, in the early days, if you connect a low-speed version of memory to a low-speed microprocessor, , no wait cycles are required even when the microprocessor performs read operations from memory. However, when specifications change, such as replacing a high-speed microprocessor with a higher system clock frequency, two wait cycles may be required when reading a program, and one wait cycle when reading memory other than program reading. be. Also, on the contrary, it uses a slower version of memory,
Initially, 2 wait cycles were inserted when reading a program, and 1 wait cycle was inserted when reading memory other than program reading, but by replacing it with a high-speed version of memory, reading can be performed by inserting only 1 wait cycle when reading a program. Even if this could be done, in the prior art, the wait cycle insertion circuit had to be redesigned each time, or the microprocessor had to be used with unnecessary wait cycles inserted.

前者はコストの面から見て不経済であるし、後者はマイ
クロプロセサの有効利用の面から見て得策ではない。
The former is uneconomical in terms of cost, and the latter is not a good idea in terms of effective use of the microprocessor.

上記の事はマイクロプロセサに限らずいわゆるミニコン
ピユータにおいても、使用素子をTTLから0MO3に
又はTTLからシ言ットキーTTLに変更したような場
合でも同様′に生ずる。
The above-mentioned problem occurs not only in microprocessors but also in so-called minicomputers, even when the used elements are changed from TTL to 0MO3 or from TTL to touch key TTL.

し目的」 本発明は以上の点に鑑みなされたもので、その目的は記
憶手段と、演箕制御手段又は入出力制御手段との間のデ
ータ転送の開始タイミングをプログラム的に設定出来る
電子回路を提供する所にある。
The present invention has been made in view of the above points, and its purpose is to provide an electronic circuit that can programmatically set the start timing of data transfer between a storage means and a playlist control means or an input/output control means. It is there to provide.

し実施例」 以下図面に従って本発明を適用した実施例について説明
する。
Embodiments Embodiments to which the present invention is applied will be described below with reference to the drawings.

第1図は実施例の回路ブ′J7ツク図である0図中、6
はウェイト信号発生回路、7は遅延回路、8はデータセ
レクタ、9はセレクト信号発生回路である。又、ROは
マイクロプロセサのメモリ読出し開始信号、CLOCK
はマイクロプロセサのシステムクロック、WNDATA
はマイクロプロセサのデータバス、アドレスバス及びそ
の他の制御信号(例えば後述するMEにREQ 、 l
0RQ等)等゛の総称である。
Figure 1 is a circuit block diagram of the embodiment.
7 is a wait signal generation circuit, 7 is a delay circuit, 8 is a data selector, and 9 is a select signal generation circuit. Also, RO is the microprocessor memory read start signal, CLOCK.
is the microprocessor system clock, WNDATA
are the microprocessor's data bus, address bus, and other control signals (e.g., REQ, l
0RQ, etc.), etc.).

実施例の動作を説明する。先ず、マイクロプロセサは過
当なウェイト時間を設定する為に適当なWNDATAを
設定して出力する。セレクト信号発生回路9はWNDA
TAの論理値に応じてデータセレクタ部8へ入力するセ
レクト信号5ELSG+ ” 5ELSGnを生成する
0次に、マイクロプロセサがRDI activeにす
るとウェイト信号発生回路6はマイクロプロセサにWA
ITI 2をactiveにしてウェイトすべき事を知
らせる。 WAITI2がactiveになると遅延回
路7が動作を開始する。遅延回路7はWAITI 2及
びCLOCKを入力して、WAITI 2から各lクロ
ックすつ遅延したタイミング22〜Zmを生成する。
The operation of the embodiment will be explained. First, the microprocessor sets and outputs an appropriate WNDATA to set an excessive wait time. The select signal generation circuit 9 is WNDA
0 Next, when the microprocessor makes RDI active, the wait signal generation circuit 6 causes the microprocessor to select WA.
Make ITI 2 active and notify that it should wait. When WAITI2 becomes active, the delay circuit 7 starts operating. The delay circuit 7 inputs WAITI 2 and CLOCK and generates timings 22 to Zm each delayed by l clocks from WAITI 2.

−万、データセレクタ8はセレクト入力端子51〜Sn
に入力する信号の論理値に従って入力端子り、、D2〜
D11に入力する信号0 、Z2〜Zm  (遅延回路
出力)のいずれか1つを選んでいる。従って、その山刃
信号RES 11は選ばれた所定の時間後にウェイト信
号発生回路6をリセットする。ウェイト信号発生回路6
がリセットすると、信号WAITI 2が1nacti
veになる。 IIIAITI 2が1nactive
になればマイクロプロセサはRDを1nactiveに
する。遅延回路7はRDが1nactiveになったこ
とでマイクロプロセサが読み出し動作を終えたことを知
り、自身をリセットする。
-10,000, data selector 8 is select input terminal 51~Sn
According to the logic value of the signal input to the input terminal, ,D2~
One of the signals 0 and Z2 to Zm (delay circuit output) input to D11 is selected. Therefore, the edge signal RES 11 resets the wait signal generation circuit 6 after a selected predetermined time. Wait signal generation circuit 6
When reset, signal WAITI 2 becomes 1nacti
Become ve. IIIAITI 2 is 1nactive
If so, the microprocessor sets RD to 1nactive. The delay circuit 7 knows that the microprocessor has finished the read operation when RD becomes 1nactive, and resets itself.

このように、マイクロプロセサのプログラム出力可能な
WNDATAにより任意のウェイトサイクルを設定出来
る。
In this way, any wait cycle can be set using WNDATA, which can be programmed and output from the microprocessor.

第2図(a)は−例として米国Zi Log社のマイク
ロプロセサZ80を用いたシステムに前述の実施例を適
用した場合の回路図である。又、第3図(a)は前記Z
80マイクロプロセサの信号線端子を、第3図(b)は
そのバスタミングを示している。
FIG. 2(a) is a circuit diagram in which the above-described embodiment is applied to a system using, for example, a microprocessor Z80 manufactured by Zi Log, Inc. of the United States. Moreover, FIG. 3(a) shows the above Z
FIG. 3(b) shows the bus timing of the signal line terminals of the 80 microprocessor.

周知のように280マイクロプロセサシステムでは、メ
モリや入出力装置がデータ転送の準備ができていない事
をマイクロプロセサへ知らせ、その間動作を待たせる為
のWAI?サイクルがある。即ち、メモリに対する読出
し/書込みの為の制御信号RD/(以下、信号名の後の
/は負論理を示す)又はWR/若しくは入出力装置に対
するl0RQ/に応じて−AIT/が返されると、za
o内ではt1→t2 ′。
As is well known, in the 280 microprocessor system, the WAI? There is a cycle. That is, when -AIT/ is returned in response to the control signal RD/ for reading/writing to the memory (hereinafter, / after the signal name indicates negative logic) or WR/ or l0RQ/ for the input/output device, za
Within o, t1→t2'.

→’T 3のタイミングがt1→t2→twに変化して
内部のステートを一時待たせるのである。
→' The timing of T 3 changes to t1 → t2 → tw, causing the internal state to wait temporarily.

!$2図(a)に示した実施例では、Z80からRD/
を受けると、信号5ELSG+及び5ELSG2の論理
値に応じてフリップ/フロップ(以下FFという)lの
出力WAIT/ 12が可変となるようになっている。
! $2 In the embodiment shown in Figure (a), from Z80 to RD/
When receiving the signal, the output WAIT/12 of the flip/flop (hereinafter referred to as FF) becomes variable in accordance with the logical values of the signals 5ELSG+ and 5ELSG2.

先ず、!$2図(a)の論理素子について説明する。1
〜4はエツジトリガーのDタイプFFであって、各FF
内部のDはデータ入力端子、GKはクロック入力、Qは
出力を表す、 PR/はプリセット入力端子で論理Oの
時activeとなる′、5はデータセレクタであって
、セレクト入力sl、s2の論理値に従って第4図(a
)の如く入力端子A、B。
First of all! $2 The logic element in Figure (a) will be explained. 1
-4 are Edge Trigger D type FFs, each FF
Inside, D is a data input terminal, GK is a clock input, and Q is an output. PR/ is a preset input terminal and becomes active when the logic is O'. 5 is a data selector, and the logic of select inputs sl and s2 is Figure 4 (a
), input terminals A and B.

C,Dのいずれかを選択して出力端子Yに出力する。Either C or D is selected and output to output terminal Y.

信号5ELSG+及び5ELSG2はZ80マイクロプ
ロセサのラッチ付き出力ポート又は後述するように第5
図のセレクト信号発生回路9からの信号であり、プログ
ラム的に信号5ELSG 1及び5ELSG2の値を変
化させる事ができる。
Signals 5ELSG+ and 5ELSG2 are connected to the latched output ports of the Z80 microprocessor or the fifth
This is a signal from the select signal generation circuit 9 shown in the figure, and the values of the signals 5ELSG1 and 5ELSG2 can be changed programmatically.

破線6で示されるのは第1図の6に対応するWAIT/
信号発生部、破線7で示されるのは同じく遅延回路部、
破線8はデータセレクタ部である。
The broken line 6 indicates WAIT/corresponding to 6 in FIG.
The signal generation section, also indicated by the broken line 7, is the delay circuit section.
A broken line 8 is a data selector section.

第2図(a)の回路によると’dAIT/ 12はRD
/の論理値が1−0になった時にactiveになり、
その間隔はFFIのPR/入力端子にOが入力されるま
でである。FF1のPR/入力はデータセレクタ5の出
力端子Yであり信号5ELSG 1及び5ELSG2の
値に応じてYには0.FF2出力、FF3出力。
According to the circuit in Figure 2(a), 'dAIT/12 is RD
It becomes active when the logical value of / becomes 1-0,
The interval is until O is input to the PR/input terminal of FFI. The PR/input of FF1 is the output terminal Y of the data selector 5, and Y has 0. FF2 output, FF3 output.

FF4出力のいずれかが出力される。第2図(a)から
も容易に分るようにFFIの出力は順にFF2→FF3
→FF4へと入力されるのでFF2〜FF3の出力は各
々I CLDGKタイム遅れている。従って信号5EL
SG、及び5ELSG2の値に応じてWAIT/の間隔
は0.1,2,3CLOCKタイムとなる。
One of the FF4 outputs is output. As can be easily seen from Figure 2 (a), the output of the FFI is sequentially FF2→FF3.
→Since it is input to FF4, the outputs of FF2 to FF3 are each delayed by ICLDGK time. Therefore signal 5EL
The WAIT/ interval is 0.1, 2, or 3 CLOCK times depending on the values of SG and 5ELSG2.

インへ−夕10の役目はRD/が0−1になった時にF
F2〜FF3をリセットする為である。
In - Yu 10's role is to F when RD/ becomes 0-1.
This is to reset F2 to FF3.

第2図(b)は信号5ELSGI及び5ELSG2が一
例として両者論理値“1″の時にWAIT/ 12が3
 CLOCKタイム間activeになる様子を示して
いる。データセレクタ5は入力端子りの信号、即ちFF
4の出力をセレクトしている。つまり、WAIT/ 1
2はFF4がリセットするまテactiveである。
In FIG. 2(b), as an example, when the signals 5ELSGI and 5ELSG2 are both logic values "1", WAIT/12 is 3.
It shows how it becomes active during the CLOCK time. The data selector 5 receives the signal from the input terminal, that is, the FF
4 output is selected. In other words, WAIT/1
2 is active until FF4 is reset.

第2図(b)のタイミングチャートを参照しながら説明
する。RD/はt1サイクルの立ち下がりから少し遅れ
て論理゛0′′となるのでFFIの出力はt2サイクル
の立ち上がりで論理″″0′”となる、従って、WAI
T/ l 2はt2サイクルの立上がりで論理°°0”
となる。
This will be explained with reference to the timing chart of FIG. 2(b). Since RD/ becomes logic ``0'' with a little delay from the falling edge of t1 cycle, the output of FFI becomes logic ``0'' at the rising edge of t2 cycle. Therefore, WAI
T/l 2 is logic °°0” at the rising edge of t2 cycle
becomes.

マイクロプロセサZ80では、t2サイクルの立下りで
WAIT/ l 2が論理a+ 07#である事を知る
と次のサイクルはウェイトサイクルt111となる。
When microprocessor Z80 learns that WAIT/l 2 is logic a+07# at the falling edge of cycle t2, the next cycle becomes wait cycle t111.

次に、ウェイトサイクルtw1の立上りでFFIの出力
はFF2ヘシフトする。ウェイトサイクルtWlの立下
りでもWAIT/ l 2が論理″0°′である為に2
80の次のサイクルもウェイトサイクルtw2となる0
次に、ウェイトサイクルtl12の立上りでFF2の出
力はFF3にシフトする。ウェイトサイクルt112の
立下りでも%IAI?/ 12が論理“0″であるため
、次のサイクルもウェイトサイクルtl13となる0次
に、ウェイトサイクルtl13の立上りでFF3の出力
はFF4ヘシフトする。信号5ELSG、及び5ELS
G2は論理−1′”のままなので、データセレクタ5の
出力RES l lはFF4の出力である。従って、 
FF4の出力が論理” o ”になるとRES l 1
によりFFIはリセットされて出力は論理″I ITに
なりWAIT/ l 2は論理″′l゛′になる。ウェ
イト、サイクルLj13の立下りでは、WAI↑/12
は論理“1 ”であるから1次のサイクルはt3サイク
ルとなる。t3サイクルの立下りから少し遅れてZ80
がRD/を論理” l ”にすると、反転回路lOの出
力は論理” o ”となりFF2 、3 、4のプリセ
ット入力端子PR/も論理゛°O′′となり、第2図(
b)のタイミングチャートに示すようにFF2 、 F
F3 。
Next, at the rise of wait cycle tw1, the output of FFI is shifted to FF2. Even at the falling edge of wait cycle tWl, WAIT/l2 is at logic "0°", so 2
The next cycle after 80 is also a wait cycle tw2.0
Next, at the rise of wait cycle tl12, the output of FF2 is shifted to FF3. %IAI even at the falling edge of wait cycle t112? Since /12 is logic "0", the next cycle will also be wait cycle tl13. Next, at the rise of wait cycle tl13, the output of FF3 is shifted to FF4. Signals 5ELSG and 5ELS
Since G2 remains at logic -1''', the output RES l l of the data selector 5 is the output of FF4. Therefore,
When the output of FF4 becomes logic “o”, RES l 1
This resets the FFI so that the output becomes logic "IIT" and WAIT/l2 becomes logic "IIT". At the falling edge of wait cycle Lj13, WAI↑/12
Since the logic is "1", the primary cycle is the t3 cycle. Z80 after a little delay from the falling edge of t3 cycle
When RD/ becomes logic "l", the output of inverting circuit lO becomes logic "o", and the preset input terminals PR/ of FF2, 3, 4 also become logic "O'', as shown in FIG.
As shown in the timing chart of b), FF2, F
F3.

FF4は論理” 1 ”となる。FF4 becomes logic "1".

以上のように、Z80システムに第2図(a)の回路を
用いるとZ80のラッチ付き出力信号5ELSG+及び
5ELSGzを論理−1”ならば3ウエイトサイクルが
挿入される。
As described above, when the circuit of FIG. 2(a) is used in the Z80 system, three wait cycles are inserted if the Z80's latched output signals 5ELSG+ and 5ELSGz are at logic -1''.

同様に、ラッチ付S出力信号5ELSG+及び5ELS
G2を論理″0” 、“1′°にすれば2ウエイトサイ
クル、論理“1″、“O”にすれば、1ウエイトサイク
ル、論理“0”、“0′′にすればウェイトサイクル無
しとなる。
Similarly, latched S output signals 5ELSG+ and 5ELS
Setting G2 to logic "0" or "1'°" means 2 wait cycles, setting it to logic "1" or "O" means 1 wait cycle, and setting it to logic "0" or "0'' means no wait cycle. Become.

以上説明したように、第2図(a)の回路を用いれば、
Z80の読出し時に、Oウェイトサイクルから3ウエイ
トサイクルまでの挿入をプログラム的に選択できる。
As explained above, if the circuit of FIG. 2(a) is used,
When reading Z80, insertion of O wait cycles to 3 wait cycles can be selected programmatically.

第2図(&)において、読出し開始信号RD/を書込み
開始信号WD/又はプログラム読出し信号Ml (第3
図(a))に置き換えれば、プログラム読出し時も、O
ウェイトサイクルから3ウエイトサイクルの挿入をプロ
グラムにより選択できるようになる。
In FIG. 2 (&), the read start signal RD/ is applied to the write start signal WD/or the program read signal Ml (third
If you replace it with figure (a)), even when reading a program, O
Insertion of 3 wait cycles can now be selected from the wait cycles by program.

又、第2図(a)の回路は5ELSG+、 5ELSG
2を直接Z80から入力するようにしていたが、第5図
のセレクト信号発生回路9からの5ELSGI、5EL
SG2を入力するようにすると、ウェイト信号の応用範
囲が広範になる。そこで、以下にセレクト信号発生回路
9について説明する。
Also, the circuit in Fig. 2(a) is 5ELSG+, 5ELSG
2 was input directly from the Z80, but 5ELSGI and 5EL from the select signal generation circuit 9 in FIG.
If SG2 is input, the application range of the weight signal will be widened. Therefore, the select signal generation circuit 9 will be explained below.

第5図は第1図の実施例を280システムに組み込んだ
時のセレクト信号発生回路9の一例のブロック図である
0図中の入力信号はPORTを除いて280マイクロプ
ロセサの制御信号やバス信号である(883図(a)参
照)0図中、DCOD20 。
FIG. 5 is a block diagram of an example of the select signal generation circuit 9 when the embodiment shown in FIG. 1 is incorporated into a 280 system. Input signals in FIG. (See Figure 883(a)) In Figure 0, DCOD20.

21はアドレスデコード回路であり、アドレスバスA1
5〜AOがそれぞれのアドレスデコード回路で規定され
る特定のアドレス範囲にあるか否かを判定しl又はOを
出力する。即ち、DCOD20は主記憶メモリの特定の
アドレス範囲に関して判断。
21 is an address decoding circuit, and address bus A1
It is determined whether or not 5 to AO are within a specific address range defined by each address decoding circuit, and 1 or 0 is output. That is, the DCOD 20 makes a determination regarding a specific address range of the main memory.

し、000口21は各、■10ポートのポートアドレス
の範囲に関して判断する。LAT 22 、23で示さ
れるものはラッチ回路であり、ウェイトさせる時間はL
AT22.23にラッチされるデータバスD7〜Doの
論理値で決定される。 FORT信号は入出力の各ボー
トのデータ転送速度の違いに応じて設定されるWAIT
/ l 2の遅延量を決定する信号で、1例として米国
インテル社製の8255のポート出力信号が考えられる
。 TRB 29 、30 、31は周知のトライステ
ート八ツファ(Tri 5tate Buffer)で
、その制御信号及び入力に応じて出力が0.1又は高イ
ンピーダンスの状態に変化する。
However, each of the 000 ports 21 determines the range of port addresses of the 10 ports. LAT 22 and 23 are latch circuits, and the wait time is L
It is determined by the logical values of data buses D7-Do latched by AT22.23. The FORT signal is a WAIT signal that is set according to the difference in data transfer speed of each input/output port.
/ l 2 A port output signal of 8255 manufactured by Intel Corporation in the United States can be considered as an example. TRB 29, 30, and 31 are well-known tri-state buffers whose outputs change to 0.1 or high impedance depending on their control signals and inputs.

各TRBの出力について順に説明する。The output of each TRB will be explained in turn.

第5図において、プログラム読出し時にはDCOD20
とMlとの論理積(ゲート26)によ゛す、LAT22
の内容がTRB29よりセレクト信号5ELSGl” 
5ELSGnとして第2図(a)のデータセレクタ8の
セレクタ入力に出力される。
In Figure 5, when reading the program, DCOD20
and Ml (gate 26), LAT22
The content of is the select signal 5ELSGl from TRB29.
5ELSGn is outputted to the selector input of the data selector 8 in FIG. 2(a).

プログラム読出し時以外のメモリ読み出しの時には、M
EMREQとMlの反転信号の論理積出力(ゲ−)25
)とDCOD20の出力との論理積(ゲート27)によ
り、LAT23の内容がTRB 30よりセレクト信号
5ELSG+ 〜5ELSGnとして、第2図(a)の
データセレクタ8のセレクト入力に出力される。
When reading memory other than when reading a program, M
AND output (gate) of inverted signals of EMREQ and Ml 25
) and the output of the DCOD 20 (gate 27), the contents of the LAT 23 are output from the TRB 30 as select signals 5ELSG+ to 5ELSGn to the select input of the data selector 8 in FIG. 2(a).

入出力ボートからの読出し時には、入出力ボートリクエ
スト信号l0RQとDCOD21の出力との論理a(ゲ
ート28)により、第5図には不図示の回路(例えば前
述の8255)から送られてくる信号PORTの内容が
TRB 31よりセレクト信号5ELSG+〜5ELS
Goとしてデータセレクタ8のセレクト入力に出力され
る。
When reading from the input/output port, the logic a (gate 28) of the input/output boat request signal l0RQ and the output of DCOD21 causes the signal PORT sent from a circuit not shown in FIG. The contents of TRB 31 select signal 5ELSG+~5ELS
It is output as Go to the select input of the data selector 8.

以上の説明かられかるように、第5図の回路を使えば、
プログラム読出し時、プログラム読出し時以外のメモリ
読出し時、入出力ポート読み出し時の各々について独立
に、しかもそれぞれについて特定のアドレス範囲のとき
だけ、第2図(a)のデータセレクター8のセレクト入
力にセレクト信号sgt、sat ” 5ELSGnを
出力できる。
As you can see from the above explanation, if you use the circuit shown in Figure 5,
When reading a program, when reading a memory other than when reading a program, and when reading an input/output port, the selection is made independently to the select input of the data selector 8 in FIG. 2(a), and only in a specific address range for each. Signals sgt, sat''5ELSGn can be output.

こうして、Z80マイクロプロセサに限らす、ウェイト
サイクルを持つマイクロプロセサシステムに第1図の実
施例のような信号発生回路により、任意の長さのウェイ
トサイクルをプログラム的に挿入出来る。
In this way, a wait cycle of any length can be programmatically inserted into a microprocessor system having a wait cycle, limited to the Z80 microprocessor, by using a signal generating circuit such as the embodiment shown in FIG.

又、本実施例によればプログラム読出し時、プログラム
読み出し時以外のメモリ読出し時、入出力ボート読出し
時において、しかもそれぞれについてアドレスを特定の
範囲に限定して、各読出し時のウェイトサイクル数をプ
ログラムによって可変に設定できる。
Further, according to this embodiment, when reading a program, when reading a memory other than when reading a program, and when reading an input/output board, the number of wait cycles for each read is programmed by limiting the address to a specific range for each. It can be set variably by

従って、アクセスタイムの異なるメモリを混在させたり
、アクセスタイムのまちまちな入出力ボートを混在させ
て、マイクロプロセサに接続した場合でもマイクロプロ
セサの効率を落とすことなく簡単にシステムの運用が図
れ、しかも将来、仕様変更が生じてメモリのアクセスタ
イムに変更か生じたり、マイクロプロセサを高速版のも
のに換え、システムクロックも高くなったような場合に
もプログラムによって柔軟に対処できる。
Therefore, even if you mix memories with different access times or mix input/output ports with different access times and connect them to a microprocessor, you can easily operate the system without reducing the efficiency of the microprocessor. Even if the memory access time changes due to a change in the specifications, or if the microprocessor is replaced with a faster version and the system clock becomes higher, the program can flexibly handle the situation.

E効果」 以上説明したように本発明の電子回路によれば、データ
転送の開始タイミングをプログラム的にいろいろと可変
出来る。
Effect E" As explained above, according to the electronic circuit of the present invention, the start timing of data transfer can be varied in various ways programmatically.

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

第1図は本発明に係る実施例のブロック図、第2図(a
)は第1r1!Jの実施例の一部詳細図、第2図(b)
は第2図(a)の実施例のタイミングチャート、 第3図(a)は実施例の一部に使用されるマイクロプロ
セサの入出力信号を表した図。 第3図(b)は第3図(&)のマイクロプロセサのパス
タイミング図。 第4図(IiL) 、 (b)はデータセレクタ5の真
理値を表す図、 第5図はセレクト信号発生回路9の詳細回路図である。 図中、1,2,3.4・・・FF’、5・・・データセ
レクタ、6・・・ウェイト信号発生回路、7・・・遅延
回路、8・・・データセレクタ部、9・・・セレクト信
号発生回路、20.21・・・アドレスデコード回路C
DC0D) 、22 、23・・・ラッチ回路(LAT
)、29.30.31・・・トライステートバッファ(
TRB’)である・ 第2図 (b) 第3図 (a)。 中5V   GND
FIG. 1 is a block diagram of an embodiment according to the present invention, and FIG. 2 (a
) is the 1st r1! Partial detail diagram of the embodiment of J, FIG. 2(b)
2(a) is a timing chart of the embodiment of FIG. 2(a), and FIG. 3(a) is a diagram showing input/output signals of a microprocessor used in a part of the embodiment. FIG. 3(b) is a path timing diagram of the microprocessor of FIG. 3(&). 4 (IiL) and (b) are diagrams showing the truth values of the data selector 5, and FIG. 5 is a detailed circuit diagram of the select signal generation circuit 9. In the figure, 1, 2, 3.4... FF', 5... data selector, 6... wait signal generation circuit, 7... delay circuit, 8... data selector section, 9...・Select signal generation circuit, 20.21...address decoding circuit C
DC0D), 22, 23...Latch circuit (LAT
), 29.30.31...tristate buffer (
TRB') Figure 2 (b) Figure 3 (a). Medium 5V GND

Claims (2)

【特許請求の範囲】[Claims] (1)論理演算制御を行う演算制御手段と、データ又は
プログラムを記憶する記憶手段と、該記憶手段と前記演
算制御手段との間のデータ転送の開始タイミングをプロ
グラム的に設定する第1のデータ転送待機手段とを有す
る電子回路。
(1) Arithmetic control means that performs logical operation control, storage means that stores data or programs, and first data that programmatically sets the start timing of data transfer between the storage means and the arithmetic control means. An electronic circuit having transfer standby means.
(2)更に入出力制御手段と第2のデータ転送待機手段
とを有し、該第2のデータ転送待機手段は記憶手段と前
記入出力制御手段との間のデータ転送の開始タイミング
をプログラム的に設定する事を特徴とする特許請求の範
囲第1項記載の電子回路。
(2) It further includes an input/output control means and a second data transfer standby means, and the second data transfer standby means programmatically controls the start timing of data transfer between the storage means and the input/output control means. An electronic circuit according to claim 1, characterized in that the electronic circuit is set to .
JP26289084A 1984-12-14 1984-12-14 Electronic circuit Pending JPS61141064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26289084A JPS61141064A (en) 1984-12-14 1984-12-14 Electronic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26289084A JPS61141064A (en) 1984-12-14 1984-12-14 Electronic circuit

Publications (1)

Publication Number Publication Date
JPS61141064A true JPS61141064A (en) 1986-06-28

Family

ID=17382037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26289084A Pending JPS61141064A (en) 1984-12-14 1984-12-14 Electronic circuit

Country Status (1)

Country Link
JP (1) JPS61141064A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6347854A (en) * 1986-08-15 1988-02-29 Nec Corp Access control circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6347854A (en) * 1986-08-15 1988-02-29 Nec Corp Access control circuit
JPH0552977B2 (en) * 1986-08-15 1993-08-06 Nippon Electric Co

Similar Documents

Publication Publication Date Title
US5701417A (en) Method and apparatus for providing initial instructions through a communications interface in a multiple computer system
US6745369B1 (en) Bus architecture for system on a chip
JP2711035B2 (en) Multi-clock synchronous processor unit
US4870562A (en) Microcomputer capable of accessing internal memory at a desired variable access time
US4541045A (en) Microprocessor architecture employing efficient operand and instruction addressing
EP0355463B1 (en) Timer channel with multiple timer reference features
EP0355363B1 (en) Integrated circuit timer with multiple channels and dedicated service processor
JPS5924462B2 (en) Shared memory access control method
JPH0833875B2 (en) Bus arbitration system
EP0212636B1 (en) Bus state control circuit
EP0355462B1 (en) Dedicated service processor with inter-channel communication features
JPS5941082A (en) Non-sychronous type bus multiplex processor system
EP0026648A2 (en) Digital data transfer apparatus
US6624659B1 (en) Dynamically updating impedance compensation code for input and output drivers
JPH04260959A (en) Microprocessor
JPS61141064A (en) Electronic circuit
US7065669B2 (en) System and method for providing a write strobe signal to a receiving element before both an address and data signal
JPS59161752A (en) Central processor of data processing system
JP2634609B2 (en) Data transfer device
JP4008196B2 (en) Register control device and multi-CPU system
JPS58178467A (en) Data transfer device
JPS6275822A (en) Computer system
JPS59123063A (en) Access system of shared resource of multi-processor system
JP2002132579A (en) Register control apparatus
JPH0442329A (en) Data processor