JPS633543A - Serial transfer equipment - Google Patents

Serial transfer equipment

Info

Publication number
JPS633543A
JPS633543A JP61144881A JP14488186A JPS633543A JP S633543 A JPS633543 A JP S633543A JP 61144881 A JP61144881 A JP 61144881A JP 14488186 A JP14488186 A JP 14488186A JP S633543 A JPS633543 A JP S633543A
Authority
JP
Japan
Prior art keywords
data
shift register
serial
serial transfer
cpu
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
JP61144881A
Other languages
Japanese (ja)
Inventor
Hideji Murai
村井 秀次
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
Hitachi Industry and Control Solutions Co Ltd
Original Assignee
Hitachi Engineering Co Ltd Ibaraki
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 Engineering Co Ltd Ibaraki, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd Ibaraki
Priority to JP61144881A priority Critical patent/JPS633543A/en
Publication of JPS633543A publication Critical patent/JPS633543A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE:To attain the diagnosis of a serial transfer equipment by receiving sent data while being fed back and comparing the received data with data before transmission. CONSTITUTION:A parallel data written in a shift register 7 from a central processing unit (CPU) 1 and the data sent to a transmission line 18 from an output section 19 of the shift register 7 by using a clock signal from a clock generator 15. The signal of the line 18 is inverted via a feedback path 11 and inputted to an input section 20 of the shift register 7. The CPU 1 reads the parallel data from the shift register 1 aud compares it with test data at the time of the end of serial transmission.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデジタル信号の直列転送装置に係り、特に送信
データを帰環して受信する回路を持ち帰環されたデータ
と送信前のデータを比較する事で直列転送装置を診断す
る回路に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a digital signal serial transfer device, and in particular, a circuit that returns and receives transmitted data and compares the returned data with the data before transmission. This invention relates to a circuit for diagnosing a serial transfer device.

〔従来の技術〕[Conventional technology]

従来の直列転送装置の自己診断機能は、モトローラ・セ
ミコンダクターズ・アドバンス・インフォメーション・
エム・シー・6868111月1983年第3−4頁 
3・3・2章ローカルループバックモード及び第4−1
0頁 4・2・2・1チヤネル・ニー・モード・セレク
ト(MOTROLA SEMICON−DUCTOR3
Advance Information MC686
810CTOBER1983 PP3−43・3・2 
LOCAL−LOOPBACK MODE、 PP4−
104・4・2 C)IANNEL A MODE 5
ELECT)に記載されている。この直列転送装置は中
央処理装置(以下CPUと略す)等から書き込まれた並
列データをシフトレジスタにより直列データに変換し、
相手局に直列転送する機能と、相手局から送られて来る
直列データをシフトレジスタにより並列変換し、CPU
等から読出す機能を持つ装置で、送信と受信を独立した
同期信号で行える様に送信用と受信用のシフトレジスタ
を各々個別に持つ構造となっている。この直列転送装置
が正常に動作する事を診断する為に、CPU等から書き
込まれた試験用データを送信層シフトレジスタが直列デ
ータに変換し、そのデータを受信用シフトレジスタに受
信させる帰環回路を持たせて、CPUが帰環されたデー
タを読出し、試験用データと比較照合する事が可能であ
る。
The self-diagnosis function of conventional serial transfer equipment is based on Motorola Semiconductors Advanced Information.
M.C. 686811 November 1983 pp. 3-4
Chapter 3.3.2 Local loopback mode and Chapter 4-1
Page 0 4/2/2/1 Channel Knee Mode Select (MOTROLA SEMICONDUCTOR3
Advance Information MC686
810CTOBER1983 PP3-43・3・2
LOCAL-LOOPBACK MODE, PP4-
104.4.2 C) IANNEL A MODE 5
ELECT). This serial transfer device converts parallel data written from a central processing unit (hereinafter referred to as CPU) into serial data using a shift register.
It has the function of serially transmitting data to the other station, converting the serial data sent from the other station into parallel data using a shift register, and transmitting it to the CPU.
It has a structure in which it has separate shift registers for transmission and reception so that transmission and reception can be performed using independent synchronization signals. In order to diagnose whether this serial transfer device operates normally, the transmission layer shift register converts test data written from the CPU etc. into serial data, and the return circuit causes the reception shift register to receive the data. It is possible for the CPU to read the returned data and compare it with test data.

しかし、送信データを自己帰環して比較照合する従来の
診断方式は、送信と受信を1つのシフトレジスタで行う
直列転送装置ではシフトレジスタがシフトする機能を失
った異常時には送信、自己帰環、受信等の動作が行われ
ない為に、CPUが書込んだ試験用データと読出したデ
ータが等しくなり、正常動作時の結果と区別出来ず、異
常を検出出来ない問題がある。
However, in a serial transfer device that uses one shift register for transmission and reception, the conventional diagnostic method that self-returns the transmitted data and compares and verifies it is not suitable for transmitting, self-returning, and Since operations such as reception are not performed, the test data written by the CPU and the read data are the same, and cannot be distinguished from the results of normal operation, resulting in a problem that abnormalities cannot be detected.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、送信と受信を1つのシフトレジスタで
兼ねる直列転送装置の機能を診断する装置として、シフ
トレジスタのシフト機能が損われた異常状態の検出につ
いての配慮がされておらず、上記異常発生時と正常時の
区別が出来ない問題点があった。
The above conventional technology, as a device for diagnosing the function of a serial transfer device in which one shift register serves as both transmission and reception, does not take into consideration the detection of an abnormal state in which the shift function of the shift register is impaired. There was a problem in that it was not possible to distinguish between an occurrence and a normal situation.

本発明の目的は、送信と受信を兼ねるシフトレジスタを
用いた直列転送装置の診断回路を提供することにある。
An object of the present invention is to provide a diagnostic circuit for a serial transfer device using a shift register that serves both as a transmitter and a receiver.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、直列転送装置に試験用データを書込み、そ
れを直列データに変換して送信を行い。
The above purpose is to write test data into a serial transfer device, convert it to serial data, and transmit it.

そのデータを受信した後に読出して、書込んだ試験用デ
ータと比較する事を可能にする、送信路と受信路を結合
する自己帰環回路に反転器を設ける事により達成される
This is achieved by providing an inverter in the self-circulating circuit that connects the transmitting path and the receiving path, which allows the data to be read after being received and compared with the written test data.

〔作用〕[Effect]

本発明による直列転送装置の診断回路は書込まれた試験
用データを直列送信し、そのデータを論理半転して受信
した後、読出せる様動作する。それによって、直列転送
装置を構成するシフトレジスタのシフト機能が損われて
いた場合でも、書込んだ試験用データと比較して読出さ
れるデータは、反転器を通して受信していないので論理
反転されていないデータとなり、上記異常時と正常時の
区別が行える様になる。
The diagnostic circuit of the serial transfer device according to the present invention serially transmits the written test data, receives the data by inverting its logic by half, and then operates so as to read the data. As a result, even if the shift function of the shift register that makes up the serial transfer device is impaired, the data that is read compared with the written test data is not logically inverted because it is not received through the inverter. The data becomes clear, and it becomes possible to distinguish between abnormal times and normal times.

〔実施例〕〔Example〕

以下、本発明の一実施例を図を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

図に於いて、演算やデータの人出力を制御するCPUI
があり、CPUIから周辺装置等を制御する為の制御母
線2と複数の周辺装置や記憶資源をCPUIが区別する
為のアドレス母線3とデータを伝達する為のデータ母線
4がある。CPUIがこれらの母線を介して直列転送装
置17に対して送信データの書込みや受信データの読出
しを行える様に直列転送装置17には、アドレス母線3
と接続される特定のビットパターンをアドレス母&!3
が示した時に選択信号を出力するアドレスデコーダ5が
あり、アドレスデコーダ5がらのシフトレジスタ選択信
号8と、制御母線2がらの書込み/請出し信号6を受け
て、並列データの書込みや読出しが可能なシフトレジス
タ7がデータ母線4に接続されている。シフトレジスタ
7の直列出力部19には直列データを相手局16に伝達
する為に送信路18が接続されている。この送信路18
には直列転送装置17の機能診断を可能にする為の帰環
路11が接続され、帰環路11には直列データを論理反
転する反転器12を設けている。
In the figure, the CPU that controls the human output of calculations and data
There is a control bus 2 for controlling peripheral devices and the like from the CPU, an address bus 3 for the CPU to distinguish between a plurality of peripheral devices and storage resources, and a data bus 4 for transmitting data. The serial transfer device 17 has an address bus 3 so that the CPU can write transmission data and read received data to the serial transfer device 17 via these buses.
Address a specific bit pattern connected with mother &! 3
There is an address decoder 5 that outputs a selection signal when indicated by , and it is possible to write and read parallel data by receiving a shift register selection signal 8 from the address decoder 5 and a write/output signal 6 from the control bus 2. A shift register 7 is connected to the data bus 4. A transmission path 18 is connected to the serial output section 19 of the shift register 7 for transmitting serial data to the opposite station 16. This transmission path 18
A return path 11 is connected to enable functional diagnosis of the serial transfer device 17, and the return path 11 is provided with an inverter 12 for logically inverting the serial data.

帰環路11と相手局16から送られて来る直列データを
伝達する受信路13には、データセレクタ10が接続さ
れており、通常の送受信時には受信路13の直列データ
を直列転送装置17の機能診断を行う時は帰環路11の
データを選択してシフトレジスタ7に伝える。又、デー
タセレクタ10には通常の送受信時と診断時との切換え
をCPU1によっである特定アドレスとデータを示す事
で切換えが行える様、データセレクタ選択信号8とデー
タ母線4が接続されている。データセレクタ10からシ
フトレジスタ入力部20に伝えられた直列ブーツとシフ
トレジスタ出力部19からの直列データが同期してシフ
トレジスタ7により入出力する様、クロックジェネレー
タ15が設けられており、その出力信号であるクロック
信号!14がシフトレジスタ7と相手局16に接続され
る回路構成となっている。
A data selector 10 is connected to the return path 11 and the reception path 13 that transmits serial data sent from the opposite station 16, and during normal transmission and reception, the serial data on the reception path 13 is transferred to the function of the serial transfer device 17. When making a diagnosis, data on the return path 11 is selected and transmitted to the shift register 7. Further, a data selector selection signal 8 and a data bus 4 are connected to the data selector 10 so that switching between normal transmission/reception and diagnosis can be performed by indicating a specific address and data by the CPU 1. . A clock generator 15 is provided so that the serial boot transmitted from the data selector 10 to the shift register input section 20 and the serial data from the shift register output section 19 are input/output by the shift register 7 in synchronization, and its output signal is The clock signal that is! 14 has a circuit configuration connected to the shift register 7 and the partner station 16.

第1図に於けるシフトレジスタ7は、C:PUlによっ
て書込まれた並列データを記憶し、シフトレジスタ7の
最下位ビットのデータをシフトレジスタ出力部19が出
力する。又、クロック信号が入力されると最上位ビット
から最下位ビットの方向ヘシフトし、シフトする時にシ
フトレジスタ入力部20のデータを最上位ビットに記憶
する構造となっている。このシフトレジスタ7に、クロ
ック信号14を入力するクロックジェネレータ15は、
シフトレジスタ7に書込まれる並列データのビット数分
クロック信号を出力し、CPUIによって、シフトレジ
スタ7に並列データが書込まれた後に自動的にクロック
信号を発生する。この直列転送装置17をCPU1が診
断する場合、CPIJIはデータセレクタ10に帰環路
11のデータを選択する様に設定を行い、シフトレジス
タ7に試験用データを書込む。そうする事により、クロ
ックジェネレータ15はシフトレジスタ7に対しクロッ
クを出力し、シフトレジスタによるクロック信号に同期
した直列転送が開始される。直列転送データは帰環路1
1を通り、途中反転器12により論理反転した後、デー
タセレクタ10を介してシフトレジスタ入力部に帰環さ
れるので、直列転送が終了した時点でCPUIがシフト
レジスタ7からデータを読出せば、書込んだ時の試験用
データが論理反転したデータを得る。しかし、シフトレ
ジスタ7のCPUIからのデータ書込みや読出しを行う
機能が故障したり、クロックジェネレータ15が発生す
るクロック信号の数が並列データ数と異る等の異常があ
った場合は、転送終了後にシフトレジスタ7から読出さ
れるデータは書込み時の試験用データの論理反転したも
のと異なるので、直列転送装置!!17の異常をCPU
Iによって検出する事が出来る。
The shift register 7 in FIG. 1 stores the parallel data written by C:PUl, and the shift register output section 19 outputs the data of the least significant bit of the shift register 7. Furthermore, when a clock signal is input, the shift register 20 shifts from the most significant bit to the least significant bit, and when shifting, the data in the shift register input section 20 is stored in the most significant bit. The clock generator 15 that inputs the clock signal 14 to the shift register 7 is
Clock signals are output for the number of bits of parallel data written to the shift register 7, and the clock signal is automatically generated by the CPU after the parallel data is written to the shift register 7. When the CPU 1 diagnoses the serial transfer device 17, the CPIJI sets the data selector 10 to select data on the return path 11, and writes test data into the shift register 7. By doing so, the clock generator 15 outputs a clock to the shift register 7, and the shift register starts serial transfer in synchronization with the clock signal. Serial transfer data is return route 1
1, and after being logically inverted by the inverter 12, it is returned to the shift register input section via the data selector 10. Therefore, if the CPU reads the data from the shift register 7 when the serial transfer is completed, Obtain data that is the logical inversion of the test data when written. However, if there is an abnormality such as a failure in the function of the shift register 7 to write or read data from the CPUI or the number of clock signals generated by the clock generator 15 is different from the number of parallel data, after the transfer is completed, Since the data read from the shift register 7 is different from the logically inverted version of the test data at the time of writing, the serial transfer device! ! 17 abnormalities in CPU
It can be detected by I.

そして本実施例によれば、帰環路に反転器12を用いて
いるので、シフトレジスタ7のシフト機能の故障やクロ
ック信号線14の切断によって起こるCPUIが書込ん
だデータを実際に直列転送しなかった異常についても、
シフトレジスタ7に書込んだ試験用データと読出される
データは同一で、論理反転されないので、異常が検出出
来る効果がある。
According to this embodiment, since the inverter 12 is used in the return path, the data written by the CPU, which may occur due to a failure of the shift function of the shift register 7 or disconnection of the clock signal line 14, is actually serially transferred. Regarding abnormalities that were not present,
Since the test data written to the shift register 7 and the data read out are the same and the logic is not inverted, there is an effect that an abnormality can be detected.

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

本発明によれば、送受信を兼ねるシフトレジスタによっ
て構成される直列転送装置の、シフト機能の故障時と正
常時の区別が可能となり、上記異常の検出が可能となる
効果がある6
According to the present invention, it is possible to distinguish between a malfunction and a normal shift function of a serial transfer device constituted by a shift register that also serves as transmitter and receiver, and the above-mentioned abnormality can be detected6.

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

図は本発明の一実施例を示すブロック図である。 1・・・CPtJ、2・・・制御母線、3・・・アドレ
ス母線、4・・・データ母線、5・・・アドレスデコー
ダ、6・・・書込み/読出し信号、7・・・シフトレジ
スタ、8・・・シフトレジスタ選択信号、9・・・デー
タセレクタ選択信号、1o・・・データセレクタ、11
・・・帰環路、12・・・反転器、13・・・受信路、
14・・・クロック信号線、15・・・クロックジェネ
レータ、16・・・相手局、17・・・直列転送装置、
18・・・送信路、19・・・直列出力部、20・・・
直列入力部。
The figure is a block diagram showing one embodiment of the present invention. 1... CPtJ, 2... Control bus, 3... Address bus, 4... Data bus, 5... Address decoder, 6... Write/read signal, 7... Shift register, 8... Shift register selection signal, 9... Data selector selection signal, 1o... Data selector, 11
... return path, 12 ... inverter, 13 ... reception path,
14... Clock signal line, 15... Clock generator, 16... Partner station, 17... Serial transfer device,
18... Transmission path, 19... Series output section, 20...
Series input section.

Claims (1)

【特許請求の範囲】[Claims] 1、複数ビットの並列データを直列データに変換して出
力し、直列データを入力し並列データに変換するシフト
レジスタと、前記シフトレジスタの直列データ出力を伝
送する送信路と、受信データが送られて来る受信路と、
前記送信路の信号を前記シフトレジスタに入力して並列
データに変換させる為の帰環路と、前記帰環路の信号と
前記受信路の信号いずれかを前記シフトレジスタに入力
するか選択を行うデータセレクタと、前記シフトレジス
タの直列−並列変換動作を制御するクロックジェネレー
タによつて構成される装置において、前記帰環路に反転
器を設けた事を特徴とする直列転送装置。
1. A shift register that converts multiple bits of parallel data into serial data and outputs it, inputs the serial data and converts it into parallel data, a transmission line that transmits the serial data output of the shift register, and a transmission line that transmits the received data. and the receiving path that comes from
A return path for inputting the signal of the transmission path into the shift register and converting it into parallel data, and selecting whether to input either the signal of the return path or the signal of the reception path to the shift register. 1. A serial transfer device comprising a data selector and a clock generator for controlling a serial-to-parallel conversion operation of the shift register, characterized in that an inverter is provided in the return path.
JP61144881A 1986-06-23 1986-06-23 Serial transfer equipment Pending JPS633543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61144881A JPS633543A (en) 1986-06-23 1986-06-23 Serial transfer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61144881A JPS633543A (en) 1986-06-23 1986-06-23 Serial transfer equipment

Publications (1)

Publication Number Publication Date
JPS633543A true JPS633543A (en) 1988-01-08

Family

ID=15372541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61144881A Pending JPS633543A (en) 1986-06-23 1986-06-23 Serial transfer equipment

Country Status (1)

Country Link
JP (1) JPS633543A (en)

Similar Documents

Publication Publication Date Title
US6233635B1 (en) Diagnostic/control system using a multi-level I2C bus
EP0111053B1 (en) On-chip monitor
US4167041A (en) Status reporting
JPS60124744A (en) Error testing and diagnosing apparatus
JPS5836365B2 (en) interface couch
US4701917A (en) Diagnostic circuit
JPH1164450A (en) Semiconductor-testing device
JPS63290033A (en) Data transmission reception circuit
GB2120818A (en) Data processing systems
JPS6032374B2 (en) data transmission equipment
JP3390655B2 (en) Remote I/O Devices
SU771656A1 (en) Information input-output device
JPS61286770A (en) Apparatus for diagnosing trouble
JPS60147553A (en) Control apparatus having self-diagnosing function
SU1390614A1 (en) Dataway transceiver
JPS60221842A (en) Fault diagnosing circuit of logical device
JPH05136767A (en) Redundant control device
JPS6095675A (en) Data transmitting system
JPH04259866A (en) Diagnosing apparatus
JPH04302333A (en) Data processor
JPS59171237A (en) Data transfer system
JPS58121459A (en) Service processor of electronic computer
JPS6145266B2 (en)
JPH05165681A (en) State history device
JPS63280342A (en) Shift path trouble diagnosing system