JPH05127779A - Microcomputer system and its initialization control method - Google Patents
Microcomputer system and its initialization control methodInfo
- Publication number
- JPH05127779A JPH05127779A JP3292578A JP29257891A JPH05127779A JP H05127779 A JPH05127779 A JP H05127779A JP 3292578 A JP3292578 A JP 3292578A JP 29257891 A JP29257891 A JP 29257891A JP H05127779 A JPH05127779 A JP H05127779A
- Authority
- JP
- Japan
- Prior art keywords
- initialization
- microcomputer
- microcomputer system
- communication
- time
- 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
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は互に交信する複数のマイ
コンシステムを備えた系の初期化を制御する方法に関す
る。このような系では初期化時のマイコンシステムの誤
動作を防ぐとともに、系の起動の高速化が望まれてい
る。なお以下各図において同一の符号は同一もしくは相
当部分を示す。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for controlling initialization of a system including a plurality of microcomputer systems which communicate with each other. In such a system, it is desired to prevent malfunction of the microcomputer system at the time of initialization and to speed up system startup. In the following figures, the same reference numerals indicate the same or corresponding parts.
【0002】[0002]
【従来の技術】1つの系内に互に交信しながら、それぞ
れ別の処理を行う2つ以上のマイコンシステムがある
時、互いのマイコンシステムは電源投入と同時に、それ
ぞれ互いの制御する周辺装置を初期化し、常時の動作を
開始する。図3はこのような系の初期化動作例を示すタ
イムチャートである。同図においてSA,SBは同一系
内にあって夫々別の処理を行うマイコンシステム、t0
はシステム起動時点、TAはシステムSAの初期化時
間、t1はマイコンシステムSAの初期化完了時点、T
BはシステムSBの初期化時間、t2はマイコンシステ
ムSBの初期化完了時点、CA1,CA2,CA3─は
マイコンシステムSAがSBに発する通信々号、CB1
はマイコンシステムSBがSAに発する通信々号であ
る。2. Description of the Related Art When there are two or more microcomputer systems that perform different processing while communicating with each other in one system, each of the microcomputer systems turns on a peripheral device that controls each other at the same time when the power is turned on. Initialize and start normal operation. FIG. 3 is a time chart showing an example of the initialization operation of such a system. In the figure, SA and SB are microcomputer systems that are in the same system and perform different processing, t0
Is the system startup time, TA is the system SA initialization time, t1 is the microcomputer system SA initialization completion time, T
B is the initialization time of the system SB, t2 is the time when the initialization of the microcomputer system SB is completed, CA1, CA2, CA3- are the communication numbers issued by the microcomputer system SA to the SB, and CB1.
Is a communication issue issued by the microcomputer system SB to the SA.
【0003】この図3ではマイコンシステムSAとマイ
コンシステムSBが時点t0で同時に初期化を開始し、
マイコンシステムSAがマイコンシステムSBの初期化
中の時点t1で初期化を完了し、マイコンシステムSB
に対して通信信号CA1〜CA3を発し交信を開始す
る。しかしこの状態ではマイコンシステムSBは初期化
中であり、その交信は不調に終わる。このような場合、
交信の方法,論理によっては初期化の完了したマイコン
システムSAが誤動作をしてしまい、システム全体の故
障の原因になることがある。In FIG. 3, the microcomputer system SA and the microcomputer system SB simultaneously start initialization at time t0,
At the time t1 during which the microcomputer system SA is initializing the microcomputer system SB, the initialization is completed.
In response, communication signals CA1 to CA3 are issued to start communication. However, in this state, the microcomputer system SB is being initialized, and the communication ends abnormally. In such cases,
Depending on the communication method and logic, the initialized microcomputer system SA may malfunction, causing a failure of the entire system.
【0004】図4はこのような誤動作を防ぐための従来
の初期化方式を示すタイムチャートである。即ちマイコ
ンシステムSA,SB共に初期化開始時点t0から予め
設定しておいた最大初期化時間TMの経過を待って夫々
通信信号CA1,CB1を発し交信を開始するものであ
る。FIG. 4 is a time chart showing a conventional initialization method for preventing such a malfunction. That is, both the microcomputer systems SA and SB wait for the elapse of the preset maximum initialization time TM from the initialization start time t0 to issue communication signals CA1 and CB1 respectively to start communication.
【0005】[0005]
【発明が解決しようとする課題】しかしながら図4の場
合、初期化の遅いマイコンシステムSBが初期化を完了
してから、この系が常時の動作を開始するまでの間に初
期化余り時間TEが発生し、系全体の立上げ時間が遅
れ、さらにこの立上げ時間が当該マイコンシステムとそ
の制御する周辺装置との関係によっては最大初期化時間
TMをオーバする事も考えられ、系の起動の高速化要求
に悪影響を与える。そこで本発明はこのような問題を解
消できるマイコンシステムおよびその初期化制御方法を
提供することを課題とする。However, in the case of FIG. 4, the initialization margin time TE is from the completion of initialization of the microcomputer system SB, which is slow to initialize, to the start of normal operation of this system. It may occur that the startup time of the entire system is delayed, and this startup time may exceed the maximum initialization time TM depending on the relationship between the microcomputer system and the peripheral device that controls it. Adversely affect the demand for chemical conversion. Therefore, an object of the present invention is to provide a microcomputer system and an initialization control method therefor capable of solving such a problem.
【0006】[0006]
【課題を解決するための手段】前記の課題を解決するた
めに本発明の初期化制御方法は、互に交信しながら夫々
の分担する処理を実行する複数のマイコンシステム(S
A,SBなど)を備えた系において、前記マイコンシス
テムが夫々自身のシステムの初期化完了時、その旨を示
す信号(iA,iBなど)を出力するようにし、この系
の立上げ時、前記の各マイコンシステムが夫々自身の交
信に関わる全てのマイコンシステムの前記信号が有効と
なったことを検知して自身の常時の処理を開始するよう
にするものとする。In order to solve the above-mentioned problems, an initialization control method of the present invention comprises a plurality of microcomputer systems (S) which execute respective shared processes while communicating with each other.
A, SB, etc.), each of the microcomputer systems outputs a signal (iA, iB, etc.) to that effect when the initialization of its own system is completed. Each of the microcomputer systems detects that the signals of all the microcomputer systems involved in the communication are valid, and starts its own regular processing.
【0007】[0007]
【作用】2つ以上のマイコンシステムは、電源投入と同
時に初期化を開始し、それぞれ初期化が終了後、自ら初
期化完了信号を出力する。そして他のマイコンシステム
の初期化完了信号の出力を確認し、常時の動作を開始す
る。これにより、動作上でマイコンシステム同志の互い
の干渉(誤動作)を防止し、初期化時間を最短にする。The two or more microcomputer systems start the initialization at the same time when the power is turned on, and after the initialization is completed, each microcomputer system outputs the initialization completion signal by itself. Then, the output of the initialization completion signal of the other microcomputer system is confirmed, and the normal operation is started. This prevents the microcomputer systems from interfering with each other (malfunction) in operation and minimizes the initialization time.
【0008】[0008]
【実施例】図1は本発明の実施例としての初期化動作を
示すタイムチャートである。同図においてiAはマイコ
ンシステムSAが自身の初期化完了時点t1において有
効(ON)として出力する初期化完了信号、同様にiB
はマイコンシステムSBが自身の初期化完了時点t2に
おいて有効(ON)として出力する初期完了信号であ
る。本発明ではこのようにマイコンシステムに初期化完
了信号iA,iBの出力機能を追加する。これにより図
1の例ではマイコンシステムSAは時刻t1において初
期化が完了し、初期化完了信号iAをONするが、この
ときはマイコンシステムSBの初期化完了信号iBがO
Nしてないなため交信を開始しない。FIG. 1 is a time chart showing an initialization operation as an embodiment of the present invention. In the figure, iA is an initialization completion signal that the microcomputer system SA outputs as valid (ON) at its initialization completion time t1, and similarly iB.
Is an initial completion signal that the microcomputer system SB outputs as valid (ON) at the time point t2 when its initialization is completed. In the present invention, the function of outputting the initialization completion signals iA and iB is added to the microcomputer system as described above. As a result, in the example of FIG. 1, the microcomputer system SA completes initialization at time t1 and turns on the initialization completion signal iA. At this time, the initialization completion signal iB of the microcomputer system SB is O.
Communication is not started because it has not been done.
【0009】一方、マイコンシステムSBは時刻t2に
おいて初期化が終了すると初期化完了信号iBをON
し、マイコンシステムSAの初期化完了信号iAのON
を確認し、マイコンシステムSAに対し通信々号CB1
を出力して交信を開始する。同様にマイコンシステムS
Aは時刻t2でマイコンシステムSBの初期化完了信号
iBがONとなったことを知るとマイコンシステムSB
に対し、通信々号CA1を出力して交信を開始する。こ
のようにして従来の技術で述べたマイコンシステム間の
初期化完了時点のづれによるマイコンシステムの誤動作
を防止することができ、多数のマイコンシステムが存在
しても、一番初期化の遅いマイコンシステムの初期化完
了と同時に交信を開始できるため、前述した初期化余り
時間TEもほとんど発生しない。On the other hand, the microcomputer system SB turns on the initialization completion signal iB when the initialization is completed at time t2.
Then, the initialization completion signal iA of the microcomputer system SA is turned on.
And confirm the communication with the microcomputer system SA CB1
Is output to start communication. Similarly, microcomputer system S
When A knows that the initialization completion signal iB of the microcomputer system SB is turned on at time t2, the microcomputer system SB
On the other hand, the communication unit CA1 is output to start communication. In this way, it is possible to prevent the malfunction of the microcomputer system due to the difference in the initialization completion time between the microcomputer systems described in the prior art, and even if there are many microcomputer systems, the slowest initialization is possible. Since the communication can be started at the same time as the completion of the initialization, the above-mentioned initialization excess time TE hardly occurs.
【0010】図2はこの初期化制御方式を実現する各マ
イコンシステムの動作のフローチャートであり、以下1
01〜106の符号は同図中のステップを示す。即ち各
マイコンシステムは電源投入と同時にプログラムをスタ
ートさせ(101)、初期化に時間がかかる周辺装置を
先に初期化し、初期化完了信号をOFFしておく(10
2)。次に自身のマイコンシステムの初期化を行い(1
03)、その終了と同時に初期化完了信号をONする
(104)。そして交信を必要とする他のマイコンシス
テムの初期化完了信号をチェックして全てONになるま
で待つ(105,分岐N→105の繰返し)。このよう
にして全てONになったことを確認したら(105,分
岐Y)、交信を許可し(106)、動作を開始する。な
おこの初期化完了信号の確認方式はソフトウェア上で確
認できればどのような方式でも良い。FIG. 2 is a flow chart of the operation of each microcomputer system that realizes this initialization control method.
Reference numerals 01 to 106 indicate steps in the figure. That is, each microcomputer system starts the program at the same time when the power is turned on (101), initializes the peripheral device which takes a long time to initialize, and turns off the initialization completion signal (10).
2). Next, initialize your own microcomputer system (1
At the same time, the initialization completion signal is turned on (104). Then, the initialization completion signal of the other microcomputer system which needs communication is checked and waited until all are turned on (105, branch N → 105 is repeated). When it is confirmed that all are turned on in this way (105, branch Y), communication is permitted (106), and the operation is started. It should be noted that the method of confirming the initialization completion signal may be any method as long as it can be confirmed by software.
【0011】[0011]
【発明の効果】本発明によれば互に交信しながら夫々の
分担する処理を実行する複数のマイコンシステムを備え
た系において、電源投入後、各マイコンシステムが、自
身の交信に関わる全てのマイコンシステムが初期化完了
信号を有効(ON)にしたことを検知して、相互の交信
を含む通常の動作を開始するようにしたので、系全体の
初期化に要する時間を最少限に抑え、系の高速起動を計
ることができる。According to the present invention, in a system provided with a plurality of microcomputer systems which communicate with each other and execute respective shared processes, each microcomputer system, after power is turned on, has all the microcomputers involved in its communication. Since the system detects that the initialization completion signal is valid (ON) and starts normal operation including mutual communication, the time required for initialization of the entire system is minimized, You can measure the fast start of.
【図1】本発明の一実施例としての初期化動作を示すタ
イムチャートFIG. 1 is a time chart showing an initialization operation according to an embodiment of the present invention.
【図2】同じくマイコンシステムの初期化制御手順を示
すフローチャートFIG. 2 is a flowchart showing the initialization control procedure of the microcomputer system.
【図3】初期化時の不具合な交信例を示すタイムチャー
トFIG. 3 is a time chart showing an example of defective communication at initialization.
【図4】図1に対応する従来のタイムチャートFIG. 4 is a conventional time chart corresponding to FIG.
SA マイコンシステム SB マイコンシステム iA システムSAの初期化完了信号 iB システムSBの初期化完了信号 TA システムSAの初期化時間 TB システムSBの初期化時間 CA1 通信々号 CB1 通信々号 SA microcomputer system SB microcomputer system iA system SA initialization completion signal iB system SB initialization completion signal TA system SA initialization time TB system SB initialization time CA1 communication number CB1 communication number
Claims (3)
行する複数のマイコンシステムを備えた系において、 前記マイコンシステムが夫々自身のシステムの初期化完
了時、その旨を示す信号を出力するようにし、 この系の立上げ時、前記の各マイコンシステムが夫々自
身の交信に関わる全てのマイコンシステムの前記信号が
有効となったことを検知して自身の常時の処理を開始す
るようにしたことを特徴とするマイコンシステムの初期
化制御方法。1. In a system including a plurality of microcomputer systems that execute respective shared processes while communicating with each other, each of the microcomputer systems outputs a signal to that effect when initialization of its own system is completed. When the system is started up, each microcomputer system detects that the signals of all the microcomputer systems involved in the communication are valid and starts its own normal processing. A method for controlling initialization of a microcomputer system characterized by the above.
る初期化完了出力手段と、その出力後に外部からの初期
化完了を示す信号を検知して常時の処理を開始するよう
制御する処理開始制御手段とを備えるマイコンシステ
ム。2. Initialization completion output means for outputting a signal to that effect when initialization is completed, and processing for detecting a signal indicating completion of initialization from the outside after the output and performing control to start normal processing. A microcomputer system including start control means.
え、各処理開始制御手段は、外部からのすべての初期化
完了を示す信号を検知して常時の処理を開始するもので
あるマイコンシステム。3. A microcomputer system comprising a plurality of microcomputer systems according to claim 2, wherein each processing start control means detects a signal indicating completion of all initializations from the outside to start normal processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3292578A JPH05127779A (en) | 1991-11-08 | 1991-11-08 | Microcomputer system and its initialization control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3292578A JPH05127779A (en) | 1991-11-08 | 1991-11-08 | Microcomputer system and its initialization control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05127779A true JPH05127779A (en) | 1993-05-25 |
Family
ID=17783591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3292578A Pending JPH05127779A (en) | 1991-11-08 | 1991-11-08 | Microcomputer system and its initialization control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05127779A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7666759B2 (en) | 2002-03-27 | 2010-02-23 | Gsi Lumonics Corporation | Method and system for high-speed, precise micromachining an array of devices |
-
1991
- 1991-11-08 JP JP3292578A patent/JPH05127779A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7666759B2 (en) | 2002-03-27 | 2010-02-23 | Gsi Lumonics Corporation | Method and system for high-speed, precise micromachining an array of devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5652886A (en) | System for loading a boot program into an initially blank programmable memory of a microprocessor using state machine and serial bus | |
EP0715259B1 (en) | Watchdog timer lock-up prevention circuit | |
JPH05127779A (en) | Microcomputer system and its initialization control method | |
JPH05108548A (en) | Dma controller | |
JPS5853383B2 (en) | Information transfer mechanism in data processing systems | |
JP2015132894A (en) | Micro controller device and operation control method of the same | |
KR19980024651A (en) | Serial bus controller | |
JP2004213666A (en) | Dma module and its operating method | |
JP2023102591A (en) | Control device and electronic control device | |
JP3976958B2 (en) | Redundant apparatus having a plurality of master devices and bus control right switching method | |
JP6631370B2 (en) | Microcomputer and electronic control unit | |
JP2870837B2 (en) | Arbitration circuit of central processing unit | |
JPH07287660A (en) | Interruption processing method for programmable controller | |
KR200446071Y1 (en) | Logic gateway circuit for bus that supports multiple interrput request signals | |
JPH05274141A (en) | Program loading system | |
JPH0635841A (en) | Bus controller | |
JP3357697B2 (en) | Electric take-up device | |
JPS615362A (en) | Input and output control system | |
JP3022906B2 (en) | Communication method of programmable controller | |
JPH09311845A (en) | Digital signal processor and method therefor | |
JPS63153635A (en) | Specification system for data transfer speed | |
JPH09319726A (en) | Semiconductor integrated circuit device | |
JPH1021202A (en) | Network connection system of duplex computer | |
JP2001350547A (en) | Data transfer device for microcomputer | |
JPS6048780B2 (en) | multi timer device |