JPH0664535B2 - Microcomputer system - Google Patents
Microcomputer systemInfo
- Publication number
- JPH0664535B2 JPH0664535B2 JP59067688A JP6768884A JPH0664535B2 JP H0664535 B2 JPH0664535 B2 JP H0664535B2 JP 59067688 A JP59067688 A JP 59067688A JP 6768884 A JP6768884 A JP 6768884A JP H0664535 B2 JPH0664535 B2 JP H0664535B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- bus cycle
- circuit
- reset
- gate circuit
- 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 - Lifetime
Links
Landscapes
- Retry When Errors Occur (AREA)
- Debugging And Monitoring (AREA)
Description
【発明の詳細な説明】 [技術分野] この発明は、マイクロコンピュータ・システムにおける
割込み技術に関し、例えば外部から供給されるリセット
信号により強制的に初期状態にさせられるマイクロプロ
セッサを有するシステムに適用して有効な技術に関す
る。Description: TECHNICAL FIELD The present invention relates to an interrupt technique in a microcomputer system, and is applied to a system having a microprocessor forcibly set to an initial state by a reset signal supplied from the outside, for example. Regarding effective technology.
[背景技術] マイクロプロセッサ(以下MPUと称する)には、同期
方式と非同期方式のものとがあるが、従来のMPUは、
同期方式,非同期方式にかかわらず、クロック信号の立
上がりもしくは立下がりに同期して、リセット信号▲
▼のロウレベル“L”を認知し、認知すれば実
行中のバスサイクルを中断して初期状態に復帰し、リセ
ット・シーケンス処理を開始するようにされていた。BACKGROUND ART Microprocessors (hereinafter referred to as MPUs) include synchronous type and asynchronous type, but a conventional MPU is
Regardless of the synchronous method or the asynchronous method, the reset signal is synchronized with the rising or falling of the clock signal.
When the low level "L" of ▼ is recognized, the bus cycle being executed is interrupted to return to the initial state, and the reset sequence process is started.
ところが、例えば、MPUを有するバスマスタボード
と、バスマスタボードからバスを介して供給される制御
信号によってコントロールされるメモリを有するメモリ
ボードのような周辺デバイスからなるマイクロコンピュ
ータ・システムにおいて、上記のごとくリセット信号に
よりバスサイクルが途中で中断されてしまうと、システ
ム上不都合が生じる。例えば、プログラムの開発時に途
中でプログラムが暴走を始めたため、リセット信号
“L”を入力してシステムをストップさせたような場
合、従来のシステムでは、バスサイクルに入ってからリ
セット信号▲▼が入力されると、バスサイク
ルが直ちに中断され、MPUまらメモリボードに供給さ
れるアドレス・ストローブ信号▲▼のような制御信
号もすぐに立ち上げられてしまう(第1図参照)。However, for example, in a microcomputer system including a bus master board having an MPU and a peripheral device such as a memory board having a memory controlled by a control signal supplied from the bus master board via a bus, the reset signal as described above is used. Therefore, if the bus cycle is interrupted midway, a system inconvenience occurs. For example, when the program starts to run out of control during program development and the system is stopped by inputting the reset signal "L", the conventional system inputs the reset signal ▲ ▼ after entering the bus cycle. Then, the bus cycle is immediately interrupted, and the control signal such as the address strobe signal ▲ ▼ supplied to the MPU or the memory board is immediately raised (see FIG. 1).
しかし、ダイナミック型のRAMからなるメモリボード
では、上記アドレス・ストローブ信号▲▼に基づい
てロウアドレス・ストローブ信号▲▼やカラムア
ドレス・ストローブ信号▲▼等が形成されてメモ
リがアクセスされるようになっており、バスサイクルに
入ってアドレス・ストローブ信号▲▼が立ち下がっ
てからすぐに立ち上げられてしまうと、▲▼信号
や▲▼信号の長さが不充分となる。そのため、多
重選択状態が発生し、これによってメモリのデータが破
壊されてしまったり、正常なデータの書込みが行なわれ
なかったりするおそれがある。このようなメモリのデー
タ破壊がプログラムの暴走によるものか、ハード的な原
因によるものかを知りたい場合、あるいはメモリにデー
タがどこまで書かれたか知りたいような場合、メモリの
データが破壊されているとそのようなことができないと
いう不都合がある。However, in a memory board including a dynamic RAM, a row address / strobe signal ▲ ▼ and a column address / strobe signal ▲ ▼ are formed based on the address / strobe signal ▲ ▼ to access the memory. Therefore, if the address strobe signal ▲ ▼ falls in the bus cycle and then rises immediately, the length of the ▲ ▼ signal or ▲ ▼ signal becomes insufficient. Therefore, there is a possibility that a multiple selection state occurs, which may destroy the data in the memory or prevent normal data writing. If you want to know if this kind of memory data destruction is due to a program runaway or a hardware cause, or if you want to know how much data was written to memory, it is said that the memory data is corrupted. There is the inconvenience of not being able to do that.
上記の場合バスサイクルが始まってからリセット信号が
入ったときは、そのバスサイクルが終了するまでMPU
からの諸出力信号をアドレス・ストローブ信号でラッチ
する回路をメモリボードに設けてバスサイクルを保証す
ることも考えられる。しかし、このような方法による
と、メモリボードの数の多いシステムでは、メモリボー
ドごとにラッチ回路等を設けなければならないため、設
計の負担が大きくなり、オーバヘッドの点で不利にな
る。In the above case, if a reset signal is input after the bus cycle starts, the MPU will continue until the bus cycle ends.
It is also conceivable to provide a circuit for latching various output signals from the memory with the address strobe signal on the memory board to guarantee the bus cycle. However, according to such a method, in a system having a large number of memory boards, it is necessary to provide a latch circuit or the like for each memory board, which increases the design burden and is disadvantageous in terms of overhead.
アドレス・ストローブ信号を形成することのできるMP
Uは、昭和58年9月に(株)日立製作所より発行され
た「日立マイクロコンピュータデータブック:8ビット
・16ビットマルチチップ」のP.653〜P.744
に記載されている。MP capable of forming address strobe signal
U is a P. of "Hitachi Microcomputer Data Book: 8-bit / 16-bit multi-chip" issued by Hitachi, Ltd. in September 1983. 653-P. 744
It is described in.
[発明の目的] この発明は、プログラム開発時のプログラム暴走の際に
行なわれるリセットは、パワーオン・リセットのように
必ずしもMPUを直ちに初期状態にしてやる必要がない
ことに着目し、バスサイクルが開始されてからリセット
信号が入って来てもそのバスサイクルだけは保証し、例
えばメモリに書き込まれているデータや書込み中のデー
タの破壊を防止できるようなシステムを提供することに
ある。[Object of the Invention] The present invention focuses on the fact that a reset performed when a program goes out of control during program development does not necessarily require the MPU to be immediately initialized, unlike a power-on reset. Even if a reset signal comes in after that, only the bus cycle is guaranteed, and for example, it is to provide a system capable of preventing the destruction of the data written in the memory or the data being written.
この発明の前記ならびにそのほかの目的と新規な特徴に
ついては、本明細書の記述および添附図面から明かにな
るであろう。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.
[発明の概要] 本願において開示される発明のうち代表的なものの概要
を説明すれば、下記のとおりである。[Outline of Invention] The outline of a typical invention disclosed in the present application will be described below.
すなわち、MPUから出力されるバスサイクル開始信号
と外部から供給されるリセット信号を、それぞれ半周期
位相の異なるクロック信号でサンプリングし、バスサイ
クル開始信号およびリセット信号のいずれのサンプリン
グにおいても、どちらか早く発生した信号を優先的に取
り扱い、バスサイクルの開始の方が早いときはそのバス
サイクルの終了を待ってリセット信号をMPUに入力さ
せるとともに、リセット信号の方が早いときはMPUか
ら出力されるバスサイクル開始信号をメモリボード等へ
伝達させないようにすることによって、バスサイクルが
開始してからリセット信号が入った場合には、実行中の
バスサイクルは保証し、これによってシステムを構成す
るダイナミックRAMのデータ破壊等を防止するという
上記目的を達成するものである。That is, the bus cycle start signal output from the MPU and the reset signal supplied from the outside are sampled by clock signals having different half cycle phases, and whichever of the bus cycle start signal and the reset signal is sampled, whichever comes first. The generated signal is treated preferentially. When the bus cycle starts earlier, the reset signal is input to the MPU after waiting for the end of the bus cycle, and when the reset signal is earlier, the bus output from the MPU. By not transmitting the cycle start signal to the memory board, etc., when the reset signal is input after the bus cycle starts, the bus cycle in execution is guaranteed, and the dynamic RAM Achieve the above purpose of preventing data destruction It is intended.
[実施例1] 第2図は本発明を日立製作所製HD68000のような
MPUを有するマイクロコンピュータ・システムに適用
した場合のバスマスタボードの概略構成の一例を示すも
のである。[Embodiment 1] FIG. 2 shows an example of a schematic configuration of a bus master board when the present invention is applied to a microcomputer system having an MPU such as HD68000 manufactured by Hitachi, Ltd.
図において、1は特に制限されないがHD68000の
ような非同期方式のMPUで、このMPU1は発振回路
2から供給されるシステムクロックφcによって動作さ
れ、リセット端子RSに外部から非同期のリセット信号
▲▼が入力されると、クロックφcの立上が
りに同期してこれを取り込みアドレス・ストローブ信号
▲▼のようなバスサイクル開始信号を制御するよう
にされている。In the figure, 1 is not particularly limited, but is an asynchronous MPU such as HD 68000, and this MPU 1 is operated by the system clock φc supplied from the oscillation circuit 2, and an asynchronous reset signal ▲ ▼ is input to the reset terminal RS from the outside. Then, in synchronization with the rising edge of the clock φc, the clock φc is taken in and the bus cycle start signal such as the address strobe signal () is controlled.
この実施例では、外部から供給される普通のリセット信
号▲▼は、D型フリップフロップFF1のデ
ータ入力端子Dに入力されている。このフリップフロッ
プFF1のクロック端子CLKには、発振回路OSCか
ら出力されるシステムクロックφcをインバータINV
1とINV2で2度反転して形成したサンプリングクロ
ックφs2が印加され、このサンプリングクロックφs
2の立上がりに同期して、リセット信号▲▼
を取り込むようにされている。フリップフロップFF1
のクリア端子CLRは、プルアップ抵抗Rを介して電源
電圧Vccに接続され、常時ハイレベルに固定されてい
る。プリセット端子PRには、後述のゲート回路G3の
出力信号が印加されている。In this embodiment, a normal reset signal () supplied from the outside is input to the data input terminal D of the D-type flip-flop FF 1 . The system clock φc output from the oscillator circuit OSC is fed to the inverter INV at the clock terminal CLK of the flip-flop FF 1.
A sampling clock φs 2 formed by inverting twice with 1 and INV 2 is applied.
Reset signal ▲ ▼ in synchronization with the rise of 2
Is designed to take in. Flip-flop FF 1
The clear terminal CLR of is connected to the power supply voltage Vcc through the pull-up resistor R and is always fixed at a high level. An output signal of the gate circuit G 3 described later is applied to the preset terminal PR.
上記フリップフロップFF1の出力Qは、インバートN
ANDゲート回路G1の一方の入力端子に供給され、こ
のゲート回路G1の他方の入力信号(ロウレベル)によ
ってゲートが開かれると、インバートNORゲート回路
G2の一方の入力端子に供給される。ゲート回路G2の
他方の入力端子には、パワーオン・リセット信号のよう
な最優先のリセット信号が入力されており、ゲート回路
G1が開かれて普通のリセット信号▲▼が入
って来るか、パワーオン・リセット信号が入って来る
と、ゲート回路G2の出力信号がロウレベルにされてマ
イクロプロセッサMPUのリセット端子に供給され、リ
セットをかけるようにされている。The output Q of the flip-flop FF 1 is an invert N
It is supplied to one input terminal of the AND gate circuit G 1 , and when the gate is opened by the other input signal (low level) of this gate circuit G 1 , it is supplied to one input terminal of the inverted NOR gate circuit G 2 . To the other input terminal of the gate circuit G 2 , a reset signal having the highest priority such as a power-on reset signal is input, and the gate circuit G 1 is opened to receive an ordinary reset signal ▲ ▼. When a power-on / reset signal is input, the output signal of the gate circuit G 2 is set to low level and supplied to the reset terminal of the microprocessor MPU for resetting.
また、上記マイクロプロセッサMPUから出力されるア
ドレス・ストローブ信号▲▼のようなバスサイクル
開始信号は、D型フリップフロップFF2のデータ入力
端子Dに供給されている。このフリップフロップFF2
のクロック端子CLKには、システムクロック信号φc
をインバータINV1で反転して形成したサンプリング
クロック信号φs1が印加されており、サンプリングク
ロック信号φs1の立上がりに同期して上記バスサイク
ル開始信号(▲▼)がフリップフロップFF2に取
り込まれる。Further, a bus cycle start signal such as the address strobe signal () output from the microprocessor MPU is supplied to the data input terminal D of the D-type flip-flop FF 2 . This flip-flop FF 2
System clock signal φc
Is applied by the inverter INV 1 to form a sampling clock signal φs 1, and the bus cycle start signal (▲ ▼) is taken into the flip-flop FF 2 in synchronization with the rising of the sampling clock signal φs 1 .
従って、外部から供給される上記リセット信号▲
▼とMPUから出力されるバスサイクル開始信号
(▲▼)は、サンプリングクロックφs1とφs2
とによって、1/2周期ずれたタイミングで取り込まれ
るようにされている。Therefore, the reset signal supplied from the outside
The bus cycle start signal (▲ ▼) output from ▼ and MPU are sampling clocks φs 1 and φs 2.
And are taken in at a timing shifted by 1/2 cycle.
上記フリップフロップFF2のクリア端子CLR端子
は、フリップフロップFF1と同様にプルアップ抵抗R
を介して電源電圧Vccに接続され、ハイレベルに固定さ
れている。また、プリセット端子PRには、上記ゲート
回路G2の出力信号が印加されている。The clear terminal CLR terminal of the flip-flop FF 2 has a pull-up resistance R as in the flip-flop FF 1.
It is connected to the power supply voltage Vcc via and is fixed at a high level. The output signal of the gate circuit G 2 is applied to the preset terminal PR.
そして、このフリップフロップFF2の出力とQが、
前記ゲート回路G1および次に説明するゲート回路G3
の入力端子にゲート開閉制御信号としてそれぞれ供給さ
れるようにされている。The output of this flip-flop FF 2 and Q are
The gate circuit G 1 and the gate circuit G 3 described next
Are respectively supplied to the input terminals as gate opening / closing control signals.
ゲート回路G3は、インバータNAND回路で構成され
ており、他方の入力端子にはMPUから出力されるバス
サイクル開始信号(▲▼)が供給されている。この
ゲート回路G3の出力信号が真のバスサイクル開始信号
▲▼prとして周辺デバイスに対して供給されるよ
うにされている。The gate circuit G 3 is composed of an inverter NAND circuit, and the bus cycle start signal (▲ ▼) output from the MPU is supplied to the other input terminal. The output signal of the gate circuit G 3 is supplied to the peripheral device as a true bus cycle start signal ▲ ▼ pr.
次に、この実施例の動作について説明する。Next, the operation of this embodiment will be described.
上述したように、リセット信号▲▼とバスサ
イクル開始信号(▲▼)は、それぞれ1/2周期ず
れたサンプリングクロック信号φs2とφs1によって
フリップフロップFF1のFF2においてサンプリング
されるようになっている。つまり、システムクロック信
号φcの立下がりに同期してバスサイクル開始信号(▲
▼)を、またシステムクロック信号φcの立上がり
に同期してリセット信号▲▼を常にサンプリ
ングすることになる。As described above, the reset signal ▲ ▼ and the bus cycle start signal (▲ ▼) are sampled in FF 2 of the flip-flop FF 1 by the sampling clock signals φs 2 and φs 1 which are shifted by 1/2 cycle. ing. That is, in synchronization with the fall of the system clock signal φc, the bus cycle start signal (▲
)) And the reset signal ▲ ▼ are always sampled in synchronization with the rise of the system clock signal φc.
従って、バスサイクル開始信号(▲▼)がロウレベ
ルに変化する前にリセット信号▲▼がロウレ
ベルに変化されるとフリップフロップFF2のPRがロ
ウレベル、CLRはハイレベルの為、その出力Qはハイ
レベル、また出力はロウレベルになる。そのため、ゲ
ート回路G3の出力(バスサイクル開始信号▲▼p
r)はハイレベルにされてフリップフロップFF1が有
効にされ、システムクロック信号φcの立上がりに同期
して、リセット信号▲▼のロウレベルがサン
プリングされる。このとき、フリップフロップFF2の
出力(ロウレベル)によってゲート回路G1が開かれ
ているため、リセット信号はゲート回路G1,G2を通
ってMPUのリセット端子に供給され、リセットをかけ
るとともに、ゲート回路G2の出力がロウレベルに変化
されると、これによってフリップフロップFF2のプリ
セット端子PSがロウレベルにされるため、FF2の出
力Qがハイレベルに固定される。Therefore, when the reset signal ▲ ▼ is changed to the low level before the bus cycle start signal (▲ ▼) is changed to the low level, the output Q of the flip-flop FF 2 is high because the PR of the flip-flop FF 2 is low and the CLR is high. , And the output goes low. Therefore, the output of the gate circuit G 3 (bus cycle start signal ▲ ▼ p
r) is set to the high level to enable the flip-flop FF 1 and the low level of the reset signal ▲ ▼ is sampled in synchronization with the rise of the system clock signal φc. At this time, since the gate circuit G 1 is opened by the output (low level) of the flip-flop FF 2 , the reset signal is supplied to the reset terminal of the MPU through the gate circuits G 1 and G 2 and resets. When the output of the gate circuit G 2 is changed to the low level, the preset terminal PS of the flip-flop FF 2 is set to the low level, and the output Q of the FF 2 is fixed to the high level.
また、リセット信号のサンプリングと同時にバスサイク
ル開始信号がロウレベルに変化したとしても、リセット
信号(ロウレベル)のサンプリングの1/2周期後に、
フリップフロップFF2がバスサイクル開始信号のサン
プリングを行なうようになているため、その前にゲート
回路G2のロウレベル出力によってフリップフロップF
F2がプリセットされ、サンプリングが行なえなくな
り、FF2の出力Qはハイレベルに固定され、ゲート回
路G3が閉じられる。Further, even if the bus cycle start signal changes to the low level at the same time as the sampling of the reset signal, after the 1/2 cycle of the sampling of the reset signal (low level),
Since the flip-flop FF 2 is adapted to perform sampling of the bus cycle start signal, the flip-flop F 2 is output by the low level output of the gate circuit G 2 before that.
F 2 is preset, sampling cannot be performed, the output Q of FF 2 is fixed at high level, and the gate circuit G 3 is closed.
その結果、一旦リセット信号を受け付けるとそれが解除
されるまですなわちリセット信号▲▼がハイ
レベルに変化してそれがラッチされるまで、ゲート回路
G3から周辺デバイスに対しバスサイクル開始信号▲
▼prが出力されることはない。As a result, once the reset signal is accepted, until the reset signal is released, that is, until the reset signal ▲ ▼ changes to the high level and is latched, the gate circuit G 3 sends the bus cycle start signal ▲ to the peripheral device.
▼ Pr is never output.
一方、第3図のように、バスサイクル開始信号(▲
▼)の立下がりの方がリセット信号▲▼の立
上がりよりも早く、フリップフロップFF2においてシ
ステムクロック信号φcの立下がりに同期して、バスサ
イクル開始信号(▲▼)のロウレベルが先にサンプ
リングされたとする。するとフリップフロップFF2の
の出力Qがロウレベルに変化されてゲート回路G3から
周辺デバイスに対し、バスサイクル開始信号ASpr
(ロウレベル)が伝えられるとともに、フリップフロッ
プFF2のの出力がハイレベルに変化されてゲート回
路G1を閉じる。そのため、その後フリップフロップF
F1によってサンプリングされたリセット信号がMPU
のリセット端子RSに伝えられなくなる。その結果、先
にバスサイクル開始信号(▲▼)のロウレベルがサ
ンプリングされると、それがハイレベルに立ち上がって
ゲート回路G1が開かれるまで、MPUに対し普通のリ
セットはかからないようにされ、開始されたバスサイク
ルは保証される。On the other hand, as shown in FIG. 3, a bus cycle start signal (▲
The falling edge of ▼) is earlier than the rising edge of the reset signal ▲ ▼, and the low level of the bus cycle start signal (▲ ▼) is sampled earlier in the flip-flop FF 2 in synchronization with the falling edge of the system clock signal φc. Suppose Then, the output Q of the flip-flop FF 2 is changed to the low level, and the gate circuit G 3 sends the bus cycle start signal ASpr to the peripheral device.
(Low level) is transmitted, and the output of the flip-flop FF 2 is changed to High level to close the gate circuit G 1 . Therefore, after that flip-flop F
The reset signal sampled by F 1 is the MPU.
Cannot be transmitted to the reset terminal RS of. As a result, when the low level of the bus cycle start signal (▲ ▼) is sampled first , the MPU is prevented from being normally reset until it rises to the high level and the gate circuit G 1 is opened. The bus cycle performed is guaranteed.
ただし、この実施例では、パワーオン・リセットのよう
な最優先のリセット信号は、ゲート回路G2より入れら
れるようにされているため、これが入った場合にはMP
Uは直ちにリセットされ、バスサイクルは中断される。However, in this embodiment, since the highest priority reset signal such as power-on reset is inputted from the gate circuit G 2 , when this is inputted, MP is inputted.
U is immediately reset and the bus cycle is interrupted.
なお、上記実施例では、ゲート回路G3の出力信号がフ
リップフロップFF1のプリセット端子PSに供給され
ている。そのため、周辺デバイスにバスサイクル開始信
号▲▼prが供給されるとフリップフロップFF1
の出力Qがハイレベルに固定され、リセット信号▲
▼がサンプリングされなくなるようにされる。こ
れによって、MPUから出力されるバスサイクル開始信
号(▲▼)がロウレベルからハイレベルに変化され
てゲート回路G1が開かれてから1/2周期後にフリッ
プフロップFF1の出力Qがロウレベルからハイレベル
に変化するような状態が発生して、MPUのリセット端
子RSに規定されている“L”期間の条件を満足しない
ような信号が印加されてMPUが誤動作するのを防止し
ている。In the above embodiment, the output signal of the gate circuit G 3 is supplied to the preset terminal PS of the flip-flop FF 1 . Therefore, when the bus cycle start signal ▲ ▼ pr is supplied to the peripheral device, the flip-flop FF 1
Output Q is fixed to high level and reset signal ▲
▼ is prevented from being sampled. As a result, the bus cycle start signal (▲ ▼) output from the MPU is changed from the low level to the high level and the output Q of the flip-flop FF 1 is changed from the low level to the high level 1/2 cycle after the gate circuit G 1 is opened. This prevents the MPU from malfunctioning due to the application of a signal that does not satisfy the condition of the "L" period defined in the reset terminal RS of the MPU when the state of changing to the level occurs.
ただし、この実施例では、フリップフロップFF1,ゲ
ート回路G1およびG2における遅延時間の和が1/2
周期よりも短いという条件が必要であり、これらの回路
は高速動作可能なTTL回路やECL回路で構成するの
が望ましい。However, in this embodiment, the sum of delay times in the flip-flop FF 1 and the gate circuits G 1 and G 2 is 1/2.
The condition is required to be shorter than the cycle, and it is desirable that these circuits are composed of a TTL circuit or an ECL circuit that can operate at high speed.
また、上記実施例では、MPUが周辺デバイスとハンド
シェイク方式で信号のやりとりを行なうようにされてお
り、バスサイクルの方が早かった場合周辺デバイスから
MPUへ終了信号(DTACK)が戻って来るまでリセ
ット信号の取込みを待たせておくようになっている。そ
のため、周辺デバイスの故障や暴走によって周辺デバイ
スからの応答がかなったような場合、MPUはウェイト
状態となりその間にリセット信号がなくなってしまうお
それがある。そこで上記実施例では、カウンタを内蔵す
るバス監視回路10が設けられており、この回路によっ
てバスを監視し、バスサイクル開始信号(▲▼p
r)がロウレベルに変化されると内部のカウンタが計数
を開始して、例えば数マイクロ秒経過しても周辺デバイ
スから終了信号(DTACK)が戻って来ないときは、
バスエラー信号BERRを発生してMPUに供給し、バ
スサイクルを終了させるようになっている。Further, in the above-described embodiment, the MPU exchanges signals with the peripheral device by the handshake method, and when the bus cycle is earlier, until the end signal (DTACK) is returned from the peripheral device to the MPU. It is designed to wait for the reset signal to be fetched. Therefore, when the response from the peripheral device is correct due to the failure or runaway of the peripheral device, the MPU may enter the wait state and the reset signal may disappear during that time. Therefore, in the above-described embodiment, the bus monitoring circuit 10 having a built-in counter is provided, and the bus is monitored by this circuit, and the bus cycle start signal (▲ ▼ p
When r) is changed to the low level, the internal counter starts counting, and for example, when the end signal (DTACK) is not returned from the peripheral device even after several microseconds,
A bus error signal BERR is generated and supplied to the MPU to end the bus cycle.
しかして、通常のスイッチによるリセット信号の入力の
際には、リセット信号のパルス幅として数十マイクロ秒
以上が保証されるので、上記のごとく例え周辺デバイス
から終了信号(DTACK)が戻って来ない場合であっ
ても、バスサイクル中リセット信号を待たせておいても
バス監視回路10によってリセット信号がなくなる前に
バスサイクルが終了され、リセット信号がMPUに受け
付けられるようになる。When a reset signal is input by a normal switch, the pulse width of the reset signal is guaranteed to be several tens of microseconds or more, so that the end signal (DTACK) is not returned from the peripheral device as described above. Even in such a case, even if the reset signal is kept waiting during the bus cycle, the bus cycle is terminated before the reset signal disappears by the bus monitoring circuit 10, and the reset signal is accepted by the MPU.
さらに、上記実施例では、外部から供給されるリセット
信号▲▼をD型フリップフロップFF1でク
ロックに同期して、サンプリングを行なうようにされて
いるが、フリップフロップFF1のサンプリングクロッ
クφs2の立上がりとリセット信号▲▼の変
化が同時に発生すると、フリップフロップFF1の出力
Qの確定が定常の遅延時間よりも大幅に遅れるおそれが
あるので、その場合には、上記のようなD型フリップフ
ロップを2段接続して、出力の変化の遅れによる誤動作
を防止するようにしてもよい。Further, in the above-described embodiment, the D-type flip-flop FF 1 performs sampling in synchronization with the reset signal ▲ ▼ supplied from the outside, but the sampling clock φs 2 of the flip-flop FF 1 is changed. If the rising and the change of the reset signal ▲ ▼ occur at the same time, the determination of the output Q of the flip-flop FF 1 may be significantly delayed from the steady delay time. In that case, the D-type flip-flop as described above is used. May be connected in two stages to prevent malfunction due to delay in output change.
[効果] (1)バスサイクル実行中にリセット信号が入力される
と、直ちにバスサイクルを強制的に中止するように構成
されたマイクロプロセッサを有するシステムにおいて、
MPUから出力されるバスサイクル開始信号と外部から
供給されるリセット信号を、それぞれ半周期位相のずれ
たクロック信号でサンプリングし、バスサイクル開始信
号およびリセット信号のいずれのサンプリングにおいて
もどちらか早く発生した信号を優先的に取り扱い、バス
サイクルの開始の方が早いときはそのバスサイクルの終
了を待ってリセット信号をMPUに入力させるととも
に、リセット信号の方が早いときは、MPUから出力さ
れるバスサイクル開始信号をメモリボード等へ伝達させ
ないようにしたので、バスサイクルが開始してからリセ
ット信号が入った場合には、実行中のバスサイクルは保
証されるようになるという作用により、システムを構成
するダイナミックRAMのデータ破壊を防止することが
できるという効果がある。[Effects] (1) In a system having a microprocessor configured to forcibly cancel a bus cycle immediately when a reset signal is input during execution of the bus cycle,
The bus cycle start signal output from the MPU and the reset signal supplied from the outside are sampled with clock signals with a half-cycle phase shift, and whichever of the bus cycle start signal and the reset signal occurs earlier, whichever occurs first. Signals are handled with priority, and when the bus cycle starts earlier, wait for the end of the bus cycle to input the reset signal to the MPU, and when the reset signal is earlier, the bus cycle output from the MPU. Since the start signal is not transmitted to the memory board etc., if the reset signal is input after the bus cycle has started, the bus cycle being executed is guaranteed and the system is configured. The effect that can prevent the data destruction of the dynamic RAM That.
(2)MPUから出力されるバスサイクル開始信号と外
部から供給されるリセット信号を、それぞれ半周期位相
のずれたクロック信号でサンプリングし、バスサイクル
開始信号およびリセット信号のいずれのサンプリングに
おいても、どとらか早く発生した信号を優先的に取り扱
い、バスサイクルの開始の方が早いときはそのバスサイ
クルの終了を待ってリセット信号をMPUに入力させる
とともに、リセット信号の方が早いときはMPUから出
力されるバスサイクル開始信号をメモリボード等へ伝達
させないようにする回路を、MPUを備えたバスマスタ
ボードに設けるようにしたので、一つのバスマスタボー
ドと複数個のメモリボード等によって構成されているシ
ステムおいて、メモリボード側に実行中のバスサイクル
を保証する回路を設ける場合に比べて設計が容易とな
り、オーバーヘッドが低減されるという効果がある。(2) The bus cycle start signal output from the MPU and the reset signal supplied from the outside are sampled by clock signals whose half-cycle phases are different from each other, and in either sampling of the bus cycle start signal and the reset signal, Priority is given to signals that occur quickly, and when the bus cycle starts earlier, the reset signal is input to the MPU after the end of the bus cycle, and when the reset signal is earlier, it is output from the MPU. Since the circuit that prevents the bus cycle start signal from being transmitted to the memory board or the like is provided in the bus master board including the MPU, a system configured by one bus master board and a plurality of memory boards or the like is provided. And a circuit that guarantees the bus cycle being executed on the memory board side. Kicking design is facilitated compared to the case, there is an effect that the overhead is reduced.
以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は上記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない。例えば実施例では、MP
Uを備えたバスマスターボードとメモリボード等によっ
てシステムが構成されているものについて説明したが、
この発明はこれに限定されるものではない。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 various modifications can be made without departing from the scope of the invention. Nor. For example, in the embodiment, MP
I explained that the system is composed of a bus master board equipped with U and a memory board.
The present invention is not limited to this.
[利用分野] 以上の説明では主として本発明者によってなされた発明
をその背景となった利用分野である非同期式の6800
0系のMPUを用いたマイクロコンピュータ・システム
に適用したものについて説明したが、この発明はそれに
限定されるものでなく、8086系の非同期式MPUや
同期式のMPUを用いたシステムにも利用できるもので
ある。[Field of Use] In the above description, the invention made by the present inventor is a field of use which is the background of the invention and is an asynchronous 6800.
Although the description has been given of the one applied to the microcomputer system using the 0-system MPU, the present invention is not limited thereto and can be applied to the system using the 8086-system asynchronous MPU or the synchronous MPU. It is a thing.
第1図はマイクロコンピュータシステムにおける各種信
号のタイミングを示すタイミングチャート、 第2図は本発明の一実施例を示すブロック構成図、 第3図はそのタイミングチャート、 である。 1……MPU(マイクロプロセッサ)、2……発振回
路、10……バス監視回路、FF1,FF2……フリッ
プフロップ(サンプリング回路)、G1〜G3……ゲー
ト回路(信号伝達回路)、INV1,INV2……イン
バータ(クロック発生回路)、OSC……発振回路、▲
▼……リセット信号、▲▼……バスサイ
クル開始信号(アドレス・ストローブ信号)。FIG. 1 is a timing chart showing timings of various signals in a microcomputer system, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 3 is a timing chart thereof. 1 ...... MPU (microprocessor), 2 ...... oscillation circuit, 10 ...... bus monitor circuit, FF 1, FF 2 ...... flip-flop (sampling circuit), G 1 ~G 3 ...... gate circuit (signal transmission circuit) , INV 1 , INV 2 ... Inverter (clock generation circuit), OSC ... Oscillation circuit, ▲
▼ …… Reset signal, ▲ ▼ …… Bus cycle start signal (address strobe signal).
Claims (3)
ロセッサと周辺デバイスを含むマイクロコンピュータ・
システムにおいて、 上記マイクロプロセッサの内部を初期状態にさせるため
のリセット信号を第1のクロック信号に同期して取り込
むサンプリング回路と、 上記サンプリング回路とマイクロプロセッサのリセット
端子との間に設けられ、上記リセット信号を上記マイク
ロプロセッサに対して供給したり遮断したりするための
第1ゲート回路と、 上記マイクロプロセッサの制御信号出力端子に接続さ
れ、該出力端子から出力されるバスサイクル開始を示す
第1の制御信号を上記周辺デバイスに対して供給したり
遮断したりするための第2ゲート回路と、 上記マイクロプロセッサの制御信号出力端子に接続さ
れ、該出力端子から出力される第1の制御信号を上記第
1のクロック信号とは位相の異なる第2のクロック信号
に同期して取り込むとともに、上記第1ゲート回路を通
過したリセット信号を受けるようにされ、該リセット信
号と上記第1の制御信号のいずれが早かったかを検出
し、リセット信号の方が早いときは上記第2ゲート回路
を遮断させる第2の制御信号を、また第1の制御信号の
方が早いときは上記第1ゲート回路を遮断させる第3の
制御信号を形成する優先判定回路と、 タイマ用のカウンタを内蔵し、バスサイクル開始を示す
信号を監視して上記カウンタにてバスサイクルの継続時
間を計時し、周辺デバイスから終了信号が戻ってこない
ことによりバスサイクルが所定時間以上継続した場合に
上記マイクロプロセッサに対してバスサイクルを終了さ
せる信号を供給するバス監視回路と、 を備えてなることを特徴とするマイクロコンピユータ・
システム。1. A microcomputer including a microprocessor and peripheral devices connected to each other via a bus.
In the system, a reset circuit is provided between the sampling circuit and a reset terminal of the microprocessor, the sampling circuit taking in a reset signal for initializing the inside of the microprocessor in synchronization with the first clock signal. A first gate circuit for supplying and blocking a signal to and from the microprocessor; and a first gate circuit connected to a control signal output terminal of the microprocessor and indicating the start of a bus cycle output from the output terminal. A second gate circuit for supplying and blocking a control signal to and from the peripheral device, and a first control signal connected to a control signal output terminal of the microprocessor and output from the output terminal. When it is taken in in synchronization with the second clock signal having a phase different from that of the first clock signal, Also, the reset signal passed through the first gate circuit is received, and which of the reset signal and the first control signal is earlier is detected, and when the reset signal is earlier, the second gate is detected. Includes a priority determination circuit that forms a second control signal that shuts off the circuit, and a third control signal that shuts off the first gate circuit when the first control signal is earlier, and a timer counter However, by monitoring the signal indicating the start of the bus cycle, the counter counts the duration of the bus cycle, and if the end signal is not returned from the peripheral device And a bus monitoring circuit for supplying a signal for terminating the bus cycle, and a microcomputer.
system.
ロック入力端子と状態制御入力端子と非反転出力端子お
よび反転出力端子とを備えたフリップフロップからな
り、上記データ入力端子に上記第1の制御信号が、また
上記クロック入力端子に上記第2のクロック信号が、さ
らに上記状態制御入力端子に上記第1ゲート回路を通過
したリセット信号がそれぞれ入力されるとともに、上記
非反転出力端子および反転出力端子からの出力信号が上
記第1ゲート回路および第2ゲート回路へ第2および第
3の制御信号としてそれぞれ供給されるように構成され
てなることを特徴とする特許請求の範囲第1項記載のマ
イクロコンピュータ・システム。2. The priority determination circuit comprises a flip-flop having a data input terminal, a clock input terminal, a state control input terminal, a non-inverting output terminal and an inverting output terminal, and the data input terminal includes the first flip-flop. A control signal is input to the clock input terminal, the second clock signal is input to the state control input terminal, and a reset signal passing through the first gate circuit is input to the state control input terminal. The output signal from the terminal is configured to be supplied to the first gate circuit and the second gate circuit as second and third control signals, respectively. Microcomputer system.
号は、アドレス・ストローブ信号であることを特徴とす
る特許請求の範囲第1項または第2項記載のマイクロコ
ンピュータ・システム。3. The microcomputer system according to claim 1, wherein said first control signal indicating the start of a bus cycle is an address strobe signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59067688A JPH0664535B2 (en) | 1984-04-06 | 1984-04-06 | Microcomputer system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59067688A JPH0664535B2 (en) | 1984-04-06 | 1984-04-06 | Microcomputer system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60211545A JPS60211545A (en) | 1985-10-23 |
| JPH0664535B2 true JPH0664535B2 (en) | 1994-08-22 |
Family
ID=13352174
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59067688A Expired - Lifetime JPH0664535B2 (en) | 1984-04-06 | 1984-04-06 | Microcomputer system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0664535B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4750564B2 (en) * | 2006-01-26 | 2011-08-17 | 富士通セミコンダクター株式会社 | Reset signal generation circuit |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5839332A (en) * | 1981-09-02 | 1983-03-08 | Toshiba Corp | Keyboard device |
-
1984
- 1984-04-06 JP JP59067688A patent/JPH0664535B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60211545A (en) | 1985-10-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1543604B (en) | Data processing system with on-chip background debugging system and related method | |
| US4796211A (en) | Watchdog timer having a reset detection circuit | |
| US4575644A (en) | Circuit for prevention of the metastable state in flip-flops | |
| US20040246810A1 (en) | Apparatus and method for reducing power consumption by a data synchronizer | |
| US7639764B2 (en) | Method and apparatus for synchronizing data between different clock domains in a memory controller | |
| JPH0664535B2 (en) | Microcomputer system | |
| JP3018404B2 (en) | Microprocessor | |
| JPH1185304A (en) | Clock input control circuit | |
| JPH0143392B2 (en) | ||
| US6408353B1 (en) | Microcomputer having sampling function of retry requesting signal in syncronization with strobe signal | |
| US7065669B2 (en) | System and method for providing a write strobe signal to a receiving element before both an address and data signal | |
| US5999742A (en) | Dual latch data transfer pacing logic using a timer to maintain a data transfer interval | |
| JP3565603B2 (en) | Microcontroller system and microcontroller | |
| JP2786732B2 (en) | Serial / parallel conversion circuit | |
| KR890004811Y1 (en) | Interface circuit of microprocessor and bus | |
| JP2666268B2 (en) | Pulse generation circuit | |
| JPS615363A (en) | shared memory controller | |
| JPS6359167B2 (en) | ||
| JPH083775B2 (en) | Power-on reset device | |
| JPH0767288B2 (en) | Gate pulse controller for thyristor inverter | |
| JPS62211763A (en) | Synchronous output circuit | |
| JPS597973B2 (en) | data processing equipment | |
| JPH0676083A (en) | Timer circuit | |
| JPH09212201A (en) | Control circuit for production equipment | |
| JPH056336A (en) | Method for controlling bus |