JP2555084B2 - Micro Processor - Google Patents
Micro ProcessorInfo
- Publication number
- JP2555084B2 JP2555084B2 JP62174623A JP17462387A JP2555084B2 JP 2555084 B2 JP2555084 B2 JP 2555084B2 JP 62174623 A JP62174623 A JP 62174623A JP 17462387 A JP17462387 A JP 17462387A JP 2555084 B2 JP2555084 B2 JP 2555084B2
- Authority
- JP
- Japan
- Prior art keywords
- wait
- signal
- circuit
- bus
- cycle
- 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 - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Microcomputers (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、マイクロプロセッサに関するもので、例
えば、非同期データの取り込みのためにプログラムウエ
イト回路を内蔵するものに利用して有効な技術に関する
ものである。Description: TECHNICAL FIELD The present invention relates to a microprocessor, for example, to a technique effective when used in an embedded program wait circuit for fetching asynchronous data. is there.
プログラムウエイト回路を内蔵する68000系等のマイ
クロプロセッサにおいては、次のようにしてメモリ等の
周辺装置からのデータを受け取る。クロック(マシンサ
イクル)信号によって規定されるステート0のとき、ア
ドレスバスはハイインピーダンス状態にされている。リ
ードサイクルを示すためリード/ライト信号R/Wはハイ
レベルにされる。In a microprocessor such as the 68000 series which has a program wait circuit, data is received from a peripheral device such as a memory as follows. In the state 0 defined by the clock (machine cycle) signal, the address bus is in a high impedance state. The read / write signal R / W is set to the high level to indicate the read cycle.
ステート1において、アドレスバスはハイインピーダ
ンス状態から解放される。In state 1, the address bus is released from the high impedance state.
ステート2において、アドレスストローブ信号▲
▼がロウレベルのアクティブにされ、アドレスバス上に
有効なアドレス信号があることを示す。メモリ等の周辺
装置は、上記アドレスバスとアドレスストローブ信号▲
▼を受けて、自分が選択されたかどうかを判断す
る。メモリ等の被選択デバイスは、選択されたと判断す
ると動作状態となり、データバスに読み出し信号を送出
する。Address strobe signal ▲ in state 2
▼ is activated at a low level, indicating that there is a valid address signal on the address bus. Peripheral devices such as a memory, the address bus and address strobe signal ▲
In response to ▼, determine whether or not you have been selected. When the selected device such as a memory is judged to have been selected, it becomes operational and sends a read signal to the data bus.
プログラムウエイト回路は、上記選択したメモリ等の
被選択デバイスのアクセス時間を考慮してウエイト時間
が設定される。すなわち、比較的低速のメモリ装置等に
対しては、1ないし複数サイクルのウエイトサイクルが
設定される。In the program wait circuit, the wait time is set in consideration of the access time of the selected device such as the selected memory. That is, one to a plurality of wait cycles are set for a relatively low speed memory device or the like.
このウエイトサイクル後のステートにおいてデータバ
ス上に有効なデータがあるものとみなしてデータの取り
込みを行う。In the state after this wait cycle, it is considered that there is valid data on the data bus and the data is taken in.
上記のようなプログラムウエイト回路を内蔵するマイ
クロプロセッサに関しては、例えば(株)日立製作所昭
和60年9月発行「日立マイクロコンピュータデータブッ
ク 8ビット・16ビット マイクロプロセッサ」頁462
〜頁463がある。For a microprocessor incorporating the above program weight circuit, see, for example, Hitachi, Ltd., September 1985, "Hitachi Microcomputer Data Book 8-bit / 16-bit Microprocessor", page 462.
There is page 463.
システムを構成するバスマスタが上記マイクロプロセ
ッサだけの場合には、何等問題なく上記のように被選択
デバイスをアクセスすることができる。しかしながら、
システムにスレーブマイクロプロセッサや直接メモリア
クセス装置のようなバスマスタとなり得る装置があると
き、上記のようなウエイト動作をこれらのバスマスタと
なった装置に指示する制御回路が必要になってしまう。When the bus master constituting the system is only the above microprocessor, the selected device can be accessed as described above without any problem. However,
When the system has a device that can be a bus master such as a slave microprocessor or a direct memory access device, a control circuit for instructing the above-described wait operation to the devices that have become bus masters is required.
この発明の目的は、システムの簡素化を可能にできる
マイクロプロセッサを提供することにある。An object of the present invention is to provide a microprocessor capable of simplifying the system.
この発明の前記ならびにそのほかの目的と新規な特徴
は、本明細書の記述および添付図面から明らかになるで
あろう。The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.
本願において開示される発明のうち代表的なものの概
要を簡単に説明すれば、下記の通りである。すなわち、
内蔵のプログラムウエイト回路により形成されるウエイ
ト信号を外部端子へ送出させるようにするものである。The outline of a typical one of the inventions disclosed in the present application will be briefly described as follows. That is,
A wait signal formed by a built-in program wait circuit is sent to an external terminal.
上記した手段によれば、上記プログラムウエイト回路
を、スレーブマイクロプロセッサや直接メモリアクセス
制御装置等のウエイト動作に利用することができる。According to the above means, the program wait circuit can be used for the wait operation of the slave microprocessor, the direct memory access control device and the like.
第1図には、この発明の一実施例のブロック図が示さ
れている。マイクロプロセッサMPUは、特に制限されな
いが、68000系のマイクロプロセッサであり、プログラ
ムウエイト回路WAITCを内蔵するものである。また、他
のバスマスタとして、直接メモリアクセス制御装置DMAC
が設けられる。メモリ装置M1とM2は、例えばRAM(ラン
ダム・アクセス・メモリ)やROM(リード・オンリー・
メモリ)であり、そのうち少なくとも1つが例えばダイ
ナミック型RAMのような比較的低速のメモリ装置であ
る。また、入出力装置I/Oは、例えばフロッピーディス
クメモリ装置等である。FIG. 1 is a block diagram showing one embodiment of the present invention. The microprocessor MPU is, though not particularly limited, a 68000 series microprocessor and has a program wait circuit WAITC built therein. Also, as another bus master, direct memory access controller DMAC
Is provided. The memory devices M1 and M2 are, for example, RAM (random access memory) or ROM (read only memory).
Memory), at least one of which is a relatively slow memory device, such as a dynamic RAM. The input / output device I / O is, for example, a floppy disk memory device or the like.
上記マイクロプロセッサMPU、直接メモリアクセス制
御装置DMAC、メモリ装置M1,M2及び入出力装置I/Oは、ア
ドレスバスとデータバス及びコントロール信号線等から
なるバスBUSによって相互に接続される。The microprocessor MPU, the direct memory access control device DMAC, the memory devices M1 and M2, and the input / output device I / O are mutually connected by a bus BUS including an address bus, a data bus, a control signal line, and the like.
上記マイクロプロセッサMPUは、例えば、(株)日立
製作所から販売されている品名「HD64180」等のよう
に、プログラムウエイト回路WAITCを内蔵するものであ
る。このプログラムウエイト回路WAITCは、前述のよう
に比較的低速のメモリ装置や入出力装置I/Oに対するア
クセスのとき、所定のマシンサイクル中にウエイトを挿
入するものである。この実施例では、特に制限されない
が、上記プログラムウエイト回路WAITCは、オア(OR)
ゲート回路Gを介して中央処理装置CPUに供給する。ま
た、このプログラムウエイト回路WAITCは、他のバスマ
スタに対してもウエイト信号を供給するよう、駆動回路
DVを介して外部端子から送出される。この駆動回路DVを
通して出力されるウエイト制御信号WAITは、この実施例
のマイクロコンピュータシステムでは上記直接メモリア
クセス制御装置DMACに供給される。上記駆動回路DVは、
特に制限されないが、オープンドレイン出力回路からな
り、外部端子からのウエイト信号の供給を可能としてい
る。言い換えるならば、その出力端子でのワイヤード論
理を可能にしている。それ故、上記外部端子から供給さ
れるウエイト信号は、オアゲート回路Gを通して上記中
央処理装置CPUに供給される。The microprocessor MPU incorporates a program wait circuit WAITC, such as the product name "HD64180" sold by Hitachi, Ltd., for example. The program wait circuit WAITC is to insert a wait into a predetermined machine cycle when accessing a relatively low speed memory device or I / O device as described above. In this embodiment, although not particularly limited, the program wait circuit WAITC is an OR (OR)
It is supplied to the central processing unit CPU through the gate circuit G. In addition, this program wait circuit WAITC is designed to supply a wait signal to other bus masters.
It is sent from the external terminal via DV. The wait control signal WAIT output through the drive circuit DV is supplied to the direct memory access control device DMAC in the microcomputer system of this embodiment. The drive circuit DV is
Although not particularly limited, it is composed of an open-drain output circuit and can supply a wait signal from an external terminal. In other words, it enables wired logic at its output terminals. Therefore, the wait signal supplied from the external terminal is supplied to the central processing unit CPU through the OR gate circuit G.
また、プログラムウエイト回路WAITCは、バスBUSから
の信号を受けて、上記直接メモリアクセス制御回路DMAC
がバスマスタになっていることを監視するものである。In addition, the program wait circuit WAITC receives the signal from the bus BUS, and receives the signal from the bus BUS.
Is to be a bus master.
上記直接メモリアクセス制御装置DMACは、一種のマイ
クロコンピュータ機能を持ち、上記マイクロプロセッサ
MPUに代えてバスマスタとなり、例えば、メモリ装置M1
又はM2と入出力装置I/Oとの間でデータの転送を行う。
このようなデータの転送に際して、メモリ装置M1又はM2
あるいは入出力装置I/Oの速度が比較的遅い場合、前述
のようなウエイトの挿入が必要とされる。この実施例で
は、上記直接メモリアクセス制御装置DMACが上記マイク
ロプロセッサMPUに代わってバス使用権を獲得してるう
場合であってもマイクロプロセッサMPUに内蔵されるプ
ログラムウエイト回路WAITCが所定のタイミングで起動
される。そして、プログラムウエイト回路WAITCは、上
記直接メモリアクセス制御装置DMACがアクセスしようと
するメモリ装置や入出力装置の速度(アクセスサイク
ル)に応じたウエイト信号WAITを発生して、上記駆動回
路DVを通して直接メモリアクセス制御装置DMACに供給す
る。The direct memory access control device DMAC has a kind of microcomputer function,
It becomes a bus master in place of the MPU, for example, memory device M1
Alternatively, data is transferred between M2 and the input / output device I / O.
When transferring such data, the memory device M1 or M2
Alternatively, when the speed of the input / output device I / O is relatively slow, the weight insertion as described above is required. In this embodiment, the program wait circuit WAITC incorporated in the microprocessor MPU is activated at a predetermined timing even when the direct memory access controller DMAC acquires the bus use right in place of the microprocessor MPU. To be done. Then, the program wait circuit WAITC generates a wait signal WAIT according to the speed (access cycle) of the memory device or the input / output device which the direct memory access control device DMAC is trying to access, and the direct memory access controller WAITC directly executes the memory through the drive circuit DV. Supply to access control device DMAC.
直接メモリアクセス制御装置DMACは、そのマシンサイ
クルに応じてその所定のタイミング信号とアドレス信号
を送出する。メモリ等の周辺装置は、上記アドレス信号
を受けて、自分が選択されたかどうかを判断する。メモ
リ等の被選択デバイスは、選択されたと判断すると動作
状態となり、データバスに読み出し信号を送出する。プ
ログラムウエイト回路は、上記選択したメモリ等の被選
択デバイスのアクセス時間に応じたウエイト信号を送出
する。したがって、直接メモリアクセス制御装置DMAC
は、そのデータ取り込みを行うサイクルの前に、1ない
し複数サイクルのウエイトサイクルを実行した後に、デ
ータバス上に有効なデータがあるものとみなしてデータ
の取り込みを行う。すなわち、指定されたウエイトサイ
クルが挿入されることにより、1マシンサイクル(バス
サイクル)が延長されるものである。The direct memory access control device DMAC sends out the predetermined timing signal and address signal according to the machine cycle. The peripheral device such as a memory receives the address signal and determines whether or not it has been selected. When the selected device such as a memory is judged to have been selected, it becomes operational and sends a read signal to the data bus. The program wait circuit sends a wait signal according to the access time of the selected device such as the selected memory. Therefore, direct memory access controller DMAC
Performs one or a plurality of wait cycles before the data fetching cycle and then fetches data assuming that valid data is present on the data bus. That is, one machine cycle (bus cycle) is extended by inserting the designated wait cycle.
第2図は、この発明の他の実施例を示すブロック図で
ある。マイクロプロセッサMPUと直接メモリアクセス制
御回路DMACとメモリとが、BUSを介して結合されてい
る。マイクロプロセッサMPUに内蔵されたウエイト回路W
ATICは、BUS上のアドレス信号が所定のアドレス範囲に
含まれるか否かを判別するためのアドレスコンパレータ
1と、ウエイトサイクル数を決定するためのカウンタコ
ントローラ2と、ウエイト信号の開始タイミングと終了
タイミングを決定するためのカウンタ3と、ウエイト信
号を形成するためのウエイトシグナルジェネレータ4と
を含む。上記カウンタ3は、ガウンカウンタであり、初
期値はカウンタコントローラ2によって与えられ、アド
レスストローブ信号▲▼の立下がりタイミングに応
じてカウントダウンが開始される。アドレスストローブ
信号▲▼の立下がり時期からカウンタの値が0にな
るまでの間ウエイトシグナルジェネレータ4はロウレベ
ルのウエイト信号WAITを形成する。このウエイト信号WA
ITは出旅回路DV′及び出力端子T1を介してマイクロプロ
セッサの外部に送出される。マイクロプロセッサMPUか
ら送出されたウエイト信号WAITはBUSを介して直接メモ
リアクセス制御装置DMACに供給される。直接メモリアク
セス制御装置DMACは、ウエイト信号WAITがロウレベルで
ある期間に応じてその1マシンサイクルの期間が延長さ
れる。上記アドレスストローブ信号▲▼は直接メモ
リアクセス制御装置DMACからアクセスすべきメモリに対
して供給される。アドレスストローブ信号▲▼が立
下がると、アクセスされたメモリはBUS上のアドレス信
号が確定されたものと認識してこれを内部に取り込む。
その後データ読み出し又は書き込み動作が実行される。
このアドレスストローブ信号▲▼は端子T2を介して
マイクロプロセッサMPUの内部に取り込まれ、上記カウ
ンタ3の動作タイミングを決定するために用いられる。FIG. 2 is a block diagram showing another embodiment of the present invention. The microprocessor MPU, the direct memory access control circuit DMAC and the memory are coupled via the BUS. Weight circuit W built in the microprocessor MPU
The ATIC is an address comparator 1 for determining whether the address signal on the BUS is included in a predetermined address range, a counter controller 2 for determining the number of wait cycles, a start timing and an end timing of the wait signal. And a weight signal generator 4 for forming a weight signal. The counter 3 is a gown counter, the initial value of which is given by the counter controller 2, and the countdown is started in response to the falling timing of the address strobe signal ▲ ▼. The wait signal generator 4 forms a low-level wait signal WAIT from the falling edge of the address strobe signal () until the counter value becomes zero. This weight signal WA
IT is sent to the outside of the microprocessor via the departure circuit DV 'and the output terminal T1. The wait signal WAIT sent from the microprocessor MPU is directly supplied to the memory access control device DMAC via BUS. In the direct memory access control device DMAC, the period of one machine cycle is extended according to the period in which the wait signal WAIT is low level. The address strobe signal {circle over ()} is supplied from the direct memory access control device DMAC to the memory to be accessed. When the address strobe signal ▲ ▼ falls, the accessed memory recognizes that the address signal on the BUS has been determined and fetches it internally.
After that, the data read or write operation is executed.
The address strobe signal () is taken into the inside of the microprocessor MPU via the terminal T2 and used to determine the operation timing of the counter 3.
第3図(A)図は、直接メモリアクセス制御装置DMAC
が、BUSに結合された高速メモリからデータを読み出す
場合のタイミングチャートを示している。この例では1
マシンサイクルの期間は、基準内部クロックφの3サイ
クル分とされる。第1サイクルT1において、直接メモリ
アクセス制御回路DMACはバス上にアドレス信号を送出す
る。このアドレス信号の送出後アドレスストローブ信号
▲▼が立下がることにより、上記高速メモリはアド
レス信号を内部に取り込み、データの読み出し動作が開
始される。その後第3サイクルT3において、読み出され
たデータがBUS上に送出される。上記第1サイクルT1か
ら第3サイクルT3までの間ウエイト信号WAITはハイレベ
ルとされる。ウエイト回路WAITC内のアドレスコンパレ
ータ1は端子T3を介して上記アドレス信号を監視してお
り、高速メモリをアクセスしていることを認識できる。
これに応じて、カウンタコントローラ2はカウンタ3に
対して初期値0を設定しているからである。FIG. 3 (A) shows the direct memory access control device DMAC.
Shows a timing chart for reading data from a high speed memory coupled to the BUS. 1 in this example
The machine cycle period is three cycles of the reference internal clock φ. In the first cycle T1, the direct memory access control circuit DMAC sends an address signal on the bus. When the address strobe signal {circle around (1)} falls after sending this address signal, the high-speed memory takes in the address signal internally and the data read operation is started. Then, in the third cycle T3, the read data is sent out on the BUS. The wait signal WAIT is set to the high level during the first cycle T1 to the third cycle T3. The address comparator 1 in the wait circuit WAITC monitors the address signal via the terminal T3 and can recognize that the high speed memory is being accessed.
This is because the counter controller 2 sets the initial value 0 to the counter 3 accordingly.
第3図(B)は直接メモリアクセス制御装置DMACが、
BUSに結合された低速メモリからデータを読み出す場合
のタイミングチャートを示している。この例では1マシ
ンサイクルの期間は基準内部クロックφの5サイクル分
とされる。すなわち、低速メモリの動作速度に応じて第
2サイクルT2と第3サイクルT3との間ウエイトサイクル
TW1及びTW2が追加されている。第1サイクルT1におい
て、直接メモリアクセス制御回路DMACは、パス上にアド
レス信号を送出する。このアドレス信号の送出後アドレ
スストローブ信号▲▼が立下がることにより、上記
低速メモリはアドレス信号を内部に取り込み、データの
読み出し動作が開始される。ウエイト回路WAITC内のア
ドレスコンパレータ1は上記アドレス信号を監視してお
り、低速メモリをアクセスしていることを認識できる。
これに応じて、カウンタコントローラ2はカウンタ3に
対して、初期値2を設定する。なお、この初期値は、ア
クセスされるメモリの動作速度に応じて任意に設営可能
である。その結果ウエイト信号WAITは、アドレスストロ
ーブ信号▲▼の立下がり時間から約2サイクルの期
間ロウレベルとされる。ウエイト信号WAITのレベル検出
タイミングは、第2サイクルT2以降のクロックφの立下
がり時点とされる。すなわち、第2サイクルT2における
クロックφの立下がり時t1にウエイト信号WAITがロウレ
ベルであるから第1のウエイトサイクルTW1が追加され
る。次にウエイトサイクルTW1におけるクロックφの立
下がり時t2にウエイト信号WAITがロウレベルであるから
第2のウエイトサイクルTW2が追加される。次に第2の
ウエイトサイクルTW2におけるクロックφの立下がり時t
3にウエイト信号WAITはハイレベルとされているからそ
の後ウエイトサイクルは追加されない。ウエイトサイク
ル中は、アドレス信号およびアドレスストローブ信号▲
▼はそれ以前の状態を維持する。その後第3サイク
ルT3に至るまでにはデータバス上に送出される。従って
直接メモリアクセス制御装置DMACは第3サイクルT3にお
けるバス上のデータを有効データとして取り込むことが
できる。In FIG. 3B, the direct memory access control device DMAC
7 shows a timing chart when reading data from a low speed memory coupled to a BUS. In this example, one machine cycle period corresponds to five cycles of the reference internal clock φ. That is, a wait cycle between the second cycle T2 and the third cycle T3 depending on the operation speed of the low-speed memory.
TW1 and TW2 are added. In the first cycle T1, the direct memory access control circuit DMAC sends an address signal on the path. After the address signal is transmitted, the address strobe signal ▲ ▼ falls, so that the low-speed memory takes in the address signal internally and the data read operation is started. The address comparator 1 in the wait circuit WAITC monitors the above address signal and can recognize that the low speed memory is being accessed.
In response to this, the counter controller 2 sets the initial value 2 to the counter 3. It should be noted that this initial value can be arbitrarily set according to the operating speed of the memory to be accessed. As a result, the wait signal WAIT is set to the low level for a period of about 2 cycles from the fall time of the address strobe signal (). The timing for detecting the level of the wait signal WAIT is set to the falling point of the clock φ after the second cycle T2. That is, the first wait cycle TW1 is added because the wait signal WAIT is at the low level at the falling time t1 of the clock φ in the second cycle T2. Next, the second wait cycle TW2 is added because the wait signal WAIT is at low level at the time t2 when the clock φ falls in the wait cycle TW1. Next, at the falling edge of clock φ in the second wait cycle TW2, t
Since the wait signal WAIT in 3 is at high level, no wait cycle is added thereafter. Address signal and address strobe signal during wait cycle ▲
▼ maintains the previous state. After that, the data is sent to the data bus until the third cycle T3. Therefore, the direct memory access control device DMAC can take in the data on the bus in the third cycle T3 as valid data.
第4図は第2図におけるカウンタコントローラ2の一
実施例ブロック図である。この実施例では、ウエイトサ
イクル数が記憶される4つのレジスタレジスタ1〜4が
設けられる。ウエイトサイクル数はCPUによって書き込
まれる。例えば、レジスタ1には00が書き込まれること
により、ウエイトサイクル数は0であることが示され、
レジスタ2には01が書き込まれることにより、ウエイト
サイクル数は1であることが示され、レジスタ3には10
が書き込まれることによりウエイトサイクル数は2であ
ることが示され、レジスタ4には11が書き込まれること
によりウエイトサイクル数は3であることが示される。
いずれかのレジスタを選択するために、アンドゲートAG
1〜AG8及びオアゲートOG1,OG2が設けられる。例えばア
ドレスコンパレータ1の出力信号線l1〜l4のうち、信号
線l3がハイレベルとされることにより、この信号線l3が
入力端子に接続されるアンドゲートAG3及びAG7が選択さ
れる。その結果、レジスタ3の内容10がオアゲート(OG
1,OG2)を介してカウンタ3に供給されることになる。FIG. 4 is a block diagram of an embodiment of the counter controller 2 in FIG. In this embodiment, four registers 1 to 4 for storing the number of wait cycles are provided. The number of wait cycles is written by the CPU. For example, by writing 00 to register 1, it is indicated that the number of wait cycles is 0,
Writing 01 to register 2 indicates that the number of wait cycles is 1, and register 3 shows 10 cycles.
Is written to indicate that the number of wait cycles is 2, and when 11 is written to the register 4, it is indicated that the number of wait cycles is 3.
AND-gate AG to select either register
1 to AG8 and OR gates OG1 and OG2 are provided. For example, of the output signal lines l1 to l4 of the address comparator 1, when the signal line l3 is set to the high level, the AND gates AG3 and AG7 to which the signal line l3 is connected to the input terminal are selected. As a result, the content 10 of register 3 is the OR gate (OG
1, OG2) to be supplied to the counter 3.
なお第2図において、CPUはウエイト回路WAITCによっ
て形成されるウエイト信号によってウエイトサイクルが
実行されるだけでなく、MPUの外部で形成されたウエイ
ト信号によってもウエイトサイクルが実行可能とされ
る。すなわち、端子T1は入出力端子とされるとともに、
ウエイト信号入力時には、出力ドライバDV′はハイイン
ピーダンス出力状態となる。ウエイト信号はゲートGを
介してCPUに供給される。ゲートGの2つの入力信号の
うち、少なくとも一方がロウレベルになると、ロウレベ
ルの出力信号を形成する。In FIG. 2, the CPU not only executes the wait cycle by the wait signal formed by the wait circuit WAITC, but also can execute the wait cycle by the wait signal formed outside the MPU. That is, the terminal T1 is used as an input / output terminal,
When the wait signal is input, the output driver DV 'is in a high impedance output state. The wait signal is supplied to the CPU via the gate G. When at least one of the two input signals of the gate G becomes low level, a low level output signal is formed.
この実施例では、上記のようにプログラムウエイト回
路WAITCを内蔵するマイクロプロセッサMPUを含むマイク
ロコンピュータシステムにおいて、バスマスタとなり得
る直接メモリアクセス制御装置DMACやスレーブマイクロ
プロセッサ等が存在する場合、上記マスターマイクロプ
ロセッサに内蔵されるプログラムウエイト回路WAITCを
使用することによって、システムの簡素化を図ることが
できる。なお、上述プログラムウエイト回路WAITCを内
蔵するマイクロプロセッサMPUは、他の装置がバスマス
タとなっているとき、上記バスを開放した状態であるの
で、上記プログラムウエイト回路WAITCを使用しない。
したがって、上記プログラムウエイト回路WAITCをバス
マスタとして動作する他の装置に使用しても何等問題に
なることはない。In this embodiment, in the microcomputer system including the microprocessor MPU incorporating the program wait circuit WAITC as described above, when the direct memory access control device DMAC or slave microprocessor which can be a bus master exists, the master microprocessor is The system can be simplified by using the built-in program wait circuit WAITC. The microprocessor MPU incorporating the program wait circuit WAITC does not use the program wait circuit WAITC because it is in a state in which the bus is opened when another device is the bus master.
Therefore, even if the program wait circuit WAITC is used in another device that operates as a bus master, no problem will occur.
さらに、この実施例では、上記プログラムウエイト回
路WAITCにより形成される信号を外部端子へ送出させる
駆動回路DVとして、ワイヤード論理を可能とする。これ
によって、必要ならマイクロプロセッサMPUを外部に設
けられるウエイト制御回路からのウエイト動作も行うこ
とができる。Furthermore, in this embodiment, the wired logic is enabled as the drive circuit DV for sending the signal formed by the program wait circuit WAITC to the external terminal. As a result, the wait operation from the wait control circuit provided outside the microprocessor MPU can be performed if necessary.
上記実施例から得られる作用効果は、下記の通りであ
る。The operational effects obtained from the above embodiment are as follows.
(1) 内蔵のプログラムウエイト回路により形成され
るウエイト信号を外部端子へ送出させるようにするとい
う簡単な構成によって、スレーブマイクロプロセッサや
直接メモリアクセス制御装置等のように他のバスマスタ
となりうる装置のウエイト動作に利用することができ
る。これによって、バスマスタとなり得る装置が複数か
らなるマイクロコンピュータシステムの簡素化を図るこ
とができるという効果が得られる。(1) The weight of a device that can be another bus master such as a slave microprocessor or a direct memory access control device with a simple configuration in which a wait signal formed by a built-in program wait circuit is sent to an external terminal. It can be used for operation. As a result, it is possible to obtain an effect that a microcomputer system including a plurality of devices that can be bus masters can be simplified.
(2) 上記内蔵のプログラムウエイト回路により形成
されるウエイト信号を外部端子へ送出させる駆動回路と
して、オープンドレイン等のようなワイヤード論理を可
能とする出力回路を用いることによって上記外部端子か
らウエイト信号を供給することができる。これによっ
て、マイクロプロセッサにおけるウエイト繊維の多様化
が図られるという効果が得られる。(2) By using an output circuit such as open drain capable of wired logic as a drive circuit for sending a wait signal formed by the built-in program wait circuit to an external terminal, a wait signal is output from the external terminal. Can be supplied. This has the effect of diversifying the weight fibers in the microprocessor.
以上本発明者によってなされた発明を実施例にもとづ
き具体的に説明したが、本発明は上記実施例に限定され
るものではなく、その要旨を逸脱しない範囲で種々変更
可能であることはいうまでもない。例えば、バスとして
は、データ信号とアドレス信号とが時系列的に伝送され
るものであってもよい。すなわち、マイクロプロセッサ
のアドレスバスに対して、スレーブプロセッサや直接メ
モリアクセス制御装置等は、アドレスとデータとを時分
割方式により伝達させるものであってもよい。また、プ
ログラムウエイト回路の出力信号が送出される端子と、
必要に応じて設けられる外部からのウエイト信号が供給
される端子とは、独立した端子としてもよい。Although the invention made by the present inventor has been specifically described based on the embodiments, the present invention is not limited to the above embodiments and can be variously modified without departing from the scope of the invention. Nor. For example, the bus may be one that transmits data signals and address signals in time series. That is, the slave processor, the direct memory access control device, or the like may transmit the address and the data to the address bus of the microprocessor in a time division manner. Also, a terminal to which the output signal of the program wait circuit is transmitted,
The terminal provided with a wait signal from the outside, which is provided as necessary, may be an independent terminal.
この発明は、プログラムウエイト回路を内蔵するマイ
クロプロセッサに広く利用できる。INDUSTRIAL APPLICABILITY The present invention can be widely used in microprocessors incorporating a program wait circuit.
本願において開示される発明のうち代表的なものによ
って得られる効果を簡単に説明すれば、下記の通りであ
る。すなわち、内蔵のプログラムウエイト回路により形
成されるウエイト信号を外部端子へ送出させることによ
って、スレーブマイクロプロセッサや直接メモリアクセ
ス制御装置等のように他のバスマスタとなりうる装置の
ウエイト動作に利用することができるから、システムの
簡素化を図ることができる。The effect obtained by the representative one of the inventions disclosed in the present application will be briefly described as follows. That is, by sending a wait signal formed by the built-in program wait circuit to an external terminal, it can be used for a wait operation of a device that can be another bus master such as a slave microprocessor or a direct memory access control device. Therefore, the system can be simplified.
第1図はこの発明の一実施例を示すブロック図、 第2図はこの発明の他の実施例を示すブロック図、 第3図(A)及び同図(B)は、第2図のブロック図の
動作を説明するためのタイミングチャート、及び 第4図は第2図に示すカウンタコントローラ2の一実施
例図である。 WAITC……プログラムウエイト回路、DMAC……直接メモ
リアクセス制御装置、M1,2……メモリ装置、I/O……入
出力装置、CPU……中央処理装置、MPU……マイクロプロ
セッサ。1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing another embodiment of the present invention, and FIGS. 3 (A) and 3 (B) are block diagrams of FIG. FIG. 4 is a timing chart for explaining the operation of the figure, and FIG. 4 is an example of the counter controller 2 shown in FIG. WAITC: Program wait circuit, DMAC: Direct memory access control device, M1,2: Memory device, I / O: Input / output device, CPU: Central processing unit, MPU: Microprocessor.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 馬場 志朗 東京都小平市上水本町1450番地 株式会 社日立製作所武蔵工場内 (72)発明者 樫尾 次郎 神奈川県川崎市多摩区王禅寺1099番地 株式会社日立製作所システム開発研究所 内 (72)発明者 馬場 志朗 東京都小平市上水本町1450番地 株式会 社日立製作所武蔵工場内 (72)発明者 赤尾 泰 東京都小平市上水本町1450番地 株式会 社日立製作所武蔵工場内 (72)発明者 大河内 俊夫 東京都青梅市今井2326番地 株式会社日 立製作所デバイス開発センタ内 (56)参考文献 特開 昭60−151760(JP,A) 特開 昭63−53669(JP,A) ─────────────────────────────────────────────────── --- Continuation of the front page (72) Inventor Shiro Baba 1450, Kamimizumoto-cho, Kodaira-shi, Tokyo Inside the Musashi Factory, Hitachi Ltd. (72) Jiro Kashio 1099, Ozenji, Tama-ku, Kawasaki, Kanagawa Hitachi, Ltd. Manufacturing Systems Development Laboratory (72) Inventor Shiro Baba 1450, Kamimizuhoncho, Kodaira-shi, Tokyo Stock company Hitachi Ltd. Musashi Factory (72) Inventor, Yasushi Akao 1450, Kamimizumoto-cho, Kodaira, Tokyo Hitachi Ltd. (72) Inventor Toshio Okochi, Toshio Okochi, 2326 Imai, Ome-shi, Tokyo Inside Device Development Center, Hiritsu Manufacturing Co., Ltd. (56) Reference JP-A-60-151760 (JP, A) JP-A-63-53669 ( JP, A)
Claims (1)
ブログラムに従ってウエイト信号のレベル変化タイミン
グを変化させて、かかる外部バス上のデータの取り込み
タイミングを規定するウエイト信号を形成するウエイト
信号形成回路と、 上記ウエイト信号を上記CPU及びマイクロプロセッサの
外部に送出させるとともに、外部からウエイト信号を上
記CPUに入力することを可能とするワイヤード論理を採
ることができるようになされた出力回路とが1つの半導
体集積回路に形成されてなることを特徴とするマイクロ
プロセッサ。1. A weight for monitoring a CPU and an address signal on an external bus, changing a level change timing of a wait signal according to a predetermined program, and defining a timing for fetching data on the external bus. A wait signal forming circuit that forms a signal, and a wired logic that allows the wait signal to be sent to the outside of the CPU and the microprocessor and from which the wait signal can be input to the CPU from the outside. A microprocessor characterized in that the formed output circuit is formed in one semiconductor integrated circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62174623A JP2555084B2 (en) | 1987-07-15 | 1987-07-15 | Micro Processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62174623A JP2555084B2 (en) | 1987-07-15 | 1987-07-15 | Micro Processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6419451A JPS6419451A (en) | 1989-01-23 |
| JP2555084B2 true JP2555084B2 (en) | 1996-11-20 |
Family
ID=15981830
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62174623A Expired - Fee Related JP2555084B2 (en) | 1987-07-15 | 1987-07-15 | Micro Processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2555084B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6446865A (en) * | 1987-08-17 | 1989-02-21 | Nec Corp | Microprocessor |
| US5711245A (en) * | 1994-11-23 | 1998-01-27 | Valterra Products Inc. | Method and apparatus for temporarily extended alignment guide for vehicle fluid outlet port |
-
1987
- 1987-07-15 JP JP62174623A patent/JP2555084B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6419451A (en) | 1989-01-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4949241A (en) | Microcomputer system including a master processor and a slave processor synchronized by three control lines | |
| JP2504206B2 (en) | Bus controller | |
| US5070473A (en) | Microprocessor | |
| JPH045216B2 (en) | ||
| US6115767A (en) | Apparatus and method of partially transferring data through bus and bus master control device | |
| JP2555084B2 (en) | Micro Processor | |
| JP3153078B2 (en) | Data processing device | |
| JPH0728745A (en) | System and method for using processor bus | |
| JP3077807B2 (en) | Microcomputer system | |
| JPH0399354A (en) | bus controller | |
| JPH0143392B2 (en) | ||
| JP2515772B2 (en) | Information processing device | |
| JP2679440B2 (en) | Information processing device | |
| JP3093374B2 (en) | Interrupt controller | |
| JPS59229662A (en) | Common memory control circuit | |
| JP2684663B2 (en) | Micro program control circuit | |
| JP2634583B2 (en) | Data transfer method | |
| JPH01121965A (en) | Microprocessor | |
| JP2928036B2 (en) | Logic semiconductor integrated circuit | |
| JPH0479022B2 (en) | ||
| JPH05242008A (en) | Data processor | |
| JPH04330549A (en) | Controller | |
| JPS59128619A (en) | Microcomputer device | |
| JPS59189433A (en) | Data erasing system by direct memory access | |
| JPH1011405A (en) | Memory access conflict control system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |