JP2000242570A - Serial data controller - Google Patents

Serial data controller

Info

Publication number
JP2000242570A
JP2000242570A JP11041992A JP4199299A JP2000242570A JP 2000242570 A JP2000242570 A JP 2000242570A JP 11041992 A JP11041992 A JP 11041992A JP 4199299 A JP4199299 A JP 4199299A JP 2000242570 A JP2000242570 A JP 2000242570A
Authority
JP
Japan
Prior art keywords
serial data
data
serial
error
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
JP11041992A
Other languages
Japanese (ja)
Inventor
Yoshiki Watanabe
喜紀 渡邉
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 JP11041992A priority Critical patent/JP2000242570A/en
Publication of JP2000242570A publication Critical patent/JP2000242570A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve the reliability between a microcomputer and a device by detecting whether or not serial data transferred from a CPU has an error and transmitting only error-free data to the device. SOLUTION: An error detecting circuit 10 detects whether or not the serial data transferred from the CPU has an error and transmits only error-free data to the device. A command analysis block 11 of the error detecting circuit 10 decides whether serial data sent out of the microcomputer 20 is normal data or a data clear command. A comparator 13 compares data in fetch buffers 11a to 11c and a resending request block 14 sends a request to resend serial data to the microcomputer 20 when the compared data are discrepant. An STB decision block 12 decides which device the serial data are communicated to. A clock generating circuit 15 generates a clock needed for serial communication to be set to a device.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、CPUとデバイス間の
3線式シリアル通信のエラー検出に関し、特に、CPU
とデバイスの間にエラー検出回路を組み込むことによ
り、シリアルデータの誤データの送信を防ぐシリアルデ
ータ制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to error detection of three-wire serial communication between a CPU and a device, and more particularly, to a CPU.
The present invention relates to a serial data control device that prevents transmission of erroneous serial data by incorporating an error detection circuit between the serial data control device and a device.

【0002】[0002]

【従来の技術】従来の一般的な同一ハード内の回路構成
は、図5で示すように直接マイクロコンピューターから
3線式シリアル通信を使用しシリアルデータを設定する
形を採っていた。しかしこの設定方法では、マイクロコ
ンピューターからデバイスへ設定される結線上でノイズ
(高圧)、温度変化等、シリアルデータがマイクロコン
ピューターで送出したシリアルデータと異なったものに
なった場合でも関係なくデバイスには設定されてしまう
問題点があった。
2. Description of the Related Art As shown in FIG. 5, a conventional general circuit configuration in the same hardware employs a form in which serial data is set by using a 3-wire serial communication directly from a microcomputer. However, in this setting method, even if the serial data differs from the serial data sent by the microcomputer due to noise (high voltage), temperature change, etc. on the connection set from the microcomputer to the device, There was a problem that was set.

【0003】また、デバイスに設定されたレジスタ自体
が特殊環境(高圧がかかる、温度変化がある)により破
壊されてしまうという問題点があり、たとえば、医療で
使用するモニター等では、上記問題により映像が乱れる
ようなことが発生すると命に関わることさえあり、多少
のミスも許されない。このような環境で使用する精密機
器では信頼性の向上が不可欠である。また、パリティビ
ットを付加したエラー判別を行う方法もあるが、この方
法自身データの加工であるため、精密機器を取り扱う環
境により、たまたま間違ったデータになってしまったに
もかかわらず、正常なデータとして扱われる場合も発生
することが考えられる。
There is also a problem that the register itself set in the device is destroyed by a special environment (high voltage, temperature change). If something goes wrong, it can even be fatal, and some mistakes are unacceptable. For precision equipment used in such an environment, improvement of reliability is indispensable. There is also a method of performing error discrimination by adding a parity bit.However, since this method is the processing of data itself, even if it happens to be incorrect data depending on the environment in which precision equipment is handled, it is possible to obtain normal data. It is conceivable that this may also occur when treated as

【0004】そこで、シリアルデータが間違えて設定さ
れた場合、又はデバイス自身のレジスタが変化してしま
った時の回避方法として、マイクロコンピューターから
一定間隔で各デバイスにシリアルデータを送信する方法
がある。
Therefore, as a method for avoiding the case where the serial data is set by mistake or the register of the device itself has been changed, there is a method of transmitting the serial data from the microcomputer to each device at regular intervals.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のエラー
検出回路では、デバイスと同一ハード内で回路を組んで
いるため、レジスタが破壊される危険性があった。ま
た、一定間隔で各デバイスにシリアルデータを送信する
方法もあるが、間違えたシリアルデータを設定する可能
性があるため、信頼性に欠けるという問題点があった。
さらに、全てのデバイスに対してシリアル通信を行う必
要があるため、マイクロコンピューターがシリアル通信
処理で占有されてしまうという問題点もあった。本発明
は、上述した従来の欠点を解決し、マイクロコンピュー
ターとデバイスの間の信頼性を向上させるためのシリア
ルデータ制御装置を提供することを目的としている。
In the above-described conventional error detection circuit, since the circuit is assembled in the same hardware as the device, there is a risk that the register will be destroyed. There is also a method of transmitting serial data to each device at regular intervals, but there is a possibility that incorrect serial data may be set, so that there is a problem that reliability is lacking.
Furthermore, since it is necessary to perform serial communication with all devices, there is a problem that the microcomputer is occupied by the serial communication processing. SUMMARY OF THE INVENTION An object of the present invention is to provide a serial data controller for solving the above-mentioned conventional disadvantages and improving reliability between a microcomputer and a device.

【0006】[0006]

【課題を解決するための手段】上記課題を解決するため
に、本出願第1の発明のシリアルデータ制御装置では、
CPUとデバイス間との3線式シリアル通信のシリアル
データ制御装置において、CPUから転送されるシリア
ルデータに誤りの有無を検出し、誤りの無いデータのみ
をデバイスに送信するエラー検出回路を備えることを特
徴とする上記構成を有する本出願第1の発明のシリアル
データ制御装置は、CPUとデバイスの間にエラー検出
回路を組み込むことにより、CPUから転送されるデー
タがノイズ等によるデータ化けや、温度変化によるレジ
スタのデータ化けを検出することができるので、CPU
が行う各デバイスに送信するシリアルデータの信頼性の
向上を図ることができる。
In order to solve the above-mentioned problems, a serial data control device according to the first invention of the present application comprises:
A serial data control device for three-wire serial communication between a CPU and a device includes an error detection circuit that detects presence or absence of an error in serial data transferred from the CPU and transmits only error-free data to the device. The serial data control device according to the first aspect of the present invention having the above-described configuration has an error detection circuit incorporated between the CPU and the device, so that the data transferred from the CPU may be garbled due to noise or the like, or a temperature change may occur. Can detect register data corruption by
Can improve the reliability of serial data transmitted to each device.

【0007】また、本出願第2の発明のシリアルデータ
制御装置は、前記エラー検出回路が、転送されたシリア
ルデータがどのような命令か識別するコマンド解析ブロ
ックと、前記転送されたシリアルデータが複数のバッフ
ァに取り込まれ、一致条件を比較する比較器と、比較器
によって一致したシリアルデータを格納し、指定された
デバイスに転送するSTB判別ブロックと、比較器によ
って検証された一致しないシリアルデータの再送命令を
行う再送要求ブロックからなることを特徴とする。上記
構成を有する本出願第2の発明は、コマンド解析ブロッ
クにより、CPUからの命令内容を判別し、比較器によ
り、CPUからの送信による誤データを排除し、STB
判別ブロックにより、各デバイスに送信し、再送要求ブ
ロックにより、再度CPUから誤データに対する正デー
タを転送してもらうことにより、シリアルデータの信頼
性の向上を図ることができる。また、デバイスの電圧の
変化や温度変化等によりデータ化けした誤データの出力
を回避することができる。また、CPUが行う各デバイ
スを管理するためのシリアルデータの送出が、エラー検
出回路によって代行することができるので、CPUの負
担を軽減することができる。
Further, in the serial data control device according to the second invention of the present application, the error detection circuit may include a command analysis block for identifying what kind of command the transferred serial data is. A STB discriminator that stores the serial data matched by the comparator and transfers it to a designated device, and retransmits the mismatched serial data verified by the comparator. It is characterized by comprising a retransmission request block for performing an instruction. According to the second invention of the present application having the above configuration, the command analysis block discriminates the instruction content from the CPU, and the comparator eliminates erroneous data due to transmission from the CPU.
The reliability of the serial data can be improved by transmitting the data to each device by the determination block and by having the CPU transfer the correct data for the erroneous data again by the retransmission request block. Further, output of erroneous data that is garbled due to a change in device voltage or a change in temperature can be avoided. Further, the transmission of serial data for managing each device performed by the CPU can be performed by the error detection circuit, so that the load on the CPU can be reduced.

【0008】また、本出願第3の発明のシリアルデータ
制御装置は、前記コマンド解析ブロックが、転送された
シリアルデータが、デバイスへの設定命令か、取り込み
用バッファのクリア命令か、全てのデバイスの再設定命
令かを識別することを特徴とする。上記構成を有する本
出願第3の発明は、CPUから転送された命令がどのよ
うな命令かをコマンド解析ブロックによって判断するこ
とにより、CPUからの送出されたシリアルデータを各
デバイスに送信する前に解析することができるので、誤
りのあるシリアルデータが送信されることが無い。
Further, in the serial data control device according to the third invention of the present application, the command analysis block may determine whether the transferred serial data is a command for setting a device, a command for clearing a capture buffer, or a command for all devices. It is characterized in that it is a reset command. According to the third invention of the present application having the above-described configuration, the serial data transmitted from the CPU is transmitted to each device by determining the type of the instruction transferred from the CPU by the command analysis block. Since the analysis can be performed, erroneous serial data is not transmitted.

【0009】また、本出願第4の発明のシリアルデータ
制御装置は、前記比較器が、CPUから転送されたシリ
アルデータを複数のバッファに取り込み、取り込まれた
シリアルデータ同士を比較し、シリアルデータが一致し
た場合のみ、格納用バッファに格納することを特徴とす
る。上記構成を有する本出願第4の発明は、転送された
シリアルデータ同士を比較することにより、誤りのある
シリアルデータを排除し、正しいシリアルデータのみを
送信することができるので信頼性のあるシリアルデータ
を送信することができる。
In the serial data control device according to a fourth aspect of the present invention, the comparator captures the serial data transferred from the CPU into a plurality of buffers, compares the captured serial data with each other, and determines whether the serial data is Only when they match, the data is stored in the storage buffer. According to the fourth invention of the present application having the above-described configuration, by comparing transferred serial data with each other, erroneous serial data can be eliminated and only correct serial data can be transmitted, so that reliable serial data can be transmitted. Can be sent.

【0010】また、本出願第5の発明のシリアルデータ
制御装置は、前記STB判別ブロックが、シリアルデー
タの転送先のデバイスを判別することを特徴とする。上
記構成を有する本出願第5の発明のSTB判別ブロック
は、CPUから転送されたシリアルデータを指定された
各デバイスに送信することにより、CPUを占有するこ
となくシリアルデータの送信ができるので、CPUにか
かる負担を軽減することができる。
The serial data control device according to a fifth aspect of the present invention is characterized in that the STB determination block determines a device to which serial data is transferred. The STB determination block of the fifth invention of the present application having the above configuration can transmit serial data without occupying the CPU by transmitting the serial data transferred from the CPU to each designated device. Can be reduced.

【0011】また、本出願第6の発明のシリアルデータ
制御装置は、前記再送要求ブロックが、前記比較器によ
り一致しないシリアルデータをCPUに再度要求するこ
とを特徴とする。上記構成を有する本出願第6の発明の
再送要求ブロックは、比較器により一致しなかったシリ
アルデータのみを再度CPUから転送することにより誤
シリアルデータを正シリアルデータとして送信すること
ができるので、データの信頼性を向上させることができ
る。
In a sixth aspect of the invention, the serial data control device is characterized in that the retransmission request block requests the CPU again for serial data that does not match by the comparator. The retransmission request block according to the sixth aspect of the present invention having the above configuration can transmit erroneous serial data as normal serial data by transferring again only the serial data not matched by the comparator from the CPU. Can be improved in reliability.

【0012】[0012]

【実施例】以下、本発明の実施例について、図面を参照
して詳細に説明する。図1に示すように、本発明のシリ
アルデータ制御装置は、CPU(図示せず)から転送さ
れるシリアルデータに誤りの有無を検出し、誤りの無い
データのみをデバイスに送信するエラー検出回路10を
備え、かかるエラー検出回路10は、マイクロコンピュ
ーター20から送出されたシリアルデータが通常データ
かデータクリアコマンドか判別するためのコマンド解析
ブロック11と、マイクロコンピューター20からの通
常データを取り込み格納するための取り込み用バッファ
11a〜11cと、取り込み用バッファにあるデータを
比較するための比較器13と、比較器13で比較したデ
ータが同一でない場合にマイクロコンピューター20へ
シリアルデータの再送要求を送出する再送要求ブロック
14と、どのデバイスへのシリアルデータ通信かを判別
するためのSTB判別ブロック12と、比較器で比較し
たデータが同一である時に各デバイス毎のデータを保持
するための格納用バッファ12a〜12dと、複数の格
納バッファから1つのデータをデバイスへ送出するため
の送信用バッファ16と、デバイスに設定するためのシ
リアル通信に必要なクロックを発生させるためのクロッ
ク発生回路15とで構成されている。
Embodiments of the present invention will be described below in detail with reference to the drawings. As shown in FIG. 1, a serial data control device according to the present invention detects an error in serial data transferred from a CPU (not shown) and detects an error in the serial data. The error detection circuit 10 includes a command analysis block 11 for determining whether the serial data transmitted from the microcomputer 20 is a normal data or a data clear command, and a command analysis block 11 for capturing and storing the normal data from the microcomputer 20. A retransmission request for sending a serial data retransmission request to the microcomputer 20 when the data compared by the comparators 13 for comparing the data in the capture buffers 11a to 11c and the data in the capture buffer is not the same. Block 14 and the serial data to which device STB determination block 12 for determining communication, storage buffers 12a to 12d for holding data of each device when data compared by the comparator is the same, and one data from a plurality of storage buffers. And a clock generating circuit 15 for generating a clock necessary for serial communication for setting the device.

【0013】図2は、本発明エラー検出回路10をマイ
クロコンピューター20と各デバイス70〜90との間
に入れて構成した3線式シリアル転送を行うためのブロ
ック図である。マイクロコンピューター20とエラー検
出回路10は、シリアルクロック線30、シリアルデー
タ線40、各デバイス70〜90へのストローブ線50
及び再送要求線60が接続されており、その内、シリア
ルクロック線30、シリアルデータ線40、ストローブ
線50は、マイクロコンピューター20からエラー検出
回路10へデータ転送を行うものであり、再送要求線6
0は、エラー検出回路10がマイクロコンピューター2
0へ再送要求を通知するためのものである。また、エラ
ー検出回路10と各デバイス70〜90との接続は、シ
リアルクロック線30、シリアルデータ線40、ストロ
ーブ線50を用いている。これは各デバイス70〜90
側からみるとマイクロコンピューター20から直接制御
している形と同じになり、デバイス70〜90は従来の
ものが使用可能となる。
FIG. 2 is a block diagram for performing three-wire serial transfer in which the error detection circuit 10 of the present invention is inserted between the microcomputer 20 and each of the devices 70 to 90. The microcomputer 20 and the error detection circuit 10 include a serial clock line 30, a serial data line 40, and a strobe line 50 to each of the devices 70 to 90.
The serial clock line 30, the serial data line 40, and the strobe line 50 are used to transfer data from the microcomputer 20 to the error detection circuit 10, and the retransmission request line 60
0 indicates that the error detection circuit 10
0 to notify a retransmission request. The connection between the error detection circuit 10 and each of the devices 70 to 90 uses a serial clock line 30, a serial data line 40, and a strobe line 50. This is for each device 70-90
When viewed from the side, the configuration is the same as that controlled directly by the microcomputer 20, and conventional devices 70 to 90 can be used.

【0014】次に、図1と図2及び図3を参照して本実
施例の動作について詳細に説明する。図2及び図3は、
エラー検出回路10を含んだ3線式シリアル転送のブロ
ック図であり、ブロック図の書き方を変えたものであ
る。マイクロコンピューター20から出力されるCLO
CK30、DATA40、STB50がエラー検出回路
10への入力となり、エラー検出回路10からは再送要
求線60で再送要求をマイクロコンピューター20へと
通知する。また、各デバイス70〜90への通知は、エ
ラー検出回路10から出力されるCLOCK30、DA
TA40、STB50により行われる。このことによ
り、各デバイス70〜90への入力はマイクロコンピュ
ーター20と直接接続されていた状態と同じように制御
可能となる。
Next, the operation of this embodiment will be described in detail with reference to FIG. 1, FIG. 2 and FIG. FIG. 2 and FIG.
FIG. 3 is a block diagram of a three-wire serial transfer including an error detection circuit 10, in which the way of writing the block diagram is changed. CLO output from microcomputer 20
CK30, DATA40, and STB50 are input to the error detection circuit 10, and the error detection circuit 10 notifies the microcomputer 20 of a retransmission request via the retransmission request line 60. In addition, the notification to each of the devices 70 to 90 is performed by the CLOCK 30 and DA output from the error detection circuit 10.
This is performed by TA40 and STB50. As a result, the input to each of the devices 70 to 90 can be controlled in the same manner as in the state where the input is directly connected to the microcomputer 20.

【0015】次に図1を参照してエラー検出回路10の
内部の動作を詳細に説明する。図1は、エラー検出回路
10の構成を示したものである。マイクロコンピュータ
ー20から出力されたシリアルデータが、デバイスへの
設定データ、取り込み用バッファのクリア、全てのデバ
イスを再設定の3種類の内どのデータかをコマンド解析
ブロック11にて判別する。(取り込み用バッファのク
リア、全てのデバイスを再設定以外は全てデバイスへの
設定となる。)コマンド解析ブロック11でデバイスへ
の設定と判別されると、マイクロコンピューター20か
らのシリアルデータ1回目は、取り込み用バッファ11
aに格納され、シリアルデータ2回目は、取り込み用バ
ッファ11bに格納される。比較器13では、取り込み
用バッファ11aと取り込み用バッファ11bとの比較
を行い、同一の場合のみSTB判別ブロック12で判別
されたデバイスのシリアルデータを格納するための格納
用バッファ12aから格納用バッファ12dのどれかに
シリアルデータが格納される。
Next, the internal operation of the error detection circuit 10 will be described in detail with reference to FIG. FIG. 1 shows a configuration of the error detection circuit 10. The command analysis block 11 determines which of the three types of serial data output from the microcomputer 20 is the setting data for the device, the clearing of the capture buffer, and the resetting of all devices. (All settings are set to devices except for clearing the capture buffer and resetting all devices.) When the command analysis block 11 determines that the device is set, the first serial data from the microcomputer 20 is: Capture buffer 11
a, and the second serial data is stored in the capture buffer 11b. The comparator 13 compares the capture buffer 11a with the capture buffer 11b, and stores the serial data of the device determined by the STB determination block 12 from the storage buffer 12a to the storage buffer 12d only when they are the same. The serial data is stored in any of.

【0016】その後、格納用バッファに格納されたシリ
アルデータを用いて、各デバイス70〜90に対しシリ
アル転送を行う。また、比較器13において取り込み用
バッファにあるシリアルデータが異なっていると判別さ
れた場合には、再送要求ブロック14に通知し、マイク
ロコンピューター20へシリアルデータの再送要求を行
う。再送要求され、3回目のシリアルデータがコマンド
解析ブロック11に転送されると取り込み用バッファ1
1cに格納される。比較器13では、取り込み用バッフ
ァ11cと取り込み用バッファ11a、または、取り込
み用バッファ11cと取り込み用バッファ11bとの比
較を行い、同一のシリアルデータを採用して、格納用バ
ッファにシリアルデータを格納し、各デバイスに対して
シリアル転送を行う。
Thereafter, serial transfer is performed to each of the devices 70 to 90 using the serial data stored in the storage buffer. When the comparator 13 determines that the serial data in the buffer for capture is different, it notifies the retransmission request block 14 and requests the microcomputer 20 to retransmit the serial data. When retransmission is requested and the third serial data is transferred to the command analysis block 11, the capture buffer 1
1c. The comparator 13 compares the capture buffer 11c and the capture buffer 11a, or the capture buffer 11c and the capture buffer 11b, adopts the same serial data, and stores the serial data in the storage buffer. Then, serial transfer is performed for each device.

【0017】また、コマンド解析ブロック11で全ての
デバイスに対して再設定と判別された場合には、格納用
バッファに格納されているシリアルデータを用いて全て
のデバイスへとシリアル通信を行う。この時、マイクロ
コンピューター20からエラー検出回路10へのシリア
ル通信は1回のみで、その1回のシリアル通信により、
全デバイスの設定が可能となるため、マイクロコンピュ
ーターを占有していたシリアル転送処理の負担が軽減さ
れる。
If it is determined in the command analysis block 11 that all devices are to be reset, serial communication is performed to all devices using the serial data stored in the storage buffer. At this time, serial communication from the microcomputer 20 to the error detection circuit 10 is performed only once, and the serial communication is performed once.
Since all devices can be set, the burden of serial transfer processing occupying the microcomputer is reduced.

【0018】次に、第2の実施例について、説明する。
図4は、各デバイス毎にエラー検出回路10を盛り込ん
だ場合の3線式シリアル転送のブロック図である。これ
は、同一ストローブでアドレス指定を含むシリアルデー
タの転送がある時に使用し、図1のエラー検出回路10
内のコマンド解析ブロック11での判別時に、アドレス
とデータとを区別して、アドレス毎に比較し、格納用バ
ッファにシリアルデータを格納する。これにより、同一
ストローブであっても、アドレス毎にシリアルデータが
格納されているので、デバイスの再設定の際には、格納
用バッファにあるシリアルデータをデバイスへ順次送出
することにより、マイクロコンピューター20からはエ
ラー検出回路10への1回のシリアル転送によりデバイ
スの全アドレスに対してのシリアル転送をすることが可
能となる。なお、本発明は上述した実施の形態に限定さ
れるものではなく、その技術思想の範囲内において様々
に変形して実施することができる。
Next, a second embodiment will be described.
FIG. 4 is a block diagram of a three-wire serial transfer in which the error detection circuit 10 is incorporated for each device. This is used when there is a transfer of serial data including address designation in the same strobe, and the error detection circuit 10 shown in FIG.
When the command is analyzed by the command analysis block 11, the address and the data are distinguished and compared for each address, and the serial data is stored in the storage buffer. As a result, even if the strobe is the same, the serial data is stored for each address. Therefore, when the device is reset, the serial data stored in the storage buffer is sequentially transmitted to the device, so that the microcomputer 20 Then, serial transfer to all addresses of the device can be performed by one serial transfer to the error detection circuit 10. It should be noted that the present invention is not limited to the above-described embodiment, and can be implemented with various modifications within the scope of the technical idea.

【0019】[0019]

【発明の効果】以上説明したように本発明のシリアルデ
ータ制御装置によれば、マイクロコンピューターからの
シリアルデータがノイズ等により化けた場合に、化けた
データをデバイスに設定することが無いように回避する
ことができる。理由は、マイクロコンピューターとデバ
イスの間に本発明のエラー検出回路を挿入することによ
り、CPUから送信されたシリアルデータの正誤判断を
行い、誤りのないシリアルデータと判定されない限りデ
バイスには設定しないようになっているためである。ま
た、シリアルデータが誤りと判定される場合は、エラー
検出回路からマイクロコンピューターへ再送要求が通知
され、新たなシリアルデータと比較を行い、誤りのない
シリアルデータと判定されない限りデバイスには設定し
ないためである。第2の効果は、マイクロコンピュータ
ーから全てのデバイスに対して再設定を行う場合に、マ
イクロコンピューターが全てのデータを送出するのでは
なく、再設定コマンドをCPUからエラー検出回路に送
出することにより、全デバイスの設定がエラー検出回路
によって実行される。理由は、エラー検出回路内の格納
用バッファに各デバイスのシリアルデータを格納してあ
るため、エラー検出回路から各デバイス順に格納用バッ
ファのシリアルデータを送出することができるためであ
る。
As described above, according to the serial data control device of the present invention, when the serial data from the microcomputer is garbled due to noise or the like, the garbled data is prevented from being set in the device. can do. The reason is that by inserting the error detection circuit of the present invention between the microcomputer and the device, the correctness of the serial data transmitted from the CPU is determined, and the device is not set unless it is determined that there is no error. Because it is. If the serial data is determined to be incorrect, the error detection circuit notifies the microcomputer of a retransmission request, compares the serial data with new serial data, and does not set the device unless it is determined that there is no error. It is. The second effect is that, when resetting all devices from the microcomputer, the microcomputer sends a reset command from the CPU to the error detection circuit instead of sending out all data. The setting of all devices is executed by the error detection circuit. The reason is that since the serial data of each device is stored in the storage buffer in the error detection circuit, the serial data of the storage buffer can be transmitted from the error detection circuit in order of each device.

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

【図1】 本発明の実施例のエラー検出回路の構成を示
すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an error detection circuit according to an embodiment of the present invention.

【図2】 本発明の実施例の全体の構成を示すブロック
図である。
FIG. 2 is a block diagram showing the overall configuration of an embodiment of the present invention.

【図3】 本発明の実施例の全体の構成を示すブロック
図である。
FIG. 3 is a block diagram showing the overall configuration of an embodiment of the present invention.

【図4】 本発明の第二の実施例の全体の構成を示すブ
ロック図である。
FIG. 4 is a block diagram showing an entire configuration of a second embodiment of the present invention.

【図5】 従来の全体の構成を示す図である。FIG. 5 is a diagram showing the overall configuration of a conventional device.

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

10 エラー検出回路 11 コマンド解析ブロック 11a 取り込み用バッファ 11b 取り込み用バッファ 11c 取り込み用バッファ 12 STB判別ブロック 12a 格納用バッファ 12b 格納用バッファ 12c 格納用バッファ 12d 格納用バッファ 13 比較器 15 クロック発生回路 16 送信用バッファ 20 CPU 30 CLOCK 40 DATA 50 STB 60 デバイス 70 デバイス 80 デバイス 90 デバイス Reference Signs List 10 Error detection circuit 11 Command analysis block 11a Capture buffer 11b Capture buffer 11c Capture buffer 12 STB determination block 12a Storage buffer 12b Storage buffer 12c Storage buffer 12d Storage buffer 13 Comparator 15 Clock generation circuit 16 Transmission Buffer 20 CPU 30 CLOCK 40 DATA 50 STB 60 device 70 device 80 device 90 device

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 CPUとデバイス間との3線式シリアル
データ通信を行うシリアルデータ制御装置において、 CPUから転送されるシリアルデータに誤りの有無を検
出し、誤りの無いデータのみをデバイスに送信するエラ
ー検出回路を備えることを特徴とするシリアルデータ制
御装置。
1. A serial data control device for performing three-wire serial data communication between a CPU and a device, wherein the serial data transferred from the CPU detects the presence or absence of an error and transmits only data without an error to the device. A serial data control device comprising an error detection circuit.
【請求項2】 前記エラー検出回路は、転送されたシリ
アルデータがどのような命令か識別するコマンド解析ブ
ロックと、前記転送されたシリアルデータが複数のバッ
ファに取り込まれ、一致条件を比較する比較器と、比較
器によって一致したシリアルデータを格納し、指定され
たデバイスに転送するSTB判別ブロックと、比較器に
よって検証された一致しないシリアルデータの再送命令
を行う再送要求ブロックからなることを特徴とする請求
項1に記載のシリアルデータ制御装置。
2. An error detection circuit comprising: a command analysis block for identifying what kind of instruction the transferred serial data is; and a comparator which receives the transferred serial data into a plurality of buffers and compares matching conditions. And an STB discriminating block for storing the serial data matched by the comparator and transferring the serial data to a designated device, and a retransmission request block for issuing a retransmission command for the non-matching serial data verified by the comparator. The serial data control device according to claim 1.
【請求項3】 前記コマンド解析ブロックは、転送され
たシリアルデータがデバイスへの設定命令か、取り込み
用バッファのクリア命令か、全てのデバイスの再設定命
令かを識別することを特徴とする請求項1又は請求項2
に記載のシリアルデータ制御装置。
3. The command analysis block according to claim 1, wherein the transferred serial data is a command for setting a device, a command for clearing a buffer for capturing, or a command for resetting all devices. 1 or Claim 2
2. The serial data control device according to item 1.
【請求項4】 前記比較器は、CPUから転送されたシ
リアルデータを複数のバッファに取り込み、取り込まれ
たシリアルデータ同士を比較し、シリアルデータが一致
した場合のみ、格納用バッファに格納することを特徴と
する請求項1又は請求項2に記載のシリアルデータ制御
装置。
4. The comparator captures serial data transferred from a CPU into a plurality of buffers, compares the captured serial data with each other, and stores the serial data in a storage buffer only when the serial data matches. The serial data control device according to claim 1 or 2, wherein:
【請求項5】 前記STB判別ブロックは、シリアルデ
ータの転送先のデバイスを判別することを特徴とする請
求項1、請求項2に記載のシリアルデータ制御装置。
5. The serial data control device according to claim 1, wherein the STB determination block determines a device to which serial data is transferred.
【請求項6】 前記再送要求ブロックは、前記比較器に
より一致しないシリアルデータをCPUに再度要求する
ことを特徴とする請求項1、請求項2又は請求項4に記
載のシリアルデータ制御装置。
6. The serial data control device according to claim 1, wherein the retransmission request block requests the CPU again for serial data that does not match by the comparator.
JP11041992A 1999-02-19 1999-02-19 Serial data controller Pending JP2000242570A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11041992A JP2000242570A (en) 1999-02-19 1999-02-19 Serial data controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11041992A JP2000242570A (en) 1999-02-19 1999-02-19 Serial data controller

Publications (1)

Publication Number Publication Date
JP2000242570A true JP2000242570A (en) 2000-09-08

Family

ID=12623704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11041992A Pending JP2000242570A (en) 1999-02-19 1999-02-19 Serial data controller

Country Status (1)

Country Link
JP (1) JP2000242570A (en)

Similar Documents

Publication Publication Date Title
US6545981B1 (en) System and method for implementing error detection and recovery in a system area network
US6615383B1 (en) System and method for message transmission between network nodes connected by parallel links
US5574865A (en) System for data transfer protection during module connection/disconnection onto live bus
EP1224548B1 (en) System and method improving fault isolation and diagnosis in computers
US8281189B2 (en) SATA primitive prediction and correction
US20070002827A1 (en) Automated serial protocol target port transport layer retry mechanism
US8539134B2 (en) PCI express multiplier device
JP3709289B2 (en) Data transmission / reception device and parallel processor system for performing data retransmission
CN104866454A (en) Write message prospect processing method and device facing board-level high-speed bus
JP5250767B2 (en) Redundant 3-wire communication system and method
US6862283B2 (en) Method and apparatus for maintaining packet ordering with error recovery among multiple outstanding packets between two devices
JPH0691513B2 (en) Data transmission error detection method
JP4112717B2 (en) Data processing device
US8321736B2 (en) Transmission system, transmission method and communication device
JP2000242570A (en) Serial data controller
JP4969421B2 (en) Receiving apparatus and communication system
JP2018078482A (en) Transfer device, transfer method, and program
JPH09326782A (en) Serial communication method
JP6207710B1 (en) Transfer control device, transfer control method, and program
JP2005277552A (en) Bus retry control system and data communication unit
JP3842764B2 (en) Bus interface circuit
JP2007201786A (en) Transmission error detection system, and transmitter
JPH0522314A (en) Data transmitter
JP2005217487A (en) Packet transmission system and apparatus
JP2008205899A (en) Transmission failure avoiding method in transmission/reception system