JPH0546549A - Inter-microcomputer synchronizing serial communication system - Google Patents

Inter-microcomputer synchronizing serial communication system

Info

Publication number
JPH0546549A
JPH0546549A JP3199525A JP19952591A JPH0546549A JP H0546549 A JPH0546549 A JP H0546549A JP 3199525 A JP3199525 A JP 3199525A JP 19952591 A JP19952591 A JP 19952591A JP H0546549 A JPH0546549 A JP H0546549A
Authority
JP
Japan
Prior art keywords
microcomputer
communication
master
slave
signal
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
JP3199525A
Other languages
Japanese (ja)
Inventor
Akira Kusakari
朗 草苅
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.)
Denso Ten Ltd
Original Assignee
Denso Ten 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 Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP3199525A priority Critical patent/JPH0546549A/en
Publication of JPH0546549A publication Critical patent/JPH0546549A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To attain a synchronizing serial communication system where the processing burden of a master microcomputer is reduced when the state detected by a follower microcomputer is monitored and at the same time the quick communication is possible to the master microcomputer when a state change required for communication is detected by the follower microcomputer. CONSTITUTION:In this inter-microcomputer synchronizing serial communication system, a communication request signal line, a clock signal line, and a master data line are set to a follower microcomputer 2 from a master microcomputer 1. Meanwhile a communicatable signal line and a sieve data line are set to the microcomputer 1 from the microcomputer 2 respectively. Thus the communication request signal can be transmitted to the microcomputer 1 from the microcomputer 2 via a communicatable signal line. Then the communication can be started at the side of the microcomputer 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、主マイクロコンピュー
タ(以下マスタマイコンと称する。)と従マイクロコン
ピュータ(以下スレーブマイコンと称する。)との間の
同期式シリアル通信方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronous serial communication system between a main microcomputer (hereinafter referred to as a master microcomputer) and a slave microcomputer (hereinafter referred to as a slave microcomputer).

【0002】[0002]

【従来の技術】多くの機器では、操作部の入力処理や表
示等の機能を含む全体的な処理を一つのマイコンが行
い、機器内の主要部には別に専用のマイコンを設けて、
これらのマイコン間で必要なデータを通信し全体の制御
を行うことが多い。これは機能を分割することにより比
較的安価なマイコンを使用できるようにすると共に、製
品間での部品の共通化やマイコン間での相互監視による
信頼性の向上が図れるためである。
2. Description of the Related Art In many devices, one microcomputer carries out overall processing including functions such as input processing and display of an operating section, and a dedicated microcomputer is separately provided in the main part of the apparatus.
In many cases, necessary data is communicated between these microcomputers to control the entire system. This is because by dividing the functions, it is possible to use a relatively inexpensive microcomputer, and it is possible to improve reliability by sharing parts between products and mutual monitoring between microcomputers.

【0003】このような機器においては、図5に示すよ
うに一個のマスタマイコン1に複数のスレーブマイコン
2が通信経路3により接続されるのが一般的である。マ
スタマイコン1は使用者による操作入力の処理や表示処
理等を行い、操作に応じて各スレーブマイコン2に必要
なデータを送信する。スレーブマイコン2はこのデータ
を受信すると、データを解読し必要な処理を行う。
In such a device, a plurality of slave microcomputers 2 are generally connected to one master microcomputer 1 by a communication path 3 as shown in FIG. The master microcomputer 1 performs processing of operation input by the user, display processing, and the like, and transmits necessary data to each slave microcomputer 2 according to the operation. When the slave microcomputer 2 receives this data, it decodes the data and performs necessary processing.

【0004】更に各スレーブマイコン2はそれぞれの部
分の動作状態も監視しており、マスタマイコン1は各ス
レーブマイコン2にこの動作状態に関するデータを送信
するように要求し、変化や異常があれば所定の処理や回
復動作を行うか又はこの変化や異常を使用者に報知する
等の処理を行う。上記のようにマスタマイコン1とスレ
ーブマイコン2との間では相互にデータの送受信を行う
必要があり、相互通信が行なえるような通信経路が備わ
っている。このような通信経路には各種の方式があるが
代表的な例を図6に示す。図6に示すように、マスタマ
イコン1からスレーブマイコン2へは、通信要求信号、
クロック信号及びマスタデータの三つの信号線が備わっ
ており、スレーブマイコン2からマスタマイコン1へ
は、通信可能信号とスレーブデータの二つの信号線が備
わっている。
Further, each slave microcomputer 2 also monitors the operation state of each part, and the master microcomputer 1 requests each slave microcomputer 2 to transmit data relating to this operation state, and if there is a change or abnormality, a predetermined value is determined. Processing or recovery operation, or processing for notifying the user of this change or abnormality. As described above, it is necessary for the master microcomputer 1 and the slave microcomputer 2 to exchange data with each other, and there is a communication path for mutual communication. There are various methods for such a communication path, but a typical example is shown in FIG. As shown in FIG. 6, from the master microcomputer 1 to the slave microcomputer 2, a communication request signal,
Three signal lines for a clock signal and master data are provided, and two signal lines for a communicable signal and slave data are provided from the slave microcomputer 2 to the master microcomputer 1.

【0005】図6における通信は、マスタマイコン1が
通信要求信号を送出し、これを受信したスレーブマイコ
ン2が通信可能信号を送出することにより開始され、ク
ロック信号に同期してマスタデータとスレーブデータが
シリアルデータとして送られる。そしてあらかじめ定め
られた一連のデータの送信を行って通信要求に対する通
信処理を終了する。
The communication in FIG. 6 is started by the master microcomputer 1 sending out a communication request signal and the slave microcomputer 2 receiving this sending out a communication enable signal, and the master data and slave data are synchronized with the clock signal. Is sent as serial data. Then, a series of predetermined data is transmitted and the communication process for the communication request is completed.

【0006】通信経路はできるだけ少なくすることが望
ましく、特に図5のようにマスタマイコン1に複数のス
レーブマイコン2に接続される場合には、マスタマイコ
ン1の通信経路はスレーブマイコン2の数に応じて増加
するため、各スレーブマイコン2との通信経路はできる
だけ少なくすることが望ましい。そのため通信の必要量
を勘案して通信経路が決められるが、図6に示したもの
がもっとも基本的な通信経路である。
It is desirable to make the communication path as small as possible. Especially when the master microcomputer 1 is connected to a plurality of slave microcomputers 2 as shown in FIG. 5, the communication path of the master microcomputer 1 depends on the number of slave microcomputers 2. Therefore, it is desirable to reduce the number of communication paths with each slave microcomputer 2 as much as possible. Therefore, the communication route is determined in consideration of the required communication amount, but the one shown in FIG. 6 is the most basic communication route.

【0007】[0007]

【発明が解決しようとする課題】図6に示した通信経路
で接続されたマスタマイコン1とスレーブマイコン2と
の間の通信は、マスタマイコン1側からのみ通信を要求
できる。そのためマスタマイコン1は通常の処理の途中
で、各スレーブマイコン2に対して順に通信要求を送出
してそれぞれのスレーブマイコン2から動作状態に関す
るデータを収集する。
The communication between the master microcomputer 1 and the slave microcomputer 2 connected by the communication path shown in FIG. 6 can be requested only from the master microcomputer 1 side. Therefore, the master microcomputer 1 sequentially sends a communication request to each slave microcomputer 2 in the middle of normal processing, and collects data on the operating state from each slave microcomputer 2.

【0008】マスタマイコン1での処理量が多い場合に
は、スレーブマイコン2の状態監視のための処理はマス
タマイコン1にとって大きな負担となり、特に接続され
るスレーブマイコン2の数が多い時にはこの影響が大き
く、マスタマイコン1の処理能力を上げるために上位の
マイコンへの変更の必要も生じ、コスト増加になること
もある。
When the amount of processing in the master microcomputer 1 is large, the processing for monitoring the state of the slave microcomputer 2 is a heavy burden on the master microcomputer 1. Especially, when the number of connected slave microcomputers 2 is large, this influence is exerted. In addition, in order to increase the processing capability of the master microcomputer 1, it is necessary to change to a higher-level microcomputer, which may increase the cost.

【0009】またスレーブマイコン2の監視よりも使用
者の操作に応答するための処理が優先されるのが一般的
であり、たとえスレーブマイコン2側で状態変化や故障
を検出してもマスタマイコン1がこれを検出するまでに
時間を用し、状態変化や故障に対して迅速に対処できな
いといった問題も生じる。特に接続されるスレーブマイ
コン2の数が増加すると各スレーブマイコン2に対する
状態監視の通信サイクルが長くなるため、この問題が生
じやすい。
Further, the processing for responding to the user's operation is generally prioritized over the monitoring of the slave microcomputer 2, and even if the slave microcomputer 2 detects a state change or a failure, the master microcomputer 1 However, there is a problem that it takes time to detect this, and it is not possible to promptly deal with a state change or a failure. In particular, when the number of slave microcomputers 2 connected increases, the communication cycle of state monitoring for each slave microcomputer 2 becomes longer, so this problem is likely to occur.

【0010】本発明は上記問題点に鑑みてなされたもの
であり、マスタマイコンのスレーブマイコンに対する状
態監視処理の負担を低減し、且つスレーブマイコンが状
態変化や故障を検出した時にはすみやかにマスタマイコ
ンに故障発生を報知できるようなマスタマイコンとスレ
ーブマイコン間の同期式シリアル通信方式の実現を目的
とする。
The present invention has been made in view of the above problems, reduces the load of the status monitoring process of the master microcomputer on the slave microcomputer, and promptly switches the master microcomputer to the master microcomputer when a status change or failure is detected. The purpose is to realize a synchronous serial communication system between a master microcomputer and a slave microcomputer that can notify the occurrence of a failure.

【0011】[0011]

【課題を解決するための手段】本発明の同期式シリアル
通信方式は上記問題点を解決するため、従来から備えら
れている通信可能信号の経路を介してスレーブマイコン
からマスタマイコンへの通信要求を行う。図1は本発明
の同期式シリアル通信の基本構成を示す図である。
In order to solve the above problems, the synchronous serial communication system of the present invention sends a communication request from a slave microcomputer to a master microcomputer via a path of a communicable signal that has been conventionally provided. To do. FIG. 1 is a diagram showing a basic configuration of the synchronous serial communication of the present invention.

【0012】すなわち本発明の同期式シリアル通信方式
は、主マイクロコンピュータ1から従マイクロコンピュ
ータ2へは、通信要求信号経路と、クロック信号経路
と、マスタデータ経路とを備え、従マイクロコンピュー
タ2から主マイクロコンピュータ1へは、通信可能信号
経路と、スレーブデータ経路とを備え、主マイクロコン
ピュータからの通信要求信号に応じて一連の通信処理を
行うマイクロコンピュータ間同期式シリアル通信方式に
おいて、通信可能信号経路を介して従マイクロコンピュ
ータ2から主マイクロコンピュータ1へ通信開始を要求
する通信要求信号の送出を可能にし、従マイクロコンピ
ュータ側からも通信を開始できるようにした。
That is, the synchronous serial communication system of the present invention comprises a communication request signal path, a clock signal path, and a master data path from the main microcomputer 1 to the slave microcomputer 2, and the slave microcomputer 2 to the master The microcomputer 1 has a communicable signal path and a slave data path, and in the inter-microcomputer synchronous serial communication system that performs a series of communication processes in response to a communication request signal from the main microcomputer, the communicable signal path. The sub-microcomputer 2 can send a communication request signal requesting the start of communication from the sub-microcomputer 2, and the sub-microcomputer side can also start the communication.

【0013】[0013]

【作用】各スレーブマイコン2の検出した動作状態に変
化がない限り、マスタマイコン1がこれを検出する必要
はない。そこでスレーブマイコン2が状態変化や故障を
検出した時にのみマスタマイコン1に対して通信要求信
号を送出して通信を行えば良く、しかも状態の変化や故
障発生が検出された直後に通信が行なえるため、マスタ
マイコン1は迅速に処理が行なえる。
The master microcomputer 1 does not need to detect this unless the operating state detected by each slave microcomputer 2 changes. Therefore, it suffices to send a communication request signal to the master microcomputer 1 to perform communication only when the slave microcomputer 2 detects a state change or failure, and communication can be performed immediately after the state change or failure occurrence is detected. Therefore, the master microcomputer 1 can quickly perform processing.

【0014】またこのスレーブマイコン2からマスタマ
イコン1への通信要求信号は、従来から既に備えられて
いる通信可能信号の経路を介して送出されるので新たに
通信経路を設ける必要はない。
Further, since the communication request signal from the slave microcomputer 2 to the master microcomputer 1 is sent out through the path of the communicable signal already provided in the related art, it is not necessary to provide a new communication path.

【0015】[0015]

【実施例】本発明をCDプレーヤのマイコンシステムに
適用した実施例について説明する。図2はこの実施例を
示す図であり、(a)のハードウェアに示すように、C
Dプレーヤ全体の制御を行うCD−ECU(電気制御ユ
ニット)がマスタマイコン(マスタコントローラ)1で
あり、CDプレーヤの駆動部の処理を行うCDマイコン
がスレーブマイコン2である。このような形式のマイコ
ンシステムは自動車のエンジン制御等の分野で広く用い
られている。
EXAMPLE An example in which the present invention is applied to a microcomputer system of a CD player will be described. FIG. 2 is a diagram showing this embodiment, and as shown in the hardware of FIG.
A CD-ECU (electrical control unit) that controls the entire D player is a master microcomputer (master controller) 1, and a CD microcomputer that processes the drive unit of the CD player is a slave microcomputer 2. Such a type of microcomputer system is widely used in fields such as automobile engine control.

【0016】図2の(a)に示すように、マスタコント
ローラ1からCDマイコン2へはCDREQ* (*はlo
w-activeであることを示す。)、CMCLK及びMDA
TAの三本の通信線があり、CDマイコン2からマスタ
コントローラ1へはCDRDY* とCDDATAの二本
の通信線があり、他に電源状態に関するSTART*
号用の通信線が存在する。これらの信号の説明を図2の
(b)に示す。
As shown in FIG. 2A, from the master controller 1 to the CD microcomputer 2, CDREQ * (* indicates lo
Indicates w-active. ), CMCLK and MDA
There are three TA communication lines, two communication lines CDRDY * and CDDATA from the CD microcomputer 2 to the master controller 1, and a communication line for the START * signal related to the power supply state. An explanation of these signals is shown in FIG.

【0017】各信号の詳細な説明は省略するが、CDR
EQ* がマスタマイコンからスレーブマイコンへの通信
要求信号に相当し、CDRDY* が通信可能信号とスレ
ーブマイコンからマスタマイコンへの通信要求信号に相
当する。マスタコントローラ1からCDマイコン2への
通信要求は、CDマイコン2へのコマンドに変化が生じ
た時又はCDの状態を知りたい時であり、単にCDの状
態が知りたい時にはCDマイコン2へNOP(ノーオペ
レーション)信号を送り、これに応じてCDマイコン2
は状態(ステータス)のデータをマスタコントローラ1
に送る。
Although a detailed description of each signal is omitted, CDR
EQ * corresponds to a communication request signal from the master microcomputer to the slave microcomputer, and CDRDY * corresponds to a communication enable signal and a communication request signal from the slave microcomputer to the master microcomputer. The communication request from the master controller 1 to the CD microcomputer 2 is when the command to the CD microcomputer 2 is changed or when the user wants to know the state of the CD. No operation) signal is sent, and in response to this, the CD microcomputer 2
Shows the status data of the master controller 1
Send to.

【0018】CDマイコン2からマスタコントローラ1
への通信要求は、CDプレーヤの駆動部に状態変化が発
生し、通信の必要があると判定された時である。次に通
信手順について、マスタマイコンであるマスタコントロ
ーラ1からスレーブマイコンであるCDマイコンに通信
を要求する場合を図3を参照して説明する。図3はこの
場合の各信号の動作を示す図である。なおCDの状態デ
ータは4ビット*12ワードである。
From CD microcomputer 2 to master controller 1
A communication request to the CD player is when a state change occurs in the drive unit of the CD player and it is determined that communication is necessary. Next, the communication procedure will be described with reference to FIG. 3 in the case of requesting communication from the master controller 1 which is a master microcomputer to the CD microcomputer which is a slave microcomputer. FIG. 3 is a diagram showing the operation of each signal in this case. The CD status data is 4 bits * 12 words.

【0019】(1)まず、マスタコントローラは通信要
求信号CDREQ* をLow レベルとし、CDマイコンに
対して通信要求を行う。 (2)CDマイコンは通信可能状態の時、CDREQ*
の Lowレベルを検知すると、応答信号CDRDY* をLo
w レベルとし、マスタコントローラの通信要求に対し応
答する。
(1) First, the master controller sets the communication request signal CDREQ * to the low level to make a communication request to the CD microcomputer. (2) CDREQ * when the CD microcomputer is ready for communication
When the low level of is detected, the response signal CDRDY * is set to Lo
Set to w level and respond to the communication request from the master controller.

【0020】(3)マスタコントローラは、CDマイコ
ンの応答(CDRDY* のLow レベル) を検知すると、
送信データのMSB(b3)に応答した論理をMDAT
Aにセットし、CMCLKをLow レベルとする。 (4)CDマイコンは、(3)のCMCLKのLow レベ
ルをもって通信開始と判断し、送信データのMSB(b
3)に対応した論理をCDDATAにセットし、4Bit
同期信号であるCDRDY* をHighレベルとする。
(3) When the master controller detects the response of the CD microcomputer (CDRDY * low level),
MDAT the logic in response to the MSB (b3) of the transmitted data
Set to A and set CMCLK to low level. (4) The CD microcomputer determines that the communication has started when the CMCLK low level in (3) is reached, and the MSB (b
Set the logic corresponding to 3) to CDDATA, and set it to 4 Bit.
The synchronization signal CDRDY * is set to the high level.

【0021】(5)マスタコントローラは(4)のCD
RDY* のHighレベルをもって通信開始と判断し、通信
を始める。 (6)マスタコントローラは、CMCLKをHighレベル
とし、CDマイコンからのデータ(CDDATA)を取
り込む。このとき、マスタコントローラは現送信データ
を一定時間(t6)保持する。
(5) The master controller is the CD of (4)
When the high level of RDY * is determined to start communication, communication is started. (6) The master controller sets CMCLK to High level and takes in the data (CDDATA) from the CD microcomputer. At this time, the master controller holds the current transmission data for a fixed time (t6).

【0022】(7)CDマイコンは、CMCLKがHigh
レベルになった時点で、マスタコントローラからのデー
タ(MDATA)を取り込む。 (8)マスタコントローラは、次の送信データに対応し
た論理をMDATAにセットし、CMCLKをLow レベ
ルとし、一定時間(t4)を待つ。 (9)CDマイコンは、CMCLKのLow レベルを検知
すると、次の送信データに対応した論理をCDDATA
にセットする。
(7) CMCLK of CD microcomputer is High
When the level is reached, the data (MDATA) from the master controller is fetched. (8) The master controller sets the logic corresponding to the next transmission data in MDATA, sets CMCLK to the low level, and waits for a fixed time (t4). (9) When the CD microcomputer detects the low level of CMCLK, it outputs the logic corresponding to the next transmission data to CDDATA.
Set to.

【0023】(10)(8),(9),(6),(7)
を繰り返し4Bit*12ワードのデータを送信する。 (11)CDマイコンは4Bit データの転送終了毎に、
CDRDY* をLow レベルとし、その後(9)を行うと
共にCDRDY* をHighレベルとする。 (12)マスタコントローラは4Bit データの転送終了
毎に、CDRDY* がLow レベルとなったことを確認後
(8)を行う。また、その後CDRDY* がHighレベル
となったことを確認して(6)を行う。
(10) (8), (9), (6), (7)
Repeat 4bit * 12 word data. (11) When the CD microcomputer completes the transfer of 4 Bit data,
CDRDY * is set to low level, and then (9) is performed and CDRDY * is set to high level. (12) The master controller performs (8) after confirming that CDRDY * has become Low level each time 4-bit data transfer is completed. Then, after confirming that CDRDY * has become High level, (6) is performed.

【0024】(13)CDマイコンは、4Bit*12ワー
ドのデータ送受信が終了すると、CDRDY* をLow レ
ベルとする。 (14) マスタコントローラは、4Bit*12ワードのデ
ータ送受信が終了すると、CDRDY* がLow レベルと
なるのを確認した後、CDREQ* をHighレベルとし、
通信を終了する。
(13) When the 4-bit * 12-word data transmission / reception is completed, the CD microcomputer sets CDRDY * to the low level. (14) After the master controller confirms that CDRDY * becomes Low level when the data transmission / reception of 4 bits * 12 words is completed, it sets CDREQ * to High level,
Terminate communication.

【0025】(15)CDマイコンは、CDREQ*
Highレベルとなるのを確認した後、CDRDY* をHigh
レベルとし、通信を終了する。次にCDマイコン2から
マスタコントローラ1へ通信要求する場合について、図
4を参照して説明する。この場合には、前述の通信手順
のうち(1)から(5)までを次のように変更する。
(15) The CD microcomputer has a CDREQ *
After confirming that it becomes High level, set CDRDY * to High.
Set the level and end communication. Next, a case where the CD microcomputer 2 makes a communication request to the master controller 1 will be described with reference to FIG. In this case, (1) to (5) of the communication procedure described above are changed as follows.

【0026】(1)まず、CDマイコンは通信要求信号
CDRDY* をLow レベルとし、マスタコントローラに
対して通信要求を行う。 (2)マスタコントローラは通信可能状態の時、CDR
DY* のLow レベルを検知すると、応答信号CDREQ
* をLowレベルとしてCDマイコンの通信要求に対し応
答し、続いて送信データのMSB(b3)に対応した論
理をMDATAにセットし、CMCLKをLow レベルと
する。
(1) First, the CD microcomputer sets the communication request signal CDRDY * to the low level to make a communication request to the master controller. (2) When the master controller is in the communication enabled state, CDR
When the low level of DY * is detected, the response signal CDREQ
* Is set to low level and responds to the communication request of the CD microcomputer, then the logic corresponding to MSB (b3) of the transmission data is set in MDATA, and CMCLK is set to low level.

【0027】(3)CDマイコンは、マスタコントロー
ラの応答(CDREQ* のLow レベル) を検知した後、
CMCLKがLow レベルになるのを待つ。 (4)CDマイコンは、CMCLKのLow レベルをもっ
て通信開始と判断し、送信データのMSB(b3)に対
応した論理をCDDATAにセットし、4Bit同期信号
であるCDRDY* をHighレベルとする。
(3) After the CD microcomputer detects the response of the master controller (CDREQ * low level),
Wait for CMCLK to go low. (4) The CD microcomputer determines that the communication is started at the low level of CMCLK, sets the logic corresponding to the MSB (b3) of the transmission data to CDDATA, and sets the 4-bit synchronization signal CDRDY * to the high level.

【0028】(5)マスタコントローラは、(4)のC
DRDY* のHighレベルをもって通信開始と判断し、通
信を始める。 それぞれの場合の通信手順は上記の通りであり、他にも
通信が中断した場合の処理や誤り補正のためのデータ形
式等があるがここでは省略する。上記の通信手順では、
それぞれの通信要求に対して、マスタコントローラ1及
びCDマイコン2は共にこの信号を監視しており、その
変化を検出して通信の要求があったことを判断してい
る。しかしこのような通信要求信号を常時監視すること
はそれだけ処理の負担が大きくなることを意味する。そ
こでマスタコントローラ1及びCDマイコン2では、そ
れぞれ通信要求信号により割込信号が発生されるように
するとこのような負担を低減することができる。但し、
これらのマイコン間での通信要求の優先度を考慮して、
適切な割込順位に設定する必要がある。
(5) The master controller is the C of (4).
When the DRDY * high level is determined to start communication, communication is started. The communication procedure in each case is as described above, and there are other processes when communication is interrupted, data formats for error correction, etc., but they are omitted here. In the communication procedure above,
For each communication request, the master controller 1 and the CD microcomputer 2 both monitor this signal and detect the change to determine that there is a communication request. However, constantly monitoring such a communication request signal means that the processing load increases accordingly. Therefore, in the master controller 1 and the CD microcomputer 2, it is possible to reduce such a burden by generating an interrupt signal by the communication request signal. However,
Considering the priority of communication requests between these microcomputers,
It is necessary to set an appropriate interrupt priority.

【0029】またCDマイコン2からマスタコントロー
ラ1への通信要求信号は通信可能信号及び通信途中の同
期の確認信号としても使用されるため、マスタコントロ
ーラ1から通信要求を送出した場合及び通信途中では割
り込みが発生しないようにすることが必要である。
Since the communication request signal from the CD microcomputer 2 to the master controller 1 is also used as a communicable signal and a synchronization confirmation signal during communication, an interrupt occurs when the communication request is sent from the master controller 1 or during communication. It is necessary to prevent the occurrence of.

【0030】[0030]

【発明の効果】本発明により、マスタマイコンのスレー
ブマイコンの検出した状態を監視する処理が低減され、
状態に変化が生じた場合にはすみやかにその変化が通信
され迅速な対処が可能になる。しかも新たに通信経路を
設ける必要なしに実現できる。
According to the present invention, the processing for monitoring the detected state of the slave microcomputer of the master microcomputer is reduced,
When a change occurs in the status, the change is promptly communicated, and prompt action can be taken. Moreover, it can be realized without the need to newly provide a communication path.

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

【図1】本発明の同期式シリアル通信方式の基本構成を
示す図である。
FIG. 1 is a diagram showing a basic configuration of a synchronous serial communication system of the present invention.

【図2】CDプレーヤのマイコンシステムに本発明を適
用した実施例を示す図である。
FIG. 2 is a diagram showing an embodiment in which the present invention is applied to a microcomputer system of a CD player.

【図3】図2の実施例でマスタマイコン側から通信要求
信号を送出する場合の信号動作を示す図である。
FIG. 3 is a diagram showing a signal operation when a communication request signal is sent from the master microcomputer side in the embodiment of FIG.

【図4】図2の実施例で、スレーブマイコン側より通信
要求信号を送出する場合の信号動作を示す図である。
FIG. 4 is a diagram showing a signal operation when a communication request signal is transmitted from the slave microcomputer side in the embodiment of FIG.

【図5】マスタマイコンに複数のスレーブマイコンが接
続されるシステムの通信システムを示す図である。
FIG. 5 is a diagram showing a communication system of a system in which a plurality of slave microcomputers are connected to a master microcomputer.

【図6】マスタマイコンとスレーブマイコン間の相互通
信のための通信経路の例を示す図である。
FIG. 6 is a diagram showing an example of a communication path for mutual communication between a master microcomputer and a slave microcomputer.

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

1…主マイクロコンピュータ 2…従マイクロコンピュータ 1 ... Main microcomputer 2 ... Slave microcomputer

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 主マイクロコンピュータ(1)から従マ
イクロコンピュータ(2)へは、 通信要求信号経路と、 クロック信号経路と、 マスタデータ経路とを備え、 該従マイクロコンピュータ(2)から該主マイクロコン
ピュータ(1)へは、 通信可能信号経路と、 スレーブデータ経路とを備え、主マイクロコンピュータ
からの通信要求信号に応じて一連の通信処理を行うマイ
クロコンピュータ間同期式シリアル通信方式において、 該通信可能信号経路を介して、該従マイクロコンピュー
タ(2)から該主マイクロコンピュータ(1)へ通信開
始を要求する通信要求信号の送出を可能にし、従マイク
ロコンピュータ側からも通信を開始できるようにしたこ
とを特徴とするマイクロコンピュータ間同期式シリアル
通信方式。
1. A communication request signal path, a clock signal path, and a master data path are provided from the main microcomputer (1) to the slave microcomputer (2), and from the slave microcomputer (2) to the master microcomputer. The computer (1) is provided with a communicable signal path and a slave data path, and is communicable in a microcomputer-to-microcomputer synchronous serial communication system that performs a series of communication processes according to a communication request signal from the main microcomputer. A communication request signal for requesting the start of communication from the sub-microcomputer (2) to the main microcomputer (1) can be sent out via a signal path, and the sub-microcomputer side can also start communication. Microcomputer synchronous serial communication system characterized by.
JP3199525A 1991-08-08 1991-08-08 Inter-microcomputer synchronizing serial communication system Pending JPH0546549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3199525A JPH0546549A (en) 1991-08-08 1991-08-08 Inter-microcomputer synchronizing serial communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3199525A JPH0546549A (en) 1991-08-08 1991-08-08 Inter-microcomputer synchronizing serial communication system

Publications (1)

Publication Number Publication Date
JPH0546549A true JPH0546549A (en) 1993-02-26

Family

ID=16409282

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3199525A Pending JPH0546549A (en) 1991-08-08 1991-08-08 Inter-microcomputer synchronizing serial communication system

Country Status (1)

Country Link
JP (1) JPH0546549A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008226064A (en) * 2007-03-15 2008-09-25 Sanyo Electric Co Ltd Serial communication system
JP2010028936A (en) * 2008-07-16 2010-02-04 Seiko Epson Corp Power transmission control device, power transmitting device, power reception control device, power receiving device and electronic apparatus
JP2010028933A (en) * 2008-07-16 2010-02-04 Seiko Epson Corp Power transmission control device, power transmitting device, power reception control device, power receiving device, and electronic apparatus
JP2010273530A (en) * 2009-05-19 2010-12-02 Sb Limotive Co Ltd Battery management system and driving method thereof
GB2488223A (en) * 2011-02-15 2012-08-22 Nordic Semiconductor Asa Serial peripheral interface with handshake signals

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008226064A (en) * 2007-03-15 2008-09-25 Sanyo Electric Co Ltd Serial communication system
US7860939B2 (en) 2007-03-15 2010-12-28 Sanyo Electric Co., Ltd. Serial communication system
JP2010028936A (en) * 2008-07-16 2010-02-04 Seiko Epson Corp Power transmission control device, power transmitting device, power reception control device, power receiving device and electronic apparatus
JP2010028933A (en) * 2008-07-16 2010-02-04 Seiko Epson Corp Power transmission control device, power transmitting device, power reception control device, power receiving device, and electronic apparatus
JP2010273530A (en) * 2009-05-19 2010-12-02 Sb Limotive Co Ltd Battery management system and driving method thereof
GB2488223A (en) * 2011-02-15 2012-08-22 Nordic Semiconductor Asa Serial peripheral interface with handshake signals
GB2488223B (en) * 2011-02-15 2014-01-01 Nordic Semiconductor Asa Serial interface
US9003089B2 (en) 2011-02-15 2015-04-07 Nordic Semiconductor Asa Synchronous serial data-exchange system

Similar Documents

Publication Publication Date Title
JP2738106B2 (en) Multiplex communication controller
JPH0546549A (en) Inter-microcomputer synchronizing serial communication system
JPS62150948A (en) Bus faulty part detection system
JPS61295738A (en) Transmission controller
JP2000207373A (en) Process input-output device and method for controlling it
JPH07244598A (en) Switching method for dual controller and the dual controller
JP2000040013A (en) Method for detecting line abnormality for duplex communication system
JPH07115423A (en) Transmission control system
JPH1011310A (en) Switching system for duplexed network monitor devices
JP2733283B2 (en) Serial transmission control device
JP3974370B2 (en) Master-slave communication method and system
JPS6236940A (en) Data communication equipment in automobile
JPH0533089Y2 (en)
JPH0795666A (en) Device for transferring monitor control data for vehicle
JPH0114740B2 (en)
JPH02234254A (en) Data transfer circuit
JPS63314939A (en) Line abnormality detecting system
JPS6224354A (en) Duplex computer system
JP2616246B2 (en) Dual processing method for inter-system data in dual operation redundant apparatus and dual operation redundant apparatus
JPS6356755A (en) Abnormality supervising system for slave processor
JP3217080B2 (en) Liquid crystal display device control method
JPH01111248A (en) Constitution changing system for data processing system
JPH04368035A (en) Group communication method
JPH1021202A (en) Network connection system of duplex computer
JPH0126215B2 (en)

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010710