JPS6369350A - Serial data processor - Google Patents

Serial data processor

Info

Publication number
JPS6369350A
JPS6369350A JP61214432A JP21443286A JPS6369350A JP S6369350 A JPS6369350 A JP S6369350A JP 61214432 A JP61214432 A JP 61214432A JP 21443286 A JP21443286 A JP 21443286A JP S6369350 A JPS6369350 A JP S6369350A
Authority
JP
Japan
Prior art keywords
serial
data
data processing
ack
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.)
Pending
Application number
JP61214432A
Other languages
Japanese (ja)
Inventor
Yukari Misawa
三沢 ゆかり
Shigetatsu Katori
香取 重達
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 JP61214432A priority Critical patent/JPS6369350A/en
Priority to DE3789743T priority patent/DE3789743T2/en
Priority to EP87112742A priority patent/EP0258872B1/en
Publication of JPS6369350A publication Critical patent/JPS6369350A/en
Priority to US07/569,539 priority patent/US4984190A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To contrive the improvement of the processing efficiency by allowing an output circuit to output a reception acknowledge signal (ACK) to a data line when the reception of a serial data on the data line is finished. CONSTITUTION:when a 1st serial data processor 100 has only to receive a reception data and it is not required for error check and data processing or the like after the reception, the software writes '0' to an ACK output selection flag 116. On the other hand, when it is required to apply error check and data processing or the like in a data processing section 103 after the reception, the software writes '1' to the ACK output selection flag 116. With the ACK output selection flag 116 set to '1', an ACK output circuit 114 outputs the reception acknowledge signal 122 when a reception signal 120 outputted from a serial clock control circuit 113 is at '1', and outputs the reception acknowledge signal 122 with the ACK output selection flag 116 set to '0' when a data processing end signal 121 reaches '1', by the control of the ACK write signal 119 outputted from the data processing section 103.

Description

【発明の詳細な説明】[Detailed description of the invention]

〔産業上の利用分野〕 本発明は、単一の7リアルクロツクに同期してデータを
7リアルに送受信するシリアルデータ処理装置に関し、
特にデータ受信の確認処理を行な5回路を含むシリアル
データ処理装置に関する。 〔従来の技術〕 1本のクロックラインと1本のデータラインを用いてL
SIチ、グ間で1ビ、トずつシリアルにデータを転送す
るシリアルデータ処理装置を第8図を参照して説明する
。 第1のシリアルデータ処理装置400は、シフトレジス
タ40】、シリアルクロ、り発生回路402、データ処
理部403.7リアルクロ、クツ−スフラグ405.シ
リアルデータ端子406゜シリアルクロ、り端子407
を含んでいる。シフトレジスタ401.データ処理部4
03.シリアルクロ、クツ−スフラグ405は、内部デ
ータバス408によ)相互に接続されている。データ処
理部403は、内部データバス408を介して、シフト
レジスタ401へ送信データを書き込む処理、シフトレ
ジスタ401から受信データを読み出す処理、およびシ
リアルクロ、クツ−スフラグ405のセットおよびクリ
ア処理を行なう機能を有スる。シフトレジスタ401は
、シリアルデータライン440を駆動するためのライン
ドライバ410を介してシリアルデータ端子406に接
続され、シリアルデータ端子406はシリアルデータラ
イン440に接続している。シリアルデータライン44
0は、またラインバッファ409を介してシフトレジス
タ401に接続されている0クリアルクロ、り発生回路
402はクロ、クドライバ411を介して、シリアルク
ロ、り端子407に接続されている。シリアルクロ、ク
ツ−スフラグ405はシリアルクロ、りの供給元を決定
するフラグで、これをセットすること罠よって本クリア
ルデータ処理装置がシリアルクロ、りの供給元(すなわ
ちマスターモード)となる。この時はクロックトライバ
411を制御して、シリアルクロ、り発生回路402の
出力を選択し、同時にシリアルクロ、り端子407から
7リアルクロ、り発生回路402で得られるシリアルク
ロ、りを出力する。一方、シリアルクロ、クツ−スフラ
グ405をクリアすると、本シリアルデータ処理装置が
シリアルクロ、りの供給を受けて送受信処理を行なうス
レーブモードな)、シリアルクロ、り端子407を介し
て外部からシリアルクロ、りを入力することになる。シ
リアルクロ、クツ−スフラグ405の状態によって選択
されたシリアルクロ。 りは、/ストレジスタ401のシフトクロ、りとしても
使用される。 第2のシリアルデータ処理装置420は、第1の7リア
ルデータ処理装置400と同一の構成で、内部バス42
8で相互接続されたシフトレジスタ421、シリアルク
ロ、り発生回路422.データ処理部423.シリアル
クロ、クツ−スフラグ425を含み、7リアルデータ端
子426およびシリアルクロ、り端子427を外部端子
として有する。データ処理部423けシフトレジスタ4
21へ送信データを書き込む処理、7フトレジスタ42
1から受信データを読み出す処理、及びシリアルクロ、
クツ−スフラグ425のセットおよびクリア処理を行な
う。シフトレジスタ421は、シリアルデータライン4
40を駆動するためのラインドライバ430を介して、
7リアルデータ端子426に接続され、シリアルデータ
端子426はシリアルデータライン440に接続されて
いる。 シリアルクロ、り発生回路422はクロ、クドライバ4
31を介してシリアルクロ、り端子427に接続されて
いる。本ンリアルデータ処理装置420マスターとなる
時はフラグ425がセットされ、スレーブとなる時はリ
セット(クリア)される。 第1のシリアルデータ処理装置400の7リアルデータ
端子406と7リアルクロ、り端子407は、単一のシ
リアルデータライン440と単一のシリアルクロ、クラ
イノ427を介して第2のシリアルデータ処理装置42
0のシリアルデータ端子426およびシリアルクロ、り
端子427にそれぞれ接続され
[Industrial Application Field] The present invention relates to a serial data processing device that transmits and receives data in 7 reals in synchronization with a single 7 real clock.
In particular, the present invention relates to a serial data processing device that performs data reception confirmation processing and includes five circuits. [Prior art] Using one clock line and one data line,
A serial data processing device that serially transfers data bit by bit between SI chips will be described with reference to FIG. The first serial data processing device 400 includes a shift register 40, a serial clock generation circuit 402, a data processing section 403.7, a real clock, and a cross flag 405. Serial data terminal 406゜Serial black terminal 407
Contains. Shift register 401. Data processing section 4
03. The serial clock and cross flags 405 are interconnected (by an internal data bus 408). The data processing unit 403 has the functions of writing transmission data to the shift register 401 via the internal data bus 408, reading reception data from the shift register 401, and setting and clearing the serial clock and cross flag 405. There is. The shift register 401 is connected to a serial data terminal 406 via a line driver 410 for driving a serial data line 440, and the serial data terminal 406 is connected to the serial data line 440. serial data line 44
0 is also connected to the shift register 401 via the line buffer 409, and the 0 clear generator circuit 402 is connected to the serial clock terminal 407 via the clock driver 411. The serial clock/cross flag 405 is a flag for determining the serial clock supply source, and by setting this flag, the present clear data processing device becomes the serial clock supply source (that is, master mode). At this time, the clock driver 411 is controlled to select the output of the serial clock/return generation circuit 402, and at the same time output the serial clock/return obtained by the serial clock/return generation circuit 402 from the serial clock/return terminal 407. . On the other hand, when the serial clock flag 405 is cleared, the serial data processing device enters a slave mode in which it receives the serial clock signal and performs transmission/reception processing. , ri will be input. Serial clock, serial clock selected according to the state of the cross flag 405. The register is also used as a shift clock for the /store register 401. The second serial data processing device 420 has the same configuration as the first 7 real data processing device 400, and has an internal bus 42.
8, a shift register 421, a serial clock generator circuit 422, and a serial clock generator circuit 422. Data processing unit 423. It includes a serial clock and cross flag 425, and has seven real data terminals 426 and a serial clock terminal 427 as external terminals. Data processing unit 423 shift register 4
Process of writing transmission data to 21, 7 foot register 42
Processing to read received data from 1 and serial clock,
The set flag 425 is set and cleared. The shift register 421 is connected to the serial data line 4.
Through a line driver 430 for driving 40,
7 real data terminal 426, and serial data terminal 426 is connected to serial data line 440. The serial black and white generator circuit 422 is a black and white driver 4.
It is connected to a serial clock terminal 427 via a serial cable 31. The flag 425 is set when the real data processing device 420 becomes a master, and is reset (cleared) when it becomes a slave. The 7 real data terminals 406 and 7 real data terminals 407 of the first serial data processing device 400 are connected to the second serial data processing device 42 through a single serial data line 440 and a single serial data line 427.
0 serial data terminal 426 and serial clock terminal 427, respectively.

【いる。 次に第9図を参照して第1の7リアルデータ処理装f1
400から第2のシリアルデータ処理装置420へ連続
して8ビ、トの7リアルデータを転送する際の7リアル
データライン440上のシリアルデータとシリアルクロ
ックライン441上のシリアルクロ、り間の同期関係を
説明する。 ここで、第1の7リアルデータ処理装置400のシリア
ルクロ、クツ−スフラグ405をセットし、これをシリ
アルクロ、りの供給元(マスター)とし、−万第2のシ
リアルデータ処理装置420の7リアルクロ、クツ−ス
フラグ425をリセ。 トして、これをスレーブとして扱うものとする。 シリアルクロ、クライノ441は、非転送時にはハイレ
ベルを保つ。データ処理部403が送信データを内部デ
ータバス408を経由して、’IIのタイミングで送信
データをシフトレジスタ401に転送すると、シリアル
クロック発生回路402は11のタイミングでシリアル
クロックの発生を開始し、シリアルクロ、り端子407
を介して7リアルクロックライン441上にクロ、りを
送出する。シフトレジスタ40】は、シリアルクロ。 り発生回路402から発生されるシリアルクロ。 りの立下り工、ジtlに同期して1ビ、ト分のり7ト動
作を行なめ、シフトレジスタ401の最終段の1ビ、ト
をライ/ドライバ4]0を介してクリアルデータ端子4
06からシリアルデータライノ440上に送出する。引
き続きり7トレジスタ401は、シリアルクロ、りの立
下シェ、ジであるtse tse f?* t、、 t
11ej13*”1istl?の各タイミングに同期し
て、シフト動作を繰り返し、シフトレジスタ401の最
終段にシフトされたピットを順にクリアルデータ端子4
06から7リアルデータライン440に送出する。 受信側である第2の7リアルデータ処理装置420は、
シリアルクロックライン441からシリアルクロ、り端
子427を経由して入力されるクリアルクロ、りの立上
り工、ジを冨に同期して、シリアルデータライノ440
上の最初の1ビツトをシリアルデータ端子426を介し
てシフトレジスタ421の初段にシフト入力する。引き
続き、t4・ t−優 t$・ tl・、 tl雪−h
4@F−のタイミングに同期して、シリアルデータライ
ン440を介してシリアルに転送された後続するピット
を順次シフトレジスタ421にシフト入力する。tl。 のタイミングで8ビ、トのデータの受信が終わると、シ
フトレジスタ421内に入力された8ビツトデータなデ
ータ処理部423が内部データバス428を介して読み
出し、データ処理を行う。第】のシリアルデータ処理装
置は第2のシリアルデータ処理装置におけるシリアルデ
ータ受信に関するデータ処理が完了するであろう予め定
められた期間送信処理を保留し、その後再び次の送信処
理を開始する。 〔発明が解決しようとする問題点〕 上述した第2のシリアルデータ処理装置は、8ピ、ト(
ここでは1バイト)のシリアルデータを受信した後、受
信確認信号を第1のシリアルデータ処理装置に送ること
をやっていない。そのため、複数バイトの連続したシリ
アルデータ転送途中に受信側で何らかの異常事態が発生
し受信を中止したい場合でも、送信側へ受信拒否を通知
する手段をもっていない。従って、この問題を解決する
ためには、受信側が受信データの処理を終了したら、ソ
フトウェア処理により受信確認信号を送信側へ出力しな
ければならない。しかし、仁の方法では、受信側は1バ
イトの受信毎にソフトウェア処理により受信確認信号を
作成しなければならないので、CPUの処理効率が著し
く低下するという大きな欠点がある。 〔問題点を解決するための手段〕 本発明のシリアルデータ処理装置は、データラインに受
信確認信号を出力する出力回路と、シリアルデータの受
信を終了したことを出力回路に知らせる第1の信号を発
生する回路と、受信したデータの処理が終了したことを
知らせる第2の信号を発生する回路と、受信確認信号の
出力を制御する受信確認信号出力選択フラグとを有し、
受信確認信号選択フラグの状態罠より第1の信号あるい
は第2の信号に同期して受信確認信号を出力する仁とを
特徴とする。 〔実施例〕 次に本発明の実施例を図面を参照して説明する。 第1図は本発明の第1の実施例を用いたシリアル通信シ
ステムの構成図である。第1の7リアルデータ処理装置
100は、シフトレジスタ1o】。 シリアルクロ、り発生回路1o2.データ処理部103
、シリアルクロ、クツ−スフラグ1o5゜シリアルデー
タ端子106.シリアルクロ、り淘子】07.内部デー
タバス1o8.ラインパ、7ア109.ライントライバ
11o、シリアルクロ、り制御回路113.受信確認信
号(以下ACKという)検出回路104.ACK出力回
%114゜クロ、クドライバ111.ACK検出フラグ
1】5゜ACK出力選択フラグ116.およびACK出
カ出力イバ112を含む。このうち、シフトレジスタ2
0]、yリアルクロ、り発生回路102.y’−夕処理
部103.シリアルクロ、クツ−スフラグ】05.シリ
アルデータ端子106.シリアルクロック端子107.
内部データバス1o8.ライ7バ、ファ109の各機能
は第8図で示したものと同じであるためここでの詳細な
説明は省略し、その他の構成要素の機能を以下説明する
。 シリアルクロ、り制御回路1】3は、ACKナノプリン
グ信号】17を出力する。このACKサンプリング信号
117は所定長のデータを受信した後アクティブになシ
、ACK検出回路】04に対し
[There is. Next, referring to FIG. 9, the first 7 real data processing unit f1
Synchronization between the serial data on the 7 real data line 440 and the serial clock on the serial clock line 441 when successively transferring 8 bits of 7 real data from the 400 to the second serial data processing device 420 Explain the relationship. Here, the serial clock flag 405 of the first 7 real data processing device 400 is set, and this is set as the serial clock supply source (master). Real black, Kutosu flag 425 reissue. and treat it as a slave. The serial clock and Cryno 441 maintain a high level during non-transfer. When the data processing unit 403 transfers the transmission data to the shift register 401 via the internal data bus 408 at timing 'II, the serial clock generation circuit 402 starts generating a serial clock at timing 11. Serial black, terminal 407
The clock signal is sent out on the 7 real clock line 441 via the real clock line 441. Shift register 40] is a serial clock. Serial clock generated from the serial clock generation circuit 402. The falling edge of the shift register 401 performs a 1-bit, 7-bit operation in synchronization with the digital tl, and outputs the 1-bit and 7 bits of the final stage of the shift register 401 to the clear data terminal via the write/driver 4]0. 4
06 to the serial data rhino 440. Continuing, the register 401 is the serial clock, the falling edge of the serial clock, and the tse tse f? *t,,t
The shift operation is repeated in synchronization with each timing of 11ej13*"1istl?, and the pits shifted to the final stage of the shift register 401 are sequentially transferred to the clear data terminal 4.
06 to 7 real data lines 440. The second 7 real data processing device 420, which is the receiving side,
The serial clock line 441 synchronizes the serial clock signal input via the serial terminal 427 with the serial clock signal, the serial clock signal, and the serial clock input via the serial terminal 427.
The first 1 bit above is shifted into the first stage of the shift register 421 via the serial data terminal 426. Continuing, t4・t-yu t$・tl・, tl snow-h
In synchronization with the timing of 4@F-, subsequent pits serially transferred via the serial data line 440 are sequentially shifted into the shift register 421. tl. When the reception of the 8-bit data is completed at the timing of , the data processing unit 423 reads out the 8-bit data input into the shift register 421 via the internal data bus 428 and processes the data. The #th serial data processing device suspends the transmission process for a predetermined period during which the data processing related to serial data reception in the second serial data processing device will be completed, and then starts the next transmission process again. [Problems to be Solved by the Invention] The above-mentioned second serial data processing device has 8 pins and 8 pins (
Here, after receiving 1 byte of serial data, a reception confirmation signal is not sent to the first serial data processing device. Therefore, even if some abnormality occurs on the receiving side during the transfer of consecutive serial data of a plurality of bytes and the receiving side wants to cancel the reception, there is no means to notify the sending side of the rejection of reception. Therefore, in order to solve this problem, when the receiving side finishes processing the received data, it is necessary to output a reception confirmation signal to the transmitting side by software processing. However, Jin's method has a major drawback in that the receiving side must create a reception confirmation signal through software processing every time one byte is received, which significantly reduces the processing efficiency of the CPU. [Means for Solving the Problems] The serial data processing device of the present invention includes an output circuit that outputs a reception confirmation signal to the data line, and a first signal that notifies the output circuit that reception of serial data has ended. a circuit that generates a second signal to notify that processing of the received data has been completed; and a reception confirmation signal output selection flag that controls output of the reception confirmation signal;
The reception confirmation signal is output in synchronization with the first signal or the second signal based on the state trap of the reception confirmation signal selection flag. [Example] Next, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a serial communication system using a first embodiment of the present invention. The first 7 real data processing device 100 is a shift register 1o]. Serial black and white generation circuit 1o2. Data processing unit 103
, serial clock, cross flag 1o5° serial data terminal 106. Serial Kuro, Ryuko】07. Internal data bus 1o8. Linepa, 7A 109. Line driver 11o, serial clock control circuit 113. Receipt confirmation signal (hereinafter referred to as ACK) detection circuit 104. ACK output times% 114 degrees, driver 111. ACK detection flag 1]5゜ACK output selection flag 116. and an ACK output driver 112. Of these, shift register 2
0], y real black, ri generation circuit 102. y'-event processing unit 103. Serial black, shoes flag] 05. Serial data terminal 106. Serial clock terminal 107.
Internal data bus 1o8. Since the functions of the driver 7 and the fiber 109 are the same as those shown in FIG. 8, a detailed explanation will be omitted here, and the functions of the other components will be explained below. The serial clock control circuit 1]3 outputs an ACK nanopulling signal [17]. This ACK sampling signal 117 becomes active after receiving data of a predetermined length.

【、受信確認信号のサン
グリノブ期間を指定するために用いられる。ACK出力
回路114は、ACK出力選択フラグ116を含む。 第1のシリアルデータ処理装置100が受信データを受
信するだけで良く、受信後にエラーチェ、りやデータ処
理等の必要がない場合は、ソフトウェアにより、ACK
出力選択フラグ1】6に′O”を書き込む。−刀、受信
後にデータ処理部】03でのエラーチェ、りやデータ処
理等の必要がある場合)言、ソフトウェアにより、AC
K出力選択フラグ116に’l’を書き込む。ACK出
力回路114はACK出力選択フラグ116が11mの
ときは、シリアルクロ、り制御回路113から出力され
る受信信号120が@1”Kなりたときに受信確認信号
】22を出力し、ACK出力選択フラグ116が10”
のときは、データ処理部103かも出力するACKライ
ト信号119の制御により、データ処理終了信号121
が111になったときに受信確認信号122を出力する
。 ACK検出回路104は、ACK検出フラグ115を含
む。ACK検出フラグ115はACKサンプリング信号
】】7の制御でシリアルデータライン】60上に後述す
る受信確認信号が出力されたことを確認するとセットさ
れる。データ処理部103は、ACK検出フラグ115
の内容を、内部データバス108を介して読み出すこと
ができ、シリアル送信の開始に同期してACK検出フラ
グ115をクリアする。ライントライバ110は、シリ
アルデータライノ160を駆動するためのドライバで、
ACK検出回路104によって制御される。 第2のシリアルデータ処理装置130は、シフトレジス
タ131.シリアルクロ、り発生回路132、データ処
理部133.シリアルクロ、クツ−スフラグ】35.シ
リアルデータ端子136゜シリアルクロック端子137
.内部データI(ス]38.ライツバ、フチ139.ラ
イントライバ140、クリアルクロ、り制御回路143
.ACK検出回路134.ACK出力回路144.クロ
、クドライバ141.ACK検出フラグ145゜ACK
出力選択フラグ146.およびACK出力ドライバ】4
2を含み、構成及び機能は、第1のシリアルデータ処理
装置100と同一であるのでここでの詳細な説明は省略
する。 次に第5図を参照して、ACK出力選択7ラグ146が
Jsでデータ受信後にエラーチェ、りやデータ処理等の
必要がない場合において、第1の7リアルデータ処理装
置100から第2のシリアルデータ処理装置130へ連
続して8ビ、トのデータを転送する際の7リアルデータ
ライノ160上のシリアルデータと7リアルクロックラ
イン161上の7リアルクロ、り間の同期関係を説明す
る。 本実施例では、第1のシリアルデータ処理装置100上
のシリアルクロ、クツ−スフラグ105はセットされ、
第1の7リアルデータ処理装置100がシリアルクロ、
りの供給元(マスター)となるよう設定されており、一
方第2のシリアルデータ処理装置130上のシリアルク
ロックソースフラグ135はクリアされ、シリアルクロ
、り端子137からシリアルクロ、りを入力して送受信
を行うスレーブとなるように設定されているものとする
。 シリアルクロックライン161は非転送時には、ハイレ
ベルを保つ。データ処理部103が内部データバス10
8を経由してtwo・のタイミングで送信データをシフ
トレジスタ101に転送すると、ACK検出7ラグ11
5が同じ<tlo・ のタイミングでクリアされる。シ
リアルクロ、り発生回路】02は、!1(Hのタイミン
グでシリアルクロ。 りの発生を開始し、シリアルクロ、り端子107を介し
[, used to specify the Sangrinob period of the acknowledgment signal. ACK output circuit 114 includes an ACK output selection flag 116. If the first serial data processing device 100 only needs to receive the received data and does not need to perform error checking, data processing, etc. after receiving the data, the software can
Write 'O' to the output selection flag 1/6. - If there is a need for error checking, data processing, etc. in the data processing unit/03 after reception, the software will
Write 'l' in the K output selection flag 116. When the ACK output selection flag 116 is 11m, the ACK output circuit 114 outputs a reception confirmation signal 22 when the reception signal 120 output from the serial clock control circuit 113 becomes @1"K, and outputs an ACK output. Selection flag 116 is 10"
In this case, the data processing end signal 121 is output under the control of the ACK write signal 119 which is also output by the data processing unit 103.
When the number reaches 111, a reception confirmation signal 122 is output. ACK detection circuit 104 includes an ACK detection flag 115. The ACK detection flag 115 is set when it is confirmed that a reception confirmation signal, which will be described later, is output on the serial data line [60] under the control of the ACK sampling signal [7]. The data processing unit 103 uses an ACK detection flag 115.
can be read out via the internal data bus 108, and the ACK detection flag 115 is cleared in synchronization with the start of serial transmission. The line driver 110 is a driver for driving the serial data rhino 160.
Controlled by ACK detection circuit 104. The second serial data processing device 130 includes shift registers 131 . Serial clock generation circuit 132, data processing section 133. Serial black, Kutusu flag] 35. Serial data terminal 136° Serial clock terminal 137
.. Internal data I (S) 38. Right bar, border 139. Line driver 140, clear black, rear control circuit 143
.. ACK detection circuit 134. ACK output circuit 144. Kuro, Ku driver 141. ACK detection flag 145°ACK
Output selection flag 146. and ACK output driver】4
Since the configuration and functions are the same as those of the first serial data processing device 100, detailed description thereof will be omitted here. Next, referring to FIG. 5, when the ACK output selection 7 lag 146 is Js and there is no need for error checking, data processing, etc. after data reception, the second serial data is output from the first 7 real data processing device 100. The synchronization relationship between the serial data on the 7 real data line 160 and the 7 real clock line on the 7 real clock line 161 when 8 bit data is continuously transferred to the processing device 130 will be explained. In this embodiment, the serial cross flag 105 on the first serial data processing device 100 is set;
The first 7 real data processing device 100 is a serial
On the other hand, the serial clock source flag 135 on the second serial data processing device 130 is cleared and the serial clock is input from the serial clock terminal 137. It is assumed that it is set to be a slave that performs transmission and reception. The serial clock line 161 maintains a high level during non-transfer. The data processing unit 103 is connected to the internal data bus 10
When the transmission data is transferred to the shift register 101 at the timing of two・ via 8, ACK detection 7 lag 11
5 is cleared at the same timing of <tlo・. Serial black, ri generation circuit] 02 is! 1 (H timing), the serial clock signal starts to be generated, and the serial clock signal is output via the terminal 107.

【このクロ、りをシリアルクロ、クライノ]61に送出
する。 シフトレジスタ】0】はクリアル制御回路1】3から発
生される7リアルクロツクの立下り工、ジtllll 
 に同期して1ビ、ト分のフット動作を行ない、シフト
レジスタ】01の最終段の1ビツトをライ7ドライバ1
】0を介してシリアルデータ端子106から7リアルデ
ータライン160に送出する。引き続き、シフトレジス
タ10】はシリアルクロ、りの立下り工、ジであるtl
・3.tl・S。 t1@t e’!III t flll * FIS 
−fillの各タイミングに同期して、シフト動作を繰
り返し、シフトレジスタ10】の最終段に77トされた
ビットな順にシリアルデータ端子106から、シリアル
データライン160に送出する。111m のタイミン
グで8に’、)(1バイト)の7リアルデータの送出が
終了すると、ACK検出回路104が次の立下りttt
y  のタイミングでライントライバ110をハイレベ
ルにする。同じt1!7のタイミングでシリアルクロッ
ク制御回路】13は、ACKサングリ7グ信号117を
出力する。シリアルクロ、り発生回路102はこれと無
関係にクリアルクロ。 りの発生を続ける。ACK検出回路104は立上り工、
ジt18.のタイミングに同期して、シリアルデータラ
イノ160をサングリノブし、第2のシリアルデータ処
理装置130から受信確認信号として送られてくるロウ
レベルの信号の検出を開始する。 第2のシリアルデータ処理装置130は7リアルクロ、
クライノ161かもシリアルクロ、り端子137を介し
て入力されるシリアルクロ、りの立上り工、ジt1・3
に同期して、シリアルデータライン160上の最初の1
ビ、トのデータをシリアルデータ端子136を介してシ
フトレジスタ131にシフト入力する。引き続き、’l
・4.tl・・。 重1@l * t11@ * ’11m −F14 e
 t11@のタイミングに同期してシリアルデータライ
ン160を介シて入力される各ビットのデータを順次シ
フトレジスタ131に77ト入力する。シフトクロ、り
の立上り工、ジtll−のタイミングで、8ビ、ト(1
バイト)のシリアルデータの受信が終了すると、データ
処理部133はシフトレジスタ131に入力された8ビ
、トのデータを内部データバス】38に読み出す。 7リアルクロ、り制御回路143は8ビ、ト目のシリア
ルデータな受信するタイミングt 11@で受信終了信
号150をACK出力回路144に入力する。ACK出
力選択フラグ146が@1mであるので、受信終了信号
150が人力されると他の信号には関係な(ACK出力
回路144は送信側である第1の7リアルデータ処理装
置]00への受信確認信号として、次の立下クエッジt
ll?のタイミングでACK出力ドライバ142を介し
て、クリアルデータ端子136から7リアルデータライ
ノ160にロウレベルの信号を出力する。 第1の7リアルデータ処理装孟100のACK検出回路
104は、シリアルクロ、り立上シェ。 ジ1118  のタイミングでシリアルデータライノ1
60をサングリノブして、第2のシリアルデータ処理装
置130から受信確認信号として送出されたロウレベル
の信号を検出すると、ACK検出フラグ115をセット
する。シリアルクロ、り制御回路113は、次の立上り
工、ジtax。のタイミングでシリアルクロ、りの出力
を停止する。データ処理部103はACK検出回路10
4から内部データバス108を介してACK検出フラグ
115がセットされたことを確認すると、第2のシリア
ルデータ処理装置130がデータ受信におけるすべての
処理が終了したと判断して、1バイト分のシリアルデー
タの送信処理を終了する。データ処理部103はその後
シフトレジスタ16】に次の送信データを転送し、次の
7リアルデータの送信処理を開始する。 ACK出力選択フラグ116が@1”のときの第2のシ
リアルデータ処理装置130から第1のシリアルデータ
処理装置100へ連続して8ビ。 トのデータを転送する際のシリアルデータライン160
上のシリアルデータとシリアルクロ、クライノ】61上
の7リアルクロ、り間の同期関係は、第1のシリアルデ
ータ処理装置100から第2のシリアルデータ処理装置
】30への転送の際の同期関係と同一であるのでここで
の詳細な説明は省略する。 次に第6図を参照して、ACK出力選択フラグ146が
10#でデータ受信後にエラーチェ、り及びデータ処理
等の必要がある場合において、第1の7リアルデータ処
理装置100から第2のシリアルデータ処理装置】30
へ連続し0ビ、トノデータを転送する際の7リアルデー
タライノ】60上のシリアルデータとシリアルクロ、ク
ライノ161上の7リアルクロ、り間の同期関係を説明
する。 第1の7リアルデータ処理装置100はマスター、第2
の7リアルデータ処理装置130はスレーブとする。 データ処理部】03が内部データバス108を経由して
ts・・のタイミングで送信データをシフトレジスタ1
01に転送するとACK検出フラグ1】5が同じts・
・のタイミングでクリアされる。 シリアルクロ、り発生回路102はt set のタイ
ミングでシリアルクロ、りの発生を開始し、シリアルク
ロック端子107から7リアルクロックライン161に
クロ、りが送出される。シフトレジスタ101はクリア
ル制御回路】】3から発生されるシリアルクロ、りの立
下り工、ジt III  に同期して、1ビ、ト分のシ
フト動作を行ない、/7トレジスタ101の最終段のピ
ットなライントライバ110を介してクリアルデータ端
子106からシリアルデータライン160に送出する。 引き続き、7フトレジスタ101け7リアルクロ、りの
立下り1ツジであるts・3・t sos・ts・1・
tme・ t sxt・tN1@ @ tlllの各タ
イミングに同期してシフト動作を繰り返し、シフトレジ
スタ】01の最終段に7フトされたと、トを順に7リア
ルデータライノ】60に送出する。 7リアルクロツクの立下り工、ジt Ill のタイミ
ングで8ビ、トのシリアルデータの送出がすべて終了す
ると、ACK検出回路104が次の立下り工、ジt 1
1?  のタイミングでライントライバ1】0をハイレ
ベルにする。同じt sly のタイミングで7リアル
クロ、り制御回路113はACKす/グリ7グ信号11
7を出力する。シリアルクロック発生回路102はシリ
アルクロ、りの発生を続けておシ、ACK検出回路10
4は立上シェ、ジ’ 818 * tsta・・・・・
・の各タイミングに同期して、シリアルデータライン1
60をサップ’IJ ;7グし、第2のシリアルデータ
処理袋[130から受信確認信号として送られてくるロ
ウレベルの信号の検出を行なう◇ 第2の7リアルデータ処理装置]30は、シリアルクロ
ックライン161からシリアルクロ、り端子137を介
して入力される7リアルクロ、りの立上シエ、ジt s
owに同期して、シリアルデータライン160からの最
初の1ピ、トのデータをシリアルデータ端子136を介
して7フトレジスタ131にシフト入力する。引き続き
s  ts・4゜t3@@ e ’$@I * tst
e I tsta I tsta 曽tsts の各タ
イミングに同期して後続する各ビットのデータを順次シ
フトレジスタ13】に77ト入力する。 7フトクロ、りの立上り工、ジt31@ のタイミング
で、8ビ、ト(1バイト)のシリアルデータの受信が終
了すると、データ処理部133は7フトレジスタ131
に入力された8ビ、トのデータを内部データバス138
を介して読み出し、必要な処理を行なう。 シリアルクロ、り制御回路143は、8ビツト目の7リ
アルデータを受信するタイミングt31・で受信確認信
号150を″】”にし、仁れをACK出力回路】44に
入力する。このとき、ACK出力選択フラグ】46が1
0#であるので受信確認信号は出力されない。 データ処理部133はこの受信データに対する必要な処
理をt4・・のタイミングで終了すると、ACK出力回
路】46にACKライト信号】49を出力する。この信
号149に同期し
[Send this black and white data to serial black and white] 61. Shift register]0] is the falling edge of the 7 real clock generated from the clear control circuit 1]3.
Performs foot operation for 1 bit in synchronization with , and transfers 1 bit of the final stage of shift register
] from the serial data terminal 106 to the real data line 160 via the real data line 160. Continuing, the shift register 10] is a serial clock, a rising edge, and a tl
・3. tl・S. t1@t e'! III t fullll * FIS
The shift operation is repeated in synchronization with each timing of -fill, and the bits are sent from the serial data terminal 106 to the serial data line 160 in the order of the bits stored in the final stage of the shift register 10. When the sending of 7 real data of ',) (1 byte) is completed at the timing of 111m, the ACK detection circuit 104 detects the next falling edge ttt.
The line driver 110 is set to high level at timing y. At the same timing of t1!7, the serial clock control circuit 13 outputs an ACK sang signal 117. The serial clock generation circuit 102 generates a clear clock regardless of this. ri continues to occur. The ACK detection circuit 104 is a riser,
Ji t18. In synchronization with the timing of , the serial data rhino 160 is Sangli-nobbed to start detecting a low-level signal sent from the second serial data processing device 130 as a reception confirmation signal. The second serial data processing device 130 has 7 real clocks,
Clyno 161 also has serial clock, serial clock input via terminal 137, riser, and t1/3.
The first one on serial data line 160
Bit and bit data are shifted into the shift register 131 via the serial data terminal 136. Continue, 'l
・4. tl... weight1@l * t11@ * '11m -F14 e
Seventy-seven bits of data input via the serial data line 160 are sequentially input to the shift register 131 in synchronization with the timing of t11@. At the timing of shift black, ri no riser, and ji tll-, 8 bit, g (1
When the reception of the 8-bit serial data (byte) is completed, the data processing unit 133 reads out the 8-bit data input to the shift register 131 onto the internal data bus 38. The 7 real clock control circuit 143 inputs the reception end signal 150 to the ACK output circuit 144 at the timing t11@ of receiving the 8th bit serial data. Since the ACK output selection flag 146 is @1m, when the reception end signal 150 is manually input, it has no relation to other signals (the ACK output circuit 144 is sent to the first 7 real data processing device on the transmitting side) 00. As a reception confirmation signal, the next falling quagge t
Ill? At this timing, a low level signal is output from the clear data terminal 136 to the 7 real data rhino 160 via the ACK output driver 142. The ACK detection circuit 104 of the first 7 real data processing device 100 performs a serial clock start-up process. Serial data rhino 1 at the timing of 1118
60 and detects a low level signal sent as a reception confirmation signal from the second serial data processing device 130, the ACK detection flag 115 is set. The serial clock control circuit 113 controls the next riser and tax. Serial clock output is stopped at the timing of . The data processing section 103 is the ACK detection circuit 10
4 through the internal data bus 108, the second serial data processing device 130 determines that all processing in data reception has been completed, and transfers 1 byte of serial Finish the data transmission process. The data processing unit 103 then transfers the next transmission data to the shift register 16 and starts the transmission process of the next 7 real data. The serial data line 160 when 8 bits of data are continuously transferred from the second serial data processing device 130 to the first serial data processing device 100 when the ACK output selection flag 116 is @1”.
The synchronization relationship between the above serial data and the serial data and the 7 real clocks on 61 is the same as the synchronization relationship during transfer from the first serial data processing device 100 to the second serial data processing device 30. Since they are the same, detailed explanation will be omitted here. Next, referring to FIG. 6, when the ACK output selection flag 146 is 10# and it is necessary to perform error checking, data processing, etc. after data reception, the second serial Data processing device] 30
The synchronization relationship between the serial data and serial data on the Rhino 60 and the 7 real black and ri on the Cryno 161 when continuously transferring 0-bit and tono data to the Rhino 161 will be explained. The first 7 real data processing device 100 is the master, the second
7. The real data processing device 130 is assumed to be a slave. [Data processing unit] 03 transfers the transmission data to the shift register 1 via the internal data bus 108 at the timing of ts...
When transferred to 01, the ACK detection flag 1]5 is the same ts.
・It will be cleared at the timing of. The serial clock generation circuit 102 starts generating serial clocks and clocks at the timing t set , and the clocks and clocks are sent from the serial clock terminal 107 to the 7 real clock line 161 . The shift register 101 is a clear control circuit that performs a shift operation for 1 bit in synchronization with the falling edge of the serial clock generated from 3, The data is sent from the clear data terminal 106 to the serial data line 160 via the pit line driver 110. Continuing, 7 foot register 101 digit 7 real black, 1 falling edge of ts・3・t sos・ts・1・
The shift operation is repeated in synchronization with each timing of tme, tsxt, tN1@@tlll, and when the shift register 7 is shifted to the final stage of shift register 01, it is sequentially sent to 7 real data rhino 60. 7 When all 8 bits of serial data have been sent at the timing of the falling edge of the real clock, bit Ill, the ACK detection circuit 104 detects the next falling edge of the real clock, bit 1.
1? Line driver 1]0 is set to high level at the timing of . At the same timing of tsly, the control circuit 113 outputs an ACK signal 11.
Outputs 7. The serial clock generation circuit 102 continues to generate serial clock signals and the ACK detection circuit 10.
4 stands up, ji' 818 * tsta...
・In synchronization with each timing, serial data line 1
The second serial data processing bag [detects the low level signal sent from 130 as a reception confirmation signal ◇ Second 7 real data processing device] 30 is a serial clock Serial clock input from line 161, 7 real clock input via terminal 137, start-up time, dits
In synchronization with OW, the first 1-bit data from the serial data line 160 is shifted into the 7-ft register 131 via the serial data terminal 136. Continue s ts・4゜t3@@ e '$@I * tst
In synchronization with each timing of e I tsta I tsta so tsts, 77 pieces of data of each subsequent bit are sequentially input to the shift register 13. When the reception of 8 bits (1 byte) of serial data is completed at the timing of 7 feet, 7 feet, and 7 feet register 131, the data processing unit 133
The 8-bit data input to the internal data bus 138
and perform the necessary processing. The serial clock control circuit 143 sets the reception confirmation signal 150 to "]" at timing t31 when receiving the 8th bit of 7 real data, and inputs the error to the ACK output circuit 44. At this time, the ACK output selection flag]46 is 1
Since it is 0#, no reception confirmation signal is output. When the data processing section 133 finishes the necessary processing on the received data at timing t4..., it outputs an ACK write signal 49 to the ACK output circuit 46. Synchronize with this signal 149

【、データ処理部133から出力され
た終了信号″1”が内部データバス138および信号線
151を介してACK出力回路】44に入力される。A
CK出力回路144は送信側である第1の7リアルデー
タ処理装置100への受信確認信号として、次の立下シ
エ、ジt4・l のタイミングでACK出力ドライバ1
42を介して、クリアルデータi子136から7リアル
データライン160にロウレベルの信号を出力する。 第1のシリアルデータ処理装置100内のACK検出回
路104はシリアルクロ、りの立上シエ、ジt4・、の
タイミングで7リアルデータライン160がロウレベル
にな)、第2の7リアルデータ処理装置130が受信確
認信号を出力したことを確認すると、ACK検出フラグ
1】5をセットする。シリアルクロ、り制御回路1】3
は、次の立上り工、ジt 464 のタイミングでシリ
アルクロックの出力を停止する。データ処理部103は
ACK検出フラグ115がセットされたことを確認する
と、第2の7リアルデータ処理装置】30がデータ受信
におけるすべての処理が終了したと判断し、1バイト分
のシリアルデータの送信処理を終了する。仁の後、デー
タ処理部103は77トレジスタ10】に次の送信デー
タを設定することにより、次の7リアルデータの送信を
再開することができる。 第1の7リアルデータ処理装fi!:100は受信確認
信号が返送されるまでの時間を自分で管理することによ
り、受信確認信号がACKす/グリノブ信号117をセ
ットシてからT】の期間を過ぎても第2の7リアルデー
タ処理装置130から出力されない場合は、第2のシリ
アルデータ処理装置】30で異常事態が発生したとして
、第1のシリアルデータ処理装置100からの7リアル
データの送信を中止することができる。 ACK出力選択フラグ116が10”のときの第2のシ
リアルデータ処理装置130から第1のシリアルデータ
処理装置100へ連続して8ピ。 トデータを転送する際のシリアルデータライン160上
のシリアルデータとシリアルクロ、クライノ161上の
7リアルクロ、り間の同期関係は、第1の7リアルデー
タ処理装置100から、第2のシリアルデータ処理装置
130への転送の際の同期関係と同一であるので、ここ
での詳細な説明は省略する。 〔実施例2〕 本発明の第2の実施例について第2図を用いて説明する
。 第1のシリアルデータ処理装置】00は、シフトレジス
タ101.7リアルクロ、り発生回路102、データ処
理部103.シリアルクロ、クツ−スフラグ105.シ
リアルデータ端子106゜7リアルクロ、り端子107
.内部データバス108、ラインバッファ109.ライ
ントライバ110.7リアルクロ、り制御回路113.
ACK検出回路104.ACK出力回路114.クロ。 クドライバ111.およびACK出力ドライバ112を
含む。このうち、ACK出力回路114以外の機能は第
1の実施例で示したものと同じであるため、ここでの詳
細な説明は省略する。 ACK出力回路114は、ACK出力選択フラグ】16
およびシリアルクロ、クカウノタ125を含む。シリア
ルクロ、クカウンタ125について第3図を用いて説明
する。シリアルクロ、クカウノタ】25は、減算器】2
7とカウントレジスタ】26を含む。カウントレジスタ
126には、データ処理部103から内部データバス1
08を経由して、入力される受信確認信号を出力するた
めのタイミノグ情報nが制御信号128に同期して格納
される。減算器127は、シリアルクロ。 りの発生が開始されると、カウントレジスタ126に格
納されているカクント数nを7リアルクロ。 りの立下り工、ジに同期して11mナクデクリメントす
る。ボローが発生すると、ACK出力回路114内のA
CK発生回路に11′を出力し、ACK出力ドライバ1
12を介してシリアルデータ端子】06からシリアルデ
ータライノ160上に受信確認信号としてのロワレベル
の信号を出力する。ACK出力選択フラグ116は第1
の実施例と同様にソフト9エア処理によりあらかじめ@
0”又は11”に設定される。 第2の7リアルデータ処理装置130の構成及び機能は
、第1のシリアルデータ処理装置】00と同一であるの
でここでの詳細な説明は省略する。 次に第3図を参照して、第1のVリアルデータ処理装置
100から第2のシリアルデータ処理装置130へ連続
して8ビ、ト(1バイト)のデータを転送する際の動作
を説明する。ソフトウェア処理により、ACK出力選択
フラグに10”を設定した場合は第1の実施例と同一の
処理を行なうため詳細な説明は省略する。 ソフト9エア処理によ、9.ACK出力選択フラグ】4
6に11”を設定した場合は、力9ントレジスタ156
内の設定値に応じて、受信確認信号を出力するタイミン
グを、8発註、9発目、10発目・・・・・・と任意に
選択することができる。例えば、受信データの処理がt
l・畳のタイミングまでに終了する場合には、10発0
に受信確認信号が出せるようにカウントレジスタ156
にはあらかじめ19”を設定しておけばよい・ 第1のシリアルデータ処理装置100は第1の実施例と
同様に7リアルクロ、りの立下り工、ジF@1  * 
 ’?e3  e  tyes  I  @t@t  
@  @10@  e  htt  −t713 * 
tマ1$の各タイミングに同期してシリアルデータライ
ノ160上にデータを送出する。 第2の7リアルデータ処理装置】30は、シリアルクロ
、クライノ161からシリアルクロ、り端子137を介
して入力されるシリアルクロ、りの立上りエツジt1・
雪・t 714・t?I・・tl・魯・ht・・t 7
1m・t?14・t?1番の各タイミングに同期して、
7リアルデータライン160からのシリアルデータな順
次シフトレジスタ131にシフト入力する。7リアルク
ロ、りの立上り工、ジt、1゜0タイミングで8と、ト
の7リアルデータの受信が終了すると、データ処理部1
33はシフトレジスタ131内の8ビ、トデータを内部
チー’)Ax138に読み出す。さらに、第1のシリア
ルクロ、りtl・、のタイミングで、シリアルクロ、ク
カウノタ155内のカウントレジスタ156の値が減算
器157に設定される。今、減算器157に19mが設
定されるとすれば、第1の立下り工。 ジt1゜l のタイミングで111デクリメントされ1
8”になる。引き続き立下り工、ジのタイミング毎に減
算器157の値が”1”ずつデクリメントされ、t、。 1 のタイミングでボローが発生する。 この結果、減算器】57から111が出力され、同タイ
ミングt8・1 に同期してACK出力回路144から
受信確認信号が出力される。 ′以上の様に、第2の実施例の7リアルデータ処理装置
は、受信確認信号の出力タイミングを任意に設定できる
ため、受信データの処理ための時間を適宜変更できると
いう利点がある。さらに、データ処理部】33からAC
K出力回路144にデータ処理の終了を通知するために
必要なソフト9エア処理が不用となるという利点もある
。 なお、減算器へはハードウェアによって予め定められた
値が設定されるようにしてもよい。 第4図は第2の7リアルデータ処理装置】30内の7リ
アルクロ、クカクノタおよびその周辺の回路ブロック図
であるが、第3図のものと全く同一である。 〔発明の効果〕 以上説明したように、本発明に基づくシリアルデータ処
理装置は、受信データの処理終了後に、ACK出力回路
から送信側へ受信確認信号を返すため、送信側に受信終
了を知らせることができるという効果がある。また、受
信側で異常事態が発生したときは、一定時間内に送信側
へ受信確認信号の送出を禁止する事により、受信拒否を
知らせることかできるという効果もある。 さらに、ACK出力選択フラグをもっているため、受信
データに応じて受信確認信号の出力を8ビ、トのシリア
ルデータを受信したときに同期させるか、データ処理部
における受信データに対する必要な処理がおわったとき
に同期させるかをソフト9エアで選択することができる
。複数バイトの連続した高速7リアルデータ転送ではデ
ータ処理終了を通知するためのソフトウェア処理が不要
になるので、CPUの処理効率を著しく向上する事が可
能である。なお、本発明をデータ処理部を介さない高速
シリアル転送(DMA転送)へ適用することができるこ
とは明らかである。
The end signal “1” output from the data processing unit 133 is input to the ACK output circuit 44 via the internal data bus 138 and the signal line 151. A
The CK output circuit 144 outputs an ACK output driver 1 at the timing of the next falling edge, t4·l, as a reception confirmation signal to the first 7 real data processing device 100 on the transmitting side.
42, a low level signal is output from the clear data i child 136 to the 7 real data line 160. The ACK detection circuit 104 in the first serial data processing device 100 causes the 7 real data line 160 to go to low level at the timing of the rising edge of the serial clock, t4. When it is confirmed that 130 has output a reception confirmation signal, the ACK detection flag 1]5 is set. Serial clock control circuit 1] 3
stops outputting the serial clock at the timing of the next rising edge, t464. When the data processing unit 103 confirms that the ACK detection flag 115 is set, the second 7 real data processing unit 30 determines that all processing in data reception has been completed, and transmits 1 byte of serial data. Finish the process. After the transfer, the data processing unit 103 can resume the transmission of the next 7 real data by setting the next transmission data in the 77 register 10]. First 7 Real Data Processing System fi! :100 manages the time until the reception confirmation signal is returned, so that the second 7 real data processing can be performed even after the period of T] after the reception confirmation signal is ACKed/Grinnob signal 117 is set. If the data is not output from the device 130, it is assumed that an abnormal situation has occurred in the second serial data processing device 30, and the transmission of the real data from the first serial data processing device 100 can be stopped. When the ACK output selection flag 116 is 10'', the serial data on the serial data line 160 is The synchronization relationship between the serial chronograph, the 7real chronograph on the Cryno 161, and the 7real chronograph on the Cryno 161 is the same as the synchronous relationship during transfer from the first 7real data processing device 100 to the second serial data processing device 130. A detailed explanation will be omitted here. [Embodiment 2] A second embodiment of the present invention will be explained with reference to FIG. , ri generation circuit 102, data processing section 103. Serial clock, cross flag 105. Serial data terminal 106.7 Real clock, ri terminal 107
.. Internal data bus 108, line buffer 109. Line driver 110.7 Real black control circuit 113.
ACK detection circuit 104. ACK output circuit 114. Black. driver 111. and an ACK output driver 112. Among these, the functions other than the ACK output circuit 114 are the same as those shown in the first embodiment, so detailed explanations will be omitted here. The ACK output circuit 114 has an ACK output selection flag]16
and serial black, including Kukaunota 125. The serial clock counter 125 will be explained using FIG. Serial Kuro, Kukaunota] 25 is a subtractor] 2
7 and count register ] 26. The count register 126 receives internal data bus 1 from the data processing unit 103.
08, timing information n for outputting an input reception confirmation signal is stored in synchronization with the control signal 128. The subtracter 127 is a serial clock. When the generation of the error starts, the kakunt number n stored in the count register 126 is set to 7 real clocks. In synchronization with the downhill slope, the slope is decremented by 11m. When a borrow occurs, A in the ACK output circuit 114
Outputs 11' to the CK generation circuit and outputs ACK output driver 1.
A lower level signal as a reception confirmation signal is output from the serial data terminal 06 to the serial data rhino 160 via the serial data terminal 12. The ACK output selection flag 116 is the first
Similar to the example, @
Set to 0" or 11". The configuration and functions of the second 7 real data processing device 130 are the same as those of the first serial data processing device [00], so a detailed explanation will be omitted here. Next, referring to FIG. 3, the operation when 8 bits (1 byte) of data is continuously transferred from the first V real data processing device 100 to the second serial data processing device 130 will be explained. do. When the ACK output selection flag is set to 10" by software processing, the same processing as in the first embodiment is performed, so a detailed explanation will be omitted.
If 6 is set to 11”, the force 9 register is set to 156.
The timing for outputting the reception confirmation signal can be arbitrarily selected such as the 8th shot, the 9th shot, the 10th shot, etc. according to the set value in the above. For example, if the processing of received data is t
If you finish by the l/tatami timing, 10 shots 0
Count register 156 so that a reception confirmation signal can be issued to
The first serial data processing device 100 should be set to 19" in advance. The first serial data processing device 100 has 7 real black, 19", and 19" as in the first embodiment.
'? e3 e ties I @t@t
@ @10 @ e htt -t713 *
Data is sent to the serial data rhino 160 in synchronization with each timing of tma1$. [Second 7 Real Data Processing Device] 30 is a serial clock input from the cryograph 161 through the serial clock terminal 137, and the rising edge t1 of the serial clock input through the terminal 137.
Snow・t 714・t? I...tl・lu・ht...t 7
1m/t? 14.t? In synchronization with each timing of number 1,
Serial data from the 7 real data line 160 is sequentially shifted into the shift register 131. 7 real black, ri no riser, ji t, 8 at 1°0 timing, and when the reception of 7 real data of g is completed, data processing unit 1
33 reads out the 8-bit data in the shift register 131 to the internal chip')Ax138. Further, at the timing of the first serial clock, the value of the count register 156 in the serial clock counter 155 is set in the subtracter 157. Now, if 19 m is set in the subtractor 157, it is the first downhill. It is decremented by 111 at the timing of t1゜l and becomes 1.
8".Subsequently, the value of the subtracter 157 is decremented by "1" at each timing of the falling edge and ji, and a borrow occurs at the timing of t,.1. As a result, the value of the subtracter 57 to 111 A reception confirmation signal is output from the ACK output circuit 144 in synchronization with the same timing t8·1.'As described above, the 7 real data processing device of the second embodiment has a reception confirmation signal output timing. can be set arbitrarily, so there is an advantage that the time for processing the received data can be changed as appropriate.
There is also the advantage that software 9 air processing required to notify the K output circuit 144 of the end of data processing is unnecessary. Note that a predetermined value may be set to the subtracter by hardware. FIG. 4 is a circuit block diagram of the 7-real black, Kukakunota, and their surroundings in the second 7-real data processing device [30], which is exactly the same as that in FIG. 3. [Effects of the Invention] As explained above, the serial data processing device based on the present invention returns a reception confirmation signal from the ACK output circuit to the transmitting side after completing the processing of received data, so that it is possible to notify the transmitting side of the completion of reception. It has the effect of being able to. Furthermore, when an abnormal situation occurs on the receiving side, there is the effect that reception rejection can be notified by prohibiting the transmission of a reception confirmation signal to the transmitting side within a certain period of time. Furthermore, since it has an ACK output selection flag, depending on the received data, the output of the reception confirmation signal is synchronized when 8-bit serial data is received, or when the necessary processing of the received data in the data processing section is completed. You can select when to synchronize using software 9 air. Since continuous high-speed 7-real data transfer of multiple bytes eliminates the need for software processing to notify the end of data processing, it is possible to significantly improve the processing efficiency of the CPU. Note that it is clear that the present invention can be applied to high-speed serial transfer (DMA transfer) that does not involve a data processing section.

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

第1図は本発明の第1の実施例のシステム構成図、第2
図は本発明の第2の実施例のシステム構成図、第3図、
第4図は夫々第2の実施例のシリアルクロ、クカウノタ
およびその周辺のプロ、り図、第5図はACK出力選択
フラグが11”のときのタイミングチャート、第6図は
ACK選択フラグが10”のときのタイミングチャート
、第7図は第2の実施例におけるタイミングチャート、
第8図は本発明の参考図、第9図はそのタイミングチャ
ートである。 100.400・・・・・・第1の7リアルデータ処理
装置、130.420・・・・・・第2の7リアルデー
タ処理装置、101,131,401.421・・・・
・・り7トレジスタ、102,132,402.422
・・・・・・シリアルクロ、り発生回路、103,13
3゜403.423・・・・・・データ処理部、104
,134・・・・・・ACK検出回路、105,135
,405゜425・・・・・・シリアルクロ、クツ−ス
フラグ、106゜136.406,426・・・・・・
シリアルデータ端子、107.137,407,427
・・・・・・シリアルクロ、り端子、108,138,
408,428・・・・・・内部データバス、109.
] 39,409゜429・・・・・・ライツバ、ファ
、110,140゜410.430・・・・・・ライン
トライバ、111゜14]、411.431・・・・・
・クロ、クドライバ、112.142・・・・・・AC
K出力ドライバ、113゜143・・・・・・シリアル
クロ、り制御回路、114゜144・・・・・・ACK
出力回路、115.145・・・・・・ACK検出フラ
グ、116,146・・・・・・ACK出力選択フラグ
、117.147・・・・・・ACKサノグル信号、1
19.149・・・・・ACKライト信号、120.1
50・・・・・・8ビ、ト受信信号、121゜15】・
・・・・・データ処理終了信号、122.152・・・
・・・受信確認信号、125,155・・・・・・シリ
アルクロ、クカウ/り、160.440・・・・・・ク
リアルデータライノ、161,441・・・・・・7リ
アルクロ。 クライン、126.156・・・・・・カウントレジス
タ、127.157・・・・・・減算器、128.15
8・・・・・制御信号。 ゝ・(こ: ′
Figure 1 is a system configuration diagram of the first embodiment of the present invention;
The figure is a system configuration diagram of the second embodiment of the present invention, FIG.
Fig. 4 is a diagram of the serial clock, Kukaunota, and its surroundings in the second embodiment, Fig. 5 is a timing chart when the ACK output selection flag is 11'', and Fig. 6 is a timing chart when the ACK selection flag is 10''. ”, FIG. 7 is a timing chart in the second embodiment,
FIG. 8 is a reference diagram of the present invention, and FIG. 9 is a timing chart thereof. 100.400...First 7 real data processing device, 130.420...Second 7 real data processing device, 101,131,401.421...
・7 register, 102,132,402.422
・・・・・・Serial black, ri generation circuit, 103, 13
3゜403.423...Data processing section, 104
, 134...ACK detection circuit, 105, 135
,405゜425... Serial black, Kutosu flag, 106゜136.406,426...
Serial data terminal, 107.137, 407, 427
・・・・・・Serial black, terminal, 108, 138,
408, 428... Internal data bus, 109.
] 39,409°429...Lights bar, Fa, 110,140°410.430...Line driver, 111°14], 411.431...
・Black, Kudriver, 112.142...AC
K output driver, 113°143... Serial clock control circuit, 114°144...ACK
Output circuit, 115.145...ACK detection flag, 116,146...ACK output selection flag, 117.147...ACK sensor signal, 1
19.149...ACK light signal, 120.1
50...8 bit, received signal, 121°15]・
...Data processing end signal, 122.152...
...Reception confirmation signal, 125,155... Serial black, Kukau/ri, 160.440... Clear data rhino, 161,441...7 Real black. Klein, 126.156...Count register, 127.157...Subtractor, 128.15
8...Control signal.ゝ・(こ: ′

Claims (1)

【特許請求の範囲】[Claims] 単一のデータラインと単一のクロックラインに接続され
たシリアルデータ処理装置において、前記データライン
上に受信確認信号を出力する出力回路と、シリアルデー
タの受信終了を示す第1の信号を発生する回路と、受信
したデータの処理が終了したことを知らせる第2の信号
を発生する回路と、前記受信確認信号の出力を制御する
回路とを有し、前記データライン上のシリアルデータの
受信が終了すると、前記出力回路は、前記第1の信号あ
るいは、前記第2の信号に同期して前記データラインに
前記受信確認信号を出力することを特徴とするシリアル
データ処理装置。
In a serial data processing device connected to a single data line and a single clock line, an output circuit outputs a reception confirmation signal on the data line and generates a first signal indicating completion of reception of serial data. a circuit that generates a second signal to notify that processing of the received data is completed; and a circuit that controls output of the reception confirmation signal, and the reception of the serial data on the data line is completed. Then, the output circuit outputs the reception confirmation signal to the data line in synchronization with the first signal or the second signal.
JP61214432A 1986-09-01 1986-09-10 Serial data processor Pending JPS6369350A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP61214432A JPS6369350A (en) 1986-09-10 1986-09-10 Serial data processor
DE3789743T DE3789743T2 (en) 1986-09-01 1987-09-01 Serial data transmission system.
EP87112742A EP0258872B1 (en) 1986-09-01 1987-09-01 Serial data transfer system
US07/569,539 US4984190A (en) 1986-09-01 1990-08-20 Serial data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61214432A JPS6369350A (en) 1986-09-10 1986-09-10 Serial data processor

Publications (1)

Publication Number Publication Date
JPS6369350A true JPS6369350A (en) 1988-03-29

Family

ID=16655684

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61214432A Pending JPS6369350A (en) 1986-09-01 1986-09-10 Serial data processor

Country Status (1)

Country Link
JP (1) JPS6369350A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7257656B1 (en) 1999-04-19 2007-08-14 Moeller Gmbh Device for synchronous transmission of data between a master device and a slave device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7257656B1 (en) 1999-04-19 2007-08-14 Moeller Gmbh Device for synchronous transmission of data between a master device and a slave device

Similar Documents

Publication Publication Date Title
US5297231A (en) Digital signal processor interface for computer system
US4984190A (en) Serial data transfer system
US6157970A (en) Direct memory access system using time-multiplexing for transferring address, data, and control and a separate control line for serially transmitting encoded DMA channel number
JPH03147045A (en) Synchronization buffer circuit
JPH01200459A (en) Memory interface mechanism
US7590146B2 (en) Information processing unit
US20030101299A1 (en) Information processing apparatus having a bus using the protocol of the acknowledge type in the source clock synchronous system
JPS6369350A (en) Serial data processor
JPS585867A (en) Data transmission method and apparatus
GB2060961A (en) Data processing system having memory modules with distributed address information
JP2563679B2 (en) Bidirectional input / output signal separation circuit
US6349389B1 (en) Communication control system and apparatus
KR100266963B1 (en) Method and apparatus for reducing latency rime on an interface by overlapping transmitted packets
CN111208892A (en) By serial I2Method for resetting chip system by C signal
JPH03177953A (en) Data transfer system
JP3667556B2 (en) DMA transfer control device and DMA transfer control method
JPS5952331A (en) Device address setting device
KR970010157B1 (en) Matching apparatus for transmitting sdlc/hdlc data frame to tokening controlling bus
JPS6278657A (en) Transmitting method for bit and byte synchronizing data through serial interface
JPH11312116A (en) Synchronizing device for synchronous dynamic random access memory
KR0154470B1 (en) Circuit for interfacing between auxiliary processor and external device
JP2944412B2 (en) Data transfer method and data transfer method
JPH02276348A (en) Transmission system
JPH11102341A (en) Data transfer system, data transmitter, data receiver, data transfer method, and bus arbitrating method
KR20040108055A (en) a bus system having serial/parallel circuitry