JPS6254343A - Data processor - Google Patents

Data processor

Info

Publication number
JPS6254343A
JPS6254343A JP60194236A JP19423685A JPS6254343A JP S6254343 A JPS6254343 A JP S6254343A JP 60194236 A JP60194236 A JP 60194236A JP 19423685 A JP19423685 A JP 19423685A JP S6254343 A JPS6254343 A JP S6254343A
Authority
JP
Japan
Prior art keywords
signal
microprocessor
cpu
reset
signal line
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
JP60194236A
Other languages
Japanese (ja)
Inventor
Koji Iguchi
井口 香二
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP60194236A priority Critical patent/JPS6254343A/en
Publication of JPS6254343A publication Critical patent/JPS6254343A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reset a microprocessor without intermission of I/O operation and to prevent a read/write memory from being damaged by inputting a reset signal to the microprocessor at the detection of the stop of the microprocessor. CONSTITUTION:If a RESETA signal on a signal line 101 is set up to '0' by the operation of a switch 1, a flip flop (FF) 4 is set up at the trailing edge of the RESETA signal. An FF 5 is set up by the output of the FF 4 and a clock signal outputted from a CPU 11. An output signal INTA on a signal line 105 is inputted to an interruption control circuit 10 and the CPU 11 starts interruption processing on the basis of the RESETA signal. The execution of a holding instruction built in the final stage of the processing turns the CPU 11 to stop status and then reset status. Thereby, no I/O operation is executed and the contents of the read/write memory is not damaged.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はデータ処理装置に使用されるマイクロプロセサ
(CPU)のリセット信号制御に関し、特にマイクロプ
ロセサ(CPU)があらかじめ指定されたプログラムに
従って停止した時点で、マイクロプロセサ(CPU)の
命令実行に非同期に入力されたリセット信号を有効化す
る方式に関する。
Detailed Description of the Invention (Field of Industrial Application) The present invention relates to reset signal control of a microprocessor (CPU) used in a data processing device, and in particular, the present invention relates to reset signal control of a microprocessor (CPU) used in a data processing device. The present invention relates to a method for validating a reset signal that is input asynchronously to the execution of instructions in a microprocessor (CPU).

(従来の技術) マイクロプロセサ(CPU)を使用したデータ処理装置
では、ハードウェアの初期テストプログラムやリード/
ライトメモリ用のプログラムローダを除いては、大部分
の処理プログラムがリード/ライトメモリ上に格納され
ている。
(Prior art) In data processing devices using microprocessors (CPUs), initial test programs for hardware and read/write
Most processing programs are stored on the read/write memory, except for the program loader for the write memory.

従来、データ処理装置のリセット信号はマイクロプロセ
サの動作とは非同期に入力され、無条件に装置がリセッ
トされていた。
Conventionally, a reset signal of a data processing device was input asynchronously to the operation of a microprocessor, and the device was reset unconditionally.

(発明が解決しようとする問題点) 上述した従来のデータ処理装置では、リセット信号がマ
イクロプロセサ(CPU)の動作とは非同期に入力され
るため、タイミングによってはマイクロプロセサ(CP
U)のリード/ライトメモリへの書込みアクセス動作が
メモリ素子のAC規格を満足せず、途中で終了すること
があるため、メモリの内容が破壊されるという欠点があ
る。
(Problems to be Solved by the Invention) In the conventional data processing device described above, the reset signal is input asynchronously to the operation of the microprocessor (CPU), so depending on the timing, the reset signal may be input to the microprocessor (CPU).
There is a drawback that the write access operation to the read/write memory in U) does not satisfy the AC standard of the memory element and may be terminated midway, resulting in destruction of the contents of the memory.

本発明の目的は、リセット信号をマイクロプロセサ(C
PU)に割込み信号として通知するとともに、リセット
信号による割込み報告中であることを保持し、割込み信
号によって割込み処理プログラムを起動し、これによっ
て割込み処理の終了時点で命令によりマイクロプログラ
ムを停止(ホールド)させ、マイクロプロセサが割込み
ルーチンを実行した結果、停止状態にすることにより上
記欠点を除去し、最終的にはリセット信号をマイクロプ
ロセサ(CPU)と関連ハードウェアとに入力でき、メ
モリ内容が破壊されることがないように構成したデータ
処理装置を提供することにある。
The purpose of the present invention is to transfer the reset signal to a microprocessor (C
PU) as an interrupt signal, maintains that the interrupt is being reported by the reset signal, starts the interrupt processing program by the interrupt signal, and then stops (holds) the microprogram with an instruction at the end of the interrupt processing. As a result of the execution of the interrupt routine by the microprocessor, the above disadvantages are eliminated by putting it in a stopped state, and finally, a reset signal can be input to the microprocessor (CPU) and related hardware, and the memory contents are not destroyed. An object of the present invention is to provide a data processing device configured to prevent such occurrences.

(問題点を解決するための手段) 本発明によるデータ処理装置はマイクロプロセサ(CP
U)と、ゲート手段と、保持手段と、割込み制御手段と
、CP U 1,1セット信号発生手段とを具備して構
成したものである。
(Means for Solving the Problems) A data processing device according to the present invention uses a microprocessor (CP
1), a gate means, a holding means, an interrupt control means, and a CPU 1,1 set signal generation means.

マイクロプロセサ(CPU)は割込みを含む処理を実行
するためのものであり、ゲート手段は外部からのリセッ
ト信号をマイクロプロセサの割込み信号として通知する
ためのものである。 ゛保持手段は、リセット信号によ
る割込みの報告中であることを保持するためのものであ
る。
The microprocessor (CPU) is for executing processing including interrupts, and the gate means is for notifying an external reset signal as an interrupt signal for the microprocessor. The holding means is for holding that an interrupt due to a reset signal is being reported.

割込み制御手段は、割込み信号によりリセットに先立っ
て必要な処理を実行してから、マイクロプロセサ(CP
U)を停止させるだめのものである。
The interrupt control means executes necessary processing prior to resetting according to the interrupt signal, and then controls the microprocessor (CP).
This is to stop U).

CPUリセット信号発生手段は、マイクロプロセサ(C
PU)が割込みの結果によって停止したときに、最終的
にCPUリセット信号を発生するためのものである。
The CPU reset signal generation means is a microprocessor (C
This is to ultimately generate a CPU reset signal when the CPU (PU) is stopped as a result of an interrupt.

(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は、マイクロプロセサ(CPU)へ入力されるリ
セット信号の制御回路を示すブロック図である。第1図
において、1はリセットスイッチ、2はフィルタ、3.
6はそれぞれANDゲート、4.5.7はそれぞれD形
フリップフロップ、8はNANDゲート、9はNORゲ
ート、10は割込み制御回路、11はマイクロプロセサ
(CPU)。
FIG. 1 is a block diagram showing a control circuit for a reset signal input to a microprocessor (CPU). In FIG. 1, 1 is a reset switch, 2 is a filter, 3.
6 are AND gates, 4, 5, and 7 are D-type flip-flops, 8 is a NAND gate, 9 is a NOR gate, 10 is an interrupt control circuit, and 11 is a microprocessor (CPU).

12はクロック発生回路である。また、101はRES
IE:TA*信号線、102はRESETB*信号線、
103はRESETC信号紗、1信号上INTA信号線
、105はINTA*信号線、106はINTB*信号
線、107はINTn*信号線、108i、!、INT
*信号線、109はCLOCK信号線、110はHAL
T信号線、111はDO信号線、112はD1信号線、
113はD20信号線、114はD21信号線、115
はD20*信号線、116はD21*信号線、117は
D22*信号線、118はRESET*信号線である。
12 is a clock generation circuit. Also, 101 is RES
IE: TA* signal line, 102 is RESETB* signal line,
103 is the RESETC signal gauze, 1 signal is on the INTA signal line, 105 is the INTA* signal line, 106 is the INTB* signal line, 107 is the INTn* signal line, 108i, ! ,INT
*Signal line, 109 is CLOCK signal line, 110 is HAL
T signal line, 111 is DO signal line, 112 is D1 signal line,
113 is the D20 signal line, 114 is the D21 signal line, 115
is a D20* signal line, 116 is a D21* signal line, 117 is a D22* signal line, and 118 is a RESET* signal line.

RESETA*、RESETB*、RESETC,RE
SET*はそれぞれリセット信号、INTAl INT
A*、INTB*、I N T n *、INT*はそ
れぞれ割込み要求信号、CLOCKはクロック信号、H
ALTはHALT信号、DlはANDゲート出力信号、
Do、D20、D21、D20*、D21*、D22*
はそれぞれD形7リツブフロツプ出力信号である。
RESETA*, RESETB*, RESETC, RE
SET* is a reset signal, INTAl INT
A*, INTB*, I N T n *, INT* are respectively interrupt request signals, CLOCK is a clock signal, H
ALT is the HALT signal, Dl is the AND gate output signal,
Do, D20, D21, D20*, D21*, D22*
are the D-type seven rib-flop output signals, respectively.

第1図において、マイクロプロセサ(CPU)11は一
般的なものであシ、マイクロプロセサ(CPU)11の
入出力ビンのうちで本発明に直接関係のないアドレス/
データビンはすべて省略しである。マイクロプロセサ(
CPU)11の各ピンにおいて、R8Tはリセット入力
ピン、INTは割込み人カビ7、、CLKはクロック人
力ピンであ、り、HALTはマイクロプロセサ(CPU
)11がHALT命令を実行して停止状態となったこと
を示す出力ピンである。割込み制御回路10は複数の割
込み要求信号線105〜107のうちで、あらかじめ定
められた優先順位に従っていずれかの割込みを選択し、
信号線108上にINT*とじてマイクロプロセサ(C
PU)11に割込むためのものである。どの割込み入力
が選択されたかは第1図に示されていないが、マイクロ
プロセサ(CPU)11の割込み受付けを示す制御信号
に応じてデータはコード化されてマイクロプロセサ(C
PU)11に入力される。
In FIG. 1, the microprocessor (CPU) 11 is a general one, and among the input/output bins of the microprocessor (CPU) 11, addresses/
All data bins are omitted. microprocessor (
For each pin of the microprocessor (CPU) 11, R8T is the reset input pin, INT is the interrupt input pin, CLK is the clock input pin, and HALT is the microprocessor (CPU) input pin.
) 11 is an output pin indicating that the HALT command has been executed and the system has entered a halt state. The interrupt control circuit 10 selects one of the interrupt request signal lines 105 to 107 according to a predetermined priority order,
A microprocessor (C
This is for interrupting the PU) 11. Although which interrupt input is selected is not shown in FIG.
PU) 11.

D形フリップフロップ4.5、Tでは、クロックの立上
シに同期して、入力データを保持している。
The D-type flip-flops 4.5 and T hold input data in synchronization with the rising edge of the clock.

信号線101上のRESETA*信号はスイッチ1によ
るリセット信号であり、信号線102上のRESETB
*信号は、例えば他のマイクロプロセサをセットするリ
セット信号である。さて、信号線101上のRESET
A*信号がスイッチ1の操作によって@0“にセットさ
れていたとすると、RESETA*信号の後縁(立上り
)によってD形フリップフロップ4がセットされる。D
形フリップフロップ4の出力DOは信号線111上に送
出され、マイクロプロセサ(CPU)11のクロック信
号CLOCKによってD形フリップフロップ5にセット
される。D形フリップフロップ5から信号線104上に
送出されたフォルス出力信号INTA*は割込み制御回
路10に入力され、他に割込み要求が存在しないか、あ
るいは信号線105上のINTA*の優先順位が最高位
であれば、マイクロプロセサ(CPU)11は信号線1
01上のRESETA*信号によって指定された割込み
サービスを開始する。割込み処理プログラムには、処理
の最後でマイクロプロセサを動作停止状態にするための
ホールド命令が組込まれており、このホールド命令の実
行によってマイクロプロセサ(CPU)11のHALT
出力ビンがアクティブになると同時に、動作停止状態と
なる。
The RESETA* signal on signal line 101 is a reset signal by switch 1, and the RESETB signal on signal line 102
The * signal is, for example, a reset signal that sets other microprocessors. Now, RESET on signal line 101
Assuming that the A* signal is set to @0'' by operating switch 1, the D-type flip-flop 4 is set by the trailing edge (rising edge) of the RESETA* signal.D
The output DO of the D-type flip-flop 4 is sent onto a signal line 111 and set in the D-type flip-flop 5 by the clock signal CLOCK of the microprocessor (CPU) 11. The false output signal INTA* sent from the D-type flip-flop 5 onto the signal line 104 is input to the interrupt control circuit 10, and if there is no other interrupt request or INTA* on the signal line 105 has the highest priority. If the microprocessor (CPU) 11 is connected to the signal line 1
Starts the interrupt service specified by the RESETA* signal on 01. The interrupt processing program includes a hold instruction to bring the microprocessor to a halt state at the end of processing, and by executing this hold instruction, the microprocessor (CPU) 11 is HALT.
At the same time as the output bin becomes active, it becomes inactive.

信号線110上のHALT信号は信号線104とAND
ゲート6とを経てD形フリップフロップ7のDO入力端
子に加えられ、クロック信号によってD形フリップフロ
ップTの出力信号線115.114.117が順次セッ
トされる。D形フリップフロップ4.5、Tから出力さ
れた信号はNANDゲート8およびNORゲート9とを
経て出力され、信号線118上のRESET*が@0#
となる。これによって、マイクロプロセサ(CPU)1
1がリセットされる。
The HALT signal on signal line 110 is ANDed with signal line 104.
The signal is applied to the DO input terminal of the D-type flip-flop 7 via the gate 6, and the output signal lines 115, 114, and 117 of the D-type flip-flop T are sequentially set by the clock signal. The signals output from the D-type flip-flops 4.5 and T are output through the NAND gate 8 and the NOR gate 9, and the RESET* on the signal line 118 is @0#.
becomes. As a result, the microprocessor (CPU) 1
1 is reset.

このとき、マイクロプロセサ(CPU)11はすでに動
作停止状態となっているため、いっさいの入出力動作は
行われない。したがって、リード/ライトメモリの内容
の破壊は発生し得ない。信号線118上のRESET*
信号をセットするのに信号線115〜117上のD20
*〜D22*信号の論理和を求めて使用するのはマイク
ロプロセサ(CPU)11のリセットを確実に行うため
であシ、本発明には直接関係がない。信号線103上の
RESETC信号は上述のリセット制御用のNANDゲ
ート8を経ず、直接、NORゲート9に入力され、マイ
クロプロセサ(CPU)11のR8T端子に入力される
非同期リセット信号であり、リード/ライトメモリの内
容の破壊に意を介さない場合に使用されるもので、発生
要因としては、例えばデータ処理装置の電源の投入/切
断が考えられる。
At this time, since the microprocessor (CPU) 11 has already stopped operating, no input/output operations are performed. Therefore, destruction of the contents of the read/write memory cannot occur. RESET* on signal line 118
D20 on signal lines 115-117 to set the signal.
The purpose of calculating and using the logical sum of the *~D22* signals is to ensure that the microprocessor (CPU) 11 is reset, and is not directly related to the present invention. The RESETC signal on the signal line 103 is an asynchronous reset signal that is input directly to the NOR gate 9 without passing through the NAND gate 8 for reset control described above and input to the R8T terminal of the microprocessor (CPU) 11. This is used when the contents of the /write memory are not concerned about destruction, and a possible cause of this is, for example, turning on/off the power of the data processing device.

第2図は、上述の動作をタイムチャートで示したもので
あシ、信号線101上のRESETA*信号のセットか
ら信号線118上のRESET*信号のセットに至るま
での動作を図示しである。
FIG. 2 is a time chart showing the above-mentioned operation, and illustrates the operation from setting the RESETA* signal on the signal line 101 to setting the RESET* signal on the signal line 118. .

第2図で、最下欄のマイクロプログラムの処理の部分ケ
、マイクロプログラムの処理内容を要約して示したもの
であり、通常処理(a)からRESETA*信号によっ
て割込みルーチンヘジャンプし、最終的にホールド命令
を実行(b)し、RESET*信号が解除された後、リ
セット処理へと移行する模様を示しである。
In Figure 2, the part of the microprogram processing in the bottom column summarizes the processing contents of the microprogram, and jumps from normal processing (a) to the interrupt routine by the RESETA* signal, and the final processing. After the hold command is executed (b) and the RESET* signal is released, the process proceeds to reset processing.

割込み処理プログラムの処理内容については、一般的に
割込み発生時における情報の退避が考えられるが、ホー
ルド命令を実行するのみでも本発明の条件は満足される
。ホールド出力ピンが備えられていないマイクロプロセ
サでは、マイクロプロセサがホールドされることを外部
のリセット制御回路に通知するため、マイクロプログラ
ムによってセット可能なレジスタを定義すればよい。す
なわち、この場合には割込み処理プログラムで処理の最
後に上記レジスタのレジスタ基金を実行し、次にホール
ド命令を実行する。リセット制御回路では上記レジスタ
がセットされたことによシマイクロプロセサが一定時間
後に動作停止状態になることを判定する。その後で一定
時間を経過した後、マイクロプロセサのリセット信号が
アクティブになるように構成すればよい。
Regarding the processing content of the interrupt processing program, it is generally considered that information is saved when an interrupt occurs, but the conditions of the present invention are also satisfied by simply executing a hold instruction. In a microprocessor that is not equipped with a hold output pin, a register that can be set by the microprogram may be defined in order to notify an external reset control circuit that the microprocessor is held. That is, in this case, the interrupt processing program executes the register fund of the above-mentioned register at the end of processing, and then executes the hold instruction. The reset control circuit determines that the microprocessor will stop operating after a certain period of time due to the register being set. The configuration may be such that the microprocessor reset signal becomes active after a certain period of time has elapsed.

(発明の効果) 以上説明したように本発明は、非同期に入力されたリセ
ット信号を割込みの形でマイクロプロセサに予告し、マ
イクロプロセサが停止状態になった時点でマイクロプロ
セサにリセット信号を入力することにより、マイクロプ
ロセサの入出力動作を中断させることなくリセット動作
を行わせ、これKよってリード/ライトメモリの破壊を
防ぐことができるという効果がある。
(Effects of the Invention) As explained above, the present invention notifies the microprocessor of the asynchronously inputted reset signal in the form of an interrupt, and inputs the reset signal to the microprocessor when the microprocessor is in a stopped state. This has the effect of allowing the reset operation to be performed without interrupting the input/output operations of the microprocessor, thereby preventing the read/write memory from being destroyed.

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

第1図は、本発明によるデータ処理装置の一実施例を示
すブロック図である。 第2図は、第1図に示すデータ処理装置の動作を示すタ
イムチャートである。 1・・・リセットスイッチ 2・・・フィルタ 3.6・・ ・ANDゲート 4.5.7・・・D形7リツプフロツプ8・・・NAN
Dゲート 9・・・NORゲート 10・・・割込み制御回路 11・・・マイクロプロセサ(CPU)12・・・クロ
ック発生回路 101〜118・・・信号線
FIG. 1 is a block diagram showing an embodiment of a data processing apparatus according to the present invention. FIG. 2 is a time chart showing the operation of the data processing device shown in FIG. 1... Reset switch 2... Filter 3.6... ・AND gate 4.5.7... D type 7 lip-flop 8... NAN
D gate 9...NOR gate 10...Interrupt control circuit 11...Microprocessor (CPU) 12...Clock generation circuits 101 to 118...Signal line

Claims (1)

【特許請求の範囲】[Claims] 割込みを含む処理を実行するためのマイクロプロセサ(
CPU)と、外部からのリセット信号を前記マイクロプ
ロセサの割込み信号として通知するためのゲート手段と
、前記リセット信号による割込みの報告中であることを
保持するための保持手段と、前記割込み信号により前記
リセットに先立つて必要な処理を実行してから前記マイ
クロプロセサ(CPU)を停止させるための割込み制御
手段と、前記マイクロプロセサ(CPU)が前記割込み
の結果によつて停止したときに最終的にCPUリセット
信号を発生するためのCPUリセット信号発生手段とを
具備して構成したことを特徴とするデータ処理装置。
A microprocessor (
a CPU); gate means for notifying a reset signal from the outside as an interrupt signal for the microprocessor; holding means for holding that an interrupt is being reported by the reset signal; interrupt control means for stopping the microprocessor (CPU) after executing necessary processing prior to resetting; 1. A data processing device comprising: CPU reset signal generating means for generating a reset signal.
JP60194236A 1985-09-03 1985-09-03 Data processor Pending JPS6254343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60194236A JPS6254343A (en) 1985-09-03 1985-09-03 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60194236A JPS6254343A (en) 1985-09-03 1985-09-03 Data processor

Publications (1)

Publication Number Publication Date
JPS6254343A true JPS6254343A (en) 1987-03-10

Family

ID=16321236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60194236A Pending JPS6254343A (en) 1985-09-03 1985-09-03 Data processor

Country Status (1)

Country Link
JP (1) JPS6254343A (en)

Similar Documents

Publication Publication Date Title
US4112490A (en) Data transfer control apparatus and method
US4598356A (en) Data processing system including a main processor and a co-processor and co-processor error handling logic
JPH05324348A (en) Single chip microcomputer
JPS63279328A (en) Control system for guest execution of virtual computer system
JPH02123449A (en) Computer system having clock speed interrupted and interrupt control thereof
JP4334026B2 (en) Computer system and method for generating and handling system management interrupts therein
JPS6254343A (en) Data processor
JPS62150416A (en) Transition system to low power consumption state
JPH0573296A (en) Microcomputer
JPS60124746A (en) Data processing unit
JPH11338712A (en) Interruption sequence saving circuit
JP2870083B2 (en) Microcomputer with built-in watchdog timer
KR950004227B1 (en) Information processing system
JPS633328B2 (en)
SU1124316A1 (en) Microcomputer
JPS63155330A (en) Microprogram controller
JPH0258648B2 (en)
JPS60140440A (en) Central processing unit
JPH03119449A (en) Calculating device
JPH0736820A (en) I/o controller
JPS63138437A (en) Program control system
JPS5935250A (en) Program controller
JPH06301552A (en) Microprocessor unit
JPH03252886A (en) Single chip microcomputer
JPH01230136A (en) Run-away preventing circuit