JPH10283219A - Information processor start system - Google Patents

Information processor start system

Info

Publication number
JPH10283219A
JPH10283219A JP9089248A JP8924897A JPH10283219A JP H10283219 A JPH10283219 A JP H10283219A JP 9089248 A JP9089248 A JP 9089248A JP 8924897 A JP8924897 A JP 8924897A JP H10283219 A JPH10283219 A JP H10283219A
Authority
JP
Japan
Prior art keywords
time
timer
initialization
diagnosis
unit
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.)
Granted
Application number
JP9089248A
Other languages
Japanese (ja)
Other versions
JP2978820B2 (en
Inventor
Takayuki Oguri
孝之 小栗
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 Platforms Ltd
Original Assignee
NEC AccessTechnica 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 NEC AccessTechnica Ltd filed Critical NEC AccessTechnica Ltd
Priority to JP9089248A priority Critical patent/JP2978820B2/en
Publication of JPH10283219A publication Critical patent/JPH10283219A/en
Application granted granted Critical
Publication of JP2978820B2 publication Critical patent/JP2978820B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To shorten the start time by eliminating an unnecessary processing time at the time of execution of an initializing program and a self-diagnostic program. SOLUTION: This system is provided with a timer which counts the time by a clock pulse, a timer time part 102 which reads the time from the timer, each function initializing part 105 which initializes various functions of an information processor, and a scheduler 101 which controls a scheduler of the information processor. When the value of the timer time part 102 reaches the time when initialization is possible, the scheduler 101 transfers the control to each function initializing part 105; and when the value of the timer time part 102 reaches the time when diagnosis is possible after the end of execution of the initializing program, the scheduler 101 transfers the control to each function diagnosis part 108.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、情報処理装置起動
方式に関し、特に、起動時に初期化プログラムおよび自
己診断プログラムを実行する情報処理装置起動方式に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus activation method, and more particularly, to an information processing apparatus activation method for executing an initialization program and a self-diagnosis program at the time of activation.

【0002】[0002]

【従来の技術】従来の情報処理装置起動方式は、あらか
じめROMなどに初期化プログラムおよび自己診断プロ
グラムを記憶させておき、電源投入時に実行させてい
た。
2. Description of the Related Art In a conventional information processing apparatus starting method, an initialization program and a self-diagnosis program are stored in a ROM or the like in advance and executed when the power is turned on.

【0003】この種のプログラムは初期化の過程でウェ
イト時間を挿入したり、電源投入から特定の時間はアク
セス禁止であったりする。ウェイト時間の計測に特定の
命令を何回も実行させることによって実現したり、電源
投入してからの時間のアクセス禁止の場合には、適当に
ウェイト時間を挿入して実現していた。このため、無駄
なウェイト時間が発生していて、情報処理装置が電源を
投入してからOSが動き出すまでの時間が遅くなってい
た。
In this type of program, a wait time is inserted in the process of initialization, and access is prohibited for a specific time after power-on. In order to measure the wait time, a specific instruction is executed many times, or in the case of prohibiting access for a time period after the power is turned on, the wait time is appropriately inserted. Therefore, a useless wait time occurs, and the time from when the information processing apparatus is turned on to when the OS starts to operate is delayed.

【0004】また、ウェイト時間を必要最小限確保した
場合は、情報処理装置のCPUを高速なものに変更する
改造等をすると、ウェイト時間が不足することも発生し
ていた。
[0004] In addition, when the wait time is secured to a necessary minimum, if the CPU of the information processing apparatus is modified to be faster, the wait time may be insufficient.

【0005】従来方式の問題点を解決するため、電源投
入時の所要時間を短縮して、高速に起動させる方式が特
開平3−204042号公報に提案されている。
In order to solve the problems of the conventional system, Japanese Patent Laid-Open Publication No. Hei 3-204042 proposes a system in which the time required at the time of turning on the power is shortened and the system is started at a high speed.

【0006】この公報に示された方式は、「電源投入の
度に診断しなければならないほど信頼性は低くなく、診
断時間が長いので無駄が大きい」欠点を解決する点に注
目している。提案された方式は、情報処理装置の各機能
をそれぞれ、またはまとめて、何回か情報処理装置を起
動するごとに1回診断する方式である。例えば、5回起
動しても診断するのは1回だけである。
The method disclosed in this publication focuses on solving the disadvantage that "the reliability is not low enough to make a diagnosis every time the power is turned on, and the diagnosis time is long and wasteful". The proposed method is a method of diagnosing each function of the information processing apparatus individually or collectively once every time the information processing apparatus is started. For example, even if it is activated five times, diagnosis is performed only once.

【0007】図17と図18を参照して説明する。図1
7はブロック図である。図17に示す情報処理装置は、
バス1701を介して接続されているプロセッサ170
2と、不揮発性メモリであるROM1703と、電気的
に書き換え可能な不揮発性メモリであるEEPROM1
704とを含んで構成されている。
A description will be given with reference to FIGS. 17 and 18. FIG.
7 is a block diagram. The information processing apparatus shown in FIG.
Processor 170 connected via bus 1701
ROM 1703 which is a nonvolatile memory, and EEPROM 1 which is an electrically rewritable nonvolatile memory
704.

【0008】図18は動作を示すフローチャートであ
る。電源が投入されるとプロセッサ1702はROM1
703から命令を読み込んで実行する。ステップ181
1で初期設定後、EEPROM1704の予め定められ
た番地の内容を読み出し、読み出した値をXとする(ス
テップ1812)。Xが0か否かを判断し(ステップ1
813)、0であればN−1をA番地に書き込む(N回
電源を投入する毎に1回の診断を行う)。次に診断を行
う(ステップ1815)。以降の動作は公知なので説明
を省略する。Xが0でないときには、X−1をA番地に
書き込み、診断をバイパスして情報処理装置を使用可と
する。
FIG. 18 is a flowchart showing the operation. When the power is turned on, the processor 1702 reads the ROM1
The instruction is read from 703 and executed. Step 181
After the initial setting at 1, the contents of the predetermined address of the EEPROM 1704 are read, and the read value is set to X (step 1812). It is determined whether or not X is 0 (step 1).
813) If it is 0, N-1 is written to address A (one diagnosis is performed every time the power is turned on N times). Next, diagnosis is performed (step 1815). Subsequent operations are well known, and a description thereof will be omitted. When X is not 0, X-1 is written to address A, and the diagnosis is bypassed to enable use of the information processing apparatus.

【0009】[0009]

【発明が解決しようとする課題】上述した従来の情報処
理装置起動方式は、無駄なウェイト時間が発生してい
て、情報処理装置が電源を投入してからOSが動き出す
までの時間が遅くなるという問題点がある。
In the above-described conventional information processing apparatus activation method, a useless wait time occurs, and the time from when the information processing apparatus is turned on to when the OS starts to operate is delayed. There is a problem.

【0010】また、ウェイト時間を必要最小限確保した
場合は、情報処理装置のCPUを高速なものに変更する
改造等をすると、ウェイト時間が不足するという問題点
がある。
[0010] Further, when the minimum wait time is secured, if the CPU of the information processing apparatus is modified to be faster, the wait time becomes insufficient.

【0011】一方、特開平3−204042号公報に提
案された方式は、何回か情報処理装置を起動するごとに
1回診断する方式である。「電源投入の度に診断しなけ
ればならないほど信頼性は低くなく」とも決して故障の
発生は0にはならない。従って、情報処理装置が故障し
た時の検出が何回かに1回しかできず、情報処理装置が
実際に故障した時でも、故障を検出せずにプログラムを
動作させてしまう可能性があるという問題点がある。
On the other hand, the method proposed in Japanese Patent Application Laid-Open No. 3-202042 is a method in which diagnosis is performed once every time the information processing apparatus is started up several times. Even if "the reliability is not so low that the diagnosis must be made every time the power is turned on", the occurrence of a fault never goes to zero. Therefore, when the information processing device fails, detection can be performed only once in several times, and even when the information processing device actually fails, there is a possibility that the program may be operated without detecting the failure. There is a problem.

【0012】また、情報処理装置の診断時間が起動する
度に違うため、情報処理装置の利用者は、何らかの問題
があって情報処理装置の起動が遅いのか、それとも通常
より余分に診断をするために起動が遅いのか、判別でき
ないという問題点がある。
[0012] Further, since the diagnostic time of the information processing apparatus is different every time the apparatus is started, the user of the information processing apparatus may have some problem to start up the information processing apparatus slowly or to perform extra diagnosis than usual. However, there is a problem that it is impossible to determine whether the startup is slow.

【0013】本発明の目的は、初期化プログラムおよび
自己診断プログラム実行時に無駄な処理時間を削減し
て、起動時間を短縮した情報処理装置起動方式を提供す
ることにある。
An object of the present invention is to provide an information processing apparatus starting method in which the useless processing time during the execution of the initialization program and the self-diagnosis program is reduced to shorten the starting time.

【0014】[0014]

【課題を解決するための手段】本発明の情報処理装置起
動方式は、起動時に初期化プログラムおよび自己診断プ
ログラムを実行する情報処理装置起動方式において、ク
ロックパルスにより時間の計時を行うタイマーと、前記
タイマーから時間を読み取るタイマー計時手段と、初期
化プログラムを実行する時に初期化可能な時間となって
いるかの確認および自己診断プログラムを実行する時に
自己診断可能な時間となっているかの確認を行う手段と
を備えることを特徴とする本発明の情報処理装置起動方
式は、起動時に初期化プログラムおよび自己診断プログ
ラムを実行する情報処理装置起動方式において、クロッ
クパルスにより時間の計時を行うタイマーと、前記タイ
マーから時間を読み取るタイマー計時部と、情報処理装
置の各種の機能を初期化する各機能初期化部と、前記情
報処理装置の各種の機能を診断する各機能診断部と、前
記情報処理装置のスケジュールを制御するスケジューラ
とを備え、前記スケジューラは、前記タイマー計時部の
値が初期化可能な時間となったら前記各機能初期化部に
制御を渡し、初期化プログラム実行終了後、前記タイマ
ー計時部の値が診断可能な時間となったら前記各機能診
断部に制御を渡すようにしてもよい。
According to the present invention, there is provided an information processing apparatus start-up system for executing an initialization program and a self-diagnosis program at the time of start-up. Timer timing means for reading the time from a timer, and means for confirming whether the time is capable of being initialized when executing the initialization program and for confirming whether the time is capable of performing self-diagnosis when executing the self-diagnosis program An information processing device activation method according to the present invention, characterized in that it comprises an information processing device activation method for executing an initialization program and a self-diagnosis program at startup, and a timer for measuring time by a clock pulse; and Timer function that reads the time from the Each function initialization unit to initialize, each function diagnosis unit that diagnoses various functions of the information processing device, and a scheduler that controls a schedule of the information processing device, wherein the scheduler is a timer When the value reaches a time at which initialization can be performed, control is passed to the function initialization units.After the execution of the initialization program, control is performed by the function diagnosis units when the value of the timer clock unit reaches a time at which diagnosis can be performed. You may pass it.

【0015】本発明の情報処理装置起動方式は、前記ス
ケジューラは、前記初期化プログラムと前記自己診断プ
ログラムの実行の順番と、前記初期化プログラムと前記
自己診断プログラムの未実行または実行済の情報とを有
するキューテーブルを備えるようにしてもよい。
In the information processing apparatus activation method according to the present invention, the scheduler may include an execution order of the initialization program and the self-diagnosis program, and information on whether the initialization program and the self-diagnosis program have not been executed or have been executed. May be provided.

【0016】本発明の情報処理装置起動方式は、前記キ
ューテーブルは、前記初期化プログラムと前記自己診断
プログラムの各モジュールの呼出可能時間情報を持つモ
ジュールテーブルを備え、前記タイマーは、特定の時間
になったら割り込み信号を発生する機能を持ち、前記ス
ケジューラは、最も早く動作可能なモジュールを選択し
て前記割り込み信号を利用して割り当てた時間のみ前記
モジュールを動作させるようにしてもよい。
In the information processing apparatus activation method according to the present invention, the queue table includes a module table having callable time information of each module of the initialization program and the self-diagnosis program, and the timer operates at a specific time. In this case, the scheduler may have a function of generating an interrupt signal, and the scheduler may select a module that can operate at the earliest time and operate the module only for a time allocated using the interrupt signal.

【0017】[0017]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0018】図1は、本発明の実施の形態の構成を示す
ブロック図である。図1を参照すると、本発明の実施の
形態は、スケジューラ101と、タイマー計時部102
と、初期化部103と、診断部106と、エラーメッセ
ージ表示部109とを含む。
FIG. 1 is a block diagram showing the configuration of the embodiment of the present invention. Referring to FIG. 1, an embodiment of the present invention includes a scheduler 101 and a timer
, An initialization unit 103, a diagnosis unit 106, and an error message display unit 109.

【0019】初期化部103は、タイマー関連初期化部
104と、各機能初期化部105とを備えている。タイ
マー関連初期化部104は、タイマー計時部102が利
用するタイマーの初期化の他、タイマーを利用するため
に必要な最低限の機能の初期化、例えばバスやキャッシ
ュ等の初期化を行う。各機能初期化部105は、情報処
理装置の各種の機能を初期化する機能群である。なお、
タイマーは、情報処理装置固有のクロックを1クロック
毎にカウントアップしていくもので、図では省略してあ
る。
The initialization unit 103 includes a timer-related initialization unit 104 and each function initialization unit 105. The timer-related initialization unit 104 performs initialization of a timer used by the timer clock unit 102 and initialization of minimum functions necessary for using the timer, for example, initialization of a bus and a cache. Each function initialization unit 105 is a function group for initializing various functions of the information processing apparatus. In addition,
The timer counts up a clock unique to the information processing apparatus for each clock, and is omitted in the figure.

【0020】診断部106は、タイマー関連診断部10
7と、各機能診断部108とを備えている。タイマー関
連診断部107は、タイマー計時部102が利用するタ
イマーの診断の他、タイマーを利用するために必要な最
低限の機能の診断、例えばCPUの診断やキャッシュの
診断等と、スケジューラ101がタイマー計時部102
より読み取った時間を保存するレジスタまたはメモリ等
の診断を行う。各機能診断部108は、情報処理装置の
各種の機能を診断する機能群である。
The diagnosing unit 106 includes a timer-related diagnosing unit 10
7 and each function diagnosis unit 108. The timer-related diagnosis unit 107 diagnoses the minimum functions required to use the timer, such as the diagnosis of the CPU and the cache, in addition to the diagnosis of the timer used by the timer clock unit 102. Timer 102
A diagnosis of a register or a memory for storing the read time is performed. Each function diagnosis unit 108 is a group of functions for diagnosing various functions of the information processing apparatus.

【0021】次に、本発明の実施の形態の動作につい
て、図1、図2を参照して説明する。
Next, the operation of the embodiment of the present invention will be described with reference to FIGS.

【0022】図2は、本発明の実施の形態のフローチャ
ートである。情報処理装置が動き出すと、最初にスケジ
ューラ101が動作する。スケジューラ101は、タイ
マー関連初期化部104に初期化の指示をする(ステッ
プ201)。タイマー関連初期化部104の初期化が終
了すると、スケジューラ101は、タイマー関連診断部
107に診断の指示をする。タイマー関連診断部107
は診断をして正常ならばスケジューラ101に制御を移
行し、異常ならばエラーメッセージ表示部109にエラ
ーメッセージの表示を指示する。エラーメッセージ表示
部109はエラーメッセージ表示後、動作を停止する
(ステップ202)。タイマー関連診断部107による
診断が終了するとスケジューラ101は、タイマー計時
部102にタイマーの値を読む指示をする。タイマー計
時部102はタイマーの値を読み取り、スケジューラ1
01にタイマーの値を返す。返されたタイマーの値を起
点としてスケジューラ101は各初期化や各診断の制御
を開始する(ステップ203)。この時間を、以降、ベ
ース時間と称する。
FIG. 2 is a flowchart of the embodiment of the present invention. When the information processing apparatus starts operating, first, the scheduler 101 operates. The scheduler 101 instructs the timer-related initialization unit 104 to perform initialization (step 201). When the initialization of the timer-related initialization unit 104 ends, the scheduler 101 instructs the timer-related diagnosis unit 107 to perform a diagnosis. Timer-related diagnosis unit 107
Diagnoses and transfers control to the scheduler 101 if normal, and instructs the error message display unit 109 to display an error message if abnormal. After displaying the error message, the error message display unit 109 stops operating (step 202). When the diagnosis by the timer-related diagnosis unit 107 is completed, the scheduler 101 instructs the timer clock unit 102 to read the value of the timer. The timer counting unit 102 reads the value of the timer, and
Return the timer value to 01. The scheduler 101 starts control of each initialization and each diagnosis with the returned timer value as a starting point (step 203). This time is hereinafter referred to as a base time.

【0023】再度、スケジューラ101は、タイマー計
時部102にタイマーの値を読む指示をする。タイマー
計時部102はタイマーの値を読み取り、スケジューラ
101にタイマーの値を返す(ステップ204)。スケ
ジューラ101は、読み取った値とベース時間の差を求
め、差が初期化可能な値となったら、各機能初期化部1
05に制御を渡す。差が初期化可能でない値の場合に
は、ステップ204に戻る(ステップ205、ステップ
206)。機能の初期化が終了したら、スケジューラ1
01は、他に初期化する機能がないか確認をする。も
し、初期化すべき機能があればステップ204に戻る。
初期化すべき機能がなければ、次に進む(ステップ20
7)。
Again, the scheduler 101 instructs the timer counting unit 102 to read the value of the timer. The timer counting unit 102 reads the value of the timer and returns the value of the timer to the scheduler 101 (Step 204). The scheduler 101 obtains a difference between the read value and the base time, and when the difference becomes a value that can be initialized, each function initialization unit 1
Pass control to 05. If the difference is a value that cannot be initialized, the process returns to step 204 (steps 205 and 206). When the function initialization is completed, scheduler 1
01 checks whether there is any other initialization function. If there is a function to be initialized, the process returns to step 204.
If there is no function to be initialized, proceed to the next step (step 20).
7).

【0024】スケジューラ101は、タイマー計時部1
02にタイマーの値を読む指示をする。タイマー計時部
102はタイマーの値を読み取り、スケジューラ101
にタイマーの値を返す(ステップ208)。スケジュー
ラ101は、読み取った値とベース時間の差を求め、差
が診断可能な時間となったら、各機能診断部108に制
御を渡す(ステップ209)。もし、各機能診断部10
8の診断中に機能の異常を検出したならば、エラーメッ
セージ表示部109にエラーメッセージの表示を指示す
る。エラーメッセージ表示部109はエラーメッセージ
表示後、動作を停止する(ステップ210)。
The scheduler 101 includes a timer clock unit 1
Instruct 02 to read the value of the timer. The timer counting unit 102 reads the value of the timer, and
Is returned to the timer (step 208). The scheduler 101 obtains a difference between the read value and the base time, and when the difference reaches a time at which a diagnosis can be made, passes the control to each function diagnosis unit 108 (step 209). If each function diagnosis unit 10
If an abnormality in the function is detected during the diagnosis of step 8, an instruction to display an error message is given to the error message display section 109. After displaying the error message, the error message display unit 109 stops operating (step 210).

【0025】機能の診断が終了したら、スケジューラ1
01は、他に診断すべき機能が無いか確認をする。も
し、診断すべき機能があれば再度スケジューラ101
は、ステップ208に戻る。もし無ければ終了する(ス
テップ211)。
When the function diagnosis is completed, the scheduler 1
01 checks whether there is any other function to be diagnosed. If there is a function to be diagnosed, the scheduler 101
Returns to step 208. If not, the process ends (step 211).

【0026】[0026]

【実施例】次に、本発明の実施例について図面を参照し
て詳細に説明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0027】まず、第1の実施例について説明する。第
1の実施例は、キーボードのみを初期化および診断をす
れば情報処理装置が起動できる例である。
First, a first embodiment will be described. The first embodiment is an example in which the information processing apparatus can be started by initializing and diagnosing only the keyboard.

【0028】図3は、本発明の第1の実施例の構成を示
すブロック図である。図3を参照すると、本発明の第1
の実施例は、スケジューラ301と、タイマー計時部3
02と、初期化部303と、診断部306と、エラーメ
ッセージ表示部309とを含む。
FIG. 3 is a block diagram showing the configuration of the first embodiment of the present invention. Referring to FIG. 3, a first embodiment of the present invention is shown.
In the embodiment, the scheduler 301 and the timer
02, an initialization unit 303, a diagnosis unit 306, and an error message display unit 309.

【0029】スケジューラ301は、ベース時間310
を備えている。ベース時間310は、時間の基準点とな
る時間を格納するレジスタまたはメモリである。
The scheduler 301 has a base time 310
It has. The base time 310 is a register or a memory that stores a time serving as a time reference point.

【0030】初期化部303は、タイマー初期化部30
4と、キーボード初期化部305とを備えている。タイ
マー初期化部304は、タイマー計時部302が利用す
るタイマーの初期化を行う。キーボード初期化部305
は、情報処理装置に接続されるキーボードの初期化を行
う。なお、タイマーは、情報処理装置固有のクロックを
1クロック毎にカウントアップしていくもので、図では
省略してある。
The initialization unit 303 includes a timer initialization unit 30
4 and a keyboard initialization unit 305. The timer initialization unit 304 initializes a timer used by the timer clock unit 302. Keyboard initialization unit 305
Performs initialization of a keyboard connected to the information processing apparatus. The timer counts up a clock unique to the information processing apparatus for each clock, and is omitted in the figure.

【0031】診断部306は、タイマー診断部307
と、キーボード診断部308とを備えている。タイマー
診断部307は、タイマー計時部302が利用するタイ
マー300の診断を行う。キーボード診断部308は、
情報処理装置に接続されるキーボードの機能を診断す
る。
The diagnosis unit 306 includes a timer diagnosis unit 307
And a keyboard diagnostic unit 308. The timer diagnosis unit 307 diagnoses the timer 300 used by the timer clock unit 302. The keyboard diagnostic unit 308
Diagnose the function of the keyboard connected to the information processing device.

【0032】次に、動作について、図3、図4、図5、
図6、図7を参照して説明する。
Next, the operation will be described with reference to FIGS.
This will be described with reference to FIGS.

【0033】図4は、本発明の第1の実施例のフローチ
ャートである。
FIG. 4 is a flow chart of the first embodiment of the present invention.

【0034】図5は、本発明の実施例のキーボードのタ
イムチャートである。POW ON時間501は、キー
ボードに電源が供給された時間であり、この時点からキ
ーボードの動作が始まる。初期化時間502は、POW
ONしてからキーボード内部で初期化している時間
で、この期間は情報処理装置本体よりキーボードに対し
てコマンドを発行することはできない。また、キーボー
ドのキーを押下してもキーデータが情報処理装置に通知
されない。この期間を過ぎると情報処理装置からコマン
ドを発行することができるようになる。リセットコマン
ド503は、情報処理装置本体からのリセット(初期
化)コマンドである。キーコード504は、リセット
(初期化)コマンドの処理時に押下されていたキーボー
ドのキーコードである。
FIG. 5 is a time chart of the keyboard according to the embodiment of the present invention. The POW ON time 501 is a time during which power is supplied to the keyboard, and the operation of the keyboard starts at this time. Initialization time 502 is POW
This is the time during which initialization is performed inside the keyboard after being turned on. During this period, no command can be issued from the information processing apparatus main body to the keyboard. Further, even if a key on the keyboard is pressed, the key data is not notified to the information processing apparatus. After this period, a command can be issued from the information processing device. The reset command 503 is a reset (initialization) command from the information processing apparatus main body. The key code 504 is a key code of the keyboard that has been pressed when the reset (initialization) command is processed.

【0035】図6は、キーボードにコマンドを発行する
時の制限事項を示した図である。リセットコマンドを発
行した後のみ(他のコマンドは関係無し)0〜3msの
コマンド受付不可期間601と10〜50msのコマン
ド受付不可期間603は、次のコマンドを発行禁止であ
る。3ms〜10msのコマンド受付可能期間602
と、50ms以降のコマンド受付可能期間604は、次
のコマンドを発行可能である期間である。情報処理装置
本体はコマンド受付可能期間602またはコマンド受付
可能期間604の期間にキーボードにコマンドを発行し
なくてはならない。
FIG. 6 is a diagram showing the restrictions when issuing a command to the keyboard. Only after the reset command is issued (other commands have no relation), the next command is prohibited during the command non-reception period 601 of 0 to 3 ms and the command non-reception period 603 of 10 to 50 ms. Command acceptable period 602 for 3 ms to 10 ms
And the command acceptable period 604 after 50 ms is a period during which the next command can be issued. The information processing apparatus body must issue a command to the keyboard during the command acceptable period 602 or the command acceptable period 604.

【0036】図7は、キーボード初期化および診断の流
れを各モジュールの分担別に示した図である。
FIG. 7 is a diagram showing the flow of keyboard initialization and diagnosis for each module.

【0037】図3を参照しながら、図4と図7の動作の
流れを説明する。情報処理装置が動き出すと、最初にス
ケジューラ301が動作する。スケジューラ301は、
タイマー初期化部304にタイマーの初期化を指示す
る。タイマー初期化部304はタイマーの初期化をする
(ステップ401)。タイマーの初期化が終了すると、
スケジューラ301はタイマー診断部307にタイマー
の診断を指示する。タイマー診断部307は診断をす
る。もし、診断の結果タイマーが正常に動作しなけれ
ば、エラーメッセージ表示部309にエラーメッセージ
表示の指示をして情報処理装置の動作を停止する(ステ
ップ402)。タイマーの診断の結果タイマーが正常な
らば、スケジューラ301はタイマー計時部302に計
時の指示をする。タイマー計時部302はタイマーを計
時し、スケジューラ301に計時した値を返す(ステッ
プ403)。以降、このタイマー計時部302より受け
取った時間を現在時間と称する。スケジューラ301は
計時された値をベース時間310にセットする(ステッ
プ404、ステップ701)。
The operation flow of FIGS. 4 and 7 will be described with reference to FIG. When the information processing apparatus starts operating, first, the scheduler 301 operates. The scheduler 301
The timer initialization unit 304 is instructed to initialize the timer. The timer initialization unit 304 initializes a timer (step 401). When the initialization of the timer is completed,
The scheduler 301 instructs the timer diagnostic unit 307 to diagnose the timer. The timer diagnosis unit 307 makes a diagnosis. If the timer does not operate normally as a result of the diagnosis, the error message display unit 309 is instructed to display an error message, and the operation of the information processing apparatus is stopped (step 402). If the result of the timer diagnosis indicates that the timer is normal, the scheduler 301 instructs the timer clocking unit 302 to measure time. The timer counting unit 302 counts the timer and returns the counted value to the scheduler 301 (step 403). Hereinafter, the time received from the timer clock unit 302 is referred to as the current time. The scheduler 301 sets the counted value to the base time 310 (step 404, step 701).

【0038】スケジューラ301は、タイマー計時部3
02より現在時間を受け取る(ステップ405)。最初
は初期化可能時間は設定されていないため、ベース時間
310と現在時間を比較すると、等しいかまたはベース
時間310の値が小さいので、初期化可能と判断し(ス
テップ406)、キーボード初期化部305にキーボー
ドの初期化の指示をする(ステップ407)。キーボー
ド初期化部305は、ベース時間310をPOW ON
時間501とほぼ同じであるとして、スケジューラ30
1に対して、初期化時間502後にキーボード初期化部
305を呼び出す値と初期化が終了していない値とを返
す(ステップ702)。スケジューラ301はタイマー
計時部302より現在時間を受け取り(ステップ40
8)、現在時間とキーボード初期化部305を呼び出す
値を加えて、ベース時間310を書き換える(ステップ
409)。スケジューラ301は初期化は終了していな
いので、ステップ405に戻る(ステップ410)。
The scheduler 301 has a timer
The current time is received from 02 (step 405). Initially, since the initializable time is not set, when the base time 310 is compared with the current time, it is determined that initialization is possible because they are equal or the value of the base time 310 is small (step 406), and the keyboard initializing unit Instruct 305 to initialize the keyboard (step 407). The keyboard initialization unit 305 sets the base time 310 to POW ON
Assuming that the time is almost the same as the time 501, the scheduler 30
In response to 1, a value for calling the keyboard initialization unit 305 after the initialization time 502 and a value for which initialization has not been completed are returned (step 702). The scheduler 301 receives the current time from the timer timer 302 (step 40).
8) The base time 310 is rewritten by adding the current time and the value for calling the keyboard initialization unit 305 (step 409). Since the initialization has not been completed, the scheduler 301 returns to step 405 (step 410).

【0039】スケジューラ301は、タイマー計時部3
02より現在時間を受け取る(ステップ405)。スケ
ジューラ301は、ベース時間310と現在時間との差
を計算する。もし、差が正の値であれば、まだキーボー
ド初期化部305を呼び出す時間になっていないと判断
しステップ405に戻る。負の値であれば、キーボード
初期化部305を呼び出す時間であると判断をする(ス
テップ406、ステップ703)。以降の説明では時間
待ちの説明は省略する。
The scheduler 301 has a timer
The current time is received from 02 (step 405). The scheduler 301 calculates a difference between the base time 310 and the current time. If the difference is a positive value, it is determined that it is not yet time to call the keyboard initialization unit 305, and the process returns to step 405. If the value is a negative value, it is determined that it is time to call the keyboard initialization unit 305 (steps 406 and 703). In the following description, the description of waiting for time is omitted.

【0040】キーボード初期化部305の指定した時間
となると、ベース時間310と現在時間との差は負の値
となるので、キーボードの初期化は可能となる(ステッ
プ406)。スケジューラ301は、キーボード初期化
部305にキーボードの初期化の指示をする(ステップ
407)。キーボード初期化部305は、キーボードに
リセットコマンドを発行し(ステップ704)、スケジ
ューラ301に対して、50ms後にキーボード初期化
部305を呼び出す値と初期化終了していない値を返す
(ステップ705)。スケジューラ301はタイマー計
時部302より現在時間を受け取り(ステップ40
8)、現在時間とキーボード初期化部305を呼び出す
値を加えて、ベース時間310を書き換える(ステップ
409)。スケジューラ301は初期化は終了していな
いので、ステップ405に戻る(ステップ410)。
At the time specified by the keyboard initialization unit 305, the difference between the base time 310 and the current time becomes a negative value, so that the keyboard can be initialized (step 406). The scheduler 301 instructs the keyboard initialization unit 305 to initialize the keyboard (step 407). The keyboard initialization unit 305 issues a reset command to the keyboard (step 704), and returns to the scheduler 301 a value that calls the keyboard initialization unit 305 after 50 ms and a value that has not been initialized (step 705). The scheduler 301 receives the current time from the timer timer 302 (step 40).
8) The base time 310 is rewritten by adding the current time and the value for calling the keyboard initialization unit 305 (step 409). Since the initialization has not been completed, the scheduler 301 returns to step 405 (step 410).

【0041】上述と同様の時間待ちの処理を経て、50
ms後にキーボード初期化部305が呼ばれる(ステッ
プ407、ステップ706)。キーボード初期化部30
5は、スケジューラ301に初期化を終了したことを示
す値を返す(ステップ707)。スケジューラ301は
初期化が終了した値を受け取り(ステップ410)、診
断処理を開始する。
After the same time waiting process as described above, 50
After ms, the keyboard initialization unit 305 is called (steps 407 and 706). Keyboard initialization unit 30
5 returns a value indicating that initialization has been completed to the scheduler 301 (step 707). The scheduler 301 receives the initialized value (step 410), and starts a diagnostic process.

【0042】スケジューラ301は、タイマー計時部3
02より現在時間を受け取る(ステップ411)。最初
は診断可能時間は設定されていないため、ベース時間3
10と現在時間を比較すると、等しいかまたはベース時
間310の値が小さいので、診断可能と判断し(ステッ
プ412)、キーボード診断部308にキーボードの診
断の指示をする(ステップ413)。キーボード診断部
308は、キーボードに自己診断コマンドを発行しまだ
自己診断結果をキーボードから受け取っていないため正
常終了したと判断する(ステップ414、ステップ70
8)。キーボード診断部308はスケジューラ301に
対して、10ms後にキーボード初期化部305を呼び
出す値と、診断が終了していないことを示す値とを返す
(ステップ709)。ここで、10msはキーボードか
ら自己診断結果が出力されるまでの時間である。スケジ
ューラ301はタイマー計時部302より現在時間を受
け取り(ステップ415)、現在時間とキーボード初期
化部305を呼び出す値を加えて、ベース時間310を
書き換える(ステップ416)。スケジューラ301
は、診断は終了していないのでステップ411に戻る
(ステップ417)。
The scheduler 301 has a timer
02, the current time is received (step 411). Initially, no diagnostic time is set, so base time 3
When the current time is compared with 10, the base time 310 is equal or the value of the base time 310 is small, so that it is determined that the diagnosis is possible (step 412), and the keyboard diagnosis unit 308 is instructed to diagnose the keyboard (step 413). The keyboard diagnosis unit 308 issues a self-diagnosis command to the keyboard and determines that the self-diagnosis has been completed normally since the self-diagnosis result has not been received from the keyboard (steps 414 and 70).
8). The keyboard diagnosis unit 308 returns a value for calling the keyboard initialization unit 305 after 10 ms to the scheduler 301 and a value indicating that the diagnosis is not completed (step 709). Here, 10 ms is the time until the self-diagnosis result is output from the keyboard. The scheduler 301 receives the current time from the timer counting unit 302 (step 415), and rewrites the base time 310 by adding the current time and a value for calling the keyboard initialization unit 305 (step 416). Scheduler 301
Returns to step 411 because the diagnosis has not been completed (step 417).

【0043】上述と同様の時間待ちの処理を経て、10
ms後にキーボード診断部308が呼ばれる(ステップ
413、ステップ710)。キーボード診断部308
は、キーボードからの自己診断結果を受け取る(ステッ
プ414、ステップ711)。もし、自己診断結果が異
常ならば、(ステップ414、ステップ712)エラー
メッセージの表示の指示をエラーメッセージ表示部30
9に与え(ステップ418、ステップ714)、動作を
停止する(ステップ419、ステップ716)。
After the same time waiting process as described above, 10
After ms, the keyboard diagnosis unit 308 is called (steps 413 and 710). Keyboard diagnostic unit 308
Receives the self-diagnosis result from the keyboard (steps 414 and 711). If the self-diagnosis result is abnormal (steps 414 and 712), an instruction to display an error message is issued to the error message display unit 30.
9 (steps 418 and 714), and stops the operation (steps 419 and 716).

【0044】もし、自己診断結果が正常ならば、キーボ
ード診断部308は診断終了を示す値をスケジューラ3
01に返す(ステップ713)。スケジューラ301は
タイマー計時部302より現在時間を受け取り(ステッ
プ415)、現在時間とキーボード初期化部305を呼
び出す値を加えて、ベース時間310を書き換える(ス
テップ416)。スケジューラ301は診断終了なので
(ステップ417)、初期化および診断の処理を終了す
る。
If the self-diagnosis result is normal, the keyboard diagnosis unit 308 sends a value indicating the end of the diagnosis to the scheduler 3.
01 (step 713). The scheduler 301 receives the current time from the timer counting unit 302 (step 415), and rewrites the base time 310 by adding the current time and a value for calling the keyboard initialization unit 305 (step 416). Since the scheduler 301 has completed the diagnosis (step 417), the process of initialization and diagnosis is completed.

【0045】次に、本発明の第2の実施例について、図
5、図6、図8、図9、図10、図11を参照して説明
する。第2の実施例は、第1の実施例と同様、キーボー
ドのみを初期化および診断をすれば情報処理装置が起動
できる例である。
Next, a second embodiment of the present invention will be described with reference to FIGS. 5, 6, 8, 9, 10, and 11. FIG. The second embodiment is an example in which the information processing apparatus can be started by initializing and diagnosing only the keyboard, as in the first embodiment.

【0046】図8は、本発明の第2の実施例の構成を示
すブロック図である。図8を参照すると、スケジューラ
801と、タイマー計時部802と、初期化部803
と、診断部806と、エラーメッセージ表示部809と
を含む。
FIG. 8 is a block diagram showing the configuration of the second embodiment of the present invention. Referring to FIG. 8, a scheduler 801, a timer clock unit 802, and an initialization unit 803.
, A diagnosis unit 806 and an error message display unit 809.

【0047】スケジューラ801は、ベース時間810
とキューテーブル811とを備えている。ベース時間8
10は、時間の基準点となる時間を格納するレジスタま
たはメモリである。キューテーブル811は、各初期化
および診断モジュールの実行の順番と実行未・済の情報
を含むテーブルである。
The scheduler 801 has a base time 810
And a queue table 811. Base time 8
Reference numeral 10 denotes a register or a memory for storing a time serving as a time reference point. The queue table 811 is a table including the order of execution of each initialization and diagnosis module, and information on whether or not the module has been executed.

【0048】図9は、キューテーブル811の構成図で
ある。図9を参照すると、キューテーブル811は実行
するモジュールのアドレスを示すモジュールポインタ9
01と実行の未実行または実行済を示す未・済フラグ9
02とから構成される。これらの情報は実行する順番に
並べられている。
FIG. 9 is a configuration diagram of the queue table 811. Referring to FIG. 9, a queue table 811 stores a module pointer 9 indicating an address of a module to be executed.
01 and an unexecuted / unexecuted flag 9 indicating that execution has not been performed
02. These pieces of information are arranged in the order of execution.

【0049】初期化部803は、タイマー初期化部80
4と、キーボード初期化部805とを備えている。タイ
マー初期化部804は、タイマー計時部802が利用す
るタイマーの初期化をする。キーボード初期化部805
は、初期化A812、初期化B813とを備えている。
初期化A812は初期化時間502をスケジューラ80
1に伝える。初期化B813は情報処理装置に接続され
るキーボードを初期化する。なお、タイマーは、情報処
理装置固有のクロックを1クロック毎にカウントアップ
していくもので、図では省略してある。
The initialization unit 803 includes a timer initialization unit 80
4 and a keyboard initialization unit 805. The timer initialization unit 804 initializes a timer used by the timer clock unit 802. Keyboard initialization unit 805
Has an initialization A 812 and an initialization B 813.
The initialization A 812 sets the initialization time 502 to the scheduler 80.
Tell 1 The initialization B813 initializes a keyboard connected to the information processing device. The timer counts up a clock unique to the information processing apparatus for each clock, and is omitted in the figure.

【0050】診断部806は、タイマー診断部807
と、キーボード診断部808とを備えている。タイマー
診断部807は、タイマー計時部802が利用するタイ
マー800の診断をする。キーボード診断部808は、
診断A814と診断B815とを備えている。診断A8
14は情報処理装置に接続されるキーボードの機能を自
己診断するコマンドを発行する。診断B815は。自己
診断結果を受け取り、正常・異常を判定する。
The diagnosis unit 806 includes a timer diagnosis unit 807
And a keyboard diagnostic unit 808. The timer diagnosis unit 807 diagnoses the timer 800 used by the timer clock unit 802. The keyboard diagnostic unit 808
A diagnosis A 814 and a diagnosis B 815 are provided. Diagnosis A8
14 issues a command for self-diagnosing the function of a keyboard connected to the information processing apparatus. Diagnosis B815. Receive self-diagnosis result and determine normal / abnormal.

【0051】次に、動作について説明する。Next, the operation will be described.

【0052】図10は、第2の実施例のフローチャート
である。図11は、キーボード初期化および診断の流れ
を各モジュールの分担別に示した図である。
FIG. 10 is a flowchart of the second embodiment. FIG. 11 is a diagram showing the flow of keyboard initialization and diagnosis for each module.

【0053】情報処理装置が動き出すと、最初にスケジ
ューラ801が動作する。スケジューラ801は、タイ
マー初期化部804にタイマーの初期化を指示する。タ
イマー初期化部804はタイマーの初期化をする(ステ
ップ1001)。タイマーの初期化が終了すると、スケ
ジューラ801はタイマー診断部807にタイマーの診
断を指示する。タイマー診断部807は診断をする(ス
テップ1002)。もし、診断の結果タイマーが正常に
動作しなければ、エラーメッセージ表示部809にエラ
ーメッセージ表示の指示をして情報処理装置の動作を停
止する。タイマーの診断の結果タイマーが正常ならば、
スケジューラ801はタイマー計時部802より現在時
間を受け取る(ステップ1003)。スケジューラ80
1は現在時間をベース時間810にセットし(ステップ
1004)、未・済フラグ902を未実施にセットする
(ステップ1005、ステップ1101)。
When the information processing apparatus starts operating, first, the scheduler 801 operates. The scheduler 801 instructs the timer initialization unit 804 to initialize the timer. The timer initialization unit 804 initializes a timer (step 1001). When the initialization of the timer is completed, the scheduler 801 instructs the timer diagnosis unit 807 to diagnose the timer. The timer diagnosis unit 807 makes a diagnosis (step 1002). If the timer does not operate normally as a result of the diagnosis, the error message display unit 809 is instructed to display an error message, and the operation of the information processing apparatus is stopped. If the timer diagnosis shows that the timer is normal,
The scheduler 801 receives the current time from the timer clock unit 802 (step 1003). Scheduler 80
1 sets the current time to the base time 810 (step 1004), and sets the unfinished / finished flag 902 to unexecuted (step 1005, step 1101).

【0054】スケジューラ801は、タイマー計時部8
02より現在時間を受け取る(ステップ1006)。最
初は次のモジュールを呼び出すまでの時間は設定されて
いないため、ベース時間810と現在時間を比較する
と、等しいかまたはベース時間810の値が小さいの
で、最初のモジュールを呼び出し可と判断し(ステップ
1007)、最初に呼び出すモジュールをモジュールポ
インタ901より選択する(ステップ1008)。選択
した初期化A812をスケジューラ801は呼び出す
(ステップ1009)。初期化A812は、ベース時間
810をPOW ON時間501とほぼ同じであるとし
て、スケジューラ801に対して、初期化中時間502
後に次のモジュール呼出可能の値を返す(ステップ11
02)。この値を、以降、呼出可能時間と称する。スケ
ジューラ801はキューテーブル811の初期化A81
2の未・済フラグ902を実行済みにセットする(ステ
ップ1010、ステップ1103)。スケジューラ80
1はタイマー計時部802より現在時間を受け取り(ス
テップ1011)、現在時間と呼出可能時間を加えて、
ベース時間810を書き換える(ステップ1012)。
次にスケジューラ801は、キューテーブル811の初
期化A812の次に呼び出すモジュールの有無を未・済
フラグ902を参照してチェックする。次に初期化B8
13が動作するのでステップ1006に戻る(ステップ
1013)。
The scheduler 801 has a timer
02, the current time is received (step 1006). At first, since the time until the next module is called is not set, when the base time 810 is compared with the current time, since the base time 810 is equal or the value of the base time 810 is small, it is determined that the first module can be called (step 1007) The module to be called first is selected from the module pointer 901 (step 1008). The scheduler 801 calls the selected initialization A 812 (step 1009). The initialization A 812 determines that the base time 810 is almost the same as the POW ON time 501 and informs the scheduler 801 of the initialization time 502
Later, the next module callable value is returned (step 11).
02). This value is hereinafter referred to as a callable time. The scheduler 801 initializes the queue table 811 A81
Then, the non-finished flag 902 of the second is set to executed (step 1010, step 1103). Scheduler 80
1 receives the current time from the timer counting unit 802 (step 1011), adds the current time and the callable time,
The base time 810 is rewritten (step 1012).
Next, the scheduler 801 checks the presence / absence of a module to be called next to the initialization A 812 in the queue table 811 with reference to the unfinished / finished flag 902. Next, initialization B8
Since 13 operates, the process returns to step 1006 (step 1013).

【0055】スケジューラ801は、タイマー計時部8
02より現在時間を受け取る(ステップ1006)。ス
ケジューラ801は、ベース時間810と現在時間との
差を計算する。もし、差が正の値であれば、まだ次モジ
ュールを呼び出し可能な時間になっていないと判断し、
ステップ1006に戻る。負の値であれば、次モジュー
ルを呼び出し可能な時間であると判断をする(ステップ
1007)。次モジュールの呼出可能な時間となるま
で、処理はループし続ける(ステップ1104)。以降
の説明で、時間待ちの説明は略す。
The scheduler 801 includes a timer clock unit 8
02, the current time is received (step 1006). The scheduler 801 calculates the difference between the base time 810 and the current time. If the difference is a positive value, it is determined that it is not yet time to call the next module,
It returns to step 1006. If the value is a negative value, it is determined that it is time to call the next module (step 1007). The process continues to loop until the next module can be called (step 1104). In the following description, description of waiting for time is omitted.

【0056】次モジュールを呼出可能な時間となると、
ベース時間810と現在時間との差は負の値となる(ス
テップ1007)。スケジューラ801はキューテーブ
ル811より未・済フラグ902を参照して未実行のモ
ジュールで実行順序の早いモジュールを探す(ステップ
1008)。スケジューラ801は、見つけたモジュー
ルである初期化B813を呼び出す(ステップ100
9)。初期化B813は、キーボードにリセットコマン
ドを発行し(ステップ1105)、スケジューラ801
に対して、50msの呼出可能時間を返す(ステップ1
106)。スケジューラ801はキューテーブル811
の初期化B813の未・済フラグ902を実行済みにセ
ットする(ステップ1010、ステップ1107)。ス
ケジューラ801はタイマー計時部802より現在時間
を受け取り(ステップ1011)、現在時間と呼出可能
時間を加えて、ベース時間810を書き換える(ステッ
プ1012)。スケジューラ801は、キューテーブル
811の初期化B813の次に呼び出すモジュールの有
無を未・済フラグ902を参照してチェックする。次に
診断A814が動作するのでステップ1006に戻る
(ステップ1013)。
When it is time to call the next module,
The difference between the base time 810 and the current time is a negative value (step 1007). The scheduler 801 refers to the unfinished / finished flag 902 from the queue table 811 and searches for an unexecuted module that has an earlier execution order (step 1008). The scheduler 801 calls the found module, initialization B813 (step 100).
9). The initialization B 813 issues a reset command to the keyboard (step 1105), and the scheduler 801
Returns a callable time of 50 ms (step 1)
106). The scheduler 801 has a queue table 811
Of the unfinished / completed flag 902 of the initialization B 813 of the step (step 1010, step 1107). The scheduler 801 receives the current time from the timer counting unit 802 (step 1011), and rewrites the base time 810 by adding the current time and the callable time (step 1012). The scheduler 801 checks the presence / absence of a module to be called next to the initialization B 813 in the queue table 811 with reference to the unfinished / finished flag 902. Next, since the diagnosis A 814 operates, the process returns to step 1006 (step 1013).

【0057】上述と同様の時間待ちの処理を経て、50
ms経つまでループを続ける(ステップ1108)。ス
ケジューラ801はキューテーブル811より未・済フ
ラグ902を参照して未実行のモジュールで実行順序の
早いモジュールを探す(ステップ1008)。スケジュ
ーラ801は、見つけたモジュールである診断A814
を呼び出す(ステップ1009)。診断A814は、キ
ーボードに自己診断コマンドを発行し(ステップ100
9、ステップ1109)、スケジューラ801に対して
呼出可能時間10msを返す(ステップ1110)。ス
ケジューラ801はキューテーブル811の診断A81
4の未・済フラグ902を実行済みにセットする(ステ
ップ1010、ステップ1111)。スケジューラ80
1はタイマー計時部802より現在時間を受け取り(ス
テップ1011)、現在時間と呼出可能時間を加えて、
ベース時間810を書き換える(ステップ1012)。
スケジューラ801は、キューテーブル811の診断A
814の次に呼び出すモジュールの有無を未・済フラグ
902を参照してチェックする。次に診断B815が動
作するのでステップ1006に戻る(ステップ101
3)。
After the same time waiting process as described above, 50
The loop is continued until ms elapses (step 1108). The scheduler 801 refers to the unfinished / finished flag 902 from the queue table 811 and searches for an unexecuted module that has an earlier execution order (step 1008). The scheduler 801 starts the diagnosis A814
Is called (step 1009). The diagnosis A 814 issues a self-diagnosis command to the keyboard (step 100).
9, step 1109), and returns a callable time of 10 ms to the scheduler 801 (step 1110). The scheduler 801 checks the diagnosis A81 of the queue table 811.
4 is set to executed (step 1010, step 1111). Scheduler 80
1 receives the current time from the timer counting unit 802 (step 1011), adds the current time and the callable time,
The base time 810 is rewritten (step 1012).
The scheduler 801 checks the diagnosis A
The presence / absence of a module to be called next to 814 is checked with reference to the unfinished flag 902. Next, since the diagnosis B 815 operates, the flow returns to step 1006 (step 101).
3).

【0058】上述と同様の時間待ちの処理を経て、10
ms経つまでループを続ける(ステップ1112)。ス
ケジューラ801はキューテーブル811より未・済フ
ラグ902を参照して未実行のモジュールで実行順序の
早いモジュールを探す(ステップ1008)。スケジュ
ーラ801は、見つけたモジュールである診断B815
を呼び出す(ステップ1009)。診断B815は、キ
ーボードからの自己診断結果を受け取る(ステップ11
13)。もし、自己診断結果が異常ならば(ステップ1
114)、エラーメッセージ表示部809にエラーメッ
セージを表示する指示をし(ステップ1116)動作を
停止する(ステップ1118)。自己診断結果が正常な
らば、スケジューラ801に制御を返す(ステップ11
15)。スケジューラ801は、キューテーブル811
の診断B815の未・済フラグ902を実行済みにセッ
トする(ステップ1010、ステップ1117)。スケ
ジューラ801はタイマー計時部802より現在時間を
受け取り(ステップ1011)、現在時間と呼出可能時
間を加えて、ベース時間810を書き換える(ステップ
1012)。スケジューラ801は、キューテーブル8
11の診断B815の次に呼び出すモジュールの有無を
未・済フラグ902を参照してチェックする。次に呼び
出すモジュールは無いので、初期化および診断の処理を
終了する(ステップ1013)。
After the same time waiting process as described above, 10
The loop is continued until ms elapses (step 1112). The scheduler 801 refers to the unfinished / finished flag 902 from the queue table 811 and searches for an unexecuted module that has an earlier execution order (step 1008). The scheduler 801 checks the diagnosis B815
Is called (step 1009). The diagnosis B 815 receives the self-diagnosis result from the keyboard (step 11).
13). If the self-diagnosis result is abnormal (step 1
114), an instruction to display an error message is sent to the error message display section 809 (step 1116), and the operation is stopped (step 1118). If the self-diagnosis result is normal, control is returned to the scheduler 801 (step 11).
15). The scheduler 801 has a queue table 811
The non-finished flag 902 of the diagnosis B 815 is set to executed (steps 1010 and 1117). The scheduler 801 receives the current time from the timer counting unit 802 (step 1011), and rewrites the base time 810 by adding the current time and the callable time (step 1012). The scheduler 801 has the queue table 8
The presence / absence of a module to be called next to the eleventh diagnosis B 815 is checked with reference to the unfinished / finished flag 902. Since there is no module to be called next, the initialization and diagnosis processing ends (step 1013).

【0059】次に、本発明の第3の実施例について、図
5、図6、図12、図13、図14、図15、図16を
参照して説明する。第3の実施例は、キーボードとRA
Mの初期化および診断をすれば情報処理装置が起動でき
る例である。
Next, a third embodiment of the present invention will be described with reference to FIGS. 5, 6, 12, 13, 14, 15, and 16. FIG. In a third embodiment, a keyboard and RA
This is an example in which the information processing apparatus can be started by initializing and diagnosing M.

【0060】図12は、本発明の第3の実施例の構成を
示すブロック図である。図12を参照すると、本発明の
第3の実施例は、スケジューラ1201と、タイマー計
時部1202と、初期化部1203と、診断部1206
と、エラーメッセージ表示部1209とを含む。
FIG. 12 is a block diagram showing the configuration of the third embodiment of the present invention. Referring to FIG. 12, a third embodiment of the present invention provides a scheduler 1201, a timer clock unit 1202, an initialization unit 1203, and a diagnosis unit 1206.
And an error message display unit 1209.

【0061】スケジューラ1201は、キューテーブル
1210を備える。キューテーブル1210は、各初期
化および診断モジュールの実行の順番と未実行・実行済
の情報を含むテーブルである。キューテーブル1210
は機能テーブル1228とモジュールテーブル1229
とを備えている。
The scheduler 1201 has a queue table 1210. The queue table 1210 is a table including the order of execution of each initialization and diagnosis module, and information on unexecuted / executed information. Queue table 1210
Is the function table 1228 and the module table 1229
And

【0062】図13を参照すると、機能テーブル122
8は、機能ポインタ1301から構成され、モジュール
テーブル1229は、各機能ごとのテーブルから構成さ
れる。図13について、詳細は後述する。
Referring to FIG. 13, function table 122
8 is composed of a function pointer 1301, and the module table 1229 is composed of a table for each function. Details of FIG. 13 will be described later.

【0063】初期化部1203は、タイマー関連初期化
部1204と各機能初期化部1205とを備えている。
The initialization unit 1203 includes a timer-related initialization unit 1204 and each function initialization unit 1205.

【0064】タイマー関連初期化部1204は、タイマ
ー1初期化部1211、タイマー2初期化部1212、
RAM1初期化部1213、割込初期化部1214を備
えている。タイマー1はタイマー2よりも小さな単位で
時間を計時できるタイマーである。タイマー2は特定の
時間になったら割り込み信号を発生する機能を持つがタ
イマー1は計時できるだけで良い単純な機能を持つ。タ
イマー1初期化部1211は、タイマー計時部1202
が利用するタイマーの初期化をする。タイマー2初期化
部1212は、特定の時間ごとに割り込み信号を発生す
るタイマー2の初期化をする。RAM1初期化部121
3は、割り込みが発生した時に割り込み先に飛び込むア
ドレス(ベクタテーブル)の初期化をする。割込初期化
部1214は、タイマー2により割り込みが信号が発生
した時に割り込みを発生させる機能を初期化する。
The timer-related initialization section 1204 includes a timer 1 initialization section 1211, a timer 2 initialization section 1212,
A RAM1 initialization unit 1213 and an interrupt initialization unit 1214 are provided. Timer 1 is a timer that can measure time in smaller units than timer 2. Timer 2 has a function of generating an interrupt signal at a specific time, while timer 1 has a simple function that can only measure time. The timer 1 initialization unit 1211 includes a timer clock unit 1202
Initializes the timer used by. The timer 2 initialization unit 1212 initializes the timer 2 that generates an interrupt signal at a specific time interval. RAM1 initialization unit 121
Reference numeral 3 initializes an address (vector table) which jumps into an interrupt destination when an interrupt occurs. The interrupt initializing unit 1214 initializes a function of generating an interrupt when an interrupt signal is generated by the timer 2.

【0065】各機能初期化部1205は、キーボード初
期化部1215とRAM2初期化部1216とを備えて
いる。キーボード初期化部1215は、キーボード初期
化部A1217を備えている。キーボード初期化部A1
217は、情報処理装置に接続されるキーボードを初期
化する。RAM2初期化部1216はRAM2初期化部
A1218を備えている。RAM2初期化部A1218
はベクタテーブル以外のRAMを初期化する。
Each function initialization unit 1205 includes a keyboard initialization unit 1215 and a RAM2 initialization unit 1216. The keyboard initialization unit 1215 includes a keyboard initialization unit A1217. Keyboard initialization unit A1
Step 217 initializes a keyboard connected to the information processing apparatus. The RAM2 initialization unit 1216 includes a RAM2 initialization unit A1218. RAM2 initialization unit A1218
Initializes the RAM other than the vector table.

【0066】診断部1206は、タイマー関連診断部1
207と各機能診断部1208とを備えている。
The diagnosis unit 1206 is a timer-related diagnosis unit 1
207 and each function diagnosis unit 1208.

【0067】タイマー関連診断部1207は、タイマー
1診断部1219、タイマー2診断部1220、RAM
1診断部1221、割込診断部1222を備えている。
The timer-related diagnosis section 1207 includes a timer 1 diagnosis section 1219, a timer 2 diagnosis section 1220, and a RAM.
1 diagnostic section 1221 and interrupt diagnostic section 1222 are provided.

【0068】タイマー1診断部1219は、タイマー計
時部1202が利用するタイマーの診断をする。タイマ
ー2診断部1220は、特定の時間ごとに割り込み信号
を発生するタイマーの診断をする。RAM1診断部12
21は、割り込みが発生した時に割り込み先に飛び込む
アドレス(ベクタテーブル)の診断をする。割込診断部
1222は、タイマーにより割り込みが信号が発生した
時に割り込みを発生させる機能を診断する。
The timer 1 diagnosis unit 1219 diagnoses a timer used by the timer clock unit 1202. The timer 2 diagnosis unit 1220 diagnoses a timer that generates an interrupt signal every specific time. RAM1 diagnostic unit 12
Reference numeral 21 diagnoses an address (vector table) that jumps into an interrupt destination when an interrupt occurs. The interrupt diagnosis unit 1222 diagnoses a function of generating an interrupt when an interrupt signal is generated by a timer.

【0069】各機能診断部1208は、キーボード診断
部1223とRAM2診断部1224とを備えている。
キーボード診断部1223は、キーボード診断部A12
25とキーボード診断部B1226を備えている。キー
ボード診断部A1225は、情報処理装置に接続される
キーボードの機能を自己診断するコマンドを発行する。
キーボード診断部B1226は、自己診断コマンドの結
果を受け取る。RAM2診断部1224はRAM2診断
部A1227を備えている。RAM2診断部A1227
はベクタテーブル以外のRAMを診断する。
Each function diagnosis section 1208 includes a keyboard diagnosis section 1223 and a RAM2 diagnosis section 1224.
The keyboard diagnosis unit 1223 includes a keyboard diagnosis unit A12.
25 and a keyboard diagnostic unit B1226. The keyboard diagnostic unit A1225 issues a command for self-diagnosing the function of a keyboard connected to the information processing device.
The keyboard diagnosis unit B1226 receives the result of the self-diagnosis command. The RAM2 diagnostic unit 1224 includes a RAM2 diagnostic unit A1227. RAM2 diagnostic unit A1227
Diagnoses the RAM other than the vector table.

【0070】図13は、キューテーブル1210の構成
図である。機能テーブル1228は、機能ポインタ13
01より構成される。機能ポインタ1301は、モジュ
ールテーブル1229の中の各機能ごとに用意されたテ
ーブルのポインタを示す。機能テーブル1228の並び
は待ち時間の発生しやすいモジュール順に並ぶ。
FIG. 13 is a configuration diagram of the queue table 1210. The function table 1228 stores the function pointer 13
01. The function pointer 1301 indicates a pointer of a table prepared for each function in the module table 1229. The arrangement of the function table 1228 is arranged in the order of the module in which the waiting time easily occurs.

【0071】モジュールテーブル1229は、各機能ご
とのテーブルから構成される。各機能はキーボートとR
AM2の2つであるため、キーボードモジュールテーブ
ル1305とRAM2モジュールテーブル1306とか
ら構成されている。各テーブルはそれぞれに呼出可能時
間1302と初期化・診断モジュールへのポインタであ
るモジュールポインタ1303、モジュールの実行の未
実行・実行済を示す未・済フラグ1304とから構成さ
れる。これらの情報は、実行する順番に並べられてい
る。
The module table 1229 is composed of a table for each function. Each function is keyboard and R
Since the two are AM2, they are composed of a keyboard module table 1305 and a RAM2 module table 1306. Each table includes a callable time 1302, a module pointer 1303 which is a pointer to an initialization / diagnosis module, and an unfinished / executed flag 1304 which indicates whether or not the module has been executed. These pieces of information are arranged in the order of execution.

【0072】次に、動作について説明する。Next, the operation will be described.

【0073】図14は、本発明の第3の実施例のフロー
チャートである。
FIG. 14 is a flowchart of the third embodiment of the present invention.

【0074】図15は、第3の実施例の「最も早く動作
可能なモジュール選択」1405のフローチャートであ
る。
FIG. 15 is a flowchart of “selection of module that can operate fastest” 1405 in the third embodiment.

【0075】図16は、各機能の初期化または診断モジ
ュールのスケジュールを示す図で、図13のモジュール
テーブル1229を時間軸を加えた図にしたものであ
る。図16を参照すると、機能キーボードは、初期化時
間502後にキーボード初期化部A1217が動作す
る。キーボード初期化部A1217が終了すると50m
s後にキーボード診断部A1225が動作する。キーボ
ード診断部A1225が終了すると10ms後にキーボ
ード診断部B1226が動作する。機能RAM2は、0
ms後にRAM2初期化部A1218が動作する。RA
M2初期化部A1218が終了すると0ms後にRAM
2診断部A1227が動作する。
FIG. 16 is a diagram showing the initialization of each function or the schedule of the diagnostic module. FIG. 16 is a diagram obtained by adding a time axis to the module table 1229 in FIG. Referring to FIG. 16, in the functional keyboard, a keyboard initialization unit A1217 operates after an initialization time 502. 50m when keyboard initialization unit A1217 ends
After s, the keyboard diagnostic unit A1225 operates. When the keyboard diagnosis unit A1225 ends, the keyboard diagnosis unit B1226 operates 10 ms later. Function RAM2 is 0
After ms, the RAM2 initialization unit A1218 operates. RA
When the M2 initialization unit A1218 ends, the RAM is set to 0 ms later.
The two diagnostic unit A1227 operates.

【0076】まず、動作概要を説明する。First, an outline of the operation will be described.

【0077】本実施例では、スケジューラ1201が診
断および初期化モジュールの制御を実施する。各モジュ
ールはスケジューラ1201より割り当てられた時間内
のみ動作する。本実施例では、スケジューリングされる
モジュールの代表的な例を取り上げる。キーボード関係
のモジュールは周辺機器とのインタフェースを持つた
め、自主的に割り当てられた時間を開放しやすいと共
に、特定の時間以上の時間待ちをしなくてはならないモ
ジュールである。一方、RAM関係のモジュールは周辺
機器との通信はないため、強制的に割り当てた時間を取
り上げられるモジュールであり、特定の時間以上の時間
待ちをする必要は発生しない。以上より、キーボード関
係の処理の隙間を縫ってRAMの初期化をする処理の例
である。
In this embodiment, the scheduler 1201 controls the diagnosis and initialization module. Each module operates only within the time allocated by the scheduler 1201. In this embodiment, a representative example of a module to be scheduled will be described. Since the keyboard-related modules have an interface with peripheral devices, they are modules that have to wait for a specified time or more while easily releasing their allotted time. On the other hand, since the RAM-related module does not communicate with the peripheral device, it is a module that can take up the time forcibly allocated, and there is no need to wait for a specific time or more. As described above, this is an example of the processing for initializing the RAM by sewing a gap in the processing related to the keyboard.

【0078】次に、動作詳細を説明する。まず、図14
を参照して説明する。
Next, the operation will be described in detail. First, FIG.
This will be described with reference to FIG.

【0079】情報処理装置が動き出すと、最初にスケジ
ューラ1201が動作する。スケジューラ1201は、
タイマー関連初期化部1204に初期化を指示する。タ
イマー関連初期化部1204はタイマー1の初期化、タ
イマー2の初期化、RAM1の初期化、割り込みの初期
化をする(ステップ1401)。タイマー関連の初期化
が終了すると、スケジューラ1201はタイマー関連診
断部1207に診断を指示する。タイマー関連診断部1
207は、タイマー1の診断、タイマー2の診断、RA
M1の診断、割り込みの診断をする(ステップ140
2)。もし、診断の結果、正常でなければ、エラーメッ
セージ表示部1209にエラーメッセージ表示の指示を
して情報処理装置の動作を停止する。診断の結果、正常
ならばスケジューラ1201はタイマー計時部1202
より現在時間を受け取る(ステップ1403)。スケジ
ューラ1201はキューテーブル1210の初期化、タ
イマーによる割り込み処理の設定、RAM1の設定等を
実施し、全ての機能ポインタ1301の示すテーブルの
最初に実行されるモジュールの呼出可能時間1302に
現在時間を加える(ステップ1404)。
When the information processing apparatus starts operating, first, the scheduler 1201 operates. The scheduler 1201
The timer-related initialization unit 1204 is instructed to perform initialization. The timer-related initialization unit 1204 initializes the timer 1, the timer 2, the RAM1, and the interrupt (step 1401). When the timer-related initialization is completed, the scheduler 1201 instructs the timer-related diagnosis unit 1207 to perform a diagnosis. Timer related diagnosis unit 1
207 is a timer 1 diagnosis, a timer 2 diagnosis, RA
Diagnose M1 and interrupt (Step 140)
2). If the result of the diagnosis is not normal, the error message display unit 1209 is instructed to display an error message, and the operation of the information processing apparatus is stopped. If the result of the diagnosis is normal, the scheduler 1201 operates as a timer
The current time is received (step 1403). The scheduler 1201 performs initialization of the queue table 1210, setting of interrupt processing by a timer, setting of the RAM 1, and the like, and adds the current time to the callable time 1302 of the module executed first in the table indicated by all the function pointers 1301. (Step 1404).

【0080】スケジューラ1201は、キューテーブル
1210の機能テーブル1228より示されるモジュー
ルテーブル1229内のテーブルとベース時間とを参照
し、最初に呼出可能時間となるモジュールを検索する。
The scheduler 1201 refers to a table in the module table 1229 indicated by the function table 1228 of the queue table 1210 and the base time, and first searches for a module that becomes a callable time.

【0081】検索については図15を参照して説明す
る。最初にタイマー計時部1202より現在時間を受け
取る(ステップ1501)。次に優先順位を調べるため
に、機能ポインタ1301の最初のテーブルの先頭から
未・済フラグ1304が未であるモジュールを検索す
る。更に、その呼出可能時間1302からタイマーで計
時した時間を引いた差を時間値αとして設定する。つま
り、時間値αには初期化時間502にほぼ等しい値が設
定される(ステップ1502)。検索結果の初期値とし
て検索したモジュールを選択するので、キーボード初期
化部A1217が設定される(ステップ1503)。次
に機能ポインタ1301の次のポインタを選択する(ス
テップ1504)。
The search will be described with reference to FIG. First, the current time is received from the timer counting unit 1202 (step 1501). Next, in order to check the priority order, a module in which the unfinished / unfinished flag 1304 is not found is searched from the head of the first table of the function pointer 1301. Further, a difference obtained by subtracting the time measured by the timer from the callable time 1302 is set as the time value α. That is, a value substantially equal to the initialization time 502 is set as the time value α (step 1502). Since the searched module is selected as the initial value of the search result, the keyboard initialization unit A1217 is set (step 1503). Next, the pointer next to the function pointer 1301 is selected (step 1504).

【0082】次に時間値αが0以下、つまり、即実行可
能か否かチェックする。もし、0または負の値ならば、
初期値として選択されているモジュールが検索結果とな
る(ステップ1505)。もし、時間値αが正の値なら
ば、RAM2モジュールテーブル1306の先頭から、
未・済フラグ1304が未であるモジュールを検索す
る。RAM2初期化部A1218が最初に見つかるので
これを選択する(ステップ1506)。RAM2初期化
部A1218の呼出可能時間1302の値からタイマー
で計時した時間を引いた差を求める。更に、この差と時
間値αとの差を計算する(ステップ1507)。もし、
差が0または負の値であれば、新しく選択したモジュー
ルの実行を優先するため、新しく選択したモジュールの
呼出可能時間1302を時間値αとし(ステップ150
8、ステップ1509)、検索結果に新しく選択したモ
ジュールを選択する(ステップ1510)。もし、差が
正の値ならば次のステップに進む(ステップ150
8)。次の機能を調べるため、機能ポインタ1301の
次のポインタを選択する(ステップ1511)。もし、
次に動作するモジュールを持つ機能があればステップ1
505に戻る。機能がなければ終了する(ステップ15
12)。
Next, it is checked whether the time value α is equal to or less than 0, that is, whether or not it can be executed immediately. If it is 0 or negative,
The module selected as the initial value is the search result (step 1505). If the time value α is a positive value, from the top of the RAM2 module table 1306,
A module whose unfinished flag 1304 is not yet searched is searched. Since the RAM2 initialization unit A1218 is found first, it is selected (step 1506). A difference is obtained by subtracting the time measured by the timer from the value of the callable time 1302 of the RAM2 initialization unit A1218. Further, the difference between this difference and the time value α is calculated (step 1507). if,
If the difference is 0 or a negative value, the callable time 1302 of the newly selected module is set to the time value α to give priority to the execution of the newly selected module (step 150).
8, step 1509), and select a newly selected module as a search result (step 1510). If the difference is a positive value, the process proceeds to the next step (step 150).
8). To check the next function, a pointer next to the function pointer 1301 is selected (step 1511). if,
Step 1 if there is a function that has a module that operates next
Return to 505. If there is no function, the processing ends (step 15
12).

【0083】上述の検索より、大部分の場合はRAM2
初期化部A1218が選択される(ステップ140
5)。
According to the above-mentioned search, in most cases, the RAM 2
The initialization unit A1218 is selected (Step 140)
5).

【0084】検索の結果、まだ呼出可能時間にならない
場合もあるため、タイマーによる計時(ステップ140
6)と呼出可能となるまで、ステップ1406に戻る
(ステップ1407)処理があるが、RAM2初期化部
A1218の呼出可能時間は0msであるため、次のス
テップに進む。
As a result of the search, there is a case where the callable time has not yet come.
There is a process of returning to step 1406 (step 1407) until it becomes possible to call 6), but since the callable time of the RAM2 initialization unit A1218 is 0 ms, the process proceeds to the next step.

【0085】各モジュールの実行を途中で切り替えるた
めにタイムアウト時間の10ms後に割り込みが発生す
るように設定(ステップ1408)し、検索されたモジ
ュールであるRAM2初期化部A1218を実行する
(ステップ1409)。RAM2初期化部A1218は
周辺機器との通信等による待ち時間は生じないので、1
0ms後の割り込みによるタイムアウトで実行を中断さ
れる。タイムアウト中断してくるため、モジュールポイ
ンタ1303に中断したアドレスを書き換えてステップ
1405に戻る(ステップ1410、ステップ141
5)。
In order to switch the execution of each module halfway, it is set so that an interrupt occurs 10 ms after the timeout period (step 1408), and the RAM2 initialization unit A1218, which is the searched module, is executed (step 1409). Since the RAM 2 initialization unit A 1218 does not generate a waiting time due to communication with the peripheral device or the like, 1
Execution is interrupted by a timeout due to an interrupt after 0 ms. Since the timeout is interrupted, the interrupted address is rewritten in the module pointer 1303 and the process returns to step 1405 (step 1410, step 141).
5).

【0086】初期化時間502を過ぎるまで、ステップ
1405〜ステップ1415までが繰り返される。
Steps 1405 to 1415 are repeated until the initialization time 502 elapses.

【0087】初期化時間502を過ぎると、ステップ1
405よりキーボード初期化部A1217が選択され
る。選択の過程を図15を参照して説明する。
After the initialization time 502, step 1
In step 405, a keyboard initialization unit A1217 is selected. The selection process will be described with reference to FIG.

【0088】最初にタイマー計時部1202より現在時
間を読み取る(ステップ1501)。次に優先順位を調
べるために、機能ポインタ1301の最初のテーブルの
先頭から未・済フラグ1304が未であるモジュールを
検索する。検索した結果のモジュールの呼出可能時間1
302の初期化時間502から現在時間を引いた差を時
間値αに設定する(ステップ1502)。検索結果の初
期値として検索したモジュールを選択するので、キーボ
ード初期化部A1217が設定される。次に機能ポイン
タ1301の次のポインタを選択する(ステップ150
4)。時間値αをチェックすると時間値αは0または負
の値であるため、キーボード初期化部A1217が選択
される。
First, the current time is read from the timer counting unit 1202 (step 1501). Next, in order to check the priority order, a module in which the unfinished / unfinished flag 1304 is not found is searched from the head of the first table of the function pointer 1301. Retrievable module call time 1
The difference obtained by subtracting the current time from the initialization time 502 in 302 is set as the time value α (step 1502). Since the searched module is selected as the initial value of the search result, the keyboard initialization unit A1217 is set. Next, the pointer next to the function pointer 1301 is selected (step 150).
4). When the time value α is checked, since the time value α is 0 or a negative value, the keyboard initialization unit A1217 is selected.

【0089】ステップ1406とステップ1407は、
初期化時間502は過ぎているため次のステップに進
む。
Steps 1406 and 1407 are:
Since the initialization time 502 has passed, the process proceeds to the next step.

【0090】各モジュールの実行を途中で切り替えるた
めにタイムアウト時間の10ms後に割り込みが発生す
るように設定し(ステップ1408)、検索されたモジ
ュールであるキーボード初期化部A1217を実行する
(ステップ1409)。キーボード初期化部A1217
はリセットコマンドを発行して、スケジューラ1201
に戻る。この間の時間は10msに満たないため、タイ
ムアウトで実行は中断されず終了となる(ステップ14
10)。
In order to switch the execution of each module in the middle, it is set so that an interrupt occurs 10 ms after the timeout period (step 1408), and the keyboard initialization unit A1217 which is the searched module is executed (step 1409). Keyboard initialization unit A1217
Issues a reset command, and the scheduler 1201
Return to Since the time during this period is less than 10 ms, the execution ends without being interrupted by the timeout (step 14).
10).

【0091】スケジューラ1201は、未・済フラグ1
304を済みにセットし(ステップ1411)タイマー
計時部1202より現在時間を読み取る(ステップ14
12)。現在時間をキーボード初期化部A1217の次
に実行可能なキーボード診断部A1225の呼出可能時
間1302に加える(ステップ1413)。次にまだ未
実行のモジュールがあるのか確認をし、あるのでステッ
プ1405に戻る(ステップ1414)。
The scheduler 1201 sets the unfinished flag 1
304 is already set (step 1411), and the current time is read from the timer unit 1202 (step 14).
12). The current time is added to the callable time 1302 of the keyboard diagnosis unit A1225 which can be executed next to the keyboard initialization unit A1217 (step 1413). Next, it is checked whether there is a module that has not been executed yet, and the process returns to step 1405 (step 1414).

【0092】次に最も早く動作可能なモジュールを選択
すると、実行を中断したRAM2初期化部A1218が
選択される(ステップ1405)。以下上記と同様に処
理が進められていく。
Next, when the earliest operable module is selected, the RAM2 initialization unit A 1218 whose execution has been interrupted is selected (step 1405). Thereafter, the processing proceeds in the same manner as described above.

【0093】[0093]

【発明の効果】以上説明したように、本発明は、タイマ
ーを計時した値を比較することで、周辺機器の制御の待
ち時間を最適化できるため、情報処理装置の起動時間を
短縮する効果がある。
As described above, according to the present invention, the waiting time for the control of the peripheral device can be optimized by comparing the values measured by the timers, so that the effect of reducing the startup time of the information processing apparatus can be obtained. is there.

【0094】また、同じ理由で、情報処理装置のCPU
のみを高速なCPUに交換した時でも周辺機器制御の待
ち時間が不足することはないという効果がある。
For the same reason, the CPU of the information processing apparatus
Even when only the CPU is replaced with a high-speed CPU, there is an effect that the waiting time for the peripheral device control is not short.

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

【図1】本発明の実施の形態の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】本発明の実施の形態のフローチャートである。FIG. 2 is a flowchart of an embodiment of the present invention.

【図3】本発明の第1の実施例の構成を示すブロック図
である。
FIG. 3 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図4】本発明の第1の実施例のフローチャートであ
る。
FIG. 4 is a flowchart of the first embodiment of the present invention.

【図5】本発明の実施例のキーボードのタイムチャート
である。
FIG. 5 is a time chart of the keyboard according to the embodiment of the present invention.

【図6】本発明の実施例のキーボードにコマンドを発行
する時の制限事項を示した図である。
FIG. 6 is a diagram showing restrictions when issuing a command to the keyboard according to the embodiment of the present invention.

【図7】本発明の第1の実施例のキーボード初期化およ
び診断の流れを各モジュールの分担別に示した図であ
る。
FIG. 7 is a diagram showing the flow of keyboard initialization and diagnosis according to the first embodiment of the present invention for each module.

【図8】本発明の第2の実施例の構成を示すブロック図
である。
FIG. 8 is a block diagram showing a configuration of a second exemplary embodiment of the present invention.

【図9】本発明の第2の実施例のキューテーブルの構成
図である。
FIG. 9 is a configuration diagram of a queue table according to the second embodiment of this invention.

【図10】本発明の第2の実施例のフローチャートであ
る。
FIG. 10 is a flowchart of a second embodiment of the present invention.

【図11】本発明の第2の実施例のキーボード初期化お
よび診断の流れを各モジュールの分担別に示した図であ
る。
FIG. 11 is a diagram showing the flow of keyboard initialization and diagnosis according to the second embodiment of the present invention, for each module.

【図12】本発明の第3の実施例の構成を示すブロック
図である。
FIG. 12 is a block diagram illustrating a configuration of a third exemplary embodiment of the present invention.

【図13】キューテーブルの構成図である。FIG. 13 is a configuration diagram of a queue table.

【図14】本発明の第3の実施例のフローチャートであ
る。
FIG. 14 is a flowchart of a third embodiment of the present invention.

【図15】本発明の第3の実施例の「最も早く動作可能
なモジュール選択」のフローチャートである。
FIG. 15 is a flowchart of “selection of a module that can operate fastest” according to the third embodiment of this invention.

【図16】本発明の第3の実施例の各モジュールのスケ
ジュールを示す図である。
FIG. 16 is a diagram showing a schedule of each module according to the third embodiment of the present invention.

【図17】従来技術の構成を示すブロック図である。FIG. 17 is a block diagram showing a configuration of a conventional technique.

【図18】従来技術の動作を示すフローチャートであ
る。
FIG. 18 is a flowchart showing the operation of the conventional technique.

【符号の説明】[Explanation of symbols]

101 スケジューラ 102 タイマー計時部 103 初期化部 104 タイマー関連初期化部 105 各機能初期化部 106 診断部 107 タイマー関連診断部 108 各機能診断部 109 エラーメッセージ表示部 301 スケジューラ 302 タイマー計時部 303 初期化部 304 タイマー初期化部 305 キーボード初期化部 306 診断部 307 タイマー診断部 308 キーボード診断部 309 エラーメッセージ表示部 310 ベース時間 501 POW ON時間 502 初期化時間 503 リセットコマンド 504 キーコード 801 スケジューラ 802 タイマー計時部 803 初期化部 804 タイマー初期化部 805 キーボード初期化部 806 診断部 807 タイマー診断部 808 キーボード診断部 809 エラーメッセージ表示部 810 ベース時間 811 キューテーブル 812 初期化A 813 初期化B 814 診断A 815 診断B 1201 スケジューラ 1202 タイマー計時部 1203 初期化部 1204 タイマー関連初期化部 1205 各機能初期化部 1206 診断部 1207 タイマー関連診断部 1208 各機能診断部 1209 エラーメッセージ表示部 1210 キューテーブル 1211 タイマー1初期化部 1212 タイマー2初期化部 1213 RAM1初期化部 1214 割込初期化部 1215 キーボード初期化部 1216 RAM2初期化部 1217 キーボード初期化部A 1218 RAM2初期化部A 1219 タイマー1診断部 1220 タイマー2診断部 1221 RAM1診断部 1222 割込診断部 1223 キーボード診断部 1224 RAM2診断部 1225 キーボード診断部A 1226 キーボード診断部B 1227 RAM2診断部A 1228 機能テーブル 1229 モジュールテーブル 1301 機能ポインタ 1302 呼出可能時間 1303 モジュールポインタ 1304 未・済フラグ 1305 キーボードモジュールテーブル 1306 RAM2モジュールテーブル Reference Signs List 101 scheduler 102 timer counting unit 103 initialization unit 104 timer-related initialization unit 105 each function initialization unit 106 diagnosis unit 107 timer-related diagnosis unit 108 each function diagnosis unit 109 error message display unit 301 scheduler 302 timer timer unit 303 initialization unit 304 Timer initialization unit 305 Keyboard initialization unit 306 Diagnosis unit 307 Timer diagnosis unit 308 Keyboard diagnosis unit 309 Error message display unit 310 Base time 501 POW ON time 502 Initialization time 503 Reset command 504 Key code 801 Scheduler 802 Timer timer 803 Initialization unit 804 Timer initialization unit 805 Keyboard initialization unit 806 Diagnostic unit 807 Timer diagnostic unit 808 Keyboard diagnostic unit 809 Error message Display unit 810 Base time 811 Queue table 812 Initialization A 813 Initialization B 814 Diagnosis A 815 Diagnosis B 1201 Scheduler 1202 Timer clock unit 1203 Initialization unit 1204 Timer-related initialization unit 1205 Each function initialization unit 1206 Diagnosis unit 1207 Timer-related Diagnosis unit 1208 Function diagnosis unit 1209 Error message display unit 1210 Queue table 1211 Timer 1 initialization unit 1212 Timer 2 initialization unit 1213 RAM1 initialization unit 1214 Interrupt initialization unit 1215 Keyboard initialization unit 1216 RAM2 initialization unit 1217 Keyboard Initializing unit A 1218 RAM2 initializing unit A 1219 Timer 1 diagnostic unit 1220 Timer 2 diagnostic unit 1221 RAM1 diagnostic unit 1222 Interrupt diagnostic unit 1223 Keyboard diagnostic unit 224 RAM 2 diagnosing unit 1225 keyboard diagnostic unit A 1226 keyboard diagnostic unit B 1227 RAM 2 diagnostic unit A 1228 function table 1229 module table 1301 function pointers 1302 callable times 1303 module pointer 1304 Not-flag 1305 keyboard module table 1306 RAM 2 module table

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 起動時に初期化プログラムおよび自己診
断プログラムを実行する情報処理装置起動方式におい
て、クロックパルスにより時間の計時を行うタイマー
と、前記タイマーから時間を読み取るタイマー計時手段
と、初期化プログラムを実行する時に初期化可能な時間
となっているかの確認および自己診断プログラムを実行
する時に自己診断可能な時間となっているかの確認を行
う手段とを備えることを特徴とする情報処理装置起動方
式。
In an information processing apparatus startup method for executing an initialization program and a self-diagnosis program at startup, a timer for measuring time by a clock pulse, timer timer means for reading time from the timer, and an initialization program are provided. Means for confirming whether a time when initialization is possible at the time of execution and a time at which self-diagnosis is possible when executing the self-diagnosis program are provided.
【請求項2】 起動時に初期化プログラムおよび自己診
断プログラムを実行する情報処理装置起動方式におい
て、クロックパルスにより時間の計時を行うタイマー
と、前記タイマーから時間を読み取るタイマー計時部
と、情報処理装置の各種の機能を初期化する各機能初期
化部と、前記情報処理装置の各種の機能を診断する各機
能診断部と、前記情報処理装置のスケジュールを制御す
るスケジューラとを備え、前記スケジューラは、前記タ
イマー計時部の値が初期化可能な時間となったら前記各
機能初期化部に制御を渡し、初期化プログラム実行終了
後、前記タイマー計時部の値が診断可能な時間となった
ら前記各機能診断部に制御を渡すことを特徴とする情報
処理装置起動方式。
2. An information processing apparatus start-up method for executing an initialization program and a self-diagnosis program at the time of startup, a timer for measuring time by a clock pulse, a timer timer for reading time from said timer, Each function initialization unit that initializes various functions, each function diagnosis unit that diagnoses various functions of the information processing device, and a scheduler that controls a schedule of the information processing device, wherein the scheduler is When the value of the timer counting unit has reached a time at which initialization can be performed, control is passed to the function initialization unit. After execution of the initialization program, when the value of the timer counting unit has reached a time at which diagnosis can be performed, the function diagnosis is performed. An information processing device activation method, wherein control is passed to a unit.
【請求項3】 前記スケジューラは、前記初期化プログ
ラムと前記自己診断プログラムの実行の順番と、前記初
期化プログラムと前記自己診断プログラムの未実行また
は実行済の情報とを有するキューテーブルを備えること
を特徴とする請求項2記載の情報処理装置起動方式。
3. The scheduler includes a queue table having an execution order of the initialization program and the self-diagnosis program, and information on whether the initialization program and the self-diagnosis program have not been executed or have been executed. 3. The information processing apparatus activation method according to claim 2, wherein:
【請求項4】 前記キューテーブルは、前記初期化プロ
グラムと前記自己診断プログラムの各モジュールの呼出
可能時間情報を持つモジュールテーブルを備え、前記タ
イマーは、特定の時間になったら割り込み信号を発生す
る機能を持ち、前記スケジューラは、最も早く動作可能
なモジュールを選択して前記割り込み信号を利用して割
り当てた時間のみ前記モジュールを動作させることを特
徴とする請求項3記載の情報処理装置起動方式。
4. The queue table includes a module table having callable time information of each module of the initialization program and the self-diagnosis program, and the timer generates an interrupt signal when a specific time is reached. 4. The information processing apparatus activation method according to claim 3, wherein the scheduler selects a module that can operate at the earliest time and operates the module only for a time allocated by using the interrupt signal.
JP9089248A 1997-04-08 1997-04-08 Information processing device activation method Expired - Fee Related JP2978820B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9089248A JP2978820B2 (en) 1997-04-08 1997-04-08 Information processing device activation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9089248A JP2978820B2 (en) 1997-04-08 1997-04-08 Information processing device activation method

Publications (2)

Publication Number Publication Date
JPH10283219A true JPH10283219A (en) 1998-10-23
JP2978820B2 JP2978820B2 (en) 1999-11-15

Family

ID=13965466

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9089248A Expired - Fee Related JP2978820B2 (en) 1997-04-08 1997-04-08 Information processing device activation method

Country Status (1)

Country Link
JP (1) JP2978820B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008310597A (en) * 2007-06-14 2008-12-25 Toshiba Corp Portable electronic device and control method for portable electronic device
JP2010211529A (en) * 2009-03-10 2010-09-24 Fujitsu Ltd Storage device, relay device, and diagnostic method
JP2020098448A (en) * 2018-12-18 2020-06-25 Necプラットフォームズ株式会社 System start time control method, system start time control program, and computer system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008310597A (en) * 2007-06-14 2008-12-25 Toshiba Corp Portable electronic device and control method for portable electronic device
JP2010211529A (en) * 2009-03-10 2010-09-24 Fujitsu Ltd Storage device, relay device, and diagnostic method
JP2020098448A (en) * 2018-12-18 2020-06-25 Necプラットフォームズ株式会社 System start time control method, system start time control program, and computer system

Also Published As

Publication number Publication date
JP2978820B2 (en) 1999-11-15

Similar Documents

Publication Publication Date Title
EP0702297A1 (en) A data processor with breakpoint circuit and method therefor
US4839895A (en) Early failure detection system for multiprocessor system
JP4393954B2 (en) Microcomputer
JPH10333939A (en) Microprocessor
JP2978820B2 (en) Information processing device activation method
JP2001318807A (en) Method and device for controlling task switching
US11307973B2 (en) Method and device for testing robustness and stability of SMM, and storage medium
US6948086B2 (en) Computer system
JP2002041493A (en) Microcomputer
US4176781A (en) Apparatus for monitoring and checking processor operation sequences
JP2712730B2 (en) Evaluation chip
JP2000347880A (en) Interruption controller and microcomputer
JPH02157957A (en) Microprocessor
CN114416483A (en) Running state monitoring method and device for multi-processing unit, storage medium and equipment
JPS6118045A (en) Detecting system of program runaway
JPH08161195A (en) Address trace storing device and method for generating address trace
JP2003067221A (en) Watchdog timer control circuit
JPH05216701A (en) Recovery time adjusting circuit for input/output instruction
JP2003256037A (en) Plant controller
JPH10312310A (en) Self-diagnostic method for central processing unit and central processing unit equipped with self-diagnostic function
JPH0620068A (en) Single chip microcomputer
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPS59216259A (en) Operation analyzing method of microprocessor
JP2000207295A (en) Device driver
JPH02178848A (en) Microprocessor development backup device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990824

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees