JPH0227467A - Synchronizing method between arithmetic units - Google Patents

Synchronizing method between arithmetic units

Info

Publication number
JPH0227467A
JPH0227467A JP17624088A JP17624088A JPH0227467A JP H0227467 A JPH0227467 A JP H0227467A JP 17624088 A JP17624088 A JP 17624088A JP 17624088 A JP17624088 A JP 17624088A JP H0227467 A JPH0227467 A JP H0227467A
Authority
JP
Japan
Prior art keywords
arithmetic unit
signal line
arithmetic
synchronization signal
synchronization
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
JP17624088A
Other languages
Japanese (ja)
Inventor
Yoshiharu Nakashita
中下 義春
Takeshi Kakisakai
垣堺 健
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP17624088A priority Critical patent/JPH0227467A/en
Publication of JPH0227467A publication Critical patent/JPH0227467A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To obtain synchronization between two arithmetic units without providing a special synchronizing device by falling the logical level of each synchronous signal line when a wait condition has passed and an operation starts. CONSTITUTION:When the operation preparation of a first arithmetic unit 10 is completed, the first arithmetic unit 10 raises the logical level of a first synchronous signal line 21 to enter the wait condition, it starts to supervise a second signal line 22, and when the operation preparation of a second arithmetic unit 11 is completed, it raises the logical level of a second synchronous signal line 22. The first arithmetic unit 10 detects it, it passes through the wait condition to start the operation, the second arithmetic unit 11 passes through the wait condition from the rise point of the first synchronous signal line 21, and it starts the operation. At such a time point, by dropping the logical level of the respective synchronous signal line, the synchronization is obtained at the section of the second arithmetic unit 11. Thus, the synchronization can be obtained between the two arithmetic units without the special synchronizing device.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、それぞれが、ディジタル入出力ポートを備え
た1チップマイコンからなる第1及び第2の各演算装置
の間で、演算タイミングや入出力タイミング等について
同期をとるための同期方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention provides a method for controlling calculation timing and input between first and second arithmetic units each consisting of a one-chip microcomputer equipped with a digital input/output port. This invention relates to a synchronization method for synchronizing output timing and the like.

〔従来の技術〕[Conventional technology]

第4図は2つの演算装置の間で同期をとる従来の方法を
説明するためのブロック図である。同図において1.2
はそれぞれ演算装置、3はフリップフロップから或る同
期装置、4はセンサ、である。
FIG. 4 is a block diagram for explaining a conventional method for synchronizing two arithmetic units. In the same figure, 1.2
are arithmetic units, 3 is a synchronization device from a flip-flop, and 4 is a sensor.

演算装置tがセンサ4へ指令を送り、その回答がセンサ
4から演算装置1と2の両方へ返ってくるものとする。
It is assumed that arithmetic device t sends a command to sensor 4, and a response is returned from sensor 4 to both arithmetic devices 1 and 2.

演算装置1は自分が出力した指令であるからその回答が
戻ってくるタイミングも分かるので回答を取り込むこと
ができるが、演算装置2ではそのタイミングが分からず
回答を取り込むことができない。そこでそのタイミング
を演算装置2に分からせて同期させる必要がある。
The arithmetic device 1 can take in the answer because it knows the timing when the answer will come back because it is a command output by itself, but the arithmetic device 2 cannot take in the answer because it does not know the timing. Therefore, it is necessary to let the arithmetic unit 2 know the timing and synchronize it.

そこで演算装置1では、その動作の立ち上げ時に同期装
置3を構成するフリップフロップをセットして主導潅を
とる。その結果、演算装置工から同期をとるための信号
を同期装置3を介して演算装置2へ送ることはできるが
、演算装置2から1へは送ることができない状態になる
。よって演算装置1は、センサ4へ指令を送り、その回
答がセンサ4から戻ってくるタイミングを同期装置3を
介して演算装置2に知らせてやり、演算装置1と2は同
期をとることができる。
Therefore, the arithmetic device 1 sets the flip-flops constituting the synchronizer 3 at the start of its operation to take the lead control. As a result, a signal for synchronization can be sent from the arithmetic device to the arithmetic device 2 via the synchronizer 3, but it cannot be sent from the arithmetic device 2 to the arithmetic device 1. Therefore, the arithmetic device 1 sends a command to the sensor 4, and notifies the arithmetic device 2 of the timing at which the response is returned from the sensor 4 via the synchronizer 3, so that the arithmetic devices 1 and 2 can be synchronized. .

〔発明が解決しようとする課題〕 以上述べたように、2台の演算装置の間で同期をとるの
に従来は特別に同期装置を外部に設ける必要があり(或
いは同期装置を各演算装置が内蔵することもある)、コ
スト的に高くなり、また装置全体もかさばるという問題
があった。
[Problems to be Solved by the Invention] As mentioned above, in order to synchronize between two arithmetic units, it has conventionally been necessary to provide a special synchronizing device externally (or it is necessary to provide a synchronizing device separately for each arithmetic unit). (In some cases, the device is built-in), which increases the cost and makes the entire device bulky.

本発明の目的は、2台の演算装置の間で同期をとるのに
、特別の同期装置を設ける必要がなく、従ってコスト低
廉であると共に、装置がかさばることもないようにした
2台の演算装置の間の同期方法を提供することにある。
An object of the present invention is to synchronize two arithmetic units without the need to provide a special synchronization device, thereby reducing costs and eliminating bulky devices. The objective is to provide a synchronization method between devices.

〔課題を解決するための手段〕[Means to solve the problem]

それぞれが、ディジタル入出力ボートを備えた1チップ
マイコンからなる第1及び第2の各演算装置において、
第1の演算装置の或るディジタル入出力ボートから第2
の演算装置の或るディジタル入出力ボートへ至る第1の
同期信号線と、第2の演算装置の他のディジタル入出力
ボートから第1の演算装置の他のディジタル入出力ボー
トへ至る第2の同期信号線と、を設けておく。
In each of the first and second arithmetic units each consisting of a one-chip microcomputer equipped with a digital input/output board,
from a certain digital input/output port of the first arithmetic unit to the second
A first synchronization signal line leading to a certain digital input/output port of the arithmetic unit, and a second synchronizing signal line leading from another digital input/output port of the second arithmetic unit to another digital input/output port of the first arithmetic unit. A synchronization signal line is provided.

〔作用〕[Effect]

第1の演算装置において動作準備完了になったら第1の
演算装置では前記第1の同期信号線の論理レベルを立ち
上げて待機状態に入ると共に第2の同期信号線の監視を
開始し、第2の演算装置が動作準備完了になったことに
より前記第2の同期信号線の論理レベルを立ち上げると
、第1の演算装置ではこれを検出することにより待機状
態から抜け出して動作を開始し、第2の演算装置では、
第1の同期信号線の論理レベルが既に立ち上がっている
ところからすぐに待機状態を抜け出して動作を開始し、
動作を開始した時点で各同期信号線の論理レベルを立ち
下げることにより、第1の演算装置と第2の演算装置と
の間で同期をとる。
When the first arithmetic unit is ready for operation, the first arithmetic unit raises the logic level of the first synchronization signal line and enters a standby state, and starts monitoring the second synchronization signal line. When the second arithmetic unit is ready for operation and raises the logic level of the second synchronization signal line, the first arithmetic unit detects this and exits from the standby state and starts operation; In the second arithmetic unit,
Immediately exits the standby state and starts operation from the point where the logic level of the first synchronization signal line has already risen,
By lowering the logic level of each synchronizing signal line at the time of starting the operation, synchronization is achieved between the first arithmetic device and the second arithmetic device.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示すブロック図である。同
図において、10はディジタル入出力ボートを備えた1
チップマイコンからなる演算装置(A) 、11はディ
ジタル入出力ボートを備えた1チップマイコンからなる
演算装置(B) 、21ば演算装置(A)10のディジ
タル入出力ボートP2から演算値f(B)11のディジ
タル入出力ボートP1に至る同期信号線、22は演算装
置(B)11のディジタル入出力ボートP2から演算装
置(A)10のディジタル入出力ボートP1に至る同期
信号線、である。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the same figure, 10 is a unit equipped with a digital input/output board.
A calculation device (A) consisting of a chip microcomputer, 11 a calculation device (B) consisting of a one-chip microcomputer equipped with a digital input/output board, 21 a calculation value f(B) from the digital input/output port P2 of the calculation device (A) 10; ) 11, and 22 is a synchronization signal line from the digital input/output port P2 of the arithmetic unit (B) 11 to the digital input/output port P1 of the arithmetic unit (A) 10.

第2図は第1図の同期信号線上の信号タイミングを示す
タイミング図である。
FIG. 2 is a timing diagram showing the signal timing on the synchronization signal line of FIG. 1.

第1図、第2図を参照して同期に至る動作を説明する。The operation leading to synchronization will be explained with reference to FIGS. 1 and 2.

先ず演算装置(A)10では、タイミングt。First, in the arithmetic device (A) 10, timing t.

において同期準備完了になると、同期信号線21の論理
レベルをそれまでのO(Low)から1 (Hi g 
h)に立ち上げて待機状態になると共に、同期信号′f
IA22の監視を開始する0次にTO時間が経過してタ
イミング11において演算装置(B)11が同期準備完
了になると、演算装置(B)11は同期信号線22の論
理レベルをそれまでの0(Low)から1(High)
に立ち上げてくるので、演算装置(A)10はこれを検
出することにより待機状態を抜け出して演算を再開する
When synchronization preparation is completed, the logic level of the synchronization signal line 21 changes from O (Low) to 1 (High).
h) and enters the standby state, and the synchronization signal 'f
When the arithmetic unit (B) 11 becomes ready for synchronization at timing 11 after the 0th TO time has elapsed to start monitoring the IA 22, the arithmetic unit (B) 11 changes the logic level of the synchronization signal line 22 to 0. (Low) to 1 (High)
When the processing unit (A) 10 detects this, it exits the standby state and resumes calculation.

一方、演算装置(B)11も、同期信号線21を見ると
そこの信号レベルは既に1(High)になっているの
で、すぐに待機状態から抜け出して演算を再開する。
On the other hand, when the arithmetic unit (B) 11 also looks at the synchronization signal line 21, the signal level there is already 1 (High), so it immediately exits the standby state and restarts the arithmetic operation.

演算が再開された時点で各同期信号線の信号レベルは0
(Low)に立ち下がる。これにより演算装置(A)1
0と(B)11は同一タイミングから演算を開始するこ
とができ、同期が得られる。
The signal level of each synchronization signal line is 0 when the calculation is restarted.
(Low). As a result, arithmetic device (A) 1
0 and (B)11 can start calculations at the same timing, and synchronization can be obtained.

第3図は、演算装置(A)及び(B)における各CPU
 (中央処理装置)が同期に関して実行する動作の流れ
を示したフローチャートであるので参照されたい。
Figure 3 shows each CPU in the arithmetic units (A) and (B).
Please refer to this flowchart showing the flow of operations performed by the central processing unit (central processing unit) regarding synchronization.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、2つの演算装置
の間の同期をとるのに、既存のディジタル入出力ボート
間を専用ディジタル回線でつないで同期信号線とするだ
けで良く、特別な同期装置を必要としないので、コスト
を低度にできると共に、容積的にかさばることがないと
いう利点がある。また2つの演算装置の間のハンドシェ
ークが簡単に行えるので本発明の実現は容易である。
As explained above, according to the present invention, in order to synchronize two arithmetic units, it is only necessary to connect the existing digital input/output ports using a dedicated digital line to create a synchronization signal line. Since no synchronizer is required, there are advantages in that the cost can be reduced and the volume is not bulky. Furthermore, since handshaking between two arithmetic units can be easily performed, the present invention is easy to implement.

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

第1図は本発明の一実施例を示すブロック図、第2図は
第1図の同期信号線上の信号タイミングを示すタイミン
グ図、第3図は演算装置におけるCPUが同期に関して
実行する動作の流れを示したフローチャート、第4図は
2つの演算装置の間で同期をとる従来の方法を説明する
ためのブロック図、である。 符号の説明 10.11・・・ディジタル入出力ポートを備えた1チ
フプマイコンからなる演算装置、21.22・・・同期
信号線 代理人 弁理士 並 木 昭 夫
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a timing diagram showing the signal timing on the synchronization signal line in Fig. 1, and Fig. 3 is the flow of operations performed by the CPU in the arithmetic unit regarding synchronization. FIG. 4 is a block diagram for explaining a conventional method of synchronizing two arithmetic units. Explanation of symbols 10.11... Arithmetic unit consisting of a 1-chip microcomputer equipped with digital input/output ports, 21.22... Synchronization signal line agent Patent attorney Akio Namiki

Claims (1)

【特許請求の範囲】 1)それぞれが、ディジタル入出力ポートを備えた1チ
ップマイコンからなる第1及び第2の各演算装置の間の
同期方法において、 第1の演算装置の或るディジタル入出力ポートから第2
の演算装置の或るディジタル入出力ポートへ至る第1の
同期信号線と、第2の演算装置の他のディジタル入出力
ポートから第1の演算装置の他のディジタル入出力ポー
トへ至る第2の同期信号線と、を設けておき、 第1の演算装置において動作準備完了になったら第1の
演算装置では前記第1の同期信号線の論理レベルを立ち
上げて待機状態に入ると共に第2の同期信号線の監視を
開始し、第2の演算装置が動作準備完了になったことに
より前記第2の同期信号線の論理レベルを立ち上げると
、第1の演算装置ではこれを検出することにより待機状
態から抜け出して動作を開始し、第2の演算装置では、
第1の同期信号線の論理レベルが既に立ち上がっている
ところからすぐに待機状態を抜け出して動作を開始し、
動作を開始した時点で各同期信号線の論理レベルを立ち
下げることにより、第1の演算装置と第2の演算装置と
の間で同期をとることを特徴とする演算装置間の同期方
法。
[Scope of Claims] 1) A method for synchronizing first and second arithmetic units, each of which is a one-chip microcomputer with a digital input/output port, comprising: a certain digital input/output of the first arithmetic unit; 2nd from port
A first synchronization signal line leading to a certain digital input/output port of the arithmetic unit, and a second synchronizing signal line leading from another digital input/output port of the second arithmetic unit to another digital input/output port of the first arithmetic unit. A synchronization signal line is provided, and when the first arithmetic unit is ready for operation, the first arithmetic unit raises the logic level of the first synchronization signal line and enters a standby state, and the second arithmetic unit When the second arithmetic unit starts monitoring the synchronization signal line and raises the logic level of the second synchronization signal line when it becomes ready for operation, the first arithmetic unit detects this and The second arithmetic unit exits from the standby state and starts operating.
Immediately exits the standby state and starts operation from the point where the logic level of the first synchronization signal line has already risen,
A method for synchronizing arithmetic units, characterized in that synchronization is achieved between a first arithmetic unit and a second arithmetic unit by lowering the logic level of each synchronizing signal line at the time of starting operation.
JP17624088A 1988-07-16 1988-07-16 Synchronizing method between arithmetic units Pending JPH0227467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17624088A JPH0227467A (en) 1988-07-16 1988-07-16 Synchronizing method between arithmetic units

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17624088A JPH0227467A (en) 1988-07-16 1988-07-16 Synchronizing method between arithmetic units

Publications (1)

Publication Number Publication Date
JPH0227467A true JPH0227467A (en) 1990-01-30

Family

ID=16010090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17624088A Pending JPH0227467A (en) 1988-07-16 1988-07-16 Synchronizing method between arithmetic units

Country Status (1)

Country Link
JP (1) JPH0227467A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5138427A (en) * 1989-06-30 1992-08-11 Kabushiki Kaisha Toshiba Semiconductor device having a particular structure allowing for voltage stress test application
JPH0595615U (en) * 1991-07-05 1993-12-27 日本キャンバス工業株式会社 Filter cloth for high pressure belt press type dehydrator

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5899865A (en) * 1981-12-09 1983-06-14 Hitachi Ltd Multiplexing operation processing synchronizing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5899865A (en) * 1981-12-09 1983-06-14 Hitachi Ltd Multiplexing operation processing synchronizing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5138427A (en) * 1989-06-30 1992-08-11 Kabushiki Kaisha Toshiba Semiconductor device having a particular structure allowing for voltage stress test application
JPH0595615U (en) * 1991-07-05 1993-12-27 日本キャンバス工業株式会社 Filter cloth for high pressure belt press type dehydrator
JPH072022Y2 (en) * 1991-07-05 1995-01-25 日本キャンバス工業株式会社 Filter cloth for high pressure belt press type dehydrator

Similar Documents

Publication Publication Date Title
JPH03266108A (en) Single-chip microcomputer
JPH036534B2 (en)
JPH0227467A (en) Synchronizing method between arithmetic units
JPH01246602A (en) Special function unit for programmable controller
KR950033802A (en) Synchronous counter and its carry propagation method
JPS62235673A (en) Microcomputer
JPH0719187B2 (en) Logic circuit
JPS63272224A (en) External synchronizing circuit
JPS61245242A (en) Interruption input device
JPS62188061A (en) Magnetic tape control device
JPH07295956A (en) Microcontroller
KR200178427Y1 (en) State machine bus controller
JPH0363995A (en) Dual port memory
JPS587956A (en) Data transmitting system
JPS60107152A (en) Memory controller
JP2554423Y2 (en) Memory controller
JPH03171234A (en) Clock synchronous storage circuit
JPS62188060A (en) Magnetic tape control device
JPH04167113A (en) Information processor
JPS6349964A (en) Handshake controller
JPS6155775A (en) 1 chip microcomputer
JPH01211013A (en) Stand-by circuit for microprocessor
JPH03278210A (en) Microcomputer
JPS59123060A (en) Control system for transmission and reception of data
JPH0220913A (en) Register