JPH04205047A - Data processor - Google Patents

Data processor

Info

Publication number
JPH04205047A
JPH04205047A JP32575490A JP32575490A JPH04205047A JP H04205047 A JPH04205047 A JP H04205047A JP 32575490 A JP32575490 A JP 32575490A JP 32575490 A JP32575490 A JP 32575490A JP H04205047 A JPH04205047 A JP H04205047A
Authority
JP
Japan
Prior art keywords
cpu
internal software
interrupt
control section
ram
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
JP32575490A
Other languages
Japanese (ja)
Inventor
Kazuo Shimizu
一夫 清水
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.)
Olympus Corp
Original Assignee
Olympus Optical 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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP32575490A priority Critical patent/JPH04205047A/en
Publication of JPH04205047A publication Critical patent/JPH04205047A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To make it possible to control operation of main and sub control sections by connecting the main control section to the sub-control section via a coupling means of substituting part of memory space of the main control section for a program space of the subcontrol section to load the main control section with internal software from an external memory. CONSTITUTION:CPU 34 reads a base program for CPU 35 from external memory 42, and writes the base program and an interrupt vector area in a dual port RAM 43. The CPU 34 releases CPU 35 from reset to operate the CPU 35 from the base program, writes an internal software request command in RAM 43, generates an interrupt in CPU 34, and waits for termination of loading of internal software. CPU 34 reads a command area to release the interrupt, reads internal software from CPU 35 and writes it in RAM 43, and further writes a command indicating termination of loading in RAM 43 to terminate interrupt processing by CPU 34. In CPU 35, a command area of RAM 43 is read to release interrupt, reads a data area, and writes internal software in the program area of CPU 35.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、複数の制鈍部(以下、CPUという)を有
し、これら複数のCPU間または他の周辺装置との間で
データの授受を行うデータ処理装置に関するものである
[Detailed Description of the Invention] [Industrial Application Field] This invention has a plurality of control units (hereinafter referred to as CPUs), and is capable of transmitting and receiving data between the plurality of CPUs or with other peripheral devices. The present invention relates to a data processing device that performs.

〔従来の技術〕[Conventional technology]

複数のCPLIを用いてデータの授受を行うデータ処理
装置として、従来、第6図および第7図に示すようなも
のか知られている。
2. Description of the Related Art Conventionally, data processing apparatuses shown in FIGS. 6 and 7 are known as data processing apparatuses that transmit and receive data using a plurality of CPLIs.

第6図に示すデータ処理装置は、二つのCPU 1およ
び2をI10ボート3および4を介して接続し、これら
I10ボート3.4を経てCPLIl、2間でのデータ
の授受、あるいは一方のCP[Jと他方のCPUの周辺
装置との間でのデータの授受を行うようにしたものであ
る。なお、CPLI 1のパスラインにはCPU 1の
内部ソフトを格納したROM 5および各種のデータを
一時格納するためのRAM 6か接続されていると共に
、CPU 2にもCPtJ 2の内部ソフトを格納した
ROM 7および各種のデータを一時格納するためのR
AM 8か接続されている。
The data processing device shown in FIG. [Data is exchanged between J and the peripheral device of the other CPU. Furthermore, a ROM 5 that stores the internal software of the CPU 1 and a RAM 6 for temporarily storing various data are connected to the path line of the CPLI 1, and the internal software of the CPtJ 2 is also stored in the CPU 2. ROM 7 and R for temporarily storing various data
AM 8 is connected.

また、第7図に示すデータ処理装置は、CPLI 11
、CPLI 12および外部メモ1月3をそれぞれイン
ターフェース14.15および16を介してマザーバス
17に接続してCPUl1.12間または他の周辺装置
との間でデータの転送を行うようにしだものて、CPU
l1.12の各パスラインには、それぞれ各CPtJの
内部ソフトを格納したROM18.19、各種のデータ
を一時格納するだめのRAM20.21およびデータの
授受を行うI10ボート22.23が接続されている。
Further, the data processing device shown in FIG. 7 is a CPLI 11
, the CPLI 12 and the external memory 13 are connected to the mother bus 17 via interfaces 14.15 and 16, respectively, for data transfer between the CPU 1.12 or other peripheral devices. ,CPU
Connected to each path line of l1.12 are a ROM 18.19 that stores the internal software of each CPtJ, a RAM 20.21 that temporarily stores various data, and an I10 port 22.23 that exchanges data. There is.

〔発明か解決しようとする課題〕[Invention or problem to be solved]

上述した従来のデータ処理装置においては、何れも各C
PU毎の専用のシステムROMを用いるようにしている
。このため、データ処理の内容を変更する場合には、各
CPUのシステムROMを交換するか、または予め処理
内容を変更できるように、各CPU毎に変更手段を設け
る必要かある。
In the conventional data processing device described above, each C
A dedicated system ROM is used for each PU. Therefore, when changing the content of data processing, it is necessary to replace the system ROM of each CPU, or to provide a changing means for each CPU so that the processing content can be changed in advance.

しかし、データ処理は、ユーザによりあるいは処理した
いデータによりその内容や処理方法か異なるため、上述
した従来のデータ処理装置におけるように、複数のCP
Uの各々について専用のシステムROMを用いる場合に
あっては、処理内容の変更に対応できない場合が生じる
。例えは、処理機能アップのために新しくハードウェア
を追加する場合には、ハート上は問題なく接続できるか
、それをコントロールするだめのソフトウェアの変更か
困難になる場合かある。
However, data processing differs in content and processing method depending on the user or the data to be processed.
If a dedicated system ROM is used for each U, it may not be possible to handle changes in processing contents. For example, when adding new hardware to improve processing capabilities, it may be possible to connect the hardware without any problems, or it may be difficult to change the software that controls it.

この発明は、このような従来の問題点に着目してなされ
たちのて、ソフトウェアの変更を簡単にてき、データ処
理を効率良くてきるよう適切に構成したデータ処理装置
を提供することを目的とする。
The present invention was made in view of these conventional problems, and an object of the present invention is to provide a data processing device that is appropriately configured so that software changes can be easily made and data processing can be performed efficiently. do.

〔課題を解決するだめの手段および作用〕上記目的を達
成するため、この発明では、外部メモリにより内部ソフ
トおよびアプリケーションソフトをロードして動作する
主制御部と、専用の内部ソフトを予め持たない少なくと
も一つの副制御部と、前記主制御部および副制御部間に
接続され、前記主制御部のメモリ空間の一部を前記副制
御部のプログラム空間とした結合手段とを設け、前記主
制御部により前記外部メモリから前記結合手段に内部ソ
フトおよびアプリケーションソフトをロートして、前記
主制御部および前記副制御部の動作を制御するよう構成
する。
[Means and operations for solving the problem] In order to achieve the above object, the present invention includes a main control section that loads and operates internal software and application software from an external memory, and at least a main control section that does not have dedicated internal software in advance. one sub-control unit, and a coupling means connected between the main control unit and the sub-control unit and using a part of the memory space of the main control unit as a program space of the sub-control unit; Internal software and application software are loaded from the external memory to the coupling means to control the operations of the main control section and the sub-control section.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示すものである。 FIG. 1 shows an embodiment of the present invention.

この実施例は画像処理装置を示すもので、TV左カメラ
1からのアナログ画像信号をA/D変換器32てデジタ
ル信号に変換して画像メモリ33に格納し、この画像メ
モリ33に格納された画像データに対してCPU 34
およびCPU 35により所要の画像処理を行って、そ
の画像処理したデータをD/A変換器36によりアナロ
グ画像信号に変換してCRT 37に表示するようにし
たものである。
This embodiment shows an image processing device, in which an analog image signal from a TV left camera 1 is converted into a digital signal by an A/D converter 32 and stored in an image memory 33. CPU 34 for image data
The CPU 35 then performs necessary image processing, and the image-processed data is converted into an analog image signal by a D/A converter 36 and displayed on a CRT 37.

CPU 34はパスラインを介して画像メモリ33に接
続すると共に、そのパスライン上にROM 38および
RAM 39を接続する。また、CPU 35にはその
パスラインにRAM 40および各種のI10ボート4
1を接続する。
The CPU 34 is connected to the image memory 33 via a pass line, and a ROM 38 and a RAM 39 are connected on the pass line. The CPU 35 also has a RAM 40 and various I10 ports 4 on its pass line.
Connect 1.

この実施例では、CPU 34のパスラインにICカー
ド、フロッピィ−ディスク、ハードディスク等の外部メ
モリ42を接続すると共に、CPU 34のパスライン
とCPtJ 35のパスラインとの間にデュアルポート
RAM43を接続する。デュアルポートRAM 43は
、第2図に示すように、CPU 34のコマンド領域4
4、CPtJ 35のコマンド領域45、サブコマンド
領域46、CPLI 35の割り込みベクタ領域47、
CPU 35のベースプログラム領域48およびデータ
領域49を有するメモリ構成として、このデュアルボー
)RAM43にCPU34のメモリ空間の一部とCPU
 35のメモリ空間の一部とを割り当てる。
In this embodiment, an external memory 42 such as an IC card, floppy disk, or hard disk is connected to the pass line of the CPU 34, and a dual port RAM 43 is connected between the pass line of the CPU 34 and the pass line of the CPtJ 35. . As shown in FIG.
4. Command area 45 of CPtJ 35, subcommand area 46, interrupt vector area 47 of CPLI 35,
As a memory configuration having a base program area 48 and a data area 49 for the CPU 35, this dual-baud RAM 43 has a part of the memory space of the CPU 34 and a part of the memory space of the CPU 34.
35 memory spaces.

このようにして、外部メモリ42からデータを読み込ん
でデュアルポートRAM 43に格納し、これに基づい
てデュアルポートRAM43を通してCPU34.35
間のデータ転送を行って、画像メモリ33に格納された
画像データを処理するようにする。なお、デュアルポー
トRAM 43のメモリ容量は、画像処理を効率良く行
うため、好適には画像の一ライン分以上とする。また、
CPU 35は装置の電源をオンしたとき、CPU 3
4からのリセット信号によりリセットされるようにする
In this way, data is read from the external memory 42 and stored in the dual port RAM 43, and based on this, the data is sent to the CPU 34, 35 through the dual port RAM 43.
The image data stored in the image memory 33 is processed by transferring data between the two. Note that the memory capacity of the dual port RAM 43 is preferably set to be equal to or more than one line of the image in order to perform image processing efficiently. Also,
When the CPU 35 turns on the device, the CPU 3
It is reset by the reset signal from 4.

以下、この実施例の動作を第3図〜第5図に示すフロー
チャートを参照しながら説明する。
The operation of this embodiment will be explained below with reference to the flowcharts shown in FIGS. 3 to 5.

装置の電源かオンになると、CPU 35はCPU 3
4からのリセット信号によりリセット状態となり、この
間にCPU 34は第3図に示すフローチャートに従っ
て動作する。すなわち、先ず、CPtJ 34はICカ
ード等の外部メモリ壮からCPIJ 35のベースプロ
グラムをリードする。このベースプログラムは、CP[
J35かデュアルポートRAM43からプログラムをデ
ータとしてリードして、CPU 35のメモリ空間にラ
イトするためのものである。
When the device is powered on, CPU 35
The CPU 34 enters a reset state in response to a reset signal from 4, and during this period the CPU 34 operates according to the flowchart shown in FIG. That is, first, the CPtJ 34 reads the base program of the CPIJ 35 from an external memory such as an IC card. This base program is based on CP [
This is for reading a program as data from the J35 or dual port RAM 43 and writing it into the memory space of the CPU 35.

次に、CPU 35は、外部メモリ42から読み取った
CPU 35のベースプログラムを、第2図に示したデ
ュアルポートRAM43のメモリマツプに従って、その
ベースプログラム領域48にライトすると共に、CPU
 35の割り込みベクタ領域47をライトする。その後
、CPU 34によりCPU 35のリセットを解除し
て、CPU 35をベースプログラムから動作開始させ
る。
Next, the CPU 35 writes the base program for the CPU 35 read from the external memory 42 into the base program area 48 according to the memory map of the dual port RAM 43 shown in FIG.
35 interrupt vector area 47 is written. Thereafter, the reset of the CPU 35 is canceled by the CPU 34, and the CPU 35 starts operating from the base program.

CPU 35は、その動作を開始したら、先ず、第2図
に示したデュアルポートRAM43のCPU 34のコ
マンド領域44に内部ソフト要求コマンドをライトして
、CPU 34に対して割り込みを発生させ、その後、
装置の管理を行いなから内部ソフトのロードか終了する
のを待つ。
When the CPU 35 starts its operation, it first writes an internal software request command to the command area 44 of the CPU 34 of the dual port RAM 43 shown in FIG. 2 to generate an interrupt to the CPU 34, and then,
Wait for the internal software to load or finish before managing the device.

一方、CPU ’34は、割り込みの発生によりデュア
ルポートRAM 43のCPLI 34のコマンド領域
44をリートして割り込みを解除すると共に、コマンド
の内容に応じて第4図に示すフローチャートに従って割
り込み処理を行う。すなわち、この場合には内部ソフト
のロードコマンドであるので、先ず外部メモリよりCP
U 35の内部ソフトをデータとしてリードして、デュ
アルポー)!’lAM43のデータ領域49にライトす
る。次に、CPU 35のコマンド領域45にロード終
了を示すコマンドを書き込み、これによりCPU 35
へ割り込みを発生させてCPIJ 34ての割り込み処
理を終了する。
On the other hand, when an interrupt occurs, the CPU '34 releases the command area 44 of the CPLI 34 of the dual port RAM 43 to release the interrupt, and also performs interrupt processing according to the flowchart shown in FIG. 4 according to the contents of the command. In other words, in this case, since it is an internal software load command, first load the CP from the external memory.
Read the internal software of U 35 as data, dual port)! 'Write to data area 49 of lAM43. Next, a command indicating the end of loading is written to the command area 45 of the CPU 35, and thereby the CPU 35
Generates an interrupt to CPIJ 34 and ends the interrupt processing.

CPU 35ては、この割り込みの発生により、デュア
ルポートRAM 43のCPU 35のコマンド領域4
5をリードして割り込みを解除し、そのコマンドの内容
に応じて第5図に示すフローチャートに従って割り込み
処理を行う。すなわち、この場合には、先ずコマンドか
内部メモリのロート終了コマンドであることを認識して
デュアルポートRAM43のデータ領域49をリードし
、そのリードした内部ソフトをCP[J 35のプログ
ラムエリア(メモリ空間内)にライトする。
When the CPU 35 generates this interrupt, the command area 4 of the CPU 35 in the dual port RAM 43 is
5 to cancel the interrupt, and according to the contents of the command, interrupt processing is performed according to the flowchart shown in FIG. That is, in this case, first, it recognizes that it is a command or an internal memory load end command, reads the data area 49 of the dual port RAM 43, and transfers the read internal software to the program area (memory space inside).

次に、内部ソフトか全てCPLI 35のプログラムエ
リアにロードされたか、まだ引き続き内部ソフトのロー
ドか必要かどうかをコマンドにより判定し、まだ必要で
あれば再び内部ソフトのロードコマンドをCPU 34
に対して出し、不必要であればロード終了フラグを立て
て割り込み処理を終了する。このロード終了フラグによ
り、CPU 35では内部ソフトのロード終了を認識し
、内部ソフトの実行に移る。
Next, the CPU 34 determines whether all internal software has been loaded into the program area of the CPLI 35 and whether it is necessary to continue loading the internal software.
If it is unnecessary, set the load end flag and end the interrupt processing. Based on this load completion flag, the CPU 35 recognizes that the internal software has been loaded and starts executing the internal software.

なお、この実施例では、デュアルポートRAM43にC
PU 35の割り込みベクタ領域47を設けたので、C
PU 35の割り込みに対してCPU 34かその割り
込みペクタを書き換えることか可能となる。したがって
、CPU 35の同−割り込み条件による割り込みでも
、CPU 34の条件て動作を変更することかできる。
In addition, in this embodiment, the dual port RAM 43 has C.
Since the interrupt vector area 47 for the PU 35 is provided, the C
It becomes possible to rewrite the CPU 34 or its interrupt vector in response to an interrupt from the PU 35. Therefore, even if the CPU 35 receives an interrupt based on the same interrupt condition, the operation can be changed depending on the CPU 34 condition.

このように、この実施例によれば、CPU 35にシス
テムROMを設けることなく、その内部ソフトをCPU
 34により外部メモリ42からロードするようにした
ので、外部メモリ42を変えるたけてCPU 34およ
び35の動作を容易に変更することかできる。
In this way, according to this embodiment, the internal software can be transferred to the CPU 35 without providing a system ROM.
34, the operations of the CPUs 34 and 35 can be easily changed by changing the external memory 42.

なお、この発明は上述した画像処理装置に限らず、他の
データ処理装置に有効に適用することかできる。また、
上述した実施例では、メインとなるCPU 34に一個
のサブCPU 35を接続するようにしたが、メインC
PUに複数のサブCPUを接続する場合でも、各サブC
PUを同様のデュアルポーh RAMを介して接続する
ことにより、この発明を有効に適用することかできる。
Note that the present invention is not limited to the above-described image processing apparatus, but can be effectively applied to other data processing apparatuses. Also,
In the embodiment described above, one sub CPU 35 is connected to the main CPU 34, but the main CPU 34 is connected to the sub CPU 35.
Even when connecting multiple sub CPUs to a PU, each sub CPU
The invention can be effectively applied by connecting the PUs through similar dual-port hRAMs.

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

以上のように、この発明によれは、主制御部および副制
画部を、主制御部のメモリ空間の一部を副制画部のプロ
グラム空間とした結合手段を介して接続することにより
、主制御部により外部メモリから内部ソフトをロードし
て、これら主制御部および副制圓部の動作を制御するよ
うにしたので、外部メモリを変えることて、ソフトウェ
アの変更を簡単にてき、したかってデータ処理を効率良
く行うことができる。
As described above, according to the present invention, the main control section and the sub-screening section are connected via the coupling means that uses a part of the memory space of the main control section as the program space of the sub-screening section. Since the main control section loads the internal software from the external memory and controls the operations of the main control section and the sub-control section, it is easy to change the software by changing the external memory. Data processing can be performed efficiently.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は第1図に示すデュアルポー) RAMのメモリ構成を
示す図、 第3図、第4図および第5図は第1図に示す実施例の動
作を説明するためのフローチャート、第6図および第7
図は従来の技術を説明するための図である。 31・・・TVカメラ     32・・・A/D変換
器33・・・画像メモリ    34.35・・・CP
tJ36・・・D/A変換器    37・・・CRT
38・・・ROM        39.40・・・R
AM41・・・I10ポート42・・・外部メモリ43
・・・デュアルポートRAM 第1図 第2図 第3図 CPLJ34イ貝・I
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing the memory configuration of the dual-port RAM shown in FIG. 1, and FIGS. Flowcharts for explaining the operation of the embodiment shown in FIGS. 6 and 7.
The figure is a diagram for explaining a conventional technique. 31...TV camera 32...A/D converter 33...Image memory 34.35...CP
tJ36...D/A converter 37...CRT
38...ROM 39.40...R
AM41...I10 port 42...External memory 43
...Dual port RAM Figure 1 Figure 2 Figure 3 CPLJ34 I shell

Claims (1)

【特許請求の範囲】[Claims] 1、外部メモリにより内部ソフトおよびアプリケーショ
ンソフトをロードして動作する主制御部と、専用の内部
ソフトを予め持たない少なくとも一つの副制御部と、前
記主制御部および副制御部間に接続され、前記主制御部
のメモリ空間の一部を前記副制御部のプログラム空間と
した結合手段とを具え、前記主制御部により前記外部メ
モリから前記結合手段に内部ソフトおよびアプリケーシ
ョンソフトをロードして、前記主制御部および前記副制
御部の動作を制御するよう構成したことを特徴とするデ
ータ処理装置。
1. A main control unit that loads and operates internal software and application software from an external memory, at least one sub-control unit that does not have dedicated internal software in advance, and is connected between the main control unit and the sub-control unit, a coupling means that uses a part of the memory space of the main control section as a program space of the sub-control section; the main control section loads internal software and application software from the external memory to the coupling means; A data processing device configured to control operations of a main control section and the sub-control section.
JP32575490A 1990-11-29 1990-11-29 Data processor Pending JPH04205047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32575490A JPH04205047A (en) 1990-11-29 1990-11-29 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32575490A JPH04205047A (en) 1990-11-29 1990-11-29 Data processor

Publications (1)

Publication Number Publication Date
JPH04205047A true JPH04205047A (en) 1992-07-27

Family

ID=18180263

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32575490A Pending JPH04205047A (en) 1990-11-29 1990-11-29 Data processor

Country Status (1)

Country Link
JP (1) JPH04205047A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009093502A (en) * 2007-10-10 2009-04-30 Canon Inc Information processing apparatus and control method thereof
JP2010541105A (en) * 2007-10-04 2010-12-24 オープンピーク インコーポレイテッド Firmware image update and management

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010541105A (en) * 2007-10-04 2010-12-24 オープンピーク インコーポレイテッド Firmware image update and management
JP2009093502A (en) * 2007-10-10 2009-04-30 Canon Inc Information processing apparatus and control method thereof

Similar Documents

Publication Publication Date Title
JPS63255759A (en) Control system
JPS62192867A (en) Work station handling image data
JP4696199B2 (en) USB host controller with transfer descriptor memory
JPH07225727A (en) Computer system
JPS5941033A (en) Electronic computer system
JP2001333137A (en) Self-operating communication controller and self- operating communication control method
US20090138634A1 (en) Semiconductor integrated circuit device which executes data transfer between a plurality of devices connected over network, and data transfer method
JPH10334037A (en) Communication dma device
JPH04205047A (en) Data processor
US6609179B1 (en) Method and apparatus for controlling memory access
JP2594611B2 (en) DMA transfer control device
JPH01175056A (en) Program transfer system
JP2980163B2 (en) Data transfer method
JPH0619817A (en) Communication processor
JPH0713920A (en) Dma transferring method
JPS63147247A (en) Converting device for data format
JPS60136853A (en) Data transfer system
JPH07334453A (en) Memory access system
JPH01142962A (en) Data transfer control system
JP2003186666A (en) Microcomputer and dma control circuit
JP2003186857A (en) Digital signal processing circuit
JPH0612368A (en) High-definition image processor
JPH1141595A (en) Video decoder lsi
JPH01181144A (en) Data input/output device
JPH05158859A (en) Information processor