JPH01258158A - Trouble diagnosing circuit for interface ic - Google Patents

Trouble diagnosing circuit for interface ic

Info

Publication number
JPH01258158A
JPH01258158A JP63085040A JP8504088A JPH01258158A JP H01258158 A JPH01258158 A JP H01258158A JP 63085040 A JP63085040 A JP 63085040A JP 8504088 A JP8504088 A JP 8504088A JP H01258158 A JPH01258158 A JP H01258158A
Authority
JP
Japan
Prior art keywords
interface
signal
input
external device
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63085040A
Other languages
Japanese (ja)
Inventor
Masaru Ishikawa
賢 石川
Toshiharu Mouri
毛利 峻治
Hideaki Matoba
的場 秀彰
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63085040A priority Critical patent/JPH01258158A/en
Publication of JPH01258158A publication Critical patent/JPH01258158A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the reliability of an input/output interface by providing a bidirectional bus driver which connects I/O ports to each other and a buffer which disconnects an external device and an interface IC from each other to check the interface IC while holding the signal to the external device. CONSTITUTION:When an interface IC 2 will be checked, sending of a clock to a latch 5 from which data is sent out is stopped and the signal to the external device is held on the output side of the latch 5, and the address for check of the interface IC 2 is assigned to a control register 15 of the interface IC 2 and input/output ports 16 and 17, and a bidirectional buffer 4 is operated, and data is exchanged between input/output ports 16 and 17. Thus, the signal to the external device is held by the latch and does not disappear when the interface IC 2 is checked, and the malfunction of the external device due to disappearance of the signal at the time of check is avoided.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はロボット用コントローラ等の入出力インタフェ
ースに係り、特に、入出力インタフェース用ICの故障
診断回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an input/output interface for a robot controller or the like, and particularly to a failure diagnosis circuit for an input/output interface IC.

〔従来の技術〕[Conventional technology]

入出力インタフェース用ICの故障に対処するkは、イ
ンタフェース用ICを二重化構成にするのが好ましいが
、これはコスト増大になるため、従来は、%開昭58−
66115号公報に記載されている様に、インタフェー
ス用ICとは別に故障を診断するためのチエツク用回路
を設けている。
To deal with failures in the input/output interface IC, it is preferable to configure the interface IC in a duplex configuration, but this increases costs, so conventionally
As described in Japanese Patent No. 66115, a check circuit for diagnosing failure is provided separately from the interface IC.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術によるチエツク用回路でインタフェース用
ICの異常を検出した場合、外部装置に送出すべき信号
を消失させてしまうため、外部装置が誤動作してしまう
という問題がある。これは、インタフェース用ICの異
常検出時に外部装置に送出すべき信号を保持しておくと
いうことについて配慮がされていないことが原因となっ
ている。
When the check circuit according to the prior art detects an abnormality in the interface IC, the signal to be sent to the external device is lost, causing the external device to malfunction. This is because no consideration is given to retaining the signal that should be sent to the external device when an abnormality is detected in the interface IC.

本発明の目的は、外部装置・\送出する信号を保持した
ままインタフェース用ICの異常の有無をチエツクする
入出力インタフェース用ICの故障診断回路を提供する
ことにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a failure diagnosis circuit for an input/output interface IC that checks for abnormalities in the interface IC while retaining signals sent from an external device.

〔課題を解決するだめの手段〕[Failure to solve the problem]

上記目的は、インタフェース用ICのチエツク時に、デ
ータを送り出しているラッチにクロックを送ることを中
止し、ラッチの出力側で外部装置への信号を保持し、イ
ンタフェース用ICのコントロールレジスタと、I/C
ポートにインタフェース用ICのチエツク用アドレスを
割当て、双方向性バッファを動作させ、I/Cポート間
でデータの交換を行なう構成とすることにより、達成さ
れる。
The above purpose is to stop sending the clock to the latch that is sending out data when checking the interface IC, hold the signal to the external device on the output side of the latch, and connect the control register of the interface IC and the I/O. C
This is achieved by assigning a check address of an interface IC to a port, operating a bidirectional buffer, and exchanging data between I/C ports.

〔作用〕[Effect]

インタフェース用ICのチエツク時には外部装置への信
号がラッチにより保持されて消失することがないので、
チエツク時の信号消失による外部装置の誤動作という事
態は回避される。
When checking the interface IC, the signal to the external device is held by the latch and will not be lost.
This avoids a situation where the external device malfunctions due to signal loss during check.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を参照して説明する。 Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

図は、本発明の一実施例に係るインタフェース回路であ
る。図中1はCPU、2はインタフェース用ICl3は
アドレスデコード回路、4は双方向性3ステートバツフ
ア、5は出力用ラッチ、6は入力用バッファ(3ステー
トバツフア)、7〜9はNOT素子、10〜13はAN
D素子、14はOR素子、15バインタフエース用IC
2のコントロールレジスタ、16.17はインタフェー
ス用IC20入出力(I/O )ポートであり、CPU
 1とインタフェース用IC2とはデータバス18及び
2°ビツト用アドレス線24 、2’ビツト用アドレス
線25 、 CPU 1の情報読出信号線26 、 C
PU1の情報書込信号線27で接続され、CPU1とア
ドレスデコード回路3とはアドレスバス19により接続
され、インタフェース用IC2とラッチ5及び6とは夫
々データライン20゜21により接続され、各ラッチ5
.6と図示しない外部装置とはデータライン22.25
により接続され、データライン20と21間にバッファ
4が設けられて両データライン20と21間はバッファ
4に接続されるように構成されている。3人力AND素
子10の入力にはNOT素子7.8を介して信号線24
.25が接続されると共に信号線27が接続され、3人
力AND素子11の入力には信号線24.26が接続さ
れると共にNOT素子9を介して信号線25が接続され
る。
The figure shows an interface circuit according to an embodiment of the present invention. In the figure, 1 is a CPU, 2 is an interface ICl3 is an address decoding circuit, 4 is a bidirectional 3-state buffer, 5 is an output latch, 6 is an input buffer (3-state buffer), and 7 to 9 are NOT elements. , 10-13 are AN
D element, 14 is OR element, 15 is IC for binder face
2 control register, 16.17 is the interface IC20 input/output (I/O) port, and the CPU
1 and the interface IC 2 are the data bus 18, the 2° bit address line 24, the 2' bit address line 25, the information read signal line 26 of the CPU 1, and the C
The CPU 1 and address decode circuit 3 are connected by an address bus 19, the interface IC 2 and latches 5 and 6 are connected by data lines 20 and 21, and each latch 5
.. 6 and external devices not shown are data lines 22 and 25.
A buffer 4 is provided between the data lines 20 and 21, and the data lines 20 and 21 are connected to the buffer 4. The signal line 24 is connected to the input of the three-power AND element 10 via the NOT element 7.8.
.. 25 and the signal line 27 are connected, and the signal line 24 and 26 are connected to the input of the three-man power AND element 11, and the signal line 25 is connected via the NOT element 9.

アドレスデコード回路3の出力信号線52.53は2人
力OR素子140入力に接続され、OR素子14の出力
はインタフェース用IC2のチップセレクト端子CSに
入力される。信号線32は更にバッファ4のチップセレ
クト端子C5に接続され、信号線33は2人力AND素
子12.13の夫々の一方の入力端子に接続される。A
ND素子12.15の他の入力端子には、夫々AND素
子10.11の出力信号線28.29が接続され、AN
D素子12.13の出力信号線50.31は夫夫ラッチ
5,6のチップセレクト端子CSに接続される。信号線
28.29はまた、バッファ4に接続される。
The output signal lines 52 and 53 of the address decoding circuit 3 are connected to the input of the two-way OR element 140, and the output of the OR element 14 is input to the chip select terminal CS of the interface IC 2. The signal line 32 is further connected to the chip select terminal C5 of the buffer 4, and the signal line 33 is connected to one input terminal of each of the two-manual AND elements 12 and 13. A
The output signal lines 28 and 29 of the AND elements 10 and 11 are connected to other input terminals of the ND elements 12 and 15, respectively.
Output signal lines 50.31 of D elements 12.13 are connected to chip select terminals CS of husband latches 5 and 6. Signal lines 28,29 are also connected to buffer 4.

次に、上述したインタフェース回路の動作について説明
する。
Next, the operation of the above-mentioned interface circuit will be explained.

アドレスデコード回路3はCPU 1が発行するアドレ
スをデコードし、それがインタフェース用IC2のチエ
ツク用であれば信号線32に11”レベル信号を出力し
、通常の入出力用であれば信号線33に”H°レベル信
号を出力する。
The address decode circuit 3 decodes the address issued by the CPU 1, and outputs an 11" level signal to the signal line 32 if it is for checking the interface IC 2, and outputs an 11" level signal to the signal line 33 if it is for normal input/output. "Outputs H° level signal.

通常の入出力用の場合、信号線33の°H°レベル信号
は、OR素子14を通ってインタフェース用IC2に入
力されて該IC2は動作状態となり、更に、AND素子
12.13をスルー状態として信号線28 、29の信
号をラッチ5.6のチップセレクト端子C5に入力する
ことになる。CPU 1の指示によ抄入出力ポート16
が選択された場合、AND素子10の出力は“H”レベ
ルとなり、これがラッチ5の端子CSに伝えられてラッ
チ5は動作可能状態となる。また、CPU 1の指示に
より入出力ボート17が選択された場合、AND素子1
1の出力が“H”レベルとなり、これがラッチ6に伝え
られてラッチ6は動作状態となる。これにより、CPU
1と外部装置とは、データライン22 、25及びラッ
チ5.6及びデータライン20.21及びIC2及びデ
ータバス18を介してデータ転送が可能となる。
In the case of normal input/output, the °H° level signal of the signal line 33 is input to the interface IC 2 through the OR element 14, and the IC 2 is put into the operating state, and furthermore, the AND elements 12 and 13 are put into the through state. The signals on the signal lines 28 and 29 are input to the chip select terminal C5 of the latch 5.6. Editing input/output port 16 according to instructions from CPU 1
When selected, the output of the AND element 10 becomes "H" level, which is transmitted to the terminal CS of the latch 5, and the latch 5 becomes operable. Furthermore, when the input/output boat 17 is selected by the instruction from the CPU 1, the AND element 1
The output of 1 becomes the "H" level, which is transmitted to the latch 6, and the latch 6 becomes operational. This allows the CPU
1 and external devices can transfer data via data lines 22, 25, latches 5.6, data lines 20.21, IC2, and data bus 18.

CPU1力発行するアドレスがIC2のチエツク用の場
合は、信号線33の信号レベルは@L”レベルになると
共に信号線32の信号レベルは”Hoとなる。
When the address issued by the CPU 1 is for checking the IC 2, the signal level of the signal line 33 becomes @L" level, and the signal level of the signal line 32 becomes "Ho".

信号線33の信号レベルが°L°レベルになると、AN
D素子12.15の出力はL”レベルとなり、このため
ラッチ5.6は動作を停止してデータを保持する状態と
なる。また、信号線33の信号レベルが1L”レベルに
なっても、信号線52の信号レベルが′H”しペルとな
るため、IC2の端子CSにはOR素子14を介して“
H°レベル信号が入力され、IC2は動作状態を続ける
。そして、信号線32の“H・レベル信号がバッファ4
のCS端子に入力してバッファ4が動作状態となり、こ
のとき、CPU 1からの指示によF) AND素子1
0または11の出力が°H″となると、該”H”信号を
バッファ4が受けてバッファ4の出力方向が決定される
。これkより、CPU1から出力されたデータは、デー
タバス18→入出力ポート16→データライン20→バ
ツフア4→データライン21→入出力ポート17→デー
タバス18、あるいは、データバス18→入出力ボート
17→データライン21→バツフア4→データライン2
0→入出力ボート16→データバス1Bの経路を通り、
CPU1に戻る。CPU 1は、送出したデータと戻ク
ズきたデータとを比較し、IC2のチエツクを行なう。
When the signal level of the signal line 33 reaches °L° level, AN
The output of the D element 12.15 becomes L" level, and therefore the latch 5.6 stops operating and holds data. Furthermore, even if the signal level of the signal line 33 becomes 1L" level, Since the signal level of the signal line 52 becomes 'H' and becomes a PEL, a signal is applied to the terminal CS of the IC2 through the OR element 14.
The H° level signal is input, and IC2 continues to operate. Then, the “H” level signal on the signal line 32 is transmitted to the buffer 4.
F) AND element 1 is input to the CS terminal of F), and the buffer 4 becomes operational.
When the output of 0 or 11 becomes °H'', the buffer 4 receives the ``H'' signal and the output direction of the buffer 4 is determined. Output port 16 → data line 20 → buffer 4 → data line 21 → input/output port 17 → data bus 18, or data bus 18 → input/output port 17 → data line 21 → buffer 4 → data line 2
0→I/O port 16→Data bus 1B route,
Return to CPU1. The CPU 1 compares the sent data with the returned data and checks the IC2.

以上説明したように、インタフェース用IC2のチエツ
ク時には外部装置に送出するデータ信号をラッチ5が保
持するため、外部装置の誤動作を防止することができる
As explained above, since the latch 5 holds the data signal sent to the external device when checking the interface IC 2, malfunction of the external device can be prevented.

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

本発明によれば、外部装置への信号を保持したまま、イ
ンタフェース用ICのチエツクを行なうので、外部装置
の動作中にもチエツクを行なうことができ、入出力イン
タフェースの信頼性向上に効果がある。
According to the present invention, since the interface IC is checked while the signal to the external device is held, the check can be performed even while the external device is operating, which is effective in improving the reliability of the input/output interface. .

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

図は、本発明の一実施例に係るインタフェース回路の構
成図である。 1 ・・・・・・・・・・・・・・・・・・CPU2・
・・・・・・・−・・・・−・・インタフェース用IC
3・・・・・・・・・・・・・・・・・・アドレスデコ
ード回路4・・・・・・・・・・・・・・・・・・バッ
ファ5.6・・・・・・・・・ラッチ 7〜9・・・・・・・・・NOT素子 10〜13・・・・・・AND素子 14・・・・・・・・・・・・・・・OR素子代理人 
弁理士 小 川 勝 男
The figure is a configuration diagram of an interface circuit according to an embodiment of the present invention. 1 ・・・・・・・・・・・・・・・・・・CPU2・
・・・・・・・・・-・・・・・・・・・・Interface IC
3・・・・・・・・・・・・・・・・・・Address decoding circuit 4・・・・・・・・・・・・・・・Buffer 5.6・・・・・・...Latch 7-9...NOT elements 10-13...AND element 14...OR element agent
Patent Attorney Katsuo Ogawa

Claims (1)

【特許請求の範囲】[Claims] 1、マイクロコンピュータ等のインタフェースにおいて
、インタフェース用ICと、インタフェース用ICのコ
ントロールレジスタおよびI/Oポートに複数の番地を
割当てることができるデコード回路と、I/Oポートを
相互に接続する双方向性バスドライバと、外部装置とイ
ンタフェース用ICを切はなすバッファを設けたことを
特徴とするインタフェース用ICの故障診断回路。
1. Bidirectionality that interconnects an interface IC, a decoding circuit that can assign multiple addresses to the interface IC's control registers and I/O ports, and I/O ports in interfaces for microcomputers, etc. A failure diagnosis circuit for an interface IC, characterized by providing a bus driver and a buffer that separates an external device from the interface IC.
JP63085040A 1988-04-08 1988-04-08 Trouble diagnosing circuit for interface ic Pending JPH01258158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63085040A JPH01258158A (en) 1988-04-08 1988-04-08 Trouble diagnosing circuit for interface ic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63085040A JPH01258158A (en) 1988-04-08 1988-04-08 Trouble diagnosing circuit for interface ic

Publications (1)

Publication Number Publication Date
JPH01258158A true JPH01258158A (en) 1989-10-16

Family

ID=13847574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63085040A Pending JPH01258158A (en) 1988-04-08 1988-04-08 Trouble diagnosing circuit for interface ic

Country Status (1)

Country Link
JP (1) JPH01258158A (en)

Similar Documents

Publication Publication Date Title
JP2996440B2 (en) Diagnosis method of data processing system
US5467461A (en) Multiprocessor computer system having bus control circuitry for transferring data between microcomputers
JPS59106056A (en) Failsafe type data processing system
JPH01258158A (en) Trouble diagnosing circuit for interface ic
JPH0122653B2 (en)
JPS58211232A (en) Microcomputer output circuit
JPH087442Y2 (en) Input / output device of programmable controller
JPS6184767A (en) Inter-system connecting method
JPS593775B2 (en) Bus request processing unit
JP3150571B2 (en) Dual system switching method
JPH01116801A (en) Dual system switching method
JP2904266B2 (en) Memory connection controller that can cope with bus degradation
JP3012402B2 (en) Information processing system
JP2735246B2 (en) Test and set method
JPH07253856A (en) Diskless duplicate controller
JPH01124040A (en) Ram diagnosis system
KR950006547Y1 (en) Process double time common memory access circuit
JPS6113266B2 (en)
JPH09330305A (en) System-combined type device
JPS5827221A (en) Data processing device
JPH02300956A (en) Bus conversion circuit
JPS62137654A (en) Controlling system for duplicated bus
JPS6226054B2 (en)
KR20030069311A (en) Detection method state information in software swtch over duplexing system
JP2000215075A (en) Doubled memory check circuit