JP2008300915A - High-speed serial communication utilizing duty ratio of clock - Google Patents

High-speed serial communication utilizing duty ratio of clock Download PDF

Info

Publication number
JP2008300915A
JP2008300915A JP2007141467A JP2007141467A JP2008300915A JP 2008300915 A JP2008300915 A JP 2008300915A JP 2007141467 A JP2007141467 A JP 2007141467A JP 2007141467 A JP2007141467 A JP 2007141467A JP 2008300915 A JP2008300915 A JP 2008300915A
Authority
JP
Japan
Prior art keywords
data
transmission
reception
clock
serial
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
JP2007141467A
Other languages
Japanese (ja)
Inventor
Shinsuke Tanaka
晋介 田中
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.)
Panasonic Corp
Original Assignee
Panasonic 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 Panasonic Corp filed Critical Panasonic Corp
Priority to JP2007141467A priority Critical patent/JP2008300915A/en
Publication of JP2008300915A publication Critical patent/JP2008300915A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve transmission and reception speeds of serial data. <P>SOLUTION: When serial data to be transmitted are configured, such that in transmission/reception of the serial data, a plurality of bits of 0 or 1 are in succession, like "00..." or "11...", the duty ratio of a synchronizing clock 121 that a transmission side 100 outputs is varied according to the number of successive bits. At this time, output data 120 from the transmission side is 0 when the data to be transmitted is "00...", or 1 when "11...". A receiving side 130 recognizes whether reception data is 0 or 1, further decides how many bits of 0 or 1 of the reception data are successive from the duty ratio of the synchronizing clock, and stores the data as many as the successive bits to a data receiving shift register 133. Consequently, the data 120 of a plurality of bits can be transmitted and received within one cycle of the synchronizing clock 121. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、データ送信側が出力する同期クロックにデータ受信側が同期してシリアルデータの受信を行うシリアル送受信方式に関するものである。   The present invention relates to a serial transmission / reception system in which a data reception side receives serial data in synchronization with a synchronous clock output from a data transmission side.

従来の、データ送信側が出力する同期クロックにデータ受信側が同期してシリアルデータの受信を行うシリアル送受信方式においては同期クロックの1周期毎に1ビットのデータの受信を実行する(例えば、特許文献1参照)。
特開2000−196576号公報
In the conventional serial transmission / reception method in which the data reception side receives serial data in synchronization with the synchronous clock output from the data transmission side, reception of 1-bit data is executed for each cycle of the synchronization clock (for example, Patent Document 1). reference).
JP 2000-196576 A

上述のように、従来の、送信側が出力するクロックに同期して受信側がシリアルデータを受信する方式においては、同期クロックの1周期の間に1ビット分のデータしか送受信できなかった。このため、送受信速度を向上するためには同期クロック及び送受信データの周波数を上げる必要があるが、端子を介してのデータの送受信においては、送受信可能な同期クロック及びデータの周波数は端子の能力に応じて制限されてしまい、その結果、送受信速度も端子の能力に応じて制限されてしまう。   As described above, in the conventional method in which the receiving side receives serial data in synchronization with the clock output from the transmitting side, only one bit of data can be transmitted and received during one period of the synchronous clock. For this reason, in order to improve the transmission / reception speed, it is necessary to increase the frequency of the synchronous clock and transmission / reception data. As a result, the transmission / reception speed is also limited according to the capability of the terminal.

本発明は上記問題点を解決するもので、シリアルデータ送受信において同期クロックの1周期の間に複数ビットのデータの送受信を実現し、同期クロック及びデータの周波数を上げることなくシリアルデータ送受信速度を向上させる技術を提供するものである。   The present invention solves the above-described problems, and realizes transmission / reception of a plurality of bits of data during one cycle of a synchronization clock in serial data transmission / reception, and improves serial data transmission / reception speed without increasing the frequency of the synchronization clock and data. It provides the technology to make it.

シリアルデータ送信側は、送信したいデータの構成が、例えば“00…”、“11…”、等のように同じデータが複数ビット連続している場合、出力する同期クロックのHIGH幅を、同じデータが連続しているビット数に応じて拡張する。また、この時HIGH幅は変化しても、同期クロックのデューティ比が変わるのみで、1クロックの周期は変更しない。   The serial data transmission side sets the HIGH width of the synchronous clock to be output when the data to be transmitted has the same data having a plurality of consecutive bits such as “00...”, “11. Extends according to the number of consecutive bits. At this time, even if the HIGH width is changed, only the duty ratio of the synchronous clock is changed, and the cycle of one clock is not changed.

シリアルデータ受信側は、同期クロックのHIGH幅に応じて受け取るデータのビット数を切り替えることにより、同期クロックの1周期の間に複数ビットのシリアルデータを受信することが可能となる。   The serial data receiving side can receive serial data of a plurality of bits during one period of the synchronous clock by switching the number of bits of data received according to the HIGH width of the synchronous clock.

上記構成によれば、同期クロックの周波数を上げることなくシリアルデータの送受信速度を向上させることができる。   According to the above configuration, the transmission / reception speed of serial data can be improved without increasing the frequency of the synchronous clock.

本発明の実施の形態1及び2について、図面に基づいて説明する。   Embodiments 1 and 2 of the present invention will be described with reference to the drawings.

《実施の形態1》
実施の形態1においては、シリアルデータ送信側回路、受信側回路共に、N(Nは任意の2以上の整数)ビットのシフトレジスタを有し、同期クロックの1周期の間に複数ビットのデータのやり取りを実施する形態である。
Embodiment 1
In the first embodiment, both the serial data transmission side circuit and the reception side circuit have a shift register of N (N is an arbitrary integer of 2 or more) bits, and a plurality of bits of data are stored in one cycle of the synchronous clock. This is a form for carrying out the exchange.

実施の形態1について、データ送信回路及びデータ受信回路の構成に関しては図1〜図6を、シリアルデータ送受信の詳細な動作に関しては図7〜図10をそれぞれ用いて説明を行う。   The first embodiment will be described with reference to FIGS. 1 to 6 regarding the configurations of the data transmission circuit and the data reception circuit, and FIGS. 7 to 10 regarding the detailed operation of serial data transmission / reception.

図1は、本発明のシリアル送受信システムの構成を示すブロック図であって、データ送信回路100とデータ受信回路130とを備えている。   FIG. 1 is a block diagram showing a configuration of a serial transmission / reception system according to the present invention, which includes a data transmission circuit 100 and a data reception circuit 130.

図1に示したデータ送信回路100は、データ送信シフトレジスタ101と、送信データ供給部102と、送信状況確認シフトレジスタ103と、エッジ検出回路104と、クロック1周期カウンタ105と、同期クロック出力切替回路106と、データ送信端子107と、同期クロック送信端子108とにより構成される。   The data transmission circuit 100 shown in FIG. 1 includes a data transmission shift register 101, a transmission data supply unit 102, a transmission status confirmation shift register 103, an edge detection circuit 104, a clock 1 cycle counter 105, and a synchronous clock output switching. The circuit 106, the data transmission terminal 107, and the synchronous clock transmission terminal 108 are configured.

データ送信シフトレジスタ101は、シリアル送信データを格納し、送信回路内部クロック118に同期して送信するための回路であり、図2に示したとおり、N個のセレクタ200と、N個のフリップフロップ201とにより構成される。各フリップフロップ201の“LH”は、ホールド端子である。送信データの値が切り替わるか、あるいは格納された送信データを全ビット出力完了すると、同期クロック出力切替信号114がLOWになり、データのシフト動作が中断される。格納されたデータの全ビット送信完了後、シリアル送信データ更新信号116がHIGHになり、送信データ供給部102より、次の送信データがNビット供給される。   The data transmission shift register 101 is a circuit for storing serial transmission data and transmitting it in synchronization with the internal clock 118 of the transmission circuit. As shown in FIG. 2, N selectors 200 and N flip-flops are used. 201. “LH” of each flip-flop 201 is a hold terminal. When the value of the transmission data is switched or the stored transmission data is completely output, the synchronous clock output switching signal 114 becomes LOW, and the data shift operation is interrupted. After the transmission of all the bits of the stored data is completed, the serial transmission data update signal 116 becomes HIGH, and the next transmission data is supplied from the transmission data supply unit 102 by N bits.

送信データ供給部102は、シリアル送受信開始時及びデータ送信シフトレジスタ101に格納されたNビットのデータの送信が完了した際に、次の送信データを供給するための回路である。データ送信シフトレジスタ101に格納されたNビットのデータの送信が完了し、送信データ更新信号116がHIGHに切り替えられると、送信供給データ109を、次に出力するNビットのシリアル送信データに切り替える。   The transmission data supply unit 102 is a circuit for supplying the next transmission data when serial transmission / reception starts and when transmission of N-bit data stored in the data transmission shift register 101 is completed. When transmission of N-bit data stored in the data transmission shift register 101 is completed and the transmission data update signal 116 is switched to HIGH, the transmission supply data 109 is switched to N-bit serial transmission data to be output next.

送信状況確認シフトレジスタ103は、データ送信シフトレジスタ101に格納されたデータ全ビットの送信完了を通知するための回路であり、図3に示したとおり、送信回路内部クロック118に同期して動作するN個のフリップフロップ300と、NORゲート301と、ANDゲート302と、インバータ303と、送信回路内部クロック118の反転信号に同期して動作する他のフリップフロップ304とにより構成されている。当シフトレジスタ103はデータ送信シフトレジスタ101と同じタイミングでシフト動作を実行し、Nビットのシリアルデータの送信が完了すると、供給データ切替信号113をHIGHにすることにより、送信完了を通知する。送信完了後、同期クロックサイクルの終了時に送信データ更新信号116をHIGHにすることにより、データ送信シフトレジスタ101への新たな送信データの格納及び当シフトレジスタ103のクリアを実行し、次のNビットのデータ送信を可能な状態にする。   The transmission status confirmation shift register 103 is a circuit for notifying the completion of transmission of all the bits stored in the data transmission shift register 101, and operates in synchronization with the transmission circuit internal clock 118 as shown in FIG. N flip-flops 300, a NOR gate 301, an AND gate 302, an inverter 303, and another flip-flop 304 that operates in synchronization with an inverted signal of the transmission circuit internal clock 118. The shift register 103 performs a shift operation at the same timing as the data transmission shift register 101. When transmission of N-bit serial data is completed, the supply data switching signal 113 is set to HIGH to notify the completion of transmission. After the transmission is completed, the transmission data update signal 116 is set to HIGH at the end of the synchronous clock cycle, thereby storing new transmission data in the data transmission shift register 101 and clearing the shift register 103, and the next N bits. To enable data transmission.

エッジ検出回路104は、送信データの値の切り替わりを検出し、検出時に送信データエッジ検出信号112をHIGHに切り替え、2つのシフトレジスタ101,103のシフト動作を中断させ、かつ送受信同期クロック121をLOWに切り替えるための回路である。データ送信シフトレジスタ101の全ビットデータ送信完了後、送信データ供給部102から次のNビットの送信データを格納する際の当シフトレジスタ101への入力値の切り替わりを送信データの切り替わりエッジと誤認識することを防ぐために、送信データ更新信号116がHIGHの時には、送信データエッジ検出信号112をHIGHに切り替えないものとする。   The edge detection circuit 104 detects switching of the value of transmission data, switches the transmission data edge detection signal 112 to HIGH at the time of detection, interrupts the shift operation of the two shift registers 101 and 103, and sets the transmission / reception synchronization clock 121 to LOW. It is a circuit for switching to. After all bit data transmission of the data transmission shift register 101 is completed, switching of the input value to the shift register 101 when storing the next N bits of transmission data from the transmission data supply unit 102 is erroneously recognized as a transmission data switching edge. In order to prevent this, when the transmission data update signal 116 is HIGH, the transmission data edge detection signal 112 is not switched to HIGH.

クロック1周期カウンタ105は、送信同期クロック117の周波数を設定するための、カウント周期を任意に設定可能で、送信回路内部クロック118に同期して動作するカウンタである。カウント値が0になるとシリアルデータの送受信を開始し、カウント値が設定値に到達すると、クロック1周期カウント終了信号115をHIGHに切り替えることにより、同期クロックの1周期の終了を通知する。   The clock 1 cycle counter 105 is a counter that can set an arbitrary count cycle for setting the frequency of the transmission synchronization clock 117 and operates in synchronization with the transmission circuit internal clock 118. When the count value reaches 0, transmission / reception of serial data is started. When the count value reaches the set value, the end of one cycle of the synchronous clock is notified by switching the clock one cycle count end signal 115 to HIGH.

同期クロック出力切替回路106は、送信データのビット数に応じて送信同期クロック117のHIGH幅を切り替えるための回路であり、図4に示したとおり、セレクタ400と、送信回路内部クロック118に同期して動作するフリップフロップ401とにより構成されている。   The synchronous clock output switching circuit 106 is a circuit for switching the HIGH width of the transmission synchronous clock 117 in accordance with the number of bits of transmission data, and is synchronized with the selector 400 and the transmission circuit internal clock 118 as shown in FIG. And a flip-flop 401 that operates.

データ送信端子107からは、データ送信シフトレジスタ101に格納されたシリアルデータが送受信データ120としてデータ受信回路130に送信される。   From the data transmission terminal 107, serial data stored in the data transmission shift register 101 is transmitted to the data reception circuit 130 as transmission / reception data 120.

同期クロック送信端子108からは、送受信同期クロック121がデータ受信回路130に送信される。   A transmission / reception synchronization clock 121 is transmitted from the synchronization clock transmission terminal 108 to the data reception circuit 130.

一方、データ受信回路130は、図1に示したとおり、データ受信端子131と、同期クロック受信端子132と、データ受信シフトレジスタ133と、受信状況確認シフトレジスタ134と、受信データ格納部135とにより構成されている。   On the other hand, the data reception circuit 130 includes a data reception terminal 131, a synchronous clock reception terminal 132, a data reception shift register 133, a reception status confirmation shift register 134, and a reception data storage unit 135, as shown in FIG. It is configured.

データ受信端子131にてデータ送信回路100から送信されたシリアル送信データを受信する。また、同期クロック受信端子132にて同期クロックを受信する。   The serial transmission data transmitted from the data transmission circuit 100 is received at the data reception terminal 131. In addition, the synchronous clock receiving terminal 132 receives the synchronous clock.

データ受信シフトレジスタ133は、受信同期クロック137がHIGHである時に、受信回路内部クロック140に同期して、シリアルデータをデータ受信端子131より受信するための回路であり、図5に示したように、受信回路内部クロック140に同期して動作するN個のフリップフロップ500により構成されている。データ受信シフトレジスタ133の全ビットにデータが格納されると、格納データ全ビットが受信データ格納部135へと格納される。   The data reception shift register 133 is a circuit for receiving serial data from the data reception terminal 131 in synchronization with the reception circuit internal clock 140 when the reception synchronization clock 137 is HIGH, as shown in FIG. And N flip-flops 500 that operate in synchronization with the internal clock 140 of the receiving circuit. When data is stored in all bits of the data reception shift register 133, all the stored data bits are stored in the reception data storage unit 135.

受信状況確認シフトレジスタ134は、データ受信シフトレジスタ133が、Nビットのデータの受信を完了したことを受信データ格納部135に対して通知するための回路であり、図6に示したとおり、受信回路内部クロック140に同期して動作するN個のフリップフロップ600と、これらN個のフリップフロップ600をリセットするためのフリップフロップ601とにより構成されている。当シフトレジスタ134はデータ受信シフトレジスタ133と同じタイミングでシフト動作を実行し、Nビットのシリアルデータの受信が完了すると、データ格納許可信号139をHIGHに切り替えることにより、データ受信シフトレジスタ133内のデータを受信データ格納部135に格納する。   The reception status check shift register 134 is a circuit for notifying the reception data storage unit 135 that the data reception shift register 133 has completed reception of N-bit data. As shown in FIG. The flip-flop 600 includes N flip-flops 600 that operate in synchronization with the circuit internal clock 140, and a flip-flop 601 for resetting the N flip-flops 600. The shift register 134 performs a shift operation at the same timing as the data reception shift register 133, and when reception of the N-bit serial data is completed, the data storage permission signal 139 is switched to HIGH, whereby the data reception shift register 133 Data is stored in the reception data storage unit 135.

受信データ格納部135は、データ受信シフトレジスタ133で受信したシリアルデータを格納し、用途に応じて使用するための回路である。データ格納許可信号139がHIGHになると、受信データを格納する。   The reception data storage unit 135 is a circuit for storing the serial data received by the data reception shift register 133 and using it according to the application. When the data storage permission signal 139 becomes HIGH, the received data is stored.

ここからは、実施の形態1についての回路の詳細な動作を、回路図とタイミングチャートを用いて説明する。説明する動作としては、
A.シリアル送受信動作
〔1〕“11100…”なる、最初にビット1が3ビット連続している構成のデータの送信を開始:
〔2〕HIGHデータを3ビット送信後、送信データの切り替わりを検出し、送受信を中断:
〔3〕同期クロックの1周期終了後、次の“00…”のデータ送信再開、
B.Nビットデータ送受信完了時動作
〔1〕データ送信シフトレジスタ101に最初に格納されたNビットのデータのうち2ビット“00”のデータだけが未送信で残っている:
〔2〕この状態でLOWデータの2ビット送信開始:
〔3〕2ビット送信終了後、次のNビットデータをデータ送信シフトレジスタ101に格納して送信再開、
という、代表的な2パターンを対象とする。
From here, the detailed operation of the circuit according to the first embodiment will be described with reference to a circuit diagram and a timing chart. As an operation to explain,
A. Serial transmission / reception operation [1] Start transmission of data of “11100...
[2] After transmitting 3 bits of HIGH data, detect switching of transmission data and interrupt transmission / reception:
[3] After one cycle of the synchronous clock ends, the next data transmission of “00.
B. Operation when N-bit data transmission / reception is completed [1] Of the N-bit data initially stored in the data transmission shift register 101, only 2-bit “00” data remains untransmitted:
[2] Start 2-bit transmission of LOW data in this state:
[3] After completion of 2-bit transmission, the next N-bit data is stored in the data transmission shift register 101 and transmission is resumed.
The two typical patterns are targeted.

なお、説明の際の前提条件として、各パラメータの設定を、
・データ送信シフトレジスタ101、送信状況確認シフトレジスタ103、データ受信シフトレジスタ133及び受信状況確認シフトレジスタ134は8ビット(N=8)、
・同期クロックの1周期は、送信回路内部クロック118及び受信回路内部クロック140の10周期分とする。
As a prerequisite for the explanation, the setting of each parameter is
The data transmission shift register 101, the transmission status confirmation shift register 103, the data reception shift register 133, and the reception status confirmation shift register 134 are 8 bits (N = 8),
One period of the synchronous clock is 10 periods of the transmission circuit internal clock 118 and the reception circuit internal clock 140.

前述の動作Aについて、図7を用いてデータ送信回路100の動作を、図8を用いてデータ受信回路130の動作をそれぞれ説明する。   With respect to the above-described operation A, the operation of the data transmission circuit 100 will be described with reference to FIG. 7, and the operation of the data reception circuit 130 will be described with reference to FIG.

データ送信回路100において、送信開始(時刻t1)に先立つ送信回路内部クロック118の1周期前には、同期クロック出力切替信号114がHIGHであり、データ送信シフトレジスタ101及び送信状況確認シフトレジスタ103は送信回路内部クロック118に同期してシフト動作を実行する。クロック1周期カウンタ105のカウント値が“0”になると同時に送信データ110はHIGH(送信するデータが“111”であるため)、送信同期クロック117もHIGHに切り替わり、シリアルデータの送受信を開始する(時刻t1)。HIGHデータを2ビット出力した後、送信データエッジ検出用信号111がLOWに切り替わり、その切り替わりエッジをエッジ検出回路104が検出するため、送信データエッジ検出信号112がHIGHになることにより、同期クロック出力切替信号114はネゲートされる(時刻t2)。その結果、データ送信シフトレジスタ101及び送信状況確認シフトレジスタ103のシフト動作は中断し、送信データ110はHIGHのまま保持される。一方、送信同期クロック117は同期クロック出力切替信号114により出力値が切り替えられるため、送信データエッジ検出信号112がアサートされた次の内部クロック118のポジエッジに同期して、すなわち内部クロック118の3サイクル分だけHIGHを保った後に、LOWに切り替わる(時刻t3)。   In the data transmission circuit 100, one cycle before the transmission circuit internal clock 118 prior to transmission start (time t1), the synchronous clock output switching signal 114 is HIGH, and the data transmission shift register 101 and the transmission status confirmation shift register 103 are A shift operation is executed in synchronization with the transmission circuit internal clock 118. At the same time as the count value of the clock 1 cycle counter 105 becomes “0”, the transmission data 110 is HIGH (because the data to be transmitted is “111”), and the transmission synchronization clock 117 is also switched to HIGH to start transmission / reception of serial data ( Time t1). After the HIGH data is output by 2 bits, the transmission data edge detection signal 111 is switched to LOW and the switching edge is detected by the edge detection circuit 104. Therefore, the transmission data edge detection signal 112 becomes HIGH, thereby outputting a synchronous clock. The switching signal 114 is negated (time t2). As a result, the shift operation of the data transmission shift register 101 and the transmission status confirmation shift register 103 is interrupted, and the transmission data 110 is held HIGH. On the other hand, since the output value of the transmission synchronous clock 117 is switched by the synchronous clock output switching signal 114, it is synchronized with the positive edge of the next internal clock 118 to which the transmission data edge detection signal 112 is asserted, that is, three cycles of the internal clock 118. After maintaining HIGH for the number of minutes, it switches to LOW (time t3).

クロック1周期カウンタ105は、カウント値が上限値(同期クロックの1周期幅が内部クロック118の10周期分であるため、この例では9に設定する)に到達した際に(時刻t4)、クロック1周期カウント終了信号115を内部クロック118の1周期間だけHIGHにする。このクロック1周期カウント終了信号115のアサートを受けて、送信データエッジ検出信号112がLOWになり、その結果同期クロック出力切替信号114がHIGHになるため、次回のデータ送受信は、クロック1周期カウンタ105のカウント値が0になってから開始される(時刻t5)。   When the count value of the clock 1 cycle counter 105 reaches the upper limit (set to 9 in this example because one cycle width of the synchronous clock is 10 cycles of the internal clock 118) (time t4), the clock 1 cycle counter 105 The one cycle count end signal 115 is set to HIGH only for one cycle of the internal clock 118. In response to the assertion of the clock 1 cycle count end signal 115, the transmission data edge detection signal 112 becomes LOW, and as a result, the synchronous clock output switching signal 114 becomes HIGH. Is started after the count value becomes zero (time t5).

データ受信回路130においては、データ受信シフトレジスタ133及び受信状況確認シフトレジスタ134のLH信号として受信同期クロック137が使用されているため、受信同期クロック137がHIGHの時にデータ受信シフトレジスタ133は受信回路内部クロック140に同期して受信データを格納し、受信状況確認シフトレジスタ134はHIGHを格納していく。この例では、同期クロックのHIGH幅が内部クロック140の3周期分であるため、データ受信シフトレジスタ133に3ビット分のデータ“111”が格納され、受信状況確認シフトレジスタ134のうち3つのフリップフロップ600の格納値がLOWからHIGHに切り替わる。この場合は、データ受信シフトレジスタ133にデータが3ビットしか格納されていないため、受信データ格納部135へのデータの格納は実行されないまま、次のデータの送受信が実行される。つまり、データ格納許可信号139はLOWを保持する。   In the data reception circuit 130, the reception synchronization clock 137 is used as the LH signal of the data reception shift register 133 and the reception status confirmation shift register 134. Therefore, when the reception synchronization clock 137 is HIGH, the data reception shift register 133 is the reception circuit. The reception data is stored in synchronization with the internal clock 140, and the reception status confirmation shift register 134 stores HIGH. In this example, since the HIGH width of the synchronous clock is three cycles of the internal clock 140, data “111” for three bits is stored in the data reception shift register 133, and three flip-flops of the reception status confirmation shift register 134 are stored. The stored value of the group 600 is switched from LOW to HIGH. In this case, since only 3 bits of data are stored in the data reception shift register 133, the next data transmission / reception is performed without storing the data in the reception data storage unit 135. That is, the data storage permission signal 139 holds LOW.

次に、前述の動作Bについて、図9を用いてデータ送信回路100の動作を、図10を用いてデータ受信回路130の動作をそれぞれ説明する。   Next, regarding the above-described operation B, the operation of the data transmission circuit 100 will be described with reference to FIG. 9, and the operation of the data reception circuit 130 will be described with reference to FIG.

データ送信回路100において、送信状況確認シフトレジスタ103の全フリップフロップ300にHIGHが格納されると、供給データ切替信号113がHIGHになる(時刻t11)。この結果、同期クロック出力切替信号114がLOWになり、シフト動作が中断されるため、送信データ110はLOWのまま保持される。また、送信同期クロック117は送信回路内部クロック118の次のポジエッジにてHIGHからLOWに切り替わる(時刻t12)。供給データ切替信号113がHIGHの状態でクロック1周期カウンタ105のカウント値が“9”になると、送信データ更新信号116がHIGHになり、その結果、送信データ供給部102からの送信供給データ109が、次に送信するデータへと切り替わる(時刻t13)。また、送信データ更新信号116がHIGHになることにより、データ送信シフトレジスタ101への送信供給データ109の格納及び送信状況確認シフトレジスタ103のクリアが実行され、次のデータ送信が可能となる(時刻t14)。   In the data transmission circuit 100, when HIGH is stored in all the flip-flops 300 of the transmission status confirmation shift register 103, the supply data switching signal 113 becomes HIGH (time t11). As a result, the synchronous clock output switching signal 114 becomes LOW and the shift operation is interrupted, so that the transmission data 110 is held LOW. The transmission synchronization clock 117 is switched from HIGH to LOW at the next positive edge of the transmission circuit internal clock 118 (time t12). When the count value of the clock 1 cycle counter 105 becomes “9” while the supply data switching signal 113 is HIGH, the transmission data update signal 116 becomes HIGH. As a result, the transmission supply data 109 from the transmission data supply unit 102 is changed. Then, the data is switched to the next data to be transmitted (time t13). Further, when the transmission data update signal 116 becomes HIGH, the transmission supply data 109 is stored in the data transmission shift register 101 and the transmission status confirmation shift register 103 is cleared, and the next data transmission can be performed (time). t14).

データ受信回路130においては、データ送信回路100より2ビットのLOWデータを受け取った時点で、データ受信シフトレジスタ133の全フリップフロップ500に対する受信データの格納が完了する。この時、受信状況確認シフトレジスタ134においても全フリップフロップ600にHIGHが格納され、その結果データ格納許可信号139がHIGHとなる(時刻t12)。このタイミングで受信データ格納部135に全8ビットデータが格納され、更に内部クロック140の1周期後に受信状況確認シフトレジスタ134がクリアされることにより、次の8ビットのデータの受信が可能となる。   In the data reception circuit 130, when the 2-bit LOW data is received from the data transmission circuit 100, the storage of the reception data in all the flip-flops 500 of the data reception shift register 133 is completed. At this time, HIGH is also stored in all the flip-flops 600 in the reception status confirmation shift register 134, and as a result, the data storage permission signal 139 becomes HIGH (time t12). At this timing, all 8-bit data is stored in the reception data storage unit 135, and the reception status confirmation shift register 134 is cleared after one cycle of the internal clock 140, so that the next 8-bit data can be received. .

《実施の形態2》
実施の形態2は、実施の形態1に対して、
(1)シリアル送受信開始後、一番最初にテストデータ及びテスト用同期クロックを送受信し、データ受信回路において受信データが切り替わるタイミングと同期クロックの立ち上がりのタイミングのずれが、受信回路内部クロックの何周期分に相当するかをカウントし、その結果を元に実際のデータ及び同期クロックの送受信の際に発生するタイミングのずれを補正する機能と、
(2)シリアル送受信開始後、一番最初にテスト用データ及びテスト用同期クロックを送受信することにより、端子を通過する際に付加される遅延による同期クロックのHIGH幅の減少分を認識し、その結果を元に実際の同期クロックの送受信におけるHIGH幅の減少を補正する機能と、
(3)同期クロックのHIGH幅に対してオフセットを付加することにより、端子を通過する際の遅延によって起こりうる、同期クロックのHIGH期間の消失を防止する機能と、
(4)上記(3)で付加したオフセットによるHIGH期間の増加分を送信側にて除去する機能と、
(5)同期クロックのHIGH幅の上限を設定することにより、端子を通過する際の遅延によって起こりうる、同期クロックのLOW期間の消失を防止する機能と、
(6)Nビットの送受信完了後に、送信側は送受信エラー受付期間を設け、この期間中はデータ送信端子を入力に向け、Nビットの送受信が正常に実行されなかったことが原因で、データ受信回路がデータをNビット受信していないのにもかかわらずデータ送信回路がデータをNビット送信完了したと認識している場合、あるいはデータ受信シフトレジスタにNビットのデータが格納されているにもかかわらずデータ送信回路が更にデータを送信している場合に、データ受信回路からデータ送信回路に対して送受信エラー信号を送信し、送受信を失敗したデータの送受信を再実行する機能とを追加した実施形態である。
<< Embodiment 2 >>
The second embodiment is different from the first embodiment.
(1) After the start of serial transmission / reception, test data and test synchronous clock are transmitted / received first, and the difference between the timing at which the received data is switched in the data receiving circuit and the rising timing of the synchronous clock is the number of cycles of the internal clock of the receiving circuit. A function that counts whether it corresponds to minutes, and corrects a timing shift that occurs when transmitting / receiving actual data and a synchronous clock based on the result, and
(2) After starting serial transmission / reception, the test data and the test synchronous clock are transmitted / received first to recognize the decrease in the HIGH width of the synchronous clock due to the delay added when passing through the terminal. A function for correcting a decrease in HIGH width in actual transmission / reception of the synchronous clock based on the result,
(3) A function for preventing the disappearance of the HIGH period of the synchronous clock, which may occur due to a delay when passing through the terminal, by adding an offset to the HIGH width of the synchronous clock;
(4) A function of removing an increase in the HIGH period due to the offset added in (3) above on the transmission side;
(5) A function of preventing the disappearance of the LOW period of the synchronous clock, which may occur due to a delay when passing through the terminal, by setting an upper limit of the HIGH width of the synchronous clock;
(6) After transmission / reception of N bits is completed, the transmission side provides a transmission / reception error reception period. During this period, the data transmission terminal is turned to the input, and data reception is not performed because N-bit transmission / reception has not been executed normally. When the data transmission circuit recognizes that N bits of data have been transmitted even though the circuit has not received N bits of data, or when N bits of data are stored in the data reception shift register Regardless of whether the data transmission circuit is transmitting more data, a function that transmits a transmission / reception error signal from the data reception circuit to the data transmission circuit and re-executes transmission / reception of data that failed to be transmitted / received is added. It is a form.

実施の形態2について、データ送信回路に関しては図11〜図16を、データ受信回路に関しては図17〜図24を、シリアルデータ送受信の詳細な動作に関しては、図25〜図32を用いて説明を行う。   The second embodiment will be described with reference to FIGS. 11 to 16 regarding the data transmission circuit, FIGS. 17 to 24 regarding the data reception circuit, and FIGS. 25 to 32 regarding the detailed operation of serial data transmission / reception. Do.

図11は、本発明の実施の形態2におけるデータ送信回路の構成を示すブロック図である。データ送信回路1100は、図11に示したとおり、データ送信シフトレジスタ1101と、送信データ供給部1102と、送信状況確認シフトレジスタ1103と、エッジ検出回路1104と、クロック1周期カウンタ1105と、同期クロック出力切替回路1106と、シリアルデータ送信回路1107と、同期クロック送信端子1108と、オフセット付加回路1109と、クロック1周期カウンタ(2)1110と、クロックHIGH幅カウンタ1111とにより構成される。   FIG. 11 is a block diagram showing a configuration of a data transmission circuit according to the second embodiment of the present invention. As shown in FIG. 11, the data transmission circuit 1100 includes a data transmission shift register 1101, a transmission data supply unit 1102, a transmission status confirmation shift register 1103, an edge detection circuit 1104, a clock 1 cycle counter 1105, and a synchronous clock. The output switching circuit 1106, serial data transmission circuit 1107, synchronous clock transmission terminal 1108, offset addition circuit 1109, clock 1 cycle counter (2) 1110, and clock HIGH width counter 1111 are included.

データ送信シフトレジスタ1101は、図12に示したとおり、N個のセレクタ1200と、N個のフリップフロップ1201とにより構成される。当シフトレジスタ1101は、送信供給データ1112を送信データ供給部1102から受け取り、送信回路内部クロック1124に同期してシリアルデータ送信回路1107より送信するための回路である。送信データの値が切り替わるか、送信データをNビット送信完了するか、あるいは同期クロック送信端子1108より送信する送受信同期クロック1131のHIGH幅が、クロックHIGH幅カウンタ1111にて設定してある上限値に達した場合には、シフトレジスタ動作許可信号1123がLOWになり、シフト動作が中断され、送信同期クロック1120がLOWに切り替わる。格納されたデータが全ビット送信完了し、更に送受信エラー受付期間が終了すると、送信データ更新信号1118がHIGHになり、送信データ供給部1102から送信供給データ1112が供給される。   As shown in FIG. 12, the data transmission shift register 1101 includes N selectors 1200 and N flip-flops 1201. The shift register 1101 is a circuit for receiving transmission supply data 1112 from the transmission data supply unit 1102 and transmitting it from the serial data transmission circuit 1107 in synchronization with the transmission circuit internal clock 1124. Whether the value of transmission data is switched, transmission of N bits of transmission data is completed, or the HIGH width of the transmission / reception synchronization clock 1131 transmitted from the synchronization clock transmission terminal 1108 is set to the upper limit value set by the clock HIGH width counter 1111 When it reaches, the shift register operation permission signal 1123 becomes LOW, the shift operation is interrupted, and the transmission synchronization clock 1120 is switched to LOW. When transmission of all the bits of the stored data is completed and the transmission / reception error acceptance period ends, the transmission data update signal 1118 becomes HIGH, and the transmission supply data 1112 is supplied from the transmission data supply unit 1102.

送信データ供給部1102は、シリアル送受信開始時及びデータ送信シフトレジスタ1101に格納されたNビットのデータの送信が完了した際に、データ送信シフトレジスタ1101に送信データを供給するための回路である。データ送信シフトレジスタ1101のNビットのデータを正常に送信完了した時には、送信供給データ1112を次に出力するNビットの送信データに切り替えてデータ送信シフトレジスタ1101に対して出力する。送信済みのNビットに関して送受信が正常に行われず、送受信エラー信号1121が受信側より送信された場合には、送信供給データ1112を、直前に送信したNビットデータに再び切り替えてデータ送信シフトレジスタ1101に供給することにより、正常に実行されなかった送受信を再度実行する。   The transmission data supply unit 1102 is a circuit for supplying transmission data to the data transmission shift register 1101 at the start of serial transmission / reception and when transmission of N-bit data stored in the data transmission shift register 1101 is completed. When N-bit data in the data transmission shift register 1101 is normally transmitted, the transmission supply data 1112 is switched to the next N-bit transmission data to be output and output to the data transmission shift register 1101. When transmission / reception is not normally performed for the transmitted N bits and the transmission / reception error signal 1121 is transmitted from the reception side, the transmission supply data 1112 is switched again to the N-bit data transmitted immediately before, and the data transmission shift register 1101 is switched. The transmission / reception that has not been normally executed is executed again.

送信状況確認シフトレジスタ1103は、データ送信シフトレジスタ1101に格納されたNビットのデータの送信完了を通知するための回路であり、図13に示したとおり、送信回路内部クロック1124に同期して動作するN個のフリップフロップ1300と、NORゲート1301とにより構成されている。当シフトレジスタ1103は、データ送信シフトレジスタ1101と同じタイミングでシフト動作を実行し、全ビットのシリアルデータの送信が完了するとNビットデータ送信完了信号1116をHIGHにすることにより、送信完了を通知する。Nビットデータ送信完了後、送受信エラー受付期間が終了すると、当シフトレジスタ1103はクリアされ、次のデータを送受信可能な状態に切り替わる。   The transmission status confirmation shift register 1103 is a circuit for notifying the completion of transmission of the N-bit data stored in the data transmission shift register 1101, and operates in synchronization with the transmission circuit internal clock 1124 as shown in FIG. N flip-flops 1300 and a NOR gate 1301 are configured. The shift register 1103 performs a shift operation at the same timing as the data transmission shift register 1101. When transmission of all bits of serial data is completed, the N-bit data transmission completion signal 1116 is set to HIGH to notify transmission completion. . When the transmission / reception error acceptance period ends after the completion of N-bit data transmission, the shift register 1103 is cleared, and the next data can be transmitted / received.

エッジ検出回路1104は、送信データの値の切り替わりを検出し、検出時に送信データエッジ検出信号1115をHIGHに切り替え、データの送受信を中断するための回路である。なお、データ送信シフトレジスタ1101の全ビットデータ送信完了後、送信データ供給部1102から次のNビットの送信データを格納する際の当シフトレジスタ1101への入力値の切り替わりを、データ送信時の送信データの切り替わりエッジと誤認識することを防ぐために、送信データ更新信号1118がHIGHの時には、送信データエッジ検出信号1115をHIGHに切り替えないものとする。   The edge detection circuit 1104 is a circuit for detecting a change in the value of transmission data, switching the transmission data edge detection signal 1115 to HIGH at the time of detection, and interrupting transmission / reception of data. In addition, after all bit data transmission of the data transmission shift register 1101 is completed, switching of the input value to the shift register 1101 when storing the next N-bit transmission data from the transmission data supply unit 1102 is performed at the time of data transmission. In order to prevent erroneous recognition as a data switching edge, the transmission data edge detection signal 1115 is not switched to HIGH when the transmission data update signal 1118 is HIGH.

クロック1周期カウンタ1105は、送信同期クロック1120の周波数を設定するための、カウント周期を任意に設定可能な、送信回路内部クロック1124に同期して動作するカウンタである。カウント値が“0”になるとシリアルデータの送受信を開始し、カウント値が設定値に到達すると、クロック1周期カウント終了信号1117をHIGHに切り替えることにより、同期クロックの1周期の終了を通知する。   The clock 1 cycle counter 1105 is a counter that operates in synchronization with the transmission circuit internal clock 1124 and can arbitrarily set the count cycle for setting the frequency of the transmission synchronization clock 1120. When the count value becomes “0”, transmission / reception of serial data is started. When the count value reaches the set value, the clock 1 cycle count end signal 1117 is switched to HIGH to notify the end of one cycle of the synchronous clock.

同期クロック出力切替回路1106は、送信データのビット数に応じて送信同期クロック1120のHIGH幅を切り替えるための回路であり、図14に示したとおり、セレクタ1400と、送信回路内部クロック1124に同期して動作するフリップフロップ1401とにより構成される。なお、送信同期クロック1120にはオフセット付加回路1109にて任意にオフセットを付加することが可能であり、オフセットを付加した際には、受信側において同期クロックを使用する際にHIGH幅からオフセットを除去する。   The synchronous clock output switching circuit 1106 is a circuit for switching the HIGH width of the transmission synchronous clock 1120 according to the number of bits of transmission data, and is synchronized with the selector 1400 and the transmission circuit internal clock 1124 as shown in FIG. And a flip-flop 1401 that operates in the same manner. Note that an offset can be arbitrarily added to the transmission synchronization clock 1120 by the offset addition circuit 1109. When the offset is added, the offset is removed from the HIGH width when the synchronization clock is used on the reception side. To do.

シリアルデータ送信回路1107は、シリアルデータの送信と、受信側からデータ送信回路1100に対して送信される送受信エラー信号1121の受信とを行うための回路であり、図15に示したとおり、フリップフロップ1500と、インバータ1501と、トライステートバッファ1502と、ANDゲート1503と、シリアルデータ送信端子1510とにより構成される。データ送信時は出力に向いているが、データ送信シフトレジスタ1101のNビット全てのデータの送信完了後の送受信エラー受付期間中は、送受信エラー信号1121を受け付けるために入力に向く。   The serial data transmission circuit 1107 is a circuit for transmitting serial data and receiving a transmission / reception error signal 1121 transmitted from the receiving side to the data transmission circuit 1100. As shown in FIG. 1500, an inverter 1501, a tristate buffer 1502, an AND gate 1503, and a serial data transmission terminal 1510. Although it is suitable for output during data transmission, it is suitable for input in order to accept the transmission / reception error signal 1121 during the transmission / reception error reception period after completion of transmission of all N bits of data in the data transmission shift register 1101.

同期クロック送信端子1108は、送受信同期クロック1131を送信するための端子であって、常に出力を向いている。   The synchronous clock transmission terminal 1108 is a terminal for transmitting the transmission / reception synchronous clock 1131 and always faces the output.

オフセット付加回路1109は、同期クロックのHIGH幅にオフセットを付加することにより、端子を通過する際の遅延の影響によるHIGH期間の消失を防止するための回路であり、図16に示したとおり、(M+1)個のフリップフロップ1600と、M個のORゲート1601と、1個のセレクタ1602とにより構成される。オフセット値は任意に設定することができ、(オフセット設定値)×(内部クロックの1周期幅)だけ、同期クロックのHIGH幅を拡張することが可能である。   The offset adding circuit 1109 is a circuit for preventing the disappearance of the HIGH period due to the influence of the delay when passing through the terminal by adding an offset to the HIGH width of the synchronous clock. As shown in FIG. M + 1) flip-flops 1600, M OR gates 1601, and one selector 1602. The offset value can be set arbitrarily, and the HIGH width of the synchronous clock can be expanded by (offset setting value) × (one cycle width of the internal clock).

クロック1周期カウンタ(2)1110は、Nビットデータの送信終了から送信同期クロック1120の1周期分のカウント動作を実行し、そのカウント期間中は送受信エラー信号1121の受付期間として、データ及び同期クロックを送信しないよう、データ送信回路1100を制御するための回路である。このカウンタ1110の上限値にはクロック1周期カウンタ1105と同じ値が設定される。カウント値が上限値に到達すると、送信データ更新信号1118をHIGHに切り替えることにより、シリアルデータ送信回路1107の出力への切り替え及び送信状況確認シフトレジスタ1103のクリアが実行される。   The clock 1 cycle counter (2) 1110 executes the count operation for one cycle of the transmission synchronization clock 1120 after the end of transmission of the N-bit data, and the data and synchronization clock are used as the reception period of the transmission / reception error signal 1121 during the count period. This is a circuit for controlling the data transmission circuit 1100 so as not to transmit. The same value as the clock 1 cycle counter 1105 is set as the upper limit value of the counter 1110. When the count value reaches the upper limit value, the transmission data update signal 1118 is switched to HIGH, thereby switching to the output of the serial data transmission circuit 1107 and clearing the transmission status confirmation shift register 1103.

クロックHIGH幅カウンタ1111は、同期クロックのHIGH幅をカウントし、HIGH幅が予め設定したHIGH幅の上限値に到達した時点でデータ及びクロックの送信を中断することにより、端子を通過する際の遅延の影響による同期クロックのLOW期間の消失を防止するための回路である。HIGH幅の上限値は任意に設定することができ、送信するクロックのHIGH幅を、(HIGH幅の上限値)×(内部クロックの1周期幅)以下に制限することが可能である。   The clock HIGH width counter 1111 counts the HIGH width of the synchronous clock, and delays when passing through the terminal by interrupting the transmission of data and clock when the HIGH width reaches the upper limit value of the predetermined HIGH width. This is a circuit for preventing the disappearance of the LOW period of the synchronous clock due to the influence of. The upper limit value of the HIGH width can be arbitrarily set, and the HIGH width of the clock to be transmitted can be limited to (HIGH width upper limit value) × (one cycle width of the internal clock) or less.

データ受信回路1700は、図17に示したとおり、シリアルデータ受信回路1701と、同期クロック受信端子1702と、データ受信シフトレジスタ1703と、受信状況確認シフトレジスタ1704と、受信データ格納部1705と、同期クロックHIGH幅補正回路1706と、同期クロックオフセット除去回路1707と、受信データオフセット除去回路1708と、同期クロックLOW幅カウンタ1709と、受信信号切り替わりタイミング補正回路1722とにより構成される。   As shown in FIG. 17, the data reception circuit 1700 is synchronized with the serial data reception circuit 1701, the synchronous clock reception terminal 1702, the data reception shift register 1703, the reception status check shift register 1704, and the reception data storage unit 1705. A clock HIGH width correction circuit 1706, a synchronous clock offset removal circuit 1707, a reception data offset removal circuit 1708, a synchronous clock LOW width counter 1709, and a reception signal switching timing correction circuit 1722 are configured.

シリアルデータ受信回路1701は、シリアルデータを受信し、かつ送受信エラー信号1713を送信するための回路であり、図18に示したとおり、オフセット付加回路1800と、トライステートバッファ1801と、インバータ1802と、ANDゲート1803と、シリアルデータ受信端子1810とにより構成される。データ受信時は入力に向いているが、Nビット送受信が正常に実行されなかった場合は出力に向き、送受信エラー信号1713を送信する。この際、送受信エラー信号1713には、オフセット付加回路1800により、図11のデータ送信回路1100にて送信同期クロック1120に付加されるオフセットと同じ値のオフセットが付加され、端子を通過する際の遅延による送受信エラー信号1713の消失を防止する。   The serial data receiving circuit 1701 is a circuit for receiving serial data and transmitting a transmission / reception error signal 1713. As shown in FIG. 18, an offset adding circuit 1800, a tristate buffer 1801, an inverter 1802, An AND gate 1803 and a serial data receiving terminal 1810 are included. It is suitable for input when data is received, but when N-bit transmission / reception is not normally executed, it is directed to output and a transmission / reception error signal 1713 is transmitted. At this time, the transmission / reception error signal 1713 is added with an offset having the same value as the offset added to the transmission synchronization clock 1120 by the data transmission circuit 1100 of FIG. This prevents the transmission / reception error signal 1713 from being lost.

同期クロック受信端子1702は常に入力を向いており、送受信同期クロック1131を受信するための端子である。   The synchronous clock receiving terminal 1702 is always directed to the input and is a terminal for receiving the transmission / reception synchronous clock 1131.

データ受信シフトレジスタ1703は、受信同期クロック(0)1720がHIGHである時に、受信回路内部クロック1723に同期して、シリアル受信データ(0)1719をシリアルデータ受信回路1701より受信するための回路であり、図19に示したように、N個のフリップフロップ1900により構成されている。データ受信シフトレジスタ1703の全ビットにデータが格納されると、格納データ全ビットが受信データ格納部1705へと格納される。   The data reception shift register 1703 is a circuit for receiving serial reception data (0) 1719 from the serial data reception circuit 1701 in synchronization with the reception circuit internal clock 1723 when the reception synchronization clock (0) 1720 is HIGH. There are N flip-flops 1900 as shown in FIG. When data is stored in all bits of the data reception shift register 1703, all stored data bits are stored in the reception data storage unit 1705.

受信状況確認シフトレジスタ1704は、データ受信シフトレジスタ1703がNビットのデータの受信を完了したことを受信データ格納部1705に対して通知するための回路であり、図20に示したとおり、受信回路内部クロック1723に同期して動作するN個のフリップフロップ2000と、他の2個のフリップフロップ2001,2013と、インバータ2010,2016と、ANDゲート2011,2012,2014,2017と、ORゲート2015とにより構成されている。当シフトレジスタ1704は、データ受信シフトレジスタ1703と同じタイミングでシフト動作を実行し、Nビットのシリアルデータの受信が完了すると、データ格納許可信号1718をHIGHに切り替えることにより、データ受信シフトレジスタ1703内のデータを受信データ格納部1705に格納する。また、データ受信シフトレジスタ1703に既にNビットのデータが格納されているにもかかわらず送信側からデータが送信され続けているとき、あるいはデータ受信シフトレジスタ1703にNビットのデータが格納されていないのにもかかわらず送信側がNビットデータ送信を終了し、送受信エラー受付状態に入った時には、Nビットのデータの送受信が正常に実施されなかったと判断し、シリアルデータ受信回路1701へ送受信エラー信号1713を供給する。   The reception status confirmation shift register 1704 is a circuit for notifying the reception data storage unit 1705 that the data reception shift register 1703 has completed reception of N-bit data. As shown in FIG. N flip-flops 2000 operating in synchronization with the internal clock 1723, the other two flip-flops 2001, 2013, inverters 2010, 2016, AND gates 2011, 2012, 2014, 2017, OR gate 2015, It is comprised by. The shift register 1704 executes a shift operation at the same timing as the data reception shift register 1703, and when reception of N-bit serial data is completed, the data storage permission signal 1718 is switched to HIGH to thereby change the data reception shift register 1703. Is stored in the received data storage unit 1705. In addition, when N-bit data is already stored in the data reception shift register 1703, data is continuously transmitted from the transmission side, or no N-bit data is stored in the data reception shift register 1703. However, when the transmission side finishes N-bit data transmission and enters the transmission / reception error acceptance state, it is determined that transmission / reception of N-bit data has not been performed normally, and the transmission / reception error signal 1713 is transmitted to the serial data reception circuit 1701. Supply.

同期クロックHIGH幅補正回路1706は、端子を通過する際の遅延の影響によって、送受信同期クロック1131のHIGH幅が減少した際に、減少した分だけHIGH幅を拡張することにより送信時のHIGH幅を復元するための回路であり、図21に示したとおり、(M+1)個のフリップフロップ2100と、M個のORゲート2101と、1個のセレクタ2102と、受信同期クロックHIGH幅カウンタ2103とにより構成される。最初にテスト用の同期クロックを送信側が出力し、受信側における同期クロックのHIGH幅の減少分を受信同期クロックHIGH幅カウンタ2103によってカウントし、その減少分だけ当補正回路1706にてHIGH幅を拡張する。   When the HIGH width of the transmission / reception synchronization clock 1131 decreases due to the delay when passing through the terminal, the synchronous clock HIGH width correction circuit 1706 expands the HIGH width by the reduced amount to increase the HIGH width during transmission. FIG. 21 shows a circuit for restoration, and includes (M + 1) flip-flops 2100, M OR gates 2101, one selector 2102, and a reception synchronization clock HIGH width counter 2103, as shown in FIG. Is done. First, the transmission side outputs a test synchronous clock, and a decrease in the HIGH width of the synchronization clock on the reception side is counted by the reception synchronization clock HIGH width counter 2103, and the HIGH width is expanded by the correction circuit 1706 by the decrease. To do.

なお、受信同期クロックHIGH幅カウンタ2103は、後述する初期設定許可信号(0)2410がLOWの時に受信信号切り替わりタイミング補正回路1722を通過した同期クロックである受信同期クロック(1)1714のHIGH幅が受信回路内部クロック1723の何周期分であるかをカウントする。また、そのカウント結果、つまり受信同期クロックHIGH幅2105の、実際に同期クロック受信端子1702より入力した同期クロックのHIGH幅からの減少分の受信側回路内部クロックカウント数を受信同期クロック(2)1715の出力切り替えのセレクト信号としてセレクタ2102にて使用することにより、受信同期クロック(2)1715を、送信時のHIGH幅が復元された同期クロックとすることが可能である。   The reception synchronization clock HIGH width counter 2103 has a HIGH width of the reception synchronization clock (1) 1714 which is a synchronization clock that has passed through the reception signal switching timing correction circuit 1722 when an initial setting permission signal (0) 2410 described later is LOW. The number of cycles of the reception circuit internal clock 1723 is counted. Also, the reception synchronization clock (2) 1715 indicates the count result, that is, the reception-side circuit internal clock count of the reception synchronization clock HIGH width 2105 corresponding to the decrease from the HIGH width of the synchronization clock actually input from the synchronization clock reception terminal 1702. By using the selector 2102 as the output switching select signal, the reception synchronization clock (2) 1715 can be a synchronization clock in which the HIGH width at the time of transmission is restored.

同期クロックオフセット除去回路1707は、受信同期クロック(0)1720のHIGH幅から、送信側において付加されているオフセットの影響を除去するための回路であり、図22に示したとおり、(M+1)個のフリップフロップ2200と、M個のANDゲート2201と、1個のセレクタ2202と、1個のインバータ2203と、1個のANDゲート2204とにより構成される。   The synchronous clock offset removal circuit 1707 is a circuit for removing the influence of the offset added on the transmission side from the HIGH width of the reception synchronous clock (0) 1720. As shown in FIG. Flip-flop 2200, M AND gates 2201, one selector 2202, one inverter 2203, and one AND gate 2204.

受信データオフセット除去回路1708は、同期クロックオフセット除去回路1707を通過した同期クロックと、受信データとの、値の切り替わりのタイミングを揃えるための回路であり、図23に示したとおり、(M+1)個のフリップフロップ2300と、1個のセレクタ2301とにより構成される。同期クロックオフセット除去回路1707を通過する際に、同期クロックはオフセット分だけ遅延し、その結果同期クロックのポジエッジと、受信データの値の切り替わりのタイミングとがずれてしまうため、受信データオフセット除去回路1708により、受信データに対してもオフセット分だけ遅延を付加することによりタイミングを揃えている。   The reception data offset removal circuit 1708 is a circuit for aligning the timing of switching values between the synchronization clock that has passed through the synchronization clock offset removal circuit 1707 and the reception data. As shown in FIG. Flip-flop 2300 and one selector 2301. When passing through the synchronous clock offset removing circuit 1707, the synchronous clock is delayed by the offset, and as a result, the positive edge of the synchronous clock is shifted from the timing of switching the value of the received data. Thus, the timing is also adjusted by adding a delay corresponding to the offset to the received data.

同期クロックLOW幅カウンタ1709は、同期クロックのLOW幅をカウントする回路である。図11のデータ送信回路1100は、Nビットデータ送信終了後、次の1同期クロック間は、送受信エラー信号1121を受け付けるためにデータ及び同期クロックを送信しない。そのため、送信側がNビットデータの送信を終了すると、最低でも送受信同期クロック1131の1周期の時間は送受信同期クロック1131がLOWに保持される。当カウンタ1709は、同期クロックのLOW幅をカウントすることにより、送信側のNビットデータの送信終了を確認することを目的としている。   The synchronous clock LOW width counter 1709 is a circuit that counts the LOW width of the synchronous clock. The data transmission circuit 1100 in FIG. 11 does not transmit data and a synchronization clock to accept a transmission / reception error signal 1121 during the next one synchronization clock after the end of N-bit data transmission. For this reason, when the transmission side finishes transmitting N-bit data, the transmission / reception synchronization clock 1131 is held LOW for at least one cycle of the transmission / reception synchronization clock 1131. The counter 1709 is intended to confirm the end of transmission of N-bit data on the transmission side by counting the LOW width of the synchronous clock.

受信信号切り替わりタイミング補正回路1722は、図24に示したとおり、シリアル受信データ(0)1719を受け取るシンクロナイザ2400と、(X+1)個のフリップフロップ2401と、受信同期クロック(0)1720を受け取るシンクロナイザ2402と、(Y+1)個のフリップフロップ2403と、データポジエッジ検出器2405と、同期クロックポジエッジ検出器2406と、クロック遅れカウンタ2407と、データ遅れカウンタ2408と、初期設定許可信号(0)2410を生成するためのフリップフロップ2420と、インバータ2421,2422と、ANDゲート2423,2424と、セレクタ2425,2426とにより構成される。当回路1722は、最初のテストデータ及びテスト用同期クロックの送受信の際に、受信側におけるデータのポジエッジと同期クロックのポジエッジとのずれを受信回路内部クロック1723にてカウントし、両者のうち、同期クロックのポジエッジの方が先に検出された場合はデータ遅れカウンタ2408が受信同期クロック(0_2)2416に、受信データのポジエッジの方が先に検出された場合はクロック遅れカウンタ2407がシリアル受信データ(0_2)2415に対してずれの分だけ遅延を付加するようデータ受信回路1700を初期設定することにより、以降の送受信におけるデータ受信ミスの発生を防ぐための回路である。初期設定が実行されるのは、初期設定許可信号(0)2410が初期値LOWの時であり、初期設定許可信号(0)2410は受信同期クロック(0)1720の1回目の立ち下がりが発生するとHIGHになるため、それ以後はシリアル送受信が完了するまで最初の設定が変更されない。   The received signal switching timing correction circuit 1722, as shown in FIG. (Y + 1) flip-flops 2403, data positive edge detector 2405, synchronous clock positive edge detector 2406, clock delay counter 2407, data delay counter 2408, and initial setting permission signal (0) 2410 A flip-flop 2420 for generation, inverters 2421 and 2422, AND gates 2423 and 2424, and selectors 2425 and 2426 are included. When the first test data and the test synchronous clock are transmitted and received, the circuit 1722 counts the deviation between the positive edge of the data on the receiving side and the positive edge of the synchronous clock with the internal clock 1723 of the receiver circuit, When the positive edge of the clock is detected first, the data delay counter 2408 is set to the reception synchronization clock (0_2) 2416. When the positive edge of the received data is detected first, the clock delay counter 2407 is set to the serial reception data ( 0_2) This is a circuit for preventing the occurrence of a data reception error in subsequent transmission / reception by initializing the data reception circuit 1700 to add a delay to the 2415 by the amount of deviation. The initial setting is executed when the initial setting permission signal (0) 2410 is the initial value LOW, and the first falling edge of the reception synchronization clock (0) 1720 occurs in the initial setting permission signal (0) 2410. Then, since it becomes HIGH, the initial setting is not changed until serial transmission / reception is completed.

図24に示したデータポジエッジ検出器2405と、同期クロックポジエッジ検出器2406と、クロック遅れカウンタ2407と、データ遅れカウンタ2408とは、それぞれ初期設定の際のシリアル受信データ(0_2)2415のポジエッジに対する受信同期クロック(0_2)2416のポジエッジの遅れあるいは受信同期クロック(0_2)2416のポジエッジに対するシリアル受信データ(0_2)2415のポジエッジの遅れを、受信回路内部クロック1723にてカウントするために使用する回路である。   The data positive edge detector 2405, the synchronous clock positive edge detector 2406, the clock delay counter 2407, and the data delay counter 2408 shown in FIG. 24 are respectively positive edges of the serial reception data (0_2) 2415 at the time of initial setting. Used to count the positive edge delay of the reception synchronization clock (0_2) 2416 with respect to the positive edge of the serial reception data (0_2) 2415 relative to the positive edge of the reception synchronization clock (0_2) 2416 with the internal clock 1723 of the reception circuit. It is.

データポジエッジ検出器2405は、シンクロナイザ2400を通過した受信データであるシリアル受信データ(0_2)2415のポジエッジを検出すると、データポジエッジ検出信号2411をHIGHにする回路である。データポジエッジ検出信号2411は一度HIGHになると、シリアル送受信が終了するまでHIGHを保つ。   The data positive edge detector 2405 is a circuit that sets the data positive edge detection signal 2411 to HIGH when the positive edge of the serial reception data (0_2) 2415 that is reception data that has passed through the synchronizer 2400 is detected. Once the data positive edge detection signal 2411 becomes HIGH, it remains HIGH until the serial transmission / reception is completed.

データ遅れカウンタ2408は、シリアル受信データ(0_2)2415のポジエッジの受信タイミングの、受信同期クロック(0_2)2416のポジエッジの受信タイミングに対する遅れが受信回路内部クロック1723の何周期分であるかをカウントするためのカウンタであり、データ遅れカウントイネーブル2414がアサートされている間は受信回路内部クロック1723に同期してカウント動作を実行し、クロック遅れカウントイネーブル2413がアサートされるとカウント動作を終了する。   The data delay counter 2408 counts how many periods of the reception circuit internal clock 1723 the delay of the reception timing of the serial reception data (0_2) 2415 relative to the reception timing of the reception synchronization clock (0_2) 2416 corresponds to. The counter operates in synchronization with the internal clock 1723 of the receiving circuit while the data delay count enable 2414 is asserted, and ends when the clock delay count enable 2413 is asserted.

同期クロックポジエッジ検出器2406はデータポジエッジ検出器2405と、クロック遅れカウンタ2407はデータ遅れカウンタ2408と、それぞれ同様の動作を同期クロックに関して実行する回路である。   The synchronous clock positive edge detector 2406 and the data delay counter 2407 are circuits that execute the same operation with respect to the synchronous clock, respectively.

両ポジエッジ検出器2405,2406及び両遅れカウンタ2407,2408によって確認された当データ受信回路1700におけるシリアル受信データ(0_2)2415のポジエッジに対する受信同期クロック(0_2)2416のポジエッジの遅れあるいは受信同期クロック(0_2)2416のポジエッジに対するシリアル受信データ(0_2)2415のポジエッジの遅れをクロック遅れカウント値2417またはデータ遅れカウント値2418に反映し、先にポジエッジが検出された方にのみ遅延を付加することによって、タイミング調整済みの受信データ及び同期クロックである、シリアル受信データ(1)1710及び受信同期クロック(1)1714を生成することが可能となる。   The positive edge delay or the reception synchronization clock of the reception synchronization clock (0_2) 2416 with respect to the positive edge of the serial reception data (0_2) 2415 in the data reception circuit 1700 confirmed by the both positive edge detectors 2405 and 2406 and the both delay counters 2407 and 2408 ( 0_2) Reflecting the delay of the positive edge of the serial reception data (0_2) 2415 with respect to the positive edge of 2416 in the clock delay count value 2417 or the data delay count value 2418, and adding a delay only to the one where the positive edge is detected first, It is possible to generate serial reception data (1) 1710 and reception synchronization clock (1) 1714, which are reception data and synchronization clock whose timing has been adjusted.

ここからは、実施の形態2についての回路の詳細な動作を説明する。説明する動作としては、
C.シリアル送受信の最初にテスト用のデータ及びテスト用の同期クロックを送受信し、シリアル受信データ(0_2)2415のポジエッジに対する受信同期クロック(0_2)2416のポジエッジの遅れあるいは受信同期クロック(0_2)2416のポジエッジに対するシリアル受信データ(0_2)2415のポジエッジの遅れを受信回路内部クロック1723にてカウントし、その結果を元に受信信号切り替わりタイミング補正回路1722を設定する動作と、テスト用同期クロックのHIGH幅の減少分を受信回路内部クロック1723にてカウントし、その結果を元に同期クロックHIGH幅補正回路1706を設定する動作、
D.シリアル送受信動作
〔1〕“11100…”なる、最初にビット1が3ビット連続している構成のデータの送信を開始:
〔2〕HIGHデータを3ビット送信後、送信データの切り替わりを検出し、送受信を中断:
〔3〕同期クロックの1周期終了後、次の“00…”のデータ送信再開、
E.Nビットデータ送受信完了時動作
〔1〕データ送信シフトレジスタ1101に最初に格納されたNビットのデータのうち2ビット“00”のデータだけが未送信で残っている:
〔2〕この状態でLOWデータの2ビット送信開始:
〔3〕2ビット送信終了後、送受信エラー受付状態に移行:
〔4〕次のNビットデータをデータ送信シフトレジスタ1101に格納して送信再開、
という、代表的な3パターンを対象とする。
From here, the detailed operation of the circuit according to the second embodiment will be described. As an operation to explain,
C. At the beginning of serial transmission / reception, test data and a test synchronization clock are transmitted / received. The delay of the positive edge of the serial reception data (0_2) 2415 with respect to the signal is counted by the internal clock 1723 of the reception circuit, the operation of setting the reception signal switching timing correction circuit 1722 based on the result, and the reduction of the HIGH width of the test synchronous clock Minute is counted by the reception circuit internal clock 1723, and the synchronous clock HIGH width correction circuit 1706 is set based on the result.
D. Serial transmission / reception operation [1] Start transmission of data of “11100...
[2] After transmitting 3 bits of HIGH data, detect switching of transmission data and interrupt transmission / reception:
[3] After one cycle of the synchronous clock ends, the next data transmission of “00.
E. Operation when N-bit data transmission / reception is completed [1] Of the N-bit data initially stored in the data transmission shift register 1101, only 2-bit “00” data remains untransmitted:
[2] Start 2-bit transmission of LOW data in this state:
[3] After completion of 2-bit transmission, transition to the transmission / reception error acceptance state:
[4] Store next N-bit data in data transmission shift register 1101 and resume transmission.
The three typical patterns are targeted.

なお、説明の際の前提条件として、各パラメータの設定を、
・データ送信シフトレジスタ1101のフリップフロップ1201は8つ(N=8)
・送受信同期クロック1131の1周期幅は、内部クロック1124,1723の10周期分
・送受信同期クロック1131のHIGH幅に付加するオフセットは内部クロック1124,1723の2周期分
・送受信同期クロック1131のHIGH幅の上限値は内部クロック1124,1723の6周期分
・最初に送受信するテストデータはHIGH、テスト用同期クロックのHIGH幅は内部クロック1124,1723の5周期分とする。
As a prerequisite for the explanation, the setting of each parameter is
-Eight flip-flops 1201 of the data transmission shift register 1101 (N = 8)
-One cycle width of the transmission / reception synchronization clock 1131 is 10 cycles of the internal clocks 1124, 1723-Offset added to the HIGH width of the transmission / reception synchronization clock 1131 is two cycles of the internal clocks 1124, 1723-HIGH width of the transmission / reception synchronization clock 1131 Is 6 cycles of internal clocks 1124 and 1723. The first test data to be transmitted and received is HIGH, and the HIGH width of the test synchronous clock is 5 cycles of internal clocks 1124 and 1723.

実施の形態2の動作Cの場合の受信側の回路動作について、図25を用いて説明する。ここでは、シリアル受信データ(0)1719がテストデータであり、受信同期クロック(0)1720がテスト用同期クロックである。   The circuit operation on the reception side in the case of operation C of the second embodiment will be described with reference to FIG. Here, serial reception data (0) 1719 is test data, and reception synchronization clock (0) 1720 is a test synchronization clock.

今、シリアル受信データ(0)1719及び受信同期クロック(0)1720の受信タイミングが図25に示したようなタイミング(時刻t21の前後)であり、更に受信同期クロック(0)1720のHIGH幅が端子通過の際に発生する遅延の影響により受信回路内部クロック1723の1周期分程度減少した場合(図25中のハッチング)を想定して、回路動作を説明する。   Now, the reception timing of the serial reception data (0) 1719 and the reception synchronization clock (0) 1720 is the timing as shown in FIG. 25 (before and after the time t21), and the HIGH width of the reception synchronization clock (0) 1720 is further increased. The circuit operation will be described on the assumption that the receiving circuit internal clock 1723 is reduced by about one cycle (hatching in FIG. 25) due to the influence of the delay that occurs when passing through the terminals.

この場合、シリアル受信データ(0)1719及び受信同期クロック(0)1720がそれぞれシンクロナイザ2400,2402を通過した後、シリアル受信データ(0_2)2415のポジエッジ(時刻t23)は受信同期クロック(0_2)2416のポジエッジ(時刻t22)に対して受信回路内部クロック1723の1周期分だけ遅れるため、クロック遅れカウンタ2407のカウント値は“0”のままであり、データ遅れカウンタ2408のカウント値は“1”となる(時刻t23)。これらの結果がそれぞれシリアル受信データ(1)1710を生成するセレクタ2425及び受信同期クロック(1)1714を生成するセレクタ2426の各々のセレクト信号として反映され、実際の送受信においては、シリアル受信データ(1)1710としてはシリアル受信データ(0_2)2415をそのまま、受信同期クロック(1)1714としては受信同期クロック(0_2)2416を受信回路内部クロック1723で1回叩いたものをそれぞれ採用することにより、受信信号切り替わりタイミング補正回路1722の通過後のデータのポジエッジと同期クロックのポジエッジとのタイミングを揃えることを可能とする。   In this case, after the serial reception data (0) 1719 and the reception synchronization clock (0) 1720 have passed through the synchronizers 2400 and 2402, respectively, the positive edge (time t23) of the serial reception data (0_2) 2415 is the reception synchronization clock (0_2) 2416. Is delayed by one cycle of the receiving circuit internal clock 1723, the count value of the clock delay counter 2407 remains “0”, and the count value of the data delay counter 2408 is “1”. (Time t23). These results are reflected as select signals of the selector 2425 for generating the serial reception data (1) 1710 and the selector 2426 for generating the reception synchronization clock (1) 1714, respectively. In actual transmission / reception, the serial reception data (1 ) 1710 is the serial reception data (0_2) 2415 as it is, and the reception synchronization clock (1) 1714 is received by hitting the reception synchronization clock (0_2) 2416 with the reception circuit internal clock 1723 once. The timing of the positive edge of the data after passing through the signal switching timing correction circuit 1722 and the positive edge of the synchronous clock can be made uniform.

更に、テストデータ及びテスト用同期クロック送受信時に、受信同期クロック(1)1714のHIGH幅が受信回路内部クロック1723の1周期分減少していることを、受信同期クロックHIGH幅カウンタ2103におけるカウント結果(受信同期クロックHIGH幅)2105から認識し、実際の送受信においては受信同期クロック(1)1714のHIGH幅を同期クロックHIGH幅補正回路1706において受信回路内部クロック1723の1周期分(時刻t26から時刻t27へ)拡張することにより、端子を通過する際の遅延の影響による、受信同期クロック(0)1720におけるHIGH幅の減少を補正することができる。   Further, the fact that the HIGH width of the reception synchronization clock (1) 1714 is reduced by one period of the reception circuit internal clock 1723 during transmission / reception of the test data and the test synchronization clock indicates that the reception synchronization clock HIGH width counter 2103 counts ( (Reception synchronization clock HIGH width) 2105, and in actual transmission / reception, the synchronization clock HIGH width correction circuit 1706 determines the HIGH width of the reception synchronization clock (1) 1714 for one period of the reception circuit internal clock 1723 (from time t26 to time t27). By extending, it is possible to correct the decrease in the HIGH width in the reception synchronous clock (0) 1720 due to the influence of the delay when passing through the terminal.

以上の回路設定動作は、初期設定許可信号(0)2410がLOWの時(時刻t26まで)に実行される。テストデータ及びテスト用同期クロックの送受信終了後は初期設定許可信号(0)2410がHIGHとなるため、設定が以降のシリアル送受信において変更されることはない。   The above circuit setting operation is executed when the initial setting permission signal (0) 2410 is LOW (until time t26). Since the initial setting permission signal (0) 2410 becomes HIGH after the transmission / reception of the test data and the test synchronous clock is completed, the setting is not changed in the subsequent serial transmission / reception.

次に、実施の形態2の動作Dについて、図26及び図27を用いてデータ送信回路1100の動作を、図28を用いてデータ受信回路1700の動作をそれぞれ説明する。   Next, regarding the operation D of the second embodiment, the operation of the data transmission circuit 1100 will be described with reference to FIGS. 26 and 27, and the operation of the data reception circuit 1700 will be described with reference to FIG.

データ送信回路1100において、送信開始(時刻t31)に先立つ送信回路内部クロック1124の1周期前には、シフトレジスタ動作許可信号1123はHIGHであり、クロック1周期カウンタ1105のカウント値が“0”になると同時(時刻t31)に送信データはHIGH(送信するデータが“111”であるため)、送信同期クロック1120もHIGHに切り替わり、シリアルデータの送受信を開始する。また、送信状況確認シフトレジスタ1103も同時にシフト動作を開始する。そして、HIGHデータを2ビット出力した後、送信データエッジ検出用信号1114がLOWに切り替わり、その切り替わりエッジをエッジ検出回路1104が検出し、送信データエッジ検出信号1115をHIGHにする(時刻t32)。その結果、シフトレジスタ動作許可信号1123はLOWになり、データ送信シフトレジスタ1101及び送信状況確認シフトレジスタ1103のシフト動作は中断し、シリアル送信データ1113はHIGHのまま保持される。一方、送信同期クロック1120はオフセット付加回路1109によりオフセットを送信回路内部クロック1124の2周期分付加されているため、シフトレジスタ動作許可信号1123がLOWになっても次の送信回路内部クロック1124の立ち上がりではLOWには切り替わらず、今回送信するデータ“111”のビット数“3”にオフセット“2”を加えた、送信回路内部クロック1124の5周期分に相当するHIGH幅を保持する(時刻t31から時刻t33まで)。シフトレジスタ動作中断中もクロック1周期カウンタ1105は動作し続け、そのカウンタ値が上限値である“9”に到達すると(時刻t34)、同期クロックの1周期が終了する合図としてクロック1周期カウント終了信号1117をHIGHにする。これを受けてエッジ検出回路1104は送信データエッジ検出信号1115をLOWに切り替えるため、送信回路内部クロック1124の次の立ち上がり(時刻t35)より、シフトレジスタ1101,1103は再びシフト動作を開始し、データ及び同期クロックの送信を開始する。   In the data transmission circuit 1100, one cycle before the transmission circuit internal clock 1124 prior to the start of transmission (time t31), the shift register operation permission signal 1123 is HIGH, and the count value of the clock one cycle counter 1105 is set to “0”. At the same time (time t31), the transmission data is HIGH (because the data to be transmitted is “111”), the transmission synchronization clock 1120 is also switched to HIGH, and transmission / reception of serial data is started. The transmission status confirmation shift register 1103 also starts a shift operation at the same time. Then, after 2 bits of HIGH data are output, the transmission data edge detection signal 1114 switches to LOW, the switching edge is detected by the edge detection circuit 1104, and the transmission data edge detection signal 1115 is set to HIGH (time t32). As a result, the shift register operation permission signal 1123 becomes LOW, the shift operations of the data transmission shift register 1101 and the transmission status confirmation shift register 1103 are interrupted, and the serial transmission data 1113 is held HIGH. On the other hand, since the transmission synchronization clock 1120 is offset by two periods of the transmission circuit internal clock 1124 by the offset addition circuit 1109, the next transmission circuit internal clock 1124 rises even if the shift register operation permission signal 1123 becomes LOW. In this case, the HIGH width corresponding to five cycles of the internal clock 1124 of the transmission circuit, which is obtained by adding the offset “2” to the number of bits “3” of the data “111” to be transmitted this time, is maintained (from time t31). Until time t33). While the shift register operation is interrupted, the clock 1 cycle counter 1105 continues to operate, and when the counter value reaches the upper limit “9” (time t34), the clock 1 cycle count ends as a signal to end one cycle of the synchronous clock. The signal 1117 is set to HIGH. In response to this, the edge detection circuit 1104 switches the transmission data edge detection signal 1115 to LOW, so that the shift registers 1101 and 1103 again start the shift operation from the next rising edge (time t35) of the transmission circuit internal clock 1124, and the data And transmission of the synchronous clock is started.

以上のデータ送信回路1100の動作については、同期クロックHIGH幅が送信回路内部クロック1124の5周期分であり、前述した同期クロックHIGH幅の上限値(送信回路内部クロック1124の6周期分)には到達していない場合を想定しているが、同期クロックHIGH幅が上限値に到達した場合の動作を図27に示す。図26と図27との間の条件の差分は、前者は同期クロックHIGH幅の上限が内部クロック1124の6周期分であるのに対し、後者は内部クロック1124の4周期分に設定してあることである。図26の条件においては、シフトレジスタ1101,1103のシフト動作の中断のタイミングが送信データの“1”から“0”への切り替わりであることから、1回目の送信の際にシリアル送信データ1113をHIGH、送信同期クロック1120を送信回路内部クロック1124の5周期分(送信ビット数+オフセット)HIGH出力することにより、“111”の計3ビットのデータ送信を実施し、2回目の送信で“0…”のデータ送信を実施しているが、図27においては、送信同期クロック1120が送信回路内部クロック1124の4周期分に制限されていることから、シフトレジスタ1101,1103のシフト動作の中断のタイミングが、オフセット付加前のクロックHIGH幅が送信回路内部クロック1124の2周期分に達したタイミング(時刻t31a)となるため、1回目の送信においては“11”の計2ビットのデータ送信を実施し、2回目の送信(時刻t35)において“1”の1ビットのデータ送信を実施している。   With respect to the operation of the data transmission circuit 1100 described above, the synchronization clock HIGH width corresponds to five cycles of the transmission circuit internal clock 1124, and the above-described upper limit value of the synchronization clock HIGH width (six cycles of the transmission circuit internal clock 1124) FIG. 27 shows an operation when the synchronous clock HIGH width reaches the upper limit value, although it is assumed that it has not reached. The difference in conditions between FIG. 26 and FIG. 27 is that the former has an upper limit of the synchronous clock HIGH width corresponding to six cycles of the internal clock 1124, whereas the latter is set to four cycles of the internal clock 1124. That is. In the condition of FIG. 26, the timing of interruption of the shift operation of the shift registers 1101 and 1103 is switching from “1” to “0” of the transmission data, so that the serial transmission data 1113 is changed at the first transmission. High, the transmission synchronous clock 1120 is output HIGH for 5 cycles of the transmission circuit internal clock 1124 (number of transmission bits + offset), thereby performing a total of 3 bits of data transmission of “111” and “0” in the second transmission. In FIG. 27, since the transmission synchronous clock 1120 is limited to four periods of the transmission circuit internal clock 1124, the shift operation of the shift registers 1101 and 1103 is interrupted. Timing is 2 cycles of the clock HIGH before the offset addition is the transmission circuit internal clock 1124 Therefore, a total of 2-bit data transmission of “11” is performed in the first transmission, and a 1-bit data transmission of “1” is performed in the second transmission (time t35). Has been implemented.

データ受信回路1700においては、実施の形態2の動作Cにおける初期設定に従って、受信信号切り替わりタイミング補正回路1722においてシリアル受信データ(0)1719及び受信同期クロック(0)1720をそれぞれシンクロナイザ2400,2402を通過させ、更に受信同期クロック(0_2)2416を受信回路内部クロック1723の1周期分だけ遅らせることにより、図28に示したシリアル受信データ(1)1710及び受信同期クロック(1)1714のように、受信同期クロック(1)1714のポジエッジと、シリアル受信データ(1)1710の値の切り替わりタイミングとを揃えて以降の回路に渡している(時刻t42)。更に、受信同期クロック(0)1720に関しては、端子を通過する際の遅延の影響により、HIGH幅が受信回路内部クロック1723の4周期分になっている(時刻t41の直前から時刻t43の直後まで)が、同期クロックHIGH幅補正回路1706において、実施の形態2の動作Cにおける初期設定に従ってHIGH幅を受信回路内部クロック1723の1周期分拡張することにより送信時のクロックHIGH幅を再現して受信同期クロック(2)1715として次の回路へと渡している(時刻t42から時刻t46まで)。更に、受信同期クロック(2)1715のHIGH幅のうち、受信データのビット数を示しているのは、データ送信回路1100にて付加したオフセットの影響を除いた、受信回路内部クロック1723の3周期分のみであるため、同期クロックオフセット除去回路1707にてオフセットの影響を除去した信号を、データ受信回路1700のシフトレジスタ動作許可信号1716として、シフトレジスタ1703,1704のLH信号に使用している(時刻t44から時刻t46まで)。同期クロックオフセット除去回路1707を通過することにより、図28に示したようにシフトレジスタ動作許可信号1716はシリアル受信データ(1)1710に対してオフセット分だけ(時刻t42から時刻t44へ)遅延してしまうため、シリアル受信データ(1)1710に対しても受信データオフセット除去回路1708においてオフセット分だけ遅延させることにより、データ受信シフトレジスタ1703及び受信状況確認シフトレジスタ1704にて使用する受信データの切り替わりタイミングと同期クロックのポジエッジとを揃える(時刻t44)。こうして生成したシリアル受信データ(2)1711及びシフトレジスタ動作許可信号1716により、データ受信シフトレジスタ1703には3ビットのHIGHデータ“111”が格納され、受信状況確認シフトレジスタ1704のうちの3ビットにHIGHが格納される(時刻t46)。   In data reception circuit 1700, serial reception data (0) 1719 and reception synchronization clock (0) 1720 pass through synchronizers 2400 and 2402, respectively, in reception signal switching timing correction circuit 1722 according to the initial setting in operation C of the second embodiment. Further, by delaying the reception synchronization clock (0_2) 2416 by one period of the reception circuit internal clock 1723, the reception synchronization clock (1) 1710 and the reception synchronization clock (1) 1714 shown in FIG. The positive edge of the synchronous clock (1) 1714 and the switching timing of the value of the serial reception data (1) 1710 are aligned and passed to the subsequent circuits (time t42). Further, with respect to the reception synchronous clock (0) 1720, the HIGH width is four periods of the reception circuit internal clock 1723 due to the delay when passing through the terminal (from immediately before time t41 to immediately after time t43. In the synchronous clock HIGH width correction circuit 1706, the HIGH width is expanded by one period of the reception circuit internal clock 1723 in accordance with the initial setting in the operation C of the second embodiment, so that the clock HIGH width at the time of transmission is reproduced and received. Synchronous clock (2) 1715 is passed to the next circuit (from time t42 to time t46). Further, among the HIGH widths of the reception synchronization clock (2) 1715, the number of bits of reception data indicates three cycles of the reception circuit internal clock 1723 excluding the influence of the offset added by the data transmission circuit 1100. Therefore, the signal from which the influence of the offset is removed by the synchronous clock offset removal circuit 1707 is used as the shift register operation permission signal 1716 of the data reception circuit 1700 as the LH signal of the shift registers 1703 and 1704 ( From time t44 to time t46). By passing through the synchronous clock offset removal circuit 1707, the shift register operation permission signal 1716 is delayed by an offset amount (from time t42 to time t44) with respect to the serial reception data (1) 1710 as shown in FIG. Therefore, the reception data offset removal circuit 1708 also delays the serial reception data (1) 1710 by the offset amount, thereby switching the reception data used in the data reception shift register 1703 and the reception status confirmation shift register 1704. And the positive edge of the synchronous clock are aligned (time t44). By the serial reception data (2) 1711 and the shift register operation enable signal 1716 generated in this way, 3-bit HIGH data “111” is stored in the data reception shift register 1703, and 3 bits of the reception status confirmation shift register 1704 are stored in 3 bits. HIGH is stored (time t46).

次に、実施の形態2の動作Eについて、図29を用いてデータ送信回路1100の動作を、図30〜32を用いてデータ受信回路1700の動作をそれぞれ説明する。なお、図30は送受信エラーが発生しない場合のタイミングチャートであり、図31及び図32はいずれも送受信エラーが発生した場合のタイミングチャートである。   Next, regarding the operation E of the second embodiment, the operation of the data transmission circuit 1100 will be described with reference to FIG. 29 and the operation of the data reception circuit 1700 will be described with reference to FIGS. 30 is a timing chart when no transmission / reception error occurs, and FIGS. 31 and 32 are timing charts when a transmission / reception error occurs.

データ送信回路1100において、データを1ビット送信完了し、次のビットの送信を開始したタイミングにて送信状況確認シフトレジスタ1103の全フリップフロップ1300にHIGHが格納され、Nビットデータ送信完了信号1116がHIGHになる(時刻t62)。その結果、データを2ビット送信した後、シフトレジスタ1101,1103の動作は終了する。一方、送信同期クロック1120はオフセット付加回路1109によりオフセットを送信回路内部クロック1124の2周期分付加されているため、今回送信するデータ“00”のビット数“2”にオフセット“2”を加えた、送信回路内部クロック1124の4周期分だけHIGH幅を保持する(時刻t61から時刻t63まで)。更に、Nビットデータ送信完了信号1116がHIGHになった時点で、送信データ供給部1102からデータ送信シフトレジスタ1101に対して供給される送信供給データ1112が、送信完了したデータから、次に送信するべきデータへと切り替わる(時刻t62)。Nビットデータ送信完了信号1116がHIGHになった状態で、クロック1周期カウント終了信号1117がHIGHになると(時刻t64)、シリアルデータ送信回路1107が入力に向き(時刻t65)、データ受信回路1700からの送受信エラー信号待ちの状態に入る。送受信エラー受付状態中に、データ受信回路1700より送受信エラー信号1121が出力された場合、送信データ供給部1102はその受信タイミングにて、送信供給データ1112を次に送信するべきデータから、直前に送信完了したNビットのデータへと切り替える(時刻t67)。ただし、送受信エラー信号1121が出力されなかった場合には、送信データ供給部1102は、送信供給データ1112を次に送信するべきデータのまま保持する。送受信エラー受付状態は、同期クロックの1周期だけ続き、この時間はクロック1周期カウンタ(2)1110にてカウントする。   In the data transmission circuit 1100, HIGH is stored in all the flip-flops 1300 of the transmission status confirmation shift register 1103 at the timing when transmission of one bit of data is completed and transmission of the next bit is started, and an N-bit data transmission completion signal 1116 is received. It becomes HIGH (time t62). As a result, after transmitting 2 bits of data, the operations of the shift registers 1101 and 1103 are finished. On the other hand, since the offset is added to the transmission synchronization clock 1120 by two periods of the transmission circuit internal clock 1124 by the offset addition circuit 1109, the offset “2” is added to the bit number “2” of the data “00” to be transmitted this time. The HIGH width is held for four periods of the transmission circuit internal clock 1124 (from time t61 to time t63). Further, when the N-bit data transmission completion signal 1116 becomes HIGH, the transmission supply data 1112 supplied from the transmission data supply unit 1102 to the data transmission shift register 1101 is transmitted next from the data that has been transmitted. Switching to power data (time t62). When the N-bit data transmission completion signal 1116 is HIGH and the clock 1 cycle count end signal 1117 is HIGH (time t64), the serial data transmission circuit 1107 is directed to the input (time t65), and the data reception circuit 1700 It enters the state of waiting for the transmission / reception error signal. When the transmission / reception error signal 1121 is output from the data reception circuit 1700 during the transmission / reception error acceptance state, the transmission data supply unit 1102 transmits the transmission supply data 1112 immediately before the transmission data to be transmitted at the reception timing. Switching to completed N-bit data (time t67). However, when the transmission / reception error signal 1121 is not output, the transmission data supply unit 1102 holds the transmission supply data 1112 as data to be transmitted next. The transmission / reception error acceptance state lasts for one cycle of the synchronous clock, and this time is counted by the clock one cycle counter (2) 1110.

なお、クロック1周期カウンタ(2)1110は、Nビットデータ送信完了信号1116がHIGHの状態でクロック1周期カウント終了信号1117がアサートされると(時刻t64)、カウントを開始し、そのカウント値が上限値“9”に到達すると(時刻t68)、送信データ更新信号1118を送信回路内部クロック1124の1周期分だけHIGHにする(時刻t69まで)。送信データ更新信号1118がHIGHになることにより送受信エラー受付状態が終了となり、次に送るデータのデータ送信シフトレジスタ1101への格納、送信状況確認シフトレジスタ1103のクリア、シリアルデータ送信回路1107の出力方向への切り替えが行われ(時刻t70)、次のデータ送信に備える。また、データ送信シフトレジスタ1101に次に送信するデータを格納する際に、送信データエッジ検出用信号1114が切り替わることがあるが、エッジ検出回路1104は送信データ更新信号1118がHIGHになっている間は送信データエッジ検出用信号1114のエッジを検出しないため、送信データエッジ検出信号1115はHIGHにならない(時刻t68)。   The clock 1 cycle counter (2) 1110 starts counting when the clock 1 cycle count end signal 1117 is asserted while the N-bit data transmission completion signal 1116 is HIGH (time t64), and the count value is When the upper limit value “9” is reached (time t68), the transmission data update signal 1118 is HIGH for one cycle of the transmission circuit internal clock 1124 (until time t69). When the transmission data update signal 1118 becomes HIGH, the transmission / reception error acceptance state is completed, the next data to be transmitted is stored in the data transmission shift register 1101, the transmission status confirmation shift register 1103 is cleared, and the output direction of the serial data transmission circuit 1107 (Time t70) to prepare for the next data transmission. Further, when data to be transmitted next is stored in the data transmission shift register 1101, the transmission data edge detection signal 1114 may be switched. However, the edge detection circuit 1104 does not change the transmission data update signal 1118 while it is HIGH. Does not detect the edge of the transmission data edge detection signal 1114, the transmission data edge detection signal 1115 does not become HIGH (time t68).

データ受信回路1700では、受信したデータ及び同期クロックに対して、受信信号切り替わりタイミング補正回路1722にてエッジタイミング調整を、同期クロックHIGH幅補正回路1706にて同期クロックHIGH幅の減少分の拡張を、同期クロックオフセット除去回路1707及び受信データオフセット除去回路1708にてオフセットの補正をそれぞれ施した、シリアル受信データ(2)1711及びシフトレジスタ動作許可信号1716を参照して(図30〜32の時刻t81)、データの受信を実行する。   In the data receiving circuit 1700, the received signal switching timing correction circuit 1722 adjusts the edge timing with respect to the received data and the synchronous clock, and the synchronous clock HIGH width correction circuit 1706 extends the decrease of the synchronous clock HIGH width. Referring to serial reception data (2) 1711 and shift register operation enable signal 1716 that have been offset-corrected by synchronous clock offset removal circuit 1707 and reception data offset removal circuit 1708, respectively (time t81 in FIGS. 30 to 32) Execute data reception.

ここで、図32に示したように、受信状況確認シフトレジスタ1704が全ビットHIGHになり、Nビット受信完了信号2005がHIGHになっているにもかかわらずシフトレジスタ動作許可信号1716がHIGHである場合には(図32の時刻t81a)、受信側が誤ってデータを余分に受け取った(4ビットデータが送信された際に補正の失敗等の要因により5ビット受信してしまった等)と判断し、エラー発生信号(2)2007をHIGHに切り替える(図32の時刻t82)。その後、シフトレジスタ動作許可信号1716がLOWになると、そのLOW幅を同期クロックLOW幅カウンタ1709にてカウントする。この同期クロックLOW幅カウンタ1709は、シフトレジスタ動作許可信号1716のポジエッジによりクリアされ(図32の時刻t81)、シフトレジスタ動作許可信号1716のネガエッジでカウントを開始し(図32の時刻t82)、そのカウント値が上限値“7”に到達した次の受信回路内部クロック1723の立ち上がりでクロックLOW幅カウント終了信号1717を受信回路内部クロック1723の1周期分だけHIGHにする(図32の時刻t83から時刻t84まで)。この同期クロックLOW幅カウンタ1709により、シフトレジスタ動作許可信号1716のLOW幅が、同期クロックの1周期幅からオフセット分を差し引いた幅であることを認識すると(この例では、シフトレジスタ動作許可信号1716のLOW幅が受信回路内部クロック1723の8周期分であることをカウントすると)、データ送信回路1100が送受信エラー受付状態であると判断し、シリアルデータ受信回路1701より送受信エラー信号1713を送信する(図32の時刻t83から時刻t84まで)。ただし、この送受信エラー信号1713には、送信側で同期クロックに付加されるオフセットと同じ幅のオフセットが出力時に付加されて、シリアル送受信データ1130の波形に反映される(図32の時刻t83から時刻t85まで)。送受信エラー信号1713の発行後は受信状況確認シフトレジスタ1704をクリアし(図32の時刻t84)、シリアルデータ受信回路1701を受信方向に向けることにより、次のデータの受信に備える。エラー発生時には受信データ格納許可信号1718がHIGHにならないため、データ受信シフトレジスタ1703内のデータは受信データ格納部1705には格納されず、データ受信シフトレジスタ1703が次の受信データにより上書きされる。   Here, as shown in FIG. 32, the reception status confirmation shift register 1704 becomes all bits HIGH, and the shift register operation permission signal 1716 is HIGH even though the N-bit reception completion signal 2005 is HIGH. In this case (time t81a in FIG. 32), it is determined that the receiving side has erroneously received extra data (when 4-bit data is transmitted, 5-bit data has been received due to factors such as correction failure). The error occurrence signal (2) 2007 is switched to HIGH (time t82 in FIG. 32). Thereafter, when the shift register operation permission signal 1716 becomes LOW, the LOW width is counted by the synchronous clock LOW width counter 1709. The synchronous clock LOW width counter 1709 is cleared by the positive edge of the shift register operation enable signal 1716 (time t81 in FIG. 32), and starts counting at the negative edge of the shift register operation enable signal 1716 (time t82 in FIG. 32). The clock LOW width count end signal 1717 is set to HIGH for one cycle of the reception circuit internal clock 1723 at the rise of the reception circuit internal clock 1723 next when the count value reaches the upper limit value “7” (from time t83 in FIG. 32 to time until t84). When the synchronous clock LOW width counter 1709 recognizes that the LOW width of the shift register operation permission signal 1716 is a width obtained by subtracting the offset from one period width of the synchronous clock (in this example, the shift register operation permission signal 1716). When the data transmission circuit 1100 is in a transmission / reception error acceptance state, the transmission / reception error signal 1713 is transmitted from the serial data reception circuit 1701 (when counting that the LOW width is equal to eight cycles of the reception circuit internal clock 1723) (From time t83 to time t84 in FIG. 32). However, an offset having the same width as the offset added to the synchronous clock on the transmission side is added to the transmission / reception error signal 1713 at the time of output and reflected in the waveform of the serial transmission / reception data 1130 (from time t83 in FIG. 32 to time until t85). After the transmission / reception error signal 1713 is issued, the reception status confirmation shift register 1704 is cleared (time t84 in FIG. 32), and the serial data reception circuit 1701 is directed in the reception direction to prepare for reception of the next data. When an error occurs, the reception data storage permission signal 1718 does not become HIGH, so the data in the data reception shift register 1703 is not stored in the reception data storage unit 1705, and the data reception shift register 1703 is overwritten with the next reception data.

また、図31に示したように、Nビット受信完了信号2005がアサートされていないにもかかわらず、シフトレジスタ動作許可信号1716のLOW幅が同期クロックの1周期幅からオフセット分を差し引いた幅となった場合には、受信側が誤ってデータを受け取り損ねた(4ビットデータが送信された際に補正の失敗等の要因により3ビットしか受信できなかった等)と判断し、エラー発生信号(1)2006がHIGHに切り替わり、同時に送受信エラー信号1713がHIGHに切り替わる(図31の時刻t83)。その後の回路動作は、図32に示した例と同じである。   Further, as shown in FIG. 31, even though the N-bit reception completion signal 2005 is not asserted, the LOW width of the shift register operation enable signal 1716 is a width obtained by subtracting the offset from one period width of the synchronous clock. In such a case, it is determined that the receiving side has mistakenly received data (only 4 bits could be received due to factors such as correction failure when 4-bit data was transmitted), and an error occurrence signal (1 ) 2006 switches to HIGH, and at the same time, the transmission / reception error signal 1713 switches to HIGH (time t83 in FIG. 31). The subsequent circuit operation is the same as the example shown in FIG.

また、図30に示したように、Nビット受信完了信号2005がHIGHになった時にシフトレジスタ動作許可信号1716がLOWになっている場合には(図30の時刻t82)、データ送受信が正常に終了したと判断し、シフトレジスタ動作許可信号1716のLOW幅が同期クロックの1周期幅からオフセット分を差し引いた幅であることを確認した時点でデータ格納許可信号1718をHIGHに切り替え(図30の時刻t83)、データ受信シフトレジスタ1703のデータを受信データ格納部1705に格納する。また、受信状況確認シフトレジスタ1704をクリアし(図30の時刻t84)、次のデータ受信に備える。   As shown in FIG. 30, when the shift register operation permission signal 1716 is LOW when the N-bit reception completion signal 2005 is HIGH (time t82 in FIG. 30), data transmission / reception is normal. When it is determined that the shift register operation permission signal 1716 has been completed and it is confirmed that the LOW width of the shift register operation permission signal 1716 is a width obtained by subtracting the offset from one period width of the synchronous clock, the data storage permission signal 1718 is switched to HIGH (FIG. At time t83), the data in the data reception shift register 1703 is stored in the reception data storage unit 1705. Also, the reception status confirmation shift register 1704 is cleared (time t84 in FIG. 30) to prepare for the next data reception.

以上説明してきたとおり、本発明はシリアル送受信速度を向上する効果を奏し、例えばホストから、シリアル通信を利用してプログラムコードをLSIに内蔵されたメモリへと転送する際に、転送時間の短縮が達成できる。   As described above, the present invention has an effect of improving the serial transmission / reception speed. For example, when transferring a program code from a host to a memory built in an LSI using serial communication, the transfer time can be shortened. Can be achieved.

本発明の実施の形態1におけるデータ送信回路及びデータ受信回路の構成を示すブロック図である。It is a block diagram which shows the structure of the data transmission circuit in Embodiment 1 of this invention, and a data reception circuit. 図1中のデータ送信シフトレジスタの構成図である。It is a block diagram of the data transmission shift register in FIG. 図1中の送信状況確認シフトレジスタの構成図である。It is a block diagram of the transmission condition confirmation shift register in FIG. 図1中の同期クロック出力切替回路の構成図である。It is a block diagram of the synchronous clock output switching circuit in FIG. 図1中のデータ受信シフトレジスタの構成図である。It is a block diagram of the data reception shift register in FIG. 図1中の受信状況確認シフトレジスタの構成図である。It is a block diagram of the reception condition confirmation shift register in FIG. 実施の形態1におけるデータ送信回路の動作を示すタイミングチャートである。3 is a timing chart illustrating the operation of the data transmission circuit according to the first embodiment. 実施の形態1におけるデータ受信回路の動作を示すタイミングチャートである。3 is a timing chart illustrating an operation of the data receiving circuit according to the first embodiment. 実施の形態1におけるNビットデータ送受信完了時動作にて、データ送信回路の動作を示すタイミングチャートである。4 is a timing chart showing the operation of the data transmission circuit in the operation when N-bit data transmission / reception is completed in the first embodiment. 実施の形態1におけるNビットデータ送受信完了時動作にて、データ受信回路の動作を示すタイミングチャートである。4 is a timing chart showing the operation of the data receiving circuit in the operation when N-bit data transmission / reception is completed in the first embodiment. 本発明の実施の形態2におけるデータ送信回路の構成を示すブロック図である。It is a block diagram which shows the structure of the data transmission circuit in Embodiment 2 of this invention. 図11中のデータ送信シフトレジスタの構成図である。It is a block diagram of the data transmission shift register in FIG. 図11中の送信状況確認シフトレジスタの構成図である。It is a block diagram of the transmission condition confirmation shift register in FIG. 図11中の同期クロック出力切替回路の構成図である。It is a block diagram of the synchronous clock output switching circuit in FIG. 図11中のシリアルデータ送信回路の構成図である。It is a block diagram of the serial data transmission circuit in FIG. 図11中のオフセット付加回路の構成図である。It is a block diagram of the offset addition circuit in FIG. 本発明の実施の形態2におけるデータ受信回路の構成を示すブロック図である。It is a block diagram which shows the structure of the data receiver circuit in Embodiment 2 of this invention. 図17中のシリアルデータ受信回路の構成図である。It is a block diagram of the serial data receiving circuit in FIG. 図17中のデータ受信シフトレジスタの構成図である。It is a block diagram of the data reception shift register in FIG. 図17中の受信状況確認シフトレジスタの構成図である。It is a block diagram of the reception condition confirmation shift register in FIG. 図17中の同期クロックHIGH幅補正回路の構成図である。It is a block diagram of the synchronous clock HIGH width correction circuit in FIG. 図17中の同期クロックオフセット除去回路の構成図である。It is a block diagram of the synchronous clock offset removal circuit in FIG. 図17中の受信データオフセット除去回路の構成図である。FIG. 18 is a configuration diagram of a reception data offset removal circuit in FIG. 17. 図17中の受信信号切り替わりタイミング補正回路の構成図である。FIG. 18 is a configuration diagram of a reception signal switching timing correction circuit in FIG. 17. 実施の形態2におけるシリアル送受信動作にて、データ受信回路の初期設定動作を示すタイミングチャートである。10 is a timing chart illustrating an initial setting operation of the data reception circuit in the serial transmission / reception operation according to the second embodiment. 実施の形態2におけるシリアル送受信動作にて、送信データの切り替わりが発生する場合のデータ送信回路の動作を示すタイミングチャートである。10 is a timing chart illustrating an operation of the data transmission circuit when transmission data is switched in the serial transmission / reception operation according to the second embodiment. 実施の形態2におけるシリアル送受信動作にて、同期クロックHIGH幅のオーバーフローが発生する場合のデータ送信回路の動作を示すタイミングチャートである。10 is a timing chart showing an operation of the data transmission circuit when an overflow of the synchronous clock HIGH width occurs in the serial transmission / reception operation in the second embodiment. 実施の形態2におけるシリアル送受信動作にて、データ受信回路の動作を示すタイミングチャートである。9 is a timing chart illustrating an operation of a data reception circuit in a serial transmission / reception operation according to the second embodiment. 実施の形態2におけるNビットデータ送受信完了時動作にて、送受信エラーが発生する場合のデータ送信回路の動作を示すタイミングチャートである。10 is a timing chart showing the operation of the data transmission circuit when a transmission / reception error occurs in the operation when N-bit data transmission / reception is completed in the second embodiment. 実施の形態2におけるNビットデータ送受信完了時動作にて、送受信エラーが発生しない場合のデータ受信回路の動作を示すタイミングチャートである。10 is a timing chart showing the operation of the data receiving circuit when no transmission / reception error occurs in the operation at the time of completion of N-bit data transmission / reception in the second embodiment. 実施の形態2におけるNビットデータ送受信完了時動作にて、受信データ不足の送受信エラーが発生する場合のデータ受信回路の動作を示すタイミングチャートである。10 is a timing chart showing the operation of the data receiving circuit when a transmission / reception error with insufficient received data occurs in the operation when N-bit data transmission / reception is completed in Embodiment 2. 実施の形態2におけるNビットデータ送受信完了時動作にて、受信データを余分に受け取った場合の送受信エラーが発生する場合のデータ受信回路の動作を示すタイミングチャートである。10 is a timing chart showing an operation of the data receiving circuit when a transmission / reception error occurs when extra reception data is received in the operation at the time of completion of N-bit data transmission / reception in the second embodiment.

符号の説明Explanation of symbols

100 データ送信回路
101 データ送信シフトレジスタ
102 送信データ供給部
103 送信状況確認シフトレジスタ
104 エッジ検出回路
105 クロック1周期カウンタ
106 同期クロック出力切替回路
107 データ送信端子
108 同期クロック送信端子
109 送信供給データ
110 送信データ
111 送信データエッジ検出用信号
112 送信データエッジ検出信号
113 供給データ切替信号
114 同期クロック出力切替信号
115 クロック1周期カウント終了信号
116 送信データ更新信号
117 送信同期クロック
118 送信回路内部クロック
120 送受信データ
121 送受信同期クロック
130 データ受信回路
131 データ受信端子
132 同期クロック受信端子
133 データ受信シフトレジスタ
134 受信状況確認シフトレジスタ
135 受信データ格納部
136 受信データ
137 受信同期クロック
138 受信格納データ
139 データ格納許可信号
140 受信回路内部クロック
200 セレクタ
201 フリップフロップ
300 フリップフロップ
301 NORゲート
302 ANDゲート
303 インバータ
304 フリップフロップ
400 セレクタ
401 フリップフロップ
500 フリップフロップ
600 フリップフロップ
601 フリップフロップ
1100 データ送信回路
1101 データ送信シフトレジスタ
1102 送信データ供給部
1103 送信状況確認シフトレジスタ
1104 エッジ検出回路
1105 クロック1周期カウンタ
1106 同期クロック出力切替回路
1107 シリアルデータ送信回路
1108 同期クロック送信端子
1109 オフセット付加回路
1110 クロック1周期カウンタ(2)
1111 クロックHIGH幅カウンタ
1112 送信供給データ
1113 シリアル送信データ
1114 送信データエッジ検出用信号
1115 送信データエッジ検出信号
1116 Nビットデータ送信完了信号
1117 クロック1周期カウント終了信号
1118 送信データ更新信号
1119 同期クロック出力切替信号
1120 送信同期クロック
1121 送受信エラー信号
1122 クロックHIGH幅オーバー信号
1123 シフトレジスタ動作許可信号
1124 送信回路内部クロック
1130 シリアル送受信データ
1131 送受信同期クロック
1200 セレクタ
1201 フリップフロップ
1300 フリップフロップ
1301 NORゲート
1400 セレクタ
1401 フリップフロップ
1500 フリップフロップ
1501 インバータ
1502 トライステートバッファ
1503 ANDゲート
1510 シリアルデータ送信端子
1600 フリップフロップ
1601 ORゲート
1602 セレクタ
1700 データ受信回路
1701 シリアルデータ受信回路
1702 同期クロック受信端子
1703 データ受信シフトレジスタ
1704 受信状況確認シフトレジスタ
1705 受信データ格納部
1706 同期クロックHIGH幅補正回路
1707 同期クロックオフセット除去回路
1708 受信データオフセット除去回路
1709 同期クロックLOW幅カウンタ
1710 シリアル受信データ(1)
1711 シリアル受信データ(2)
1712 受信格納データ
1713 送受信エラー信号
1714 受信同期クロック(1)
1715 受信同期クロック(2)
1716 シフトレジスタ動作許可信号
1717 クロックLOW幅カウント終了信号
1718 データ格納許可信号
1719 シリアル受信データ(0)
1720 受信同期クロック(0)
1721 初期設定許可信号(1)
1722 受信信号切り替わりタイミング補正回路
1723 受信回路内部クロック
1800 オフセット付加回路
1801 トライステートバッファ
1802 インバータ
1803 ANDゲート
1810 シリアルデータ受信端子
1900 フリップフロップ
2000 フリップフロップ
2001 フリップフロップ
2005 Nビット受信完了信号
2006 エラー発生信号(1)
2007 エラー発生信号(2)
2010 インバータ
2011,2012 ANDゲート
2013 フリップフロップ
2014 ANDゲート
2015 ORゲート
2016 インバータ
2017 ANDゲート
2100 フリップフロップ
2101 ORゲート
2102 セレクタ
2103 受信同期クロックHIGH幅カウンタ
2105 受信同期クロックHIGH幅
2200 フリップフロップ
2201 ANDゲート
2202 セレクタ
2203 インバータ
2204 ANDゲート
2300 フリップフロップ
2301 セレクタ
2400 シンクロナイザ
2401 フリップフロップ
2402 シンクロナイザ
2403 フリップフロップ
2405 データポジエッジ検出器
2406 同期クロックポジエッジ検出器
2407 クロック遅れカウンタ
2408 データ遅れカウンタ
2410 初期設定許可信号(0)
2411 データポジエッジ検出信号
2412 同期クロックポジエッジ検出信号
2413 クロック遅れカウントイネーブル
2414 データ遅れカウントイネーブル
2415 シリアル受信データ(0_2)
2416 受信同期クロック(0_2)
2417 クロック遅れカウント値
2418 データ遅れカウント値
2420 フリップフロップ
2421,2422 インバータ
2423,2424 ANDゲート
2425,2426 セレクタ
DESCRIPTION OF SYMBOLS 100 Data transmission circuit 101 Data transmission shift register 102 Transmission data supply part 103 Transmission status confirmation shift register 104 Edge detection circuit 105 Clock 1 period counter 106 Synchronous clock output switching circuit 107 Data transmission terminal 108 Synchronous clock transmission terminal 109 Transmission supply data 110 Transmission Data 111 Transmission data edge detection signal 112 Transmission data edge detection signal 113 Supply data switching signal 114 Synchronization clock output switching signal 115 Clock 1 cycle count end signal 116 Transmission data update signal 117 Transmission synchronization clock 118 Transmission circuit internal clock 120 Transmission / reception data 121 Transmission / reception synchronization clock 130 Data reception circuit 131 Data reception terminal 132 Synchronization clock reception terminal 133 Data reception shift register 134 Reception status confirmation shift Register 135 Reception data storage unit 136 Reception data 137 Reception synchronization clock 138 Reception storage data 139 Data storage enable signal 140 Reception circuit internal clock 200 Selector 201 Flip flop 300 Flip flop 301 NOR gate 302 AND gate 303 Inverter 304 Flip flop 400 Selector 401 Flip 500 flip-flop 600 flip-flop 601 flip-flop 1100 data transmission circuit 1101 data transmission shift register 1102 transmission data supply unit 1103 transmission status confirmation shift register 1104 edge detection circuit 1105 clock 1 period counter 1106 synchronous clock output switching circuit 1107 serial data transmission circuit 1108 Synchronous clock transmission terminal 1109 with offset Circuit 1110 one clock cycle counter (2)
1111 clock HIGH width counter 1112 transmission supply data 1113 serial transmission data 1114 transmission data edge detection signal 1115 transmission data edge detection signal 1116 N-bit data transmission completion signal 1117 clock 1 cycle count end signal 1118 transmission data update signal 1119 synchronous clock output switching Signal 1120 Transmission synchronization clock 1121 Transmission error signal 1122 Clock HIGH over signal 1123 Shift register operation enable signal 1124 Transmission circuit internal clock 1130 Serial transmission / reception data 1131 Transmission / reception synchronization clock 1200 Selector 1201 Flip flop 1300 Flip flop 1301 NOR gate 1400 Selector 1401 Flip flop 1500 flip-flop 1501 inverter 15 2 Tristate buffer 1503 AND gate 1510 Serial data transmission terminal 1600 Flip-flop 1601 OR gate 1602 Selector 1700 Data reception circuit 1701 Serial data reception circuit 1702 Synchronous clock reception terminal 1703 Data reception shift register 1704 Reception status confirmation shift register 1705 Reception data storage unit 1706 Synchronization clock HIGH width correction circuit 1707 Synchronization clock offset removal circuit 1708 Reception data offset removal circuit 1709 Synchronization clock LOW width counter 1710 Serial reception data (1)
1711 Serial received data (2)
1712 Reception storage data 1713 Transmission / reception error signal 1714 Reception synchronization clock (1)
1715 Reception synchronous clock (2)
1716 Shift register operation enable signal 1717 Clock LOW width count end signal 1718 Data storage enable signal 1719 Serial reception data (0)
1720 Receive synchronous clock (0)
1721 Initial setting permission signal (1)
1722 Reception signal switching timing correction circuit 1723 Reception circuit internal clock 1800 Offset addition circuit 1801 Tristate buffer 1802 Inverter 1803 AND gate 1810 Serial data reception terminal 1900 Flip flop 2000 Flip flop 2001 Flip flop 2005 N bit reception completion signal 2006 Error occurrence signal ( 1)
2007 Error occurrence signal (2)
2010 Inverter 2011, 2012 AND gate 2013 Flip flop 2014 AND gate 2015 OR gate 2016 Inverter 2017 AND gate 2100 Flip flop 2101 OR gate 2102 Selector 2103 Reception synchronization clock HIGH width counter 2105 Reception synchronization clock HIGH width 2200 Flip flop 2201 AND gate 2202 Selector 2203 Inverter 2204 AND gate 2300 Flip-flop 2301 Selector 2400 Synchronizer 2401 Flip-flop 2402 Synchronizer 2403 Flip-flop 2405 Data positive edge detector 2406 Synchronous clock positive edge detector 2407 Clock delay counter 2408 Data delay counter 2410 Initial setting Permission signal (0)
2411 Data positive edge detection signal 2412 Synchronous clock positive edge detection signal 2413 Clock delay count enable 2414 Data delay count enable 2415 Serial reception data (0_2)
2416 Reception synchronous clock (0_2)
2417 Clock delay count value 2418 Data delay count value 2420 Flip-flops 2421 and 2422 Inverters 2423 and 2424 AND gates 2425 and 2426 Selector

Claims (17)

シリアルデータ送信端子と、
同期クロック送信端子と、
シリアル送信データを一時的に格納し、送信するためのデータ送信シフトレジスタと、
シリアル送信開始時又は前記データ送信シフトレジスタに一時的に格納されたシリアル送信データの送信が全ビット完了した時に、前記データ送信シフトレジスタに対して、送信用シリアルデータを格納するための送信データ供給部と、
前記データ送信シフトレジスタに格納されたシリアル送信データの送信状況を反映し、前記データ送信シフトレジスタに格納されたシリアル送信データを全ビット送信終了した際にデータ送信完了信号を生成することにより、前記データ送信シフトレジスタに格納されたシリアル送信データの全ビット送信が完了したことを通知するための、前記データ送信シフトレジスタと同じビット数のデータ送信状況確認シフトレジスタと、
前記データ送信シフトレジスタの中のあるフリップフロップのQ信号の0から1又は1から0への切り替わりのエッジを検出し、検出したタイミングでエッジ検出信号を生成することにより、シリアル送信データの0から1又は1から0への切り替わり箇所を検出、通知するためのエッジ検出回路と、
出力する同期クロックのクロック幅をカウントし、カウント終了時には1周期カウント終了信号を生成することにより同期クロックの1周期期間が終了したことを通知するための、カウント数を設定可能なクロック1周期カウンタと、
前記エッジ検出回路にてシリアル送信データの0から1又は1から0への切り替わり箇所が検出されたタイミング又は前記データ送信シフトレジスタに一時的に格納されたシリアルデータが全ビット送信完了したタイミングから、前記クロック1周期カウンタにて1クロックのカウントが終了するまでの期間は前記同期クロック送信端子から出力する信号をLOWとし、それ以外の場合には前記同期クロック送信端子から出力する信号をHIGHとするための、同期クロック出力切替回路とを有し、
シリアル送信するデータに0又は1が複数ビット連続する部分がある場合には、その連続するビット数に応じて、前記同期クロック送信端子から出力される同期クロックのデューティ比を切り替えることにより、同期クロックの1周期の間に複数ビットのシリアルデータを送信することを特徴とする送信回路。
A serial data transmission terminal;
A synchronous clock transmission terminal;
A data transmission shift register for temporarily storing and transmitting serial transmission data;
Transmission data supply for storing serial data for transmission to the data transmission shift register at the start of serial transmission or when transmission of serial transmission data temporarily stored in the data transmission shift register is completed And
Reflecting the transmission status of the serial transmission data stored in the data transmission shift register, generating a data transmission completion signal when all bits of the serial transmission data stored in the data transmission shift register have been transmitted, A data transmission status confirmation shift register having the same number of bits as the data transmission shift register for notifying that transmission of all bits of serial transmission data stored in the data transmission shift register is completed;
By detecting the switching edge of the Q signal of a flip-flop in the data transmission shift register from 0 to 1 or 1 to 0, and generating an edge detection signal at the detected timing, An edge detection circuit for detecting and notifying a switching point from 1 or 1 to 0;
A clock 1 cycle counter with a configurable number of counts for counting the clock width of the output synchronous clock and generating the 1 cycle count end signal at the end of the count to notify the end of one cycle period of the synchronous clock When,
From the timing at which the edge detection circuit detects the switching position of serial transmission data from 0 to 1 or 1 to 0, or the timing at which the serial data temporarily stored in the data transmission shift register is completely transmitted, The signal output from the synchronous clock transmission terminal is set to LOW during the period until one clock is counted by the clock one cycle counter, and the signal output from the synchronous clock transmission terminal is set to HIGH in other cases. And a synchronous clock output switching circuit for
If the data to be serially transmitted has a portion in which multiple bits of 0 or 1 are continuous, the synchronous clock is switched by switching the duty ratio of the synchronous clock output from the synchronous clock transmission terminal according to the number of consecutive bits. A transmission circuit for transmitting serial data of a plurality of bits during one period of
シリアルデータ受信端子と、
同期クロック受信端子と、
任意のビット数のシリアルデータを受信し、一時的に格納するための、前記シリアルデータ受信端子から入力されるシリアル受信データをD信号として動作し、前記同期クロック受信端子から入力される同期クロックをLH信号として動作するデータ受信シフトレジスタと、
前記データ受信シフトレジスタが、前記シリアルデータ受信端子にて受信したシリアルデータにより全ビット更新された際に、そのデータを格納し、使用するためのデータ格納部と、
前記データ受信シフトレジスタにおけるシリアルデータの受信状況を反映し、前記データ受信シフトレジスタが全ビットシリアルデータによって更新された際にデータ格納許可信号をアサートし、前記データ受信シフトレジスタが全ビットシリアルデータの受信を完了したことを通知するための、前記データ受信シフトレジスタと同じビット数のデータ受信状況確認シフトレジスタとを有し、
前記同期クロック受信端子から出力される同期クロックのデューティ比に応じて、前記データ受信シフトレジスタに格納するシリアル受信データのビット数を変更することにより、同期クロックの1周期の間に複数ビットのシリアルデータを受信することを特徴とする受信回路。
A serial data receiving terminal;
A synchronous clock receiving terminal;
The serial reception data input from the serial data reception terminal for receiving and temporarily storing serial data of an arbitrary number of bits operates as a D signal, and the synchronous clock input from the synchronous clock reception terminal A data reception shift register operating as an LH signal;
When the data reception shift register is updated all bits with the serial data received at the serial data reception terminal, the data storage unit for storing and using the data; and
Reflects the reception status of serial data in the data reception shift register, asserts a data storage enable signal when the data reception shift register is updated with all-bit serial data, and the data reception shift register A data reception status confirmation shift register having the same number of bits as the data reception shift register for notifying that reception has been completed;
By changing the number of bits of serial reception data stored in the data reception shift register in accordance with the duty ratio of the synchronous clock output from the synchronous clock reception terminal, a serial number of a plurality of bits is obtained during one period of the synchronous clock. A receiving circuit for receiving data.
請求項1記載の送信回路において、
前記同期クロック出力切替回路から出力される同期クロックをHIGHに切り替える信号に対してオフセットを付加し、同期クロックのHIGH期間幅を任意に拡張することにより、端子で発生する遅延の影響によるクロックのHIGH幅消失を防止するための、オフセット値が設定可能なオフセット付加回路を更に有することを特徴とする送信回路。
The transmission circuit according to claim 1,
By adding an offset to the signal for switching the synchronous clock output from the synchronous clock output switching circuit to HIGH and arbitrarily extending the HIGH period width of the synchronous clock, the HIGH of the clock due to the influence of the delay generated at the terminal A transmission circuit, further comprising an offset addition circuit capable of setting an offset value for preventing width loss.
請求項2記載の受信回路において、
同期クロックのHIGH幅に付加されたオフセットを除去し、同期クロックのHIGH幅を、オフセット付加前のHIGH幅に戻すための同期クロックオフセット除去回路と、
同期クロックが前記同期クロックオフセット除去回路を通過する際に同期クロックに発生する遅延と全く同じ長さの遅延を、前記シリアルデータ受信端子から受信したシリアル受信データに対して付加することにより、シリアル受信データの切り替わりのタイミングと、同期クロックの立ち上がりのタイミングとの間にずれが発生することを防止するための受信データオフセット除去回路とを更に有し、
同期クロックのHIGH幅にオフセットが付加されている場合においてもそのオフセットの影響を除去し、オフセット付加前の同期クロックのデューティ比を再現して受信することを特徴とする受信回路。
The receiving circuit according to claim 2,
A synchronous clock offset removing circuit for removing the offset added to the HIGH width of the synchronous clock and returning the HIGH width of the synchronous clock to the HIGH width before adding the offset;
Serial reception is performed by adding to the serial reception data received from the serial data reception terminal a delay having exactly the same length as the delay generated in the synchronization clock when the synchronization clock passes through the synchronization clock offset removal circuit. A reception data offset removal circuit for preventing the occurrence of a shift between the data switching timing and the rising timing of the synchronous clock;
A receiving circuit which removes the influence of an offset even when an offset is added to the HIGH width of the synchronous clock, and reproduces and receives the duty ratio of the synchronous clock before adding the offset.
請求項1記載の送信回路において、
前記同期クロックHIGH信号のアサート期間をカウントし、アサート期間があるカウント期間を超えた場合にHIGH幅オーバーフロー信号をアサートし、前記同期クロック送信端子から出力する同期クロックのHIGH幅が、ある期間を超えたことを通知するためのクロックHIGH幅カウンタを更に有し、
前記同期クロック出力切替回路は、前記HIGH幅オーバーフロー信号がアサートされたタイミングから前記クロック1周期カウンタにて1クロックのカウントが終了するまでの期間は前記同期クロック送信端子から出力する信号をLOWとする機能を更に有し、
同期クロックのHIGH幅を制限することによって、端子で発生する遅延の影響によるクロックのLOW幅消失を防止することを特徴とする送信回路。
The transmission circuit according to claim 1,
The synchronous clock HIGH signal assert period is counted, and when the assert period exceeds a certain count period, a HIGH width overflow signal is asserted, and the HIGH width of the synchronous clock output from the synchronous clock transmission terminal exceeds a certain period. A clock HIGH width counter for notifying that,
The synchronous clock output switching circuit sets a signal output from the synchronous clock transmission terminal to LOW during a period from the timing when the HIGH width overflow signal is asserted to the time when one clock is counted by the clock one cycle counter. Has more functions,
A transmission circuit characterized by preventing the loss of the LOW width of a clock due to the influence of a delay generated at a terminal by limiting the HIGH width of the synchronous clock.
請求項1記載の送信回路において、
前記データ送信シフトレジスタに格納されたデータが全ビット送信されて、かつそのクロックの周期が終了するとカウントを開始する通信エラー受付期間カウンタと、
前記データ送信シフトレジスタに格納されたデータが全ビット送信されると同時に入力に切り替わり、かつ前記通信エラー受付期間カウンタがカウントしている間に通信エラー信号が入力された際にその通信エラー信号を検出し、送受信エラー信号をアサートすることによりシリアル送受信にエラーが発生したことを通知するためのシリアルデータ送信回路とを更に有し、
前記送信データ供給部は、前記送受信エラー信号がアサートされた際には、前記データ送信シフトレジスタに直前に格納したシリアル送信データと同じデータを再度格納し、アサートされない場合は、直前に格納したシリアル送信データの次に送信したいデータを格納する機能を更に有することを特徴とする送信回路。
The transmission circuit according to claim 1,
A communication error reception period counter that starts counting when all the data stored in the data transmission shift register is transmitted and the period of the clock ends;
When all the data stored in the data transmission shift register is transmitted, the input is switched at the same time, and the communication error signal is input when the communication error signal is input while the communication error reception period counter is counting. A serial data transmission circuit for detecting that an error has occurred in serial transmission / reception by detecting and asserting a transmission / reception error signal;
The transmission data supply unit stores again the same data as the serial transmission data stored immediately before in the data transmission shift register when the transmission / reception error signal is asserted, and if not asserted, the transmission data supply unit stores the serial data stored immediately before. A transmission circuit further comprising a function of storing data to be transmitted next to transmission data.
請求項2記載の受信回路において、
前記同期クロック受信端子からの入力信号のLOW幅をカウントし、オーバーフローした際にはクロックLOW幅カウント終了信号をアサートすることにより、送信回路が当該送信回路のデータ送信シフトレジスタに格納したシリアル送信データを全ビット送信完了したことを通知するためのクロックLOW幅カウンタと、
前記データ受信シフトレジスタの全ビットに対してシリアル受信データが格納されたにもかかわらず前記同期クロック受信端子からの入力信号がHIGHである時に更に前記LOW幅カウント終了信号がアサートされた場合、又は前記データ受信シフトレジスタの全ビットに対してシリアル受信データが格納されていないにもかかわらず前記LOW幅カウント終了信号がアサートされた場合には出力に切り替わり、送受信エラー信号を出力するシリアルデータ受信回路とを更に有することを特徴とする受信回路。
The receiving circuit according to claim 2,
The serial transmission data stored in the data transmission shift register of the transmission circuit is counted by counting the LOW width of the input signal from the synchronous clock reception terminal and asserting the clock LOW width count end signal when overflow occurs. A clock LOW width counter for notifying that all bits have been transmitted,
When the LOW width count end signal is further asserted when the input signal from the synchronous clock reception terminal is HIGH even though serial reception data is stored for all the bits of the data reception shift register, or A serial data receiving circuit that switches to output when the LOW width count end signal is asserted even though serial received data is not stored for all bits of the data reception shift register, and outputs a transmission / reception error signal And a receiving circuit.
請求項2記載の受信回路において、
シリアルデータ送受信開始前に送信回路から前記同期クロック受信端子に対してある決まったHIGH幅の信号を入力させ、期待される受信信号のHIGH幅と実際に前記同期クロック受信端子から受信した信号のHIGH幅とを比較し、HIGH幅の期待値からの減少分を補正するための同期クロックHIGH幅補正回路を更に有し、
同期クロックの送受信の際に、端子において発生する遅延の影響により減少する受信同期クロックのHIGH幅を補正し、送信側が意図した同期クロック幅を再現させることを特徴とする受信回路。
The receiving circuit according to claim 2,
Before starting serial data transmission / reception, a certain HIGH signal is input from the transmission circuit to the synchronous clock receiving terminal, and the HIGH width of the expected received signal and the HIGH of the signal actually received from the synchronous clock receiving terminal are input. A synchronous clock HIGH width correction circuit for comparing the width and correcting a decrease from the expected value of the HIGH width;
A receiving circuit that corrects a HIGH width of a reception synchronization clock that decreases due to a delay generated at a terminal when transmitting and receiving the synchronization clock, and reproduces the synchronization clock width intended by the transmission side.
請求項2記載の受信回路において、
シリアルデータ送受信開始前に送信回路から前記同期クロック受信端子及び前記シリアルデータ受信端子に対してある決まったHIGH幅の信号を入力させ、両者のポジエッジが当該受信回路内部に到達するタイミングのずれを測定し、両者のうち早く到達した信号に対して遅延を付加し、両者の到達タイミングを一致させることを特徴とする受信回路。
The receiving circuit according to claim 2,
Before starting serial data transmission / reception, input a signal of a certain HIGH width from the transmission circuit to the synchronous clock reception terminal and the serial data reception terminal, and measure the timing difference between the positive edges of the two reaching the reception circuit. A receiving circuit characterized in that a delay is added to a signal that has arrived early among the both, so that the arrival timings of the both coincide with each other.
請求項1記載の送信回路と、請求項2記載の受信回路とを備えたことを特徴とするシリアル送受信システム。   A serial transmission / reception system comprising the transmission circuit according to claim 1 and the reception circuit according to claim 2. 請求項3記載の送信回路と、請求項4記載の受信回路とを備えたことを特徴とするシリアル送受信システム。   A serial transmission / reception system comprising the transmission circuit according to claim 3 and the reception circuit according to claim 4. 請求項5記載の送信回路と、請求項2記載の受信回路とを備えたことを特徴とするシリアル送受信システム。   A serial transmission / reception system comprising the transmission circuit according to claim 5 and the reception circuit according to claim 2. 請求項6記載の送信回路と、請求項7記載の受信回路とを備えたことを特徴とするシリアル送受信システム。   A serial transmission / reception system comprising the transmission circuit according to claim 6 and the reception circuit according to claim 7. 請求項1記載の送信回路と、請求項8記載の受信回路とを備えたことを特徴とするシリアル送受信システム。   A serial transmission / reception system comprising the transmission circuit according to claim 1 and the reception circuit according to claim 8. 請求項5記載の送信回路と、請求項8記載の受信回路とを備えたことを特徴とするシリアル送受信システム。   A serial transmission / reception system comprising the transmission circuit according to claim 5 and the reception circuit according to claim 8. 請求項1記載の送信回路と、請求項9記載の受信回路とを備えたことを特徴とするシリアル送受信システム。   A serial transmission / reception system comprising the transmission circuit according to claim 1 and the reception circuit according to claim 9. 請求項5記載の送信回路と、請求項9記載の受信回路とを備えたことを特徴とするシリアル送受信システム。   A serial transmission / reception system comprising the transmission circuit according to claim 5 and the reception circuit according to claim 9.
JP2007141467A 2007-05-29 2007-05-29 High-speed serial communication utilizing duty ratio of clock Pending JP2008300915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007141467A JP2008300915A (en) 2007-05-29 2007-05-29 High-speed serial communication utilizing duty ratio of clock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007141467A JP2008300915A (en) 2007-05-29 2007-05-29 High-speed serial communication utilizing duty ratio of clock

Publications (1)

Publication Number Publication Date
JP2008300915A true JP2008300915A (en) 2008-12-11

Family

ID=40174054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007141467A Pending JP2008300915A (en) 2007-05-29 2007-05-29 High-speed serial communication utilizing duty ratio of clock

Country Status (1)

Country Link
JP (1) JP2008300915A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011024166A (en) * 2009-07-21 2011-02-03 Fuji Xerox Co Ltd Receiver of serial signal, receiving method of serial signal, serial transmission system, and image forming apparatus
JP2011199792A (en) * 2010-03-24 2011-10-06 Meidensha Corp Dpll circuit
JP2012213145A (en) * 2011-03-18 2012-11-01 Ricoh Co Ltd Transmission device, transmission method, image formation device, transmission device, and reception device
JP2014064695A (en) * 2012-09-25 2014-04-17 Fujishoji Co Ltd Game machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011024166A (en) * 2009-07-21 2011-02-03 Fuji Xerox Co Ltd Receiver of serial signal, receiving method of serial signal, serial transmission system, and image forming apparatus
JP2011199792A (en) * 2010-03-24 2011-10-06 Meidensha Corp Dpll circuit
JP2012213145A (en) * 2011-03-18 2012-11-01 Ricoh Co Ltd Transmission device, transmission method, image formation device, transmission device, and reception device
JP2014064695A (en) * 2012-09-25 2014-04-17 Fujishoji Co Ltd Game machine

Similar Documents

Publication Publication Date Title
US8214668B2 (en) Synchronizing circuit
US7249290B2 (en) Deskew circuit and disk array control device using the deskew circuit, and deskew method
TWI399038B (en) Delay synchronous circuit and semiconductor integrated circuit device
US10096349B2 (en) Apparatus for source-synchronous information transfer and associated methods
US20070300095A1 (en) Double Data Rate Chaining for Synchronous DDR Interfaces
US20140013179A1 (en) Transmission delay difference correction method, communication device, and communication system
EP1309908A1 (en) System and method for synchronizing a skip pattern and initializing a clock forwarding interface in a multiple-clock system
EP2039034A1 (en) Asynchronous data fifo that provides uninterrupted data flow
JP2008300915A (en) High-speed serial communication utilizing duty ratio of clock
US7929655B2 (en) Asynchronous multi-clock system
US10237053B2 (en) Semiconductor device and data synchronization method
JP2009526278A (en) Data interface and synchronous search method
US9584305B2 (en) Deskew FIFO buffer with simplified initialization
US6760803B1 (en) Aligning and offsetting bus signals
US20160099717A1 (en) Transmission circuit, integrated circuit, and parallel-to-serial conversion method
US7376190B2 (en) Asynchronous data transmitting apparatus
US7696801B2 (en) Reset method for clock triggering digital circuit and related signal generating apparatus utilizing the reset method
US9094183B2 (en) Circuits for receiving data
JP6738028B2 (en) Receiver circuit and semiconductor integrated circuit
JP5378765B2 (en) Data transfer system
US20070300096A1 (en) Late Data Launch for a Double Data Rate Elastic Interface
EP3812874A1 (en) Glitch-free clock multiplexer
JP4765668B2 (en) Data receiving circuit
JP2004029947A (en) Clock generating device and audio data processor
JP5633132B2 (en) Data transmission system and method, data transmitting apparatus and receiving apparatus