JPS63158659A - Processing speed difference adjusting interface - Google Patents

Processing speed difference adjusting interface

Info

Publication number
JPS63158659A
JPS63158659A JP30747786A JP30747786A JPS63158659A JP S63158659 A JPS63158659 A JP S63158659A JP 30747786 A JP30747786 A JP 30747786A JP 30747786 A JP30747786 A JP 30747786A JP S63158659 A JPS63158659 A JP S63158659A
Authority
JP
Japan
Prior art keywords
data
cpu
speed processing
terminal
processing cpu
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
JP30747786A
Other languages
Japanese (ja)
Inventor
Takatoshi Nishida
西田 隆勇
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.)
Pentax Corp
Original Assignee
Asahi Kogaku Kogyo 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 Asahi Kogaku Kogyo Co Ltd filed Critical Asahi Kogaku Kogyo Co Ltd
Priority to JP30747786A priority Critical patent/JPS63158659A/en
Publication of JPS63158659A publication Critical patent/JPS63158659A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/17Interprocessor communication using an input/output type connection, e.g. channel, I/O port

Abstract

PURPOSE:To transmit and receive data between other circuits by a high speed processing CPU by making a three-state bus driver active when is discriminated that a low speed processing CPU is selected by a chip enable signal. CONSTITUTION:When data is fed to the high speed processing CPU 10 side from the low speed processing CPU 12 side, the CPU 10 instantaneously reads it and there is an allowance in time until next data is received. At that time, the CPU 10 temporarily changes the chip enable signal to bring the three-state bus driver 30 into a high impedance state to use a data bus between other circuits. When the data is fed from the CPU 10 side to the CPU 12 side, the driver 30 is initially brought into the high impedance state and the CPU 10 can temporarily change the chip enable signal to deliver the data between other circuits.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、例えばカメラに用いられ、異なる処理速度の
CPU間でデータを送受する際に処理速度差を調整する
処理速度差コM整用インターフェイスに関する。
Detailed Description of the Invention [Industrial Field of Application] The present invention is used, for example, in cameras to adjust processing speed differences when transmitting and receiving data between CPUs with different processing speeds. Concerning the interface.

[発明の背景] 近年におけるカメラの電子化は著しく、1台のカメラに
複数個のワンチップマイクロコンピュータ(以下、CP
 Uという。)が用いられている。
[Background of the Invention] In recent years, the electronicization of cameras has been remarkable, and one camera is equipped with multiple one-chip microcomputers (hereinafter referred to as CP).
It's called U. ) is used.

ここで、表示回路等では電源を常に入れておいた方が使
用上便利であり、低消費電力であるC MOSのCP 
Uにその処理を分担させた方が好ましい。
Here, it is more convenient to keep the power on for display circuits, etc., and CMOS CP, which has low power consumption,
It is preferable to have U share in the processing.

表示回路等では、処理速度の遅いCPU(低速処理CP
 U )で足り、したがって、消費電力を更に小さくす
ることができる。
In display circuits, etc., CPUs with slow processing speeds (low-speed processing
U ) is sufficient, and therefore power consumption can be further reduced.

一方、全体の制御を行うCPUは、比較的処理速度の速
いもの(高速処理CI) U )を用いる必要がある。
On the other hand, it is necessary to use a CPU that has a relatively high processing speed (high-speed processing CI) U for controlling the entire system.

ここで、高速処理CPUの処理速度は、例えば低速処理
CPUのそれの30倍である。
Here, the processing speed of the high-speed processing CPU is, for example, 30 times that of the low-speed processing CPU.

これら高速処理Cl) Uと低速処理CPUとの間でデ
ータを送受する場合、同期をとって確実にデータを送受
する。
When transmitting and receiving data between these high-speed processing Cl) U and the low-speed processing CPU, the data is reliably transmitted and received in synchronization.

[発明が解決しようとする問題点」 しかし、高速処理CPUにとっては、各データの送受時
間が長すぎ、このデータ送受中に他の回路との間でデー
タを送受することができなくなるので、リアルタイム処
理を行うことが困難になる場合がある。
[Problem to be solved by the invention] However, for high-speed processing CPUs, the time required to send and receive each data is too long, and data cannot be sent and received with other circuits while this data is being sent and received. Processing may become difficult.

これを避けるため、高速処理CPUを増設した場合には
、ハードウェア及びソフトウェアの構成が複雑になると
ともに、回路基板が大きくなってカメラ内蔵に適しなく
なる。また、低速処理CPUの代わりに高速処理CPU
を用いた場合には、コスト高となるとともに、消費電力
が大きくなる。
In order to avoid this, if a high-speed processing CPU is added, the hardware and software configuration will become complicated and the circuit board will become large, making it unsuitable for incorporating a camera. In addition, a high-speed processing CPU is used instead of a low-speed processing CPU.
If this method is used, the cost will be high and the power consumption will be large.

本発明は、上記問題点に鑑み、低速処理CPUと高速処
理CPUとの間でデータを送受中に、高速処理CI) 
Uが他の回路との間でデータの送受を行うことが可能な
処理速度差コM整用インターフェイスを提供することに
ある。
In view of the above-mentioned problems, the present invention provides that high-speed processing CI (high-speed processing CI)
The object of the present invention is to provide an interface for adjusting the processing speed difference between U and other circuits to send and receive data.

[問題点を解決するための手段] 本発明に係る処理速度差調整用インターフェイスでは、 データバスを介し、高速処理CPUと低速処理CPUと
の間でデータを送受する装置において、入力端子が該低
速処理cpu側に接続され、各データバスラインに介在
されたスリーステートパスドイバと、 該高速処理CPU側から該低速処理cpu側へチップイ
ネーブル信号を割込信号として供給する信号線と、 該低速処理CPU側からデータ送受方向を示すデータ方
向制御信号が供給され、該高速処理CPU側からチップ
イネーブル信号が供給され、該両信号に応じて、該スリ
ーステートバスドライバの制御端子にイネーブル信号を
供給するゲート回路とを有し、 該ゲート回路は、データ送受方向が該低速処理CPU側
から該高速処理CPU側であり、かつ、デツプイネーブ
ル信号により該低速処理CPUが選択されていると判別
した場合に、該スリーステートバスドライバをアクティ
ブにすることを特徴としている。
[Means for solving the problem] In the processing speed difference adjustment interface according to the present invention, in a device that transmits and receives data between a high-speed processing CPU and a low-speed processing CPU via a data bus, the input terminal is connected to the low-speed processing CPU. a three-state path driver connected to the processing CPU side and interposed in each data bus line; a signal line that supplies a chip enable signal as an interrupt signal from the high-speed processing CPU side to the low-speed processing CPU side; and the low-speed processing CPU side. A data direction control signal indicating the data transmission/reception direction is supplied from the processing CPU side, a chip enable signal is supplied from the high-speed processing CPU side, and an enable signal is supplied to the control terminal of the three-state bus driver in accordance with both signals. and a gate circuit that determines that the data transmission/reception direction is from the low-speed processing CPU side to the high-speed processing CPU side, and that the low-speed processing CPU is selected by the deep enable signal. In this case, the three-state bus driver is activated.

し作用」 両CPU間でデータを送受する場合、チップイネーブル
信号により、高速処理CPU側から低速処理CPU側へ
割込をかける。このようにすれば、高速処理c p u
は、比較的時間の余裕のある時期にデータ送受を開始す
ることができる。
When transmitting and receiving data between both CPUs, an interrupt is generated from the high-speed processing CPU side to the low-speed processing CPU side using the chip enable signal. In this way, high-speed processing CPU
can start transmitting and receiving data at a time when there is relatively sufficient time.

割込処理においては、割込をマスクして再割込を禁止す
る。
In interrupt processing, interrupts are masked to prohibit re-interrupts.

低速処理CPU側から高速処理CPU側へデータを送っ
ている場合、高速処理CPUは瞬時にこれを読み取り、
次のデータを受は取るまでに時間的余裕がある。このと
き、高速処理CPUはチップイネーブル信号を一時的に
変化させて該スリーステートバスドライバをハイインピ
ーダンス状態にし、データバスを他の回路との間で利用
できるようにする。低速処理CPUはこのチップイネー
ブル信号の変化により、高速処理CPUが他の回路との
間でデータの送受を行っていることを知ることができ、
デツプイネーブル信号がもとの状態になるまで次のデー
タを送るのを保留する。低速処理CPUの処理速度は遅
いので、場合によってはこの保留は必要でない。チップ
イネーブル信号かもとの状態になっても、割込禁止状態
になっているので、低速処理CPUに再割込がかけられ
ず、データ送受を継続して行うことができる。
When data is sent from the low-speed processing CPU side to the high-speed processing CPU side, the high-speed processing CPU instantly reads it,
There is plenty of time before receiving the next data. At this time, the high-speed processing CPU temporarily changes the chip enable signal to place the three-state bus driver in a high impedance state, allowing the data bus to be used with other circuits. The low-speed processing CPU can learn from changes in this chip enable signal that the high-speed processing CPU is transmitting and receiving data with other circuits.
Sending the next data is held off until the deep enable signal returns to its original state. Since the processing speed of the low-speed processing CPU is slow, this suspension may not be necessary in some cases. Even if the chip enable signal returns to its original state, the interrupt is disabled, so the low-speed processing CPU is not interrupted again and data can continue to be transmitted and received.

高速処理CPU側から低速処理CPU側へデータを送っ
ている場合には、該スリーステートバスドライバは当初
からハイインピーダンス状態になっており、高速処理C
PUはチップイネーブル信号を一時的に変化させて他の
回路との間でデータを送受できる。
When data is being sent from the high-speed processing CPU side to the low-speed processing CPU side, the three-state bus driver is in a high impedance state from the beginning, and the high-speed processing CPU
The PU can send and receive data to and from other circuits by temporarily changing the chip enable signal.

低速処理CP Uはこのチップイネーブル信号の変化に
より、高速処理CPUが他の回路との間でデータの送受
を行っていることを知ることができ、ラッチ人力でない
場合には、チップイネーブル信号かもとの状態になるま
での間に送られてくるデータを無視する。
The low-speed processing CPU can learn from changes in this chip enable signal that the high-speed processing CPU is transmitting and receiving data with other circuits, and if the latch is not manually operated, it may be a chip enable signal. Ignores data sent until the state is reached.

[実施例] 図面に塙づいて本発明の詳細な説明する。[Example] The present invention will be described in detail with reference to the drawings.

第1図に示す如く、CPU I OとCPU12とを接
続する信号線にインターフェイス14が介在されている
As shown in FIG. 1, an interface 14 is interposed in the signal line connecting the CPU IO and the CPU 12.

このCPUI2は、図示しない表示回路等の制御用であ
り、バッテリ16の端子電圧VDDがスイッチを介さず
に供給されて、常時動作状態となっている。バッテリ+
6の端子電圧VDDは略6ボルトであり、時間と共に除
々に低下する。
The CPU 2 is used to control a display circuit (not shown), etc., and is constantly in operation as it is supplied with the terminal voltage VDD of the battery 16 without going through a switch. battery +
The terminal voltage VDD of No. 6 is approximately 6 volts, and gradually decreases with time.

このCPUI2は0MO9で構成されており、しかも処
理速度が比較的遅い(例えばCPUl0の処理速度の1
/30)ので、極めて低消費電力であり、常時動作状態
にしても問題はない。また、0MO8の動作電圧の幅は
広いので、バッテリI6の端子電圧を直接用いてもCP
UI2自体は誤動作のおそれがない、、CPUI2に接
続される図示しない回路は、誤動作の問題が生じないよ
うな回路が選択されている。
This CPUI2 is configured with 0MO9, and its processing speed is relatively slow (for example, 1% of the processing speed of CPU10).
/30), so the power consumption is extremely low, and there is no problem even if it is kept in continuous operation. In addition, since the operating voltage range of 0MO8 is wide, even if the terminal voltage of battery I6 is directly used, CP
There is no risk of malfunction of the UI 2 itself, and a circuit (not shown) connected to the CPU 2 is selected so as to avoid the problem of malfunction.

一方、バッテリ16の端子電圧がスイッチI8を介して
スイッチングレギュレータ20へ供給され、+5ボルト
の定電圧がスイッチングレギュレータ20からCPUl
0へ供給されており、スイッチ18を開閉することによ
り必要時にのみCI) Uloが動作状態になる。CI
) U I OはCI) U l 2を含めた全体の制
御を行っており、処理速度の速いものが用いられている
On the other hand, the terminal voltage of the battery 16 is supplied to the switching regulator 20 via the switch I8, and a constant voltage of +5 volts is supplied from the switching regulator 20 to the CPU1.
By opening and closing switch 18, CI) Ulo is activated only when necessary. C.I.
) U IO controls the entire system including CI) U I 2, and one with a fast processing speed is used.

CI’UIOの「百(チップイネーブル)端子には、制
御信号線SIOを介して、レベル調整手段としてのイン
バータ22を構成するNチャンネルMO824のゲート
に接続されている。このインバータ22は、ソースがア
ースされたNチャンネルMO324と、一端がNチャン
ネルMO924のドレインに接続され他端がバッテリ!
6の正極に接続されたプルアップ抵抗器26とからなり
、NヂャンネルMO824のドレインは制御信号線S2
0を介してCP tJ I 2の1.NT(割込入力)
端子に接続されている。したがって、CE端子がロウレ
ベル電位(L)になるとfNT端子がハイレベル電位(
11)になる。この時の立ち上がりでCPUI2に割込
みがかかって、CPUl0とCPUI2との間の信号送
受の処理が行われる。すなわち、信号送受の開始時点は
CPUl0が決定し、CPtJ l 2がこれに従う。
The chip enable terminal of CI'UIO is connected via a control signal line SIO to the gate of an N-channel MO824 that constitutes an inverter 22 as a level adjustment means. A grounded N-channel MO324, one end connected to the drain of the N-channel MO924, and the other end connected to the battery!
The drain of the N-channel MO824 is connected to the control signal line S2.
1 of CP tJ I 2 through 0. NT (interrupt input)
connected to the terminal. Therefore, when the CE terminal becomes a low level potential (L), the fNT terminal becomes a high level potential (
11). At this rising edge, an interrupt is applied to the CPUI2, and processing for transmitting and receiving signals between the CPU10 and the CPUI2 is performed. That is, the starting point of signal transmission/reception is determined by CPU10, and CPtJ12 follows this.

ここで、インバータ22の電源はバッテリ16であり、
置端子がトIのときINT端子が略0ボルトになり、口
端子がLのときINT端子がVooボルトになる。これ
によってINT端子に加わる信号のノイズマージンが大
きくなり1、スイッチングレギュレータ20や図示しな
いエレクトロニックフラッンユ回路に用いられるDC/
DCコンバータから大きなノイズが発せられても、誤っ
た信号を受は取るのを防止することができる。
Here, the power source of the inverter 22 is the battery 16,
When the terminal is at I, the INT terminal becomes approximately 0 volts, and when the terminal is at L, the INT terminal becomes Voo volts. As a result, the noise margin of the signal applied to the INT terminal increases1, and the DC/
Even if large noise is emitted from the DC converter, receiving and receiving erroneous signals can be prevented.

CPU I OのACK(アクノリッジ)端子は制御信
号線S11を介してインバータ28の出力端子に接続さ
れ、インバータ28の入力端子は制御信号線S21を介
してCPU12の、A CK端子に接続されている。こ
の信号線は次のように用いられる。ずなわち、CPU 
I OからCPUI2へデータを送り、CP U I 
2がこれを受は取った場合には、CI) U l 2は
八〇に端子からパルスを出力してCPUl0に知らせる
。CPUl0はこれを受(Jで次のデータをCPUI2
へ送る。これとは逆に、CT’ U l 2からCPU
IQヘデータを送る場合には、データを送る毎に八〇に
端子からパルスを出力し、CPUl0へ知らせろ。
The ACK terminal of the CPU IO is connected to the output terminal of the inverter 28 via the control signal line S11, and the input terminal of the inverter 28 is connected to the ACK terminal of the CPU 12 via the control signal line S21. . This signal line is used as follows. CPU
Send data from I O to CPU I2,
If CI2 accepts this, CI) U12 outputs a pulse from the terminal 80 to notify CPU10. CPUl0 receives this (uses J to send the next data to CPUl2)
send to On the contrary, from CT' U l 2 to CPU
When sending data to IQ, output a pulse from terminal 80 every time data is sent and notify CPU10.

換言すれば、CPUI2がCP U I Oからデータ
を受は取った場合には、ACK端子からアクノリッジ信
号がCPUl0へ供給され、CPtJ12からCr’U
IOヘデータを送る場合には、各データを区別する同期
信号がΔCK端子からCPUl0へ供給される。
In other words, when CPUI2 receives data from CPUIO, an acknowledge signal is supplied from the ACK terminal to CPUl0, and Cr'U is sent from CPtJ12.
When sending data to IO, a synchronization signal that distinguishes each data is supplied from the ΔCK terminal to CPU10.

このように、データの送信方向にかかわらず一本の信号
線で送受信のタイミングをとっているので、信号線の本
数を低減できるという効果がある。
In this way, since the timing of transmission and reception is determined using a single signal line regardless of the data transmission direction, there is an effect that the number of signal lines can be reduced.

インバータ28にはレベル調整手段としてのレベルシッ
クが備えられており、またインバータ28の電源はスイ
ッチングレギュレータ20である。
The inverter 28 is equipped with a level switch as a level adjusting means, and the power source of the inverter 28 is the switching regulator 20.

したがって、ACK端子から出力される電圧が5ボルト
付近の電圧であっても、5ボルトにシフトされてへGK
端子へ供給される。また、ACK端子からのし出力が少
し高くてもスリーステートパスドライバ30の出力電圧
は略0ボルトになる。
Therefore, even if the voltage output from the ACK terminal is around 5 volts, it will be shifted to 5 volts and go to GK.
Supplied to the terminal. Furthermore, even if the output from the ACK terminal is a little high, the output voltage of the three-state path driver 30 will be approximately 0 volts.

このため、Fで下端子に加わる信号のノイズマーノンが
大きくなる。
Therefore, the noise marnon of the signal applied to the lower terminal at F becomes large.

データの送受は、CPUl0のデータ入出力端子DIA
−D4Aから4ビツトの並列データがCPU12のデー
タ入出力端子DIR−D413へ供給され、また逆に、
CPU12のデータ入出力端子DIB−D4BからCP
Ul0のデータ入出力端子DIA−D4Aへ4ビツトの
並列データが供給されるようになっている。
Data is sent and received using the data input/output terminal DIA of CPU10.
4-bit parallel data is supplied from -D4A to the data input/output terminal DIR-D413 of the CPU 12, and vice versa.
Data input/output terminal DIB-D4B of CPU12 to CP
4-bit parallel data is supplied to the data input/output terminal DIA-D4A of Ul0.

すなわち、CPUl0のデータ入出力端子DIAはデー
タバスラインS12を介してスリーステートバスドライ
バ30の出力端子に接続され、スリーステートバスドラ
イバ30の入力端子はデータバスラインS22を介して
CPUI2のデータ入出力端子DIBに接続されている
That is, the data input/output terminal DIA of CPUl0 is connected to the output terminal of the three-state bus driver 30 via the data bus line S12, and the input terminal of the three-state bus driver 30 is connected to the data input/output terminal of the CPUI2 via the data bus line S22. Connected to terminal DIB.

このスリーステートバスドライバ30は、インバータ2
8と同様に、レベル調整手段としてのレベルシックが備
えられておりまたスリーステートバスドライバ30の電
源はスイッチングレギュレータ20であるので、データ
入出力端子DIAに加わる信号のノイズマージンが大き
くなる。
This three-state bus driver 30 connects the inverter 2
Similarly to 8, since a level switch is provided as a level adjusting means and the power supply of the three-state bus driver 30 is the switching regulator 20, the noise margin of the signal applied to the data input/output terminal DIA becomes large.

データバスラインS12はまた、ノアゲート32の一方
の入力端子に接続されている。ノアゲート32の他方の
入力端子には、CPU12のCNT端子からバッファゲ
ート34を介してデータバスライン326が接続されて
いる。ノアゲート32の出力端子は、レベル調整手段と
してのインバータ36を構成するNチャンネルMOS3
8のゲートに接続されている。このインバータ36は上
記インバータ22と同一構成であり、NチャンネルMO
S38のソースにプルアップ抵抗器40の一端が接続さ
れている。また、NチャンネルMOS38のソースはデ
ータバスラインS22を介してCPU I 2のデータ
入出力端子DIBに接続されている。
Data bus line S12 is also connected to one input terminal of NOR gate 32. A data bus line 326 is connected to the other input terminal of the NOR gate 32 from the CNT terminal of the CPU 12 via a buffer gate 34 . The output terminal of the NOR gate 32 is an N-channel MOS 3 that constitutes an inverter 36 as a level adjustment means.
It is connected to gate 8. This inverter 36 has the same configuration as the above-mentioned inverter 22, and has an N-channel MO
One end of a pull-up resistor 40 is connected to the source of S38. Further, the source of the N-channel MOS 38 is connected to the data input/output terminal DIB of the CPU I 2 via the data bus line S22.

ここで、CP U 10からCPU12ヘデータを送る
場合には、CPUI2のCNT (入力出コントロール
)端子がLにされてノアゲート32が開かれ、データ入
出力端子DIAから出力された信シシ・が反転されてN
チャンネルMOSa8のゲートに伝わり、さらにインバ
ータ36により反転されてCP U l 2のデータ入
出力端子DIBへ送られる。
Here, when sending data from the CPU 10 to the CPU 12, the CNT (input/output control) terminal of the CPU 2 is set to L, the NOR gate 32 is opened, and the signal output from the data input/output terminal DIA is inverted. TeN
The signal is transmitted to the gate of the channel MOSa8, further inverted by the inverter 36, and sent to the data input/output terminal DIB of the CPU I2.

インバータ36の電源はバッテリ16であり、インバー
タ22による場合と同様に電圧レベルが調整されて、デ
ータ入出力端子DIBに加わる信号のノイズマージンが
大きくなる。
The power source of the inverter 36 is the battery 16, and the voltage level is adjusted as in the case of the inverter 22, so that the noise margin of the signal applied to the data input/output terminal DIB is increased.

データバスライン326はまた、ナントゲート42の一
方の入力端子にも接続されている。ナントゲート42の
他方の入力端子には、制御信号線S10がインバータ4
4を介して接続されている。
Data bus line 326 is also connected to one input terminal of Nant gate 42. A control signal line S10 is connected to the other input terminal of the Nant gate 42.
Connected via 4.

このナントゲート42の出力端子はデータバスラインS
27を介してスリーステートバスドライバ30の制御端
子に接続されている。
The output terminal of this Nant gate 42 is the data bus line S.
27 to the control terminal of the three-state bus driver 30.

したがって、n端子がLでCNT端子が11である場合
のみ、スリーステートバスドライバ30の制御端子がし
になってスリーステートパストライバ30がアクティブ
になる。この場合、ノアゲート32は閉じており、Nチ
ャンネルMOS38がオフ状態になっているので、デー
タの送信方向はCI) U 12側からCPUl0側に
なっている。
Therefore, only when the n terminal is L and the CNT terminal is 11, the control terminal of the three-state bus driver 30 becomes active, and the three-state path driver 30 becomes active. In this case, the NOR gate 32 is closed and the N-channel MOS 38 is in an off state, so the data transmission direction is from the CI) U 12 side to the CPU10 side.

データ入出力端子D2A−D4Aとデータ入出力端子D
 2 B−D 4 Bとの間の信号線に介在される回路
構成は、それぞれ、データ入出力端子DIへとデータ入
出力端子DIB間に介在される上記回路構成と同一にな
っており、データバスラインSI2にデータバスライン
S13〜S15が対応し、スリーステートバスドライバ
30にスリーステートバスドライバ46〜50が対応し
、データバスラインS22にデータバスラインS23〜
S25が対応し、ノアゲート32にノアゲート52〜5
6が対応し、インバータ36にインバータ58〜62が
対応している。
Data input/output terminals D2A-D4A and data input/output terminal D
The circuit configurations interposed in the signal lines between 2 B and 4 B are the same as the above circuit configurations interposed between the data input/output terminal DI and the data input/output terminal DIB, respectively. Data bus lines S13 to S15 correspond to bus line SI2, three-state bus drivers 46 to 50 correspond to three-state bus driver 30, and data bus lines S23 to S22 correspond to data bus line S22.
S25 corresponds to Noah gate 32 and Noah gate 52 to 5
6 corresponds to the inverter 36, and inverters 58 to 62 correspond to the inverter 36.

ここで、CPUl0はCPUI2よりも処理速度が速い
ので、CPUI2からデータを受は取った後ACK端子
からパルスが送られてくるまでの間、CPUl0はC端
子をHにしてスリーステートバスドライバ30をハイイ
ンピーダンス状態にし、他の回路にチップイネイブル信
号を供給し、データバスを用いて該回路との間でデータ
の送受を行うことができる。この場合、CPU12の■
N T端子はLになッテおり、CPU12j;1cPU
IOが他の回路とデータの送受を行なっていることを知
ることができるので、CPUI2にとって他の回路との
データ送受時間が長い場合には、INT端子が再び■(
になったことを確認した後にACK端子からパルスを出
力する。
Here, since the processing speed of CPUl0 is faster than CPUI2, CPUl0 sets the C terminal to H to activate the three-state bus driver 30 after receiving data from CPUI2 until a pulse is sent from the ACK terminal. It is possible to set it in a high impedance state, supply a chip enable signal to other circuits, and send and receive data to and from the other circuits using a data bus. In this case, the CPU 12's ■
N T terminal is set to L, CPU12j; 1cPU
Since it is possible to know that IO is transmitting and receiving data with other circuits, if it takes a long time for the CPU 2 to transmit and receive data with other circuits, the INT terminal becomes
After confirming that , a pulse is output from the ACK terminal.

一方、CPU l OからCPU12ヘデータを送る場
合には、CNT端子がしにされてノアゲート32.52
〜56が開いており、CPU12が割込処理中にCPU
l0がCPU12以外の回路とデータの送受を行っても
、このデータはCPU 12のデータ入出力端子D I
 n −D 4 r3へも送られる。しかし、この場合
には、CP U l OはC端子をIfにしており、I
 N T J、m’Q子がしてあるので、たとえ割込処
理中であってもCPUI2はこのデータがCPtJIO
からCPU12へ送るためのものでないことを知ること
ができ、rNT端子が11になった後にCP U I 
Oからのデータを受は取る。
On the other hand, when sending data from CPU 10 to CPU 12, the CNT terminal is connected to the Noah gate 32.52.
~56 is open and the CPU 12 is interrupt processing.
Even if l0 sends and receives data to and from a circuit other than the CPU 12, this data is transferred to the data input/output terminal D I of the CPU 12.
It is also sent to n-D4r3. However, in this case, the CPU O sets the C terminal to If, and the I
N T J, m'Q child has been written, so even if an interrupt is being processed, the CPUI2 will use this data as CPtJIO.
You can know that it is not intended to be sent to the CPU 12, and after the rNT terminal becomes 11, the CPU
Receives data from O.

そして、ACK端子からパルスを出力し、CPU10に
対し次のデータの出力を促す。
Then, a pulse is output from the ACK terminal to prompt the CPU 10 to output the next data.

次にCPUI2の割込処理の一例を説明する。Next, an example of interrupt processing of the CPUI 2 will be explained.

第2図はこの割込処理のフローチャートであり、第3図
は割込処理における信号のタイミングヂャートである。
FIG. 2 is a flowchart of this interrupt processing, and FIG. 3 is a timing chart of signals in the interrupt processing.

INT端子の電圧が立ち上がってCr’ [J I 2
に割込がかかると、ステップ+00でレジスフの内容が
退避され、次にステップ+02で割込がマスクされて割
込禁止状態になる。
The voltage at the INT terminal rises and Cr' [J I 2
When an interrupt occurs, the contents of the register are saved in step +00, and then in step +02, the interrupt is masked and the interrupt is disabled.

ここで、CPUl0はC端子を■(がらLにすると同時
に、データ入出力端子DIA−D4AにデータMを出力
する。このデータMの値により、データの送信方向、送
受されるデータの種類及びその個数が決定される。
Here, the CPU10 sets the C terminal to the low level, and at the same time outputs the data M to the data input/output terminal DIA-D4A.The value of this data M determines the data transmission direction, the type of data to be sent and received, and the The number is determined.

ステップ103でこのデータMを読み込み、ステップ1
04でデータMの値に応じて処理内容を選択する。すな
わち、データMの値が0またはIであればCPUI2は
CPUl0からデータを受け、データMの値が2〜4で
あればCPU l 2はCP U I Oヘデータを送
る。また、CPU I 2のRA Mには、第4図に示
す如く、データMの値に応じて、CPUl0からCPU
12へ送られるデータの書き込みアドレス及びデータの
個数が定められており、またCPUI2からCPUl0
へ送るデータの読み出しアドレス及びデータの個数が定
められている。
In step 103, read this data M, and in step 1
In step 04, the processing content is selected according to the value of data M. That is, if the value of data M is 0 or I, CPU I2 receives data from CPU I0, and if the value of data M is 2 to 4, CPU I2 sends data to CPU IO. In addition, as shown in FIG.
The write address and number of data sent to CPU12 are determined, and the write address and number of data sent to CPU12 are determined.
The read address and number of pieces of data to be sent to are determined.

したがって、信号の送受方向を示す信号線及び送出デー
タの終わりを示す信号線を別に用いる必要がなく、信号
線の本数を低減できるという効果がある。
Therefore, there is no need to separately use a signal line indicating the direction of signal transmission/reception and a signal line indicating the end of sent data, resulting in an effect that the number of signal lines can be reduced.

M=0の場合には、ステップ106でCNT端子を11
にしてノアゲート32.52〜56を閉じるとともにス
リーステートバスドライバ30.46〜50をアクティ
ブにする。次にステップ108で八〇に端子からパルス
を出力し、CPUI2からCPUl0ヘデータ八を送出
することを知らせる。次にステップ+10でCPU+2
のriFAMの所定アドレスに、■iき込まれているデ
ータAを読み出してCPUl0へ送出する。CI) U
 I Oは処理速度が速いのでこのデータ八を直ちに読
み込むことができ、次にACK端子からパルスが供給さ
れるまでの間、他の回路とデータを送受して、余った時
間を有効に使うことができる。
If M=0, the CNT terminal is set to 11 in step 106.
to close NOR gates 32.52-56 and activate three-state bus drivers 30.46-50. Next, in step 108, a pulse is output from the terminal 80 to inform it that data 8 will be sent from the CPUI2 to the CPU10. Next, step +10 and CPU +2
The data A written in i is read out to a predetermined address of the riFAM and sent to the CPU10. CI) U
Since the processing speed of IO is fast, this data can be read immediately, and the remaining time can be used effectively by sending and receiving data with other circuits until the next pulse is supplied from the ACK terminal. I can do it.

この場合、第3図に示す如く、CI) U l 2のI
NT端子が一定時間りにされる。第2図に示すフローチ
ャートでは、CPUI2はこのI N T端子がしにな
ったことを確認しないが、このLの期間がCPUI2に
とって長い場合には、これを確認してINT端子がHに
なった後にACK端子からパルスを出力するようにして
もよい。
In this case, as shown in FIG. 3, I of CI) U l 2
The NT terminal is closed for a certain period of time. In the flowchart shown in Figure 2, CPU2 does not confirm that the INT terminal has become low, but if this low period is long for CPUI2, it confirms this and changes the INT terminal to high. A pulse may be output from the ACK terminal later.

次にステップ+12でACK端子からパルスを出力した
後、ステップ+14でCPUI2のRAMの所定アドレ
スに書き込まれているデータBを読み出してcpu t
 oへ出力する。次にステップ116でACK端子から
パルスを出力する。CPUl0は、最初に出力するデー
タMの値により、CPU12から受は取るデータの種類
及び個数を知っており、ACK端子からの該パルスによ
りCPUI2から送られてくるデータが終了路したこと
を知る。
Next, in step +12, a pulse is output from the ACK terminal, and in step +14, data B written in the specified address of the RAM of CPUI2 is read out and the CPU t
Output to o. Next, in step 116, a pulse is output from the ACK terminal. The CPU 10 knows the type and number of data to be received from the CPU 12 from the value of the data M outputted first, and knows that the data sent from the CPU 2 has ended due to the pulse from the ACK terminal.

次にステップ11gでCNT端子をLにしてノアゲート
32.52〜56を開くとともに、スリーステートバス
ドライバ30,46〜50をハイインピーダンス状態に
する。これによりCPUl0はデータバスを用いて他の
回路とデータの送受を行うことができる。次にステップ
120で割込禁止状態を解除する。次にステップ122
で割込直前のレジスタの内容を復帰し、割込前の処理を
再開する。
Next, in step 11g, the CNT terminal is set to L to open the NOR gates 32, 52-56, and the three-state bus drivers 30, 46-50 are placed in a high impedance state. This allows CPU10 to send and receive data to and from other circuits using the data bus. Next, in step 120, the interrupt disabled state is canceled. Next step 122
The contents of the register immediately before the interrupt are restored and the processing before the interrupt is resumed.

M=1の場合には、ステップ124へ進み、前記同様の
処理を行う。
If M=1, the process advances to step 124 and the same process as described above is performed.

M=2の場合には、CNT端子がすでにLになっている
ので再度CNT端子をLする必要はなく、ステップ12
6でACK端子からパルスを出力してデータMを受は取
ったことをCPUl0へ知らせる。次にステップ128
で、INT端子が■4であるかしであるかを判別する。
In the case of M=2, since the CNT terminal is already set to L, there is no need to set the CNT terminal to L again, and step 12
At step 6, a pulse is output from the ACK terminal to notify CPU10 that data M has been received. Then step 128
Then, it is determined whether the INT terminal is 4 or not.

してある場合には、スリーステートバスドライバ30.
46〜50がハイインピーダンス状態になっており、C
PUl0はデータバスを他の回路とのデータの送受に使
用することができる。この使用後、CPUl0はGE端
子をしにするとともにデータ人出力端子DIA−D4A
にデータEを出力する。
If the three-state bus driver 30.
46 to 50 are in a high impedance state, and C
PU10 can use the data bus to send and receive data to and from other circuits. After this use, the CPU10 closes the GE terminal and the data output terminal DIA-D4A.
Data E is output to.

CPU12はINT端子がHになるのを待ってステップ
130へ進み、データEを読み取り、RAMの所定アド
レスへこれを書き込む。次にステップ132でACK端
子からパルスを出力し、データを受は取ったことをCP
Ul0へ知らせる。そして、ステップ134〜138で
、前記ステップ128〜132と同様にして次のデータ
を受は取り、これをCPUl0へ知らせる。次に上記ス
テップ118〜!22の処理を行った後、割込前の処理
を再開する。
The CPU 12 waits for the INT terminal to become H, then proceeds to step 130, reads data E, and writes it to a predetermined address in the RAM. Next, in step 132, a pulse is output from the ACK terminal to indicate that the data has been received.
Inform Ul0. Then, in steps 134-138, the next data is received in the same manner as steps 128-132, and this is notified to CPU10. Next, step 118~! After performing the processing in step 22, the processing before the interrupt is resumed.

M=3の場合にはステップ104からステップ136へ
進み、M=4の場合にはステップ+04からステップ1
38へ進み、上記M=2の場合と同様の処理を行う。
If M=3, proceed from step 104 to step 136; if M=4, proceed from step +04 to step 1.
The process advances to step 38, and the same processing as in the case of M=2 described above is performed.

このように、カメラの特殊性を考慮しできるだけ少ない
制御信号線を用いて、処理速度の異なるCPUl0とC
PU12との間でデータ送受を行うとともに、処理速度
の速いc p u t oにおいては該データ送受中に
他の処理を行って待ち時間を有効に使うことができる。
In this way, by using as few control signal lines as possible considering the special characteristics of the camera, CPU10 and C
In addition to transmitting and receiving data to and from the PU 12, in a CPU having a high processing speed, other processing can be performed during the data transmission and reception, thereby making effective use of waiting time.

なを、CPUI2のデータ入力をラッチ入力にすれば、
ステップ+28.134を省略することができる。
Well, if you make the data input of CPUI2 a latch input,
Step +28.134 can be omitted.

[発明の効果] 本発明に係る処理速度差調整用インターフェイスでは、
蒔速処理CPU側から低速処理CPU側へチップイネー
ブル信号を割込信号として供給し、データ送受方向が低
速処理CPU側から高速処理CPU側であって、かつ、
チップイネーブル信号により低速処理CPUが選択され
ている場合に限り、スリーステートバスドライバをアク
ティブにして該送受方向にデータを送るようになってお
り、低速処理CI) U側から高速処理CPU側へデー
タを送っている場合には、高速処理CPUは瞬時にこれ
を読み取ることができるのでチップイネーブル信号を一
時的に変化させて該スリーステートバスドライバをハイ
インピーダンス状態にすることによりデータバスを他の
回路との間で利用することができ、一方、低速処理CP
Uはこのチップイネーブル信号の変化により高速処理C
PUが他の回路との間でデータの送受を行っていること
を知ることができるのでチップイネーブル信号かもとの
状態になるまで次のデータを送るのを保留し、または低
速処理CPUの処理速度は遅いので場合によってはこの
保留をせず、次にチップイネーブル信号かもとの状態に
なっても割込禁止状態にしておけば低速処理CPUに再
割込がかけられないのでデータ送受を継続して行うこと
ができ、また、高速処理CPU側から低速処理CPU側
へデータを送っている場合には、該スリーステートバス
ドライバは当初からハイインピーダンス状態になってい
るので高速処理CPUはチップイネーブル信号を単に一
時的に変化させることにより他の回路との間でデータを
送受でき、高速処理CPUは、低速処理CPUとの間で
データ送受中であっても、一時的に他の回路との間でリ
アルタイムにデータを送受でき、待ち時間を有効利用し
て処理速度差を調整することができるという優れた効果
がある。
[Effects of the Invention] In the processing speed difference adjustment interface according to the present invention,
A chip enable signal is supplied as an interrupt signal from the high-speed processing CPU side to the low-speed processing CPU side, and the data transmission/reception direction is from the low-speed processing CPU side to the high-speed processing CPU side, and
Only when the low-speed processing CPU is selected by the chip enable signal, the three-state bus driver is activated and data is sent in the corresponding transmission/reception direction. If the three-state bus driver is being sent, the high-speed processing CPU can read it instantly and temporarily change the chip enable signal to put the three-state bus driver in a high-impedance state, thereby disconnecting the data bus from other circuits. On the other hand, low-speed processing CP
U performs high-speed processing C due to changes in this chip enable signal.
Since it is possible to know that the PU is sending and receiving data with other circuits, it is possible to hold off sending the next data until the chip enable signal returns to its original state, or to reduce the processing speed of a low-speed CPU. is slow, so in some cases, do not suspend this process, and even if the chip enable signal returns to its original state, if you disable interrupts, the low-speed processing CPU will not be interrupted again, so data transmission and reception will continue. In addition, when data is being sent from the high-speed processing CPU side to the low-speed processing CPU side, the three-state bus driver is in a high impedance state from the beginning, so the high-speed processing CPU receives the chip enable signal. Data can be sent and received from other circuits simply by temporarily changing the . It has the excellent effect of being able to send and receive data in real time, making effective use of waiting time and adjusting processing speed differences.

加うるに、ハードウェア構成が簡単であり、多機能化か
つコンパクト化が要請されるカメラに適しているという
優れた効果もある。
In addition, the hardware configuration is simple, making it suitable for cameras that are required to be multi-functional and compact.

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

第1図乃至第4図は本発明の実施例に係り、第1図は主
に高速処理CPUと低速処理CPUとの間の信号線に介
在されるインターフェイス14を示す回路図、第2図は
CPUI2の割込処理を示すフローチャート、第3図は
信号送受時のタイミングチャート、第4図はCPU12
に内蔵されたRAMに書き込まれ又はこのRAMから読
み出される送受データの記憶領域を示す図である。 22.44:インバータ 42:ナンドゲート 30.46.48.50ニスリーステートバスドライバ CE:チップイネーブル信号出力端子 INT:割込信号入力端子 S26:データ送受方向を示す信号を供給する信号線
1 to 4 relate to embodiments of the present invention, in which FIG. 1 is a circuit diagram mainly showing an interface 14 interposed in a signal line between a high-speed processing CPU and a low-speed processing CPU, and FIG. Flowchart showing interrupt processing of CPUI2, Figure 3 is a timing chart during signal transmission and reception, Figure 4 is a flowchart showing CPU12 interrupt processing.
FIG. 2 is a diagram showing a storage area of transmitted and received data written to or read from a RAM built in the computer. 22.44: Inverter 42: NAND gate 30.46.48.50 Nisly state bus driver CE: Chip enable signal output terminal INT: Interrupt signal input terminal S26: Signal line that supplies a signal indicating the data transmission/reception direction

Claims (1)

【特許請求の範囲】 データバスを介し、高速処理CPUと低速処理CPUと
の間でデータを送受する装置において、入力端子が該低
速処理CPU側に接続され、各データバスラインに介在
されたスリーステートバスドイバと、 該高速処理CPU側から該低速処理CPU側へチップイ
ネーブル信号を割込信号として供給する信号線と、 該低速処理CPU側からデータ送受方向を示すデータ方
向制御信号が供給され、該高速処理CPU側からチップ
イネーブル信号が供給され、該両信号に応じて、該スリ
ーステートバスドライバの制御端子にイネーブル信号を
供給するゲート回路とを有し、 該ゲート回路は、データ送受方向が該低速処理CPU側
から該高速処理CPU側であり、かつ、チップイネーブ
ル信号により該低速処理CPUが選択されていると判別
した場合に、該スリーステートバスドライバをアクティ
ブにすることを特徴とする処理速度差調整用インターフ
ェイス。
[Scope of Claims] In a device that transmits and receives data between a high-speed processing CPU and a low-speed processing CPU via a data bus, an input terminal is connected to the low-speed processing CPU side, and a three-way a state bus driver; a signal line that supplies a chip enable signal as an interrupt signal from the high-speed processing CPU side to the low-speed processing CPU side; and a data direction control signal that indicates the data transmission/reception direction from the low-speed processing CPU side. , a gate circuit that is supplied with a chip enable signal from the high-speed processing CPU side and supplies an enable signal to the control terminal of the three-state bus driver in accordance with both signals, and the gate circuit is configured to operate in the data transmission/reception direction. is from the low-speed processing CPU side to the high-speed processing CPU side, and the three-state bus driver is activated when it is determined that the low-speed processing CPU is selected by the chip enable signal. Interface for adjusting processing speed difference.
JP30747786A 1986-12-23 1986-12-23 Processing speed difference adjusting interface Pending JPS63158659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30747786A JPS63158659A (en) 1986-12-23 1986-12-23 Processing speed difference adjusting interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30747786A JPS63158659A (en) 1986-12-23 1986-12-23 Processing speed difference adjusting interface

Publications (1)

Publication Number Publication Date
JPS63158659A true JPS63158659A (en) 1988-07-01

Family

ID=17969549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30747786A Pending JPS63158659A (en) 1986-12-23 1986-12-23 Processing speed difference adjusting interface

Country Status (1)

Country Link
JP (1) JPS63158659A (en)

Similar Documents

Publication Publication Date Title
JP4061231B2 (en) Semiconductor integrated circuit, on-chip termination device, and on-chip terminator control method
KR880010365A (en) Bus Interface Circuits for Digital Data Processors
KR850007129A (en) Microcomputer system with bus control
TW200413933A (en) Memory bus termination
US5025414A (en) Serial bus interface capable of transferring data in different formats
US5367645A (en) Modified interface for parallel access EPROM
JPS63158659A (en) Processing speed difference adjusting interface
US4539656A (en) Memory access selection circuit
US4594654A (en) Circuit for controlling external bipolar buffers from an MOS peripheral device
US5636370A (en) System and method for interfacing risc busses to peripheral circuits using another template of busses in a data communication adapter
US4941157A (en) Slow peripheral handshake interface circuit
EP0473278B1 (en) Logic apparatus for use with a computing device
JP2845666B2 (en) Microcomputer
JP2671743B2 (en) Microcomputer
KR930006234B1 (en) Data-transceiving system between processors
KR950010955B1 (en) Apparatus for 64 bits data transmission control of ticom computer system
JPS6269348A (en) Data transfer device
JP2563807B2 (en) Direct memory access control circuit
KR0169622B1 (en) Interface circuit between host system and cdi system
KR100427169B1 (en) Communication system and data transmission method thereof
KR970007157Y1 (en) Interface apparatus between system bus and multiple parallel port
JPS6281118A (en) Input and output circuit
JPH0143328B2 (en)
JPH05334234A (en) High speed dma transferring device
KR20000060513A (en) Interfacing apparatus