JPH012420A - data transfer circuit - Google Patents

data transfer circuit

Info

Publication number
JPH012420A
JPH012420A JP62-158327A JP15832787A JPH012420A JP H012420 A JPH012420 A JP H012420A JP 15832787 A JP15832787 A JP 15832787A JP H012420 A JPH012420 A JP H012420A
Authority
JP
Japan
Prior art keywords
data
shift register
parallel
serial
register
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
JP62-158327A
Other languages
Japanese (ja)
Other versions
JPS642420A (en
Inventor
巧 岩崎
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP15832787A priority Critical patent/JPS642420A/en
Priority claimed from JP15832787A external-priority patent/JPS642420A/en
Publication of JPH012420A publication Critical patent/JPH012420A/en
Publication of JPS642420A publication Critical patent/JPS642420A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、データ処理装置に他部にある操作パネル上
のスイッチ操作データなどの変化するデジタルのデータ
を読み込ませるためのデータ転送回路に関するものであ
る。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a data transfer circuit for causing a data processing device to read changing digital data such as switch operation data on an operation panel in another part. It is.

〔従来の技術〕[Conventional technology]

第5図は従来のデータ転送回路を示すブロック図であり
、図において、1は操作パネル、2は制御部、3は回路
を初期化するイニシャルリセット信号、4は一連のスイ
ッチデータの転送を開始させるデータ転送開始信号、5
はデータ転送タイミング、6はイニシャルリセット信号
3、データ転送開始信号4、データ転送タイミング5を
発生するタイミング発生回路、7はスイッチ、8はスイ
ツチ7からの並列データ、9は並列データ8をデータ転
送開始信号4で読み込み、データ転送タイミング5でシ
リアルデータに変換する並列−直列シフトレジスタ(以
下PSシフトレジスタという)である。操作パネル1は
スイッチ7とPSシフトレジスタ9とで構成されている
FIG. 5 is a block diagram showing a conventional data transfer circuit. In the figure, 1 is an operation panel, 2 is a control section, 3 is an initial reset signal that initializes the circuit, and 4 is a series of switches that start transferring data. data transfer start signal, 5
is data transfer timing, 6 is a timing generation circuit that generates initial reset signal 3, data transfer start signal 4, and data transfer timing 5, 7 is a switch, 8 is parallel data from switch 7, 9 is data transfer of parallel data 8 This is a parallel-serial shift register (hereinafter referred to as PS shift register) that reads data at start signal 4 and converts it to serial data at data transfer timing 5. The operation panel 1 is composed of a switch 7 and a PS shift register 9.

また、10はPSシフトレジスタ9から出力され、制御
部2へ送られるシリアルデータ、11はシリアルデータ
10を入力し、データ転送タイミング5で並列データに
変換する直列−並列シフトレジスタ(以下SPシフトレ
ジスタという)、12はSPシフトレジスタ11の並列
データをデータ伝送開始信号4で一時保持するデータレ
ジスタ、13はデータレジスタ12のデータを出力させ
るためのゲート信号、14はゲート信号13によりht
み出されたデータレジスタ12の並列データ、15はゲ
ート信号13を出力し、並列データ14を読み込み、プ
ログラムにしたがってソフトウェア的に処理するデータ
処理装置である。
Further, 10 is serial data output from the PS shift register 9 and sent to the control unit 2, and 11 is a serial-parallel shift register (hereinafter referred to as SP shift register) that inputs the serial data 10 and converts it into parallel data at data transfer timing 5. ), 12 is a data register that temporarily holds the parallel data of the SP shift register 11 using the data transmission start signal 4, 13 is a gate signal for outputting the data of the data register 12, and 14 is the ht
A data processing device 15 outputs the gate signal 13, reads the parallel data 14, and processes it in software according to a program.

fill 8部2はタイミング発生口v!I6、SPシ
フトレジスタ11、データレジスタ12、データ処理装
置5で構成されている。
fill Part 8 2 is the timing source v! It is composed of an I6, an SP shift register 11, a data register 12, and a data processing device 5.

また、第6図に従来の第5図の回路構成のときにデータ
処理装置15が並列データ14を読み込むときに行うプ
ログラムのフローチャートを示す。
Further, FIG. 6 shows a flowchart of a program executed when the data processing device 15 reads the parallel data 14 in the conventional circuit configuration shown in FIG.

この第6図において、ステップST1は新しく並列デー
タ14を読み込み、前に読み込んだ旧データとを比較す
る比較処理、ステップST2は比較処理の結果、新デー
タと旧データとが異なっているか否かを判定し、以後の
処理を決める判定処理、ステップST3は新データと旧
データが異なっていた場合、データ処理装置15がとる
べき実行処理、ステップST4は旧データを新データに
入替えるデータ更新処理である。
In this FIG. 6, step ST1 is a comparison process of reading new parallel data 14 and comparing it with the previously read old data, and step ST2 is a comparison process of checking whether the new data and old data are different as a result of the comparison process. Step ST3 is an execution process that the data processing device 15 should take if the new data and old data are different. Step ST4 is a data update process that replaces old data with new data. be.

次に動作について説明する。スイッチデータ転送回路が
動作を開始するとき、まず、タイミング、発生回路から
イニシャルリセット信号3がPSシフトレジスタ9、S
Pシフトレジスタ11、f−タレジスタ12に出力され
、こ扛らがv′J期化される0 その債、タイミング発生回路6からデータ転送j’d 
始ji 号4がPSシフトレジスタ9、データレジスタ
12に出力され、このデータ転送開始信号4によりPS
シフトレジスタ9にスイッチTかラノ並列データ8が1
iみ込まれ、一方データレジスタ12はSPシフトレジ
スタ11のデータを読み込むが、イニシャルリセット信
号3が出力された直後はSPシフトレジスタ11は初期
化されたままで、シリアルデータ10をまだ人力してい
ないため、データ内容は初期値である。
Next, the operation will be explained. When the switch data transfer circuit starts operating, first, the initial reset signal 3 is sent from the timing and generation circuit to the PS shift register 9, S
It is output to the P shift register 11 and the f-data register 12, and these are set to the v'J period.
The start ji number 4 is output to the PS shift register 9 and the data register 12, and this data transfer start signal 4 causes the PS
Switch T or Rano parallel data 8 is 1 in shift register 9
On the other hand, the data register 12 reads the data of the SP shift register 11, but immediately after the initial reset signal 3 is output, the SP shift register 11 remains initialized and the serial data 10 has not yet been input manually. Therefore, the data contents are initial values.

ARMいて、データ転送タイミング5が出力され、この
データ転送タイミング5で、PSシフトレジスタ9は先
にスイッチ7から読み込んだ並列データ8を一つずつ/
リアルデータ10とL”C8Pシフトレジスタ11に出
力し、SPシフトレジスタ11はシリアルデータ10を
一つずつ入力し、このシリアルデータを並列データに変
換してデータレジスタ12へ出力する。
The ARM outputs data transfer timing 5, and at this data transfer timing 5, the PS shift register 9 transfers the parallel data 8 read earlier from the switch 7 one by one.
The real data 10 and the L''C8P shift register 11 are outputted, and the SP shift register 11 inputs the serial data 10 one by one, converts this serial data into parallel data, and outputs it to the data register 12.

並列データ8全すべてPSシフトレジスタ9からSPシ
フトレジスタ11へ転送し終つ次後、再びデータ転送開
始信号4がタイミング発生回路6から出力され、各部は
以上の動作を繰り返す。
After all of the parallel data 8 have been transferred from the PS shift register 9 to the SP shift register 11, the data transfer start signal 4 is output again from the timing generation circuit 6, and each section repeats the above operations.

データレジスタ12はデータ転送開始信号4が出るごと
に内容を更新し、一方、データ処理装置15はゲート信
号13を出力しデータレジスタ12からの並列データ1
4を読み込み、ソフトウェアプログラムにしたがって第
6図の処理を行う。
The data register 12 updates its contents every time the data transfer start signal 4 is output, while the data processing device 15 outputs the gate signal 13 and outputs the parallel data 1 from the data register 12.
4 and performs the processing shown in FIG. 6 according to the software program.

この第6図において、ステップST1で新しくデータレ
ジスタ12から出力される並列データ14を読み込み、
前に読み込んだ旧データと比較し、この比較処理の結果
をステップSP2で新データと旧データとが異なってい
るか否かを判定し、異なっていなければ、何もする必要
はなく、処理を終了させる。
In this FIG. 6, in step ST1, the parallel data 14 newly output from the data register 12 is read,
It is compared with the previously read old data, and the result of this comparison process is determined in step SP2 whether or not the new data and old data are different. If they are not different, there is no need to do anything and the process ends. let

また、ステップST2での判定の結果、新データと旧デ
ータが異なっていれば、ステップST3の実行処理へ進
むことになる。
If the new data and old data are different as a result of the determination in step ST2, the process proceeds to step ST3.

このステップST3の実行処理で異なったデータ、すな
わちスイッチTの操作にしたがった処置を行い、ステッ
プST4で旧データを新データに入れ替えるデータ更新
処理を行い、新データを次の処理サイクルのために保持
し、処理を終了する。
In the execution process of this step ST3, different data, that is, the action according to the operation of the switch T, is performed, and in step ST4, a data update process is performed to replace the old data with new data, and the new data is retained for the next processing cycle. and ends the process.

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

従来のスイッチデータ転送回路は、以上のように構成さ
れているので、データ処理装置15で新しくデータが転
送されてくるごとに前のデータと比較する処理を必要と
し、比較の結果データに異なりはなくても、ステップS
T1での毎回比較処理の時間がかかるという問題点があ
った。
Since the conventional switch data transfer circuit is configured as described above, it is necessary to compare the data with the previous data every time new data is transferred by the data processing device 15, and there is no difference in the data as a result of the comparison. Even without it, step S
There was a problem in that it took a long time to perform the comparison process each time at T1.

この発明は上記のような問題点を解消する次めになされ
たもので、データ処理装置が毎回新データを旧データと
比較しなくてもよく、データ処理装置のプログラム処理
時間を短くできるデータ転送回路を得ることを目的とす
る。
This invention was made to solve the above-mentioned problems, and it is a data transfer method that eliminates the need for the data processing device to compare new data with old data every time, and shortens the program processing time of the data processing device. The purpose is to obtain a circuit.

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

この発明に係るデータ転送回路は、データ送出側の変化
する並列データを並列−直列シフトレジスタで塩9込ん
でシリアルデータに変換し、このシリアルデータに変換
するデータ数だけ第1シフトレジスタでシフトし、この
第1シフトレジスタと並列−直列シフトレジスタの両シ
リアルデータとの不一致を排他的論理和ゲートで検出し
、この排他的論理和ゲートの出力または並列−直列シフ
トレジスタの出力を受信側で受信し、排他的論理和ゲー
トの出力データ上の不一致ピッ)Dを受信側の検出保持
回路で検出して保持し、この不一致ビット数の検出時に
データ処理装置に割込みをかけ、データレジスタの保持
データをデータ処理装置に読み込ませ、処理を行わせる
ようにしたものである。
The data transfer circuit according to the present invention converts changing parallel data on the data sending side into serial data using a parallel-serial shift register, and shifts the data by the number of data to be converted into serial data using a first shift register. , a mismatch between the serial data of this first shift register and the parallel-serial shift register is detected by an exclusive OR gate, and the output of this exclusive OR gate or the output of the parallel-serial shift register is received on the receiving side. Then, the detection and holding circuit on the receiving side detects and holds the mismatch bit (D) on the output data of the exclusive OR gate, and when the number of mismatch bits is detected, an interrupt is generated to the data processing device, and the data held in the data register is is read into a data processing device and processed.

〔作用〕[Effect]

この発明における第1シストレジスタと排他的論理和ゲ
ートは、データの1個ずつの変化を検査しながらシリア
ルデータとして送出し、受信側の検出保持回路でこのシ
リアルデータ中の「不一致」ビットの有無のみ検出し、
その検出時にのみデータ処理装置に割込みをかけ、デー
タ処理装置は受信側で受信し念シリアルデータをパラレ
ルデータに変換したデータを読み込んで処理を行う。
The first sister register and the exclusive OR gate in this invention transmit the data as serial data while checking each change in data, and the detection and holding circuit on the receiving side detects whether or not there is a "mismatch" bit in the serial data. Detects only
Only when this is detected, an interrupt is issued to the data processing device, and the data processing device receives the data on the receiving side, converts the serial data into parallel data, reads the data, and processes it.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。第1
図において、構成の説明に際し、第5図と同一部分には
同一符号を付してその重複説明を避け、第5図との差異
を明白にするために、第5図とは異なる部分を主体に述
べる。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, when explaining the configuration, parts that are the same as those in Figure 5 are given the same reference numerals to avoid redundant explanation, and in order to make the differences with Figure 5 clear, parts that are different from Figure 5 will be highlighted. I will explain.

この第1図において、13はデータレジスタ12のデー
タを出力させるためのゲート信号、14はゲート信号1
3で読み田され次データレジスタ12の並列データ、1
5はゲート信号13を出力し、並列データ14を読み込
み、プログラムにしたがってソフトウェア的に処理する
データ処理装置、20はPSシフトレジスタ9からのシ
リアルデータを入力し、並列データ8のデータ数nだけ
シフトし、出力する第1シフトレジスタ(以下Sシフト
レジスタというン、21は排他的論理和ゲート(以下E
XORゲートという)、22はシリアルデータ10の「
不一致」ビットの有無を検出するJKフリップ70ツブ
回路(以下、JKFFという)、23はJKFF22 
 の検出結果を一連のシリアルデータ10の転送が完了
した次のデータ転送開始タイミングで読み込み、「不一
致」ビットがあれば、データ処理装置15へ割込みをか
けるD型フリップフロップ回路(以下、DFFという)
、24は論理和ゲート(以下ORゲートという)であり
、その他の構成は第5図と同様である。
In FIG. 1, 13 is a gate signal for outputting data from the data register 12, and 14 is a gate signal 1.
Parallel data of the next data register 12 read at 3, 1
5 is a data processing device that outputs the gate signal 13, reads the parallel data 14, and processes it in software according to a program; 20 inputs the serial data from the PS shift register 9 and shifts it by the number n of parallel data 8; The first shift register (hereinafter referred to as S shift register) that outputs the output, 21 is an exclusive OR gate (hereinafter referred to as E
(referred to as an XOR gate), 22 is the serial data 10
JK flip 70 tube circuit (hereinafter referred to as JKFF) that detects the presence or absence of the "mismatch" bit, 23 is JKFF22
A D-type flip-flop circuit (hereinafter referred to as DFF) reads the detection result at the next data transfer start timing after the transfer of a series of serial data 10 is completed, and if there is a "mismatch" bit, interrupts the data processing device 15.
, 24 are logical sum gates (hereinafter referred to as OR gates), and the other configurations are the same as in FIG.

第2図(a)はデータ転送開始信号4、第2図(b)は
データ転送タイミング5、第2図(e)はシリアルデー
タ10を示す。
2(a) shows the data transfer start signal 4, FIG. 2(b) shows the data transfer timing 5, and FIG. 2(e) shows the serial data 10.

第3図は第1図の回路構成のときにデータ処理装置15
が並列データ14を読み込むときに行うプログラムのフ
ローチャートを示す。第3図において、ステップST1
1はDFF23からの割込みがあるかないかを判定し、
以後の処理を決める判定処理、ステップST12は新し
く並列データ14t−読み込み、どのデータに「不一致
jすなわち変化があるかをみる変化データ検出処理、ス
テップST14は不一致データに対しデータ処理装置1
5がとるべき実行処理、ステップST14はデータ処理
装置15が保持している原データを並列データ14の「
不一致」データ、すなわち変化に対応して更新するデー
タ更新処理である。
FIG. 3 shows the data processing device 15 in the circuit configuration shown in FIG.
3 shows a flowchart of a program executed when reading parallel data 14. In FIG. 3, step ST1
1 determines whether there is an interrupt from the DFF23,
Step ST12 is a judgment process that determines subsequent processing, and step ST12 is a change data detection process in which new parallel data 14t is read and which data has a "mismatch j, that is, a change."
The execution process to be taken by step ST14 is to convert the original data held by the data processing device 15 into parallel data 14.
This is a data update process in which data is updated in response to "unmatched" data, that is, changes.

次に動作について説明する。第1図のスイッチデータ転
送回路が動作を開始するとき、1ずタイミング発生回路
6からイニシャルリセット信号3が出力され、PSシフ
トレジスタ9、Sシフトレジスタ20、SPシフトレジ
スタ11、データレジスタ12、DFF23がリセット
される。
Next, the operation will be explained. When the switch data transfer circuit shown in FIG. 1 starts operating, first the initial reset signal 3 is output from the timing generation circuit 6, and the PS shift register 9, S shift register 20, SP shift register 11, data register 12, and DFF 23 are output. is reset.

その後、@2図(a)に示すデータ転送開始信号4がタ
イミング発生回路6から出力され、PSシフトレジスタ
9、データレジスタ12、JKFF22のT端子、SP
シフトレジスタ11にそれぞれ送出される。
After that, the data transfer start signal 4 shown in FIG.
The signals are sent to the shift register 11, respectively.

これにより、PSシフトレジスタ9にスイッチ7からの
並列データ8が読み込まれ、一方データレジスタ12は
SPシフトレジスタ11のデータと読み込む。
As a result, the parallel data 8 from the switch 7 is read into the PS shift register 9, while the data from the SP shift register 11 is read into the data register 12.

続いて、第2図伽)に示すデータ転送タイミング5がタ
イミング発生回路6からPSシフトレジスタ9、Sシフ
トレジスタ20、JKFF22、DFF23、SPシフ
トレジスタ11にそれぞれ送出される。
Subsequently, data transfer timing 5 shown in FIG. 2 is sent from the timing generation circuit 6 to the PS shift register 9, S shift register 20, JKFF 22, DFF 23, and SP shift register 11, respectively.

このデータ転送タイミング5でi)Sシフトレジスタ9
が先に読み込んだ並列データ8を一つずつEXORゲー
ト21とSシフトレジスタ20へ出力する。
At this data transfer timing 5, i) S shift register 9
outputs the previously read parallel data 8 to the EXOR gate 21 and the S shift register 20 one by one.

Sシフトレジスタ20はイニシャルリセット信号3でリ
セットされるため、その直稜のデータ転送サイクル、す
なわち、1番目と2番目のデータ転送開始信号の間の第
2図(c)に示すシリアルデータ10はPSシフトレジ
スタ9のデータそのものとなり、このデータ転送サイク
ルが終了すると、SPシフトレジスタ11はPSシフト
レジスタ9と同一内容になる。
Since the S shift register 20 is reset by the initial reset signal 3, the serial data 10 shown in FIG. The data in the PS shift register 9 becomes the same, and when this data transfer cycle ends, the SP shift register 11 has the same contents as the PS shift register 9.

このとき、並列データ8が操作された状態にあると、シ
リアルデータ10に「不一致」データが出ることにな!
7、JKFF22 はセットされる。
At this time, if the parallel data 8 is being manipulated, "unmatched" data will appear in the serial data 10!
7, JKFF22 is set.

次のデータ転送開始信号4でデータレジスタ12はSP
シフトレジスタ11のデータを読み込み、DF’F23
はJKFF22  の「不一致」ビット検出結果を読み
込み、データ処理装置15へ割込みをかける。
With the next data transfer start signal 4, the data register 12 is set to SP.
Read the data of shift register 11, DF'F23
reads the “mismatch” bit detection result of the JKFF 22 and issues an interrupt to the data processing device 15.

このと@、JKFF22は次のデータ転送サイクルのた
めリセットされる必要があるなめ、このに端子にデータ
転送開始タイミングを入れ、シリアルデータ10の最終
ビットは無効レベルとする。
At this time, the JKFF 22 needs to be reset for the next data transfer cycle, so the data transfer start timing is input to this terminal, and the final bit of the serial data 10 is set to an invalid level.

データ処理装置15は1)FF23から割込みがあると
、データレジスタ12ヘゲート信号を出力し、データレ
ジスタ12から出力される並列データ14を読み込む。
The data processing device 15 1) When there is an interrupt from the FF 23, it outputs a gate signal to the data register 12 and reads the parallel data 14 output from the data register 12.

また、ゲート信号13はORゲート24を通してDFF
23をリセットし割込みをなくす。
Furthermore, the gate signal 13 is passed through the OR gate 24 to the DFF
23 and eliminates the interrupt.

このときのデータ処理装置15のデータレジスタ12の
並列データ14の読込みを行うプログラムのフローチャ
ートは第3図に示すとおりである。
The flowchart of the program for reading the parallel data 14 from the data register 12 of the data processing device 15 at this time is as shown in FIG.

この第3図において、ステップ5T11でDFF23か
らの割込みがあるか否かの判定処理を行って、その判定
の結果、割込みがなければ、何もせずに処理を終了する
In FIG. 3, in step 5T11, it is determined whether or not there is an interrupt from the DFF 23, and if the result of the determination is that there is no interrupt, the process ends without doing anything.

また、ステップST11において、割込みがあれば、ス
テップ5112でデータ処理装置15からゲート信号1
3をデータレジスタ12に出力し、このデータレジスタ
12からの出力される新しい並列データ14を読み込み
、その中の「不一致」データ、すなわち、変化データを
検出するデータ検出処理を行う。
If there is an interrupt in step ST11, the gate signal 1 is sent from the data processing device 15 in step 5112.
3 is output to the data register 12, new parallel data 14 output from the data register 12 is read, and data detection processing is performed to detect "unmatched" data, that is, change data.

次に、ステップST13で変化データに対応する必要処
置を行い、最後にステップST14でスイッチTの状態
を把握しておくために、前から保持している原データの
変化データに対応するビットを反転し、一連の処理を終
了する。
Next, in step ST13, necessary measures are taken corresponding to the changed data, and finally, in step ST14, in order to grasp the state of the switch T, the bit corresponding to the changed data of the original data held from before is inverted. Then, the series of processing ends.

なお、上記実施例では、Sシフトレジスタ20、gXO
Rゲート21を操作パネル1に置き、「不一致」データ
をシリアルデータ10としたが、第4図に示すように制
御部2にSシフトレジスタ20、EXORゲート21を
置き、スイッチ7の並列データ8をPsSシフトレジス
タ9シリアルデータ10に変換し、このシリアルデータ
10をそのままシリアルデータ10として伝送してもよ
く、このときデータ処理装置15の行う処理は上記実施
例の第3図と同じでよく、同様の効果が得られる。
In addition, in the above embodiment, the S shift register 20, gXO
The R gate 21 is placed on the operation panel 1, and the "mismatch" data is set as serial data 10. However, as shown in FIG. may be converted into serial data 10 in the PsS shift register 9, and this serial data 10 may be transmitted as is as serial data 10. In this case, the processing performed by the data processing device 15 may be the same as that in FIG. 3 of the above embodiment, A similar effect can be obtained.

また、第4図ではSPシフトレジスタ11にEXORゲ
ート21からの「不一致」シリアルデータを入力したが
、代りにシリアルデータ10を入れてもよい。このとき
には、データ処理装置15の行う処理は、第3図でのス
テップST12の変化データ検出処理の検出方法、およ
びステップ5T14でのデータ更新処理がそれぞれ第6
図のステップST1の比較処理、ステップST4でのデ
ータ更新処理と同じことになるが、得られる効果は第1
図の実施例と同じになる。
Further, in FIG. 4, the "mismatch" serial data from the EXOR gate 21 is input to the SP shift register 11, but the serial data 10 may be input instead. At this time, the processes performed by the data processing device 15 include the detection method of the change data detection process of step ST12 in FIG. 3, and the data update process of step 5T14, respectively.
The comparison process in step ST1 and the data update process in step ST4 in the figure are the same, but the effect obtained is the first.
It is the same as the embodiment shown in the figure.

さらに、上記第1図の実施例ではスイッチデータの転送
の場合について説明したが、変化するデジタルデータで
あれば、トラックポールなどの位置情報などでもよく、
上記実施例と同様の効果を奏する。
Furthermore, in the embodiment shown in FIG. 1 above, the case of transferring switch data was explained, but as long as it is digital data that changes, position information such as track poles etc. may also be used.
The same effects as in the above embodiment are achieved.

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

以上のように、この発明によれば、データ送出側でPS
シフトレジスタの出力シリアルデータとSシフトレジス
タの出力シリアルデータとの不一致をEXORゲートで
検出するようにしてデータの変化検出をデータ転送と同
時に行い、不一致険出時にのみデータ処理装置に新デー
タに対する処理を行わせるように構成したので、データ
処理装置は不必要に新データを読み込み、旧データと比
較する必要がなくなり、プログラム処理時間が短くなる
効果がある。
As described above, according to the present invention, the PS
By using an EXOR gate to detect a mismatch between the output serial data of the shift register and the output serial data of the S shift register, data changes are detected at the same time as data transfer, and only when a mismatch occurs, the data processing device is instructed to process new data. Since the data processing apparatus is configured to perform this, there is no need for the data processing device to read new data unnecessarily and compare it with old data, which has the effect of shortening the program processing time.

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

WJ1図はこの発明の一実施例によるデータ転送回路を
示すブロック図、第2図は同上実施例の動作を説明する
ための信号のタイミングチャート、第3図は同上実施例
におけるデータ処理装置のプログラムを示すフローチャ
ート、第4図はこの発明の他の実施例によるデータ転送
回路を示すブロック図、第5図は従来のデータ転送回路
を示すブロック図、第6図は従来のデータ転送回路にお
けるデータ処理装置のプログラムを示すフローチャ、ト
レジスータ、11はSPシフトレジスタ、12はデータ
レジスタ、15はデータ処理装置、20はSシフトレジ
スタ、21はEXORゲート、25は噴出保持回路。 なお、図中、同一符号は同一、又は相当部分を示す。 特許出願人   三愛電機株式会社 (外2名) F)マ  し−++++      −+−J第31
Fig. WJ1 is a block diagram showing a data transfer circuit according to an embodiment of the present invention, Fig. 2 is a signal timing chart for explaining the operation of the above embodiment, and Fig. 3 is a program of the data processing device in the above embodiment. 4 is a block diagram showing a data transfer circuit according to another embodiment of the present invention, FIG. 5 is a block diagram showing a conventional data transfer circuit, and FIG. 6 is a block diagram showing data processing in the conventional data transfer circuit. A flowchart showing a program of the device, a register, 11 an SP shift register, 12 a data register, 15 a data processing device, 20 an S shift register, 21 an EXOR gate, and 25 an ejection holding circuit. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Patent applicant: San-ai Electric Co., Ltd. (2 others)

Claims (1)

【特許請求の範囲】[Claims]  データ送出側の並列の変化するデジタルのデータを読
み込みシリアルデータに変換する並列−直列シフトレジ
スタと、この並列−直列シフトレジスタからのシリアル
データを読み込み前記並列−直列シフトレジスタが読み
込むデータ数だけシフトする第1シフトレジスタと、前
記並列−直列シフトレジスタからのシリアルデータと前
記第1シフトレジスタからのシリアルデータとの不一致
を検出する排他的論理和ゲートと、前記排他的論理和ゲ
ートから出力されるデータ上の不一致ビットを検出して
その結果を一時保持する受信側の検出保持回路と、前記
並列−直列シフトレジスタの出力データまたは前記排他
的論理和ゲートの出力データを入力して並列データに変
換する直列−並列シフトレジスタと、この直列−並列シ
フトレジスタで変換された並列データを一時保持するデ
ータレジスタと、上記排他的論理和ゲートが前記不一致
を検出したときのみ前記検出保持回路の出力で割込みが
かけられ前記データレジスタに保持された並列データを
取り込んで処理を行うデータ処理装置とを備えたデータ
転送回路。
A parallel-to-serial shift register that reads changing parallel digital data on the data sending side and converts it to serial data; and a parallel-to-serial shift register that reads serial data from this parallel-to-serial shift register and shifts it by the number of data read by the parallel-to-serial shift register. a first shift register; an exclusive OR gate that detects a mismatch between the serial data from the parallel-serial shift register and the serial data from the first shift register; and data output from the exclusive OR gate. a detection and holding circuit on the receiving side that detects the above mismatched bit and temporarily holds the result, and inputs the output data of the parallel-serial shift register or the output data of the exclusive OR gate and converts it into parallel data. A serial-parallel shift register, a data register that temporarily holds the parallel data converted by the serial-parallel shift register, and the exclusive OR gate generate an interrupt at the output of the detection and holding circuit only when the exclusive OR gate detects the mismatch. and a data processing device that takes in and processes parallel data that has been applied and is held in the data register.
JP15832787A 1987-06-25 1987-06-25 Data transfer circuit Pending JPS642420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15832787A JPS642420A (en) 1987-06-25 1987-06-25 Data transfer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15832787A JPS642420A (en) 1987-06-25 1987-06-25 Data transfer circuit

Publications (2)

Publication Number Publication Date
JPH012420A true JPH012420A (en) 1989-01-06
JPS642420A JPS642420A (en) 1989-01-06

Family

ID=15669218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15832787A Pending JPS642420A (en) 1987-06-25 1987-06-25 Data transfer circuit

Country Status (1)

Country Link
JP (1) JPS642420A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4412702B2 (en) 2003-03-28 2010-02-10 スミダコーポレーション株式会社 Inductance element

Similar Documents

Publication Publication Date Title
JPS62122432A (en) Error check system in serial data transfer
JP2641276B2 (en) Two-stage synchronizer
JP2648752B2 (en) Device that guarantees accurate decoding of data information
JPH012420A (en) data transfer circuit
US5734684A (en) Demodulation device and communication processing apparatus provided with same
KR19980701425A (en) Error Detection and Correction in Parallel Data Bus System
US5617433A (en) Serial data transfer apparatus
JP3217993B2 (en) Parity check circuit
JPH01118951A (en) Serial interface circuit
JP3001414B2 (en) Code error correction device
JP3052848B2 (en) Frame synchronization protection circuit
JP2674810B2 (en) Multiplexed N-unit coincidence protection circuit
SU1691965A1 (en) Information transmission device
JPH10111842A (en) Device for receiving synchronization serial transmission data
JP2561477B2 (en) Data transmission device
JPH04316126A (en) Code converting device
JPH03201837A (en) Digital cross connector
JPS5859651A (en) Digital signal transmitting method
JPH0481896B2 (en)
JPS612440A (en) Parallel data transmitter
JPS63200238A (en) Error recovering device
JPS63116537A (en) Synchronization protecting circuit
JPS62175041A (en) Block transfer system
JPS61169952A (en) Automatic checking method of one-bit error correcting function of memory
JPS63197151A (en) Serial data transfer system