JPS5854418B2 - data processing equipment - Google Patents

data processing equipment

Info

Publication number
JPS5854418B2
JPS5854418B2 JP53046703A JP4670378A JPS5854418B2 JP S5854418 B2 JPS5854418 B2 JP S5854418B2 JP 53046703 A JP53046703 A JP 53046703A JP 4670378 A JP4670378 A JP 4670378A JP S5854418 B2 JPS5854418 B2 JP S5854418B2
Authority
JP
Japan
Prior art keywords
section
processing
program
reset
data processing
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
Application number
JP53046703A
Other languages
Japanese (ja)
Other versions
JPS54139441A (en
Inventor
明 黒木
勉 松本
光夫 植竹
秀夫 坪井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP53046703A priority Critical patent/JPS5854418B2/en
Publication of JPS54139441A publication Critical patent/JPS54139441A/en
Publication of JPS5854418B2 publication Critical patent/JPS5854418B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明はデータ処理装置、特にデータ処理装置における
リセット回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data processing device, and more particularly to a reset circuit in a data processing device.

マイクロプロセッサを用いたデータ処理装置において、
ある処理プログラムを実行中にこれを中断し他のルーチ
ンを実行させなければならない場合があり、これを実行
するためにNMi信号がマイクロプロセッサに入力され
る。
In a data processing device using a microprocessor,
While a certain processing program is being executed, it may be necessary to interrupt it and execute another routine, and in order to execute this, the NMi signal is input to the microprocessor.

このNMiはノンマスクインタラブド(Non−Mas
k−I nterrupt)を意味し、例えばパリティ
エラーの発生時、電源オン時、リセットボタン操作時等
にデータ処理途中であっても処理部に対し割込みをかけ
るためのものである。
This NMi is a non-masked
k-interrupt), and is used to interrupt the processing unit even if data processing is in progress, for example, when a parity error occurs, when the power is turned on, when a reset button is operated, etc.

この場合、中断中のプログラムに係るデータを一時的に
待機させ、前記他のルーチンを実行し終えた後はRTi
(リターンインクラブド)命令により元のプログラム
に戻るための操作が行なわれる。
In this case, the data related to the interrupted program is temporarily put on standby, and after the other routines are finished executing, the RTi
The (return included) instruction performs an operation to return to the original program.

このため、マイクロプロセッサ内にはスタックポインタ
(sp)を内蔵しており、NMiの発生と同時に前記時
期中のデータを収納するスタック(RAMからなる)の
アドレス情報をストアする。
For this reason, the microprocessor has a built-in stack pointer (sp), which stores the address information of the stack (consisting of RAM) that stores the data during the period at the same time as NMi occurs.

なおNMi発生からRTi発生に至るプログラムは暗記
スタックを内蔵するメモリ内のROMに書込まれており
、LDS(ロードS)命令によって実行される。
Note that the program from NMi generation to RTi generation is written in a ROM in a memory containing a memorization stack, and is executed by an LDS (load S) instruction.

一方、マイクロプロセッサにリセットスタートがかけら
れた場合、はぼ同時に前記NMiの発生回路および他の
外部回路もリセット解除されるのが普通である。
On the other hand, when a reset start is applied to the microprocessor, the NMi generating circuit and other external circuits are usually released from reset at about the same time.

すなわち、マイクロプロセッサを処理部とすれば、NM
i発生回路を含む他の外部回路からなる被処理部は、該
処理部のリセット解除(プログラムの起動)とほぼ同一
タイミングでリセット解除される。
In other words, if the microprocessor is the processing unit, NM
The processed section including the i generation circuit and other external circuits is reset and released at approximately the same timing as the processing section is reset (program started).

ところが、そのリセット解除により処理部が起動しLD
S命令を実行する場合に、既にリセット解除された被処
理部よりNMi信号が発生していたとすると、NMi命
令に基づくプログラムが実行できず、RTi命令によっ
て復帰しようとしてもスタックポインタには正規の復帰
アドレスがストアされておよず、結局処理部は暴走し初
めることになる。
However, when the reset was canceled, the processing unit started up and the LD
When executing the S instruction, if the NMi signal is generated from the processed part that has already been reset, the program based on the NMi instruction cannot be executed, and even if you try to return using the RTi instruction, the stack pointer will not return normally. The address is not stored and the processing section ends up going out of control.

この様な暴走を防止すべく、従来は、スタックポインタ
に復帰アドレスが正規にストアされていない場合はRT
i命令を中止しそのままの状態にとどめておくという手
法がとられた。
In order to prevent this kind of runaway, conventionally, if the return address is not properly stored in the stack pointer, the RT
The method used was to cancel the i command and leave it in that state.

然しこのような手法は、マイクロプロセッサ・システム
の効率の高い利用を図る上で好ましい方法とは言え・な
い。
However, such a method cannot be said to be a preferable method for achieving highly efficient use of a microprocessor system.

従って本発明の目的は、極めて簡単な構成で前記の暴走
を防止し得るデータ処理装置を提案することである。
Therefore, an object of the present invention is to propose a data processing device that can prevent the above-mentioned runaway with an extremely simple configuration.

上記目的に従い本発明は、処理部と被処理部のリセット
解除に時間差を設け、該処理部のリセット解除後、該処
理部のリセットスタート実行ならびにLDS命令の実行
を完了する期間の経過後に、前記被処理部のリセット解
除を行なうようにしたことを特徴とするものである。
In accordance with the above-mentioned object, the present invention provides a time difference between the reset release of the processing unit and the processed unit, and after the reset release of the processing unit and the completion of the reset start execution of the processing unit and the execution of the LDS instruction have elapsed, the above-mentioned The present invention is characterized in that the reset of the processing target section is canceled.

以下図面に従って本発明を説明する。The present invention will be explained below with reference to the drawings.

第1図は本発明が適用されるべきデータ処理装置の概略
構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a data processing device to which the present invention is applied.

本図において11は処理部(マイクロプロセッサ)、1
2はメモリ部、13は処理部11によって制御されるべ
き被処理部である。
In this figure, 11 is a processing unit (microprocessor);
2 is a memory section, and 13 is a processed section to be controlled by the processing section 11.

これらの構成部はリセット信号の解除により起動する。These components are activated by release of the reset signal.

今、被処理部13内ニおいて、電源オン、リセットボタ
ン操作、パリティエラー発生等の原因によりNMiの要
求が生じたものとすると、被処理部13内のNMi発生
回路14はこの要求に応答し、NMi信号を信号線15
を介して処理部11に転送する。
Now, suppose that an NMi request is generated in the processed section 13 due to power-on, reset button operation, occurrence of a parity error, etc., then the NMi generation circuit 14 in the processed section 13 responds to this request. and connect the NMi signal to signal line 15.
The data is transferred to the processing unit 11 via.

このNMi信号を受信して、処理部11はLDS命令を
実行する。
Upon receiving this NMi signal, the processing unit 11 executes the LDS command.

このLDS命令は、NMiによって中断されたプログラ
ムに係るデータを時期させるスタックのアドレス情報を
確保するための命令であり、これによりNMiに基づく
ルーチンの実行終了後RTi命令によって元のプログラ
ムの実行を再び開始させることができる。
This LDS instruction is an instruction to secure the address information of the stack for timing the data related to the program interrupted by NMi, so that after the execution of the routine based on NMi is finished, the execution of the original program is restarted by the RTi instruction. can be started.

従ってこのLDS命令が正常に実行されて初めてNMi
が有効に実行さへ且つデータ処理装置の暴走を防止する
ことができる。
Therefore, only when this LDS instruction is executed normally will NMi
can be effectively executed and prevent the data processing device from running out of control.

すなわち、NMi信号を受信してLDS命令を実行し、
中断されたプログラムに係るデータの収納場所をメモリ
部12内のスタック領域16に指定する。
That is, receiving the NMi signal and executing the LDS command,
The storage location of data related to the interrupted program is specified in the stack area 16 in the memory unit 12.

スタック領域16はRAMからなり指定のアドレスより
、中断されたプログラムに係るデータをスタックする。
The stack area 16 is comprised of a RAM and stacks data related to the interrupted program from a designated address.

N M iによるルーチンの実行後は当該指定のアドレ
スに戻るので、この指定のアドレスがこのLDS命令に
よってスタックポインタ17(SP)にストアされる。
After the routine N M i is executed, the process returns to the specified address, so this specified address is stored in the stack pointer 17 (SP) by this LDS instruction.

このLDS命令を実行すべきプログラムは、メモリ部1
2内のプログラム領域18に書込まれており、該プログ
ラム領域はROMからなる。
The program that should execute this LDS instruction is the memory section 1.
The program area is written in a program area 18 in the internal memory 2, and the program area consists of a ROM.

また、プログラム領域18はNMiに基づく実行プログ
ラム等が書込まれている。
Further, in the program area 18, execution programs based on NMi are written.

なお、処理部11内の19は、LDS命令のプログラム
を実行するためのプログラムカウンタ(PC)である。
Note that 19 in the processing unit 11 is a program counter (PC) for executing a program of LDS instructions.

上述したデータ処理装置において、被処理部14のNM
i発生回路14よりNMi信号が正常に送出されたにも
かかわらず、このNMiによるプログラムの実行後発生
されるRTi命令が正常に行なわれず暴走を発生するこ
とがある。
In the data processing device described above, the NM of the processed section 14 is
Even though the NMi signal is normally sent out from the i generating circuit 14, the RTi command generated after the program is executed by the NMi may not be executed normally and a runaway may occur.

この問題は、特に、リセット時において顕著である。This problem is particularly noticeable at the time of reset.

リセット時では、リセット解除後処理部11のリセット
スタート動作が実行されプログラムカウンタの内容が決
定され引続きLDS命令が実行されるが、この間に既に
NMi信号が送出されていると、LDS命令の実行以前
にNMiを受信することになり、その後当該NMiによ
るプログラムを実行して元のプログラムに戻ろうとして
も、スタックポインタ1γには復帰アドレスがセットさ
れておらず、暴走することになる。
At the time of reset, the reset start operation of the post-reset release processing unit 11 is executed, the contents of the program counter are determined, and the LDS instruction is subsequently executed. However, if the NMi signal has already been sent during this period, the If an NMi is received at the time, and the program is subsequently executed using the NMi and the program attempts to return to the original program, the stack pointer 1γ will not have a return address set and the program will run out of control.

そこで本発明は第2図に示すタイムチャートをもってリ
セット解除を行なうものとする。
Therefore, in the present invention, the reset is canceled using the time chart shown in FIG.

第2図L2,3,4,5および6は、それぞれデータ処
理装置のクロックパルス(φ2)、第1リセツト信号(
R8T 1)、リセットスタート(R8T’)、LDS
命令、第2リセツト信号(R8T2)およびNMi信号
を示し、特に第1および第2リセツト信号(R8T1.
R8T2)が本発明に係る特徴的部分である。
L2, 3, 4, 5 and 6 in FIG. 2 indicate the clock pulse (φ2) and the first reset signal (φ2) of the data processing device, respectively.
R8T 1), reset start (R8T'), LDS
command, the second reset signal (R8T2) and the NMi signal, particularly the first and second reset signals (R8T1.
R8T2) is a characteristic part according to the present invention.

第1リセツト信号(R8TI)は本来のリセット解除を
意味し、本発明では処理部(第1図の11)のみに印加
される。
The first reset signal (R8TI) originally means reset release, and in the present invention is applied only to the processing section (11 in FIG. 1).

また第2すリセット信号(R8T2)は被処理部(第1
図の13)にのみ印加される。
In addition, the second reset signal (R8T2)
It is applied only to 13) in the figure.

第1図を参照しながら説明すると、先ず、クロックパル
ス(φ2)に同期してリセット解除がかけられると、第
1リセツト信号(R8T1)によって処理部11がリセ
ット解除され、リセットスタート(R8T’)が実行さ
れる。
To explain with reference to FIG. 1, first, when the reset is released in synchronization with the clock pulse (φ2), the processing section 11 is released from the reset by the first reset signal (R8T1), and the reset starts (R8T'). is executed.

引続きLDS命令も実行される。これらの実行が十分終
了した時点で、第2リセツト信号(R8T2)が出力さ
れ、被処理部13をリセット解除する。
Subsequently, the LDS instruction is also executed. When these executions are sufficiently completed, a second reset signal (R8T2) is outputted to release the reset of the processed section 13.

その後において、初めてNMi発生回路14はNMi信
号を処理部11に送出する。
After that, the NMi generation circuit 14 sends the NMi signal to the processing section 11 for the first time.

第2図1〜6のタイムチャートより明白なように、被処
理部13のリセット解除は、処理部11におけるLDS
命令の実行終了後になされるので、NMiによるプログ
ラムが実行されRTi命令により元のプログラムに戻る
とき、スタックポインタには確実に復帰アドレスがセッ
トされており、暴走に至ることはあり得ない。
As is clear from the time charts of FIGS.
Since this is done after the execution of the instruction is completed, when the program by NMi is executed and the RTi instruction returns to the original program, the return address is definitely set in the stack pointer, and runaway is unlikely.

第2図に示したタイムチャートを実施するに当りハード
ウェア上では極めて単純な構成変更で良い。
In order to implement the time chart shown in FIG. 2, an extremely simple configuration change is required on the hardware.

例えば第3図に示す構成とする。ただし第3図は本発明
に係る部分のみを取り出して示すブロック図であり、本
図において31はシフトレジスタであり、クロック端子
32(CL)には、第2図1のクロックパルス(φ2)
を印加し、セット端子33には第2図2の第1リセツト
信号(R8T1)を印加する。
For example, the configuration shown in FIG. 3 is used. However, FIG. 3 is a block diagram showing only the parts related to the present invention. In this diagram, numeral 31 is a shift register, and a clock terminal 32 (CL) is connected to the clock pulse (φ2) of FIG.
is applied, and the first reset signal (R8T1) shown in FIG. 2 is applied to the set terminal 33.

QA、QB、Qc、QD、QE、QF、QGおよびQH
は出力端子であり、位相の順次シフトした信号が得られ
る。
QA, QB, Qc, QD, QE, QF, QG and QH
is an output terminal, from which signals whose phases are sequentially shifted are obtained.

このうち、所望の位相シフト量をもった信号を出力端子
34(QH)より得、第2リセツト信号(R8T2)と
なす。
Among these, a signal having a desired amount of phase shift is obtained from the output terminal 34 (QH) and is used as the second reset signal (R8T2).

このシフトレジスタ31は、第1図において点線31に
示す位置に配置されることになる。
This shift register 31 will be placed at a position indicated by a dotted line 31 in FIG.

以上説明したように本発明によれば、従来問題となって
いた、リセット時におけるNMi処理に起因する暴走を
防止することができ、しかもデータ処理装置の利用効率
を低下させることなく且つ単純な設計構成で、前記暴走
を確実に防止することができる。
As explained above, according to the present invention, it is possible to prevent runaway caused by NMi processing at the time of reset, which has been a problem in the past, and moreover, without reducing the usage efficiency of the data processing device, and with a simple design. With this configuration, the runaway can be reliably prevented.

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

第1図は本発明が適用されるべきデータ処理装置の概略
構成を示すブロック図、第2図1,2゜3.4,5およ
び6は本発明に基づくデータ処理装置における要部の波
形および状態を示すタイムチャート、第3図は本発明を
実施するために新たに付加されるべき素子の1例を示す
図である。 本図において11は処理部、12はメモリ部、13は被
処理部、14はNMi発生回路、16はスタック領域、
1Tはスタックポインタ、18はスタック領域、19は
プログラムカウンタ、31はシフトレジスタ、R8T1
およびR8T2はそれぞれ第1および第2のリセット信
号である。
FIG. 1 is a block diagram showing a schematic configuration of a data processing device to which the present invention is applied, and FIG. A time chart showing the state, FIG. 3 is a diagram showing an example of elements to be newly added to implement the present invention. In this figure, 11 is a processing section, 12 is a memory section, 13 is a processed section, 14 is an NMi generation circuit, 16 is a stack area,
1T is a stack pointer, 18 is a stack area, 19 is a program counter, 31 is a shift register, R8T1
and R8T2 are first and second reset signals, respectively.

Claims (1)

【特許請求の範囲】 1 処理部と、該処理部により制御される被処理部と、
該処理部および被処理部間におけるデータ処理に必要な
プログラムおよびデータをストアするメモリ部とを有し
、該メモリ部は少なくとも中断された前記データ処理に
係わるデータを待機せしめるスタック領域およびその待
機のための操作を実行するためのプログラムをストアす
るプログラム領域を有し、前記処理部は前記の時期せし
められたデータの前記スタック領域内のアドレスをスト
アするスタックポインタとその待機のための操作に係る
プログラムを実行せしめるプログラムカウンタを有する
データ処理装置において、少なくとも前記スタックポイ
ンタに前記アドレスをストアする迄は前記被処理部の起
動を停止せしめる遅延手段を設けたことを特徴とするデ
ータ処理装置。 2 遅延手段がシフトレジスタであり、該シフトレジス
タのセット入力には処理部を起動する第1リセツト信号
を印加し、その出力からは所定の位相シフトが与えられ
た第2リセツト信号を送出し、該第2リセツト信号をも
って被処理部を起動する特許請求の範囲第1項記載のデ
ータ処理装置。
[Claims] 1. A processing section, a processed section controlled by the processing section,
It has a memory section that stores programs and data necessary for data processing between the processing section and the processed section, and the memory section includes at least a stack area for waiting data related to the interrupted data processing, and a stack area for waiting data related to the interrupted data processing. The processing unit has a program area for storing a program for executing an operation for the processing, and the processing unit is related to a stack pointer for storing an address in the stack area of the timed data and an operation for waiting for the stack pointer. A data processing device having a program counter for executing a program, characterized in that the data processing device is provided with a delay means for stopping activation of the processing target section at least until the address is stored in the stack pointer. 2. The delay means is a shift register, a first reset signal for activating the processing section is applied to the set input of the shift register, and a second reset signal given a predetermined phase shift is sent from the output thereof, 2. The data processing apparatus according to claim 1, wherein the second reset signal is used to start the processing section.
JP53046703A 1978-04-21 1978-04-21 data processing equipment Expired JPS5854418B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53046703A JPS5854418B2 (en) 1978-04-21 1978-04-21 data processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53046703A JPS5854418B2 (en) 1978-04-21 1978-04-21 data processing equipment

Publications (2)

Publication Number Publication Date
JPS54139441A JPS54139441A (en) 1979-10-29
JPS5854418B2 true JPS5854418B2 (en) 1983-12-05

Family

ID=12754721

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53046703A Expired JPS5854418B2 (en) 1978-04-21 1978-04-21 data processing equipment

Country Status (1)

Country Link
JP (1) JPS5854418B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021116380A1 (en) 2019-12-11 2021-06-17 Aixinno Ltd. Method and device for cultivating biological cells

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021116380A1 (en) 2019-12-11 2021-06-17 Aixinno Ltd. Method and device for cultivating biological cells

Also Published As

Publication number Publication date
JPS54139441A (en) 1979-10-29

Similar Documents

Publication Publication Date Title
JP2858140B2 (en) Pipeline processor device and method
JP2655615B2 (en) Information processing device
JPH0543151B2 (en)
JPS6364144A (en) Inter-memory data transfer system
JP2001067235A (en) Interruption controller and microcomputer
JPS5854418B2 (en) data processing equipment
JPH0654476B2 (en) Control memory error correction control method
JPS5916054A (en) Microprocessor
JPH0588933A (en) Parallel processing system with debugging function
JPH02157957A (en) Microprocessor
KR960001977B1 (en) Control method in programmable controller
JP2575025B2 (en) In-circuit emulator
JP3367949B2 (en) Image data processing device
JPH0573296A (en) Microcomputer
JP3449812B2 (en) Control electronics
JP3426645B2 (en) Data processing system
JPS63639A (en) Program debugging system
JP2869205B2 (en) Repeater circuit for data processing device
JPS6269352A (en) Microprocessor
JP2584528Y2 (en) Information processing device
JP2844624B2 (en) Data processing device
JPH0462093B2 (en)
JPS62296236A (en) Interruption processor for microprocessor
JPH02133833A (en) Controller for in-circuit emulator
JPH01321525A (en) Hardware semaphore