JPH0449431A - Interface circuit with testing function - Google Patents
Interface circuit with testing functionInfo
- Publication number
- JPH0449431A JPH0449431A JP2160153A JP16015390A JPH0449431A JP H0449431 A JPH0449431 A JP H0449431A JP 2160153 A JP2160153 A JP 2160153A JP 16015390 A JP16015390 A JP 16015390A JP H0449431 A JPH0449431 A JP H0449431A
- Authority
- JP
- Japan
- Prior art keywords
- data
- line
- response
- inverted
- command
- 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
- 230000005540 biological transmission Effects 0.000 claims abstract description 4
- 238000012790 confirmation Methods 0.000 claims description 7
- 230000002457 bidirectional effect Effects 0.000 claims description 2
- 230000002093 peripheral effect Effects 0.000 abstract description 21
- 230000004913 activation Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、テスト機能付きインタフェース回路に関し、
特に周辺装置等を制御し周辺用の入出力に使用するテス
ト機能付きインタフェース回路に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an interface circuit with a test function,
In particular, the present invention relates to an interface circuit with a test function that controls peripheral devices and is used for peripheral input/output.
従来、この種の周辺用I10インタフェース回路は、送
受信データが可変長の場合は、データバス線とは別にパ
リティ線を設け、送信側でデータバス上の送信データの
奇数又は偶数パリティをパリティ線上に出力し、受信側
で受信したデータが正しいかを受信したパリティデータ
を用いチエツクしている。Conventionally, in this type of peripheral I10 interface circuit, when the transmitted and received data has a variable length, a parity line is provided separately from the data bus line, and on the transmitting side, the odd or even parity of the transmitted data on the data bus is placed on the parity line. The receiving side checks whether the received data is correct using the received parity data.
上述した従来のパリティ線を有するインタフェース回路
では、データ信号線の誤配線によるデータバス上のビッ
ト誤りは、受信側で受信したデータとパリティでは検出
できないという欠点がある。The above-mentioned conventional interface circuit having a parity line has a drawback in that a bit error on the data bus due to incorrect wiring of the data signal line cannot be detected from the data and parity received on the receiving side.
本発明のテスト機能付きインタフェース回路は、双方向
のデータバス線と、データバス線上に存在するデータが
コマンドであるかデータであるかを示すデータ識別信号
線と、データバス上のコマンドとデータの送受信を制御
するデータ制御線とから成るインタフェース手段と、前
記インタフェース手段で受信したコマンドで予め予約し
たインタフェースのテストコマンドであるかを判別する
コマンド識別手段と、前記テストコマンドに対し予め定
められた長さで反転するデータを返信する応答手段と、
前記テストコマンド送信後に受信するデータが予め決め
られた長さで反転したデータであるか判別する応答確認
手段とを備えて構成される。The interface circuit with a test function of the present invention includes a bidirectional data bus line, a data identification signal line that indicates whether data present on the data bus line is a command or data, and a data identification signal line that indicates whether the data present on the data bus line is a command or data. interface means comprising a data control line for controlling transmission and reception; command identification means for determining whether a command received by the interface means is a test command for a previously reserved interface; a response means for replying with data to be inverted at the same time;
and response confirmation means for determining whether data received after transmitting the test command is data inverted with a predetermined length.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
る。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
第1図を参照すると本発明の一実施例は、上位装置イン
タフェース手段1と、周辺装置インタフェース手段2と
、データバス線3と、データ制御線4と、データ識別信
号線5と、応答確認手段6と、コマンド識別手段7と、
応答手段8と、データ1jtlO1と、コマンド線10
2と、レスポンス起動線103と、レスポンス線104
とから構成されている。Referring to FIG. 1, one embodiment of the present invention includes a host device interface means 1, a peripheral device interface means 2, a data bus line 3, a data control line 4, a data identification signal line 5, and a response confirmation means. 6, command identification means 7,
Response means 8, data 1jtlO1, and command line 10
2, response activation line 103, and response line 104
It is composed of.
上位装置インタフェース手段1と周辺装置インタフェー
ス手段2とは、データバス線3とデータ制御線4とデー
タ識別信号線5とで接続されている。応答確認手段6は
、データ線101で上位装置インタフェース手段1と接
続されている。コマンド識別手段7は、コマンド線10
2で周辺装置インタフェース手段2と、レスポンス起動
線103で応答手段8と接続されている。応答手段8は
レスポンス線104で周辺装置インタフェース手段1と
も接続されている。The host device interface means 1 and the peripheral device interface means 2 are connected by a data bus line 3, a data control line 4, and a data identification signal line 5. The response confirmation means 6 is connected to the host device interface means 1 via a data line 101. The command identifying means 7 is a command line 10.
2 is connected to the peripheral device interface means 2, and a response activation line 103 is connected to the response means 8. The response means 8 are also connected to the peripheral device interface means 1 via a response line 104.
本実施例について順を追って説明する。上位装置インタ
フェース手段1と周辺装置インタフェース手段2とは、
上位装置と周辺装置間のコマンドやデータの値をデータ
バス線3上で互いに交換する。この時、データバス線3
に存在する値がコマンド、データのいずれであるかはデ
ータ識別信号線5が示している。また、データバス線3
上のコマンドやデータのデータ交換のタイミング制御は
データ制御線4で行われ、上位装置インタフェース手段
1と周辺装置インタフェース手段2とは自由にコマンド
やデータを交換できる。This embodiment will be explained step by step. The upper device interface means 1 and the peripheral device interface means 2 are:
Commands and data values are exchanged between the host device and the peripheral device on the data bus line 3. At this time, data bus line 3
The data identification signal line 5 indicates whether the value present in is a command or data. Also, data bus line 3
Timing control of data exchange of the above commands and data is performed by the data control line 4, and the host device interface means 1 and peripheral device interface means 2 can freely exchange commands and data.
この時、上位装置インタフェース手段1経出で、上位C
PUより予め予約されたテストコマンドの送信が実行さ
れると応答確認手段6が起動し、周辺装置がテストコマ
ンド受信後に送出する予め予約した2バイトの反転デー
タ(DATAとDATAの1の補数であるDATA、例
えば(55)□8と(AA) HHX )が送られて来
たかを監視する。応答確認手段6が正しい順序で反転デ
ータが来たことを確認できれば、データ交換用のデータ
バス線3、データ制御線4およびデータ識別信号線5が
上位装置インタフェース手段1と周辺装置インタフェー
ス手段2とで正しく接続されていることを確認出来る。At this time, the upper C
When the transmission of the test command reserved in advance is executed from the PU, the response confirmation means 6 is activated, and the peripheral device transmits the reserved 2-byte inverted data (DATA and 1's complement of DATA) after receiving the test command. It monitors whether DATA (for example, (55)□8 and (AA) HHX) is sent. If the response confirmation means 6 can confirm that the inverted data has arrived in the correct order, the data bus line 3, data control line 4, and data identification signal line 5 for data exchange are connected to the host device interface means 1 and the peripheral device interface means 2. You can check that it is connected correctly.
周辺装置側に存在するコマンド識別手段7は、コマンド
線102より周辺装置インタフェース手段2が受信した
コマンドがテストコマンドであるか監視し、テストコマ
ンドを検出した時、レスポンス起動線103により応答
手段8を起動する。The command identification means 7 present on the peripheral device side monitors whether the command received by the peripheral device interface means 2 from the command line 102 is a test command, and when a test command is detected, the command identification means 7 is activated by the response activation line 103. to start.
起動をかけられた応答手段8は、レスポンス線104よ
り2バイトの反転データ(DATAlDATA)を周辺
装置インタフェース手段2に渡す。周辺装置インタフェ
ース手段2は、渡された2バイトの反転データを上位装
置インタフェース手段1へ送出する。The activated response means 8 passes 2 bytes of inverted data (DATA1DATA) from the response line 104 to the peripheral device interface means 2. The peripheral device interface means 2 sends the passed 2-byte inverted data to the host device interface means 1.
以上説明したように本発明は、上位側より送出したテス
トコマンドを周辺側で受信した時、受信側に固定長でか
つデータ反転するデータを返せるような機能を持たせ、
上位側には期待通りに反転データが返信して来たかのチ
エツク機能を持たせである。これにより、この時使用す
るデータが反転データであることで、データチエツク、
が正常であれば、上位と周辺装置間のインタフェース回
路のデータ線の全ビットの正常性を確認することができ
るという効果がある。As explained above, the present invention provides a function that allows the receiving side to return fixed-length and inverted data when the peripheral side receives a test command sent from the host side.
The upper side has a function to check whether the inverted data is returned as expected. As a result, since the data used at this time is inverted data, data check,
If it is normal, it is possible to confirm the normality of all bits of the data line of the interface circuit between the upper host and the peripheral device.
第1図は本発明の一実施例の構成を示すブロック図であ
る。
1・・・上位装置インタフェース手段、2・・・周辺装
置インタフェース手段、3・・・データバス線、4・・
・データ制御線、5・・・データ識別信号線、6・・・
応答確認手段、7・・・コマンド識別手段、8・・・応
答手段、101・・・データ線、102・・・コマンド
線、103・・・レスポンス起動線、104・・・レス
ポンス線。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Host device interface means, 2... Peripheral device interface means, 3... Data bus line, 4...
・Data control line, 5...Data identification signal line, 6...
Response confirmation means, 7... Command identification means, 8... Response means, 101... Data line, 102... Command line, 103... Response activation line, 104... Response line.
Claims (1)
ータがコマンドであるかデータであるかを示すデータ識
別信号線と、データバス上のコマンドとデータの送受信
を制御するデータ制御線とから成るインタフェース手段
と、前記インタフェース手段で受信したコマンドで予め
予約したインタフェースのテストコマンドであるかを判
別するコマンド識別手段と、前記テストコマンドに対し
予め定められた長さで反転するデータを返信する応答手
段と、前記テストコマンド送信後に受信するデータが予
め決められた長さで反転したデータであるか判別する応
答確認手段とを備えて成ることを特徴とするテスト機能
付きインタフェース回路。Consists of a bidirectional data bus line, a data identification signal line that indicates whether the data on the data bus line is a command or data, and a data control line that controls the transmission and reception of commands and data on the data bus. an interface means, a command identification means for determining whether a command received by the interface means is a pre-reserved interface test command, and a response means for replying with inverted data of a predetermined length in response to the test command. and response confirmation means for determining whether data received after transmitting the test command is inverted data with a predetermined length.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2160153A JPH0449431A (en) | 1990-06-19 | 1990-06-19 | Interface circuit with testing function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2160153A JPH0449431A (en) | 1990-06-19 | 1990-06-19 | Interface circuit with testing function |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0449431A true JPH0449431A (en) | 1992-02-18 |
Family
ID=15709023
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2160153A Pending JPH0449431A (en) | 1990-06-19 | 1990-06-19 | Interface circuit with testing function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0449431A (en) |
-
1990
- 1990-06-19 JP JP2160153A patent/JPH0449431A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4937816A (en) | Single-channel communication bus system and station for use in such a communication bus system | |
| JPH0449431A (en) | Interface circuit with testing function | |
| JP2710777B2 (en) | Test circuit for intermediate control unit | |
| JPS5829243A (en) | Signal monitoring device of transmission system | |
| JP2623816B2 (en) | Signal transmission method | |
| JP3151966B2 (en) | Bus controller | |
| JP2663713B2 (en) | Bus connection device | |
| JPS63260235A (en) | Transmission control method | |
| JPH04278742A (en) | How to detect errors in received data | |
| JPH01108833A (en) | Loop back test control system for transmission line | |
| JPS63308437A (en) | Line occupation prevention system | |
| JPH0279633A (en) | Error informing system | |
| JPH01235436A (en) | Data bus controller | |
| JPH043699B2 (en) | ||
| JPS58177054A (en) | Communication device | |
| JPH0646736B2 (en) | Communication failure detection method | |
| JPH04329378A (en) | Automatic test system for power source control device | |
| JPS6028026B2 (en) | Central processing unit mutual communication method | |
| JPS59202749A (en) | Remote control signal output control method | |
| JPS58177053A (en) | data communication system | |
| JPS63300649A (en) | Communication control method | |
| JPH0239902B2 (en) | ||
| JPS58131844A (en) | Data transmitter | |
| JPS60117846A (en) | Data transmission system | |
| KR970073195A (en) | Television with its own fault diagnosis function |