JPH05300199A - Serial data transfer equipment - Google Patents

Serial data transfer equipment

Info

Publication number
JPH05300199A
JPH05300199A JP4012701A JP1270192A JPH05300199A JP H05300199 A JPH05300199 A JP H05300199A JP 4012701 A JP4012701 A JP 4012701A JP 1270192 A JP1270192 A JP 1270192A JP H05300199 A JPH05300199 A JP H05300199A
Authority
JP
Japan
Prior art keywords
data
transmission
circuit
test
reception
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.)
Granted
Application number
JP4012701A
Other languages
Japanese (ja)
Other versions
JP2979814B2 (en
Inventor
Hisashi Fujiwara
久 藤原
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP4012701A priority Critical patent/JP2979814B2/en
Publication of JPH05300199A publication Critical patent/JPH05300199A/en
Application granted granted Critical
Publication of JP2979814B2 publication Critical patent/JP2979814B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To test the function of a reception error detecting circuit by the loop back test of the serial data. CONSTITUTION:When the logical values of a test mode specifying signal input terminal TEST and a modification mode specifying signal input terminal MOD are both '1', the modification loop back mode is obtained. At this time, when the bit M1 of a modification specifying register 100 is '1', the output of a parity bit generating circuit 12 is reversed and inputted to a received data input line 27. When a bit M0 is '1', the output of a stop bit generating circuit 13 is reversed and inputted to the received data input line 27. Thus, the function of an error detecting circuit 23 is checked by the loop back test mode.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はシリアルデータ転送装置
に関し、特に自己システムのテスト機能を有するシリア
ルデータ転送装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data transfer device, and more particularly to a serial data transfer device having a self system test function.

【0002】[0002]

【従来の技術】一般に、送信装置と受信装置を備えたシ
リアルデータ転送装置は、自分自身の機能をテストする
ために、送信装置からの送信データを外部回線を介さず
に受信装置に入力することができるテストモード(以
下、折返しテストモードと称す)を有する場合が多い。
これによって、装置が回線に接続された状態であって
も、外部からの影響を受けずに自己システムのテストを
行なうことができる。
2. Description of the Related Art Generally, a serial data transfer apparatus having a transmitter and a receiver inputs the data transmitted from the transmitter to the receiver in order to test its own function. In many cases, it has a test mode (hereinafter referred to as a loopback test mode) capable of performing the above.
As a result, even if the device is connected to the line, the self-system can be tested without being affected by the outside.

【0003】図4はかかる従来の一例を示すシリアルデ
ータ転送装置の回路図であり、図5は図4におけるデー
タ転送フォーマットを説明するための各種ビットのタイ
ミング図である。図4に示すように、この従来のシリア
ルデータ転送装置は一般に調歩同期式と呼ばれる装置の
例である。調歩同期モードはキャラクタの最初にスター
トビットを付加し、最後にストップビットを付加してシ
リアルデータの送受信を行なう方式であり、そのフォー
マットの一例として、データ長8ビット,パリティビッ
ト付加モードについて図5に示している。この8ビット
のデータはLSB(D0)からMSB(D7)に向って
順番に送信される。
FIG. 4 is a circuit diagram of a serial data transfer device showing such a conventional example, and FIG. 5 is a timing diagram of various bits for explaining the data transfer format in FIG. As shown in FIG. 4, this conventional serial data transfer device is an example of a device generally called start-stop synchronization type. In the asynchronous mode, a start bit is added to the beginning of a character and a stop bit is added to the end to transmit / receive serial data. As an example of the format, a data length of 8 bits and a parity bit addition mode are shown in FIG. Is shown in. This 8-bit data is transmitted in order from LSB (D0) to MSB (D7).

【0004】まず、図4において、シリアルデータ転送
装置の送信側はデータバス1に接続されスタートビット
を送出す。送信シフトレジスタ10と、このレジスタ1
0等を制御する送信制御回路11と、パリティビットを
作成するパリティ生成回路12と、ストップビットを発
生するストップビット発生回路13と、送信データ選択
用のトランスファゲート14〜16と、送信データ出力
端子TXDとを有する。また、受信側は受信制御回路2
1と、受信バッファ22と、エラー検出回路23と、受
信データ入力端子RXDとを有し、その他にテストモー
ド指定信号入力端子TESTと、テストモード用トラン
スファゲート30、32と、テストモード用インバータ
回路31とを備えている。データバス1から送信シフト
レジスタ10に書き込まれた送信データは、論理値0
(以下、“0”と記す)のスタートビットが付加され、
送信制御回路11から送信シフトレジスタ10に供給さ
れる送信シフトクロック17に同期して、送信データ出
力端子TXDに向って、図5に示したフォーマットに基
ずきシフトアウトする。この時、パリティ生成回路12
は送信シフトレジスタ10からシフトアウトするデータ
を受けてパリティビットの論理を生成する。偶数パリテ
ィモードでは、データビットとパリティビットの両方に
含まれる論理値1(以下、“1”と記す)の数が偶数に
なるように、また奇数パリティモードでは、データビッ
トとパリティビットの両方に含まれる“1”の数が奇数
になるように、パリティビットの論理値をそれぞれ決め
る。一方、ストップビット発生回路13はストップビッ
ト送出時及び回線未使用時のデータ“1”(マーク状
態)を発生させるためのものである。
First, in FIG. 4, the transmission side of the serial data transfer device is connected to the data bus 1 and sends out a start bit. Transmission shift register 10 and this register 1
0, etc., a transmission control circuit 11, a parity generation circuit 12 that creates a parity bit, a stop bit generation circuit 13 that generates a stop bit, transfer data selection transfer gates 14 to 16, and a transmission data output terminal. With TXD. In addition, the reception side is the reception control circuit 2
1, a reception buffer 22, an error detection circuit 23, a reception data input terminal RXD, a test mode designation signal input terminal TEST, test mode transfer gates 30 and 32, and a test mode inverter circuit. 31 and 31 are provided. The transmission data written from the data bus 1 to the transmission shift register 10 has a logical value of 0.
A start bit (hereinafter referred to as “0”) is added,
In synchronism with the transmission shift clock 17 supplied from the transmission control circuit 11 to the transmission shift register 10, shift-out is performed toward the transmission data output terminal TXD based on the format shown in FIG. At this time, the parity generation circuit 12
Receives the data to be shifted out from the transmission shift register 10 and generates the logic of the parity bit. In even parity mode, the number of logical value 1 (hereinafter referred to as “1”) included in both data bits and parity bits is even, and in odd parity mode, both data bits and parity bits are included. The logical values of the parity bits are determined so that the number of included “1” s is odd. On the other hand, the stop bit generation circuit 13 is for generating data "1" (mark state) when the stop bit is transmitted and the line is not used.

【0005】次に、送信制御回路11は送信シフトクロ
ック17の他に、送出されるデータの種類に応じて送信
データ選択信号18A,18B,18Cを出力する。こ
こで、スタートビット及びデータビット送出中は選択信
号18Aが“1”、18Bと18Cが“0”となる。こ
れにより、トランスファゲート14が導通状態、トラン
スファゲート15と16が非導通状態になる。また、パ
リティビット送出中は選択信号18Bが“1”、選択信
号18Aと18Cが“0”となり、トランスファゲート
15が導通状態、トランスファゲート14と16が非導
通状態になる。更に、ストップビット送出中及び回線未
使用状態では、選択信号18Cが“1”、その他の選択
信号18Aと18Bが“0”となり、トランスファゲー
ト16が導通状態で且つトランスファゲート14と15
が非導通状態となる。このようにして、送信時は送信デ
ータ出力線19を介して図5のフォーマットに基ずく送
信データが送信データ出力端子TXDから出力される。
Next, the transmission control circuit 11 outputs transmission data selection signals 18A, 18B and 18C in addition to the transmission shift clock 17 according to the type of data to be transmitted. Here, during transmission of the start bit and the data bit, the selection signal 18A is "1" and 18B and 18C are "0". As a result, the transfer gate 14 becomes conductive and the transfer gates 15 and 16 become non-conductive. Further, during transmission of the parity bit, the selection signal 18B becomes "1", the selection signals 18A and 18C become "0", the transfer gate 15 becomes conductive, and the transfer gates 14 and 16 become non-conductive. Further, when the stop bit is being sent and the line is not used, the selection signal 18C is "1", the other selection signals 18A and 18B are "0", the transfer gate 16 is in the conductive state and the transfer gates 14 and 15 are in the conductive state.
Becomes non-conductive. Thus, at the time of transmission, the transmission data based on the format of FIG. 5 is output from the transmission data output terminal TXD via the transmission data output line 19.

【0006】また、受信制御回路21は受信データ入力
線27よりスタートビットが入力されたことを認識する
と、受信シフトクロック24を送出する。これを受け
て、受信シフトレジスタ20は受信データ入力線27上
のデータビットを順次取り込む。しかる後、受信が完了
すると、受信シフトレジスタ20のデータは受信バッフ
ァ22に転送され、CPUの要求に応じてデータバス1
に読み出される。また、受信中はエラー検出回路23が
クロック25により受信データを監視し、パリティが一
致しない場合(パリティエラー)或いはストップビット
が検出されない場合(フレーミングエラー)に割込信号
26を発生し、CPUに受信エラーが発生したことを通
知する。
When the reception control circuit 21 recognizes that the start bit is input from the reception data input line 27, it outputs the reception shift clock 24. In response to this, the reception shift register 20 sequentially takes in the data bits on the reception data input line 27. Then, when the reception is completed, the data in the reception shift register 20 is transferred to the reception buffer 22, and the data bus 1 is sent in response to the request from the CPU.
Read out. Further, during reception, the error detection circuit 23 monitors the received data by the clock 25, and when the parity does not match (parity error) or the stop bit is not detected (framing error), the interrupt signal 26 is generated and the CPU is notified. Notify that a reception error has occurred.

【0007】次に、テストモード指定信号入力端子TE
STが“0”の時は通常動作モードであり、トランスフ
ァゲート30は非導通状態、またインバータ回路31の
出力は“1”であるので、トランスファゲート32は導
通状態となっており、外部回路から受信データ入力端子
RXDに入力したデータを受信データ入力線27に供給
する。かかるテストモード指定信号入力端子TESTが
“1”の時は折返しテストモードとなり、トランスファ
ゲート30は導通状態、インバータ回路31の出力は
“0”であるので、トランスファゲート32は非導通状
態となり、外部回線から受信データ入力端子RXDに入
力するデータに影響を受けず、送信データ出力線19の
データが受信データ入力線27に供給される。
Next, the test mode designation signal input terminal TE
When ST is "0", it is in the normal operation mode, the transfer gate 30 is non-conductive, and the output of the inverter circuit 31 is "1". Therefore, the transfer gate 32 is conductive and the external circuit The data input to the reception data input terminal RXD is supplied to the reception data input line 27. When the test mode designation signal input terminal TEST is "1", the loopback test mode is set, the transfer gate 30 is in the conductive state, and the output of the inverter circuit 31 is "0", so the transfer gate 32 is in the non-conductive state and the external The data of the transmission data output line 19 is supplied to the reception data input line 27 without being affected by the data input to the reception data input terminal RXD from the line.

【0008】[0008]

【発明が解決しようとする課題】上述した従来のシリア
ルデータ転送装置は、折返しテストモードを用いること
で、正常に送信されたデータを自己の受信装置で正常に
受信できるか否かのテストをすることは可能である。し
かしながら、万一異常データを受信した場合には、受信
装置がエラーを検出し割込信号を出力すること、即ちエ
ラー検出回路が正常に機能するか否かのテストを折返し
テストモードで行なうことはできない。このため、外部
から不正規データを与えてエラー検出回路のテストを行
なう必要があり、テストの信頼性を向上させるために
は、装置の複雑さとコスト高を招いてしまうという欠点
がある。
The above-mentioned conventional serial data transfer device uses the loopback test mode to test whether or not the normally transmitted data can be normally received by the own receiving device. It is possible. However, if abnormal data is received, it is not possible for the receiving device to detect an error and output an interrupt signal, that is, to perform a test in the loopback test mode as to whether the error detection circuit functions normally. Can not. For this reason, it is necessary to externally give irregular data to test the error detection circuit, and in order to improve the reliability of the test, there is a drawback that the apparatus becomes complicated and the cost becomes high.

【0009】本発明の目的は、かかる外部からデータあ
るいは外付け装置を不要にし、低コストでテストの信頼
性を向上させることのできるシリアルデータ転送装置を
提供することにある。
An object of the present invention is to provide a serial data transfer device which can improve the reliability of the test at low cost by eliminating the need for external data or external device.

【0010】[0010]

【課題を解決するための手段】本発明のシリアルデータ
転送装置は、シリアル送信レジスタを備える送信回路
と、シリアル受信レジスタを備える受信回路と、前記シ
リアル送信レジスタからビットシリアルに送信されるデ
ータを送信データ出力端子から出力する手段と、前記ビ
ットシリアルの送信データを前記シリアル受信レジスタ
に外部回線を経由せずに入力せしめるデータ折返し手段
と、データ修飾指定信号により外部回線を経由せずに前
記シリアル受信レジスタに入力する前記折返しデータの
一部を修飾する手段とを有して構成される。
A serial data transfer apparatus of the present invention transmits a transmission circuit having a serial transmission register, a reception circuit having a serial reception register, and data transmitted bit-serially from the serial transmission register. A means for outputting from the data output terminal, a data loopback means for inputting the bit-serial transmission data to the serial reception register without passing through an external line, and a serial reception by a data modification designation signal without going through an external line. And a means for modifying a part of the return data input to the register.

【0011】[0011]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0012】図1は本発明の第一の実施例を示すシリア
ルデータ転送装置の回路図である。図1に示すように、
本実施例は前述した図4の従来例と同様の機能を有する
部分には、同一番号を付してある。本実施例も送信側は
データバス1に接続される送信シフトレジスタ10と、
送信シフトクロック17および送信データ選択信号18
A〜18Cを送出する送信制御回路11と、パリティ生
成回路12およびストップビット発生回路13と、送信
データ選択用トランスファゲート14〜16と、送信デ
ータ出力端子TXDとを有する。また、受信側は受信シ
フトレジスタ20と、受信データ入力端子RXDと、受
信制御回路21および受信バッファ22と、エラー検出
回路23とを有する。更に、これら送信側および受信側
回路に加え、テストモード指定信号入力端子TEST
と、テストモード用トランスファゲート30,32と、
テストモード用インバータ回路31と、データバス1に
接続される修飾指定レジスタ100と、パリティビット
やストップビットの論理をとる排他的論理和ゲート10
1,102と、データ修飾時の選択用トランスファゲー
ト107〜109と、データ修飾時の選択信号生成のた
めのインバータ回路103,ORゲート回路104およ
びANDゲート回路105,106と、修飾モード指定
信号入力端子MODとを備えている。これらテストモー
ド指定信号入力端子TESTおよび修飾モード指定信号
入力端子MODは折返しテストモードを指定するための
端子である。
FIG. 1 is a circuit diagram of a serial data transfer device showing a first embodiment of the present invention. As shown in Figure 1,
In this embodiment, parts having the same functions as those of the conventional example shown in FIG. 4 are given the same numbers. Also in this embodiment, the transmission side includes a transmission shift register 10 connected to the data bus 1,
Transmission shift clock 17 and transmission data selection signal 18
It has a transmission control circuit 11 for transmitting A to 18C, a parity generation circuit 12 and a stop bit generation circuit 13, transmission data selection transfer gates 14 to 16, and a transmission data output terminal TXD. The receiving side has a reception shift register 20, a reception data input terminal RXD, a reception control circuit 21, a reception buffer 22, and an error detection circuit 23. Furthermore, in addition to these transmitting side and receiving side circuits, a test mode designation signal input terminal TEST
And the transfer gates 30 and 32 for the test mode,
The test mode inverter circuit 31, the modification designation register 100 connected to the data bus 1, and the exclusive OR gate 10 for taking the logic of the parity bit and the stop bit.
1, 102, transfer gates 107 to 109 for data modification, an inverter circuit 103, an OR gate circuit 104, AND gate circuits 105 and 106 for generating a selection signal when modifying data, and a modification mode designation signal input. And a terminal MOD. These test mode designating signal input terminal TEST and modified mode designating signal input terminal MOD are terminals for designating the folding test mode.

【0013】まず、TEST=“0”の場合は、MOD
の入力の論理値にかかわらず通常動作モードとなり、前
述した図4におけるTEST=“0”の場合と等価とな
る。また、TEST=“1”の場合は折返しモードであ
るが、この時の修飾モード指定信号入力端子MODの入
力論理値によって2種類の折返しモードが設定される。
First, when TEST = "0", MOD
The normal operation mode is set irrespective of the logical value of the input of, and this is equivalent to the case of TEST = "0" in FIG. Further, when TEST = “1”, the return mode is set, but two kinds of return modes are set by the input logical value of the modification mode designation signal input terminal MOD at this time.

【0014】次に、これら2種類の折返しモード時の動
作について説明する。初めに、TEST=“1”でMO
D=“0”の時は、インバータ回路103の出力が
“1”、ORゲート回路104の出力が“1”となり、
トランスファゲート107は導通状態になる。また、A
NDゲート回路105,106の出力は“0”となるた
め、トランスファゲート108,109は非導通状態に
なる。更に、トランスファゲート30は導通状態、イン
バータ回路31の出力は“0”であるから、トランスフ
ァゲート32は非導通状態となる。以上より、TEST
=“1”でMOD=“0”の時は、送信データ出力線1
9と受信データ入力線27が接続される。これは前述し
た図4でTEST=“1”の場合、即ち、従来例の折返
しモードに相当する。
Next, operations in these two kinds of folding modes will be described. First, MO with TEST = "1"
When D = “0”, the output of the inverter circuit 103 becomes “1” and the output of the OR gate circuit 104 becomes “1”,
The transfer gate 107 becomes conductive. Also, A
Since the outputs of the ND gate circuits 105 and 106 are "0", the transfer gates 108 and 109 are non-conductive. Further, since the transfer gate 30 is conductive and the output of the inverter circuit 31 is "0", the transfer gate 32 is non-conductive. From the above, TEST
= 1 and MOD = 0, transmission data output line 1
9 and the reception data input line 27 are connected. This corresponds to the case of TEST = "1" in FIG. 4 described above, that is, the folding mode of the conventional example.

【0015】次に、TEST=“1”でMOD=“1”
の時は、インバータ回路103の出力が“0”であるの
で、ORゲート回路104の出力が送信制御回路11か
ら出力する送信データ選択信号18Aの論理値に依存す
る。また、MOD=“1”であるから、ANDゲート回
路105,106の出力はそれぞれ送信データ選択信号
18B,18Cの論理値に依存する。ここで、データバ
ス1から修飾指定レジスタ100にあらかじめM1=
“1”,M0=“0”のデータが書き込まれている場合
の折返しテストモードにおけるデータの流れを図1と図
2の参照して説明する。
Next, TEST = "1" and MOD = "1".
At this time, since the output of the inverter circuit 103 is “0”, the output of the OR gate circuit 104 depends on the logical value of the transmission data selection signal 18A output from the transmission control circuit 11. Since MOD = "1", the outputs of the AND gate circuits 105 and 106 depend on the logical values of the transmission data selection signals 18B and 18C, respectively. Here, from the data bus 1 to the modification designation register 100, M1 =
A data flow in the loopback test mode when data of "1" and M0 = "0" is written will be described with reference to FIGS.

【0016】図2は図1における各部信号のタイミング
図である。図2に示すように、ここではM1=“1”、
M0=“0”のときの折返しテストモード時の動作を表
わしている。まず、データバス1から送信シフトレジス
タ10に書き込めれたデータはスタートビットを付加
し、送信制御回路11からの送信シフトクロック17に
同期して、送信データ出力TXDに向けてシフトアウト
される。この時、パリティ生成回路12は送信シフトレ
ジスタ10からシフトアウトされたデータを受けてパリ
ティビットの論理を生成する。しかるに、スタートビッ
ト及びビデータビット送出中は送信データ選択信号18
Aが“1”となり、その他の選択信号18Bと18Cは
“0”となるので、トランスファゲート14のみが導通
状態になる。また、ORゲート回路104の出力は
“1”になるので、トランスファゲート107は導通状
態となる。しかし、ANDゲート回路105,106の
出力はどちらも“0”であるので、トランスファゲート
108,109は非導通状態となる。従って、送信シフ
トレジスタ10→トランスファゲート14→送信データ
出力線19→トランスファゲート107→トランスファ
ゲート30→受信データ入力線27→受信シフトレジス
タ20の経路により、送信データと同一のものが受信デ
ータとなる。
FIG. 2 is a timing chart of signals at various parts in FIG. As shown in FIG. 2, here, M1 = “1”,
It shows the operation in the loopback test mode when M0 = “0”. First, the data written in the transmission shift register 10 from the data bus 1 is added with a start bit and is shifted out toward the transmission data output TXD in synchronization with the transmission shift clock 17 from the transmission control circuit 11. At this time, the parity generation circuit 12 receives the data shifted out from the transmission shift register 10 and generates the logic of the parity bit. However, the transmission data selection signal 18 is sent during the transmission of the start bit and the bit bit.
Since A becomes "1" and the other selection signals 18B and 18C become "0", only the transfer gate 14 becomes conductive. Further, since the output of the OR gate circuit 104 becomes "1", the transfer gate 107 becomes conductive. However, since the outputs of the AND gate circuits 105 and 106 are both "0", the transfer gates 108 and 109 are non-conductive. Therefore, the same data as the transmission data becomes the reception data by the route of the transmission shift register 10, the transfer gate 14, the transmission data output line 19, the transfer gate 107, the transfer gate 30, the reception data input line 27, and the reception shift register 20. ..

【0017】また、パリティビット送出中は送信データ
選択信号18Bが“1”となり、その他の選択信号18
Aと18Cは“0”となるので、トランスファゲート1
5が導通状態、トランスファゲート14と16が非導通
状態となる。これにより、ORゲート回路104の出力
は“0”となり、トランスファゲート107は非導通状
態になる。一方、ANDゲート回路105の出力は
“1”となり、トランスファゲート108は導通状態と
なる。更に、ANDゲート回路106の出力は“0”と
なり、トランスファゲート109は非導通状態となる。
従って、パリティ生成回路12→トランスファゲート1
5→送信データ出力線19の経路は、トランスファゲー
ト107が非導通状態のために、受信側には接続され
ず、送信データ出力端子TXDのみに接続される。その
代りに、排他的論理和ゲート回路101の出力→トラン
スファゲート108→トランスファゲート30→受信デ
ータ入力線27→受信シフトレジスタ20の経路がで
き、送信経路と異なる経路を介したデータが受信データ
となる。しかるに、M1=“1”であるから、排他的論
理和ゲート回路101の出力は、本来のパリティビット
値であるパリティ生成回路12の出力をビット反転した
ものとなる。つまり、折返して受信されたパリティビッ
トについては、不正規のデータとなるように、データが
修飾されている。
During transmission of the parity bit, the transmission data selection signal 18B becomes "1" and the other selection signals 18
Since A and 18C are "0", transfer gate 1
5 is conductive and transfer gates 14 and 16 are non-conductive. As a result, the output of the OR gate circuit 104 becomes "0" and the transfer gate 107 becomes non-conductive. On the other hand, the output of the AND gate circuit 105 becomes "1", and the transfer gate 108 becomes conductive. Further, the output of the AND gate circuit 106 becomes "0", and the transfer gate 109 becomes non-conductive.
Therefore, the parity generation circuit 12 → the transfer gate 1
The route of 5 → transmission data output line 19 is not connected to the reception side because the transfer gate 107 is in the non-conduction state, and is connected only to the transmission data output terminal TXD. Instead, a path of the output of the exclusive OR gate circuit 101-> transfer gate 108-> transfer gate 30-> reception data input line 27-> reception shift register 20 is formed, and the data via a path different from the transmission path is received data. Become. However, since M1 = “1”, the output of the exclusive OR gate circuit 101 is a bit-inverted version of the output of the parity generation circuit 12, which is the original parity bit value. In other words, the parity bit received by returning is modified so that the parity bit becomes irregular data.

【0018】更に、ストップビット送出中及び回線未使
用状態では、送信データ選択信号18Cが“1”とな
り、その他の選択信号18Aと18Bは“0”となるの
で、トランスファゲート16が導通状態,トランスファ
ゲート14と15が非導通状態になる。これにより、O
Rゲート回路104の出力は“0”になるので、トラン
スファゲート107は非導通状態となる。また、AND
ゲート回路105の出力も“0”であるので、トランス
ファゲート108も非導通状態となる。しかし、AND
ゲート回路106の出力は“1”であるので、トランス
ファゲート109は導通状態となる。従って、ストップ
ビット発生回路13→トランスファゲート16→送信デ
ータ出力線9の経路は、トランスファゲート107が非
導通状態のため、受信側には接続されず、送信データ出
力端子TXDのみに接続される。その代りに、排他的論
理和ゲート回路102の出力→トランスファゲート10
9→トラスファゲート30→受信データ入力線27→受
信シフトレジスタ20の経路ができるので、送信経路と
異なる経路を介したデータが受信データとなる。しかる
に、M0=“0”であるから、排他的論理和ゲート回路
101の出力は、本来のストップ値であるストップビッ
ト発生回路13の出力と同一論理値となる。すなわち、
折返して受信されたストップビットについては、正規の
データとなる。
Further, when the stop bit is being sent and the line is not used, the transmission data selection signal 18C becomes "1" and the other selection signals 18A and 18B become "0", so that the transfer gate 16 is in the conductive state and the transfer gate is in the transfer state. Gates 14 and 15 are rendered non-conductive. This makes O
Since the output of the R gate circuit 104 becomes "0", the transfer gate 107 becomes non-conductive. Also, AND
Since the output of the gate circuit 105 is also "0", the transfer gate 108 also becomes non-conductive. But AND
Since the output of the gate circuit 106 is "1", the transfer gate 109 becomes conductive. Therefore, the path from the stop bit generation circuit 13 to the transfer gate 16 to the transmission data output line 9 is not connected to the receiving side because the transfer gate 107 is in the non-conducting state, but is connected only to the transmission data output terminal TXD. Instead, the output of the exclusive OR gate circuit 102 → the transfer gate 10
Since the route of 9 → transfer gate 30 → reception data input line 27 → reception shift register 20 is formed, data via a route different from the transmission route becomes the reception data. However, since M0 = “0”, the output of the exclusive OR gate circuit 101 has the same logical value as the output of the stop bit generating circuit 13 which is the original stop value. That is,
The stop bit received by returning will be regular data.

【0019】要するに、修飾指定レジスタ100はその
ビットM1及びM0の論理値によって、受信側に折返さ
れるデータのパリティビット及びストップビットの値を
自由に修飾できるテストモード(修飾折返しモード)を
実現できる。かかる図2の例では、パリティビットが不
正規データに修飾されて受信側に折返されたため、エラ
ー検出回路23はパリティエラーを確認し、割込み信号
26を出力する。
In short, the modification designation register 100 can realize a test mode (modification folding mode) in which the values of the parity bit and the stop bit of the data returned to the receiving side can be freely modified by the logical values of the bits M1 and M0. .. In the example of FIG. 2, since the parity bit is modified by the irregular data and returned to the receiving side, the error detection circuit 23 confirms the parity error and outputs the interrupt signal 26.

【0020】[0020]

【表1】 [Table 1]

【0021】以上の説明をまとめると、表1に示すよう
になる。
The above description is summarized in Table 1.

【0022】図3は本発明の第二の実施例を説明するた
めのシリアルデータ転送装置における修飾モード指定回
路図である。図3に示すように、本実施例は基本的な構
成が前述した図1の第1の実施例と同様であり、異なる
点は図1における修飾指定レジスタ100のビットM1
及びM0の修飾モード指定回路を修飾モード指定端子M
D1及びMD0で構成したことにある。本実施例も動作
は前述した第1の実施例と同様であるが、本実施例はパ
リティビットとストップビットの修飾折返しモードをそ
れぞれ外部端子MD1とMD0に入力する論理値で動的
に切換えることができる構成になっている。
FIG. 3 is a modification mode designation circuit diagram in the serial data transfer apparatus for explaining the second embodiment of the present invention. As shown in FIG. 3, the present embodiment has the same basic configuration as that of the first embodiment of FIG. 1 described above, except that the bit M1 of the modification designation register 100 in FIG. 1 is different.
And the modification mode specification circuit of M0 is modified mode specification terminal M
It consists of D1 and MD0. The operation of this embodiment is similar to that of the first embodiment described above, but in this embodiment, the modified folding mode of the parity bit and the stop bit is dynamically switched by the logical values input to the external terminals MD1 and MD0, respectively. It is designed to be able to.

【0023】[0023]

【発明の効果】以上説明したように、本発明のシリアル
データ転送装置は、折返しテストモードを用いること
で、正常に送信されたデータが自己の受信装置で正常に
受信できるか否かのテストだけでなく、万一異常データ
を受信した場合にも、受信装置がエラーを検出し割込信
号を出力すること、即ちエラー検出回路が正常に機能す
るか否かのテストを折返しテストモードで行うことがで
きるので、外部から不正規データを与えてエラー検出回
路のテストを行なう必要がなく、外付け装置を用いるこ
となしに低コストでテストの信頼性を向上させることが
できるという効果がある。
As described above, the serial data transfer apparatus of the present invention uses the loopback test mode to test whether or not normally transmitted data can be normally received by its own receiving apparatus. Not only that, even if abnormal data is received, the receiving device should detect an error and output an interrupt signal, that is, perform a test in the loopback test mode to see if the error detection circuit is functioning normally. Therefore, it is not necessary to externally give irregular data to test the error detection circuit, and the test reliability can be improved at low cost without using an external device.

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

【図1】本発明の第一の実施例を示すシリアルデータ転
送装置の回路図である。
FIG. 1 is a circuit diagram of a serial data transfer device showing a first embodiment of the present invention.

【図2】図1における各部信号のタイミング図である。FIG. 2 is a timing chart of signals of respective parts in FIG.

【図3】本発明の第二の実施例を説明するためのシリア
ルデータ転送装置における修飾モード指定回路図であ
る。
FIG. 3 is a modification mode designation circuit diagram in a serial data transfer device for explaining a second embodiment of the present invention.

【図4】従来の一例を示すシリアルデータ転送装置の回
路図である。
FIG. 4 is a circuit diagram of a serial data transfer device showing a conventional example.

【図5】図4におけるデータ転送フォーマットを説明す
るための各種ビットのタイミング図である。
5 is a timing chart of various bits for explaining the data transfer format in FIG.

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

1 データバス 10 送信シフトレジスタ 11 送信制御回路 12 パリティ生成回路 13 ストップビット発生回路 14〜16,30,32,107〜109 トランス
ファゲート 20 受信シフトレジスタ 21 受信制御回路 22 受信バッファ 23 エラー検出回路 31,103 インバータ回路 100 修飾指定レジスタ 101,102 排他的論理和ゲート 104 ORゲート回路 105,106 ANDゲート回路 TXD 送信データ出力端子 RXD 受信データ入力端子 TEST テストモード指定信号入力端子 MOD 修飾モード指定信号入力端子 MD1,MD2 修飾指定端子
1 Data Bus 10 Transmission Shift Register 11 Transmission Control Circuit 12 Parity Generation Circuit 13 Stop Bit Generation Circuit 14-16, 30, 32, 107-109 Transfer Gate 20 Reception Shift Register 21 Reception Control Circuit 22 Reception Buffer 23 Error Detection Circuit 31, 103 inverter circuit 100 modification designation register 101, 102 exclusive OR gate 104 OR gate circuit 105, 106 AND gate circuit TXD transmission data output terminal RXD reception data input terminal TEST test mode specification signal input terminal MOD modification mode specification signal input terminal MD1 , MD2 decoration designation terminal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シリアル送信レジスタを備える送信回路
と、シリアル受信レジスタを備える受信回路と、前記シ
リアル送信レジスタからビットシリアルに送信されるデ
ータを送信データ出力端子から出力する手段と、前記ビ
ットシリアルの送信データを前記シリアル受信レジスタ
に外部回線を経由せずに入力せしめるデータ折返し手段
と、データ修飾指定信号により外部回線を経由せずに前
記シリアル受信レジスタに入力する前記折返しデータの
一部を修飾する手段とを有することを特徴とするシリア
ルデータ転送装置。
1. A transmission circuit having a serial transmission register, a reception circuit having a serial reception register, a means for outputting data transmitted bit serially from the serial transmission register from a transmission data output terminal, Data loopback means for inputting transmission data to the serial reception register without passing through an external line, and a part of the loopback data input to the serial reception register without passing through an external line by a data modification designation signal. And a serial data transfer device.
【請求項2】 前記データ修飾指定信号は、修飾指定レ
ジスタもしくは修飾指定端子から供給されることを特徴
とする請求項1記載のシリアルデータ転送装置。
2. The serial data transfer device according to claim 1, wherein the data modification designation signal is supplied from a modification designation register or a modification designation terminal.
JP4012701A 1992-01-28 1992-01-28 Serial data transfer device Expired - Fee Related JP2979814B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4012701A JP2979814B2 (en) 1992-01-28 1992-01-28 Serial data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4012701A JP2979814B2 (en) 1992-01-28 1992-01-28 Serial data transfer device

Publications (2)

Publication Number Publication Date
JPH05300199A true JPH05300199A (en) 1993-11-12
JP2979814B2 JP2979814B2 (en) 1999-11-15

Family

ID=11812703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4012701A Expired - Fee Related JP2979814B2 (en) 1992-01-28 1992-01-28 Serial data transfer device

Country Status (1)

Country Link
JP (1) JP2979814B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003015996A1 (en) * 2001-08-09 2003-02-27 Honda Giken Kogyo Kabushiki Kaisha Method for judging communication state in a control system of linked joints
JP2020515843A (en) * 2017-03-30 2020-05-28 ザイリンクス インコーポレイテッドXilinx Incorporated Optical receiver electrical test

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003015996A1 (en) * 2001-08-09 2003-02-27 Honda Giken Kogyo Kabushiki Kaisha Method for judging communication state in a control system of linked joints
CN1320986C (en) * 2001-08-09 2007-06-13 本田技研工业株式会社 Method for judging communication state in control system of linked joints
US7248943B2 (en) 2001-08-09 2007-07-24 Honda Giken Kabushiki Kaisha Method for judging communication state in a control system of linked joints
JP2020515843A (en) * 2017-03-30 2020-05-28 ザイリンクス インコーポレイテッドXilinx Incorporated Optical receiver electrical test

Also Published As

Publication number Publication date
JP2979814B2 (en) 1999-11-15

Similar Documents

Publication Publication Date Title
US6977960B2 (en) Self test circuit for evaluating a high-speed serial interface
JP2979814B2 (en) Serial data transfer device
JP3158215B2 (en) Parity inversion test method
JP2006251895A (en) Bus interface circuit
US5617433A (en) Serial data transfer apparatus
JPS63290033A (en) Data transmission reception circuit
US6229866B1 (en) Apparatus for detecting errors in asynchronous data receiver and transmitter
KR970011438B1 (en) Apparatus for selecting a communication line between a processor and a device in an exchanger
JPH09237197A (en) Semiconductor integrated circuit device
JP4931727B2 (en) Data communication system
US5267250A (en) Circuit arrangement for detection of an erroneous selection signal supplied to selection means
JP2606160B2 (en) Failure detection method for parity check circuit
JP3628477B2 (en) Test pattern generation device, communication device, and simulator
JP2735760B2 (en) Pattern detection circuit
JPH0290744A (en) Self-diagnostic device for communication system
JPH06104875A (en) Serial port
JP3473746B2 (en) Data transmission / reception circuit
JP2612951B2 (en) Operation check method of parity detection circuit
JPH034623A (en) Serial data transmission system
JPH04267631A (en) Parity bit addition system
JP2740492B2 (en) Asynchronous data transfer circuit between LSIs
JPH02264337A (en) Data transfer control system
JPH06274360A (en) Error check circuit
JPS60249446A (en) Data transmitter and receiver
JP2000003312A (en) Synchronous serial communication system and control method therefor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990817

LAPS Cancellation because of no payment of annual fees