JP2001027991A - Serial data communicating method with multiple slave cpus - Google Patents

Serial data communicating method with multiple slave cpus

Info

Publication number
JP2001027991A
JP2001027991A JP11200255A JP20025599A JP2001027991A JP 2001027991 A JP2001027991 A JP 2001027991A JP 11200255 A JP11200255 A JP 11200255A JP 20025599 A JP20025599 A JP 20025599A JP 2001027991 A JP2001027991 A JP 2001027991A
Authority
JP
Japan
Prior art keywords
slave
cpu
master
master cpu
cpus
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
JP11200255A
Other languages
Japanese (ja)
Inventor
Yoichiro Kanda
洋一郎 神田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP11200255A priority Critical patent/JP2001027991A/en
Publication of JP2001027991A publication Critical patent/JP2001027991A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a serial data communicating method with multiple slave CPUs which saves input/output ports of a CPU and enables many slave CPUs to be connected. SOLUTION: A master CPU 4 sends a slave address to a slave CPU 1, which once receiving the slave address, starts a timer. The master CPU 4 after waiting for a time T sends the slave address again to the slave CPU 1, which when receiving the slave address again for longer than a time TL within a time TH, sets ACK data in a transmitting buffer to make transmission ready; when the master CPU 4 sends the slave address again after waiting for the time T, the slave CPU 1 sends slave ACK data, so that a serial data communication is made between the master CPU 4 and slave CPU 1.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、マスタCPUか
らのデータ送受信クロックにより複数のスレーブCPU
とシリアル通信を行うシステムにおいて、マスタCPU
からの送信間隔を切り替えてマスタCPUからの送信内
容がデータであるか、スレーブアドレスであるかを、ス
レーブCPUで判断して認識することができるようにし
た複数のスレーブCPUを有するシリアル通信に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a plurality of slave CPU
System that performs serial communication with the
The present invention relates to a serial communication having a plurality of slave CPUs in which a transmission interval from a slave CPU is switched so that the slave CPU can determine and recognize whether data transmitted from the master CPU is data or a slave address.

【0002】[0002]

【従来の技術】従来、マスタCPUからのデータ送受信
クロックにより複数のスレーブCPUとシリアルデータ
通信を行うシステムは、たとえば、図3に示すように構
成されている。この図3において、複数個(図3では、
3個の場合を例示している)のスレーブCPU1〜3に
対して1個のマスタCPU4が用いられている。この1
個のマスタCPU4からのデータ送受信クロック信号に
より、シリアル通信を行うシリアルデータ通信方法で
は、1個のマスタCPU4がスレーブCPU1〜3を選
択する場合には、その選択のためのREQ信号をREQ
信号出力端REQ1m〜REQ3mからそれぞれスレー
ブCPU1〜3のREQ信号入力端REQ1s〜REQ
3sに伝送する。
2. Description of the Related Art Conventionally, a system for performing serial data communication with a plurality of slave CPUs by a data transmission / reception clock from a master CPU is configured as shown in FIG. 3, for example. In FIG. 3, a plurality (in FIG. 3,
One master CPU 4 is used for three slave CPUs 1 to 3 (illustrating three cases). This one
In the serial data communication method in which serial communication is performed by a data transmission / reception clock signal from the master CPUs 4, when one master CPU 4 selects the slave CPUs 1 to 3, the REQ signal for the selection is set to REQ.
From signal output terminals REQ1m to REQ3m to REQ signal input terminals REQ1s to REQ of slave CPUs 1 to 3, respectively.
3s.

【0003】次いで、スレーブCPU1〜3がマスタC
PU4から送信されたREQ信号を認識して通信の準備
ができたことをマスタCPU4に応答するためのACK
信号を、スレーブCPU1〜3のACK信号出力端AC
K1s〜ACK3sよりマスタCPU4のACK信号入
力端ACK1m〜ACK3mに伝送する。これに伴い、
マスタCPU4はクロック信号出力端SCKmからクロ
ック信号をスレーブCPU1〜3のクロック信号入力端
SCK1s〜SCK3sに伝送し、このクロック信号に
より、マスタCPU4からシリアル通信のデータ出力を
データ出力端SOからスレーブCPU1〜3のデータ入
力端SI1s〜SI3sに伝送する。また、スレーブC
PU1〜3のシリアル通信のデータ出力はデータ送信用
のクロック信号とともにデータ出力端SO1s〜SO3
sよりマスタCPU4のデータ入力端SIに伝送するよ
うにしている。
Next, the slave CPUs 1 to 3
ACK for recognizing REQ signal transmitted from PU 4 and responding to master CPU 4 that communication is ready.
The signal is sent to the ACK signal output terminals AC of the slave CPUs 1-3.
The signal is transmitted from K1s to ACK3s to the ACK signal input terminals ACK1m to ACK3m of the master CPU 4. Along with this,
The master CPU 4 transmits a clock signal from the clock signal output terminal SCKm to the clock signal input terminals SCK1s to SCK3s of the slave CPUs 1 to 3, and uses the clock signal to transmit serial communication data output from the master CPU 4 from the data output terminal SO to the slave CPUs 1 to 3. 3 data input terminals SI1s to SI3s. Slave C
The data output of the serial communication of the PUs 1 to 3 is output together with the clock signal for data transmission together with the data output terminals SO1s to SO3.
s to the data input terminal SI of the master CPU 4.

【0004】このように、従来のシリアルデータ通信方
法では、マスタCPU4がスレーブCPU1〜3を選択
するためのREQ信号と、スレーブCPU1〜3がRE
Q信号を認識し、通信の準備ができたことをマスタCP
U4に送信するACK信号が必要であった。
As described above, in the conventional serial data communication method, the REQ signal for the master CPU 4 to select the slave CPUs 1 to 3 and the
The master CP recognizes the Q signal and indicates that communication is ready.
An ACK signal to send to U4 was needed.

【0005】なお、近似技術として、たとえば、特開平
02-47755号公報には、メインCPUとサブCP
Uとの間でシリアルデータ通信を行う場合に、メインC
PUからサブCPUに出力されるシリアルクロックが第
1の所定の時間T以上「H」信号を出力した後に、複数
ビット分のシリアルクロックパルスを第2の所定間隔T
2以内で発生し、シリアルクロックパルス信号に同期し
て、メインCPUからサブCPUに出力されるシリアル
データをアドレスデータとし、このアドレスデータによ
りそれ以降の通信データの通信方向と内容、データ数を
決定することが開示されている。
As an approximation technique, for example, Japanese Patent Application Laid-Open No. 02-47755 discloses a main CPU and a sub-CP.
When performing serial data communication with U,
After the serial clock output from the PU to the sub CPU outputs an “H” signal for a first predetermined time T or more, a serial clock pulse for a plurality of bits is output at a second predetermined time T
The serial data that is generated within 2 and is output from the main CPU to the sub CPU in synchronization with the serial clock pulse signal is used as address data, and the communication direction, contents and number of subsequent communication data are determined by the address data. Is disclosed.

【0006】[0006]

【発明が解決しようとする課題】しかし、上記従来のシ
リアル通信方法では、スレーブCPUと同数のREQ信
号とACK信号が必要になるため、スレーブCPUの数
が増えるとCPUの入出力ポートがその信号のために費
やされるという課題がある。
However, the conventional serial communication method requires the same number of REQ signals and ACK signals as the number of slave CPUs. There is a problem that is spent for.

【0007】この発明は、上記従来の課題を解決するた
めになされたもので、REQ信号とACK信号の信号線
をなくし、CPUの入出力ポートを他の制御などに有効
に使える複数のスレーブCPUを有するシリアルデータ
通信方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional problems, and has a plurality of slave CPUs in which the signal lines of the REQ signal and the ACK signal are eliminated, and the input / output port of the CPU can be effectively used for other controls. It is an object of the present invention to provide a serial data communication method having the following.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、この発明の複数のスレーブCPUを有するシリアル
データ通信方法は、1個のマスタCPUから複数のスレ
ーブCPUにデータ送受信クロック信号によりシリアル
通信を行うシステムにおいて、REQ信号の代わりとし
てマスタCPUからシリアルデータライン上に送信され
るスレーブアドレスと、ACK信号の代わりとしてスレ
ーブCPUから上記マスタCPUに送信されるACKデ
ータとを送受信するときの通信間隔を、通常のデータ送
受信時の通信間隔と異なる間隔とする処理工程で実行す
ることを特徴とする。そのため、マスタCPUから送信
されるスレーブアドレスをスレーブCPUが受信して、
スレーブCPUからマスタCPUに送信するACKデー
タがマスタCPUで受信するときの通信間隔が通常のデ
ータ送受時の通信間隔と異なるようにしているから、R
EQ信号とACK信号の信号線をなくし、CPUの入出
力ポートを他の制御などに有効に使うことができる。
In order to achieve the above object, a serial data communication method having a plurality of slave CPUs according to the present invention provides a method of serial communication from one master CPU to a plurality of slave CPUs by a data transmission / reception clock signal. Communication interval when transmitting and receiving a slave address transmitted from the master CPU to the serial data line in place of the REQ signal and ACK data transmitted from the slave CPU to the master CPU in place of the ACK signal Is performed in a processing step at an interval different from the communication interval during normal data transmission and reception. Therefore, the slave CPU receives the slave address transmitted from the master CPU,
Since the communication interval when the ACK data transmitted from the slave CPU to the master CPU is received by the master CPU is different from the communication interval at the time of normal data transmission and reception, R
The signal lines for the EQ signal and the ACK signal are eliminated, and the input / output port of the CPU can be used effectively for other controls.

【0009】[0009]

【発明の実施の形態】次に、この発明による複数のスレ
ーブCPUを有するシリアルデータ通信方法の実施の形
態について、図面に基づき説明する。図1はこの発明に
よる複数のスレーブCPUを有するシリアルデータ通信
方法の第1実施の形態に適用される1個のマスタCPU
から複数のスレーブCPUにデータ送受信クロック信号
によりシリアル通信を行うシリアル通信システムの構成
を示すブロック図である。
Next, an embodiment of a serial data communication method having a plurality of slave CPUs according to the present invention will be described with reference to the drawings. FIG. 1 shows one master CPU applied to a first embodiment of a serial data communication method having a plurality of slave CPUs according to the present invention.
FIG. 3 is a block diagram showing a configuration of a serial communication system for performing serial communication with a plurality of slave CPUs using a data transmission / reception clock signal.

【0010】この図1に示すシリアル通信システムは、
複数のスレーブCPUとしてスレーブCPU1〜3の3
個が使用されている場合を例示している。この3個のス
レーブCPU1〜3に対して1個のマスタCPU4が使
用されており、シリアル通信のデータ出力端SOとデー
タ入力端SIとクロック信号出力端SCKをマスタCP
U4に対して並列に接続されたスレーブCPU1〜3に
接続されて構成される。
The serial communication system shown in FIG.
3 of slave CPUs 1-3 as a plurality of slave CPUs
FIG. 7 illustrates a case where a number is used. One master CPU 4 is used for the three slave CPUs 1 to 3, and the serial communication data output terminal SO, data input terminal SI, and clock signal output terminal SCK are connected to the master CP.
U4 is connected to slave CPUs 1-3 connected in parallel.

【0011】すなわち、マスタCPU4のデータ出力端
SOからデータ出力が3個のスレーブCPU1〜3の各
データ入力端SI1〜SI3にそれぞれ入力可能になっ
ている。また、3個のスレーブCPU1〜3の各データ
出力端SO1〜SO3からデータ出力がそれぞれマスタ
CPU4のデータ入力端SIに入力されるようになって
いる。マスタCPU4のクロック信号出力端SCKから
3個のスレーブCPU1〜3の各クロック信号入力端S
CK1〜SCK3にクロック信号が入力されるようにな
っている。
That is, data output from the data output terminal SO of the master CPU 4 can be input to each of the data input terminals SI1 to SI3 of the three slave CPUs 1 to 3, respectively. Further, data outputs from the data output terminals SO1 to SO3 of the three slave CPUs 1 to 3 are input to the data input terminal SI of the master CPU 4, respectively. From the clock signal output terminal SCK of the master CPU 4 to the clock signal input terminals S of the three slave CPUs 1 to 3
A clock signal is input to CK1 to SCK3.

【0012】次に、以上のように構成されているシリア
ル通信システムによりこの発明による複数のスレーブC
PUを有するシリアルデータ通信方法の第1実施の形態
の動作について図2のフローチャートに沿って説明す
る。この説明に際して、3個のスレーブCPU1〜3の
うち、説明を簡略にするために、スレーブCPU1を代
表してマスタCPU4とスレーブCPU1とのシリアル
データ通信を行うときの手順を図2のフローチャートに
沿って説明する。
Next, a plurality of slaves C according to the present invention are provided by the serial communication system configured as described above.
The operation of the first embodiment of the serial data communication method having a PU will be described with reference to the flowchart of FIG. In this description, among the three slave CPUs 1 to 3, a procedure for performing serial data communication between the master CPU 4 and the slave CPU 1 on behalf of the slave CPU 1 will be described with reference to the flowchart of FIG. Will be explained.

【0013】この図2は、CPU内通信処理フローを示
すフローチャートである。この図2には示していない
が、スレーブCPU2とスレーブCPU3のフローチャ
ートも基本的にスレーブCPU1と同じであり、スレー
ブCPU1のアドレスがスレーブCPU2のアドレス
と、スレーブCPU3のアドレスに、スレーブCPU1
のACKデータがスレーブCPU2のACKデータとス
レーブCPU3のACKデータに変わるだけである。
FIG. 2 is a flowchart showing a communication processing flow in the CPU. Although not shown in FIG. 2, the flowchart of the slave CPU 2 and the slave CPU 3 is basically the same as that of the slave CPU 1, and the address of the slave CPU 1 is set to the address of the slave CPU 2 and the address of the slave CPU 3.
ACK data of the slave CPU2 and ACK data of the slave CPU3.

【0014】通信が開始し、スレーブCPU1と通信を
するために、マスタCPU4はスレーブCPU1に第1
回目スレーブアドレスをシリアルデータライン上に送信
する(ステップA1)。この第1回目スレーブアドレス
を送信することにより、スレーブCPU1が受信割り込
み処理となり(ステップA2)、スレーブCPU1がこ
の第1回目スレーブアドレスを受信すると(ステップA
3)、スレーブCPU1はタイマをスタートさせる(ス
テップA4)。このとき、スレーブCPU2とスレーブ
CPU3では、自己のスレーブアドレスが選択されなか
ったことを判断し、受信作業を終了する。
When communication starts and the master CPU 4 communicates with the slave CPU 1, the master CPU 4
The second slave address is transmitted on the serial data line (step A1). By transmitting the first slave address, the slave CPU 1 performs a reception interrupt process (step A2), and when the slave CPU 1 receives the first slave address (step A).
3), the slave CPU 1 starts a timer (step A4). At this time, the slave CPU 2 and the slave CPU 3 determine that their slave addresses have not been selected, and end the receiving operation.

【0015】マスタCPU1では、上記タイマをスター
トさせてからマスタCPU4からの次のデータを受信し
ていない状態で(ステップA5)、タイマの経過時間が
TH以内(すなわち、タイマ値>TH)でない場合には
(ステップA6)、ステップA5とステップA6の処理
を繰り返している。この状態で、マスタCPU4では、
スレーブCPU1からのACKデータの受信がなければ
(ステップA7)、上記タイマの設定時間内のT時間待
機して(ステップA8)、再びステップA1の処理過程
に戻り、マスタCPU4は第2回目スレーブアドレスを
シリアルデータラインを通してスレーブCPU12に伝
送する。
If the master CPU 1 has not received the next data from the master CPU 4 since the start of the timer (step A5), and the elapsed time of the timer is not within TH (that is, the timer value> TH), (Step A6), the processes of Step A5 and Step A6 are repeated. In this state, the master CPU 4
If no ACK data has been received from the slave CPU 1 (step A7), the process waits for a time T within the set time of the timer (step A8), and returns to the process of step A1 again. Is transmitted to the slave CPU 12 through the serial data line.

【0016】スレーブCPU1では、タイマがスタート
してからの経過時間において、TL時間以上、TH時間
以内に再びこの第2回目スレーブアドレスを受信したと
きに(ステップA9)、スレーブCPU1内の図示しな
い送信バッファにスレーブCPU1のACKデータをセ
ットすることにより、スレーブCPU1はマスタCPU
4に対して送信許可状態にする(ステップA10)。な
お、このときのタイマの各時間は、TL<T<THとす
る。
In the slave CPU 1, when the second slave address is received again within the time TL and the time TH within the elapsed time from the start of the timer (step A9), a transmission (not shown) in the slave CPU 1 is performed. By setting the ACK data of the slave CPU 1 in the buffer, the slave CPU 1
4 is set in a transmission permission state (step A10). Note that each time of the timer at this time is TL <T <TH.

【0017】次いで、スレーブCPU1は、マスタCP
U4に対して、ACKデータを送信する(ステップA1
1)と、マスタCPU4では、このACKデータを受信
することにより(ステップA7)、マスタCPU4はス
レーブCPU1との間でシリアルデータ通信を行い(ス
テップA12)、同様にスレーブCPU1もマスタCP
U4との間でシリアルデータ通信を行う(ステップA1
3)。かくして、REQ信号の代わりとしてマスタCP
U4からシリアルデータライン上にスレーブアドレスを
送信し、スレーブCPU1からACK信号の代わりにA
CKデータを送受信するときの通信間隔を通常のデータ
送受信時の間隔と異なる間隔とするようにしているた
め、REQ信号とACK信号の信号線をなくすることが
できる。したがって、各CPUへの入出力ポートを他の
制御などに有効に使用可能となる。
Next, the slave CPU 1
ACK data is transmitted to U4 (step A1)
1) and receiving the ACK data (step A7), the master CPU 4 performs serial data communication with the slave CPU 1 (step A12). Similarly, the slave CPU 1
Serial data communication is performed with U4 (step A1).
3). Thus, instead of the REQ signal, the master CP
U4 sends a slave address on the serial data line, and slave CPU1 sends A instead of an ACK signal.
Since the communication interval when transmitting and receiving CK data is set to be different from the interval when transmitting and receiving normal data, signal lines for the REQ signal and the ACK signal can be eliminated. Therefore, the input / output port to each CPU can be effectively used for other control and the like.

【0018】また、上記のように、マスタCPU4とス
レーブCPU1とのシリアルデータ通信中にマスタCP
U4からスレーブCPU2のスレーブアドレスやスレー
ブCPU3のスレーブアドレスと同じデータを送信して
も通信の間隔により、スレーブCPU2や、スレーブC
PU3がマスタCPUと通信を始めることはない。マス
タCPU4がスレーブCPU2と通信するときはスレー
ブアドレスとスレーブCPU2のACKデータを、また
マスタCPU4はスレーブCPU3と通信するときは、
スレーブCPU3のスレーブアドレスとスレーブCPU
3のACKデータを使うことにより、マスタCPU4と
スレーブCPU1と通信を行う場合と同様に行うことが
できる。なお、この発明は上記実施の形態に限定され
ず、この発明の技術思想の範囲内において、実施の形態
を適宜変更され得ることは明らかである。
As described above, during the serial data communication between the master CPU 4 and the slave CPU 1, the master CP
Even if the same data as the slave address of the slave CPU 2 or the slave address of the slave CPU 3 is transmitted from U4, the slave CPU 2 or the slave C
PU3 does not start communicating with the master CPU. When the master CPU 4 communicates with the slave CPU 2, the slave address and the ACK data of the slave CPU 2 are used. When the master CPU 4 communicates with the slave CPU 3,
Slave address of slave CPU3 and slave CPU
By using the ACK data of No. 3, communication can be performed in the same manner as in the case where communication is performed between the master CPU 4 and the slave CPU 1. It is to be noted that the present invention is not limited to the above-described embodiment, and it is obvious that the embodiment can be appropriately modified within the scope of the technical idea of the present invention.

【0019】[0019]

【発明の効果】以上説明したように、この発明によれ
ば、マスタCPUと複数のスレーブCPUとの間にシリ
アルデータ通信を行う場合に、REQ信号の代わりとし
てマスタCPUからシリアルデータライン上に送信され
るスレーブアドレスとACK信号の代わりとしてスレー
ブCPUから送信されるACKデータを送受信するとき
の通信間隔を通常のデータ送受信時の通信間隔と異なる
間隔となるようにしたので、複数のスレーブCPUを有
するシリアル信号においてREQ信号とACK信号を使
用しないため、スレーブCPUを増やしても、使用する
CPUの入出力ポートの数を節約でき、多くのスレーブ
CPUを接続することができる。
As described above, according to the present invention, when serial data communication is performed between a master CPU and a plurality of slave CPUs, a signal is transmitted from the master CPU to a serial data line instead of the REQ signal. Since the communication interval when transmitting and receiving ACK data transmitted from the slave CPU as a substitute for the slave address and the ACK signal is different from the communication interval during normal data transmission and reception, a plurality of slave CPUs are provided. Since the REQ signal and the ACK signal are not used in the serial signal, even if the number of slave CPUs is increased, the number of input / output ports of the CPUs to be used can be reduced and many slave CPUs can be connected.

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

【図1】この発明による複数のスレーブCPUを有する
シリアルデータ通信方法の第1実施の形態に適用される
シリアル通信システムの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a serial communication system applied to a first embodiment of a serial data communication method having a plurality of slave CPUs according to the present invention.

【図2】この発明による複数のスレーブCPUを有する
シリアルデータ通信方法の第1実施の形態の動作を説明
するためのマスタCPUとスレーブCPUの通信処理フ
ローを示すフローチャートである。
FIG. 2 is a flowchart showing a communication processing flow between a master CPU and a slave CPU for describing an operation of a first embodiment of a serial data communication method having a plurality of slave CPUs according to the present invention.

【図3】従来の複数のスレーブCPUを有するシリアル
データ通信方法を適用するシリアルデータ通信システム
の構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a conventional serial data communication system to which a serial data communication method having a plurality of slave CPUs is applied.

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

1〜3……スレーブCPU、4……マスタCPU、S
I,SI1〜SI3……データ入力端、SO,SO1〜
SO3……データ出力端、SCK……クロック信号出力
端、SCK1〜SCK3……クロック信号入力端。
1-3 slave CPU, 4 master CPU, S
I, SI1 to SI3 ... data input terminals, SO, SO1
SO3: Data output terminal, SCK: Clock signal output terminal, SCK1 to SCK3: Clock signal input terminal.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 1個のマスタCPUから複数のスレーブ
CPUにデータ送受信クロック信号によりシリアル通信
を行うシステムにおいて、 REQ信号の代わりとしてマスタCPUからシリアルデ
ータライン上に送信されるスレーブアドレスと、ACK
信号の代わりとしてスレーブCPUから上記マスタCP
Uに送信されるACKデータとを送受信するときの通信
間隔を、通常のデータ送受信時の通信間隔と異なる間隔
とする処理工程で実行することを特徴とする複数のスレ
ーブCPUを有するシリアルデータ通信方法。
1. A system for performing serial communication from one master CPU to a plurality of slave CPUs using a data transmission / reception clock signal, wherein: a slave address transmitted from the master CPU to a serial data line instead of a REQ signal;
Instead of the signal, the slave CPU sends the master CP
A serial data communication method having a plurality of slave CPUs, wherein the communication interval when transmitting and receiving ACK data transmitted to the U is set to a different interval from the communication interval during normal data transmission and reception. .
【請求項2】 上記処理工程は、上記マスタCPUから
送信された第1回目スレーブアドレスが所定のスレーブ
CPUにより自己へのスレーブアドレスであることを確
認するとタイマをスタートさせる第1ステップと、 上記タイマの第1設定時間経過後上記マスタCPUが送
信した第2回目スレーブアドレスを上記第1設定時間よ
り遅い第2設定時間内に上記所定のスレーブCPUが受
信すると上記所定のスレーブCPUが上記マスタCPU
に第1回目ACKデータを送信して送信許可状態とする
第2ステップと、 上記第2設定時間経過後に上記マスタCPUが送信した
第3回目スレーブアドレスを上記所定のスレーブCPU
が受信して上記マスタCPUに第1回目ACKデータを
送信すると上記マスタCPUが上記所定のスレーブCP
Uとデータ通信を行う第3ステップと、 を含むことを特徴とする請求項1記載の複数のスレーブ
CPUを有するシリアルデータ通信方法。
2. The processing step includes: a first step of starting a timer when a first slave address transmitted from the master CPU confirms that the first slave address is a slave address to itself by a predetermined slave CPU; When the predetermined slave CPU receives the second slave address transmitted by the master CPU within a second set time later than the first set time after the elapse of the first set time, the predetermined slave CPU becomes the master CPU.
A second step of transmitting the first ACK data to the transmission permission state and transmitting the third slave address transmitted by the master CPU after the lapse of the second set time to the predetermined slave CPU.
When the master CPU receives and transmits the first ACK data to the master CPU, the master CPU
3. The serial data communication method having a plurality of slave CPUs according to claim 1, further comprising: a third step of performing data communication with U.
【請求項3】 上記所定のスレーブCPUは、上記タイ
マをスタートさせたとき、上記所定のスレーブCPUを
除く他のスレーブCPUは自己のスレーブアドレスが選
択されなかったことを判断して受信作業を終了すること
を特徴とする請求項2記載の複数のスレーブCPUを有
するシリアルデータ通信方法。
3. When the timer is started, the predetermined slave CPUs, other than the predetermined slave CPU, determine that their slave addresses have not been selected and end the receiving operation. 3. The serial data communication method having a plurality of slave CPUs according to claim 2, wherein:
JP11200255A 1999-07-14 1999-07-14 Serial data communicating method with multiple slave cpus Pending JP2001027991A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11200255A JP2001027991A (en) 1999-07-14 1999-07-14 Serial data communicating method with multiple slave cpus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11200255A JP2001027991A (en) 1999-07-14 1999-07-14 Serial data communicating method with multiple slave cpus

Publications (1)

Publication Number Publication Date
JP2001027991A true JP2001027991A (en) 2001-01-30

Family

ID=16421342

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11200255A Pending JP2001027991A (en) 1999-07-14 1999-07-14 Serial data communicating method with multiple slave cpus

Country Status (1)

Country Link
JP (1) JP2001027991A (en)

Similar Documents

Publication Publication Date Title
EP0258872B1 (en) Serial data transfer system
EP0141302B1 (en) Data processing system
EP0262429B1 (en) Data processor having a high speed data transfer function
US5915101A (en) Arbitration in the case of a delaying bus coupling
US3978451A (en) Controlling communications between computer devices over common bus
JP2002232508A (en) Electronic device and method for automatically selecting interface protocol used by the electronic device
US6175887B1 (en) Deterministic arbitration of a serial bus using arbitration addresses
JP4160068B2 (en) Digital programming interface between baseband processor and radio frequency integrated module
JP4222720B2 (en) Data transfer system and data transfer method
JPH0337221B2 (en)
JP3459075B2 (en) Synchronous serial bus method
JP2001027991A (en) Serial data communicating method with multiple slave cpus
JP2008135840A (en) Communication system and electronic control unit
KR100266963B1 (en) Method and apparatus for reducing latency rime on an interface by overlapping transmitted packets
JPH07200432A (en) Data communication method and system-linking device
JP3829906B2 (en) Microcomputer with built-in EEPROM interface
JP2578773B2 (en) Serial data transfer device
KR0184402B1 (en) Interrupt generating apparatus for i bus
JPH0477940B2 (en)
JP2743780B2 (en) Distributed processing equipment
JP3947223B2 (en) Method and apparatus for reducing waiting time on an interface by overlapping transmission packets
JP2001094438A (en) Serial interface circuit
JPH084276B2 (en) Full-duplex data transfer device
JPH09181750A (en) Data processing system
JPH10320345A (en) Bus controller