JP2008186185A - Serial data transmission method and system therefor - Google Patents

Serial data transmission method and system therefor Download PDF

Info

Publication number
JP2008186185A
JP2008186185A JP2007018313A JP2007018313A JP2008186185A JP 2008186185 A JP2008186185 A JP 2008186185A JP 2007018313 A JP2007018313 A JP 2007018313A JP 2007018313 A JP2007018313 A JP 2007018313A JP 2008186185 A JP2008186185 A JP 2008186185A
Authority
JP
Japan
Prior art keywords
serial data
signal
slave
pulse width
slave address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007018313A
Other languages
Japanese (ja)
Inventor
Yuki Maeda
祐樹 前田
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.)
Murata Manufacturing Co Ltd
Original Assignee
Murata Manufacturing 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 Murata Manufacturing Co Ltd filed Critical Murata Manufacturing Co Ltd
Priority to JP2007018313A priority Critical patent/JP2008186185A/en
Publication of JP2008186185A publication Critical patent/JP2008186185A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To selectively transmit serial data to a plurality of slave devices from a master device without increasing the number of signal lines to be output from the master device, without increasing the number of bits of the serial data. <P>SOLUTION: The master device changes over a pulse width of a strobe signal STB according to a storage address of the opposite slave device to be transmitted. The slave device measures the pulse width of the strobe signal STB, detects whether the slave address according to the pulse width and its own slave address accord, and decides the data of a prescribed number of bits taken in by a serial data signal SDATA and a synchronous clock signal SCK when according. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

従来の一般的な3線同期式シリアルデータ伝送装置について図1を基に説明する。
一般に、3線同期式シリアルデータ伝送装置は図1(A)に示すように、シリアルデータ信号SDATAを伝送するシリアルデータ線、同期クロック信号SCKを伝送する同期クロック信号線と、ストローブ信号STBを伝送するストローブ信号線とによってマスター装置10とスレーブ装置20とが接続されている。図1(B),(C)は図1(A)に示した装置を用いてシリアルデータ伝送を行うための2つタイプのタイミングチャートである。図1(B),(C)のいずれのタイプでも、マスター装置10は、伝送すべきシリアルデータ信号を出力するとともに、そのシリアルデータ信号に同期した同期クロック信号SCKを出力する。
A conventional general three-wire synchronous serial data transmission apparatus will be described with reference to FIG.
In general, as shown in FIG. 1A, a 3-wire synchronous serial data transmission apparatus transmits a serial data line for transmitting a serial data signal SDATA, a synchronous clock signal line for transmitting a synchronous clock signal SCK, and a strobe signal STB. The master device 10 and the slave device 20 are connected to each other by a strobe signal line. FIGS. 1B and 1C are two types of timing charts for performing serial data transmission using the apparatus shown in FIG. In both types of FIGS. 1B and 1C, the master device 10 outputs a serial data signal to be transmitted and also outputs a synchronous clock signal SCK synchronized with the serial data signal.

図1(B)のタイプでは、所定ビット数のシリアルデータを出力した後、ストローブ信号STBを1クロック分出力する。また図1(C)のタイプではシリアルデータ信号SDATAを出力している間、ストローブ信号STBをハイレベルに保持する。   In the type of FIG. 1B, after outputting serial data of a predetermined number of bits, a strobe signal STB is output for one clock. In the type shown in FIG. 1C, the strobe signal STB is held at a high level while the serial data signal SDATA is being output.

スレーブ装置20では同期クロック信号SCKの立ち上がりタイミングでのシリアルデータ信号SDATAの状態(信号レベル)を取り込む。そして、図1(B)のタイプではストローブ信号STBが立ち上がった時、それまでに取り込んでいる所定ビット数のデータ列を確定する。また図1(C)のタイプではストローブ信号STBがハイレベルである間、シリアルデータを順次取り込み、ローレベルとなった時にその取り込みを終了する。   The slave device 20 takes in the state (signal level) of the serial data signal SDATA at the rising timing of the synchronous clock signal SCK. In the type shown in FIG. 1B, when the strobe signal STB rises, a data string of a predetermined number of bits captured so far is determined. In the type shown in FIG. 1C, serial data is sequentially fetched while the strobe signal STB is at a high level, and the fetching is terminated when the strobe signal STB is at a low level.

図1に示した例は単一のマスター装置10と単一のスレーブ装置20との間でシリアルデータ伝送を行うものであるが、単一のマスター装置と複数のスレーブ装置との間でそれぞれシリアルデータ伝送を行う方法として従来2つの方法が採られている。   In the example shown in FIG. 1, serial data transmission is performed between a single master device 10 and a single slave device 20, but serial communication is performed between a single master device and a plurality of slave devices. Conventionally, two methods have been adopted as a method for performing data transmission.

図2は第1の方法を示すものである。図2(A)に示すように、マスター装置10に対して、この例では3つのスレーブ装置20a,20b,20cを、シリアルデータ信号SDATAおよび同期クロック信号SCKを共通接続し、ストローブ信号STBa,STBb,STBcをスレーブ装置20a,20b,20cにそれぞれ接続している。すなわち、この方法は、図2(B)に示すように伝送すべきスレーブ装置に対してシリアルデータ信号SDATAおよび同期クロック信号SCKを用いてデータの出力を行うとともに伝送すべきスレーブ装置に対してストローブ信号STBa〜STBcのいずれかを出力する。図2(B)に示した例ではスレーブ装置20aに対して3ビットのシリアルデータ010が伝送され、スレーブ装置20bに対して6ビットのシリアルデータ010010が伝送され、スレーブ装置20cに対して7ビットのシリアルデータ0101100が伝送される。   FIG. 2 shows the first method. As shown in FIG. 2A, to the master device 10, in this example, three slave devices 20a, 20b, and 20c are connected in common to the serial data signal SDATA and the synchronous clock signal SCK, and the strobe signals STBa and STBb are connected. , STBc are connected to slave devices 20a, 20b, 20c, respectively. That is, in this method, as shown in FIG. 2B, data is output to the slave device to be transmitted using the serial data signal SDATA and the synchronous clock signal SCK, and the slave device to be transmitted is strobe. One of the signals STBa to STBc is output. In the example shown in FIG. 2B, 3-bit serial data 010 is transmitted to the slave device 20a, 6-bit serial data 010010 is transmitted to the slave device 20b, and 7-bit is transmitted to the slave device 20c. Serial data 0101100 is transmitted.

図3は第2の方法について示す図である。図3(A)に示すようにマスター装置11と3つのスレーブ装置21a〜21cとの間は、シリアルデータ信号SDATA、同期クロック信号SCKおよびストローブ信号STBのそれぞれの信号線で共通に接続している。この方法は、図3(B)に示すように、シリアルデータ信号SDATAにスレーブ装置のアドレス情報を付加して伝送するものである。この例ではスレーブ装置21aに対してスレーブアドレス“01”、スレーブ装置21bに対してスレーブアドレス“10”、スレーブ装置21cに対してスレーブアドレス“11”がそれぞれ予め割り当てられている。   FIG. 3 is a diagram showing the second method. As shown in FIG. 3A, the master device 11 and the three slave devices 21a to 21c are connected in common by the signal lines of the serial data signal SDATA, the synchronous clock signal SCK, and the strobe signal STB. . In this method, as shown in FIG. 3B, the address information of the slave device is added to the serial data signal SDATA and transmitted. In this example, a slave address “01” is assigned to the slave device 21a, a slave address “10” is assigned to the slave device 21b, and a slave address “11” is assigned to the slave device 21c.

マスター装置11が図3(B)のようにシリアルデータを伝送することによって、スレーブ装置21aはストローブ信号STBの立ち上がりを測定した後、シリアルデータ信号SDATAからスレーブアドレスを抽出して、そのスレーブアドレスが自身のスレーブアドレス“01”と一致したことを検知し、既に受信しているシリアルデータからデータ部分の“010”を取り出すことになる。またスレーブ装置21bは、シリアルデータ信号SDATAから抽出したスレーブアドレスが自身のスレーブアドレス“10”と一致したことを検知し、シリアルデータからデータ部分の“01001010”を取り出すことになる。同様にスレーブ装置21cは、シリアルデータ信号SDATAから抽出したスレーブアドレスが自身のスレーブアドレス“11”と一致したことを検知し、シリアルデータからデータ部分の“0101100”を取り出すことになる。   When the master device 11 transmits serial data as shown in FIG. 3B, the slave device 21a measures the rising edge of the strobe signal STB, and then extracts the slave address from the serial data signal SDATA. It is detected that the slave address matches its own slave address “01”, and the data portion “010” is extracted from the serial data already received. Further, the slave device 21b detects that the slave address extracted from the serial data signal SDATA coincides with its slave address “10”, and extracts “01001010” of the data portion from the serial data. Similarly, the slave device 21c detects that the slave address extracted from the serial data signal SDATA matches its own slave address “11”, and extracts “0101100” of the data portion from the serial data.

このようにシリアルデータにスレーブアドレスを含めて伝送するようにする方式は特許文献1にも開示されている。但し、特許文献1ではマスターイン信号MISOを送信するための信号線を用いて合計4線式でデータ伝送を行うものである。
特許第3459075号公報
A method of transmitting serial data including a slave address in this way is also disclosed in Patent Document 1. However, in Patent Document 1, data transmission is performed in a total of four lines using a signal line for transmitting the master-in signal MISO.
Japanese Patent No. 3459075

ところが、図2に示したような、スレーブ装置ごとにストローブ信号を用意する構成では、スレーブ装置を増すごとにマスター装置から出力する信号線数が増えてしまう。そのためマスター装置の構成および配線の占有面積等が増大するという問題がある。   However, in the configuration in which a strobe signal is prepared for each slave device as shown in FIG. 2, the number of signal lines output from the master device increases as the number of slave devices increases. Therefore, there is a problem that the configuration of the master device and the occupied area of the wiring increase.

また図3に示したような、シリアルデータ信号にスレーブアドレスを含める方式ではスレーブアドレスのビット数分だけシリアルデータの全体のビット数が増えてデータ伝送効率(転送レート)が低下するという問題がある。   Further, the method of including the slave address in the serial data signal as shown in FIG. 3 has a problem that the total number of bits of the serial data is increased by the number of bits of the slave address and the data transmission efficiency (transfer rate) is lowered. .

そこでこの発明の目的は、マスター装置から出力すべき信号線数を増大させることなく、且つシリアルデータのビット数を増すことなく、マスター装置から複数のスレーブ装置に対してシリアルデータを選択的に伝送できるようにしたシリアルデータ伝送方法およびそのシステムを提供することにある。   Accordingly, an object of the present invention is to selectively transmit serial data from a master device to a plurality of slave devices without increasing the number of signal lines to be output from the master device and without increasing the number of bits of serial data. It is an object of the present invention to provide a serial data transmission method and system that can be used.

(1)この発明は、シリアルデータ信号を伝送するシリアルデータ信号線と、同期クロック信号を伝送する同期クロック信号線と、ストローブ信号を伝送するストローブ信号線と、によってそれぞれ接続され、伝送すべき前記シリアルデータ信号、該シリアルデータ信号に同期した同期クロック信号、および前記シリアルデータを確定するストローブ信号をそれぞれ出力するマスター装置と、前記同期クロック信号に同期して前記シリアルデータ信号の信号レベルを取り込み、前記ストローブ信号のタイミングまたは状態に応じて前記シリアルデータを確定するスレーブ装置との間でシリアルデータを伝送する方法であって、
前記マスター装置で、伝送すべき相手側であるスレーブ装置のスレーブアドレスに応じて前記ストローブ信号のパルス幅を切り替え、
前記スレーブ装置で、前記ストローブ信号のパルス幅を測定するとともに、該パルス幅に応じたスレーブアドレスとスレーブ装置に割り当てられたスレーブアドレスとが一致するとき、前記シリアルデータを確定することを特徴としている。
(1) In the present invention, the serial data signal line for transmitting the serial data signal, the synchronous clock signal line for transmitting the synchronous clock signal, and the strobe signal line for transmitting the strobe signal are respectively connected and transmitted. A master device for outputting a serial data signal, a synchronous clock signal synchronized with the serial data signal, and a strobe signal for determining the serial data; and a signal level of the serial data signal is captured in synchronization with the synchronous clock signal; A method of transmitting serial data to and from a slave device that determines the serial data according to the timing or state of the strobe signal,
In the master device, the pulse width of the strobe signal is switched according to the slave address of the slave device on the other side to be transmitted,
The slave device measures the pulse width of the strobe signal, and determines the serial data when the slave address corresponding to the pulse width matches the slave address assigned to the slave device. .

また、従来のスレーブアドレス制御のために、シリアルデータに付加されているスレーブアドレスを抽出するとともに、そのスレーブアドレスが自身に割り当てられたスレーブアドレスに一致する時にデータ確定手段を有効にするシリアルデータ信号重畳スレーブアドレス制御手段と、ストローブ信号のパルス幅を測定するとともに、そのパルス幅がスレーブアドレスを示すパルス幅以外であるときシリアルデータ信号重畳スレーブアドレス制御手段を有効にするスレーブアドレス制御切替手段とを設ける。   In addition, for the conventional slave address control, a serial data signal that extracts the slave address added to the serial data and enables the data determination means when the slave address matches the slave address assigned to itself. Superposed slave address control means, and slave address control switching means for measuring the pulse width of the strobe signal and enabling the serial data signal superimposed slave address control means when the pulse width is other than the pulse width indicating the slave address. Provide.

この発明によれば、マスター装置は伝送すべき相手側のスレーブ装置のスレーブアドレスに応じてストローブ信号のパルス幅を切り替えるだけでよく、またスレーブ装置はストローブ信号のパルス幅を測定するとともにそのパルス幅に応じたスレーブアドレスが自身に割り当てられているスレーブアドレスと一致する時に、取り込んだシリアルデータを確定すればよいので、1つのマスター装置から複数のスレーブ装置に対してシリアルデータを伝送する際にシリアルデータ信号、同期クロック信号、ストローブ信号のそれぞれを伝送する3つの信号線を共通接続するだけでよく、信号線数が増すことがない。またシリアルデータにスレーブアドレスを重畳する必要がないのでデータ伝送効率が低下することもない。   According to the present invention, the master device only has to switch the pulse width of the strobe signal in accordance with the slave address of the slave device on the other side to be transmitted, and the slave device measures the pulse width of the strobe signal and the pulse width. When the slave address corresponding to the slave address matches the slave address assigned to itself, it is sufficient to determine the captured serial data, so when transmitting serial data from one master device to multiple slave devices It is only necessary to commonly connect the three signal lines that transmit the data signal, the synchronous clock signal, and the strobe signal, and the number of signal lines does not increase. Further, since it is not necessary to superimpose the slave address on the serial data, the data transmission efficiency is not lowered.

また、前記シリアルデータ信号重畳スレーブアドレス制御手段を設けたことにより、シリアルデータにスレーブアドレスが重畳されている従来方式のスレーブアドレス制御の信号に対しても適用でき、且つスレーブアドレス制御切替手段により、ストローブ信号のパルス幅によってスレーブアドレスを制御する方式との切替を的確に行うことができる。したがってこの両方式のスレーブアドレス制御を行うマスター装置をセレクタ等によって切り替える場合にもそのまま対応できる。   Further, by providing the serial data signal superimposed slave address control means, it can be applied to a conventional slave address control signal in which the slave address is superimposed on the serial data, and by the slave address control switching means, Switching to the method of controlling the slave address according to the pulse width of the strobe signal can be performed accurately. Therefore, it is possible to cope with the case where the master device for performing both types of slave address control is switched by a selector or the like.

《第1の実施形態》
第1の実施形態に係るシリアルデータ伝送方法およびシステムについて図4〜図7を参照して説明する。
図4はそのシリアルデータ伝送方法およびシステムに適用するマスター装置の構成を示すブロック図、図5はそのスレーブ装置の構成を示すブロック図である。
<< First Embodiment >>
A serial data transmission method and system according to the first embodiment will be described with reference to FIGS.
FIG. 4 is a block diagram showing a configuration of a master device applied to the serial data transmission method and system, and FIG. 5 is a block diagram showing a configuration of the slave device.

図4に示すように、マスター装置12は、パラレル/シリアル変換回路121、同期クロック信号生成回路122、ストローブ信号生成回路123、およびスレーブアドレス/ストローブパルス変換回路124を備えている。   As shown in FIG. 4, the master device 12 includes a parallel / serial conversion circuit 121, a synchronous clock signal generation circuit 122, a strobe signal generation circuit 123, and a slave address / strobe pulse conversion circuit 124.

パラレル/シリアル変換回路121はスレーブ装置に対して送出すべきデータおよびビット数をホスト装置からパラレルで入力し、それをシリアル信号に変換してシリアルデータ信号SDATAとして出力する。   The parallel / serial conversion circuit 121 inputs the data and the number of bits to be sent to the slave device in parallel from the host device, converts them into a serial signal, and outputs it as a serial data signal SDATA.

同期クロック信号生成回路122はホスト装置から伝送速度のデータを入力し、スレーブ装置に対して送出すべきビット数に応じた数の同期クロック信号SCKを出力するとともにパラレル/シリアル変換回路121およびストローブ信号生成回路123に対して同期クロック信号を与える。   The synchronous clock signal generation circuit 122 receives transmission speed data from the host device, outputs the number of synchronous clock signals SCK corresponding to the number of bits to be sent to the slave device, and also outputs the parallel / serial conversion circuit 121 and the strobe signal. A synchronous clock signal is supplied to the generation circuit 123.

スレーブアドレス/ストローブパルス変換回路124は、データを送出すべきスレーブ装置のスレーブアドレスをホスト装置から入力し、それに応じたパルス幅のパルス信号をストローブ信号生成回路123へ与える。このパルス幅は同期クロック信号のクロック数の所定個数分に相当する時間であり、ストローブ信号生成回路123は上記スレーブアドレスに対応するパルス幅だけハイレベルを保持するストローブ信号STBを出力する。   The slave address / strobe pulse conversion circuit 124 inputs the slave address of the slave device to which data is to be sent from the host device, and gives a pulse signal having a pulse width corresponding to the slave address to the strobe signal generation circuit 123. This pulse width is a time corresponding to a predetermined number of clocks of the synchronous clock signal, and the strobe signal generation circuit 123 outputs a strobe signal STB that holds a high level by the pulse width corresponding to the slave address.

図6は上記マスター装置12から出力される3つの信号のタイミングチャートである。図6において同期クロック信号SCKに付した数値1〜Nは同期クロック信号のクロック数を表していて、この例ではN個の同期クロックを出力する。シリアルデータ信号SDATAは時系列順に01・・・110010010110のシリアルデータを出力する。ストローブ信号STBは同期クロック信号SCKの最後のクロック(クロック番号1)の立ち上がりタイミングでは必ずハイレベルであり、スレーブアドレスに応じて、このハイレベルの幅(パルス幅)が変化する。この図6に示す例では、ストローブ信号STBのパルス幅は同期クロック信号のクロック数8個分である。   FIG. 6 is a timing chart of three signals output from the master device 12. In FIG. 6, numerical values 1 to N attached to the synchronous clock signal SCK represent the number of clocks of the synchronous clock signal. In this example, N synchronous clocks are output. The serial data signal SDATA outputs serial data 01... 110010010110 in time series order. The strobe signal STB is always at the high level at the rising timing of the last clock (clock number 1) of the synchronous clock signal SCK, and the high-level width (pulse width) changes according to the slave address. In the example shown in FIG. 6, the pulse width of the strobe signal STB is the number of clocks of the synchronous clock signal.

図5に示すように、スレーブ装置22は、シフトレジスタ221、データ確定バッファ222、パルス幅測定回路223、およびスレーブアドレス検出回路224を備えている。
シフトレジスタ221はシリアルデータ信号SDATAを同期クロック信号SCKに同期して、すなわち同期クロック信号SCKの立ち上がりタイミングで、シリアルデータ信号SDATAの信号レベルを順次格納する。
As shown in FIG. 5, the slave device 22 includes a shift register 221, a data determination buffer 222, a pulse width measurement circuit 223, and a slave address detection circuit 224.
The shift register 221 sequentially stores the signal level of the serial data signal SDATA in synchronization with the synchronous clock signal SCK, that is, at the rising timing of the synchronous clock signal SCK.

パルス幅測定回路223は、ストローブ信号STBと同期クロック信号SCKを入力してストローブ信号STBのパルス幅を測定する。すなわちストローブ信号STBがハイレベルである間、同期クロックの立ち上がり回数をカウントする。   The pulse width measurement circuit 223 receives the strobe signal STB and the synchronous clock signal SCK and measures the pulse width of the strobe signal STB. That is, while the strobe signal STB is at a high level, the number of rises of the synchronous clock is counted.

スレーブアドレス検出回路224はパルス幅測定回路223により測定されたパルス幅に相当するスレーブアドレスが自身に予め定められたスレーブアドレスと一致するか否かを検知する。このスレーブアドレス検出回路224およびパルス幅測定回路223がこの発明に係る「ストローブ信号重畳スレーブアドレス制御手段」に相当する。   The slave address detection circuit 224 detects whether or not the slave address corresponding to the pulse width measured by the pulse width measurement circuit 223 matches the slave address predetermined for itself. The slave address detection circuit 224 and the pulse width measurement circuit 223 correspond to the “strobe signal superimposed slave address control means” according to the present invention.

データ確定バッファ222は、スレーブアドレス検出回路224の出力が有効である状態でストローブ信号STBの立ち下がりのタイミングでシフトレジスタ221のデータを確定し、バッファに格納するとともに出力する。それ以外の条件ではデータを確定しない。   The data determination buffer 222 determines the data of the shift register 221 at the falling timing of the strobe signal STB while the output of the slave address detection circuit 224 is valid, and stores and outputs the data in the buffer. Data is not fixed under other conditions.

図7は1つのマスター装置に複数のスレーブ装置を接続した回路構成と3つの信号線のタイミングチャートを示すものである。   FIG. 7 shows a circuit configuration in which a plurality of slave devices are connected to one master device and a timing chart of three signal lines.

1つのマスター装置に複数のスレーブ装置を接続する際、図7(A)に示すように、シリアルデータ信号SDATA、同期クロック信号SCK、およびストローブ信号STBを共通にバス接続する。スレーブ装置22a,22b・・・22mは、図7(B)のSDaで示す一連の信号によってそれらのシフトレジスタ221に3ビットのシリアルデータ010をバッファリングする。この例ではストローブ信号STBのパルス幅が1(同期クロック信号SCKの1クロック分)であるので、このストローブ信号STBの立ち下がりタイミングで、スレーブ装置22aのデータ確定バッファ222は3ビットのデータ010を確定する。   When a plurality of slave devices are connected to one master device, the serial data signal SDATA, the synchronous clock signal SCK, and the strobe signal STB are commonly connected by bus as shown in FIG. The slave devices 22a, 22b,... 22m buffer the 3-bit serial data 010 in the shift registers 221 with a series of signals indicated by SDa in FIG. In this example, since the pulse width of the strobe signal STB is 1 (one clock of the synchronous clock signal SCK), the data determination buffer 222 of the slave device 22a stores the 3-bit data 010 at the falling timing of the strobe signal STB. Determine.

続いて、スレーブ装置22a,22b・・・22mは、図7(B)のSDbで示す一連の信号によってそれらのシフトレジスタ221に6ビットのシリアルデータ010010をバッファリングする。この例ではストローブ信号STBのパルス幅が2(同期クロック信号SCKの2クロック分)であるので、このストローブ信号STBの立ち下がりタイミングで、スレーブ装置22bのデータ確定バッファ222は6ビットのデータ010010を確定する。   Subsequently, the slave devices 22a, 22b,... 22m buffer 6-bit serial data 010010 in their shift registers 221 by a series of signals indicated by SDb in FIG. In this example, since the pulse width of the strobe signal STB is 2 (for two clocks of the synchronous clock signal SCK), the data determination buffer 222 of the slave device 22b stores the 6-bit data 010010 at the falling timing of the strobe signal STB. Determine.

その後、スレーブ装置22a,22b・・・22mは、図7(B)のSDmで示す一連の信号によってそれらのシフトレジスタ221に7ビットのシリアルデータ0101100をバッファリングする。この例ではストローブ信号STBのパルス幅が3(同期クロック信号SCKの3クロック分)であるので、このストローブ信号STBの立ち下がりタイミングで、スレーブ装置22mのデータ確定バッファ222は7ビットのデータ0101100を確定する。   Then, the slave devices 22a, 22b,... 22m buffer 7-bit serial data 0101100 in their shift registers 221 by a series of signals indicated by SDm in FIG. In this example, since the pulse width of the strobe signal STB is 3 (3 clocks of the synchronous clock signal SCK), the data determination buffer 222 of the slave device 22m stores the 7-bit data 0101100 at the falling timing of the strobe signal STB. Determine.

《第2の実施形態》
第2の実施形態に係るシリアルデータ伝送方法およびシステムについて図8・図9を参照して説明する。
図8は、従来方式のスレーブアドレス制御を行うマスター装置とこの発明に係るマスター装置とが混在するシリアルデータ伝送システムの構成図である。マスター装置12はストローブ信号にスレーブアドレス情報を載せる本発明に係るマスター装置、マスター装置11b,11cはシリアルデータにスレーブアドレスを付加する従来のマスター装置である。これらのマスター装置をセレクタ30に接続している。セレクタ30はこれらのマスター装置から出力される3線の信号をそれぞれ入力し、いずれか1つを選択出力する。スレーブ装置23a,23b,23cはセレクタ30から出力されるシリアルデータ信号SDATA、同期クロック信号SCK、およびストローブ信号STBを共通に入力する。
<< Second Embodiment >>
A serial data transmission method and system according to the second embodiment will be described with reference to FIGS.
FIG. 8 is a configuration diagram of a serial data transmission system in which a master device that performs conventional slave address control and a master device according to the present invention coexist. The master device 12 is a master device according to the present invention that places slave address information on a strobe signal, and the master devices 11b and 11c are conventional master devices that add a slave address to serial data. These master devices are connected to the selector 30. The selector 30 inputs three-line signals output from these master devices, and selectively outputs one of them. Slave devices 23a, 23b, and 23c commonly receive serial data signal SDATA, synchronous clock signal SCK, and strobe signal STB output from selector 30.

図9は、図8に示したスレーブ装置23a〜23cのうち1つの構成を示すブロック図である。いずれのスレーブ装置23a〜23も同一構成である。このスレーブ装置23は、シフトレジスタ231、データ確定バッファ232、パルス幅測定回路233、スレーブアドレス検出回路234、伝送方法識別回路235、および従来方法データ処理回路236を備えている。   FIG. 9 is a block diagram showing a configuration of one of the slave devices 23a to 23c shown in FIG. All of the slave devices 23a to 23 have the same configuration. The slave device 23 includes a shift register 231, a data determination buffer 232, a pulse width measurement circuit 233, a slave address detection circuit 234, a transmission method identification circuit 235, and a conventional method data processing circuit 236.

この図9に示すスレーブ装置23は、図5に示したスレーブ装置22に伝送方法識別回路235、および従来方法データ処理回路236を設けたものである。
シフトレジスタ231はシリアルデータ信号SDATAを同期クロック信号SCKに同期して、すなわち同期クロック信号SCKの立ち上がりタイミングで、シリアルデータ信号SDATAの信号レベルを順次格納する。
The slave device 23 shown in FIG. 9 is obtained by providing a transmission method identification circuit 235 and a conventional method data processing circuit 236 in the slave device 22 shown in FIG.
The shift register 231 sequentially stores the signal level of the serial data signal SDATA in synchronization with the synchronous clock signal SCK, that is, at the rising timing of the synchronous clock signal SCK.

従来方法データ処理回路236は、伝送方法識別回路235によってマスター装置の伝送方法が従来方法であるものと判断された場合、マスター側の伝送方法に適した処理を行う。例えばシリアルデータの最後の3ビットがスレーブアドレス識別ビットであるなら、アドレス識別処理を行い、自分宛のデータ部分だけをデータ確定バッファ232へ出力する。一方、伝送方法識別回路235によってマスター装置の伝送方法が本発明のものと判断した場合には、処理を施さずにシフトレジスタ231から入力されたデータをスルーしてデータ確定バッファ232へ出力する。   If the transmission method identification circuit 235 determines that the transmission method of the master device is the conventional method, the conventional method data processing circuit 236 performs processing suitable for the transmission method on the master side. For example, if the last three bits of the serial data are slave address identification bits, address identification processing is performed, and only the data portion addressed to itself is output to the data determination buffer 232. On the other hand, when the transmission method identifying circuit 235 determines that the transmission method of the master device is that of the present invention, the data input from the shift register 231 is passed through without being processed and output to the data determination buffer 232.

データ確定バッファ232は、伝送方法識別回路235によってマスター装置の伝送方法が従来方法のものと識別された場合、もしくは伝送方法識別回路235によってマスター装置の伝送方法が本発明のものと識別されて且つスレーブアドレス検出回路234によって自スレーブ装置宛と判断された場合は、ストローブ信号STBの立下りで、従来方法データ処理回路236からのデータを確定し、バッファに格納するとともに出力する。それ以外の場合、すなわち、伝送方法識別回路235によってマスター装置の伝送方法が本発明のものと識別されたが、スレーブアドレス検出回路234が他スレーブ装置宛と判断された場合は、従来方法データ処理回路236からの出力を確定しない。   When the transmission method identification circuit 235 identifies the transmission method of the master device as the conventional method, or the transmission method identification circuit 235 identifies the data confirmation buffer 232 as the transmission method of the master device as that of the present invention. When the slave address detection circuit 234 determines that it is addressed to the slave device, the data from the conventional method data processing circuit 236 is determined at the falling edge of the strobe signal STB, stored in the buffer and output. In other cases, that is, when the transmission method identification circuit 235 identifies the transmission method of the master device as that of the present invention, but the slave address detection circuit 234 determines that it is addressed to another slave device, the conventional method data processing The output from circuit 236 is not determined.

パルス幅測定回路233は、ストローブ信号STBと同期クロック信号SCKを入力してストローブ信号STBがハイレベルである間、同期クロック信号の立ち上がり回数をカウントする。   The pulse width measurement circuit 233 receives the strobe signal STB and the synchronous clock signal SCK, and counts the number of rises of the synchronous clock signal while the strobe signal STB is at a high level.

伝送方法識別回路235は、パルス幅測定回路233のカウント値が0もしくは同期クロック信号SCKのクロック数に等しい場合は、マスター装置の伝送方法が従来の伝送方法であるものと判断し、従来方法データ処理回路236、データ確定バッファ232へアクティブ信号を出力する。等しくない場合には、本発明の伝送方法と識別し、従来方法データ処理回路236、データ確定バッファ232へノンアクティブ信号を出力する。   If the count value of the pulse width measurement circuit 233 is 0 or equal to the number of clocks of the synchronous clock signal SCK, the transmission method identification circuit 235 determines that the transmission method of the master device is the conventional transmission method, and the conventional method data The active signal is output to the processing circuit 236 and the data determination buffer 232. If they are not equal, the transmission method of the present invention is identified, and a non-active signal is output to the conventional method data processing circuit 236 and the data determination buffer 232.

このようにしてシリアルデータにスレーブアドレスを付加した従来方式のマスター装置との間でもシリアルデータの伝送を行うことができる。   In this way, serial data can be transmitted to and from a conventional master device in which a slave address is added to serial data.

従来の3線式シリアルデータ伝送方法を示す図である。It is a figure which shows the conventional 3-wire type serial data transmission method. 第1の従来方式で単一のマスター装置と複数のスレーブ装置との間でシリアルデータ伝送を行う構成を示す図である。It is a figure which shows the structure which performs serial data transmission between a single master apparatus and a several slave apparatus by a 1st conventional system. 第2の従来方式で単一のマスター装置と複数のスレーブ装置との間でシリアルデータ伝送を行う構成を示す図である。It is a figure which shows the structure which performs serial data transmission between a single master apparatus and a several slave apparatus with a 2nd conventional system. 第1の実施形態に係るシリアルデータ伝送方法およびシステムに係るマスター装置の構成を示すブロック図である。It is a block diagram which shows the structure of the master apparatus which concerns on the serial data transmission method and system which concern on 1st Embodiment. 同システムに係るスレーブ装置の構成を示すブロック図である。It is a block diagram which shows the structure of the slave apparatus which concerns on the same system. 3線の各出力信号のタイミングチャートである。It is a timing chart of each output signal of 3 lines. 単一のマスター装置と複数のスレーブ装置との間でシリアルデータ伝送を行うための構成およびタイミングチャートである。5 is a configuration and timing chart for performing serial data transmission between a single master device and a plurality of slave devices. 第2の実施形態に係るシリアルデータ伝送システムの構成を示すブロック図である。It is a block diagram which shows the structure of the serial data transmission system which concerns on 2nd Embodiment. 同システムに用いるスレーブ装置の構成を示すブロック図である。It is a block diagram which shows the structure of the slave apparatus used for the same system.

符号の説明Explanation of symbols

10〜12−マスター装置
20〜23−スレーブ装置
30−セレクタ
SCK−同期クロック信号
SDATA−シリアルデータ信号
STB−ストローブ信号
10-12-Master device 20-23-Slave device 30-Selector SCK-Synchronous clock signal SDATA-Serial data signal STB-Strobe signal

Claims (3)

シリアルデータ信号を伝送するシリアルデータ信号線と、同期クロック信号を伝送する同期クロック信号線と、ストローブ信号を伝送するストローブ信号線と、によってそれぞれ接続され、伝送すべき前記シリアルデータ信号、該シリアルデータ信号に同期した同期クロック信号、および前記シリアルデータを確定するストローブ信号をそれぞれ出力するマスター装置と、前記同期クロック信号に同期して前記シリアルデータ信号の信号レベルを取り込み、前記ストローブ信号のタイミングまたは状態に応じて前記シリアルデータを確定するスレーブ装置との間でシリアルデータを伝送する方法であって、
前記マスター装置で、伝送すべき相手側であるスレーブ装置のスレーブアドレスに応じて前記ストローブ信号のパルス幅を切り替え、
前記スレーブ装置で、前記ストローブ信号のパルス幅を測定するとともに、該パルス幅に応じたスレーブアドレスと割り当てられたスレーブアドレスとが一致するとき、前記シリアルデータを確定することを特徴とするシリアルデータ伝送方法。
A serial data signal line for transmitting a serial data signal, a synchronous clock signal line for transmitting a synchronous clock signal, and a strobe signal line for transmitting a strobe signal are connected to each other, and the serial data signal to be transmitted, the serial data A master device that outputs a synchronous clock signal synchronized with the signal and a strobe signal that determines the serial data; and a signal level of the serial data signal is captured in synchronization with the synchronous clock signal, and the timing or state of the strobe signal A method for transmitting serial data to and from a slave device that determines the serial data according to
In the master device, the pulse width of the strobe signal is switched according to the slave address of the slave device on the other side to be transmitted,
Serial data transmission characterized in that the slave device measures the pulse width of the strobe signal and determines the serial data when a slave address corresponding to the pulse width matches an assigned slave address. Method.
シリアルデータ信号を伝送するシリアルデータ信号線と、同期クロック信号を伝送する同期クロック信号線と、ストローブ信号を伝送するストローブ信号線と、によってそれぞれ接続されたマスター装置およびスレーブ装置を有し、
伝送すべき前記シリアルデータ信号を出力するシリアルデータ信号出力手段と、前記シリアルデータ信号に同期した同期クロック信号を出力する同期クロック信号出力手段と、前記シリアルデータの範囲を確定するストローブ信号を出力するストローブ信号出力手段と、を前記マスター装置に備え、
前記同期クロック信号に同期して前記シリアルデータ信号の信号レベルを取り込むシリアルデータ入力手段と、前記ストローブ信号のタイミングまたは状態に応じて前記シリアルデータ入力手段により入力されたシリアルデータのビット長を確定するデータ確定手段と、を前記スレーブ装置に備えたシリアルデータ伝送システムにおいて、
伝送すべき相手側であるスレーブ装置のスレーブアドレスに応じて前記ストローブ信号のパルス幅を切り替えるアドレス設定手段を前記マスター装置に設け、
前記ストローブ信号のパルス幅を測定するとともに、該パルス幅に応じたスレーブアドレスと割り当てられたスレーブアドレスとが一致するとき、前記データ確定手段を有効にするストローブ信号重畳スレーブアドレス制御手段を前記スレーブ装置に設けたシリアルデータ伝送システム。
A master device and a slave device connected respectively by a serial data signal line for transmitting a serial data signal, a synchronous clock signal line for transmitting a synchronous clock signal, and a strobe signal line for transmitting a strobe signal;
Serial data signal output means for outputting the serial data signal to be transmitted, synchronous clock signal output means for outputting a synchronous clock signal synchronized with the serial data signal, and a strobe signal for determining the range of the serial data A strobe signal output means, provided in the master device,
Serial data input means for capturing the signal level of the serial data signal in synchronization with the synchronous clock signal, and the bit length of the serial data input by the serial data input means in accordance with the timing or state of the strobe signal In the serial data transmission system comprising the data confirmation means in the slave device,
Provided in the master device address setting means for switching the pulse width of the strobe signal according to the slave address of the slave device that is the other party to be transmitted,
Strobe signal superimposed slave address control means for measuring the pulse width of the strobe signal and enabling the data determination means when the slave address corresponding to the pulse width matches the assigned slave address. Serial data transmission system installed in
前記シリアルデータ入力手段により入力されたシリアルデータに付加されているスレーブアドレスを抽出するとともに、当該スレーブアドレスが割り当てられたスレーブアドレスに一致するとき前記データ確定手段を有効にするシリアルデータ信号重畳スレーブアドレス制御手段と、
前記ストローブ信号のパルス幅を測定するとともに、該パルス幅が前記スレーブアドレスを示すパルス幅以外であるとき前記シリアルデータ信号重畳スレーブアドレス制御手段を有効にするスレーブアドレス制御切替手段と、を前記スレーブ装置に設けた請求項2に記載のシリアルデータ伝送システム。
The slave address added to the serial data input by the serial data input means is extracted and the serial data signal superimposed slave address that enables the data determination means when the slave address matches the assigned slave address Control means;
Slave address control switching means for measuring the pulse width of the strobe signal and enabling the serial data signal superimposed slave address control means when the pulse width is other than the pulse width indicating the slave address, the slave device The serial data transmission system according to claim 2 provided in the above.
JP2007018313A 2007-01-29 2007-01-29 Serial data transmission method and system therefor Pending JP2008186185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007018313A JP2008186185A (en) 2007-01-29 2007-01-29 Serial data transmission method and system therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007018313A JP2008186185A (en) 2007-01-29 2007-01-29 Serial data transmission method and system therefor

Publications (1)

Publication Number Publication Date
JP2008186185A true JP2008186185A (en) 2008-08-14

Family

ID=39729195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007018313A Pending JP2008186185A (en) 2007-01-29 2007-01-29 Serial data transmission method and system therefor

Country Status (1)

Country Link
JP (1) JP2008186185A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275636A1 (en) * 2012-04-12 2013-10-17 International Business Machines Corporation Accessing peripheral devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130275636A1 (en) * 2012-04-12 2013-10-17 International Business Machines Corporation Accessing peripheral devices
US8984196B2 (en) * 2012-04-12 2015-03-17 Lenovo Enterprise Solutions (Singapore) Ptd. Ltd. Accessing peripheral devices

Similar Documents

Publication Publication Date Title
CA2366397A1 (en) An interface for data transfer between integrated circuits
JP6149150B2 (en) Timestamp correction in skewed multilane communication links
JPH09297729A (en) Device and method for data transmission
RU2586580C2 (en) Conflict detection in eia-485 buses
US20220245077A1 (en) Integrated circuit and system control device including same
US7321596B2 (en) Packet control system and communication method
US20090077344A1 (en) Method for bus testing and addressing in mass memory components
JP2008172657A (en) Receiver
US20030161351A1 (en) Synchronizing and converting the size of data frames
JP2008186185A (en) Serial data transmission method and system therefor
JP2009058994A (en) Image processor and its control method
US20060236042A1 (en) Training sequence for deswizzling signals
JP2007259094A (en) Serial communication device
JP2526785B2 (en) Data transmission equipment
JP2008054036A (en) Image transmission method and image transmission system
US20080114877A1 (en) Serial data transmission method and serial data transmission apparatus
JP4879846B2 (en) FRAME SYNCHRONIZATION DATA TRANSFER METHOD, TRANSMITTER DEVICE AND RECEPTION DEVICE
JP2005265630A (en) Measuring instrument
KR100994356B1 (en) Communication system and method
JP4292838B2 (en) Multi-point data collection device
JP3196989B2 (en) Frame synchronizer
JP2007329670A (en) Data receiving device and data receiving method
JP2016096493A (en) Communication system and image forming device
US10686539B2 (en) Flexible debug observation point insertion in pipeline designs
JP2005050153A (en) Method of clock synchronized serial data transfer