JP2002335234A - Serial data transmitting method and transmission interface circuit using the same - Google Patents

Serial data transmitting method and transmission interface circuit using the same

Info

Publication number
JP2002335234A
JP2002335234A JP2001140255A JP2001140255A JP2002335234A JP 2002335234 A JP2002335234 A JP 2002335234A JP 2001140255 A JP2001140255 A JP 2001140255A JP 2001140255 A JP2001140255 A JP 2001140255A JP 2002335234 A JP2002335234 A JP 2002335234A
Authority
JP
Japan
Prior art keywords
transmission
clock
data
timing
bit
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.)
Withdrawn
Application number
JP2001140255A
Other languages
Japanese (ja)
Inventor
Haruhiko Nishio
春彦 西尾
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2001140255A priority Critical patent/JP2002335234A/en
Publication of JP2002335234A publication Critical patent/JP2002335234A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a one-wire type serial data transmitting method and a transmission interface circuit using the same without lowering the noise margin of data transmission. SOLUTION: On a transmitting side, data DA are transmitted while being mixed with a clock signal CL and on a receiving side, a transmitting side data bit string is reconstituted by extracting clock timing c1. In such a transmitting method, in the case of transmitting from the transmitting side, a chip select signal CS of H level continued for a long period, one return zero type clock signal CL after this chip select signal CS and data bit by bit successive from the top bit of transmitting data DA to the final bit are alternately transmitted and when the chip select signal CS is received on the receiving side, the clock timing c1 is extracted from following data. Then, transmitting data are written in a buffer memory bit by bit at write timing w1 delayed from the timing c1 for predetermined time.

Description

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

【0001】[0001]

【発明の属する技術分野】単一伝送路でシリアルデータ
伝送を行うシリアルデータ伝送方法およびその方法を用
いた伝送インタフェース回路に関わり、特に、インタフ
ェース回路を有する半導体集積回路に関する。
The present invention relates to a serial data transmission method for performing serial data transmission on a single transmission line and a transmission interface circuit using the method, and more particularly to a semiconductor integrated circuit having an interface circuit.

【0002】[0002]

【従来の技術】近年、半導体装置の小型化に伴い多くの
機能が1チップの半導体集積回路(以下、ICと略称す
る) に集積される結果、パッケージのピン数は益々増大
する。一方、パッケージは小さくなり、そのためにピン
数は少なくという相容れない技術的な要求がある。特
に、ピン数の少ない電源用ICなどで出力電圧制御などデ
ジタル信号の制御を必要とするICにとっては大きな問題
である。これらの電源用ICなどのデジタル信号の制御の
ためのインタフェース回路に関して述べると、パラレル
インタフェース回路(たとえば8ビット)からシリアル
インタフェース回路にすることで、データ転送速度は低
下するがインタフェース回路のピン数を低減することが
できるので、データ転送速度を必要としない携帯機器な
どでは、シリアルインタフェース回路が多く用いられる
様になってきた。
2. Description of the Related Art In recent years, with the miniaturization of semiconductor devices, many functions have been integrated into a single-chip semiconductor integrated circuit (hereinafter abbreviated as IC), and as a result, the number of pins of a package has been increasing. On the other hand, there are conflicting technical demands for smaller packages and a smaller number of pins. In particular, this is a major problem for ICs that require digital signal control such as output voltage control in power supply ICs with a small number of pins. Describing the interface circuits for controlling digital signals such as these power supply ICs, changing from a parallel interface circuit (for example, 8 bits) to a serial interface circuit reduces the data transfer speed, but reduces the number of pins of the interface circuit. Since the data transfer rate can be reduced, a serial interface circuit has come to be frequently used in portable devices that do not require a data transfer speed.

【0003】しかし、図12において、シリアルインタフ
ェース回路といっても、従来技術による伝送路への伝送
制御を行う上で必要な線路(ピン数)は、一般的に、チ
ップ選択信号CSと、クロック信号CLK と、データDATA
と、リード/ライト制御信号R/W と、の4本が必要であ
る。一方、近年、この線路は3線式、2線式のシリアル
データ伝送方法が現れ、ICのピン数の削減すなわちパッ
ケージの縮小に寄与している。3線式のシリアルデータ
伝送方法では、リード/ライト制御信号R/W をデータの
一部として取り込むことによって、この制御線を削除す
ることができる。また、2線式のシリアルデータ伝送方
法では、更に、データDATAとクロックCLKの状態を検出
して、チップ選択信号CSを実現するなどして更に制御線
を削除することができる。この様な2線式のシリアルデ
ータ伝送方法では、特に、Philips社のI2L がよく知ら
れ、浸透している。
However, in FIG. 12, even though a serial interface circuit is used, a line (the number of pins) necessary for controlling transmission to a transmission line according to the prior art generally includes a chip selection signal CS and a clock signal. Signal CLK and data DATA
And a read / write control signal R / W. On the other hand, in recent years, a three-wire or two-wire serial data transmission method has emerged for this line, which contributes to a reduction in the number of IC pins, that is, a reduction in the package. In the three-wire serial data transmission method, the control line can be deleted by taking in the read / write control signal R / W as a part of the data. In the two-wire serial data transmission method, the control lines can be further deleted by detecting the state of the data DATA and the clock CLK and realizing the chip select signal CS. Among such two-wire serial data transmission methods, in particular, Philips I2L is well known and infiltrated.

【0004】また、特開平7-95248 号公報「時分割デー
タ通信方式」には1線式のシリアルデータ伝送方法が開
示されている。図12において、横軸に時間軸をとり、縦
軸に上から送信データDA、クロック信号CL、中間電位、
伝送路1への送信出力1c、および受信側での分離回路で
クロック信号CLを除き、送信データDAを復元した波形図
を示す。即ち図示例では、送信データ1cがH,H,L,L,H,H,
L,L,H,H,・・と出力されたとき、この送信データが Hレ
ベルのとき、中間電位出力として電源電圧Vcc(=5V)を出
力し、送信データが Lレベルのとき、中間電位出力とし
て電源電圧Vccを抵抗R1,R2 で分圧した、例えば、1/2 V
cc(=2.5V)を出力する。この中間電位をクロック信号CL
で変調することにより送信出力を伝送路1に出力する。
この結果、送信データが Hレベルのとき、振幅5V-PP の
方形波1cが出力され、送信データが Lレベルのとき、振
幅2.5V-PP の方形波1cが伝送路に出力される。従って、
受信部4では、例えば、3Vの閾値でもって、シリアルデ
ータを判別すると、送信データDAがH の部分では振幅5V
-PP の方形波を検出し、送信データDAがL の部分では0V
を検出することができる。即ち、受信側4では、送信デ
ータDAと、クロック信号CLとを同時に受信処理を行うこ
とができるので、受信信号の同期化処理を行うことがで
きる。
Japanese Patent Application Laid-Open No. 7-95248, entitled "Time-division data communication system" discloses a one-wire serial data transmission method. In FIG. 12, the horizontal axis is the time axis, and the vertical axis is the transmission data DA, clock signal CL, intermediate potential,
FIG. 4 shows a waveform diagram in which a transmission output 1c to the transmission line 1 and the transmission data DA are restored by removing the clock signal CL by a separation circuit on the reception side. That is, in the illustrated example, the transmission data 1c is H, H, L, L, H, H,
When L, L, H, H, ... are output, the power supply voltage Vcc (= 5V) is output as the intermediate potential output when the transmission data is at the H level, and the intermediate potential is output when the transmission data is at the L level. Power supply voltage Vcc is divided by resistors R1 and R2 as output, for example, 1/2 V
Outputs cc (= 2.5V). This intermediate potential is applied to the clock signal CL
The transmission output is output to the transmission line 1 by modulating the signal.
As a result, when the transmission data is at the H level, a square wave 1c having an amplitude of 5V-PP is output, and when the transmission data is at the L level, a square wave 1c having an amplitude of 2.5V-PP is output to the transmission line. Therefore,
In the receiving unit 4, for example, when the serial data is determined using a threshold value of 3V, when the transmission data DA is H, the amplitude is 5V.
-Detects the square wave of -PP and 0V when the transmission data DA is L
Can be detected. That is, since the receiving side 4 can simultaneously perform the reception processing of the transmission data DA and the clock signal CL, the synchronization processing of the reception signal can be performed.

【0005】[0005]

【発明が解決しようとする課題】本発明においては、伝
送路の線路を削減し、さらにピン数を削減するために、
1線式のインターフェースを供するものである。また、
特開平7-95248 号公報「時分割データ通信方式」に開示
されたシリアルデータ伝送方法では、送信データにクロ
ック信号を重畳させてシリアルデータ送信し、この受信
したシリアルデータから予め定められた閾値で識別する
ことにより、簡単に送信データおよびクロック信号を分
離・復元することができる。しかし、送信データが Lレ
ベルでは、識別する閾値と Lレベルとの差が小さいの
で、データ伝送システム全体として見たときのノイズマ
ージンが通常のシステムより低下する恐れがある。
In the present invention, in order to reduce the number of transmission lines and the number of pins,
It provides a one-wire interface. Also,
In the serial data transmission method disclosed in Japanese Patent Application Laid-Open No. 7-95248, "Time-division data communication method", serial data is transmitted by superimposing a clock signal on transmission data, and a predetermined threshold value is determined from the received serial data. By the identification, the transmission data and the clock signal can be easily separated and restored. However, when the transmission data is at the L level, the difference between the identification threshold and the L level is small, so that the noise margin when viewed as a whole data transmission system may be lower than that of a normal system.

【0006】本発明は上記の点にかんがみてなされたも
のであり、その目的は前記した課題を解決して、データ
伝送のノイズマージンを低下させることなく、1線式の
シリアルデータ伝送方法およびその方法を用いた伝送イ
ンタフェース回路を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to solve the above-mentioned problems and to reduce the data transmission noise margin without reducing the one-line serial data transmission method and the method. An object of the present invention is to provide a transmission interface circuit using the method.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明においては、送信側でデータにクロック信号
を混ぜて伝送し、受信側でクロックタイミングを抽出し
て、直列的に受け取った伝送信号から送信側のデータビ
ット列を再構成するシリアルデータ伝送方法であって、
送信側は、データを伝送路に送信するとき、クロック信
号よりも長い期間継続するHレベルを出力した後Lレベ
ルを出力するチップ選択信号(CS)と、このチップ選択信
号の後,リターンゼロ(RZ)型の1クロック信号と,送信
データの内,先頭ビットから順に最終ビットまでの1ビ
ットずつのリターンゼロ(RZ)型のデータと,を交互に選
択・変換してなるシリアルデータと、を送信し、受信側
は、伝送路に送信される伝送信号からチップ選択信号(C
S)を受信したとき、後続するシリアルデータからクロッ
クタイミングを抽出し、この抽出されたクロックタイミ
ングから予め定められた時間遅れの書き込みタイミング
でシリアルデータの送信データを1ビットずつバッフア
メモリに書き込むものとする。
In order to achieve the above object, according to the present invention, data is mixed with a clock signal on a transmitting side and transmitted, and a clock timing is extracted on a receiving side and serially received. A serial data transmission method for reconstructing a data bit sequence on a transmission side from a transmission signal,
When transmitting data to the transmission line, the transmitting side outputs a chip selection signal (CS) that outputs an H level that lasts longer than the clock signal and then outputs an L level, and after this chip selection signal, returns zero ( (RZ) type one clock signal and serial data obtained by alternately selecting and converting return zero (RZ) type data of the transmission data, one bit at a time from the first bit to the last bit. The transmission side receives the chip selection signal (C
When S) is received, the clock timing is extracted from the subsequent serial data, and the transmission data of the serial data is written into the buffer memory one bit at a time at a write timing delayed by a predetermined time from the extracted clock timing. .

【0008】かかる伝送方法により、送信データの各1
ビットデータの前に1ビットのリターンゼロ(RZ)型の送
信クロックがあるので、このリターンゼロ(RZ)型の送信
クロックから予め定められたクロックタイミングを抽出
し、次に続く送信データが確実にH,L 判別できる書き込
みタイミングで1ビットずつの送信データをバッフアメ
モリに書き込むことができる。即ち、伝送されるシリア
ルデータから送信クロックのタイミングを抽出してこの
タイミングに同期して一定の間隔で送信データをメモリ
に書き込むことができる。
According to such a transmission method, each one of the transmission data is
Since there is a one-bit return zero (RZ) type transmission clock before the bit data, a predetermined clock timing is extracted from this return zero (RZ) type transmission clock, and the subsequent transmission data is reliably generated. Transmission data of 1 bit at a time can be written to the buffer memory at the write timing at which H and L can be determined. That is, the timing of the transmission clock can be extracted from the transmitted serial data, and the transmission data can be written to the memory at regular intervals in synchronization with this timing.

【0009】また、送信側でデータにクロック信号を混
ぜて伝送し、受信側でクロックタイミングを抽出して、
直列的に受け取った伝送信号から送信側のデータビット
列を再構成するシリアルデータ伝送方法であって送信側
は、データを伝送路に送信するとき、クロック信号より
も長い期間継続するHレベルを出力した後Lレベルを出
力するチップ選択信号(CS)と、このチップ選択信号の
後,リターンゼロ(RZ)型の1クロック信号と,送信デー
タの内,先頭ビットから順に最終ビットまでの1ビット
ずつのノンリターンゼロ(NRZ) 型のデータと,を交互に
選択してなるシリアルデータと、を送信し、受信側は、
伝送路に送信される送信信号からチップ選択信号(CS)を
受信したとき、後続するシリアルデータからクロックタ
イミングを抽出し、この抽出されたクロックタイミング
から予め定められた時間遅れの書き込みタイミングでシ
リアルデータの送信データを1ビットずつバッフアメモ
リに書き込むものとする。
[0009] Further, the transmission side mixes the data with the clock signal and transmits the data, and the reception side extracts the clock timing,
A serial data transmission method for reconstructing a data bit sequence on a transmission side from a transmission signal received serially, wherein the transmission side outputs an H level that lasts longer than a clock signal when transmitting data to a transmission path. After that, a chip selection signal (CS) that outputs an L level, a clock signal of a return zero (RZ) type after this chip selection signal, and one bit of transmission data from the first bit to the last bit in order. The non-return zero (NRZ) type data and the serial data obtained by alternately selecting the non-return zero (NRZ) type data are transmitted.
When a chip select signal (CS) is received from a transmission signal transmitted on the transmission line, clock timing is extracted from the subsequent serial data, and the serial data is written at a predetermined time delay write timing from the extracted clock timing. Is written to the buffer memory one bit at a time.

【0010】かかる伝送方法により、上述の送信データ
がリターンゼロ(RZ)型のデータの場合と同様に、抽出す
べきリターンゼロ(RZ)型の送信クロックから抽出するク
ロックタイミング位置およびバッフアメモリに書き込む
書き込みタイミング位置に相違はあるが、抽出されたク
ロックタイミングから, 次に続く送信データが確実にH,
L 判別できる書き込みタイミングで1ビットずつの送信
データをバッフアメモリに書き込むことができる。即
ち、伝送されるシリアルデータから送信クロックのタイ
ミングを抽出してこのタイミングに同期して一定の間隔
で送信データをメモリに書き込むことができる。
With this transmission method, similarly to the case where the transmission data is return zero (RZ) type data, the clock timing position extracted from the return zero (RZ) type transmission clock to be extracted and the write to write into the buffer memory Although there is a difference in the timing position, from the extracted clock timing, the following transmission data is reliably H,
The transmission data for each bit can be written to the buffer memory at the write timing at which L can be determined. That is, the timing of the transmission clock can be extracted from the transmitted serial data, and the transmission data can be written to the memory at regular intervals in synchronization with this timing.

【0011】また、送信データは、チップ選択信号(CS)
とシリアルデータとの間にクロックパルス幅を測定する
パルス幅信号を有することができる。かかる伝送方法に
より、受信側はチップ選択信号(CS)を受信した後、続い
て送信される送信クロック信号のパルス幅信号を測定
し、この測定したパルス幅に予め伝送方法毎に定められ
た倍率を掛けることにより、抽出されたクロックタイミ
ングから書き込みタイミングまでの時間を知ることがで
きる。従って、この時間で書き込みタイミングの遅れ時
間を制御することにより、送信側の送信クロック周期を
意識しなくてもシリアルデータ伝送を行うことができ
る。
The transmission data is a chip selection signal (CS)
And a pulse width signal for measuring a clock pulse width between the data and the serial data. According to such a transmission method, after receiving the chip select signal (CS), the receiving side measures the pulse width signal of the transmission clock signal to be transmitted subsequently, and multiplies the measured pulse width by a magnification determined in advance for each transmission method. , The time from the extracted clock timing to the write timing can be known. Therefore, by controlling the delay time of the write timing with this time, serial data transmission can be performed without being aware of the transmission clock cycle on the transmission side.

【0012】また、上述のシリアルデータ伝送方法を用
いた伝送インタフェース回路において、内部クロック回
路と、この内部クロックを分周して送信クロックを形成
する分周回路と、この送信クロックによって制御され伝
送路に伝送信号を出力する送信部と、伝送路から送信さ
れてくる伝送信号を内部クロックによって受信し,送信
側の送信データを復元してバッフアメモリに書き込む受
信部と、送信部および受信部とを伝送路に接続する接続
手段と、を備え、送信部は、送信データバッフアメモリ
と、チップ選択信号形成回路と、このチップ選択信号を
送信後、送信クロックとバッフアメモリ内の送信データ
とを1ビットずつ交互に選択出力する制御回路と、を備
え、受信部は、伝送路から受信する伝送信号が予め定め
られた時間Hレベルを継続するチップ選択信号を検出す
るチップ選択信号検出回路と、このチップ選択信号を検
出したとき、後続するシリアルデータからクロックタイ
ミングを抽出するクロック抽出手段と、このクロック抽
出手段の出力に対応して予め定められたタイミング遅れ
で書き込みタイミングパルスを出力するタイミング形成
回路と、このタイミング形成回路のタイミングパルスで
受信したシリアルデータの送信データを1ビットずつ書
き込む受信データバッフアメモリと、を備えるものとす
る。
In a transmission interface circuit using the above-described serial data transmission method, an internal clock circuit, a frequency dividing circuit for dividing the internal clock to form a transmission clock, and a transmission line controlled by the transmission clock A transmission unit that outputs a transmission signal to a transmission line, a reception unit that receives a transmission signal transmitted from a transmission line by an internal clock, restores transmission data on the transmission side, and writes the data in a buffer memory, and a transmission unit and a transmission unit. Connection means for connecting to a path, the transmission unit includes a transmission data buffer memory, a chip selection signal forming circuit, and, after transmitting the chip selection signal, transmitting a transmission clock and transmission data in the buffer memory one bit at a time. And a control circuit for alternately selecting and outputting the transmission signal. A chip selection signal detection circuit for detecting a chip selection signal, a clock extraction means for extracting a clock timing from subsequent serial data when the chip selection signal is detected, and A timing forming circuit that outputs a write timing pulse with a predetermined timing delay, and a reception data buffer memory that writes transmission data of serial data received by the timing pulse of the timing formation circuit bit by bit are provided. .

【0013】かかる構成により、伝送インタフェース回
路が相手機器より伝送要求を受けたとき, あるいは、自
己機器内の情報処理装置より送信要求を受け, 伝送路に
データを送信するとき、送信部は、接続手段を送信側に
切り換え、内部クロックを分周して形成する送信クロッ
クに基づき、チップ選択信号形成回路からチップ選択信
号を制御回路経由で送信し、続いて、制御回路が送信ク
ロックと送信データバッフアメモリのデータとを1ビッ
トずつ交互に選択制御してシリアルデータを送信するこ
とができる。
With this configuration, when the transmission interface circuit receives a transmission request from a partner device, or receives a transmission request from an information processing device in its own device and transmits data to the transmission path, the transmission unit connects The means is switched to the transmission side, and a chip selection signal is transmitted from the chip selection signal forming circuit via the control circuit based on the transmission clock formed by dividing the internal clock, and then the control circuit transmits the transmission clock and the transmission data buffer. The serial data can be transmitted by alternately selecting and controlling the data in the memory one bit at a time.

【0014】また、上記の送信要求がない常時は、接続
手段を受信側に切り換えて待機し、受信部は、伝送路に
送信されてくるチップ選択信号の有無を監視する。この
状態で、チップ選択信号検出回路がチップ選択信号を検
出すると、クロック抽出手段が後続するシリアルデータ
からクロックタイミングを抽出し、タイミング形成回路
が抽出されたクロックタイミングから予め定められたタ
イミング遅れで書き込みタイミングパルスを出力し、こ
のタイミングパルスで伝送路から受信したシリアルデー
タの送信データを1ビットずつ受信データバッフアメモ
リに書き込むことができる。
When there is no transmission request, the connection unit is switched to the receiving side to stand by, and the receiving unit monitors the presence or absence of a chip selection signal transmitted to the transmission path. In this state, when the chip selection signal detection circuit detects the chip selection signal, the clock extraction means extracts the clock timing from the subsequent serial data, and the timing formation circuit writes the data with a predetermined timing delay from the extracted clock timing. A timing pulse is output, and the transmission data of the serial data received from the transmission path by this timing pulse can be written into the reception data buffer memory one bit at a time.

【0015】また、上述のシリアルデータ伝送方法を用
いた伝送インタフェース回路において、内部クロック回
路と、この内部クロックを分周して送信クロックを形成
する分周回路と、この送信クロックによって制御され伝
送路に伝送信号を出力する送信部と、伝送路から送信さ
れてくる伝送信号を内部クロックによって受信し,送信
側の送信データを復元してバッフアメモリに書き込む受
信部と、送信部および受信部とを伝送路に接続する接続
手段と、を備え、送信部は、送信データバッフアメモリ
と、チップ選択信号形成回路と、このチップ選択信号を
送信後、クロックパルス幅測定信号を出力し,続いて,
送信クロックとバッフアメモリ内の送信データとを1ビ
ットずつ交互に選択出力する制御回路と、を備え、受信
部は、伝送路から受信する伝送信号が予め定められた時
間Hレベルを継続するチップ選択信号を検出するチップ
選択信号検出回路と、このチップ選択信号を検出したと
き、クロックパルス幅を測定するパルス幅検出回路と、
後続するシリアルデータからクロックタイミングを抽出
するクロックタイミング抽出手段と、このクロックタイ
ミング抽出手段の出力に対応して予め定められたタイミ
ング遅れて書き込みタイミングパルスを出力するタイミ
ング形成回路と、このタイミング形成回路のタイミング
パルスで受信したシリアルデータの送信データを1ビッ
トずつ書き込む受信データバッフアメモリと、を備える
ものとする。
In the transmission interface circuit using the above serial data transmission method, an internal clock circuit, a frequency dividing circuit for dividing the internal clock to form a transmission clock, and a transmission line controlled by the transmission clock A transmission unit that outputs a transmission signal to a transmission line, a reception unit that receives a transmission signal transmitted from a transmission line by an internal clock, restores transmission data on the transmission side, and writes the data in a buffer memory, and a transmission unit and a transmission unit. Connection means for connecting to a channel, the transmission section outputs a clock pulse width measurement signal after transmitting the transmission data buffer memory, the chip selection signal forming circuit, and the chip selection signal.
A control circuit for alternately selecting and outputting the transmission clock and the transmission data in the buffer memory one bit at a time, wherein the reception unit comprises: a chip selection signal that keeps the transmission signal received from the transmission line at the H level for a predetermined time. And a pulse width detection circuit that measures a clock pulse width when the chip selection signal is detected,
Clock timing extracting means for extracting clock timing from subsequent serial data, a timing forming circuit for outputting a write timing pulse with a predetermined timing delay corresponding to the output of the clock timing extracting means, And a reception data buffer memory for writing transmission data of serial data received by the timing pulse one bit at a time.

【0016】かかる構成により、伝送インタフェース回
路が相手機器より伝送要求を受けたとき, あるいは、自
己機器内の情報処理装置より送信要求を受け, 伝送路に
データを送信するとき、送信部は、接続手段を送信側に
切り換え、内部クロックを分周して形成する送信クロッ
クに基づき、チップ選択信号形成回路からチップ選択信
号を制御回路経由で送信し、続いて、制御回路が送信ク
ロックと送信データバッフアメモリのデータとを1ビッ
トずつ交互に選択制御してシリアルデータを送信するこ
とができる。
With this configuration, when the transmission interface circuit receives a transmission request from a partner device, or receives a transmission request from an information processing device in its own device and transmits data to a transmission path, the transmission unit establishes a connection. The means is switched to the transmission side, and a chip selection signal is transmitted from the chip selection signal forming circuit via the control circuit based on the transmission clock formed by dividing the internal clock, and then the control circuit transmits the transmission clock and the transmission data buffer. The serial data can be transmitted by alternately selecting and controlling the data in the memory one bit at a time.

【0017】また、上記の送信要求がない常時は、接続
手段を受信側に切り換えて待機し、受信部は、伝送路に
送信されてくるチップ選択信号の有無を監視する。この
状態で、チップ選択信号検出回路がチップ選択信号を検
出すると、パルス幅検出回路はクロックパルス幅を測定
し、タイミング形成回路のタイミング遅れ時間を設定す
る。続いて、クロック抽出手段が後続するシリアルデー
タからクロックタイミングを抽出し、タイミング形成回
路が抽出されたクロックタイミングから上記設定された
タイミング遅れ時間で書き込みタイミングパルスを出力
し、このタイミングパルスで伝送路から受信したシリア
ルデータの送信データを1ビットずつ受信データバッフ
アメモリに書き込むことができる。
When there is no transmission request, the connection unit is switched to the receiving side to stand by, and the receiving unit monitors the presence or absence of a chip selection signal transmitted to the transmission path. In this state, when the chip selection signal detection circuit detects the chip selection signal, the pulse width detection circuit measures the clock pulse width and sets the timing delay time of the timing forming circuit. Subsequently, the clock extracting means extracts the clock timing from the subsequent serial data, and the timing forming circuit outputs a write timing pulse with the set timing delay time from the extracted clock timing, and this timing pulse outputs the write timing pulse from the transmission line. The transmission data of the received serial data can be written to the reception data buffer memory one bit at a time.

【0018】また、伝送インタフェース回路の制御回路
は、内部クロックを分周して形成される送信クロックで
送信データバッフアメモリ内のデータを1ビットずつ選
択し,送信クロックと論理積をとり,この論理積出力と
前記送信クロックとを交互に選択・出力する第1制御回
路を備えることができる。かかる構成により、シリアル
データの送信データをリターンゼロ(RZ)型のデータとし
て構成することができる。
Further, the control circuit of the transmission interface circuit selects data in the transmission data buffer memory one bit at a time using a transmission clock formed by dividing the internal clock, and takes a logical product with the transmission clock. A first control circuit for alternately selecting and outputting a logical product output and the transmission clock can be provided. With this configuration, the transmission data of the serial data can be configured as return zero (RZ) type data.

【0019】また、伝送インタフェース回路の制御回路
は、内部クロックを分周して形成される送信クロック
と,この送信クロックで送信データバッフアメモリ内の
データと,を順次1ビットずつ交互に選択・出力するセ
レクタ回路(第2制御回路)を備えることができる。か
かる構成により、シリアルデータの送信データをノンリ
ターンゼロ(NRZ) 型のデータとして構成することができ
る。
The control circuit of the transmission interface circuit alternately selects a transmission clock formed by dividing the internal clock and data in the transmission data buffer memory one bit at a time using the transmission clock. A selector circuit (second control circuit) for outputting can be provided. With this configuration, the transmission data of the serial data can be configured as non-return zero (NRZ) type data.

【0020】また、伝送インタフェース回路の制御回路
は、第1制御回路または第2制御回路を有し、チップ選
択信号を送信後,先頭の送信クロックのみ2送信クロッ
ク送信し,続いて,送信データバッフアメモリから送信
データを1ビットずつ交互に選択する論値回路を備える
ことができる。かかる構成により、チップ選択信号とシ
リアルデータとの間に、パルス幅測定用の送信クロック
を挿入することができる。
The control circuit of the transmission interface circuit has a first control circuit or a second control circuit, and after transmitting the chip select signal, transmits only the first transmission clock by two transmission clocks, and then transmits the transmission data buffer. A logical value circuit for alternately selecting transmission data from the memory one bit at a time. With this configuration, a transmission clock for pulse width measurement can be inserted between the chip selection signal and the serial data.

【0021】また、シリアルデータからクロックタイミ
ングを抽出するクロック抽出手段は、伝送信号の送信デ
ータがリターンゼロ(RZ)型のデータで構成されていると
き、シリアルデータのクロックの立ち上がりタイミング
でクロックを抽出し、タイミング形成回路の予め定めら
れた書き込みタイミングパルスは、この抽出されたクロ
ックの立ち上がりタイミングに対して 5/2送信クロック
パルス幅遅延して出力することができる。
The clock extracting means for extracting the clock timing from the serial data, when the transmission data of the transmission signal is composed of return zero (RZ) type data, extracts the clock at the rising timing of the serial data clock. The predetermined write timing pulse of the timing forming circuit can be output with a 5/2 transmission clock pulse width delay from the rising timing of the extracted clock.

【0022】また、シリアルデータからクロックタイミ
ングを抽出するクロック抽出手段は、伝送信号の送信デ
ータがノンリターンゼロ (NRZ)型のデータで構成されて
いるとき、シリアルデータのクロック中央部のクロック
立ち上がりあるいはクロック立ち下がりのタイミングで
クロックを抽出し、タイミング形成回路の予め定められ
た書き込みタイミングパルスは、この抽出されたクロッ
ク中央部の変化するタイミングに対して2送信クロック
パルス幅遅延して出力することができる。
The clock extracting means for extracting the clock timing from the serial data, when the transmission data of the transmission signal is composed of non-return-to-zero (NRZ) type data, the clock rising at the central part of the clock of the serial data. A clock is extracted at the falling edge of the clock, and the predetermined write timing pulse of the timing forming circuit may be output with a delay of two transmission clock pulse widths with respect to the extracted changing timing of the central portion of the clock. it can.

【0023】また、伝送インタフェース回路のクロック
抽出手段およびタイミング形成回路は、予め定められた
5/2送信クロックパルス幅あるいは2送信クロックパル
ス幅に相当する内部クロック数のダウンカウンタを備
え、クロック抽出手段が抽出するクロックタイミングで
このダウンカウンタに内部クロック数をセットし、内部
クロックでカウントダウンして、カウント値ゼロでフラ
グをたて、このフラグで受信データバッフアメモリにシ
リアルデータの送信データを1ビットずつ書き込むこと
ができる。
Further, the clock extracting means and the timing forming circuit of the transmission interface circuit are provided in a predetermined manner.
A down counter for the number of internal clocks corresponding to the 5/2 transmission clock pulse width or 2 transmission clock pulse widths is provided. The number of internal clocks is set in this down counter at the clock timing extracted by the clock extraction means, and the internal clock counts down. Thus, a flag is set with a count value of zero, and the transmission data of serial data can be written to the reception data buffer memory one bit at a time using this flag.

【0024】また、伝送インタフェース回路は、クロッ
クパルス幅検出回路が検出したクロックパルス幅を 5/2
倍あるいは2倍して,この値のクロック数をダウンカウ
ンタにセットし、内部クロックでカウントダウンして、
カウント値ゼロでフラグをたて、このフラグで受信デー
タバッフアメモリにシリアルデータの送信データを1ビ
ットずつ書き込むことができる。
Further, the transmission interface circuit sets the clock pulse width detected by the clock pulse width detection circuit to 5/2.
Double or double, set the number of clocks of this value in the down counter, count down with the internal clock,
A flag is set with a count value of zero, and the transmission data of serial data can be written to the reception data buffer memory one bit at a time using this flag.

【0025】かかる構成により、受信側はチップ選択信
号(CS)を受信した後、続いて送信される送信クロック信
号のパルス幅信号を測定し、この測定したパルス幅に予
め伝送方法毎に定められた倍率を掛けることにより、抽
出されたクロックタイミングから書き込みタイミングま
での時間を知ることができる。従って、この時間で書き
込みタイミングの遅れ時間を制御することにより、送信
側の送信クロックを意識しなくてもシリアルデータ伝送
を行うことができる。
With this configuration, after receiving the chip select signal (CS), the receiving side measures the pulse width signal of the transmission clock signal transmitted subsequently, and determines the measured pulse width in advance for each transmission method. The time from the extracted clock timing to the write timing can be known by multiplying the obtained magnification. Therefore, by controlling the delay time of the write timing with this time, serial data transmission can be performed without being conscious of the transmission clock on the transmission side.

【0026】また、受信部は、伝送路から受信する伝送
信号が予め定められた時間Hレベルを継続するチップ選
択信号を検出するチップ選択信号検出回路と、このチッ
プ選択信号を検出したとき、次の送信クロックのクロッ
クパルス幅を測定するメモリカウンタと、このメモリカ
ウンタの計数値をセットし,このセット値を1ビットシ
フトして1/2 の演算を行うシフトレジスタと、内部クロ
ックをアップカウントするリセット機能付きパルス幅(P
w)カウンタと、シフトレジスタの1/2 演算されたメモリ
カウンタの計数値とパルス幅(Pw)カウンタのカウント値
とを比較するコンパレータと、このコンパレータ出力で
アップカウンタのカウント値をリセットし, 他方このコ
ンパレータ出力を5進カウントするカウンタと、を備え
てクロックタイミングから 5/2クロック幅遅延した書き
込みタイミングパルスを発生し、この書き込みタイミン
グパルスでシリアルデータの送信データを順次書き込む
シフトレジスタと、を備えることができる。
The receiving section includes a chip selection signal detection circuit for detecting a chip selection signal in which the transmission signal received from the transmission path keeps the H level for a predetermined time, and when detecting the chip selection signal, A memory counter that measures the clock pulse width of the transmission clock, a count value of the memory counter, a shift register that shifts the set value by one bit and performs a 演算 operation, and counts up the internal clock. Pulse width with reset function (P
w) a counter, a comparator that compares the count value of the memory counter calculated by a half of the shift register with the count value of the pulse width (Pw) counter, and resets the count value of the up counter with the output of this comparator. A counter for counting the comparator output in quinary, a shift register for generating a write timing pulse delayed by 5/2 clock width from the clock timing, and sequentially writing serial data transmission data with the write timing pulse. be able to.

【0027】[0027]

【発明の実施の形態】図1は本発明による第1実施例の
シリアルデータ伝送方法を説明する伝送波形図、図2は
第2実施例のシリアルデータ伝送方法を説明する伝送波
形図、図3は第1実施例でパルス幅測定信号を有する伝
送波形図、図4は第2実施例でパルス幅測定信号を有す
る伝送波形図、図5は受信部で第1実施例のシリアルデ
ータから送信データを復元するタイミング動作図、図6
は受信部で第2実施例のシリアルデータから送信データ
を復元するタイミング動作図、図7は第1・第2実施例
の伝送インタフェース回路のブロック線図、図8は送信
クロックのパルス幅検出回路を有する第1・第2実施例
の伝送インタフェース回路のブロック線図、図9は一実
施例による伝送インタフェース回路のブロック線図、図
10は一実施例の動作を説明する動作波形図、図11は本発
明による伝送路上に送信される伝送信号の構成を説明す
る構成図であり、図12、図13に対応する同一機能部材に
は同じ符号が付してある。 (実施形態1)図1において、本発明によりシリアルデ
ータ伝送方法は、送信側でデータDA(=D7,D6,・・D1,D0)
にクロック信号(CL,CL,CL ・・) を混ぜて伝送し、受信
側でクロックタイミングc1 (図5の(B) 参照) を抽出し
て、直列的に受け取った伝送信号(CS=(CL,D7,CL,D6・・
CL,D1,CL,D0)))から送信側のデータビット列(D7,D6・・
D1,D0)を再構成するシリアルデータ伝送方法であって、
送信側では、データ(1c)を伝送路1に送信するとき、ク
ロック信号CLよりも長い期間継続するHレベルを出力し
た後Lレベルを出力するチップ選択信号CSと、このチッ
プ選択信号CSの後,H,L のレベルが1クロック内に半分
ずつ出現するリターンゼロ(RZ)型の1クロック信号CL
と,送信データ(D7,D6・・D1,D0)の内,先頭ビット(D7)
から順に最終ビット(D0)までの1ビットずつのリターン
ゼロ(RZ)型のデータ(D7,D6・・D1,D0)と,を図1の(B)
に図示する様に、交互に選択・変換してなるシリアルデ
ータ(CL,D7,CL,D6・・CL,D0)と、を送信する。
FIG. 1 is a transmission waveform diagram illustrating a serial data transmission method according to a first embodiment of the present invention, FIG. 2 is a transmission waveform diagram illustrating a serial data transmission method according to a second embodiment, and FIG. FIG. 4 is a transmission waveform diagram having a pulse width measurement signal in the first embodiment, FIG. 4 is a transmission waveform diagram having a pulse width measurement signal in the second embodiment, and FIG. FIG. 6 is a timing operation diagram for restoring
FIG. 7 is a timing operation diagram for restoring transmission data from the serial data of the second embodiment in the receiving section, FIG. 7 is a block diagram of the transmission interface circuit of the first and second embodiments, and FIG. 8 is a pulse width detection circuit of the transmission clock And FIG. 9 is a block diagram of a transmission interface circuit according to an embodiment of the present invention.
10 is an operation waveform diagram illustrating the operation of one embodiment, FIG. 11 is a configuration diagram illustrating the configuration of the transmission signal transmitted on the transmission line according to the present invention, the same functional members corresponding to FIGS. Are denoted by the same reference numerals. (Embodiment 1) In FIG. 1, the serial data transmission method according to the present invention uses the data DA (= D7, D6,... D1, D0) on the transmission side.
, A clock signal (CL, CL, CL,...) Is mixed and transmitted, and a clock timing c1 (see FIG. 5 (B)) is extracted on the receiving side, and the transmission signal (CS = (CL , D7, CL, D6 ...
CL, D1, CL, D0))) to the data bit string (D7, D6 ...
D1, D0), a serial data transmission method for reconstructing
On the transmission side, when transmitting the data (1c) to the transmission line 1, a chip selection signal CS that outputs an H level that lasts longer than the clock signal CL and then outputs an L level, , H, L levels appear half each within one clock Return-zero (RZ) type one clock signal CL
And the first bit (D7) of the transmission data (D7, D6 ... D1, D0)
, And return-zero (RZ) type data (D7, D6,..., D1, D0) for each bit from the first bit to the last bit (D0) in order from (B) in FIG.
As shown in the figure, serial data (CL, D7, CL, D6... CL, D0) alternately selected and converted are transmitted.

【0028】受信側では、伝送路1に送信される伝送信
号(1b)からチップ選択信号CSを受信したとき、後続する
シリアルデータ(CL,D7,CL,D6・・CL,D0)からクロックタ
イミングc1を抽出し、この抽出されたクロックタイミン
グc1から予め定められた時間(T1)遅れの書き込みタイミ
ングw1でシリアルデータ(CL,D7,CL,D6・・CL,D0)から送
信データ(D7,D6・・D1,D0)を1ビットずつバッフアメモ
リ(44)に書き込み制御することができる。
On the receiving side, when the chip selection signal CS is received from the transmission signal (1b) transmitted to the transmission line 1, the clock timing is determined from the subsequent serial data (CL, D7, CL, D6... CL, D0). c1 and transmit data (D7, D6) from the serial data (CL, D7, CL, D6, CL, D0) at a write timing w1 delayed by a predetermined time (T1) from the extracted clock timing c1. .. D1, D0) can be written and controlled bit by bit in the buffer memory (44).

【0029】かかる伝送方法により、送信データ(D7,D6
・・D1,D0)の各1ビットデータ(Dj)の前に1ビットのリ
ターンゼロ(RZ)型の送信クロックCLがあるので、このリ
ターンゼロ(RZ)型の送信クロックCLから予め定められた
クロックタイミングc1(例えば、図5の(A) の送信クロ
ックCLK の立ち上がり部分) を抽出し、次に続く送信デ
ータ(Dj)が確実に H,L判別できる書き込みタイミング
(例えば、図5の(B) の送信データでw1で図示される送
信データのH(L)レベルの中央部分) で1ビットずつの送
信データDjをバッフアメモリ(44)に書き込むことができ
る。即ち、伝送されるシリアルデータ(CL,D7,CL,D6・・
CL,D0)から送信クロックCLのタイミングc1を抽出してこ
のタイミングc1の同期して一定の間隔(T1)のタイミング
w1で送信データ(D7,D6・・D1,D0)をメモリ44に書き込む
ことができる。 (実施形態2)また、図2において、本発明によりシリ
アルデータ伝送方法は、送信側でデータDA(=D7,D6,・・
D1,D0)にクロック信号(CL,CL,CL,・・) を混ぜて伝送
し、受信側 でクロックタイミングc2 (図6の(B) 参
照) を抽出して、直列的に受け取った伝送信号(CS=(CL,
D7,CL,D6・・CL,D1,CL,D0)) から送信側のデータビット
列(D7,D6・・D1,D0)を再構成するシリアルデータ伝送方
法であって、送信側では、データ(1c)を伝送路1に送信
するとき、クロック信号CLよりも長い期間継続するHレ
ベルを出力した後Lレベルを出力するチップ選択信号CS
と、このチップ選択信号CSの後,リターンゼロ(RZ)型の
1クロック信号CLと,送信データ(D7,D6・・D1,D0)の
内,先頭ビット(D7)から順に最終ビット(D0)までの1ビ
ットずつの H,Lのレベルが1クロック間持続するノンリ
ターンゼロ(NRZ) 型のデータ(D7,D6・・D1,D0)と,を図
2の(B) に図示する様に、交互に選択・変換してなるシ
リアルデータ(CL,D7,CL,D6・・CL,D0)と、を送信する。
With this transmission method, the transmission data (D7, D6
..Because each one-bit data (Dj) of D1, D0) is preceded by a one-bit return zero (RZ) type transmission clock CL, a predetermined one is determined from the return zero (RZ) type transmission clock CL. The clock timing c1 (for example, the rising portion of the transmission clock CLK in FIG. 5A) is extracted, and the next transmission data (Dj) can be reliably determined to be H or L at the write timing (for example, (B) in FIG. 5). The transmission data Dj of each bit can be written into the buffer memory (44) at the H (L) level of the transmission data indicated by w1). That is, the serial data (CL, D7, CL, D6 ...
(CL, D0) to extract the timing c1 of the transmission clock CL, and synchronize the timing c1 with the timing of a constant interval (T1).
The transmission data (D7, D6... D1, D0) can be written to the memory 44 by w1. (Embodiment 2) In FIG. 2, the serial data transmission method according to the present invention uses the data DA (= D7, D6,.
D1, D0) mixed with a clock signal (CL, CL, CL,...) And transmitted, and the receiving side extracts clock timing c2 (see (B) in FIG. 6) and transmits the serially received transmission signal. (CS = (CL,
D7, CL, D6 ... CL, D1, CL, D0)) is a serial data transmission method for reconstructing the data bit string (D7, D6 ... D1, D0) on the transmission side from the transmission side. When transmitting 1c) to the transmission line 1, the chip selection signal CS that outputs an H level that lasts longer than the clock signal CL and then outputs an L level
After the chip selection signal CS, one return zero (RZ) type clock signal CL and the last bit (D0) of the transmission data (D7, D6... D1, D0) in order from the first bit (D7) from the first bit (D7) As shown in FIG. 2B, non-return zero (NRZ) type data (D7, D6... D1, D0) in which the H and L levels of each bit up to one bit last for one clock , And serial data (CL, D7, CL, D6... CL, D0) alternately selected and converted.

【0030】受信側では、伝送路1に送信される伝送信
号(1b)からチップ選択信号CSを受信したとき、後続する
シリアルデータ(CL,D7,CL,D6・・CL,D0)からクロックタ
イミングc2を抽出し、この抽出されたクロックタイミン
グc2から予め定められた時間(T2)遅れの書き込みタイミ
ングw2でシリアルデータ(CL,D7,CL,D6・・CL,D0)から送
信データ(D7,D6・・D1,D0)を1ビットずつバッフアメモ
リ(44)に書き込み制御することができる。
On the receiving side, when receiving the chip selection signal CS from the transmission signal (1b) transmitted to the transmission line 1, the clock timing from the subsequent serial data (CL, D7, CL, D6... CL, D0) c2, and transmit data (D7, D6) from the serial data (CL, D7, CL, D6, CL, D0) at a write timing w2 delayed by a predetermined time (T2) from the extracted clock timing c2. .. D1, D0) can be written and controlled bit by bit in the buffer memory (44).

【0031】かかる伝送方法により、実施形態1で述べ
た送信データがリターンゼロ(RZ)型のデータの場合と同
様に、送信データ(D7,D6・・D1,D0)の各1ビットデータ
(Dj)の前に1ビットのリターンゼロ(RZ)型の送信クロッ
クCLがあるので、このリターンゼロ(RZ)型の送信クロッ
クCLから予め定められたクロックタイミングc2(例え
ば、図6の(A) の送信クロックCLK の立ち下がり部分)
を抽出し、次に続く送信データ(Dj)が確実に H,L判別で
きる書き込みタイミング(例えば、図6の(B) の送信デ
ータでw1で図示される H,Lレベルの中央部分) で1ビッ
トずつの送信データDjをバッフアメモリ(44)に書き込む
ことができる。即ち、伝送されるシリアルデータ(CL,D
7,CL,D6・・CL,D0)から送信クロックCLK のタイミングc
2を抽出してこのタイミングc2の同期して一定の間隔(T
2)で送信データ(D7,D6・・D1,D0)をメモリ44に書き込む
ことができる。 (実施形態3)また、図3、図4において、送信データ
(D7,D6・・D1,D0)は、チップ選択信号CSとシリアルデー
タ(CL,D7,CL,D6・・CL,D0)との間にクロックパルス幅を
測定するパルス幅信号Pwを有することができる。
According to such a transmission method, each one-bit data of the transmission data (D7, D6,..., D1, D0) is similar to the transmission data of the return zero (RZ) type described in the first embodiment.
Since there is a one-bit return zero (RZ) type transmission clock CL before (Dj), a predetermined clock timing c2 (for example, (A) in FIG. 6) is obtained from the return zero (RZ) type transmission clock CL. ) Falling edge of the transmission clock CLK)
At the write timing at which the next transmission data (Dj) can be reliably determined to be H or L (for example, at the center of the H or L level indicated by w1 in the transmission data of FIG. 6B). Transmission data Dj for each bit can be written to the buffer memory (44). That is, the serial data (CL, D
7, CL, D6 ... CL, D0) to transmission clock CLK timing c
2 is extracted and synchronized at a certain interval (T
The transmission data (D7, D6... D1, D0) can be written in the memory 44 in 2). (Embodiment 3) In addition, in FIGS.
(D7, D6 ... D1, D0) must have a pulse width signal Pw for measuring the clock pulse width between the chip select signal CS and the serial data (CL, D7, CL, D6 ... CL, D0). Can be.

【0032】かかる伝送方法により、受信側はチップ選
択信号(CS)を受信した後、続いて送信される送信クロッ
ク信号のパルス幅信号Pwを測定し、この測定したパルス
幅に実施形態1、実施形態2の伝送方法毎に予め定めら
れた倍率(5/2倍,2倍) を掛けることにより、抽出された
クロックタイミング (c1またはc2) から書き込みタイミ
ング (w1またはw2) までの時間 (T1またはT2) を知るこ
とができる。従って、この時間 (T1またはT2) で書き込
みタイミング遅れ時間を設定・制御することにより、送
信側の送信クロックCLの周期を意識しなくてもシリアル
データ伝送を行うことができる。
According to this transmission method, after receiving the chip select signal (CS), the receiving side measures the pulse width signal Pw of the transmission clock signal to be transmitted subsequently. By multiplying by a predetermined magnification (5/2 times, 2 times) for each transmission method of mode 2, the time (T1 or t1) from the extracted clock timing (c1 or c2) to the write timing (w1 or w2) T2). Therefore, by setting and controlling the write timing delay time at this time (T1 or T2), serial data transmission can be performed without being aware of the cycle of the transmission clock CL on the transmission side.

【0033】[0033]

【実施例】(実施例1)図1、図5、図7を用いて実施
形態1の説明を補足する。図7において、本発明による
シリアルデータ伝送方法を用いた伝送インタフェース回
路2(2A,2B) は、実施形態1および実施形態2に用いら
れるハードウェア構成であり、内部クロック回路21と、
この内部クロックclk を分周して送信クロックCLを形成
する分周回路22と、この送信クロックCLによって制御さ
れ伝送路1に伝送信号1a(=1c) を出力する送信部3(3A,
3B) と、伝送路1から送信されてくる伝送信号1a(=1b)
を内部クロックclk によって受信し,送信側の送信デー
タ1cを復元してバッフアメモリ44に書き込む受信部4(4
A,4B) と、送信部3および受信部4とを伝送路1に接続
するスイッチで表示された接続手段13と、を備えて構成
される。
EXAMPLE 1 Example 1 will be supplemented with reference to FIGS. 1, 5 and 7. In FIG. 7, a transmission interface circuit 2 (2A, 2B) using the serial data transmission method according to the present invention has a hardware configuration used in the first and second embodiments.
A frequency dividing circuit 22 that divides the internal clock clk to form a transmission clock CL, and a transmitting unit 3 (3A, 3A, 3A) that outputs a transmission signal 1a (= 1c) to the transmission line 1 under the control of the transmission clock CL.
3B) and the transmission signal 1a (= 1b) transmitted from the transmission path 1.
Receiving section 4 (4) which receives the internal clock clk, restores the transmission data 1c on the transmission side, and writes the data in the buffer memory 44.
A, 4B) and connection means 13 represented by a switch for connecting the transmission unit 3 and the reception unit 4 to the transmission line 1.

【0034】送信部3(3A,3B) は、この伝送インタフェ
ース回路2(2A,2B) が収納された機器の中央処理装置(C
PU) 5からの送信データを一時収納する送信データバッ
フアメモリ33と、チップ選択信号形成回路31と、このチ
ップ選択信号(CS)31a を送信後、送信クロックCLとバッ
フアメモリ33内の送信データ33a とを1ビットずつ交互
に選択出力する制御回路32(32A,32B) と、を備えて構成
される。
The transmission unit 3 (3A, 3B) is provided with a central processing unit (C) of a device in which the transmission interface circuit 2 (2A, 2B) is housed.
PU) 5, a transmission data buffer memory 33 for temporarily storing transmission data, a chip selection signal forming circuit 31, and after transmitting this chip selection signal (CS) 31a, a transmission clock CL and transmission data 33a in the buffer memory 33 are transmitted. And a control circuit 32 (32A, 32B) for alternately selecting and outputting 1 bit by 1 bit.

【0035】かかる構成により、伝送インタフェース回
路2(2A,2B) が交信相手機器より伝送要求を受けたと
き, あるいは、自己機器内の中央処理装置5より送信要
求を受け, 伝送路1にデータ1c(=1a) を送信するとき、
送信部3(3A,3B) は、接続手段13を送信側(1c)に切り換
え、内部クロックclk を分周して形成する送信クロック
CLに基づき、チップ選択信号形成回路31からチップ選択
信号(CS)31a を制御回路32(32A,32B) 経由で送信する。
続いて、制御回路32(32A,32B) は送信クロックCLと送信
データバッフアメモリ33の送信データ(D7,D6・・D1,D0)
とを1ビットずつ交互に選択制御してシリアルデータ(C
L,D7,CL,D6・・CL,D1,CL,D0)を送信する。この動作波形
が図1に図示される。
With this configuration, when the transmission interface circuit 2 (2A, 2B) receives a transmission request from the communication partner device, or receives a transmission request from the central processing unit 5 in its own device, the data 1c is transmitted to the transmission line 1. (= 1a)
The transmission unit 3 (3A, 3B) switches the connection means 13 to the transmission side (1c) and divides the internal clock clk to form a transmission clock.
Based on CL, a chip selection signal (CS) 31a is transmitted from the chip selection signal forming circuit 31 via the control circuit 32 (32A, 32B).
Subsequently, the control circuit 32 (32A, 32B) transmits the transmission clock CL and the transmission data (D7, D6,..., D1, D0) of the transmission data buffer memory 33.
And alternately select and control the serial data (C
L, D7, CL, D6 ... CL, D1, CL, D0) are transmitted. This operation waveform is shown in FIG.

【0036】図1において、横軸に時間軸を左から右に
とる。図1の(A) に上から順に送信クロックCLと、送信
データDA(=D7,D6 ・・D1,D0)と、制御回路32によって送
信クロックCLと送信データDA(D7,D6・・) とを1ビット
ずつ交互に選択制御してシリアルデータ(CL,D7,CL,D6・
・) を送信制御する状態を示す。この制御回路32(32A)
は、図示省略されているが、内部クロックclk を分周し
て形成される送信クロックCLで送信データバッフアメモ
リ33内の送信データ33aを1ビットずつ選択し,送信ク
ロックCLと論理積をとり,この論理積出力と送信クロッ
クCLとを交互に選択・出力する第1制御回路32A を備え
て構成することができる。あるいは、例えば、H レベル
とバッフアメモリ33の送信データDAとを1ビットずつ交
互に選択し、この選択データと送信クロックCLとの論理
積をとることで構成することができる。
In FIG. 1, the horizontal axis represents the time axis from left to right. In FIG. 1A, the transmission clock CL, the transmission data DA (= D7, D6... D1, D0) and the transmission clock CL and the transmission data DA (D7, D6. Is controlled alternately one bit at a time, and serial data (CL, D7, CL, D6
・) Indicates the state of transmission control. This control circuit 32 (32A)
Although not shown, the transmission clock CL formed by dividing the internal clock clk is used to select the transmission data 33a in the transmission data buffer memory 33 bit by bit, and AND the transmission data CL with the transmission clock CL. , And a first control circuit 32A for alternately selecting and outputting the logical product output and the transmission clock CL. Alternatively, for example, it can be configured by alternately selecting the H level and the transmission data DA of the buffer memory 33 one bit at a time and taking the logical product of the selected data and the transmission clock CL.

【0037】かかる構成により、制御回路32A は、シリ
アルデータの送信データDAをリターンゼロ(RZ)型のデー
タとして構成することができる。図1の(B) にこの様に
形成された伝送信号1cを伝送路1に送信することができ
る。図示例の送信データ(D7,D6・・D1,D0)は、(1,0,1,
0,0,0,1,1) を送信した状態を示し、時間軸が右に流れ
ているので、伝送路1への伝送信号1cの先頭は、左側の
チップ選択信号(CS)が先頭である。
With this configuration, the control circuit 32A can configure the transmission data DA of the serial data as return zero (RZ) type data. The transmission signal 1c thus formed can be transmitted to the transmission line 1 as shown in FIG. The transmission data (D7, D6... D1, D0) in the illustrated example is (1, 0, 1,
(0,0,0,1,1) is transmitted, and since the time axis flows to the right, the leading end of the transmission signal 1c to the transmission line 1 is headed by the left chip selection signal (CS). is there.

【0038】次に、図7に戻って、受信部4(4A,4B)
は、伝送路1から受信する伝送信号1b(=1a) が予め定め
られた時間Hレベルを継続するチップ選択信号CSを検出
するチップ選択信号検出回路41と、このチップ選択信号
CSを検出したとき、後続するシリアルデータ(CL,D7,CL,
D6・・) からクロックタイミング(図5に図示するc1)
を抽出するクロック抽出手段42(42A,42B) と、このクロ
ック抽出手段42(42A,42B) の出力c1,c2 に対応して予め
定められたタイミング遅れ(T1,T2) で書き込みタイミン
グパルスw1,w2 を出力するタイミング形成回路43(43A,4
3B) と、このタイミング形成回路43(43A,43B) のタイミ
ングパルスw1,W2 で受信したシリアルデータ(CL,D7,CL,
D6・・) の送信データDA(=D7,D6 ・・) を1ビットずつ
書き込む受信データバッフアメモリ44と、を備えて構成
される。
Next, returning to FIG. 7, the receiving unit 4 (4A, 4B)
Is a chip selection signal detection circuit 41 for detecting a chip selection signal CS in which a transmission signal 1b (= 1a) received from the transmission line 1 keeps the H level for a predetermined time,
When CS is detected, the subsequent serial data (CL, D7, CL,
D6 ...) to clock timing (c1 shown in Fig. 5)
Clock extraction means 42 (42A, 42B) for extracting the clock signal and write timing pulses w1, with a predetermined timing delay (T1, T2) corresponding to the outputs c1, c2 of the clock extraction means 42 (42A, 42B). Timing formation circuit 43 (43A, 4
3B) and the serial data (CL, D7, CL, CL) received by the timing pulses w1, W2 of the timing forming circuit 43 (43A, 43B).
..) Is written one bit at a time, and a reception data buffer memory 44 for writing the transmission data DA (= D7, D6...) One bit at a time.

【0039】かかる構成により、送信要求がない常時
は、接続手段13を受信側に切り換えて待機し、受信部4
は、伝送路1に送信されてくるチップ選択信号CSの有無
を監視する。この状態で、チップ選択信号検出回路41が
チップ選択信号CSを検出すると、クロック抽出手段42(4
2A) は後続するシリアルデータ(CL,D7,CL,D6・・) から
図5に図示するクロックタイミングc1を各クロックCL毎
に抽出し、タイミング形成回路43A がこの抽出されたク
ロックタイミングc1から予め定められたタイミング遅れ
T1で書き込みタイミングパルスw1を出力し、このタイミ
ングパルスw1で伝送路1から受信したシリアルデータ(C
L,D7,CL,D6・・) の送信データ(D7,D6・・) を1ビット
ずつ受信データバッフアメモリ44に書き込み、バッフア
メモリ44から中央処理装置5に受信データDAをわたすこ
とができる。
With this configuration, when there is no transmission request, the connection unit 13 is switched to the receiving side to wait, and the receiving unit 4
Monitors the presence or absence of a chip select signal CS transmitted to the transmission path 1. In this state, when the chip selection signal detection circuit 41 detects the chip selection signal CS, the clock extraction means 42 (4
2A) extracts the clock timing c1 shown in FIG. 5 for each clock CL from the subsequent serial data (CL, D7, CL, D6...), And the timing forming circuit 43A preliminarily extracts the clock timing c1 from the extracted clock timing c1. Set timing delay
The write timing pulse w1 is output at T1, and the serial data (C
The transmission data (D7, D6,...) Of L, D7, CL, D6,...) Is written into the reception data buffer memory 44 bit by bit, and the reception data DA can be passed from the buffer memory 44 to the central processing unit 5.

【0040】図5において、横軸に時間軸を左から右に
とる。図5の(A) に上から順に送信クロックCLと、送信
データDA(=D7,D6 ・・D1,D0)と、伝送路1からのシリア
ルデータ(CL,D7,CL,D6・・) の受信状態を示す。また、
図5の(B) にクロックタイミングc1から予め定められた
タイミング遅れT1で書き込みタイミングパルスw1を出力
する状態を示す。
In FIG. 5, the horizontal axis represents the time axis from left to right. In FIG. 5A, the transmission clock CL, transmission data DA (= D7, D6... D1, D0), and serial data (CL, D7, CL, D6...) Indicates reception status. Also,
FIG. 5B shows a state in which the write timing pulse w1 is output with a predetermined timing delay T1 from the clock timing c1.

【0041】ここで、シリアルデータ(CL,D7,CL,D6・
・) からクロックタイミングc1を抽出するクロック抽出
手段42A は、伝送信号1bの送信データDA(=D7,D6 ・・D
1,D0)がリターンゼロ(RZ)型のデータで構成されている
とき、シリアルデータ中のクロック立ち上がり(シリア
ルデータの上向きの矢印で図示)のタイミングでクロッ
クc1を抽出し、タイミング形成回路43A の予め定められ
た書き込みタイミングパルスw1は、この抽出されたクロ
ックの立ち上がりタイミングc1に対して 5/2送信クロッ
クパルス幅(T1=5/2Pw)だけ遅延して出力(w1)することが
できる。この様にタイミング形成回路43の遅延時間T1を
選択することにより、送信データ(D7,D6・・D1,D0)のH,
L レベルの有意データの中央部分でバッフアメモリ44に
書き込みを行うことができ、内部クロックclの周期の変
動やノイズなどに強い受信部4を構成することができ
る。また、図5の(C),(D) は送信クロックがこの送信ク
ロック周期の半周期遅れた場合の状態を図示し、この場
合でもクロック抽出手段42A がシリアルデータ中のクロ
ック立ち上がり部分のタイミングでクロックc1を抽出す
ることで、同様に、タイミングパルスw1で伝送路1から
受信したシリアルデータ(CL,D7,CL,D6・・) の送信デー
タDA(=D7,D6 ・・) を1ビットずつ受信データバッフア
メモリ44に書き込み、バッフアメモリ44から中央処理装
置5に受信データDAをわたすことができる。 (実施例2)図2、図6、図7を用いて実施形態2の説
明を補足する。図7において、本発明による伝送インタ
フェース回路2の実施例1との差異は、送信データ(D7,
D6・・D1,D0)がノンリターンゼロ型のデータで構成され
ている点である。従って、ここでは実施例1と異なる送
信部3の制御回路32B と、受信部4のクロック抽出手段
42およびタイミング形成回路43を中心に以下説明する。
Here, the serial data (CL, D7, CL, D6
The clock extraction means 42A that extracts the clock timing c1 from the transmission data DA (= D7, D6
When (1, D0) is composed of return zero (RZ) type data, the clock c1 is extracted at the rising edge of the clock in the serial data (illustrated by the upward arrow of the serial data), and the clock c1 is extracted by the timing forming circuit 43A. The predetermined write timing pulse w1 can be output (w1) with a delay of 5/2 transmission clock pulse width (T1 = 5 / 2Pw) from the rising timing c1 of the extracted clock. By selecting the delay time T1 of the timing forming circuit 43 in this manner, the transmission data (D7, D6,..., D1, D0)
Writing to the buffer memory 44 can be performed at the central portion of the L-level significant data, and the receiving unit 4 can be configured to be resistant to fluctuations in the cycle of the internal clock cl and noise. FIGS. 5C and 5D show the case where the transmission clock is delayed by a half cycle of the transmission clock cycle. In this case as well, the clock extracting means 42A operates at the timing of the rising edge of the clock in the serial data. Similarly, by extracting the clock c1, the transmission data DA (= D7, D6,...) Of the serial data (CL, D7, CL, D6,. The received data DA can be written to the received data buffer memory 44 and passed from the buffer memory 44 to the central processing unit 5. (Example 2) The description of Embodiment 2 will be supplemented with reference to Figs. In FIG. 7, the difference between the transmission interface circuit 2 according to the present invention and the first embodiment is that the transmission data (D7,
D6... D1, D0) are constituted by non-return zero type data. Therefore, here, the control circuit 32B of the transmitting unit 3 and the clock extracting unit of the receiving unit 4 are different from those of the first embodiment.
The following mainly describes the timing control circuit 42 and the timing forming circuit 43.

【0042】送信部3(3B)は、この伝送インタフェース
回路2(2B)が収納された機器の中央処理装置(CPU) 5か
らの送信データを一時収納する送信データバッフアメモ
リ33と、チップ選択信号形成回路31と、このチップ選択
信号(CS)31a を送信後、送信クロックCLとバッフアメモ
リ33内の送信データ33a とを1ビットずつ交互に選択出
力する制御回路32(32B) と、を備えて構成される。
The transmission section 3 (3B) includes a transmission data buffer memory 33 for temporarily storing transmission data from the central processing unit (CPU) 5 of the device in which the transmission interface circuit 2 (2B) is stored, A signal forming circuit 31 and a control circuit 32 (32B) for alternately selecting and outputting the transmission clock CL and the transmission data 33a in the buffer memory 33 one bit at a time after transmitting the chip selection signal (CS) 31a. Be composed.

【0043】かかる構成により、伝送インタフェース回
路2(2B)が交信相手機器より伝送要求を受けたとき, あ
るいは、自己機器内の中央処理装置5より送信要求を受
け,伝送路1にデータ1c(=1a) を送信するとき、送信部
3(3B)は、接続手段13を送信側(1c)に切り換え、内部ク
ロックclk を分周して形成する送信クロックCLに基づ
き、チップ選択信号形成回路31からチップ選択信号(CS)
31a を制御回路32(32)経由で送信する。続いて、制御回
路32(32B) は送信クロックCLと送信データバッフアメモ
リ33のデータ(D7,D6・・D1,D0)とを1ビットずつ交互に
選択制御してシリアルデータ(CL,D7,CL,D6・・CL,D1,C
L,D0)を送信する。この動作波形が図2に図示される。
With this configuration, when the transmission interface circuit 2 (2B) receives a transmission request from the communication partner device, or receives a transmission request from the central processing unit 5 in its own device, the data 1c (= 1a), the transmitting section 3 (3B) switches the connection means 13 to the transmitting side (1c), and based on the transmission clock CL formed by dividing the internal clock clk, generates a signal from the chip selection signal forming circuit 31. Chip select signal (CS)
31a is transmitted via the control circuit 32 (32). Subsequently, the control circuit 32 (32B) alternately controls the transmission clock CL and the data (D7, D6,..., D1, D0) of the transmission data buffer memory 33 bit by bit to serial data (CL, D7, CL, D6 ... CL, D1, C
L, D0). This operation waveform is shown in FIG.

【0044】図2において、横軸に時間軸を左から右に
とる。図2の(A) に上から順に送信クロックCLと、送信
データDA(=D7,D6 ・・D1,D0)と、制御回路32B によって
送信クロックCLと送信データDA(D7,D6・・) とを1ビッ
トずつ交互に選択制御してシリアルデータ(CL,D7,CL,D6
・・) を送信制御する状態を示す。この制御回路32B
は、図示省略されているが、内部クロックclk を分周し
て形成される送信クロックCLと,この送信クロックCLで
送信データバッフアメモリ33内の送信データ33a と,を
順次1ビットずつ交互に選択・出力するセレクタ回路
(第2制御回路)32B を備えて構成することができる。
In FIG. 2, the horizontal axis represents the time axis from left to right. 2A, the transmission clock CL, the transmission data DA (= D7, D6... D1, D0) and the transmission clock CL and the transmission data DA (D7, D6...) Is controlled alternately one bit at a time, and serial data (CL, D7, CL, D6
・ ・) Indicates the state of transmission control. This control circuit 32B
Although not shown, the transmission clock CL formed by dividing the internal clock clk and the transmission data 33a in the transmission data buffer memory 33 by this transmission clock CL are sequentially and alternately bit by bit. A selector circuit (second control circuit) 32B for selecting and outputting can be provided.

【0045】かかる構成により、シリアルデータの送信
データをノンリターンゼロ(NRZ) 型のデータとして構成
することができる。図2の(B) にこの様に形成された伝
送信号1cを伝送路1に送信することができる。図示例の
送信データ(D7,D6・・D1,D0)は、(1,0,1,0,0,0,1,1) を
送信した状態を示し、時間軸が右に流れているので、伝
送路1への伝送信号1cの先頭は、左側のチップ選択信号
(CS)が先頭である。
With this configuration, the transmission data of the serial data can be configured as non-return zero (NRZ) type data. The transmission signal 1c thus formed can be transmitted to the transmission line 1 as shown in FIG. The transmission data (D7, D6,..., D1, D0) in the illustrated example indicates a state in which (1,0,1,0,0,0,1,1) has been transmitted, and since the time axis flows to the right, , The head of the transmission signal 1c to the transmission path 1 is the left chip selection signal
(CS) is first.

【0046】次に、図7に戻って、受信部4(4B)は、伝
送路1から受信する伝送信号1b(=1a) が予め定められた
時間Hレベルを継続するチップ選択信号CSを検出するチ
ップ選択信号検出回路41と、このチップ選択信号CSを検
出したとき、後続するシリアルデータ(CL,D7,CL,D6・
・) からクロックタイミング(図6に図示するc2) を抽
出するクロック抽出手段42B と、このクロック抽出手段
42B の出力c2に対応して予め定められたタイミング遅れ
(T2)で書き込みタイミングパルスw2を出力するタイミン
グ形成回路43B と、このタイミング形成回路43B のタイ
ミングパルスw2で受信したシリアルデータ(CL,D7,CL,D6
・・) の送信データDA(=D7,D6 ・・) を1ビットずつ書
き込む受信データバッフアメモリ44と、を備えて構成さ
れる。
Next, returning to FIG. 7, the receiving unit 4 (4B) detects the chip selection signal CS in which the transmission signal 1b (= 1a) received from the transmission line 1 keeps the H level for a predetermined time. The chip select signal detection circuit 41 detects the serial data (CL, D7, CL, D6
Clock extracting means 42B for extracting a clock timing (c2 shown in FIG. 6) from
Predetermined timing delay corresponding to output c2 of 42B
(T2), a timing forming circuit 43B that outputs a write timing pulse w2, and the serial data (CL, D7, CL, D6) received by the timing pulse w2 of the timing forming circuit 43B.
..) For writing the transmission data DA (= D7, D6...) One bit at a time.

【0047】かかる構成により、送信要求がない常時
は、接続手段13を受信側に切り換えて待機し、受信部4
(4B)は、伝送路1に送信されてくるチップ選択信号CSの
有無を監視する。この状態で、チップ選択信号検出回路
41がチップ選択信号CSを検出すると、クロック抽出手段
42B は後続するシリアルデータ(CL,D7,CL,D6・・) から
図6に図示するクロックタイミングc2を各クロックCL毎
に抽出し、タイミング形成回路43B がこの抽出されたク
ロックタイミングc2から予め定められたタイミング遅れ
T2で書き込みタイミングパルスw2を出力し、このタイミ
ングパルスw2で伝送路1から受信したシリアルデータ(C
L,D7,CL,D6・・) の送信データDA(=D7,D6・・) を1ビ
ットずつ受信データバッフアメモリ44に書き込み、バッ
フアメモリ44から中央処理装置5に受信データDataをわ
たすことができる。
With this configuration, when there is no transmission request, the connection unit 13 is switched to the receiving side to stand by, and the receiving unit 4
(4B) monitors the presence or absence of the chip selection signal CS transmitted to the transmission path 1. In this state, the chip selection signal detection circuit
When 41 detects the chip select signal CS, the clock extraction means
42B extracts the clock timing c2 shown in FIG. 6 for each clock CL from the subsequent serial data (CL, D7, CL, D6...), And the timing forming circuit 43B determines the clock timing c2 from the extracted clock timing c2 in advance. Timing delay
At T2, a write timing pulse w2 is output, and at this timing pulse w2, serial data (C
The transmission data DA (= D7, D6,...) Of L, D7, CL, D6,...) Is written to the reception data buffer memory 44 bit by bit, and the reception data Data is passed from the buffer memory 44 to the central processing unit 5. it can.

【0048】図6において、横軸に時間軸を左から右に
とる。図6の(A) に上から順に送信クロックCLと、送信
データDA(=D7,D6 ・・D1,D0)と、伝送路1からのシリア
ルデータ(CL,D7,CL,D6・・) の受信状態を示す。また、
図6の(B) にクロックタイミングc2から予め定められた
タイミング遅れT2で書き込みタイミングパルスw2を出力
する状態を示す。
In FIG. 6, the horizontal axis represents the time axis from left to right. 6A, the transmission clock CL, the transmission data DA (= D7, D6... D1, D0), and the serial data (CL, D7, CL, D6...) Indicates reception status. Also,
FIG. 6B shows a state in which the write timing pulse w2 is output with a predetermined timing delay T2 from the clock timing c2.

【0049】ここで、シリアルデータ(CL,D7,CL,D6・
・) からクロックタイミングc2を抽出するクロック抽出
手段42B は、伝送信号1bの送信データDA(=D7,D6 ・・D
1,D0)がノンリターンゼロ (NRZ)型のデータで構成され
ているとき、シリアルデータのクロック中央部のクロッ
ク立ち上がりあるいはクロック立ち下がり(シリアルデ
ータの上向きまたは下向きの矢印で図示)のタイミング
でクロックc2を抽出し、タイミング形成回路43B の予め
定められた書き込みタイミングパルスw2は、この抽出さ
れたクロック中央部の変化するタイミングに対して2送
信クロックパルス幅(T2=2Pw)遅延して出力することがで
きる。この様にタイミング形成回路43B の遅延時間T2を
選択することにより、送信データ(D7,D6・・D1,D0)のH,
L レベルの中央部分でバッフアメモリ44に書き込みを行
うことができ、内部クロックclの周期の変動やノイズな
どに強い受信部4Bを構成することができる。また、図6
の(C),(D) は送信クロックCLがこの送信クロック周期の
半周期遅れた場合の状態を図示し、この場合でもクロッ
ク抽出手段42B がシリアルデータ中のクロック立ち上が
り部分のタイミングでクロックc2を抽出することで、同
様に、タイミングパルスw2で伝送路1から受信したシリ
アルデータ(CL,D7,CL,D6・・) の送信データDA(=D7,D6
・・) を1ビットずつ受信データバッフアメモリ44に書
き込み、バッフアメモリ44から中央処理装置5に受信デ
ータDataをわたすことができる。
Here, the serial data (CL, D7, CL, D6
The clock extracting means 42B for extracting the clock timing c2 from the transmission data DA (= D7, D6
When (1, D0) is composed of non-return-to-zero (NRZ) type data, the clock is clocked at the rising or falling edge of the clock at the center of the serial data clock (illustrated by the upward or downward arrow of the serial data). c2, and the predetermined write timing pulse w2 of the timing forming circuit 43B is output with a delay of two transmission clock pulse widths (T2 = 2Pw) with respect to the extracted timing at which the central portion of the clock changes. Can be. By selecting the delay time T2 of the timing forming circuit 43B in this manner, the transmission data (D7, D6,..., D1, D0)
Writing can be performed to the buffer memory 44 at the central part of the L level, and the receiving unit 4B that is resistant to fluctuations in the cycle of the internal clock cl and noise can be configured. FIG.
(C) and (D) show the state in which the transmission clock CL is delayed by half the transmission clock period, and in this case also, the clock extracting means 42B detects the clock c2 at the timing of the rising edge of the clock in the serial data. By extracting, similarly, the transmission data DA (= D7, D6) of the serial data (CL, D7, CL, D6...) Received from the transmission path 1 with the timing pulse w2
..) is written into the reception data buffer memory 44 bit by bit, and the reception data Data can be passed from the buffer memory 44 to the central processing unit 5.

【0050】また、実施例1または実施例2の伝送イン
タフェース回路2(2A.2B) のクロック抽出手段42(42A,4
2B) およびタイミング形成回路43(43A,43B) は、予め定
められた 5/2送信クロックパルス幅((5/2)Pw;42A,43A)
あるいは2送信クロックパルス幅(2Pw;42B,43B)に相当
する内部クロックclk 数のダウンカウンタを備え、クロ
ック抽出手段42(42A,42B) が抽出するクロックタイミン
グc1,c2 でこのダウンカウンタに内部クロック数をセッ
トし、内部クロックclk でカウントダウンして、カウン
ト値ゼロでフラグF をたて、このフラグF で受信データ
バッフアメモリ44にシリアルデータ(CL,D7,CL,D6・・)
の送信データDA(=D7,D6 ・・) を1ビットずつ書き込む
ことができる。
The clock extracting means 42 (42A, 4A) of the transmission interface circuit 2 (2A.2B) of the first or second embodiment
2B) and the timing forming circuit 43 (43A, 43B) have a predetermined 5/2 transmission clock pulse width ((5/2) Pw; 42A, 43A).
Alternatively, a down counter of the number of internal clocks clk corresponding to 2 transmission clock pulse widths (2Pw; 42B, 43B) is provided, and the internal clock is supplied to this down counter at clock timings c1, c2 extracted by the clock extraction means 42 (42A, 42B). Set the number, count down with the internal clock clk, set the flag F with a count value of zero, and use this flag F to store the serial data (CL, D7, CL, D6 ...) in the receive data buffer memory 44.
) Can be written bit by bit.

【0051】かかる構成においては、一般的に、送信側
と受信側に内部クロックclk の周期が略等しい値に選定
して構成されている点と、送信データの前に必ず同期化
のための送信クロックがあり, このクロック抽出時点c
1,c2 から一定のタイミング期間T1,T2 ずらしてデータ
を書き込めばよい。従って、このタイミング期間T1,T2
はかなりラフの構成のものでもよいので、ダウンカウン
タで簡単に回路構成することができる。 (実施例3)図3、図4、図8を用いて実施形態3の説
明を補足する。図8において、本発明による伝送インタ
フェース回路2(2C,2D) は、内部クロック回路21と、こ
の内部クロックclk を分周して送信クロックCLを形成す
る分周回路22と、この送信クロックCLによって制御され
伝送路1に伝送信号1cを出力する送信部3(3C,3D) と、
伝送路1から送信されてくる伝送信号1bを内部クロック
clk によって受信し,送信側の送信データDA(D7,D6・・
D1,D0)を復元してバッフアメモリ44に書き込む受信部4
(4C,4D) と、送信部3(3C,3D) および受信部4(4C,4D)
とを伝送路1に接続する接続手段13と、を備えて構成す
ることができる。
In such a configuration, generally, the transmission side and the reception side are configured so that the period of the internal clock clk is selected to be substantially the same value, and the transmission for synchronization must be performed before transmission data. There is a clock, and this clock extraction point c
Data may be written with a certain timing period T1, T2 shifted from 1, c2. Therefore, the timing periods T1, T2
Can have a very rough configuration, so that the circuit can be easily configured with a down counter. Embodiment 3 The description of Embodiment 3 will be supplemented with reference to FIGS. 3, 4, and 8. In FIG. 8, a transmission interface circuit 2 (2C, 2D) according to the present invention comprises an internal clock circuit 21, a frequency divider 22 for dividing the internal clock clk to form a transmission clock CL, and a transmission clock CL. A transmitting unit 3 (3C, 3D) that is controlled and outputs a transmission signal 1c to the transmission path 1;
The transmission signal 1b transmitted from the transmission path 1 is used as an internal clock.
clk and transmit data DA (D7, D6 ...
(D1, D0) is restored and written into the buffer memory 44.
(4C, 4D), transmitting unit 3 (3C, 3D) and receiving unit 4 (4C, 4D)
And connection means 13 for connecting the transmission line 1 to the transmission line 1.

【0052】送信部3(3C,3D) は、送信データバッフア
メモリ33と、チップ選択信号形成回路31と、このチップ
選択信号CSを送信後、クロックパルス幅測定信号Pwを出
力し,続いて,送信クロックCLとバッフアメモリ33のデ
ータDA(D7,D6・・D1,D0)とを1ビットずつ交互に選択出
力する制御回路32(32C,32D) と、を備えて構成すること
ができる。
The transmitting section 3 (3C, 3D) outputs the clock pulse width measurement signal Pw after transmitting the transmission data buffer memory 33, the chip selection signal forming circuit 31, and the chip selection signal CS, and then outputs the clock pulse width measurement signal Pw. , And a control circuit 32 (32C, 32D) for alternately selecting and outputting the transmission clock CL and the data DA (D7, D6... D1, D0) of the buffer memory 33 one bit at a time.

【0053】また、受信部4(4C,4D) は、伝送路1から
受信する伝送信号1bが予め定められた時間Hレベルを継
続するチップ選択信号CSを検出するチップ選択信号検出
回路41と、このチップ選択信号CSを検出したとき、クロ
ックパルス幅Pwを測定するパルス幅検出回路45と、この
クロックパルス幅信号Pwに後続するシリアルデータ(CL,
D7,CL,D6・・CL,D1,CL,D0)からクロックタイミングc1,c
2 を抽出するクロックタイミング抽出手段42(42A,42B)
と、このクロックタイミング抽出手段42(42A,42B) の出
力c1,c2 に対応して予め定められたタイミング(T1,T2)
遅れて書き込みタイミングパルスw1,w2 を出力するタイ
ミング形成回路43(43A,43B) と、このタイミング形成回
路43(43A,43B) のタイミングパルスw1,w2 で受信したシ
リアルデータ(CL,D7,CL,D6・・CL,D1,CL,D0)の送信デー
タ(D7,D6・・D1,D0)を1ビットずつ書き込む受信データ
バッフアメモリ44と、を備えて構成することができる。
The receiving unit 4 (4C, 4D) includes a chip selection signal detection circuit 41 for detecting a chip selection signal CS in which the transmission signal 1b received from the transmission line 1 keeps the H level for a predetermined time. When the chip selection signal CS is detected, a pulse width detection circuit 45 that measures the clock pulse width Pw, and serial data (CL,
D7, CL, D6 ... CL, D1, CL, D0) to clock timing c1, c
Clock timing extraction means 42 (42A, 42B) for extracting 2
And predetermined timings (T1, T2) corresponding to the outputs c1, c2 of the clock timing extracting means 42 (42A, 42B).
The timing forming circuit 43 (43A, 43B) which outputs the write timing pulses w1, w2 with a delay, and the serial data (CL, D7, CL, CL) received by the timing pulses w1, w2 of the timing forming circuit 43 (43A, 43B). D6,... CL, D1, CL, D0) transmission data (D7, D6,... D1, D0) are written one bit at a time.

【0054】かかる構成により、伝送インタフェース回
路2(2C,2D) が相手機器より伝送要求を受けたとき, あ
るいは、自己機器内の中央処理装置5より送信要求を受
け,伝送路1にデータ(D7,D6・・D1,D0)を送信すると
き、送信部3(3C,3D) は、接続手段13を送信側に切り換
え、内部クロックclk を分周して形成する送信クロック
CLに基づき、チップ選択信号形成回路31からチップ選択
信号CSを送信し、クロックパルス幅(Pw)信号を送信し、
続いて、制御回路32C,32D が送信クロックCLと送信デー
タバッフアメモリ33内のデータ(D7,D6・・D1,D0)とを1
ビットずつ交互に選択制御してシリアルデータ(CL,D7,C
L,D6・・CL,D1,CL,D0)を送信することができる。
With this configuration, when the transmission interface circuit 2 (2C, 2D) receives a transmission request from the partner device, or receives a transmission request from the central processing unit 5 in its own device, the data (D7 , D6... D1, D0), the transmitting unit 3 (3C, 3D) switches the connection means 13 to the transmitting side, and divides the internal clock clk to form a transmission clock.
Based on CL, the chip select signal forming circuit 31 transmits a chip select signal CS, transmits a clock pulse width (Pw) signal,
Subsequently, the control circuits 32C and 32D store the transmission clock CL and the data (D7, D6... D1, D0) in the transmission data buffer memory 33 by one.
Select and control the bits of the serial data (CL, D7, C
L, D6... CL, D1, CL, D0) can be transmitted.

【0055】また、この制御回路32(32C,32D) は、実施
例1の第1制御回路32A または実施例2の第2制御回路
32B を有し、チップ選択信号CSを送信後,送信クロック
CLで送信データバッフアメモリ33から送信データ33a(D
7,D6 ・・D1,D0)を1ビットずつ交互に選択する論値回
路に1送信クロックCL分の図示省略された遅延回路を備
えて構成することができる。
The control circuit 32 (32C, 32D) is a first control circuit 32A of the first embodiment or a second control circuit of the second embodiment.
After transmitting chip select signal CS, transmit clock
The transmission data 33a (D
7, D6... D1, D0) can be configured to include a delay circuit (not shown) for one transmission clock CL in a logical value circuit for alternately selecting one bit at a time.

【0056】かかる構成により、チップ選択信号CSとシ
リアルデータ(CL,D7,CL,D6・・CL,D1,CL,D0)との間に,
パルス幅測定用送信クロックPwを挿入することができ
る。また、上記の送信要求がない常時は、接続手段13を
受信側に切り換えて待機し、受信部4(4C,4D) は、伝送
路1に送信されてくるチップ選択信号CSの有無を監視す
る。この状態で、チップ選択信号検出回路41がチップ選
択信号CSを検出すると、パルス幅検出回路45はクロック
パルス幅Pwを測定し、タイミング形成回路43のタイミン
グ遅れ時間T1,T2 を設定する。続いて、クロック抽出手
段42(42A,42B) が後続するシリアルデータ(CL,D7,CL,D6
・・) からクロックタイミングc1,c2を抽出し、タイミ
ング形成回路43(43C,43D) が抽出されたクロックタイミ
ングc1,c2 から上記測定されたクロックパルス幅Pwの値
を実施例1、実施例2で述べたダウンカウンタに設定さ
れたタイミング遅れ時間T1,T2 で書き込みタイミングパ
ルスw1,w2 を出力し、このタイミングパルスw1,w2 で伝
送路1から受信したシリアルデータ(CL,D7,CL,D6・・)
の送信データ(D7,D6・・D1,D0)を1ビットずつ受信デー
タバッフアメモリ44に書き込むことができる。即ち、ク
ロックパルス幅検出回路45が検出したクロックパルス幅
Pwを 5/2倍あるいは2倍して,この値のクロック数をダ
ウンカウンタD-CNT にセットし、内部クロックclk でカ
ウントダウンして、カウント値ゼロでフラグF をたて、
このフラグF で受信データバッフアメモリ44にシリアル
データ(CL,D7,CL,D6・・) の送信データ(D7,D6・・D1,D
0)を1ビットずつ書き込むことができる。
With this configuration, a signal is provided between the chip select signal CS and the serial data (CL, D7, CL, D6... CL, D1, CL, D0).
The transmission clock Pw for pulse width measurement can be inserted. In addition, when there is no transmission request, the connection unit 13 is switched to the receiving side to stand by, and the receiving unit 4 (4C, 4D) monitors the presence or absence of the chip selection signal CS transmitted to the transmission path 1. . In this state, when the chip selection signal detection circuit 41 detects the chip selection signal CS, the pulse width detection circuit 45 measures the clock pulse width Pw and sets the timing delay times T1 and T2 of the timing forming circuit 43. Subsequently, the clock extracting means 42 (42A, 42B) outputs the subsequent serial data (CL, D7, CL, D6
···), the clock timings c1 and c2 are extracted, and the timing forming circuit 43 (43C, 43D) extracts the measured clock pulse width Pw from the extracted clock timings c1 and c2 in the first and second embodiments. The write timing pulses w1 and w2 are output at the timing delay times T1 and T2 set in the down counter described in the above section, and the serial data (CL, D7, CL, D6,.・)
The transmission data (D7, D6... D1, D0) can be written into the reception data buffer memory 44 bit by bit. That is, the clock pulse width detected by the clock pulse width detection circuit 45
Pw is multiplied by 5/2 or 2 times, the number of clocks of this value is set in the down counter D-CNT, the countdown is performed with the internal clock clk, the flag F is set with the count value of zero,
With this flag F, the transmit data (D7, D6,..., D1, D6) of the serial data (CL, D7, CL, D6,...) Is stored in the receive data buffer memory 44.
0) can be written bit by bit.

【0057】かかる構成により、受信側はチップ選択信
号CSを受信した後、続いて送信される送信クロック信号
CLのパルス幅信号Pwを測定し、この測定したパルス幅Pw
に予め実施例1、実施例2の伝送方法毎に定められた倍
率((5/2),2) を掛けることにより、抽出されたクロック
タイミングc1,c2 から書き込みタイミングw1,w2 までの
時間T1,T2 を知ることができる。従って、この測定時間
T1,T2 で書き込みタイミングw1,w2 の遅れ時間を制御す
ることにより、送信側の送信クロックCLを意識しなくて
もシリアルデータ伝送を行うことができる。 (実施例4)図11に伝送データの構成例を図示例する。
図11の(A) は本発明による伝送データの構成であり、チ
ップ選択信号CSと、シリアルデータ部から構成される。
このシリアルデータ部の送信データの一部に、例えば、
リードライト指令(R/W) を割りつけると、例えば、図
7、図8の機器の中央処理装置(CPU) 5がこのリードラ
イト指令(R/W) を判読し、伝送インタフェース回路2は
中央処理装置(CPU) 5からこのリードライト指令(R/W)
を受けて接続手段13を切り替え接続することができる。
従って、従来技術における様に2線式〜4線式の構成で
なく、1線式でシリアルデータ伝送を行うことができ
る。
With this configuration, after receiving the chip select signal CS, the receiving side transmits the transmission clock signal transmitted subsequently.
CL pulse width signal Pw is measured, and the measured pulse width Pw
Is multiplied by a multiplication factor ((5/2), 2) determined in advance for each of the transmission methods of the first and second embodiments, thereby obtaining a time T1 from the extracted clock timings c1 and c2 to the write timings w1 and w2. , T2. Therefore, this measurement time
By controlling the delay time between the write timings w1 and w2 by T1 and T2, serial data transmission can be performed without being conscious of the transmission clock CL on the transmission side. (Embodiment 4) FIG. 11 shows an example of the configuration of transmission data.
FIG. 11A shows the configuration of transmission data according to the present invention, which is composed of a chip selection signal CS and a serial data section.
For example, in part of the transmission data of the serial data portion,
When the read / write command (R / W) is assigned, for example, the central processing unit (CPU) 5 of the apparatus shown in FIGS. 7 and 8 reads this read / write command (R / W), and the transmission interface circuit 2 This read / write command (R / W) from the processing unit (CPU) 5
In response, the connection means 13 can be switched and connected.
Therefore, serial data transmission can be performed in a one-wire system, instead of a two-wire to four-wire system as in the related art.

【0058】また、チップ選択信号CSとシリアルデータ
部とからなる伝送データの内、シリアルデータ部を分割
して制御データ部と、データ本体と、必要に応じて誤り
検出・訂正手段を有する検査データ部と、に構成するこ
とができる。かかる構成により、ヘッダー部として、起
動・同期化信号としてのチップ選択信号CSと、アドレス
データや各種制御情報を有する制御データ部、から構成
することにより、データバス構成などの一般のデータ伝
送に利用することができる。この伝送方法では、送信デ
ータの前に1ビットクロック信号が挿入され、この信号
で同期化のタイミングをとる構成をしているので、伝送
速度は遅くなるが、クロック同期化の信頼性の高いデー
タ伝送を構成することができる。 (実施例5)また、図9、図10において、本発明による
一実施例の受信部4Eは、伝送路1から受信する伝送信号
1bが予め定められた時間Hレベルを継続するチップ選択
信号CSを検出するチップ選択信号検出回路41と、このチ
ップ選択信号CSを検出したとき、次の送信クロックCLの
クロックパルス幅Pwを測定するメモリカウンタG16 と、
このメモリカウンタG16 のカウント計数値をセットし,
このセット値を1ビットシフトして1/2 の演算を行うシ
フトレジスタG17 と、内部クロックclk をアップカウン
トするリセット機能付きパルス幅(Pw)カウンタG18 と、
シフトレジスタG17 でメモリカウンタG16 の値を1/2 演
算した値と,PW カウンタG18 のカウント値と, を比較す
るコンパレータG19 と、このコンパレータG19 の出力で
PwカウンタG18 のカウント値をリセットし, 他方このコ
ンパレータG19 出力を5進カウントするカウンタG21
と、を備えてクロックタイミングc1から 5/2クロック幅
((5/2)Pw) だけ遅延した書き込みタイミングパルスw1を
発生し、この書き込みタイミングパルスw1でシリアルデ
ータ(CL,D7,CL,D6・・・CL,D1,CL,D0)からの送信データ
DA(D7,D6・・D1,D0)を順次書き込むシフトレジスタG22
と、を備えて構成することができる。
Also, of the transmission data consisting of the chip selection signal CS and the serial data part, the serial data part is divided into test data having a control data part, a data body and, if necessary, an error detection / correction means. And a part. With such a configuration, the header portion is composed of a chip selection signal CS as a start-up / synchronization signal, and a control data portion having address data and various control information, and is used for general data transmission such as a data bus configuration. can do. In this transmission method, a 1-bit clock signal is inserted before the transmission data, and the synchronization timing is set by this signal. Therefore, the transmission speed is reduced, but the data with high reliability of the clock synchronization is obtained. The transmission can be configured. (Embodiment 5) In FIGS. 9 and 10, a receiving unit 4E according to an embodiment of the present invention
A chip selection signal detection circuit 41 for detecting a chip selection signal CS in which 1b continues the H level for a predetermined time, and when detecting the chip selection signal CS, measures a clock pulse width Pw of the next transmission clock CL. A memory counter G16,
Set the count value of this memory counter G16,
A shift register G17 for shifting the set value by 1 bit to perform a halving operation, a pulse width (Pw) counter G18 with a reset function for up-counting the internal clock clk,
The comparator G19 compares the value obtained by calculating the value of the memory counter G16 by the shift register G17 by one-half and the count value of the PW counter G18, and the output of the comparator G19.
The counter G21 resets the count value of the Pw counter G18, and the counter G21 counts the output of this comparator G19 in quinary.
And with clock timing c1 to 5/2 clock width
Generates a write timing pulse w1 delayed by ((5/2) Pw), and this write timing pulse w1 transmits data from serial data (CL, D7, CL, D6 ... CL, D1, CL, D0).
Shift register G22 for sequentially writing DA (D7, D6 ... D1, D0)
And can be configured.

【0059】このシフトレジスタG22 に書き込まれた送
信データ(D7,D6・・D1,D0)はデータ長が長いときは、順
次、一時バッファメモリであるシフトレジスタG23,G24,
G25・・に転送し、さらに中央処理装置5に並列データ
転送することができる。また、チップ選択信号検出回路
41は、内部クロック回路21からの内部クロックclk でカ
ウント動作し,送信クロック信号CLより長い期間継続す
るHレベルを監視するカウンタG3と、NOT 素子G1とOR素
子G2およびOR素子G6とからなり伝送路1から伝送信号1b
を受け、伝送信号1bのLレベル信号でカウンタG3などの
カウント値をリセットするリセット回路(47)と、長い期
間継続するHレベルで内部クロックclk でカウント動作
し,カウンタG3の予め定められたカウント値でフラグF
を出力し, このフラグF を受け1内部クロックclk で前
記リセット回路(47)にリセット信号reset を出力してカ
ウンタG3をリセットする差分動作素子G4と、を備えて構
成される。
When the transmission data (D7, D6... D1, D0) written in the shift register G22 has a long data length, the shift registers G23, G24,
G25... And further to the central processing unit 5 for parallel data transfer. Also, a chip selection signal detection circuit
Reference numeral 41 denotes a counter G3 that counts with the internal clock clk from the internal clock circuit 21 and monitors an H level that continues for a longer period than the transmission clock signal CL, and includes a NOT element G1, an OR element G2, and an OR element G6. Transmission signal 1b from path 1
The reset circuit (47) resets the count value of the counter G3 and the like with the L level signal of the transmission signal 1b, and counts with the internal clock clk at the H level that continues for a long period of time. Flag F by value
And a differential operation element G4 that receives the flag F, outputs a reset signal reset to the reset circuit (47) with one internal clock clk, and resets the counter G3.

【0060】かかる構成により、カウンタG3は、伝送路
1から長い期間継続するHレベルを受信している間、内
部クロックclk でカウントアップ動作し、予め定められ
たカウント値に到達するとフラグF をたて、差分動作素
子G4が1内部クロックclk 分のチップ選択信号(CS)4cを
出力する。この出力4cはOR素子G6に帰還されてリセット
信号reset を形成してカウンタG3をリセットする。以
降、伝送信号として再び送信クロック信号CLより長い期
間継続するHレベル信号を受信するまで、カウンタG3の
フラグF が出力されることはない。
With this configuration, the counter G3 counts up with the internal clock clk while receiving the H level that continues for a long time from the transmission line 1, and sets the flag F when the counter G3 reaches a predetermined count value. Then, the differential operation element G4 outputs a chip selection signal (CS) 4c for one internal clock clk. This output 4c is fed back to the OR element G6 to form a reset signal reset and reset the counter G3. Thereafter, the flag F of the counter G3 is not output until an H-level signal that continues for a longer period than the transmission clock signal CL is received again as a transmission signal.

【0061】他方、差分動作素子G4の出力4cは、RSフリ
ップフロップG5をセットし、RSフリップフロップG5は、
このセット信号4cと, カウンタG7および差分動作素子G4
とからなる2クロック期間遅延したリセットパルス4b
と、でパルス出力4aを形成する。このパルス出力4aは A
ND素子G9で受信信号1bと論理積をとり、図10に図示され
る送信クロック幅(Pw)のパルス4dを形成する。このパル
ス4dは、一方では, フリップフロップG12 と AND素子G1
3 、およびフリップフロップG14 と AND素子G15の回路
でパルス4dの出力が Lレベルになった直後に連続して出
力される1内部クロックclk 幅のパルス4e,4f を形成す
る。他方、パルス4dは AND素子G11 で内部クロックclk
の論理積をとり、メモリカウンタG16 に入力され、送信
クロック幅Pwの期間をカウントアップして送信クロック
幅Pwを計数する。この計数値はシフトレジスタ(SR)G17
にセットされ、上記パルス4e,4f で1ビットシフトする
ことにより、メモリカウンタG16 の計数値の半分((1/2)
Pw) をシフトレジスタ(SR)G17 にセットして、次のチッ
プ選択信号CS、即ち、送信クロック信号CLより長い期間
継続するHレベル受信するまで、Pw送信クロックの半分
((1/2)Pw) の計数値をシフトレジスタ(SR)G17 で保持す
ることができる。
On the other hand, the output 4c of the differential operation element G4 sets the RS flip-flop G5,
The set signal 4c, the counter G7 and the differential operation element G4
Reset pulse 4b delayed by two clock periods
With this, a pulse output 4a is formed. This pulse output 4a is A
The ND element G9 ANDs the received signal 1b and forms a pulse 4d having a transmission clock width (Pw) shown in FIG. This pulse 4d is, on the one hand, a flip-flop G12 and an AND element G1
3, and the circuit of flip-flop G14 and AND element G15 forms pulses 4e, 4f of one internal clock clk width which are continuously output immediately after the output of pulse 4d goes to L level. On the other hand, the pulse 4d is applied to the internal clock clk by the AND element G11.
Is input to the memory counter G16, and the transmission clock width Pw is counted by counting up the period of the transmission clock width Pw. This count value is stored in the shift register (SR) G17
Is shifted by one bit with the above-mentioned pulses 4e and 4f, so that half of the count value of the memory counter G16 ((1/2)
Pw) is set in the shift register (SR) G17, and a half of the Pw transmission clock is received until the next chip selection signal CS, that is, an H level that is longer than the transmission clock signal CL is received.
The count value of ((1/2) Pw) can be held in the shift register (SR) G17.

【0062】このシフトレジスタG17 に保持される計数
値((1/2)Pw) は、内部クロックclkでカウントアップさ
れるPwカウンタG18 で計数された計数値と比較器G19 で
比較され、比較器G19 はリセット信号reset から(1/2)P
w 期間毎にパルス4gを出力して5進カウンタG21 でカウ
ント・遅延して、T1=(5/2)Pwの遅延時間を形成すること
ができる。即ち、クロックタイミング抽出手段で抽出し
たタイミングc1でリセット信号reset を出力し、T1=(5/
2)Pwの遅延時間経過した時刻でストローブ信号STB を出
力し、シリアルデータのH,L レベルをシフトレジスタG2
2 に書き込むことにより、送信データ(D7,D6・・D1,D0)
の復元を行うことができる。
The count value ((1/2) Pw) held in the shift register G17 is compared with the count value counted by the Pw counter G18 counted up by the internal clock clk by the comparator G19. G19 is (1/2) P from reset signal reset
A pulse 4g is output every w period and counted and delayed by the quinary counter G21 to form a delay time of T1 = (5/2) Pw. That is, the reset signal reset is output at the timing c1 extracted by the clock timing extracting means, and T1 = (5 /
2) At the time when the delay time of Pw has elapsed, the strobe signal STB is output, and the H and L levels of the serial data are
2 to transmit data (D7, D6 ... D1, D0)
Can be restored.

【0063】上述の動作波形が図10に図示されている。
図10において、横軸に左から右に時間軸が流れる。縦軸
に上から順に、伝送路1に送信される伝送信号1a(=1b),
セット信号4c, リセットパルス4b, G5パルス出力4a, な
どのチップ選択信号(CS)から各回路部分の動作タイミン
グ波形を図示する。また、図10の(B) は、波形4fの期間
(CL,D7) 部分をズームアップしたものであり、上から順
に、受信データ1bの期間(CL,D7) を、次に内部クロック
clk を、次に5進カウンタG21 の入力波形4gおよび5進
カウンタG21 の出力波形STB を図示し、このSTB 信号で
もって受信データ1bのデータD7がシフトレジスタG22 に
書き込むことができる。
The above operation waveform is shown in FIG.
In FIG. 10, the time axis flows from left to right on the horizontal axis. The transmission signal 1a (= 1b), which is transmitted to the transmission path 1 in order from the top on the vertical axis,
The operation timing waveforms of the respective circuit portions are illustrated from the chip selection signals (CS) such as the set signal 4c, the reset pulse 4b, and the G5 pulse output 4a. FIG. 10 (B) shows the period of waveform 4f.
The (CL, D7) part is zoomed up, and the period (CL, D7) of the received data 1b is sequentially
clk, and then the input waveform 4g of the quinary counter G21 and the output waveform STB of the quinary counter G21 are illustrated. With this STB signal, the data D7 of the received data 1b can be written to the shift register G22.

【0064】実施例1〜4において、クロックタイミン
グ抽出手段として、伝送路1を介して受信した伝送信号
1a(=1b) 中の送信クロックの予め定められた立ち上がり
あるいは立ち下がり位置を検出する方法は、説明の簡便
化のために立ち上がりあるいは立ち下がり位置のエッジ
で説明したが、エッジノイズによる誤動作防止の観点か
ら、実用上は、RSフリップフロップ(RS-FF) を用いて内
部クロックclk でデータをRS-FF 内に書き込むことがで
きる。
In the first to fourth embodiments, the transmission signal received via the transmission line 1 is used as the clock timing extracting means.
The method of detecting the predetermined rising or falling position of the transmission clock during 1a (= 1b) has been described using the rising or falling edge for the sake of simplicity. From a viewpoint, practically, data can be written into the RS-FF by the internal clock clk using the RS flip-flop (RS-FF).

【0065】本発明の伝送方法では、送信データの前に
1ビットクロック信号が挿入され、この信号で同期化の
タイミングをとる構成をしているので、伝送速度は遅く
なるが、クロック同期化の信頼性の高いデータ伝送を構
成することができる。また、実施形態3で述べたシリア
ルデータ伝送方法、実施例3で述べた伝送インタフェー
ス回路を利用することにより、送信データの送信クロッ
クの周期を適宜変更することにより、伝送路1からの第
三者による盗聴防止などを行わせることもできる。
In the transmission method of the present invention, a 1-bit clock signal is inserted before transmission data, and the synchronization timing is set by this signal. Therefore, the transmission speed is reduced, but the clock synchronization is not performed. Highly reliable data transmission can be configured. Further, by using the serial data transmission method described in the third embodiment and the transmission interface circuit described in the third embodiment, the period of the transmission clock of the transmission data can be appropriately changed, so that the third party from the transmission line 1 can be used. To prevent wiretapping.

【0066】[0066]

【発明の効果】以上述べたように本発明によれば、1線
式のシリアルデータ伝送方法およびその方法を用いた伝
送インタフェース回路において、ノイズマージンを低下
させることなくデータ伝送ができ、ICパッケージのピン
数を削減することができる。
As described above, according to the present invention, in a one-wire serial data transmission method and a transmission interface circuit using the method, data transmission can be performed without lowering the noise margin, and The number of pins can be reduced.

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

【図1】本発明による第1実施例のシリアルデータ伝送
方法を説明する伝送波形図
FIG. 1 is a transmission waveform diagram illustrating a serial data transmission method according to a first embodiment of the present invention.

【図2】第2実施例のシリアルデータ伝送方法を説明す
る伝送波形図
FIG. 2 is a transmission waveform diagram illustrating a serial data transmission method according to a second embodiment.

【図3】第1実施例でパルス幅測定信号を有する伝送波
形図
FIG. 3 is a transmission waveform diagram having a pulse width measurement signal in the first embodiment.

【図4】第2実施例でパルス幅測定信号を有する伝送波
形図
FIG. 4 is a transmission waveform diagram having a pulse width measurement signal in the second embodiment.

【図5】受信部で第1実施例のシリアルデータから送信
データを復元するタイミング動作図
FIG. 5 is a timing operation diagram for restoring transmission data from serial data of the first embodiment in a receiving unit.

【図6】受信部で第2実施例のシリアルデータから送信
データを復元するタイミング動作図
FIG. 6 is a timing operation diagram for restoring transmission data from serial data of the second embodiment in a receiving unit.

【図7】第1・第2実施例の伝送インタフェース回路の
ブロック線図
FIG. 7 is a block diagram of a transmission interface circuit according to the first and second embodiments.

【図8】送信クロックのパルス幅検出回路を有する第1
・第2実施例の伝送インタフェース回路のブロック線図
FIG. 8 shows a first example having a pulse width detection circuit of a transmission clock.
-Block diagram of the transmission interface circuit of the second embodiment

【図9】他の実施例による伝送インタフェース回路のブ
ロック線図
FIG. 9 is a block diagram of a transmission interface circuit according to another embodiment.

【図10】他の実施例の動作を説明する動作波形図FIG. 10 is an operation waveform diagram illustrating an operation of another embodiment.

【図11】本発明による伝送路上に送信される伝送信号の
構成を説明する構成図
FIG. 11 is a configuration diagram illustrating a configuration of a transmission signal transmitted on a transmission path according to the present invention.

【図12】従来技術による4線式シリアルデータ伝送方法
の説明図
FIG. 12 is an explanatory diagram of a conventional 4-wire serial data transmission method.

【図13】従来技術による時分割データ通信方式の波形図FIG. 13 is a waveform diagram of a conventional time-division data communication system.

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

1 伝送路 1a,1b,1c 伝送信号 13 接続手段 2、2A,2B,2C 伝送インタフェース回路 21 内部クロック回路 22 分周回路 3、3A,3B,3C 送信部 31 チップ選択信号形成回路 32A,32B,32C,32D 制御回路 33 送信データバッフアメモリ 4、4A,4B,4C 受信部 41 チップ選択信号検出回路 42 クロックタイミング抽出手段 43 タイミング形成回路 44 受信データバッフアメモリ 45 パルス幅検出回路 5 中央処理装置 CL 送信クロック clk 内部クロック DA,D7,D6・・D1,D0 送信データ Pw 送信クロックパルス幅 c1,c2 送信クロックタイミング w1,w2,STB 書き込みタイミング T1,T2 遅延時間 G1,G2,G6,G9,G11,G13,G15,G20 論理素子 G3,G7,G16,G18,G21 カウンタ G4,G8 差分動作素子 G5,G12,G14 フリップフロップ G17,G22 シフトレジスタ G19 比較器 4a,4b,4c,4d,4e,4f,4g 信号 DESCRIPTION OF SYMBOLS 1 Transmission line 1a, 1b, 1c Transmission signal 13 Connection means 2, 2A, 2B, 2C Transmission interface circuit 21 Internal clock circuit 22 Divider circuit 3, 3A, 3B, 3C Transmitter 31 Chip selection signal forming circuit 32A, 32B, 32C, 32D control circuit 33 Transmission data buffer memory 4, 4A, 4B, 4C receiver 41 Chip selection signal detection circuit 42 Clock timing extraction means 43 Timing formation circuit 44 Received data buffer memory 45 Pulse width detection circuit 5 Central processing unit CL transmission clock clk internal clock DA, D7, D6 ... D1, D0 transmission data Pw transmission clock pulse width c1, c2 transmission clock timing w1, w2, STB write timing T1, T2 delay time G1, G2, G6, G9, G11 , G13, G15, G20 Logic element G3, G7, G16, G18, G21 Counter G4, G8 Differential operation element G5, G12, G14 Flip-flop G17, G22 Shift register G19 Comparator 4a, 4b, 4c, 4d, 4e, 4f , 4g signal

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】送信側でデータにクロック信号を混ぜて伝
送し、受信側でクロックタイミングを抽出して、直列的
に受け取った伝送信号から送信側のデータビット列を再
構成するシリアルデータ伝送方法であって、 送信側は、データを伝送路に送信するとき、クロック信
号よりも長い期間継続するHレベルを出力した後Lレベ
ルを出力するチップ選択信号(CS)と、このチップ選択信
号の後,リターンゼロ(RZ)型の1クロック信号と,送信
データの内,先頭ビットから順に最終ビットまでの1ビ
ットずつのリターンゼロ(RZ)型のデータと,を交互に選
択・変換してなるシリアルデータと、を送信し、 受信側は、伝送路に送信される伝送信号からチップ選択
信号(CS)を受信したとき、後続するシリアルデータから
クロックタイミングを抽出し、この抽出されたクロック
タイミングから予め定められた時間遅れの書き込みタイ
ミングでシリアルデータの送信データを1ビットずつバ
ッフアメモリに書き込む、 ことを特徴とするシリアルデータ伝送方法。
1. A serial data transmission method in which a transmission side mixes a data with a clock signal and transmits the data, a reception side extracts a clock timing, and reconstructs a transmission side data bit string from a serially received transmission signal. When transmitting data to the transmission path, the transmitting side outputs a chip selection signal (CS) that outputs an H level that lasts longer than the clock signal and then outputs an L level, and after this chip selection signal, Serial data obtained by alternately selecting and converting one return zero (RZ) type clock signal and one return bit (RZ) type data from the first bit to the last bit of the transmission data. When the receiving side receives the chip select signal (CS) from the transmission signal transmitted on the transmission path, it extracts the clock timing from the subsequent serial data, and The transmitted data is written in the serial data bit by bit buffer memory at write timing a predetermined time delay from the clock timing, the serial data transmission method characterized by.
【請求項2】送信側でデータにクロック信号を混ぜて伝
送し、受信側でクロックタイミングを抽出して、直列的
に受け取った伝送信号から送信側のデータビット列を再
構成するシリアルデータ伝送方法であって、 送信側は、データを伝送路に送信するとき、クロック信
号よりも長い期間継続するHレベルを出力した後Lレベ
ルを出力するチップ選択信号(CS)と、このチップ選択信
号の後,リターンゼロ(RZ)型の1クロック信号と,送信
データの内,先頭ビットから順に最終ビットまでの1ビ
ットずつのノンリターンゼロ(NRZ) 型のデータと,を交
互に選択してなるシリアルデータと、を送信し、 受信側は、伝送路に送信される送信信号からチップ選択
信号(CS)を受信したとき、後続するシリアルデータから
クロックタイミングを抽出し、この抽出されたクロック
タイミングから予め定められた時間遅れの書き込みタイ
ミングでシリアルデータの送信データを1ビットずつバ
ッフアメモリに書き込む、 ことを特徴とするシリアルデータ伝送方法。
2. A serial data transmission method in which a clock signal is mixed with data on a transmission side and transmitted, a clock timing is extracted on a reception side, and a data bit string on the transmission side is reconstructed from transmission signals received serially. When transmitting data to the transmission path, the transmitting side outputs a chip selection signal (CS) that outputs an H level that lasts longer than the clock signal and then outputs an L level, and after this chip selection signal, Serial data obtained by alternately selecting one return zero (RZ) type clock signal and non-return zero (NRZ) type data of transmission data, one bit at a time from the first bit to the last bit. When the receiving side receives the chip select signal (CS) from the transmission signal transmitted on the transmission path, it extracts the clock timing from the subsequent serial data, and The transmitted data is written in the serial data bit by bit buffer memory at write timing a predetermined time delay from the clock timing, the serial data transmission method characterized by.
【請求項3】請求項1または請求項2に記載のシリアル
データ伝送方法であって、送信データは、チップ選択信
号(CS)とシリアルデータとの間にクロックパルス幅を測
定するパルス幅信号を有する、 ことを特徴とするシリアルデータ伝送方法。
3. The serial data transmission method according to claim 1, wherein the transmission data includes a pulse width signal for measuring a clock pulse width between the chip selection signal (CS) and the serial data. A serial data transmission method, comprising:
【請求項4】請求項1または請求項2に記載のシリアル
データ伝送方法を用いた伝送インタフェース回路におい
て、 内部クロック回路と、この内部クロックを分周して送信
クロックを形成する分周回路と、この送信クロックによ
って制御され伝送路に伝送信号を出力する送信部と、伝
送路から送信されてくる伝送信号を内部クロックによっ
て受信し,送信側の送信データを復元してバッフアメモ
リに書き込む受信部と、送信部および受信部とを伝送路
に接続する接続手段と、を備え、 送信部は、送信データバッフアメモリと、チップ選択信
号形成回路と、このチップ選択信号を送信後、前記送信
クロックとバッフアメモリ内の送信データとを1ビット
ずつ交互に選択出力する制御回路と、を備え、 受信部は、伝送路から受信する伝送信号が予め定められ
た時間Hレベルを継続するチップ選択信号を検出するチ
ップ選択信号検出回路と、このチップ選択信号を検出し
たとき、後続するシリアルデータからクロックタイミン
グを抽出するクロック抽出手段と、このクロック抽出手
段の出力に対応して予め定められたタイミング遅れで書
き込みタイミングパルスを出力するタイミング形成回路
と、このタイミング形成回路のタイミングパルスで受信
したシリアルデータの送信データを1ビットずつ書き込
む受信データバッフアメモリと、を備える、 ことを特徴とする伝送インタフェース回路。
4. A transmission interface circuit using the serial data transmission method according to claim 1 or 2, wherein: an internal clock circuit; a frequency dividing circuit for dividing the internal clock to form a transmission clock; A transmission unit controlled by the transmission clock to output a transmission signal to a transmission line, a reception unit receiving the transmission signal transmitted from the transmission line by an internal clock, restoring transmission data on the transmission side, and writing the data into a buffer memory; Connection means for connecting a transmission unit and a reception unit to a transmission line, the transmission unit comprising: a transmission data buffer memory; a chip selection signal forming circuit; and, after transmitting the chip selection signal, the transmission clock and the buffer memory. And a control circuit for alternately selecting and outputting the transmission data in the data bit by bit. A chip selection signal detection circuit for detecting a chip selection signal that keeps the H level for a predetermined time, a clock extraction means for extracting a clock timing from the subsequent serial data when the chip selection signal is detected, A timing forming circuit for outputting a write timing pulse with a predetermined timing delay corresponding to the output of the means, and a reception data buffer memory for writing transmission data of serial data received by the timing pulse of the timing formation circuit one bit at a time And a transmission interface circuit.
【請求項5】請求項1または請求項2および請求項3に
記載のシリアルデータ伝送方法を用いた伝送インタフェ
ース回路において、 内部クロック回路と、この内部クロックを分周して送信
クロックを形成する分周回路と、この送信クロックによ
って制御され伝送路に伝送信号を出力する送信部と、伝
送路から送信されてくる伝送信号を内部クロックによっ
て受信し,送信側の送信データを復元してバッフアメモ
リに書き込む受信部と、送信部および受信部とを伝送路
に接続する接続手段と、を備え、 送信部は、送信データバッフアメモリと、チップ選択信
号形成回路と、このチップ選択信号を送信後、クロック
パルス幅測定信号を出力し,続いて,前記送信クロック
とバッフアメモリ内の送信データとを1ビットずつ交互
に選択出力する制御回路と、を備え、 受信部は、伝送路から受信する伝送信号が予め定められ
た時間Hレベルを継続するチップ選択信号を検出するチ
ップ選択信号検出回路と、このチップ選択信号を検出し
たとき、クロックパルス幅を測定するパルス幅検出回路
と、後続するシリアルデータからクロックタイミングを
抽出するクロックタイミング抽出手段と、このクロック
タイミング抽出手段の出力に対応して予め定められたタ
イミング遅れて書き込みタイミングパルスを出力するタ
イミング形成回路と、このタイミング形成回路のタイミ
ングパルスで受信したシリアルデータの送信データを1
ビットずつ書き込む受信データバッフアメモリと、を備
える、 ことを特徴とする伝送インタフェース回路。
5. A transmission interface circuit using the serial data transmission method according to claim 1 or 2, wherein an internal clock circuit and a component for dividing the internal clock to form a transmission clock. A transmission circuit which is controlled by the transmission clock and outputs a transmission signal to a transmission path, receives the transmission signal transmitted from the transmission path by an internal clock, restores transmission data on the transmission side, and writes the data in a buffer memory A receiving unit, and a connecting unit for connecting the transmitting unit and the receiving unit to a transmission line, the transmitting unit comprising: a transmission data buffer memory; a chip selection signal forming circuit; and a clock after transmitting the chip selection signal. A pulse width measurement signal is output, and the transmission clock and the transmission data in the buffer memory are alternately selected and output one bit at a time. And a receiving unit, wherein the receiving unit detects a chip selection signal detection circuit for detecting a chip selection signal in which a transmission signal received from the transmission path keeps the H level for a predetermined time, and when detecting the chip selection signal, A pulse width detection circuit for measuring a clock pulse width; clock timing extraction means for extracting clock timing from subsequent serial data; and a write timing pulse delayed by a predetermined timing corresponding to the output of the clock timing extraction means. A timing forming circuit to be output, and transmitting data of serial data received by a timing pulse of the timing forming circuit to 1
A transmission interface circuit, comprising: a reception data buffer memory for writing bit by bit.
【請求項6】請求項4または請求項5に記載の伝送イン
タフェース回路において、制御回路は、内部クロックを
分周して形成される送信クロックで送信データバッフア
メモリ内のデータを1ビットずつ選択し,送信クロック
と論理積をとり,この論理積出力と前記送信クロックと
を交互に選択・出力する第1制御回路を備える、ことを
特徴とする伝送インタフェース回路。
6. The transmission interface circuit according to claim 4, wherein the control circuit selects data in the transmission data buffer memory one bit at a time by a transmission clock formed by dividing an internal clock. And a first control circuit that takes a logical product with the transmission clock and alternately selects and outputs the logical product output and the transmission clock.
【請求項7】請求項4または請求項5に記載の伝送イン
タフェース回路において、制御回路は、内部クロックを
分周して形成される送信クロックと,この送信クロック
で送信データバッフアメモリ内のデータと,を順次1ビ
ットずつ交互に選択・出力するセレクタ回路(第2制御
回路)を備える、 ことを特徴とする伝送インタフェース回路。
7. The transmission interface circuit according to claim 4, wherein the control circuit comprises: a transmission clock formed by dividing an internal clock; and a data in a transmission data buffer memory using the transmission clock. And a selector circuit (second control circuit) for alternately selecting and outputting one bit at a time.
【請求項8】請求項5に記載の伝送インタフェース回路
において、 制御回路は、第1制御回路または第2制御回路を有し、
チップ選択信号を送信後,先頭の送信クロックのみ2送
信クロック送信し,続いて,送信データバッフアメモリ
から送信データを1ビットずつ交互に選択する論値回路
を備える、 ことを特徴とする伝送インタフェース回路。
8. The transmission interface circuit according to claim 5, wherein the control circuit has a first control circuit or a second control circuit,
A transmission interface, comprising: a logical value circuit that transmits two chip clocks of only the first transmission clock after transmitting the chip selection signal, and then alternately selects transmission data bit by bit from a transmission data buffer memory. circuit.
【請求項9】請求項4または請求項5に記載の伝送イン
タフェース回路において、シリアルデータからクロック
タイミングを抽出するクロック抽出手段は、伝送信号の
送信データがリターンゼロ(RZ)型のデータで構成されて
いるとき、シリアルデータのクロックの立ち上がりタイ
ミングでクロックを抽出し、タイミング形成回路の予め
定められた書き込みタイミングパルスは、この抽出され
たクロックの立ち上がりタイミングに対して 5/2送信ク
ロックパルス幅遅延して出力する、ことを特徴とする伝
送インタフェース回路。
9. The transmission interface circuit according to claim 4, wherein the clock extracting means for extracting clock timing from the serial data is configured such that transmission data of a transmission signal is return zero (RZ) type data. Clock, the clock is extracted at the rising timing of the serial data clock, and the predetermined write timing pulse of the timing forming circuit is delayed by 5/2 transmission clock pulse width with respect to the extracted clock rising timing. A transmission interface circuit for outputting the data.
【請求項10】請求項4または請求項5に記載の伝送イ
ンタフェース回路において、シリアルデータからクロッ
クタイミングを抽出するクロック抽出手段は、伝送信号
の送信データがノンリターンゼロ (NRZ)型のデータで構
成されているとき、シリアルデータのクロック中央部の
クロック立ち上がりあるいはクロック立ち下がりのタイ
ミングでクロックを抽出し、タイミング形成回路の予め
定められた書き込みタイミングパルスは、この抽出され
たクロック中央部の変化するタイミングに対して2送信
クロックパルス幅遅延して出力する、 ことを特徴とする伝送インタフェース回路。
10. The transmission interface circuit according to claim 4, wherein the clock extracting means for extracting clock timing from the serial data is configured such that transmission data of a transmission signal is non-return-to-zero (NRZ) type data. The clock is extracted at the rising or falling timing of the clock in the central part of the serial data clock, and the predetermined write timing pulse of the timing forming circuit is used to change the extracted timing of the central part of the clock. 2. The transmission interface circuit according to claim 1, wherein the output is delayed by two transmission clock pulse widths.
【請求項11】請求項9または請求項10に記載の伝送
インタフェース回路において、クロック抽出手段および
タイミング形成回路は、予め定められた 5/2送信クロッ
クパルス幅あるいは2送信クロックパルス幅に相当する
内部クロック数のダウンカウンタを備え、クロック抽出
手段が抽出するクロックタイミングでこのダウンカウン
タに前記内部クロック数をセットし、内部クロックでカ
ウントダウンして、カウント値ゼロでフラグをたて、こ
のフラグで受信データバッフアメモリにシリアルデータ
の送信データを1ビットずつ書き込む、 ことを特徴とする伝送インタフェース回路。
11. The transmission interface circuit according to claim 9, wherein the clock extracting means and the timing forming circuit have an internal circuit corresponding to a predetermined 5/2 transmission clock pulse width or 2 transmission clock pulse widths. A down counter for the number of clocks is provided. At the clock timing extracted by the clock extracting means, the number of the internal clocks is set in the down counter, the internal clock counts down, a flag is set at a count value of zero, and the reception data is set at the flag. A transmission interface circuit which writes transmission data of serial data to a buffer memory one bit at a time.
【請求項12】請求項5および請求項11に記載の伝送
インタフェース回路において、クロックパルス幅検出回
路が検出したクロックパルス幅を 5/2倍あるいは2倍し
て,この値のクロック数をダウンカウンタにセットし、
内部クロックでカウントダウンして、カウント値ゼロで
フラグをたて、このフラグで受信データバッフアメモリ
にシリアルデータの送信データを1ビットずつ書き込
む、 ことを特徴とする伝送インタフェース回路。
12. The transmission interface circuit according to claim 5, wherein the clock pulse width detected by the clock pulse width detection circuit is multiplied by 5/2 or 2 and the number of clocks of this value is down-counted. Set to
A transmission interface circuit which counts down by an internal clock, sets a flag with a count value of zero, and writes serial data transmission data one bit at a time in a reception data buffer memory using the flag.
【請求項13】請求項5に記載の伝送インタフェース回
路において、 受信部は、伝送路から受信する伝送信号が予め定められ
た時間Hレベルを継続するチップ選択信号を検出するチ
ップ選択信号検出回路と、このチップ選択信号を検出し
たとき、次の送信クロックのクロックパルス幅を測定す
るメモリカウンタと、このメモリカウンタの計数値をセ
ットし,このセット値を1ビットシフトして1/2 の演算
を行うシフトレジスタと、内部クロックをアップカウン
トするリセット機能付きパルス幅(Pw)カウンタと、前記
シフトレジスタの1/2 演算されたメモリカウンタの計数
値とパルス幅(Pw)カウンタのカウント値とを比較するコ
ンパレータと、このコンパレータ出力でアップカウンタ
のカウント値をリセットし, 他方このコンパレータ出力
を5進カウントするカウンタと、を備えてクロックタイ
ミングから 5/2クロック幅遅延した書き込みタイミング
パルスを発生し、この書き込みタイミングパルスでシリ
アルデータの送信データを順次書き込むシフトレジスタ
と、を備える、 ことを特徴とする伝送インタフェース回路。
13. The transmission interface circuit according to claim 5, wherein the receiving section detects a chip selection signal in which a transmission signal received from the transmission path keeps the H level for a predetermined time. When this chip selection signal is detected, a memory counter for measuring the clock pulse width of the next transmission clock and the count value of this memory counter are set, and the set value is shifted by one bit to perform a 1/2 operation. A shift register, a pulse width (Pw) counter with a reset function for up-counting the internal clock, and comparing the count value of the memory counter calculated by half of the shift register with the count value of the pulse width (Pw) counter. And the output of this comparator reset the count value of the up-counter. And a shift register that generates a write timing pulse delayed by 5/2 clock width from the clock timing, and sequentially writes transmission data of serial data with the write timing pulse. Transmission interface circuit.
JP2001140255A 2001-05-10 2001-05-10 Serial data transmitting method and transmission interface circuit using the same Withdrawn JP2002335234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001140255A JP2002335234A (en) 2001-05-10 2001-05-10 Serial data transmitting method and transmission interface circuit using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001140255A JP2002335234A (en) 2001-05-10 2001-05-10 Serial data transmitting method and transmission interface circuit using the same

Publications (1)

Publication Number Publication Date
JP2002335234A true JP2002335234A (en) 2002-11-22

Family

ID=18986889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001140255A Withdrawn JP2002335234A (en) 2001-05-10 2001-05-10 Serial data transmitting method and transmission interface circuit using the same

Country Status (1)

Country Link
JP (1) JP2002335234A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100817031B1 (en) 2006-08-25 2008-03-26 주식회사 케이이씨 Single wire Serial Interface Module
US7864144B2 (en) 2006-03-24 2011-01-04 Rohm Co., Ltd. Light emission control device, display device, drive control device, and control device
US8085227B2 (en) 2007-01-19 2011-12-27 Rohm Co., Ltd. Control device, illumination device, and display device
JP2013211029A (en) * 2004-05-20 2013-10-10 Qualcomm Inc Single wire and three wire bus interoperability
CN107797920A (en) * 2016-09-02 2018-03-13 Arm 有限公司 Serial communication controlling
US10897342B2 (en) 2017-03-22 2021-01-19 Rohm Co., Ltd. Single-line serial data transmission circuit and single-line serial data transmission method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013211029A (en) * 2004-05-20 2013-10-10 Qualcomm Inc Single wire and three wire bus interoperability
US7864144B2 (en) 2006-03-24 2011-01-04 Rohm Co., Ltd. Light emission control device, display device, drive control device, and control device
KR100817031B1 (en) 2006-08-25 2008-03-26 주식회사 케이이씨 Single wire Serial Interface Module
US8085227B2 (en) 2007-01-19 2011-12-27 Rohm Co., Ltd. Control device, illumination device, and display device
CN107797920A (en) * 2016-09-02 2018-03-13 Arm 有限公司 Serial communication controlling
CN107797920B (en) * 2016-09-02 2023-02-28 Arm 有限公司 Serial communication control
US10897342B2 (en) 2017-03-22 2021-01-19 Rohm Co., Ltd. Single-line serial data transmission circuit and single-line serial data transmission method

Similar Documents

Publication Publication Date Title
US7650450B2 (en) Serial bus system
JP4071868B2 (en) Data transmission device
KR100688516B1 (en) Method for serial data communication using a single line and apparatus therefor
US6772251B1 (en) Bit interleaved data serial interface
US20060129722A1 (en) Low protocol, high speed serial transfer for intra-board or inter-board data communication
US8027421B2 (en) Serial digital data communication interface for transmitting data bits each having a width of multiple clock cycles
US8948209B2 (en) Transmission over an 12C bus
JP5365132B2 (en) Serial signal receiver, serial transmission system, serial transmission method, serial signal transmitter
JP2002335234A (en) Serial data transmitting method and transmission interface circuit using the same
CN101300773A (en) Data interface and method of seeking synchronization
JP2010087781A (en) Communication apparatus and clock-synchronous communication system
JP4364041B2 (en) Data transfer circuit
US7030655B2 (en) Memory interface system
JP2003158511A (en) Detection circuit for out of clock synchronism and optical receiver employing the same
JP3021855B2 (en) Serial data transfer device
US20230269118A1 (en) Single wire serial communication using pulse width modulation in a daisy chain architecture
JPH06350587A (en) Data transmitter
EP1188108B1 (en) Two clock domain pulse to pulse synchronizer
US7526017B2 (en) Transmitting device, receiving device, transmission system, and transmission method
US20240053459A1 (en) Modified uart interface and uart data transmission for real-time data transmission of echo data to a higher-level computer system
CN101228733A (en) Asynchronous data buffer
JP2698287B2 (en) Receiver circuit for asynchronous communication
CN117178517A (en) Communication device, communication system, and communication method
CN115766332A (en) Serial communication device, serial communication system, and serial communication method
JP2002190838A (en) Serial data transfer method and system

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060703

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060704

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080313

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20081216

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20090219

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20091112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101116

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20101214