JPH0658655B2 - Serial I / O method - Google Patents

Serial I / O method

Info

Publication number
JPH0658655B2
JPH0658655B2 JP59251533A JP25153384A JPH0658655B2 JP H0658655 B2 JPH0658655 B2 JP H0658655B2 JP 59251533 A JP59251533 A JP 59251533A JP 25153384 A JP25153384 A JP 25153384A JP H0658655 B2 JPH0658655 B2 JP H0658655B2
Authority
JP
Japan
Prior art keywords
microprocessor
data
line
control function
serial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP59251533A
Other languages
Japanese (ja)
Other versions
JPS61131057A (en
Inventor
生雄 吉田
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 JP59251533A priority Critical patent/JPH0658655B2/en
Priority to CA000496510A priority patent/CA1242283A/en
Priority to EP85115176A priority patent/EP0183273B1/en
Priority to DE8585115176T priority patent/DE3586678T2/en
Priority to AU50551/85A priority patent/AU578988B2/en
Publication of JPS61131057A publication Critical patent/JPS61131057A/en
Priority to US07/204,945 priority patent/US4872003A/en
Priority to HK1032/93A priority patent/HK103293A/en
Publication of JPH0658655B2 publication Critical patent/JPH0658655B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Multi Processors (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は,自動車電話端局装置を含む,小型携帯が要求
される端末装置の装置構成ユニット間のインターフェー
ス方式に関する。
Description: TECHNICAL FIELD The present invention relates to an interface system between device constituent units of a terminal device including a car telephone terminal device that is required to be small in size.

〔従来の技術及び発明が解決しようとする問題点〕[Problems to be Solved by Prior Art and Invention]

従来,この種のインターフェースとしてシリアルインタ
ーフェースが使われているが,その実現方式としてRS23
2Cのような標準インターフェースを用いる場合と,マイ
クロプロセッサの汎用I/Oポートを介してアルゴリズ
ムをソフトウエアで行なう場合がある。前者はマイクロ
プロセッサで制御するためのソフトウエアの増加は少な
いが,標準インターフェース用として用意された汎用LS
1を必要とするためハード量の増加はまぬがれない所で
あった。後者は装置構成ユニットの機能動作のために用
意されたI/Oポートの未使用ポートを使ってシリアル
インターフェースを行なうため,ハード量の増加はない
が,ソフトウエアの負荷が大きく,高速でのシリアルイ
ンターフェースが実現困難でしばしば動作速度の点で問
題となることがあった。
Conventionally, a serial interface has been used as this kind of interface.
There are cases where a standard interface such as 2C is used, and cases where the algorithm is executed by software through the general-purpose I / O port of the microprocessor. The former does not increase the software for controlling with a microprocessor, but is a general-purpose LS prepared for a standard interface.
Since 1 is required, the increase in the amount of hardware cannot be avoided. The latter does not increase the amount of hardware because the serial interface is performed using unused I / O ports prepared for the functional operation of the device configuration unit, but the load on the software is large and the serial speed is high. The interface was difficult to implement and often caused problems in terms of operating speed.

最近,装置の小型化,携帯化の要求が高まるにつれてそ
の要求を満足するためには,ハード,ソフトともに現状
より極めて小さくすることが急務であり,それに適した
シリアルインターフェースが待ち望まれていた。
Recently, in order to meet the demands for downsizing and portability of devices, it is an urgent task to make both hardware and software extremely smaller than the current situation, and a serial interface suitable for them has been desired.

本発明の目的は、このような小型,携帯機器のインター
フェースとしての要求を十分満足するシリアルインター
フェース方式(即ちシリアルI/O方式)を提供するこ
とにある。
An object of the present invention is to provide a serial interface system (that is, a serial I / O system) that sufficiently satisfies the requirements as an interface for such small-sized and portable devices.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は,ハードウエア及びソフトウエアの双方が最も
小さくかつ高速で動作可能なシリアルインターフェース
を実現するため,最近,マイクロプロセッサに内蔵され
るようになったマルチCPUのためのクロック,データ入
力,データ出力のシリアルI/O線を使うことを第1の
手段とし,さらにインターフェースとして前記シリアル
I/O線に加えて制御線を1本付加してシリアルI/O
線の制御機能をもつプログラムをマイクロプロセッサの
1つに搭載することにより,シリアルインターフェース
のバス化を可能にし,同じインターフェース線上に複数
のマイクロプロセッサを接続できるようにしたため,信
号線数を従来のシリアルインターフェースのように1対
1で用意する必要がなくなり,1対多又は多対多の接続
を可能にし,拡張性をもたせることができる。
The present invention realizes a serial interface in which both hardware and software are the smallest and can operate at high speed, and therefore clocks, data inputs, and data for multiple CPUs, which have recently been incorporated in microprocessors. The first means is to use an output serial I / O line, and a control line is added to the serial I / O line as an interface to add a serial I / O line.
By installing a program with a line control function in one of the microprocessors, the serial interface can be made into a bus, and multiple microprocessors can be connected on the same interface line. There is no need to prepare one-to-one like an interface, and one-to-many or many-to-many connections can be made possible and expandability can be provided.

また制御機能を有するマイクロプロセッサからシリアル
I/O線のうちクロックを出力し,他のマイクロプロセ
ッサはこのクロックに同期してデータの入出力を行なう
ためアルゴリズムが簡単で高速動作に対し十分信頼性を
保証できるシリアルインターフェース方式(即ちシリア
ルI/O方式)である。
Further, the microprocessor having the control function outputs the clock of the serial I / O line, and the other microprocessors input and output data in synchronization with this clock, so that the algorithm is simple and the reliability is high enough for high-speed operation. It is a guaranteed serial interface method (that is, a serial I / O method).

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の実施例によるシリアルインターフェー
スの構成を示すもので,1は制御機能を有するマイクロ
プロセッサであり,2及び3は本発明のシリアルインタ
ーフェースを使用するマイクロプロセッサであり,それ
ぞれ設計された機能処理を行ない,必要なデータの入出
力をシリアルインターフェースを通して行なう。4〜7
は上記マイクロプロセッサ1〜3を結ぶシリアルI/O
線である。4はマイクロプロセッサ1から見てシリアル
入力データ線であり,プロセッサ2及び3から見ればシ
リアル出力データ線となる。5はマイクロプロセッサ1
から見てシリアル出力データ線であり、マイクロプロセ
ッサ2及び3から見ればシリアル入力データ線となって
いる。6は前記シリアルデータ線4及び5によって送受
されるデータのための同期クロック線であり,この同期
クロックはマイクロプロセッサ1が出力し,マイクロプ
ロセッサ2及び3は入力信号として扱う。このクロック
に同期してシリアルデータ線4及び5に送受されるデー
タを処理するものとする。7はマイクロプロセッサ2及
び3がシリアルデータの出力を行ないたい時にその出力
信号でこの信号線をアクティブにし,制御機能をもつマ
イクロプロセッサ1にシリアルデータ出力のための制御
要求を通知する制御線である。
FIG. 1 shows a configuration of a serial interface according to an embodiment of the present invention, in which 1 is a microprocessor having a control function, and 2 and 3 are microprocessors using the serial interface of the present invention, which are designed respectively. It performs the same functional processing and inputs / outputs the necessary data through the serial interface. 4-7
Is a serial I / O connecting the microprocessors 1 to 3
It is a line. Reference numeral 4 denotes a serial input data line when viewed from the microprocessor 1, and a serial output data line when viewed from the processors 2 and 3. 5 is a microprocessor 1
It is a serial output data line when viewed from above, and is a serial input data line when viewed from the microprocessors 2 and 3. Reference numeral 6 is a synchronous clock line for data transmitted / received by the serial data lines 4 and 5, and the synchronous clock is output by the microprocessor 1 and the microprocessors 2 and 3 treat it as an input signal. It is assumed that the data transmitted and received on the serial data lines 4 and 5 are processed in synchronization with this clock. Reference numeral 7 is a control line for activating the signal line by its output signal when the microprocessors 2 and 3 want to output serial data and notifying the microprocessor 1 having a control function of a control request for serial data output. .

第1図よりわかるように,マイクロプロセッサの増設
は,マイクロプロセッサ2又は3に内蔵されているシリ
アルインターフェースのためのソフトウエアと同じソフ
トウエアを持つマイクロプロセッサをシリアルI/O線
4〜7に接続することにより,簡単に行なうことができ
る。
As can be seen from FIG. 1, the microprocessor is added by connecting a microprocessor having the same software for the serial interface built in the microprocessor 2 or 3 to the serial I / O lines 4 to 7. By doing so, it can be done easily.

次に,第2図のタイミングチャートを用いて,第1図の
シリアルI/O線4〜7の動作を説明する。なお,シリ
アル入力データ線4の信号をSI,シリアル出力データ
線5の信号をSO,同期クロック線6の信号をSCK,制
御線7の信号をREQとして以下説明をするものとする。
また,第1図の実施例において,マイクロプロセッサは
最大で16個接続可能で,マイクロプロセッサ間のシリ
アルデータ転送バイト数は最大16バイトであるとして
説明を行なう。
Next, the operation of the serial I / O lines 4 to 7 in FIG. 1 will be described with reference to the timing chart in FIG. In the following description, the signal on the serial input data line 4 is SI, the signal on the serial output data line 5 is SO, the signal on the synchronous clock line 6 is SCK, and the signal on the control line 7 is REQ.
Further, in the embodiment shown in FIG. 1, a maximum of 16 microprocessors can be connected, and the maximum number of serial data transfer bytes between the microprocessors is 16 bytes.

第2図において,シリアル出力データSOは8ビットを
1フレームとして行なう場合を示しており,同期クロッ
クSCKはその立上りポイントでシリアル出力データSO
をサンプリングすればよいようなタイミングで8個送出
される。第2図は,制御機能を有するマイクロプロセッ
サ1よりマイクロプロセッサ2又は3にデータを転送す
る場合を示しており,この場合に制御線REQはインアク
ティブのままであり,シリアル入力データSIにはデー
タ信号は発生しない。データの転送はシリアル出力デー
タSOによりマイクロプロセッサ2及び3の両方に送出
される。マイクロプロセッサ2及び3はシリアル出力デ
ータSOを常時受信しているが,次に示す制御アルゴリ
ズムにより自分に必要なデータ信号かを判断して内部に
取り込むかどうかを判断するものである。即ち,転送手
順としては,マイクロプロセッサ1より最初のフレーム
で送出される8ビットデータは,転送先のID番号8と転
送バイト数9を内容とするもので,本実施例では8及び
9はそれぞれ4ビットずつとしてある。続くフレームよ
り,最初のフレームで示したデータ数のデータをシリア
ル出力データSOとして同期クロックSCKにより送出す
る。この送出データを第2図の10に示す。送出データ
を複数のプロセッサに対して送出する場合は,以上の動
作を必要な回数くりかえす。また,接続されているマイ
クロプロセッサすべてに対して同じデータ信号を送出す
る場合は第1フレームに送出するID番号9にあらかじ
め,その内容の番号を割り振っておくことにより,行な
うことができる。
In FIG. 2, the serial output data SO shows the case where 8 bits are used as one frame, and the synchronous clock SCK is the serial output data SO at the rising point thereof.
8 are transmitted at a timing such that sampling is required. FIG. 2 shows a case where data is transferred from the microprocessor 1 having a control function to the microprocessor 2 or 3, in which case the control line REQ remains inactive and the serial input data SI contains data. No signal is generated. Data transfers are sent to both microprocessors 2 and 3 by serial output data SO. Although the microprocessors 2 and 3 always receive the serial output data SO, the microprocessor 2 and 3 determine whether or not the data signal is necessary for themselves by the control algorithm shown below and determine whether or not to take it in. That is, as the transfer procedure, the 8-bit data sent from the microprocessor 1 in the first frame has the ID number 8 and the transfer byte number 9 of the transfer destination, and in this embodiment, 8 and 9 are respectively. There are 4 bits each. From the subsequent frame, the data of the number of data shown in the first frame is transmitted as the serial output data SO by the synchronous clock SCK. This transmission data is shown at 10 in FIG. When sending data to multiple processors, repeat the above operation as many times as necessary. Further, when the same data signal is sent to all the connected microprocessors, it can be performed by allocating the number of the content to the ID number 9 sent in the first frame in advance.

次に,マイクロプロセッサ3より,制御機能を有するマ
イクロプロセッサ1にデータを送出する場合のアルゴリ
ズムを,第3図のタイミングチャートを用いて説明す
る。第3図において,マイクロプロセッサ3はデータの
送出要求として制御線REQをアクティブにすると,制御
機能を有するマイクロプロセッサ1はこれを認識し,デ
ータ送出要求がどのマイクロプロセッサからあがってい
るかをポーリングするため,まず,シリアルデータ出力
SOにマイクロプロセッサ2に対して送出要求確認信号
11を送出する。最初にマイクロプロセッサ2に対して
信号11を送出するのはID番号がマイクロプロセッサ
3よりも若いからである。送出確認信号11を送出した
後,同期クロックSCKを8ビット送出することで,その
ID番号のマイクロプロセッサがシリアル入力データS
Iに送出要求を出しているかどうかを調べる。第3図に
おいては,マイクロプロセッサ2は送出要求がなく,同
期クロックSCKに同期してシリアル入力データSIにデ
ータを出力しないため,制御機能を有するマイクロプロ
セッサ1はマイクロプロセッサ2から送出要求が出てい
ないことを認識できる。つづいて,マイクロプロセッサ
1はマイクロプロセッサ3に対して送出要求確認信号1
2を同様に送出し,続いて同期クロックSCKを8ビット
送出する。この場合,マイクロプロセッサ3は送出要求
があるのでシリアル入力データSIに送出要求信号13
を出力する。送出要求信号13には,マイクロプロセッ
サ3のID番号と送出バイト数が内容として含まれてい
るため,マイクロプロセッサ1は同期クロックSCKを送
出してそのバイト数だけマイクロプロセッサ3よりの送
出データを受信する。マイクロプロセッサ3はデータの
送出が完了すると,制御線REQをインアクティブにし,
送出が終了したことを他のマイクロプロセッサに通知し
て送出アルゴリズムを終了する。制御機能を有するマイ
クロプロセッサ1は上記のようにして接続されている。
複数のマイクロプロセッサからの送出データを受信する
ことができるので,1対多の接続が可能である。
Next, an algorithm for sending data from the microprocessor 3 to the microprocessor 1 having a control function will be described with reference to the timing chart of FIG. In FIG. 3, when the microprocessor 3 activates the control line REQ as a data transmission request, the microprocessor 1 having a control function recognizes this and polls which microprocessor the data transmission request is from. First, the sending request confirmation signal 11 is sent to the serial data output SO to the microprocessor 2. The signal 11 is first sent to the microprocessor 2 because the ID number is smaller than that of the microprocessor 3. After sending the sending confirmation signal 11, the microprocessor of the ID number sends the serial input data S by sending the synchronous clock SCK of 8 bits.
It is checked whether or not a transmission request is issued to I. In FIG. 3, since the microprocessor 2 has no transmission request and does not output data to the serial input data SI in synchronization with the synchronization clock SCK, the microprocessor 1 having a control function issues a transmission request from the microprocessor 2. Can recognize that there is no. Subsequently, the microprocessor 1 sends a transmission request confirmation signal 1 to the microprocessor 3.
2 is similarly transmitted, and then 8 bits of the synchronization clock SCK are transmitted. In this case, since the microprocessor 3 has a transmission request, the transmission request signal 13 is added to the serial input data SI.
Is output. Since the sending request signal 13 includes the ID number of the microprocessor 3 and the number of sending bytes as contents, the microprocessor 1 sends the synchronization clock SCK and receives the sending data from the microprocessor 3 for that number of bytes. To do. When the data transmission is completed, the microprocessor 3 inactivates the control line REQ,
It notifies the other microprocessor that the transmission is completed, and ends the transmission algorithm. The microprocessor 1 having a control function is connected as described above.
Since data sent from a plurality of microprocessors can be received, a one-to-many connection is possible.

次に別の実施例としてマイクロプロセッサ2よりマイク
ロプロセッサ3にデータを送出する場合について第4図
を参照して説明する。まず,マイクロプロセッサ2は第
3図において説明したのと同様に制御線REQをアクティ
ブにし,送出要求をマイクロプロセッサ1に通知する。
マイクロプロセッサ1はポーリングを開始し,マイクロ
プロセッサ2に対する送出要求確認信号14を送出す
る。マイクロプロセッサ2はこれに応えて送出要求信号
15をシリアル入力データSIに送出するため,マイク
ロプロセッサ1はマイクロプロセッサ2より送出要求が
あることを認識できる。さらに送出要求信号15には,
マイクロプロセッサ2のID番号とマイクロプロセッサ
3のID番号を含むことから,マイクロプロセッサ2よ
りマイクロプロセッサ3に対してデータの転送が必要な
ことも同時に認識できる。つづいてマイクロプロセッサ
1とマイクロプロセッサ2は連動してシリアルI/O線
のうちシリアル入力データSIとシリアル出力データS
Oの切換え動作を行なう。すなわち,今まで,制御機能
を有するマイクロプロセッサ1が出力し,マイクロプロ
セッサ2及び3が入力として使っていたシリアル出力デ
ータSO線を,マイクロプロセッサ2が出力として使用
でき,マイクロプロセッサ1及び3が入力として使用で
きるように,また切換えが行なわれると同時に,マイク
ロプロセッサ1が入力として使い,マイクロプロセッサ
2及び3が出力として使っていたシリアル入力データS
I線を,マイクロプロセッサ2が入力して使用でき,マ
イクロプロセッサ1及び3が出力として使用できるよう
に切換えが行なわれる。その後,マイクロプロセッサ1
より同期クロックSCKを8ビット送出した際,マイクロ
プロセッサ2はシリアル出力データSOに送出先のID
番号と送出バイト数を内容とする信号16を送出するこ
とで,マイクロプロセッサ3に対してデータの受信を行
なわせることを可能にする。マイクロプロセッサ1はシ
リアルI/O線の切換えにより上記信号16の送出先I
D番号と送出バイト数を認識できるので,そのバイト数
分の同期クロックSCKを送出し,マイクロプロセッサ2
よりマイクロプロセッサ3にデータの転送を行なわせた
後,マイクロプロセッサ2が送出を終了し,シリアルI
/O線のSI及びSOをもとの状態に切換え,制御線RE
Qをインアクティブに戻したのを確認して,シリアルI
/O線のSI及びSOをもとに切換えてシーケンスを完
了する。上記第4図で示したアルゴリズムは第3図で説
明したものに比べて多少異なってはいるが,この場合は
全く同一のハード構成でありながら, 制御機能をもたないマイクロプロセッサ同志のデータ転
送をも可能にすることから,多対多の接続も実現できる
ものである。
Next, as another embodiment, a case of transmitting data from the microprocessor 2 to the microprocessor 3 will be described with reference to FIG. First, the microprocessor 2 activates the control line REQ in the same manner as described with reference to FIG. 3, and notifies the microprocessor 1 of the transmission request.
The microprocessor 1 starts polling and sends a send request confirmation signal 14 to the microprocessor 2. In response to this, the microprocessor 2 sends the send request signal 15 to the serial input data SI, so that the microprocessor 1 can recognize that there is a send request from the microprocessor 2. Further, in the transmission request signal 15,
Since the ID number of the microprocessor 2 and the ID number of the microprocessor 3 are included, it can be simultaneously recognized that the data transfer from the microprocessor 2 to the microprocessor 3 is necessary. Subsequently, the microprocessor 1 and the microprocessor 2 are interlocked with each other, and serial input data SI and serial output data S of the serial I / O lines are connected.
O switching operation is performed. That is, the serial output data SO line which has been output by the microprocessor 1 having the control function and has been used as an input by the microprocessors 2 and 3 until now can be used as an output by the microprocessor 2 and can be input by the microprocessors 1 and 3. Serial input data S used as an input by the microprocessor 1 and as an output by the microprocessors 2 and 3 at the same time when the switching is performed.
The switching is performed so that the I-line can be used by the microprocessor 2 as an input and the microprocessors 1 and 3 can use it as an output. Then microprocessor 1
When the 8-bit synchronous clock SCK is transmitted, the microprocessor 2 sends the serial output data SO with the ID of the transmission destination.
By sending out a signal 16 containing the number and the number of sending bytes, it is possible to cause the microprocessor 3 to receive data. The microprocessor 1 switches the serial I / O line to the destination I of the signal 16 described above.
Since the D number and the number of transmitted bytes can be recognized, the synchronous clock SCK for that number of bytes is transmitted, and the microprocessor 2
After making the microprocessor 3 transfer the data, the microprocessor 2 finishes the transmission and the serial I
Switch SI / SO of / O line to the original state, and control line RE
After confirming that Q has been returned to inactive, serial I
The sequence is completed by switching based on SI and SO of the / O line. Although the algorithm shown in FIG. 4 is slightly different from the algorithm described in FIG. 3, in this case, the data transfer of microprocessors having the same hardware configuration but no control function is possible. It also enables many-to-many connections.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明では,マイクロプロセッサに
内蔵されているマルチCPU方式のためのシリアルI/O
線に加え,制御線を1本追加することにより,シリアル
インターフェースのバス化を可能にし,ハード,ソフト
ウエアの最も少ないかつ拡張性のあるシリアルインター
フェースを実現できるものである。
As described above, according to the present invention, the serial I / O for the multi-CPU system built in the microprocessor is used.
By adding one control line in addition to the line, the serial interface can be made into a bus, and the serial interface with the least hardware and software and with expandability can be realized.

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

第1図は本発明の一実施例を部分的に示したブロック
図,第2図は第1図に示したシリアルI/O線の使用例
を示すタイミングチャート,第3図は第1図に示したシ
リアルI/O線の別の使用例を示すタイミングチャー
ト,第4図は第1図に示したシリアルI/O線の更に別
の使用例を示すタイミングチャートである。 1……制御機能を有するマイクロプロセッサ,2……シ
リアルI/O線に接続されたマイクロプロセッサ(1),
3……シリアルI/O線に接続されたマイクロプロセッ
サ(2),4……シリアル入力データ線,5……シリアル
出力データ線,6……同期クロック線,7……制御線,
8……シリアル出力データ中のID番号を示す4ビッ
ト,9……シリアル出力データ中の送出バイト数を示す
4ビット,10……シリアル出力データを使って転送さ
れるデータ,11……送出要求確認信号(1),12……
送出要求確認信号(2),13……送出要求信号,14…
…送出要求確認信号,15……送出要求信号,16……
送出先のID番号と送出バイト数を含むシリアル出力デ
ータ。
FIG. 1 is a block diagram partially showing an embodiment of the present invention, FIG. 2 is a timing chart showing an example of use of the serial I / O line shown in FIG. 1, and FIG. 3 is shown in FIG. FIG. 4 is a timing chart showing another usage example of the serial I / O line shown in FIG. 4, and FIG. 4 is a timing chart showing still another usage example of the serial I / O line shown in FIG. 1 ... Microprocessor having control function, 2 ... Microprocessor connected to serial I / O line (1),
3 ... Microprocessor (2) connected to serial I / O line, 4 ... Serial input data line, 5 ... Serial output data line, 6 ... Synchronous clock line, 7 ... Control line,
8 ... 4 bits indicating the ID number in the serial output data, 9 ... 4 bits indicating the number of sending bytes in the serial output data, 10 ... Data transferred using the serial output data, 11 ... Sending request Confirmation signal (1), 12 ...
Transmission request confirmation signal (2), 13 ... Transmission request signal, 14 ...
… Sending request confirmation signal, 15 …… Sending request signal, 16 ……
Serial output data including the ID number of the transmission destination and the number of transmission bytes.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】複数のマイクロプロセッサを有するマルチ
CPUシステムのためのシリアルインターフェースとし
て、クロック線、データ入力線、データ出力線を含むシ
リアルI/O線を用いる前記マルチCPUシステムにお
いて、前記複数のプロセッサのうちの1つに、前記シリ
アルI/O線を制御するためのプログラムを搭載するこ
とによって、制御機能を有するマイクロプロセッサと成
し、さらに前記シリアルI/O線に加え、制御を行なう
ための制御線を追加することにより、該制御線と前記制
御機能を有するマイクロプロセッサによって前記シリア
ルI/O線をバス化して共用することを可能にするとと
もに、前記制御機能を有するマイクロプロセッサ以外の
複数のマイクロプロセッサは、データの受信を常時行な
い、データの送信の際は前記制御線をアクティブ状態に
することにより、前記制御機能を有するマイクロプロセ
ッサに送信の要求を通知して前記制御機能を有するマイ
クロプロセッサに、前記シリアルインターフェースの制
御を行なわせた後にデータの送信を行なうことにより前
記シリアルインターフェースをバス化して使用するシリ
アルI/O方式であって、前記シリアルI/O線のう
ち、前記クロック線には、前記制御機能を有するマイク
ロプロセッサがクロックを前記制御線のアクティブ状態
に応答して他のマイクロプロセッサに出力し、前記シリ
アルI/O線のうち、データ入力線、データ出力線には
前記制御機能を有するマイクロプロセッサが前記クロッ
クに同期して送出要求確認信号を前記他のマイクロプロ
セッサに出力し、前記他のマイクロプロセッサは、前記
クロックに同期して送出要求信号を前記制御機能を有す
るマイクロプロセッサに出力し、さらにデータ入力、デ
ータ出力も前記クロックに同期して行なうことを特徴と
するシリアルI/O方式。
1. A multi-CPU system in which a serial I / O line including a clock line, a data input line, and a data output line is used as a serial interface for a multi-CPU system having a plurality of microprocessors. By installing a program for controlling the serial I / O line in one of them, a microprocessor having a control function is formed, and in addition to the serial I / O line, control is performed. By adding a control line, the control line and the microprocessor having the control function can share the serial I / O line by forming a bus, and a plurality of microprocessors other than the microprocessor having the control function can be used. The microprocessor always receives data and sends data In this case, by activating the control line, the microprocessor having the control function is notified of the transmission request, and the microprocessor having the control function is caused to control the serial interface before transmitting the data. Is a serial I / O system in which the serial interface is used as a bus by using the above-mentioned method, and a microprocessor having the control function supplies a clock to the control line to the clock line of the serial I / O lines. Output to another microprocessor in response to the active state, and the microprocessor having the control function checks the transmission request for the data input line and the data output line of the serial I / O lines in synchronization with the clock. The signal is output to the other microprocessor and the other microprocessor is Processor is a serial I / O system, wherein the sending request signal in synchronization with the clock output to microprocessor with the control function performs further data input, the data output in synchronism with the clock.
【請求項2】前記制御機能を有するマイクロプロセッサ
以外のプロセッサから、前記制御機能を有するマイクロ
プロセッサにデータを送出する場合、前記制御線をアク
ティブにして送出要求のあることを前記制御機能を有す
るマイクロプロセッサに通知し、前記制御機能を有する
マイクロプロセッサより、前記制御機能を有するマイク
ロプロセッサ以外のマイクロプロセッサに割りふられた
ID番号を1個づつ順次含むポーリングデータを前記ク
ロックと同期させて送出させ、前記制御線をアクティブ
にしたプロセッサは自分に対するポーリングデータを受
信した時に、その応答として自分のID番号と送出デー
タ数を含む応答信号を前記制御機能を有するマイクロプ
ロセッサが出力するクロックに同期させて送出すること
により、前記制御機能を有するマイクロプロセッサに前
記制御線をアクティブにしたマイクロプロセッサのID
番号と送出データ数を確認させるとともに、前記制御機
能を有するマイクロプロセッサは送出データ数に相当す
るクロックを送出して前記送出要求を発生したマイクロ
プロセッサからの送出データの受信を行なう特許請求の
範囲第1項に記載のシリアルI/O方式。
2. When data is transmitted from a processor other than the microprocessor having the control function to the microprocessor having the control function, the control line is activated to indicate that there is a transmission request. Notifying the processor and causing the microprocessor having the control function to send polling data sequentially including one by one the ID numbers assigned to the microprocessors other than the microprocessor having the control function in synchronization with the clock, When the processor which has activated the control line receives polling data for itself, in response to the polling data, a response signal including its own ID number and the number of data to be transmitted is transmitted in synchronization with the clock output from the microprocessor having the control function. By controlling the ID microprocessors activate the control line to the microprocessor Capable
The number of data and the number of transmitted data are confirmed, and the microprocessor having the control function transmits a clock corresponding to the number of transmitted data to receive the transmitted data from the microprocessor that has issued the transmission request. The serial I / O method described in item 1.
【請求項3】前記制御機能を有するマイクロプロセッサ
以外のマイクロプロセッサ間においてデータの転送を行
なう場合、送出要求のあるマイクロプロセッサは前記制
御線をアクティブにし、前記制御機能を有するマイクロ
プロセッサに送出要求のあることを前記制御機能を有す
るマイクロプロセッサが出力するクロックに同期させて
通知し、前記制御機能を有するマイクロプロセッサよ
り、前記制御機能を有するマイクロプロセッサ以外のマ
イクロプロセッサに割りふられたID番号を1個づつ順
次含むポーリングデータを前記クロックに同期させて送
出し、前記制御線をアクティブにしたマイクロプロセッ
サは自分に対するポーリングデータを受信した時に、そ
の応答として自分のID番号とデータ転送先のマイクロ
プロセッサのID番号を含む応答信号を前記クロックに
同期させて送出することにより、前記制御機能を有する
マイクロプロセッサに前記制御線をアクティブにしたマ
イクロプロセッサのID番号とデータ転送先のマイクロ
プロセッサのID番号を認識させるとともに、前記シリ
アルI/O線の制御を、前記制御機能を有するマイクロ
プロセッサから前記制御線をアクティブにしたマイクロ
プロセッサに移させ、前記制御線をアクティブにしたマ
イクロプロセッサはデータ転送先のID番号と送出デー
タ数を含む送出要求信号を前記クロックに同期して送出
し転送先のマイクロプロセッサに知らせるとともに、前
記制御機能を有するマイクロプロセッサにも上記送出要
求信号を受信させ、データ転送に必要なクロックを供給
させてデータの転送を行なう特許請求の範囲第1項に記
載のシリアルI/O方式。
3. When data is transferred between microprocessors other than the microprocessor having the control function, the microprocessor having the transmission request activates the control line and sends the transmission request to the microprocessor having the control function. The fact that there is something is notified in synchronization with the clock output by the microprocessor having the control function, and the ID number assigned by the microprocessor having the control function to a microprocessor other than the microprocessor having the control function is 1 The polling data sequentially including one by one is transmitted in synchronization with the clock, and when the microprocessor which activated the control line receives the polling data for itself, as a response, its own ID number and the microprocessor of the data transfer destination are sent. ID number By sending out a response signal including the signal in synchronization with the clock, the microprocessor having the control function is made to recognize the ID number of the microprocessor which activated the control line and the ID number of the microprocessor of the data transfer destination. , The control of the serial I / O line is transferred from the microprocessor having the control function to the microprocessor that activates the control line, and the microprocessor that activates the control line sends the ID number and the data transfer destination. A send request signal including the number of data is sent in synchronization with the clock to notify the transfer destination microprocessor, and also the microprocessor having the control function receives the send request signal to supply the clock required for data transfer. Request for data transfer Range Serial I / O method described in paragraph 1.
【請求項4】前記制御機能を有するマイクロプロセッサ
以外のマイクロプロセッサ間においてデータの転送を行
なう場合、送出要求のあるマイクロプロセッサは前記制
御線をアクティブにし、前記制御機能を有するマイクロ
プロセッサに送出要求のあることを通知し、前記制御機
能を有するマイクロプロセッサより、前記シリアルI/
O線に接続された複数のマイクロプロセッサに割りふら
れたID番号を含むポーリングデータを前記制御機能を
有するマイクロプロセッサの出力するクロックに同期さ
せて送出させ、前記制御線をアクティブにしたマイクロ
プロセッサは自分に対するポーリングデータを受信した
時に、その応答として自分のID番号とデータ転送先の
マイクロプロセッサのID番号を含む応答信号を前記ク
ロックに同期させて送出することにより、前記制御機能
を有するマイクロプロセッサに前記制御線をアクティブ
にしたマイクロプロセッサのID番号とデータ転送先の
マイクロプロセッサのID番号を認識させるとともに、
シリアルI/O線の制御を、前記制御機能を有するマイ
クロプロセッサから前記制御線をアクティブにしたマイ
クロプロセッサに移させ前記制御線をアクティブにした
マイクロプロセッサはデータ転送先のID番号と送出デ
ータ数を含む送出要求信号を前記クロックに同期して送
出し転送先のマイクロプロセッサに知らせるとともに、
前記制御機能を有するマイクロプロセッサにも上記送出
要求信号を受信させ、データ転送に必要なクロックを供
給させてデータの転送を行なう特許請求の範囲第1項又
は第2項記載のシリアルI/O方式。
4. When data is transferred between microprocessors other than the microprocessor having the control function, the microprocessor having the transmission request activates the control line to send the transmission request to the microprocessor having the control function. The microprocessor having the control function notifies the serial I / O
A microprocessor that activates the control line by sending polling data including ID numbers assigned to a plurality of microprocessors connected to the O line in synchronization with a clock output from the microprocessor having the control function is When the polling data for itself is received, a response signal including its own ID number and the ID number of the microprocessor of the data transfer destination is sent as a response in synchronization with the clock, thereby sending to the microprocessor having the control function. The ID number of the microprocessor that activated the control line and the ID number of the microprocessor of the data transfer destination are recognized, and
The control of the serial I / O line is transferred from the microprocessor having the control function to the microprocessor that activates the control line, and the microprocessor that activates the control line determines the ID number of the data transfer destination and the number of transmitted data. A sending request signal including the signal is sent in synchronization with the clock to notify the transfer destination microprocessor,
The serial I / O system according to claim 1 or 2, wherein a microprocessor having the control function is made to receive the transmission request signal, and a clock necessary for data transfer is supplied to transfer the data. .
JP59251533A 1984-11-30 1984-11-30 Serial I / O method Expired - Fee Related JPH0658655B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP59251533A JPH0658655B2 (en) 1984-11-30 1984-11-30 Serial I / O method
CA000496510A CA1242283A (en) 1984-11-30 1985-11-29 Serial interface system flexibly applicable to a one- to-plurality connection
EP85115176A EP0183273B1 (en) 1984-11-30 1985-11-29 Serial interface system flexibly applicable to a one-to-plurality connection
DE8585115176T DE3586678T2 (en) 1984-11-30 1985-11-29 FLEXIBLE APPLICABLE SERIAL INTERFACE SYSTEM FOR A CONNECTION BETWEEN ONE AND MULTIPLE UNITS.
AU50551/85A AU578988B2 (en) 1984-11-30 1985-12-02 Serial interface system flexibly applicable to a one-to- plurality connection
US07/204,945 US4872003A (en) 1984-11-30 1988-06-01 Serial interface system flexibly applicable to a one-to-plurality connection
HK1032/93A HK103293A (en) 1984-11-30 1993-09-30 Serial interface system flexibly applicable to a one-to-plurality connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59251533A JPH0658655B2 (en) 1984-11-30 1984-11-30 Serial I / O method

Publications (2)

Publication Number Publication Date
JPS61131057A JPS61131057A (en) 1986-06-18
JPH0658655B2 true JPH0658655B2 (en) 1994-08-03

Family

ID=17224223

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59251533A Expired - Fee Related JPH0658655B2 (en) 1984-11-30 1984-11-30 Serial I / O method

Country Status (1)

Country Link
JP (1) JPH0658655B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2744865B2 (en) * 1991-04-30 1998-04-28 インターナショナル・ビジネス・マシーンズ・コーポレイション Serial channel adapter
JP2008140623A (en) * 2006-11-30 2008-06-19 Japan Science & Technology Agency Electron beam source device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54114931A (en) * 1978-02-28 1979-09-07 Toshiba Corp Bus scramble system

Also Published As

Publication number Publication date
JPS61131057A (en) 1986-06-18

Similar Documents

Publication Publication Date Title
JPH0475700B2 (en)
JPH0658655B2 (en) Serial I / O method
JP2002189705A (en) Multiprocessor arrangement
JPH10161973A (en) Bus controller and bus unit
JPS6126706B2 (en)
JPH0644763B2 (en) Data transfer method
EP0577431A2 (en) Method of resetting coupled modules and a system using the method
JPS6145271B2 (en)
JPS63227149A (en) Communication control method in loop communication system
JP2564550B2 (en) Integrated exchange
JP3399776B2 (en) Computer and method for transferring peripheral device control data in computer
JPS6041346A (en) Terminal equipment
JP2573332B2 (en) Data transfer control method
JP2000132506A (en) Communication device
JPH0583297A (en) Packet transfer system
JP2616010B2 (en) Packet network
JPS63288317A (en) Printer
KR930003450B1 (en) Data communication circuit between processors
JPS6086643A (en) Local area network system
JPH0540728A (en) Bus control method
JPS63289664A (en) Multi-cpu device
JPS6124739B2 (en)
JPH04263344A (en) Card identification number distributing device
JPS63303535A (en) Communication control system
JPH0225963A (en) Inter-processor communication system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees