JPH04217056A - Automatic connection detecting method - Google Patents

Automatic connection detecting method

Info

Publication number
JPH04217056A
JPH04217056A JP41120090A JP41120090A JPH04217056A JP H04217056 A JPH04217056 A JP H04217056A JP 41120090 A JP41120090 A JP 41120090A JP 41120090 A JP41120090 A JP 41120090A JP H04217056 A JPH04217056 A JP H04217056A
Authority
JP
Japan
Prior art keywords
unit
processor
data
fixed data
connection
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.)
Withdrawn
Application number
JP41120090A
Other languages
Japanese (ja)
Inventor
Kanji Naito
寛治 内藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP41120090A priority Critical patent/JPH04217056A/en
Publication of JPH04217056A publication Critical patent/JPH04217056A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To exactly check all connecting lines of a connector even if a pull-up resistance (or a pull-down resistance) is used on an output side of a processor or an input side of a unit, in the method for detecting whether the connection of the processor and each extension unit is correct or not. CONSTITUTION:This method is constituted so that two fixed data whose logic is inverted each other are stored in advance in a unit 2, the two data concerned designated by two addresses whose logic is inverted each other from a processor 1 are read out of the unit concerned 2, and it is decided that the connecting state is normal, when there is no error in the two data concerned.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、自動接続検出方法に関
し、特にプロセッサと動作部を有する各増設ユニットと
の接続の正否を検出する方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic connection detection method, and more particularly to a method for detecting whether the connection between a processor and each expansion unit having an operating section is correct or incorrect.

【0002】プロセッサ(MPU)の電源投入後に、動
作部を有するユニットを新たに増設して接続する場合に
は、そのユニットとプロセッサとの通信線及び接続信号
線の接続が正常に行われる必要があり且つその判定を可
能にする必要があるが、この場合の判定は装置システム
をサービスダウンさせずに自動的に行うことが望ましい
[0002] When a new unit having an operating section is added and connected after the processor (MPU) is powered on, the communication line and connection signal line between the unit and the processor must be properly connected. It is necessary to be able to determine if there is a problem, but it is desirable that this determination be made automatically without bringing down the service of the device system.

【0003】0003

【従来の技術】従来においては、まず図4に示すように
、プロセッサ1と各増設ユニット2とを接続するコネク
タ3における接続信号線3aの接続信号(例えばRS2
32C)をプロセッサ1が常に監視してこの接続信号を
検出した後、通信を開始する方法が採られている。
2. Description of the Related Art Conventionally, as shown in FIG. 4, a connection signal (for example, RS2
32C), the processor 1 constantly monitors the connection signal and starts communication after detecting this connection signal.

【0004】しかしながら、プロセッサ1とユニット2
とのコネクタ3の接続不良の形態としては、図5(a)
 に示すようにコネクタ3のピンの長さが微妙に異なっ
たり、同図(b) に示すように一方のコネクタ3を僅
かに斜めに差し込んだ場合が存在するので、接続信号の
みで判定すると誤判定の原因となる。
However, processor 1 and unit 2
Figure 5(a) shows a form of poor connection between the connector 3 and the connector 3.
As shown in (b), there are cases where the pin lengths of the connectors 3 are slightly different, and there are cases where one connector 3 is inserted at a slight angle as shown in (b), so it may be incorrect to judge based only on the connection signal. Causes judgment.

【0005】そこで、更には、図6に示すようにマイコ
ンバス31及び32を介してプロセッサ1からアドレス
を与えてユニット2からデータを読み込んで接続を確認
する方法が従来より採られており、この場合には、ユニ
ット2側に1つのアドレスに対応して固定データを用意
しておき、プロセッサ1では、このアドレスのデータを
定期的に読み込み、その固定データと一致した場合に通
信を開始するようにしている。
Therefore, as shown in FIG. 6, a method has conventionally been adopted in which an address is given from processor 1 via microcomputer buses 31 and 32 and data is read from unit 2 to confirm the connection. In this case, fixed data is prepared corresponding to one address on the unit 2 side, and the processor 1 periodically reads the data of this address and starts communication when it matches the fixed data. I have to.

【0006】[0006]

【発明が解決しようとする課題】上記のような図6の場
合において、プロセッサ1の出力側又はユニット2の入
力側にプルアップ抵抗(又はプルダウン抵抗)が用いら
れていると、コネクタ3のピンが実際には正常に接続さ
れておらず論理レベルが実際には“L”レベルであるに
も関わらず“H”レベルになってしまうことがあり、上
記のような1つの固定データだけでは全ての接続線をチ
ェックすることはできず、接触不良であるにも関わらず
正常と判定して誤動作の原因となるという問題点があっ
た。
[Problems to be Solved by the Invention] In the case shown in FIG. may not be connected properly and the logic level may become "H" level even though it is actually "L" level. It is not possible to check the connection wires, and there is a problem in that they are determined to be normal even though there is a poor connection, causing malfunctions.

【0007】従って、本発明は、プロセッサと各増設ユ
ニットとの接続の正否を検出する方法において、プロセ
ッサの出力側又はユニットの入力側にプルアップ抵抗(
又はプルダウン抵抗)が用いられていてもコネクタの全
ての接続線を正確にチェックすることができるようにす
ることを目的とする。
Accordingly, the present invention provides a method for detecting whether the connection between a processor and each expansion unit is correct or not, in which a pull-up resistor (
The purpose of the present invention is to enable accurate checking of all connection lines of a connector even if pull-down resistors (or pull-down resistors) are used.

【0008】[0008]

【課題を解決するための手段と作用】図1は、本発明に
係る自動接続検出方法の構成を原理的に示したもので、
本発明では互いに反転した2つの固定データをユニット
2に記憶しておき、プロセッサ1から互いに論理反転し
た2つのアドレスにより指定された該2つのデータを該
ユニット2から読み出して該2つのデータに誤りが無か
ったとき接続状態が正常と判定するものである。
[Means and operations for solving the problems] FIG. 1 shows the principle of the configuration of the automatic connection detection method according to the present invention.
In the present invention, two pieces of fixed data that are inverted to each other are stored in the unit 2, and the two pieces of data specified by two addresses that are logically inverted to each other are read out from the unit 2 from the processor 1, and the two data are made to contain errors. The connection status is determined to be normal when there is no.

【0009】これを図1により分かり易く説明すると、
まず、図示のアドレス■と■、及びこれらのアドレス■
と■にそれぞれ対応する固定データ■と■を論理的に互
いに反転した関係に設定し、固定データ■と■はユニッ
ト2に予め記憶しておく。そして、プロセッサ1からま
ずアドレス■で固定データ■を読み出し、これがプロセ
ッサ1において一致した場合、更にアドレス■で固定デ
ータ■を読み出す。この結果、2つの固定データ■及び
■共にプロセッサ1において一致したときには、上記の
ようなプルアップ抵抗(又はプルダウン抵抗)の有無に
関係無く接続状態が正常であると判定することができる
ことになる。
[0009] To explain this more clearly with reference to Figure 1,
First, the illustrated addresses ■ and ■, and these addresses ■
The fixed data ■ and ■ corresponding to and ■, respectively, are set in a logically inverted relationship with each other, and the fixed data ■ and ■ are stored in the unit 2 in advance. First, fixed data ■ is read out from the processor 1 at address ■, and if this matches in processor 1, fixed data ■ is further read out at address ■. As a result, when the two fixed data (1) and (2) match in the processor 1, it can be determined that the connection state is normal regardless of the presence or absence of the pull-up resistor (or pull-down resistor) as described above.

【0010】また、本発明では、更に該プロセッサ1か
ら第3のアドレスで第3の固定データを該ユニット2に
記憶し、該ユニット2では該記憶した第3の固定データ
が自局データと一致したときのみ通信回線を開き、その
後、更に該プロセッサ1から第4のアドレスで該ユニッ
ト2に記憶されている第4の固定データを読み出したと
きに接続完了と判定することも可能である。
Further, in the present invention, third fixed data is further stored in the unit 2 at a third address from the processor 1, and in the unit 2, the stored third fixed data matches the own station data. It is also possible to open the communication line only when this happens, and then determine that the connection is complete when the fourth fixed data stored in the unit 2 is read out from the processor 1 at the fourth address.

【0011】これを図1により分かり易く説明すると、
プロセッサ1からアドレス■で固定データ■をユニット
2に書き込んだとき、この固定データ■がユニット2の
自局データと一致したときには、ユニット2の側でプロ
セッサ1とユニット2との実動作を開始(ON)させる
ようにし、この状態でアドレス■がプロセッサ1からユ
ニット2に与えられてユニット2から読み出された固定
データ■がプロセッサ1において一致したときには、接
続完了したものとする。
[0011] To explain this more clearly with reference to Figure 1,
When fixed data ■ is written from processor 1 to unit 2 at address ■, and when this fixed data ■ matches unit 2's own data, unit 2 starts actual operation between processor 1 and unit 2 ( In this state, when the address (2) is given from the processor 1 to the unit 2 and the fixed data (2) read from the unit 2 match in the processor 1, it is assumed that the connection is completed.

【0012】これにより、プロセッサ1からユニット2
への書き込み動作をも含めた接続状態の正否が判定でき
ることとなる。
[0012] As a result, from processor 1 to unit 2
This means that it is possible to determine whether the connection state is correct or not, including the write operation.

【0013】[0013]

【実施例】図2は、本発明に係る自動接続検出方法に用
いられるユニット2の一実施例を示したものであり、こ
の実施例では、20は読出(RD)信号及び書込(WR
)信号及びアドレス信号を受けるデコーダ、21は予め
固定データ■を格納しておりデコーダ20によってアク
セスされるメモリ、22は予め固定データ■を格納して
おりデコーダ20によってアクセスされるメモリ、23
はデコーダ20によってアクセスされてデータ(正常な
場合は固定データ■)を書き込むためのメモリ、24は
メモリ23の書込データと自局データとを比較するデー
タ比較器、25はデータ比較器24の比較結果により実
データの書込・読出を禁止する回路、26はデータ比較
器24の比較結果によりユニット2としての実動作(例
えば、リレーのオン/オフ動作)を行わせる動作部、そ
して、27は予め固定データ■を格納しておりデコーダ
20によってアクセスされるメモリである。尚、プロセ
ッサ1とユニット2との間は、上記の読出信号及び書込
信号をそれぞれ通過させる1ビット線路と、アドレス信
号及びデータ信号をそれぞれ通過させる8ビットのバス
とで接続されているものとする。
Embodiment FIG. 2 shows an embodiment of the unit 2 used in the automatic connection detection method according to the present invention. In this embodiment, 20 indicates a read (RD) signal and a write (WR) signal.
) signal and an address signal; 21 is a memory that stores fixed data (2) in advance and is accessed by the decoder 20; 22 is a memory that stores fixed data (2) in advance and is accessed by the decoder 20; 23;
24 is a memory that is accessed by the decoder 20 and is used to write data (fixed data in the normal case), 24 is a data comparator that compares the data written in the memory 23 and the own data, and 25 is a data comparator 24 of the data comparator 24. 26 is a circuit that prohibits writing/reading of actual data based on the comparison result; 26 is an operating unit that causes the unit 2 to perform an actual operation (for example, ON/OFF operation of a relay); and 27 is a memory that stores fixed data (2) in advance and is accessed by the decoder 20. Note that processor 1 and unit 2 are connected by a 1-bit line through which the above-mentioned read signal and write signal pass, respectively, and an 8-bit bus through which address signals and data signals pass, respectively. do.

【0014】図3は、プロセッサ1の処理手順を示した
もので、以下、この図3と上記の図1とを参照して図2
の実施例の動作を説明する。
FIG. 3 shows the processing procedure of the processor 1. Hereinafter, referring to this FIG. 3 and the above-mentioned FIG. 1, FIG.
The operation of the embodiment will be explained.

【0015】まず、プロセッサ1からは読出信号RDと
共にアドレス■(例えば、16進数で「AA」)が送出
され(ステップS1)、ユニット2ではデコーダ20に
よりアドレス■に対応するメモリ21がアクセスされて
そのデータが読み出されてプロセッサ1に送られる。
First, the processor 1 sends out an address (for example, "AA" in hexadecimal) along with the read signal RD (step S1), and in the unit 2, the decoder 20 accesses the memory 21 corresponding to the address. The data is read and sent to processor 1.

【0016】プロセッサ1では、読み出したデータが固
定データ■(例えば、16進数で「33」)であるか否
かを判定し(ステップS2)、固定データ■であった場
合には、次にアドレス■(例えば、16進数で上記のア
ドレス■と論理反転した「55」)を読出信号RDと共
にユニット2に送出する(ステップS3)。
The processor 1 determines whether the read data is fixed data (for example, "33" in hexadecimal) (step S2), and if it is fixed data, the next address is ■ (for example, "55" which is the logical inversion of the above address ■ in hexadecimal) is sent to the unit 2 together with the read signal RD (step S3).

【0017】そして、ユニット2では、デコーダ20に
よりアクセスされたメモリ22から読み出されたデータ
が固定データ■(例えば、16進数で「CC」)である
か否かをプロセッサ1において判定する(ステップS4
)。
In the unit 2, the processor 1 determines whether the data read out from the memory 22 accessed by the decoder 20 is fixed data (for example, "CC" in hexadecimal) (step S4
).

【0018】この結果、読み出されたデータが固定デー
タ■であったときには、書込・読出線路、アドレスバス
、及びデータバスの接続状態が正常であると判定される
こととなる。
As a result, when the read data is fixed data (2), it is determined that the connection state of the write/read line, address bus, and data bus is normal.

【0019】ここで、一応の自動接続検出が行われたこ
とになるが、更に書込動作も正常に行われるか否かを判
定するために以下の動作を行うことが望ましい。
At this point, a certain amount of automatic connection detection has been performed, but it is desirable to perform the following operation in order to determine whether or not the write operation is also performed normally.

【0020】即ち、書込信号WRと共にアドレス■(こ
れは、上記のアドレス■、■と重複しないものであれば
なんでもよい)をプロセッサ1からユニット2に送り(
ステップS5)、このアドレス■によりデコーダ20で
アクセスされるメモリ23に固定データ■(これは任意
でよい)を書き込む。
That is, along with the write signal WR, the processor 1 sends the address (■) (which may be any address as long as it does not overlap with the above-mentioned addresses (■) and ()) to the unit 2 (
In step S5), fixed data (this may be arbitrary) is written in the memory 23 accessed by the decoder 20 using this address ().

【0021】ここで、ユニット2では、メモリ23に書
き込んだ固定データ■が自局データと一致しているか否
かをデータ比較器24で比較する。
Here, in the unit 2, the data comparator 24 compares the fixed data written in the memory 23 with the own station data.

【0022】この結果、両者が一致しているときだけデ
ータ書込・読出禁止回路25が禁止状態を解除し、また
動作部26が動作可能状態となる。
As a result, only when the two match, the data write/read inhibiting circuit 25 releases the inhibited state, and the operating section 26 becomes operable.

【0023】この状態でプロセッサ1からユニット2に
対してアドレス■(これも任意のものでよい)及び読出
信号RDが送られると(ステップS6)、ユニット2の
デコーダ20によりアクセスされたメモリ27からデー
タが読み出され、データ書込・読出禁止回路25を経由
してプロセッサ1に送られる。
In this state, when the processor 1 sends the address ■ (which may also be arbitrary) and the read signal RD to the unit 2 (step S6), the data is read from the memory 27 accessed by the decoder 20 of the unit 2. The data is read and sent to the processor 1 via the data write/read inhibit circuit 25.

【0024】従って、プロセッサ1では、このデータが
固定データ■であるか否かをチェックする(ステップS
7)により、ユニット2と実動作が可能になったか否か
を判定することができ、固定データ■であった場合には
、プロセッサ1−ユニット2間の通信を開始する(ステ
ップS8)。
Therefore, the processor 1 checks whether or not this data is fixed data (step S
7), it can be determined whether or not actual operation with the unit 2 is possible, and if the fixed data is (2), communication between the processor 1 and the unit 2 is started (step S8).

【0025】このようにして固定データ■が読み出せれ
ば、書込信号の接続が正常に行われていることとなる。
If the fixed data (2) can be read out in this way, it means that the write signal connection is performed normally.

【0026】[0026]

【発明の効果】以上説明した様に、本発明に係る自動接
続検出方法によれば、互いに論理反転した2つの固定デ
ータをユニットに記憶しておき、プロセッサから互いに
論理反転した2つのアドレスにより指定された該2つの
データを該ユニットから読み出して該2つのデータに誤
りが無かったとき接続状態が正常と判定するように構成
したので、プロセッサ側及びユニット側にプルアップ抵
抗(プルダウン抵抗)が接続されていても両者のコネク
タの接続状態を正確に判定することができ、各ユニット
の誤動作を防止することができる。
As explained above, according to the automatic connection detection method according to the present invention, two pieces of fixed data that are logically inverted to each other are stored in a unit, and specified by a processor using two addresses that are logically inverted to each other. Since the configuration is configured so that the connection status is determined to be normal when the two pieces of data are read from the unit and there are no errors in the two pieces of data, a pull-up resistor (pull-down resistor) is connected to the processor side and the unit side. Even if the connectors are connected to each other, it is possible to accurately determine the connection state of both connectors, and malfunction of each unit can be prevented.

【0027】また、本発明では、更に該プロセッサから
第3のアドレスで第3の固定データを該ユニットに記憶
し、該ユニットでは該記憶した第3の固定データが自局
データと一致したときのみ該ユニットの実動作を可能と
し、その後、更に該プロセッサから第4のアドレスで該
ユニットに記憶されている第4の固定データを読み出し
たときに接続完了と判定するように構成したので、書込
動作も含めた各ユニットの接続状態を判定することがで
きる。
Further, in the present invention, third fixed data is further stored in the unit at a third address from the processor, and the unit stores the third fixed data only when the stored third fixed data matches the own station data. The configuration is such that it is determined that the connection is complete when the unit is enabled for actual operation and then the fourth fixed data stored in the unit is read from the processor at the fourth address. The connection state of each unit, including its operation, can be determined.

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

【図1】本発明に係る自動接続検出方法の原理的な構成
図である。
FIG. 1 is a basic configuration diagram of an automatic connection detection method according to the present invention.

【図2】本発明に係る自動接続検出方法に用いる各増設
ユニットの一実施例を示したブロック図である。
FIG. 2 is a block diagram showing one embodiment of each expansion unit used in the automatic connection detection method according to the present invention.

【図3】本発明におけるプロセッサの処理手順の実施例
を示したフローチャート図である。
FIG. 3 is a flowchart showing an embodiment of a processing procedure of a processor according to the present invention.

【図4】従来においてプロセッサ−ユニット間の接続信
号の検出を説明するための図である。
FIG. 4 is a diagram for explaining detection of a connection signal between a processor and a unit in the related art.

【図5】コネクタの接続不良の形態を示した図である。FIG. 5 is a diagram showing a form of connector connection failure.

【図6】従来においてプロセッサ−ユニット間のバスに
よる接続信号の検出を説明するための図である。
FIG. 6 is a diagram for explaining detection of a connection signal via a bus between a processor and a unit in the related art.

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

1  プロセッサ 2  ユニット 20  デコーダ 21〜23、27  メモリ 1 Processor 2 Unit 20 Decoder 21-23, 27 Memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  プロセッサ(1) と各増設ユニット
(2) との接続の正否を検出する方法において、互い
に論理反転した2つの固定データを該ユニット(2) 
に記憶しておき、該プロセッサ(1) から互いに論理
反転した2つのアドレスにより指定された該2つのデー
タを該ユニット(2) から読み出して該2つのデータ
に誤りが無かったとき接続状態が正常と判定することを
特徴とした自動接続検出方法。
Claim 1: In a method for detecting whether the connection between a processor (1) and each expansion unit (2) is correct or not, two fixed data logically inverted from each other are sent to the unit (2).
When the processor (1) reads out the two data specified by the two logically inverted addresses from the unit (2) and there is no error in the two data, the connection state is normal. An automatic connection detection method characterized by determining that.
【請求項2】  更に該プロセッサ(1) から第3の
アドレスで第3の固定データを該ユニット(2) に記
憶し、該ユニット(2) では該記憶した第3の固定デ
ータが自局データと一致したときのみ該ユニット(2)
 の実動作を可能とし、その後、更に該プロセッサ(1
) から第4のアドレスで該ユニット(2) に記憶さ
れている第4の固定データを読み出したときに接続完了
と判定することを特徴とした請求項1記載の自動接続検
出方法。
2. Further, third fixed data is stored in the unit (2) at a third address from the processor (1), and in the unit (2), the stored third fixed data is the own station data. The corresponding unit (2) only when it matches
After that, the processor (1
2. The automatic connection detection method according to claim 1, wherein the connection is determined to be complete when the fourth fixed data stored in the unit (2) is read out from the unit (2) at a fourth address.
JP41120090A 1990-12-17 1990-12-17 Automatic connection detecting method Withdrawn JPH04217056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP41120090A JPH04217056A (en) 1990-12-17 1990-12-17 Automatic connection detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP41120090A JPH04217056A (en) 1990-12-17 1990-12-17 Automatic connection detecting method

Publications (1)

Publication Number Publication Date
JPH04217056A true JPH04217056A (en) 1992-08-07

Family

ID=18520239

Family Applications (1)

Application Number Title Priority Date Filing Date
JP41120090A Withdrawn JPH04217056A (en) 1990-12-17 1990-12-17 Automatic connection detecting method

Country Status (1)

Country Link
JP (1) JPH04217056A (en)

Similar Documents

Publication Publication Date Title
US5436856A (en) Self testing computer system with circuits including test registers
JPH04217056A (en) Automatic connection detecting method
JPS6016996Y2 (en) Address selection device for input/output interface device
JPS5911452A (en) Test system of parity check circuit
JPH0239814B2 (en)
JP4748871B2 (en) One-chip microcontroller system
JP2830486B2 (en) Communication device
JPH01321539A (en) Circuit for checking connecting state of bus connector
JPS636642A (en) Detecting device for card packing state
JP2001067271A (en) Check method of memory circuit
KR100538486B1 (en) Error detecting circuit for storing data in system memory
JP2825464B2 (en) Communication device
JPS6385832A (en) Parity checking system
JPH07152497A (en) Disk control device
JPS63126041A (en) Signal input device
JPS61134846A (en) Electronic computer system
JPH01306929A (en) Microprocessor
JP2001216201A (en) Data processor
JPH08221282A (en) Parity generation and check circuit
JPH05173819A (en) Common bus route diagnostic method
JPS6121546A (en) Error detecting system of common memory
JPH03202943A (en) Error detection system for storage device
JPS63149943A (en) Communication control equipment
JPS63268670A (en) Memory card device
JP2001307498A (en) Memory check device, memory check method, and storage medium

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980312