JPH02242362A - Control circuit for one-way communication between two cpu's and moving body controller - Google Patents

Control circuit for one-way communication between two cpu's and moving body controller

Info

Publication number
JPH02242362A
JPH02242362A JP1062504A JP6250489A JPH02242362A JP H02242362 A JPH02242362 A JP H02242362A JP 1062504 A JP1062504 A JP 1062504A JP 6250489 A JP6250489 A JP 6250489A JP H02242362 A JPH02242362 A JP H02242362A
Authority
JP
Japan
Prior art keywords
microcomputer
signal
data
read
control circuit
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.)
Granted
Application number
JP1062504A
Other languages
Japanese (ja)
Other versions
JP2591141B2 (en
Inventor
Osamu Eguchi
修 江口
Haruo Terai
春夫 寺井
Yasumichi Kobayashi
小林 保道
Hidetaka Yabuuchi
秀隆 藪内
Shinji Kondo
信二 近藤
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1062504A priority Critical patent/JP2591141B2/en
Publication of JPH02242362A publication Critical patent/JPH02242362A/en
Application granted granted Critical
Publication of JP2591141B2 publication Critical patent/JP2591141B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Communication Control (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To efficiently transmit information in one direction by controlling data communication between plural microcomputers at the time of data communication in one direction between these microcomputers. CONSTITUTION:When a master microcomputer 1 reads data of register files 3a and 3b, a read signal is sent to register files 3a and 3b by an address signal and a read signal (/RD) 10 outputted from the master microcomputer 1. Meanwhile, when a slave microcomputer 2 writes data in register files 3a and 3b, a write signal is sent to register files 3a and 3b by an address signal and a write signal (/WR) 11 outputted from the slave microcomputer 2 and the output signal from a read signal generating part 4. Thus, data is efficiently communicated in one direction between two microcomputers 1 and 2 without interrupting the processing.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は二つ以上のマイクロコンピュータを使用する回
路においてマイクロコンピュータ間で片方向のデータの
通信を行う際に、このマイクロコンピュータ間のデータ
通信を制御する回路に関するもの及びこの回路を使用し
た移動体制御!kJt置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention is directed to controlling data communication between microcomputers when unidirectional data communication is performed between the microcomputers in a circuit using two or more microcomputers. Things related to circuits and mobile object control using this circuit! This is related to the kJt position.

従来の技術 従来、複数個のマイクロコンピュータ−を用いる分散処
理システムにおいては、マイクロコンピュータ−間の情
報交換(通信)は、第3図に示すように直列伝送で行な
われていた。第3図に於て、1と2はマイクロコンピュ
ータ−であり、29と30は直列伝送変換部であり、3
1と32は並列伝送路であり、33は直列伝送路である
。また、34は伝送制御線である。直列伝送に於いては
、第3図に示すようにマイクロコンビュータート2間に
設けた直列電送変換部29・30間で直列伝送が行なわ
れ、伝送に関わる制御を伝送制御線34を用いて行なっ
ている。これは第4図に示すように、例えば、情報の送
信側が送信要求信号をLに下げることで送信要求信号を
出し、これを受けた受信側が、例えば送信可信号をLに
下げることで送信可信号を返信する。返信された送信可
信号を受信した送信側が、例えばLのパルス信号である
送信開始信号を出して情報伝送を始める。そして、受信
側からの単位情報ff1(例えば1バイト)を受信した
ことを知らせる例えばLのパルスである受信完了信号を
受けることで、送信側が送信要求信号をクリアし、受信
側が送信可信号をクリアする。以上のステップで1回の
伝送が終了する。
2. Description of the Related Art Conventionally, in a distributed processing system using a plurality of microcomputers, information exchange (communication) between the microcomputers was carried out by serial transmission as shown in FIG. In Fig. 3, 1 and 2 are microcomputers, 29 and 30 are serial transmission converters, and 3
1 and 32 are parallel transmission lines, and 33 is a serial transmission line. Further, 34 is a transmission control line. In serial transmission, as shown in FIG. 3, serial transmission is performed between the serial transmission converters 29 and 30 provided between the microcomputer 2, and control related to transmission is performed using the transmission control line 34. I am doing it. As shown in Fig. 4, for example, the transmitting side of the information issues a transmission request signal by lowering the transmission request signal to L, and the receiving side, which receives the information, lowers the transmission clear signal to L, allowing the information to be transmitted. send back a signal. The transmitting side, which has received the returned transmittable signal, issues a transmission start signal, which is, for example, an L pulse signal, and starts information transmission. Then, by receiving a reception completion signal, for example, an L pulse, which indicates that unit information ff1 (for example, 1 byte) has been received from the receiving side, the sending side clears the transmission request signal, and the receiving side clears the transmission ready signal. do. One transmission is completed with the above steps.

また他の方法として、第5図にマイクロコンビューター
ト2のボートを直結して、並列伝送路31と電送制御線
34を使用して並列伝送を行なう方法を示している。ま
た第6図には、2つのマイクロコンビュータート2間に
共有メモリ35を用いて各々のマイクロコンピュータ−
が共通の記憶場所を持ち、相互にデーターの書き込みお
よび読み込みを行い、データーバス7・9を使用して情
報の伝送を行なう方法を示している。
As another method, FIG. 5 shows a method in which the boats of the microcomputer 2 are directly connected and parallel transmission is performed using the parallel transmission line 31 and the electric transmission control line 34. Further, in FIG. 6, a shared memory 35 is used between two microcomputers 2, and each microcomputer
This shows a method in which the devices have a common storage location, write and read data to each other, and use data buses 7 and 9 to transmit information.

発明が解決しようとする課題 上記した従来の構成による直列伝送手段では、マイクロ
コンピュータ−個々に直列伝送変換部が必要となり、そ
のため回路構成が大きくなることと、直列伝送のため単
位時間あたりに伝送できる情報量が少ないといった課題
がある。これを解決する目的で、マイクロコンピュータ
−同志を直結したり、共有メモリを用いて並列伝送を行
なう方法もあるが、それぞれ以下に示すような問題を有
している。マイクロコンピュータ−同志を直結する方法
は、マイクロコンピュータ−間でデーターを伝送してい
るときは、両方のマイクロコンピュータ−が伝送のため
の処理を同時に行なうため、各々の処理が中断してしま
い処理能力の低下につながしまう。また共有メモリを使
用した構成では、同時に2つのマイクロコンピュータ−
からの書き込みまたは、読み込みがあった場合に、それ
を調停する回路が必要になり、回路構成が複雑になり1
回路スペースが太き(なってしまうものである。また、
そのような回路を内蔵した共有メモJも存在するが、大
容量のものしかなく、少ない情報量の通信を行なうシス
テムに用いることは、通信に費やす時間や、その回路ス
ペースの関係であまり効率がよくないものである。
Problems to be Solved by the Invention The serial transmission means with the conventional configuration described above requires a serial transmission conversion section for each microcomputer, which increases the circuit configuration, and because it is serial transmission, it is difficult to transmit data per unit time. There is a problem with the lack of information. In order to solve this problem, there are methods of directly connecting microcomputers or performing parallel transmission using a shared memory, but each method has the following problems. In the method of directly connecting microcomputers, when data is being transmitted between microcomputers, both microcomputers perform processing for transmission at the same time, which interrupts each processing and reduces processing capacity. This will lead to a decrease in In addition, in a configuration using shared memory, two microcomputers can
When there is a write or read from the
The circuit space becomes thick. Also,
There is a shared memo J that has such a built-in circuit, but it only has a large capacity, and its use in a system that communicates a small amount of information is not very efficient due to the time spent on communication and the circuit space required. It's not good.

また相互にデーターを伝送している複数のマイクロコン
ピュータ−を使用している移動体の制御装置に於いては
、そのデーター伝送による処理の遅れが移動体本体の動
きに影響してくる。
Furthermore, in a control device for a moving object that uses a plurality of microcomputers that mutually transmit data, delays in processing due to the data transmission affect the movement of the moving object.

本発明は、このような従来の課題を解決するもので、回
路スペースが小さくてすむ簡単な構成で、少ない情報量
の通信を各々の処理の中断の時間を極力少なくでき、効
率よく片方向の情報の伝送を行なうことのできる通信制
御回路の提供を第1の目的とする。第2の目的は判断処
理部に於けるマイクロコンピュータ−と障害物検知手段
に於けるマイクロコンピュータ−のデータを、互いのマ
イクロコンピュータ−の処理の中断なく素早く判断処理
部に伝え、通信に費やされる処理時間を短縮し、移動体
本体の動きの応答性を改善した移動体制御装置を提供す
ることである。
The present invention solves these conventional problems, and has a simple configuration that requires only a small circuit space, and allows communication of a small amount of information to be performed with as little interruption time as possible, allowing for efficient one-way communication. The first object is to provide a communication control circuit that can transmit information. The second purpose is to quickly transmit data from the microcomputer in the judgment processing unit and the microcomputer in the obstacle detection means to the judgment processing unit without interrupting the processing of each microcomputer, and the data is spent on communication. It is an object of the present invention to provide a mobile body control device that shortens processing time and improves responsiveness of movement of a mobile body body.

課題を解決するための手段 第1の目的を達成するための第一の手段は、マスターの
マイクロコンピュータ−とスレーブのマイクロコンピュ
ータ−と、読み出し専用のアドレスポートと書き込み専
用のアドレスポートとを併せもつレジスタファイルと、
マスター側のマイクロコンピュータ−が前記レジスタフ
ァイルのデーターを読み取る際に、マスター側のマイク
ロコンビューターから出力されるアドレス信号とリード
信号とにより前記レジスタファイルへ読み取り信号を送
る読取信号発生部と、スレーブ側のマイクロコンピュー
タ−が前5己レジスタフアイノしへデーターを書き込む
際に、スレーブ側のマイクロコンピュータ−から出力さ
れるアドレス信号とライト信号と前記読取信号発生部か
らの出力信号により前記レジスタファイルに書き込み信
号を送る書込信号発生部とを備えた構成の2cpu間の
片方向通信制御回路とするものである。
Means for Solving the Problem The first means for achieving the first objective is to have a master microcomputer, a slave microcomputer, a read-only address port, and a write-only address port. register file and
a read signal generating section that sends a read signal to the register file using an address signal and a read signal output from the master microcomputer when the master microcomputer reads data in the register file; and a slave side When the microcomputer writes data to the previous register file, it writes to the register file using the address signal and write signal output from the slave microcomputer and the output signal from the read signal generator. This is a one-way communication control circuit between two CPUs having a configuration including a write signal generation section that sends a signal.

また第2の目的を達成するための第二の手段は、本体の
前方及び左右方向の障害物を検知する障害物検知手段と
、本体を移動させるための走行手段および操舵手段と、
本体の走行距離および走行方向を検知して位置を認識す
る位置認識手段と、上記走行手段および操舵手段に信号
を出力する判断処理部と、記憶装置と電源とを備え、前
記障害物検知手段と判断処理部との通信制御回路を第一
の手段を構成する2cpu間の片方向通信制御回路とし
た構成の移動体制御装置とするものである。
Further, a second means for achieving the second object includes an obstacle detection means for detecting obstacles in front of the main body and in the left and right directions, a traveling means and a steering means for moving the main body,
a position recognition means for detecting the traveling distance and traveling direction of the main body to recognize the position; a determination processing section for outputting a signal to the traveling means and the steering means; a storage device and a power source; This mobile object control device has a configuration in which a communication control circuit with the determination processing section is a one-way communication control circuit between two CPUs constituting the first means.

作用 第一の手段の構成とすることにより、小さい回路スペー
スで、2つのマイクロコンピュータ−間で少ない情報量
の片方向の通信を各々の処理の中断なく、効率よく情報
の伝送を行なうことができる。
By adopting the configuration of the first means of action, it is possible to efficiently transmit one-way communication of a small amount of information between two microcomputers in a small circuit space without interrupting each process. .

また第2の手段によれば、判断処理部に於けるマイクロ
コンピュータ−へ障害物検知手段に於けるマイクロコン
ピュータ−のデータを素速く伝えることができ、移動体
本体の動きの応答性を改占することができる。
According to the second means, data from the microcomputer in the obstacle detection means can be quickly transmitted to the microcomputer in the judgment processing section, and the responsiveness of the movement of the moving body can be improved. can do.

実施例 以下、本発明の一実施例を添付図面に基づいて説明する
。第1図は第一の手段の一実施例の2cpu間の片方向
通信I11御回路のブロック図である。1は、マスター
側のマイクロコンピュータ−で、2はスレーブ側のマイ
クロコンピュタ−である。本実施例では、マスター側の
マイクロコンピュータ−1は8ビツト等のマルチチップ
(データー線・アドレス線が外部に出力されているタイ
プのマイクロコンピュータ−)とし、スレーブ側のマイ
クロコンピュタ−2は4ビツトのワンチップのマイクロ
コンピュタ−(データー線パrドレス線が外部に出力さ
れてなく多数のI10ボートを持つタイプのマイクロコ
ンピュータ−)としている。3a・3bは読み出し専用
のアドレスポートと書き込み専用のアドレスポートとを
併せもつレジスタファイル(たとえばTTLのLS67
0)で、4はマスター側のマイクロコンピュータ−1が
前記レジスタファイル3a・3bのデーターを読み取る
際に、マスター側のマイクロコンピュータ−1から出力
されるアドレス信号(アドレスバス6上の信号)とリー
ド信号(/RD信号10)との論理積をとり前記レジス
タファイル3a・3bへ読み取り信号を送る読取信号発
生部で、5はスレーブ側のマイクロコンピュータ−2が
前記レジスタファイル3a・3))ヘデーターを書き込
む際に、スレーブ側のマイクロコンピュータ−2から出
力されるアドレス信号(アドレスバス8上の信号)とラ
イト信号(/WR信号11)と、前記読取信号発生部4
がらの出力信号の反転信号との論理積をとり前記レジス
タファイル3a・3bに書き込み信号を送る書込信号発
生部である。6はマスター側のマイクロコンピュータ−
1のアドレスバス、7はマスター側のマイクロコンピュ
ータ−1のデーターバスである。8はスレーブ側のマイ
クロコンピュータ−2がレジスタファイル3a・3bへ
データーを書き込む際に使用するアドレスバスで、9は
そのスレーブ側のマイクロコンピュータ−2のデータバ
スである。
EXAMPLE Hereinafter, an example of the present invention will be described based on the accompanying drawings. FIG. 1 is a block diagram of a one-way communication I11 control circuit between two CPUs in an embodiment of the first means. 1 is a master side microcomputer, and 2 is a slave side microcomputer. In this embodiment, the microcomputer 1 on the master side is a multi-chip such as 8 bits (a type of microcomputer whose data lines and address lines are output to the outside), and the microcomputer 2 on the slave side is a 4-bit multi-chip. It is a one-chip microcomputer (a type of microcomputer that has multiple I10 ports without outputting the data line/parallel line to the outside). 3a and 3b are register files (for example, TTL LS67) that have both a read-only address port and a write-only address port.
0), and 4 is an address signal (signal on the address bus 6) output from the master side microcomputer 1 when the master side microcomputer 1 reads the data of the register files 3a and 3b, and a read signal. A read signal generating section 5 performs a logical product with the signal (/RD signal 10) and sends a read signal to the register files 3a and 3b. When writing, the address signal (signal on the address bus 8) and write signal (/WR signal 11) output from the slave side microcomputer 2, and the read signal generator 4
This is a write signal generating section that performs a logical product of the output signal of the output signal and an inverted signal of the output signal, and sends a write signal to the register files 3a and 3b. 6 is the microcomputer on the master side.
1 is an address bus, and 7 is a data bus of the microcomputer 1 on the master side. 8 is an address bus used when the slave microcomputer 2 writes data to the register files 3a and 3b, and 9 is a data bus of the slave microcomputer 2.

以上のように構成された2cpu間の片方向通信制御回
路に就いて、以下千の動作・作用を説明する。まず第1
図に示すように通信の方向はスレーブ側のマイクロコン
ピュータ−2がらマスター側のマイクロコンピュータ−
1の片方向とし、レジスタファイル3a・3bを2つの
構成としたことでマスター側のマイクロコンピュータ−
1とスレーブ側のマイクロコンピュータ−2との間で行
なわれる通信の情報量は4バイトである。
Regarding the one-way communication control circuit between the two CPUs configured as described above, the various operations and effects will be explained below. First of all
As shown in the figure, the direction of communication is from microcomputer 2 on the slave side to microcomputer 2 on the master side.
1 in one direction, and the register files 3a and 3b are configured as two, so that the microcomputer on the master side can
The amount of information in communication between microcomputer 1 and slave side microcomputer 2 is 4 bytes.

(レジスタファイルにT T LのLS670を使用し
たことによる。)マスター側のマイクロコンピュータ−
1が、スレーブ側のマイクロコンピュータ−2が書き込
んだレジスタファイル3a・3bのデーターの読みだし
動作を行なうには、レジスタファイル3a・3bのアド
レスをアドレスノくス6上に出力して、リード信号(/
RD信号10)をHからLに落とし、(通常はHに出力
されている。)データバス7のデータを入力する。この
読みだし動作時に、マスター側のマイクロコンピュータ
−1から出力されるアドレス信号(7ドレスバス6上に
ある信号)とリード信号(/RD信号10)とを読取信
号発生部4に於いて論理積をとりレジスタファイル3a
#3bの読み取り許可端子(図示せず)に出力する。こ
れ(こよりレジスタファイル3a・3bのデータがデー
タノ(スフ上に出力され、マスター側のマイクロコンピ
ュータ−1に入力されることになる。スレーブ側のマイ
クロコンピュータ−2からマスター側のマイクロコンピ
ュータ−1へデータを送信する場合、レジスタファイル
3a・3bにスレーブ側のマイクロコンピュータ−2が
送信したい4〕くイトのデーターをデータバス9上に出
力し、レジスタファイル3a・3bのアドレスをアドレ
ス!<ス8上に出力して、ライト信号(/WR信号11
)をHからLに落とす。(通常はH+:出力されている
。)この時、書込信号発生部5により、ライト信号〈/
WR信号11)とレジスタファイル3a・3bのアドレ
スと読取信号発生部4の出力した読取信号の反転出力と
の論理積をとり、レジスタファイル3a・3bの書き込
み許可端子(図示せず)に出力する。これは、マスター
側のマイクロコンピュータ−1が、スレーブ側のマイク
ロコンピュータ−2が書き込んだレジスタファイル3a
・3bのデーターの読み出し動作を行なっていないとき
に、スレーブ側のマイクロコンピュータ−2がレジスタ
ファイル3a・3bにデータの書き込み動作を行なった
ときに限り、レジスタファイル3a・3bにデータが実
際に書き込まれる訳である。これはスレーブ側のマイク
ロコンピュータ−2が、ライト信号(/WR信号11)
をLlこ落としている時間を、マスター側のマイクロコ
ンピュータ−1が、レジスタファイル3a・3bのデー
ターを読みとるのに費やす時間以上(こ設定することに
よりレジスタファイル3a・3blこデータカ(確実に
書き込まれる。つまり、マスター側のマイクロコンピュ
ータ−1からすると、スレーブ化1のマイクロコンピュ
ータ−21こ関係なく如何なる時でも、レジスタファイ
ル3a・3bのデーターを読みとることができるもので
ある。
(This is due to the use of TTL's LS670 for the register file.) The microcomputer on the master side.
1 outputs the addresses of the register files 3a and 3b to the address node 6 and sends a read signal in order to read the data written in the register files 3a and 3b by the slave microcomputer 2. (/
The RD signal 10) is dropped from H to L, and the data on the data bus 7 (which is normally output at H) is input. During this read operation, the address signal (signal on the 7-dress bus 6) output from the master side microcomputer 1 and the read signal (/RD signal 10) are ANDed in the read signal generator 4. Take register file 3a
It is output to the read permission terminal (not shown) of #3b. From this, the data in the register files 3a and 3b will be output to the data block and input to the master microcomputer 1. From the slave microcomputer 2 to the master microcomputer 1. When transmitting data, the microcomputer 2 on the slave side outputs the 4] write data it wants to transmit to the register files 3a and 3b onto the data bus 9, and sets the address of the register files 3a and 3b to the address! and output the write signal (/WR signal 11
) from H to L. (Normally H+: Output.) At this time, the write signal generator 5 generates a write signal
The WR signal 11), the address of the register files 3a and 3b, and the inverted output of the read signal output by the read signal generator 4 are ANDed and output to the write enable terminal (not shown) of the register files 3a and 3b. . This is the register file 3a written by microcomputer 1 on the master side and microcomputer 2 on the slave side.
・The data is actually written to the register files 3a and 3b only when the slave side microcomputer 2 writes data to the register files 3a and 3b while the data read operation of the register file 3b is not being performed. That's why. This is a write signal (/WR signal 11) sent by microcomputer 2 on the slave side.
The time it takes for the microcomputer 1 on the master side to read the data in the register files 3a and 3b is longer than the time it takes to read the data in the register files 3a and 3b. That is, from the perspective of the master microcomputer 1, the data in the register files 3a and 3b can be read at any time regardless of the slave microcomputer 1.

第2図は第二の手段の一実施例の移動体$制御装置のシ
ステムブロック図である。12(よ本体走行用のモータ
ーであり、13はその駆動回路、14は走行モーター1
2の回転速度を検出する走行エンコーダーである。以上
、スレーブ側のマイクロコンピュータ−2・走行エンコ
ーダー14・駆動回路13・走行モーター12とスレー
ブ側のマイクロコンピュータ−2とで走行手段15を構
成している。同様に16は本体操舵用のモーターであ。
FIG. 2 is a system block diagram of a moving object $ control device according to an embodiment of the second means. 12 (This is the motor for driving the main body, 13 is its drive circuit, and 14 is the travel motor 1.
This is a travel encoder that detects the rotation speed of 2. As described above, the slave-side microcomputer 2, travel encoder 14, drive circuit 13, travel motor 12, and slave-side microcomputer 2 constitute the traveling means 15. Similarly, 16 is a motor for the main body steering.

す、17はその駆動回路、18Gt操舵モーター16の
回転速度を検出する操舵エンコーダーである。以上操舵
エンコーダー18・駆動回路17・操舵モーター16と
スレーブ側のマイクロコンピュータ−2とで操舵手段1
9を構成している。
17 is a steering encoder that detects the rotational speed of the 18Gt steering motor 16. As described above, the steering encoder 18, drive circuit 17, steering motor 16 and slave side microcomputer 2 constitute the steering means 1.
9.

20は本体に取り付けられた方向検知センサで、本実施
例ではレートジャイロを用いている。そして走行エンコ
ーダー14・方向検知センサ20は本体の位置を認識す
る位置認識手段21を構成している。つまり走行エンコ
ーダー14より検出した回転速度及び方向検知センサ2
0より検出した本体の走行方向を検知して本体の位置を
認識するものである。22は本体の周囲に設けた超音波
センサ・フォトセンサ等の測距センサで、障害物までの
距離を計測する。23は本体の外周に取り付けた接触セ
ンサで、本体が障害物に接触したことを検知する。この
測距センサ22と接触センサ23とスレーブ側のマイク
ロコンピュータ−2とで障害物検知手段24を構成して
いる。■は記憶装置25を有し、走行および操舵手段に
信号を出力する判断処理部を構成するマスター側のマイ
クロコンピューターである。26は第一の手段を構成し
ている片方向通信制御回路であり(マスター側のマイク
ロコンピュータ−は除<)、27は本体の始動・停止等
の動きを指示する操作スイッチである。図に示すように
操作スイッチの情報は入力ボート28によりデータバス
7を通してマイクロコンピュータ−1に入力される。
20 is a direction detection sensor attached to the main body, and in this embodiment, a rate gyro is used. The travel encoder 14 and the direction detection sensor 20 constitute a position recognition means 21 that recognizes the position of the main body. In other words, the rotational speed detected by the travel encoder 14 and the direction detection sensor 2
The position of the main body is recognized by detecting the running direction of the main body detected from zero. 22 is a distance measuring sensor such as an ultrasonic sensor or a photosensor provided around the main body to measure the distance to an obstacle. 23 is a contact sensor attached to the outer periphery of the main body, which detects when the main body comes into contact with an obstacle. The distance measuring sensor 22, the contact sensor 23, and the slave-side microcomputer 2 constitute an obstacle detection means 24. (2) is a master microcomputer that has a storage device 25 and constitutes a judgment processing section that outputs signals to the traveling and steering means. 26 is a one-way communication control circuit constituting the first means (excluding the microcomputer on the master side), and 27 is an operation switch for instructing movements such as starting and stopping the main body. As shown in the figure, information on the operation switches is inputted to the microcomputer 1 through the data bus 7 by the input port 28.

以上のように構成された移動体制御装置では、マスター
側のマイクロコンピュータ−1と、障害物検知手段24
に於けるスレーブ側のマイクロコンピュータ−2との通
信で、スレーブ側のマイクロコンピュータ−2のデータ
ーが、マスター側のマイクロコンピュータ−1から見る
と処理の停止時間なく効率よく入力することができる。
In the mobile object control device configured as described above, the master side microcomputer 1 and the obstacle detection means 24
By communicating with the slave microcomputer 2 during the process, data from the slave microcomputer 2 can be efficiently inputted from the master microcomputer 1 without stopping the processing.

発明の効果 以上のように本発明によれば情報の入手側は、その入手
のために特別な処理を必要とせず何時でもレジスタファ
イルの情報を読みとることができる。また通信に必要と
される情報量のレジスタファイルを設けることで、デー
ターの書き込み、読み込みに費やされる時間の無駄も少
なく抑えることができ、必要な回路スペースも最小で構
成できるので無駄が少ない。
Effects of the Invention As described above, according to the present invention, the information obtaining side can read the information of the register file at any time without requiring any special processing to obtain the information. Furthermore, by providing a register file with the amount of information required for communication, it is possible to minimize wasted time spent writing and reading data, and the required circuit space can be configured to a minimum, resulting in less waste.

第二の手段によれば複数のマイクロコンピュータ−を使
用し、マスターとスレーブの関係で片方向の通信を行な
いながら移動体の制御を行なっているような移動体制御
装置の、マスター側のマイクロコンピュータ−での通信
に費やす時間をな(すことで、移動体本体の動きの応答
性を改善することができ、また回路の通信部分のスペー
スが小さくなり全体としての回路も小さ(構成できるの
で移動体本体の小型化にも寄与するものである。
According to the second means, a microcomputer on the master side of a mobile object control device that uses a plurality of microcomputers and controls a mobile object while performing one-way communication in a master-slave relationship. -By reducing the time spent on communication at This also contributes to the miniaturization of the main body.

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

第1図は本発明の第一の手段の一実施例の2cpu間の
片方向通信制御回路のブロック図、第2図は第二の手段
の一実施例の移動体制御装置のシステムブロック図、第
3図は従来の直列伝送による通信の様子を示した図、第
4図面の簡単な説明図、第5図はマイクロコンピュータ
−同志のボートを直結して並列伝送を行なう方法を示し
た図で、第6図はマイクロコンピュータ−間に共有メモ
リを設けて情報の伝送を行なう方法を示した図である。 1・・・マスターのマイクロコンピュータ−12・・・
スレーブのマイクロコンピユー9−13a・3b・・・
レジスタファイル、4・・・読取信号発生部、5・・・
書込信号発生部、15・・・走行手段、19・・・操舵
手段、21・・・位置検出手段、24・・・#害物検知
手段、25・・・記憶装置。 代理人の氏名 弁理士 粟野重孝 ほか1名N l 図 6.8−  アpレスバス 悪 図 第 図 纂 図 纂 図 1.2−7AりU
FIG. 1 is a block diagram of a one-way communication control circuit between two CPUs according to an embodiment of the first means of the present invention, and FIG. 2 is a system block diagram of a mobile object control device according to an embodiment of the second means. Figure 3 is a diagram showing the state of communication using conventional serial transmission, Figure 4 is a simple explanatory diagram, and Figure 5 is a diagram showing a method of parallel transmission by directly connecting a microcomputer to a similar boat. , FIG. 6 is a diagram showing a method of transmitting information by providing a shared memory between microcomputers. 1...Master microcomputer-12...
Slave microcomputer 9-13a, 3b...
Register file, 4... Read signal generation section, 5...
Write signal generation section, 15... Traveling means, 19... Steering means, 21... Position detection means, 24... Harmful object detection means, 25... Storage device. Name of agent: Patent attorney Shigetaka Awano and 1 other person N l Figure 6.8- Apres bus bad diagram diagram compilation diagram diagram 1.2-7AriU

Claims (2)

【特許請求の範囲】[Claims] (1)マスターのマイクロコンピューターと、スレーブ
のマイクロコンピューターと、読み出し専用のアドレス
ポートと書き込み専用のアドレスポートとを併せもつレ
ジスタファイルと、マスター側のマイクロコンピュータ
ーが前記レジスタファイルのデーターを読み取る際に、
マスター側のマイクロコンピューターから出力されるア
ドレス信号とリード信号とにより前記レジスタファイル
へ、読み取り信号を送る読取信号発生部と、スレーブ側
のマイクロコンピューターが前記レジスタファイルへ、
データーを書き込む際に、スレーブ側のマイクロコンピ
ューターから出力されるアドレス信号とライト信号と前
記読取信号発生部からの出力信号により前記レジスタフ
ァイルに書き込み信号を送る書込信号発生部とを備えた
2cpu間の片方向通信制御回路。
(1) A master microcomputer, a slave microcomputer, a register file that has both a read-only address port and a write-only address port, and when the master microcomputer reads data from the register file,
a read signal generation unit that sends a read signal to the register file based on an address signal and a read signal output from a master side microcomputer; a slave side microcomputer to the register file;
When writing data, an address signal and a write signal output from a slave side microcomputer, and a write signal generation section that sends a write signal to the register file using an output signal from the read signal generation section. One-way communication control circuit.
(2)本体の前方及び左右方向の障害物を検知する障害
物検知手段と、本体を移動させるための走行手段および
操舵手段と、本体の走行距離および走行方向を検知して
位置を認識する位置認識手段と、上記走行手段および操
舵手段に信号を出力する判断処理部と、記憶装置と、電
源とを備え、前記障害物検知手段と判断処理部との通信
制御回路を請求項1記載の2cpu間の片方向通信制御
回路の構成とした移動体制御装置。
(2) Obstacle detection means for detecting obstacles in front and left and right directions of the main body, traveling means and steering means for moving the main body, and a position for detecting the traveling distance and direction of the main body to recognize the position A communication control circuit between the obstacle detection means and the judgment processing section is provided with a recognition means, a judgment processing section for outputting a signal to the traveling means and the steering means, a storage device, and a power source, and the communication control circuit between the obstacle detection means and the judgment processing section is a 2 CPU according to claim 1. A mobile object control device configured with a one-way communication control circuit between.
JP1062504A 1989-03-15 1989-03-15 One-way communication control circuit between 2 cpu Expired - Lifetime JP2591141B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1062504A JP2591141B2 (en) 1989-03-15 1989-03-15 One-way communication control circuit between 2 cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1062504A JP2591141B2 (en) 1989-03-15 1989-03-15 One-way communication control circuit between 2 cpu

Publications (2)

Publication Number Publication Date
JPH02242362A true JPH02242362A (en) 1990-09-26
JP2591141B2 JP2591141B2 (en) 1997-03-19

Family

ID=13202069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1062504A Expired - Lifetime JP2591141B2 (en) 1989-03-15 1989-03-15 One-way communication control circuit between 2 cpu

Country Status (1)

Country Link
JP (1) JP2591141B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05181812A (en) * 1991-12-27 1993-07-23 Fujitsu Ltd Inter-mpu communication circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05181812A (en) * 1991-12-27 1993-07-23 Fujitsu Ltd Inter-mpu communication circuit

Also Published As

Publication number Publication date
JP2591141B2 (en) 1997-03-19

Similar Documents

Publication Publication Date Title
JP2886856B2 (en) Redundant bus connection method
JP2006500679A (en) Interface integrated circuit device for USB connection
JPS6126103B2 (en)
US5566345A (en) SCSI bus capacity expansion controller using gating circuits to arbitrate DMA requests from a plurality of disk drives
US4587607A (en) Numerical control device
JPH02242362A (en) Control circuit for one-way communication between two cpu's and moving body controller
JPS5813928B2 (en) computer control device
US5655082A (en) Communication control apparatus between processor systems
JP2586638B2 (en) One-way communication control circuit between 2 cpu
JPS63175962A (en) Direct memory access controller
JPH02130662A (en) Information processing system
JP2583586B2 (en) Bus control method
JP2764858B2 (en) Data transmission system
JPS6184767A (en) Inter-system connecting method
JPS5852768A (en) Constitution system of microprocessor
JP2671743B2 (en) Microcomputer
JPS6368954A (en) Information transferring system
JPH10157648A (en) Rear wheel steering angle control device
JPS63278168A (en) Bus controller
JP3450392B2 (en) Interface devices and peripherals
JPS62188536A (en) Line state display system
JPH04123445U (en) data transmission equipment
JPS6171739A (en) Data transmission method
JPH058959A (en) Transmission control device for elevator
JPH0429101B2 (en)