JPH01136251A - Self-diagnosing system - Google Patents

Self-diagnosing system

Info

Publication number
JPH01136251A
JPH01136251A JP29472587A JP29472587A JPH01136251A JP H01136251 A JPH01136251 A JP H01136251A JP 29472587 A JP29472587 A JP 29472587A JP 29472587 A JP29472587 A JP 29472587A JP H01136251 A JPH01136251 A JP H01136251A
Authority
JP
Japan
Prior art keywords
program
self
execution
signal
initialization
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
JP29472587A
Other languages
Japanese (ja)
Inventor
Takanori Umeki
梅木 尊則
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 JP29472587A priority Critical patent/JPH01136251A/en
Publication of JPH01136251A publication Critical patent/JPH01136251A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To evade the unrequired execution of a self-diagnosing program by executing the self-diagnosing program only at the time of recognizing a signal as an initialization signal generated when a power source is applied. CONSTITUTION:The initialization signal 1 generated according to the application of the power source is inputted to an execution program switching circuit 2. The switching circuit 2 decides that the signal 1 is generated at the time of applying the power source by an initialization signal identification means 21, and outputs a first selection signal 6a by an execution program switching means 22. An execution pointer storage register 7 receiving the signal 6a outputs an execution pointer (a). As a result, a control program 82 is executed following the self-diagnosing program 81. Next, when a device is initialized, the switching circuit 2 receives the initialization signal, 1 but, recognizes it as the signal generated at the time of initialization, and outputs a second selection signal 6b to execute the control program 82.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は自己診断方式に関し、特に自己診断プログラム
を内蔵する装置の自己診断方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a self-diagnosis method, and particularly to a self-diagnosis method for a device having a built-in self-diagnosis program.

〔従来の技術〕[Conventional technology]

従来、この種の自己診断プログラムを内蔵する装置では
、電源投入時および初期化(以下、「初期化」という言
葉を「初期化信号」を除いて電源投入時以外の初期化に
限定して使用する)時に発生する初期化信号に基づいて
内蔵されている自己診断プログラムを常に最初から実行
するようになっていた。
Conventionally, in devices with built-in self-diagnosis programs of this type, power-on and initialization (hereinafter, the term "initialization" is used only for initialization other than power-on, excluding "initialization signal"). The built-in self-diagnosis program was always run from the beginning based on the initialization signal generated when

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の自己診断方式では、電源投入時および初
期化時に発生する初期化信号に基づいて常に自己診断プ
ログラムを実行するようになっていたので、自己診断範
囲の広い装置ではそのつど自己診断に要する時間が多く
かかり、初期化後に皿座に装置を使用することができな
いという欠点がある。
In the conventional self-diagnosis method described above, the self-diagnosis program is always executed based on the initialization signal generated at power-on and initialization. The drawback is that it takes a lot of time and that the device cannot be used on a plate after initialization.

本発明の目的は、上述の点に濡み、初期化時の不要な自
己診断プログラムの実行を避けることにより、自己診断
に要する無駄な時間を省略して装置のスムーズな運用を
図ることができる自己診断方式を提供することにある。
The purpose of the present invention is to address the above-mentioned points, and by avoiding the execution of unnecessary self-diagnosis programs during initialization, it is possible to omit wasted time required for self-diagnosis and achieve smooth operation of the device. The purpose is to provide a self-diagnosis method.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の自己診断方式は、自己診断プログラムを内蔵す
る装置の自己診断方式において、初期化信号が電源投入
時に発生したものであるか電源投入時以外の初期化時に
発生したものであるかを識別する初期化信号識別手段と
、この初期化信号識別手段により前記初期化信号が電源
投入時に発生したものであると識別されたときに前記自
己診断プログラムを実行後に制御プログラムの実行を開
始させ前記初期化信号が電源投入時以外の初期化時に発
生したものであると識別されたときに前記自己診断プロ
グラムを実行させずに前記制御プログラムの実行を開始
させる実行プログラム切換手段とを有する。
The self-diagnosis method of the present invention is a self-diagnosis method for a device that has a built-in self-diagnosis program, and identifies whether an initialization signal is generated when the power is turned on or during initialization other than when the power is turned on. and an initialization signal identifying means for starting the execution of a control program after executing the self-diagnosis program when the initialization signal identifying means identifies that the initialization signal is generated when the power is turned on. and execution program switching means for starting execution of the control program without executing the self-diagnosis program when it is identified that the initialization signal is generated at the time of initialization other than when the power is turned on.

〔作用〕[Effect]

本発明の自己診断方式では、初期化信号識別手段が初期
化信号が電源投入時に発生したものであるか電源投入時
以外の初期化時に発生したものであるかを識別し、実行
プログラム切換手段が初期化信号識別手段により初期化
信号が電源投入時に発生したものであると識別されたと
きに自己診断プログラムを実行後に制御プログラムの実
行を開始させ初期化信号が電源投入時以外の初期化時に
発生したものであると識別されたときに自己診断プログ
ラムを実行させずに制御プログラムの実行を開始させる
In the self-diagnosis method of the present invention, the initialization signal identifying means identifies whether the initialization signal is generated when the power is turned on or during initialization other than when the power is turned on, and the execution program switching means When the initialization signal identifying means identifies that the initialization signal is generated when the power is turned on, the self-diagnosis program is executed and then the control program is started to be executed, and the initialization signal is generated at an initialization time other than when the power is turned on. To start execution of a control program without executing a self-diagnosis program when it is identified that the program has been executed.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の自己診断方式の一実施例の構成を示
すブロックである0本実施例の自己診断方式は、初期化
信号lおよび電源投入検出信号5を入力して第1選択信
号6aまたは第2選択信号6bを出力する実行プログラ
ム切換回路2と、電源状態信号3を入力して電源投入を
検出すると電源投入検出信号5を出力する電源投入検出
回路4と、2つの実行ポインタaおよびbを格納し実行
プログラム切換回路2からの第1選択信号6aまたは第
2選択信号6bに応じて実行ポインタaまたはbを選択
的に出力する実行ポインタ格納レジスタ7と、実行ポイ
ンタaが指す先頭アドレスaを有する自己診断プログラ
ム81および実行ポインタbが指す先頭アドレスbを有
する制御プログラム82からなるプログラム8とから、
その主要部が構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the self-diagnosis method of the present invention. 6a or a second selection signal 6b, a power-on detection circuit 4 that outputs a power-on detection signal 5 when it detects power-on by inputting a power state signal 3, and two execution pointers a. and b, and selectively outputs the execution pointer a or b according to the first selection signal 6a or the second selection signal 6b from the execution program switching circuit 2, and the start point pointed to by the execution pointer a. From a program 8 consisting of a self-diagnosis program 81 having an address a and a control program 82 having a start address b pointed to by an execution pointer b,
Its main parts are composed of:

実行プログラム切換回路2には、初期化信号1が電源投
入検出信号5と同時に入力されているかどうかに応じて
電源投入時に発生したものであるか初期化時に発生した
ものであるかを識別する初期化信号識別手段21と、初
期化信号識別手段21により初期化信号が電源投入時に
発生したものであると識別されたときに自己診断プログ
ラム81を実行後にmmプログラム82の実行を開始さ
せるために第1選択信号6aを出力し初期化信号が初期
化時に発生したものであると識別されたときに自己診断
プログラム81を実行させずに制御プログラム82の実
行を開始させるために第2選択信号6bを出力する実行
プログラム切換手段22とを含んでいる。
The execution program switching circuit 2 has an initialization signal that identifies whether the initialization signal 1 is generated at power-on or initialization, depending on whether the initialization signal 1 is input at the same time as the power-on detection signal 5. and an initialization signal identifying means 21 for starting the execution of the mm program 82 after executing the self-diagnosis program 81 when the initialization signal identifying means 21 identifies that the initialization signal is generated when the power is turned on. In order to output the first selection signal 6a and start execution of the control program 82 without executing the self-diagnosis program 81 when the initialization signal is identified as having been generated at the time of initialization, the second selection signal 6b is output. and output execution program switching means 22.

なお、自己診断プログラム81の末尾アドレスの次のア
ドレスは、制御プログラム82の先頭アドレスbとなっ
ている。
Note that the address following the end address of the self-diagnosis program 81 is the start address b of the control program 82.

次に、このように構成された本実施例の自己診断方式の
動作について説明する。
Next, the operation of the self-diagnosis system of this embodiment configured as described above will be explained.

いま、装置に電源が投入されると、電源状態信号3を入
力する電源投入検出回路4が電源投入を検出し、電源投
入検出信号5を実行プログラム切換回路2に出力する。
Now, when the device is powered on, the power-on detection circuit 4 which receives the power state signal 3 detects the power-on and outputs the power-on detection signal 5 to the execution program switching circuit 2.

また、これと並行して、電源投入に基づいて発生された
初期化信号1が実行プログラム切換回路2に入力される
Further, in parallel with this, the initialization signal 1 generated upon power-on is input to the execution program switching circuit 2.

電源投入検出信号5および初期化信号1を入力した実行
プログラム切換回路2は、初期化信号識別手段21によ
り初期化信号1が電源投入時に発生したものであること
を識別し、自己診断プログラム81を実行後に制御プロ
グラム82の実行を開始させるために実行プログラム切
換手段22により第1選択信号6aを出力する。
The execution program switching circuit 2 that has received the power-on detection signal 5 and the initialization signal 1 identifies by the initialization signal identification means 21 that the initialization signal 1 is generated when the power is turned on, and starts the self-diagnosis program 81. After execution, the execution program switching means 22 outputs the first selection signal 6a to start execution of the control program 82.

第1の選択信号6aを受けた実行ポインタ格納レジスタ
7は、プログラム8の実行開始ポインタとして実行ポイ
ンタaを出力する。この結果、図示しないプログラム実
行手段により、プログラム8が自己診断プログラム81
から実行を開始され、自己診断プログラム81の実行が
終了すると、それに続いて制御プログラム82の実行が
開始される。
The execution pointer storage register 7, which has received the first selection signal 6a, outputs the execution pointer a as the execution start pointer of the program 8. As a result, the program 8 is executed by the self-diagnosis program 81 by the program execution means (not shown).
When the execution of the self-diagnosis program 81 is completed, the execution of the control program 82 is subsequently started.

次に、装置が初期化されると、実行プログラム切換回路
2は初期化信号lを受信するが、電源状態信号3が変化
しないので電源投入検出回路4は電源投入を検出せずに
電源投入検出信号5を出力しない。
Next, when the device is initialized, the execution program switching circuit 2 receives the initialization signal l, but since the power state signal 3 does not change, the power-on detection circuit 4 detects the power-on without detecting the power-on. Does not output signal 5.

このため、初期化信号1のみを入力した実行プログラム
切換回路2は、初期化信号識別手段21により初期化信
号1が初期化時に発生したものであることを識別し、自
己診断プログラム81を実行せずに制御プログラム82
の実行を開始させるために実行プログラム切換手段22
により第2の選択信号6bを出力する。
Therefore, the execution program switching circuit 2 to which only the initialization signal 1 is input identifies by the initialization signal identification means 21 that the initialization signal 1 is generated at the time of initialization, and executes the self-diagnosis program 81. Zuni control program 82
Execution program switching means 22 to start execution of
The second selection signal 6b is output.

第2の選択信号6bを受けた実行ポインタ格納レジスタ
7は、プログラム8の実行開始ポインタとして実行ポイ
ンタbを出力する。この結果、図示しないプログラム実
行手段により、プログラム8が制御プログラム82から
実行を開始され、自己診断プログラム81は実行されな
い。
The execution pointer storage register 7, which has received the second selection signal 6b, outputs the execution pointer b as the execution start pointer of the program 8. As a result, the program execution means (not shown) starts executing the program 8 from the control program 82, and the self-diagnosis program 81 is not executed.

なお、上記実施例では、初期化信号識別手段21および
実行プログラム切換手段22を実行プログラム切換回路
2中に構成した例を示したが、これらの手段は全く別の
ハードウェア構成を採るようにしてもよく、またソフト
ウェア的に構成するようにしてもよい。
In the above embodiment, the initialization signal identifying means 21 and the execution program switching means 22 are configured in the execution program switching circuit 2, but these means may have completely different hardware configurations. Alternatively, it may be configured using software.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、電源投入時に発生する初
期化信号であることを認識したときにのみ自己診断プロ
グラムを実行させるようにしたことにより、不要な自己
診断プログラムの実行を避けることができ、自己診断に
要する無駄な時間を省略して装置のスムーズな運用を行
うことができる効果がある。
As explained above, the present invention makes it possible to avoid unnecessary execution of the self-diagnosis program by executing the self-diagnosis program only when it is recognized that the initialization signal is generated when the power is turned on. This has the effect of omitting wasted time required for self-diagnosis and allowing smooth operation of the device.

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

第1図は本発明の自己診断方式の一実施例の構成を示す
ブロック図である。 図において、 1・・・初期化信号、 2・・・実行プログラム切換回路、 3・・・電源状態信号、 4・・・電源投入検出回路、 5・・・電源投入検出信号、 6a・・第1選択信号、 6b・・第2選択信号、 7・・・実行ポインタ格納レジスタ、 8・・・プログラム、 21・・・初期化信号識別手段、 22・・・実行プログラム切換手段、 81・・・自己診断プログラム、 82・・・制御プログラム、 a、b・実行ポインタである。
FIG. 1 is a block diagram showing the configuration of an embodiment of the self-diagnosis method of the present invention. In the figure, 1...Initialization signal, 2...Execution program switching circuit, 3...Power status signal, 4...Power on detection circuit, 5...Power on detection signal, 6a...No. 1 selection signal, 6b...second selection signal, 7...execution pointer storage register, 8...program, 21...initialization signal identification means, 22...execution program switching means, 81... Self-diagnosis program, 82... Control program, a, b. Execution pointer.

Claims (1)

【特許請求の範囲】 自己診断プログラムを内蔵する装置の自己診断方式にお
いて、 初期化信号が電源投入時に発生したものであるか電源投
入時以外の初期化時に発生したものであるかを識別する
初期化信号識別手段と、 この初期化信号識別手段により前記初期化信号が電源投
入時に発生したものであると識別されたときに前記自己
診断プログラムを実行後に制御プログラムの実行を開始
させ前記初期化信号が電源投入時以外の初期化時に発生
したものであると識別されたときに前記自己診断プログ
ラムを実行させずに前記制御プログラムの実行を開始さ
せる実行プログラム切換手段と、 を有することを特徴とする自己診断方式。
[Scope of Claims] In a self-diagnosis method for a device having a built-in self-diagnosis program, an initialization method for identifying whether an initialization signal is generated when the power is turned on or during initialization other than when the power is turned on. and an initialization signal identifying means for starting execution of a control program after executing the self-diagnosis program when the initialization signal identifying means identifies that the initialization signal is generated when the power is turned on. and execution program switching means for starting execution of the control program without executing the self-diagnosis program when it is identified that the error occurred at the time of initialization other than when the power was turned on. Self-diagnosis method.
JP29472587A 1987-11-21 1987-11-21 Self-diagnosing system Pending JPH01136251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29472587A JPH01136251A (en) 1987-11-21 1987-11-21 Self-diagnosing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29472587A JPH01136251A (en) 1987-11-21 1987-11-21 Self-diagnosing system

Publications (1)

Publication Number Publication Date
JPH01136251A true JPH01136251A (en) 1989-05-29

Family

ID=17811504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29472587A Pending JPH01136251A (en) 1987-11-21 1987-11-21 Self-diagnosing system

Country Status (1)

Country Link
JP (1) JPH01136251A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH032023A (en) * 1989-05-31 1991-01-08 Rika Kogyo Kk Initial diagnostic device in extrusion molding controling device
JP2016126692A (en) * 2015-01-08 2016-07-11 株式会社デンソー Electronic control device
JP2017091442A (en) * 2015-11-17 2017-05-25 株式会社デンソー Electronic control unit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61198337A (en) * 1985-02-28 1986-09-02 Toshiba Corp Self-diagnosing device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61198337A (en) * 1985-02-28 1986-09-02 Toshiba Corp Self-diagnosing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH032023A (en) * 1989-05-31 1991-01-08 Rika Kogyo Kk Initial diagnostic device in extrusion molding controling device
JP2016126692A (en) * 2015-01-08 2016-07-11 株式会社デンソー Electronic control device
JP2017091442A (en) * 2015-11-17 2017-05-25 株式会社デンソー Electronic control unit

Similar Documents

Publication Publication Date Title
JPH02156334A (en) Information processor
JPH0728670A (en) Information processor
JPH01136251A (en) Self-diagnosing system
JPH08171504A (en) Emulation device
JPS6128144A (en) Executing device of tracing
JP2684966B2 (en) I / O processor debug device
JP2844624B2 (en) Data processing device
JPH02157957A (en) Microprocessor
JPS60178524A (en) One-chip microcomputer
JP2998299B2 (en) Processor control unit
JPH04310138A (en) Debugging method for data transmitter
JPS61211746A (en) Program executing control system
JPS59200356A (en) Program tracing system
JPH02103636A (en) Additional arithmetic unit
JPS61187044A (en) Information processor
JPH05204710A (en) Event tracer
JPH02133833A (en) Controller for in-circuit emulator
JPS62197834A (en) Microprogram controller
JPH02144733A (en) In-circuit emulator
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPS6362037A (en) Microprogram controller
JPS62196753A (en) Controlling system for microprogram execution locus stack in data transmission device
JPH0331940A (en) Microprogram controller
JPS625449A (en) Debug system for information processor
JPH07182203A (en) Microcomputer development supporting device