JPH09244902A - Download circuit - Google Patents

Download circuit

Info

Publication number
JPH09244902A
JPH09244902A JP5447096A JP5447096A JPH09244902A JP H09244902 A JPH09244902 A JP H09244902A JP 5447096 A JP5447096 A JP 5447096A JP 5447096 A JP5447096 A JP 5447096A JP H09244902 A JPH09244902 A JP H09244902A
Authority
JP
Japan
Prior art keywords
program
processor
download
memory
processors
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.)
Withdrawn
Application number
JP5447096A
Other languages
Japanese (ja)
Inventor
Kenichi Uchino
健一 内野
Koichi Kihara
弘一 木原
Takehisa Takeuchi
偉久 竹内
Jiro Aso
二郎 麻生
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP5447096A priority Critical patent/JPH09244902A/en
Publication of JPH09244902A publication Critical patent/JPH09244902A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To externally download a program contents without turning off a power supply nor exchanging a program ROM even when a program change occurs in an operation mode, etc., by providing a specific memory, a specific processor and a specific program supply means and a specific control means respectively. SOLUTION: This circuit is provided with a processor 11 which is connected to a program reloadable memory via a bus and processes the program stored in the memory, a host CPU 14 which serves as a supply means to externally supply a program, and a control means 20. The means 20 is composed of a control circuit 15, a bidirectional buffer 16 and buffers 17 and 18. Then the means 20 connects the output line of the CPU 14 to the memory bus in a program rewrite mode to download the program of the CPU 14 to the processor 11 and then to transfer the downloaded program to the memory.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プロセッサにプロ
グラムをダウンロードするダウンロード回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a download circuit for downloading a program to a processor.

【0002】[0002]

【従来の技術】シングルチップマイクロコンピュータ
は、マイクロプロセッサを中心としてプログラムやデー
タの記憶用のROM及びRAMと各種の周辺制御機能を
内部バスなどによりシングルチップとして集積化したも
のである。各種の仕様は、ROMに書き込むプログラム
を変えることによって任意に変更することができる。
2. Description of the Related Art A single-chip microcomputer is mainly a microprocessor in which ROM and RAM for storing programs and data and various peripheral control functions are integrated as a single chip by an internal bus. Various specifications can be arbitrarily changed by changing the program written in the ROM.

【0003】最近ではシステム開発のデバッグごとにマ
スクROMを変更する時間損失を回避するため、プログ
ラムROMを不揮発性メモリ、例えばEPROM(eras
ableprogrammable ROM),EEPROM(electrically
erasable programmable ROM)とし、プログラム開発・
修正時間の短縮の大幅な短縮を図っている。
Recently, in order to avoid the time loss of changing the mask ROM for each debugging of system development, the program ROM is replaced with a non-volatile memory such as EPROM (eras).
ableprogrammable ROM), EEPROM (electrically
erasable programmable ROM) and program development
We are working to significantly reduce the time required for modification.

【0004】図7は単一プロセッサの構成例であり、プ
ロセッサ1はEPROM2のプログラムに従って処理を
行う。また、図8に示すように、1ボード上に複数のプ
ロセッサ(#0,#N)3,4と、プロセッサ#0,#
Nにプログラムを供給するEPROM(#0,#N)
5,6とが搭載された装置がある。図8に示すように複
数のプロセッサ#0,#Nを用いるものとしては、例え
ば通信用のプロセッサがあり、プロセッサ3,4に対し
それぞれ個別のEPROM5,6を有している。各プロ
セッサ3,4は、個別のEPROM5,6のプログラム
に従って各々の処理を行う。
FIG. 7 shows an example of the configuration of a single processor, and the processor 1 performs processing according to the program in the EPROM 2. Further, as shown in FIG. 8, a plurality of processors (# 0, #N) 3 and 4 and processors # 0 and # are provided on one board.
EPROM (# 0, #N) that supplies programs to N
There is a device equipped with 5, and 6. As shown in FIG. 8, as a processor using a plurality of processors # 0 and #N, there is, for example, a processor for communication, and the processors 3 and 4 have individual EPROMs 5 and 6, respectively. The processors 3 and 4 perform their respective processes according to the programs in the individual EPROMs 5 and 6.

【0005】また、プログラム変更が生じたときは、プ
ログラムROMの交換又はプログラムの書き換えを行っ
ていた。
When a program is changed, the program ROM is replaced or the program is rewritten.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の装置では、プロセッサに対しそれぞれプログ
ラムROMを設ける構成となっていたため、プロセッサ
を増やす毎にプログラムROMが増え、コストが増大す
るという問題点があった。
However, in such a conventional apparatus, the program ROM is provided for each processor, so that the program ROM is increased each time the number of processors is increased, and the cost is increased. was there.

【0007】また、同様な理由で、運用中などにプログ
ラム変更が発生した場合、プログラムROMの交換等を
しなければならず、電源断を行わなければならないとい
う問題点があった。
Further, for the same reason, if the program is changed during operation, the program ROM must be replaced and the power must be turned off.

【0008】本発明は、運用中などにプログラム変更が
発生しても電源断やプログラムROMの交換等を行うこ
となく、プログラム内容の変更を外部からダウンロード
することができるダウンロード回路を提供することを目
的とする。
The present invention provides a download circuit capable of externally downloading the change of the program content without powering off or replacing the program ROM even if the program is changed during operation. To aim.

【0009】また、本発明は、プロセッサをマルチ接続
するような装置において、各プロセッサに対し、個別の
プログラムROMを用意する必要をなくし、共通のプロ
グラムROMから各々のプログラムにダウンロードを可
能にするとともに、プログラム内容の変更を外部からダ
ウンロードすることにより、各プロセッサへのダウンロ
ードを可能にするダウンロード回路を提供することを目
的とする。
Further, the present invention eliminates the need to prepare a separate program ROM for each processor in an apparatus in which multiple processors are connected, and enables downloading of each program from a common program ROM. It is an object of the present invention to provide a download circuit that enables download to each processor by externally downloading changes in program content.

【0010】[0010]

【課題を解決するための手段】本発明に係るダウンロー
ド回路は、プログラムを書き換え可能なメモリと、該メ
モリにバスを介して接続され、該メモリに格納されたプ
ログラムを処理するプロセッサと、外部からプログラム
を供給する供給手段と、プログラム書き換え時、供給手
段の出力線をメモリのバスに接続して、該供給手段のプ
ログラムをプロセッサにダウンロードし、ダウンロード
終了後、ダウンロードされたプログラムを該メモリに転
送するように制御する制御手段とを備えた構成とする。
A download circuit according to the present invention includes a memory in which a program can be rewritten, a processor which is connected to the memory via a bus, and which processes the program stored in the memory, and an external processor. A supply means for supplying the program and an output line of the supply means are connected to the bus of the memory at the time of rewriting the program, the program of the supply means is downloaded to the processor, and after the download is completed, the downloaded program is transferred to the memory. And a control means for controlling so as to do so.

【0011】また、ダウンロード回路は、メモリに複数
のプロセッサが接続されており、制御手段は、プログラ
ム書き換え時、供給手段の出力線をメモリのバスに接続
して、供給手段のプログラムを第1のプロセッサにダウ
ンロードし、ダウンロード終了後、第1のプロセッサに
ダウンロードされたプログラムを該メモリに転送し、さ
らに該メモリに転送されたプログラムを他のプロセッサ
にダウンロードするように制御するように構成する。
Further, in the download circuit, a plurality of processors are connected to the memory, and the control means connects the output line of the supply means to the bus of the memory to rewrite the program of the supply means when the program is rewritten. The program is downloaded to the processor, and after the download is completed, the program downloaded to the first processor is transferred to the memory, and the program transferred to the memory is controlled to be downloaded to another processor.

【0012】また、ダウンロード回路は、ダウンロード
状態を監視する監視手段を備え、メモリに複数のプロセ
ッサが接続されており、制御手段は、プログラム書き換
え時、供給手段の出力線をメモリのバスに接続して、供
給手段のプログラムを第1のプロセッサにダウンロード
し、ダウンロード終了後、第1のプロセッサにダウンロ
ードされたプログラムを該メモリに転送し、さらに該メ
モリに転送されたプログラムを他のプロセッサに一斉に
ダウンロードするように制御し、監視手段は、ダウンロ
ード時全てのプロセッサが正常にダウンロードしている
ことを監視するように構成する。
Further, the download circuit is provided with a monitoring means for monitoring the download state, a plurality of processors are connected to the memory, and the control means connects the output line of the supply means to the bus of the memory when rewriting the program. Download the program of the supply means to the first processor, transfer the program downloaded to the first processor to the memory after the download is completed, and further transfer the program transferred to the memory to other processors all at once. The download control is performed, and the monitoring unit is configured to monitor that all the processors are normally downloading at the time of download.

【0013】さらに、供給手段は、制御手段に接続され
たマイクロコンピュータであってもよい。
Further, the supply means may be a microcomputer connected to the control means.

【0014】[0014]

【発明の実施の形態】本発明に係るダウンロード回路
は、通信用のプロセッサ等のダウンロード回路に適用す
ることができる。
The download circuit according to the present invention can be applied to a download circuit such as a communication processor.

【0015】図1は本発明の第1の実施形態に係るダウ
ンロード回路の構成図である。図1に示すダウンロード
回路は、プロセッサが単一時のダウンロード回路に適用
した例である。
FIG. 1 is a block diagram of a download circuit according to the first embodiment of the present invention. The download circuit shown in FIG. 1 is an example applied to a download circuit when the processor is single.

【0016】図1において、11はプロセッサ、12は
EPROM、13はEEPROM、14は上位CPU
(供給手段)、15は制御回路、16は双方向バッフ
ァ、17,18はバッファ、19はRAMである。
In FIG. 1, 11 is a processor, 12 is an EPROM, 13 is an EEPROM, and 14 is an upper CPU.
(Supply means), 15 is a control circuit, 16 is a bidirectional buffer, 17 and 18 are buffers, and 19 is a RAM.

【0017】上記制御回路15、双方向バッファ16及
びバッファ17,18は、全体としてバスを切り換えて
外部からのプログラム内容の変更をプロセッサにダウン
ロードするように制御する制御手段20を構成する。
The control circuit 15, the bidirectional buffer 16 and the buffers 17 and 18 constitute a control means 20 for switching the bus as a whole and controlling so as to download the change of the program content from the outside to the processor.

【0018】上記プロセッサ11は、EPROM12又
はEEPROM13に格納されたプログラムに従って処
理を行うもので、データ入力端子D、システムリセット
入力端子RST、ダウンロード信号(以下、DONE信
号という)出力端子DONE、書き込みイネーブル(W
E:Write Enable)信号出力端子WE、出力イネーブル
(OE:Output Enable)信号出力端子OEを備えてい
る。
The processor 11 performs processing in accordance with a program stored in the EPROM 12 or the EEPROM 13, and has a data input terminal D, a system reset input terminal RST, a download signal (hereinafter referred to as DONE signal) output terminal DONE, and a write enable ( W
E: Write Enable) signal output terminal WE, output enable
(OE: Output Enable) A signal output terminal OE is provided.

【0019】データ入力端子Dには、EPROM12、
EEPROM13、又は上位CPU14からのプログラ
ムやデータが入力され、また、出力端子DONEからは
ダウンロード完了時にDONE信号が双方向バッファ1
6に出力される。また、書き込みイネーブル信号出力端
子WE、出力イネーブル信号出力端子OEからは、デー
タの書き込み/読み出しを制御するWE信号、OE信号
がRAM19又はEEPROM13に出力される。ま
た、システムリセット入力端子RSTに、正論理でリセ
ット信号が入力されると、システムリセットとなりプロ
セッサ11がダウンロードを開始する。
The data input terminal D has an EPROM 12,
A program or data is input from the EEPROM 13 or the upper CPU 14, and a DONE signal is output from the output terminal DONE when the download is completed.
6 is output. Further, the write enable signal output terminal WE and the output enable signal output terminal OE output the WE signal and the OE signal for controlling the writing / reading of data to the RAM 19 or the EEPROM 13. Further, when a reset signal is input to the system reset input terminal RST in positive logic, the system is reset and the processor 11 starts downloading.

【0020】上記EPROM12は、プロセッサ11で
使用するプログラムやデータを格納する書き換え可能な
ROMであり、ブート用プログラムとオペレーション用
アプリケーションプログラムがあらかじめ書き込まれて
いる。プログラム変更がない場合には、EPROM12
に格納されたオペレーション用アプリケーションプログ
ラム及びデータは常時プロセッサ11に出力され、プロ
セッサ11はこのEPROM12のプログラムを実行す
る。
The EPROM 12 is a rewritable ROM that stores programs and data used by the processor 11, and a boot program and an operation application program are written in advance. If there is no program change, EPROM12
The application program for operation and the data stored in are always output to the processor 11, and the processor 11 executes the program of the EPROM 12.

【0021】上記EEPROM13は、プログラム変更
後、EPROM12に替わってプログラムやデータをプ
ロセッサ11に供給する電気的に書き換え可能なROM
である。具体的には、後述する図2に示す処理に従っ
て、EPROM12の内容、及び上位CPU14からの
ダウンロードプログラムが、プロセッサ11及びRAM
19から書き込まれる。したがって、プログラム変更後
には、EEPROM13に格納されたプログラム及びデ
ータがプロセッサ11に出力され、プロセッサ11はこ
のEEPROM13のプログラムを実行する。
The EEPROM 13 is an electrically rewritable ROM that supplies the program and data to the processor 11 in place of the EPROM 12 after the program is changed.
It is. Specifically, the contents of the EPROM 12 and the download program from the upper CPU 14 are stored in the processor 11 and the RAM according to the processing shown in FIG.
Written from 19. Therefore, after the program is changed, the program and data stored in the EEPROM 13 are output to the processor 11, and the processor 11 executes the program in the EEPROM 13.

【0022】上記上位CPU14は、ダウンロード回路
全体を制御する装置であり、プログラム内容変更時には
制御回路15にプログラム内容変更要求を出力して制御
回路15を制御し、ダウンロードプログラムをプロセッ
サ11にダウンロードする。
The upper CPU 14 is a device for controlling the entire download circuit, outputs a program content change request to the control circuit 15 when the program content is changed, controls the control circuit 15, and downloads the download program to the processor 11.

【0023】上記制御回路15は、上位CPU14から
のプログラム内容変更要求に従って双方向バッファ16
及びバッファ17,18を制御する。すなわち、制御回
路15は、上位CPU14からのプログラム内容変更要
求に従って、双方向バッファ16にDIR信号を出力し
て双方向バッファ16のバスをEPROM12側からプ
ロセッサ11方向に、又はその逆方向に切り換える制御
を行うとともに、バッファ17,18に制御信号を出力
してバッファ17,18のうち何れか一方をオンし、E
PROM12側からプロセッサ11方向に、又は上位C
PU14からプロセッサ11方向にバスを切り換える制
御を行う。
The control circuit 15 has a bidirectional buffer 16 in accordance with a program content change request from the host CPU 14.
And the buffers 17 and 18 are controlled. That is, the control circuit 15 outputs a DIR signal to the bidirectional buffer 16 and switches the bus of the bidirectional buffer 16 from the EPROM 12 side to the processor 11 direction or vice versa according to the program content change request from the upper CPU 14. And outputs a control signal to the buffers 17 and 18 to turn on one of the buffers 17 and 18,
From the PROM 12 side to the processor 11 direction, or upper C
Control is performed to switch the bus from the PU 14 to the processor 11.

【0024】上記双方向バッファ16は、バスを切り換
えるゲート回路であり、プロセッサ11からのDONE
信号をGate端子に、また制御回路15からのDIR
信号DIR端子に受けてバスの接続/遮断を行う。例え
ば、プロセッサ11からのDONE信号「H」をGat
e信号として受けるとアサートし、制御回路15からの
DIR信号によりバスをEPROM12側からプロセッ
サ11方向に通過するようにバスを切り換える。
The bidirectional buffer 16 is a gate circuit for switching buses, and the DONE from the processor 11 is used.
Signal to Gate terminal and DIR from control circuit 15
The signal is received by the DIR terminal to connect / disconnect the bus. For example, the DONE signal “H” from the processor 11 is set to Gat
When it is received as an e signal, it is asserted, and the DIR signal from the control circuit 15 switches the bus so that the bus passes from the EPROM 12 side toward the processor 11.

【0025】上記バッファ17,18は、制御回路15
からの制御信号により何れか一方がオン/オフしてバス
を、EPROM12側からプロセッサ11方向に、又は
上位CPU14からプロセッサ11方向に切り換える。
The buffers 17 and 18 are provided in the control circuit 15
One of them is turned on / off by a control signal from the CPU to switch the bus from the EPROM 12 side to the processor 11 direction or from the host CPU 14 to the processor 11 direction.

【0026】上記RAM19は、ダウンロードされたプ
ログラムを一時的に格納するメモリであり、プロセッサ
11からのWE信号、OE信号により書き込み/読み出
しが制御される。なお、プロセッサ11の内部RAMの
容量がダウンロードされたプログラムを一旦格納できる
容量であれば、この外部RAM19は不要である。
The RAM 19 is a memory for temporarily storing the downloaded program, and writing / reading is controlled by the WE signal and the OE signal from the processor 11. If the capacity of the internal RAM of the processor 11 is such that the downloaded program can be temporarily stored, the external RAM 19 is unnecessary.

【0027】このように、プロセッサ11は、上位CP
U14側と、EPROM12及びEEPROM13のR
OM側の2つのバスに接続された構成となっている。
As described above, the processor 11 has the upper CP.
U14 side and R of EPROM12 and EEPROM13
It is connected to two buses on the OM side.

【0028】次に、上述のように構成されたダウンロー
ド回路の動作を説明する。
Next, the operation of the download circuit configured as described above will be described.

【0029】図1に示すように、プロセッサ11は、上
位CPU14側と、EPROM12及びEEPROM1
3のROM側の2つのバスに接続されており、通常はE
PROM12又はEEPROM13に格納されたプログ
ラムに従って処理を行うが、上位CPU14からのプロ
グラム内容変更要求があると、上位CPU14からダウ
ンロードされたプログラムをEEPROM13に格納す
る処理を行う。そして、プログラム内容変更後はEEP
ROM13にダウンロードされたプログラムに従って処
理を行うものである。
As shown in FIG. 1, the processor 11 includes a higher CPU 14 side, an EPROM 12 and an EEPROM 1.
It is connected to two buses on the ROM side of 3 and is usually E
Although the process is performed according to the program stored in the PROM 12 or the EEPROM 13, when there is a program content change request from the upper CPU 14, the process downloaded from the upper CPU 14 is stored in the EEPROM 13. And after changing the program content, EEP
The processing is performed according to the program downloaded to the ROM 13.

【0030】まず、制御回路15は、プログラム内容変
更要求がない通常時には、双方向バッファ16及びバッ
ファ17,18にDIR信号及び制御信号を出力して以
下のように制御する。すなわち、通常時には、ROM側
からプロセッサ11へ信号が通るように、双方向バッフ
ァ16にDIR信号を出力し、バッファ17,18に制
御信号を出力してバッファ18をオンする。これによ
り、双方向バッファ16及びバッファ17,18のバス
が切り換わりROM側からプロセッサ11へ信号が通る
ようになる。また、システムリセット時にもROM側か
らプロセッサ11へ信号が流れるようにしておく。
First, the control circuit 15 outputs the DIR signal and the control signal to the bidirectional buffer 16 and the buffers 17 and 18 during the normal time when there is no program content change request, and controls as follows. That is, normally, the DIR signal is output to the bidirectional buffer 16, the control signal is output to the buffers 17 and 18, and the buffer 18 is turned on so that the signal passes from the ROM side to the processor 11. As a result, the buses of the bidirectional buffer 16 and the buffers 17 and 18 are switched so that the signal can pass from the ROM side to the processor 11. Also, a signal is allowed to flow from the ROM side to the processor 11 even when the system is reset.

【0031】上位CPU14からプログラム内容変更要
求があると、制御回路15は、双方向バッファ16及び
バッファ17,18にDIR信号及び制御信号を出力し
て、プロセッサ11からROM側(EEPROM13)
へ信号が通るように、双方向バッファ16のバスを切り
換え、バッファ17をオン(バッファ18はオフ)す
る。これにより、双方向バッファ16及びバッファ1
7,18のバスが切り換わりプロセッサ11からEEP
ROM13に信号が通るようになる。
When there is a program content change request from the host CPU 14, the control circuit 15 outputs the DIR signal and the control signal to the bidirectional buffer 16 and the buffers 17 and 18, and the processor 11 to the ROM side (EEPROM 13).
The bus of the bidirectional buffer 16 is switched so that the signal passes through, and the buffer 17 is turned on (the buffer 18 is turned off). As a result, the bidirectional buffer 16 and the buffer 1
7 and 18 buses are switched, and processor 11 sends EEP
A signal comes to pass through the ROM 13.

【0032】プログラム内容変更要求により上述したバ
スの切り換えが行われると、プロセッサ11は双方向バ
ッファ16のGate端子にDONE信号「H」を出力
して双方向バッファ16をアサートする。ここで、プロ
セッサ11は、システムリセット後、DONE信号
「H」を出力し、ダウンロード終了後DONE信号
「L」を出力する。双方向バッファ16は、プロセッサ
11からのDONE信号をGate端子にGate信号
として受け、信号が「H」の間アサートしてバスを接続
状態にする。このDONE信号は、プロセッサ11がダ
ウンロード終了後ROM側のバスを切り離す役割もす
る。
When the bus switching is performed by the program content change request, the processor 11 outputs the DONE signal "H" to the Gate terminal of the bidirectional buffer 16 to assert the bidirectional buffer 16. Here, the processor 11 outputs the DONE signal “H” after the system reset, and outputs the DONE signal “L” after the download is completed. The bidirectional buffer 16 receives the DONE signal from the processor 11 at the Gate terminal as a Gate signal and asserts it while the signal is "H" to put the bus in the connected state. The DONE signal also serves to disconnect the bus on the ROM side after the processor 11 finishes downloading.

【0033】なお、プロセッサ11がこのような出力信
号を持っていない場合には、外部レジスタ等でセット/
リセットをかけるようにしてもよい。
When the processor 11 does not have such an output signal, it is set / exposed by an external register or the like.
You may make it reset.

【0034】次いで、上位CPU14からダウンロード
されたプログラムは、プロセッサ11に接続されたRA
M19に一旦格納される。なお、プロセッサ11の内部
RAMの容量がダウンロードされたプログラムを一旦格
納できる容量であれば、内部RAMに格納する。
Next, the program downloaded from the upper CPU 14 is stored in the RA connected to the processor 11.
It is temporarily stored in M19. If the capacity of the internal RAM of the processor 11 is such that the downloaded program can be temporarily stored, it is stored in the internal RAM.

【0035】以下、図2の処理フローを参照しながらダ
ウンロード回路の動作について更に詳細に説明する。
The operation of the download circuit will be described in more detail below with reference to the processing flow of FIG.

【0036】図2は単一プロセッサ11を有するダウン
ロード回路のダウンロード動作を示すフローチャートで
あり、図中STはフローの各ステップを示す。
FIG. 2 is a flow chart showing the download operation of the download circuit having the single processor 11, and ST in the figure shows each step of the flow.

【0037】まず、ステップST1でプロセッサ11の
システムリセットをオンし、ROM側にバスを接続す
る。次いで、ステップST2でEPROM12からプロ
グラムを読み込みを開始し、ステップST3でプログラ
ムのダウンロードを完了すると、ステップST4でダウ
ンロードしたプログラムに基づいて通常のオペレーショ
ンを開始する。
First, in step ST1, the system reset of the processor 11 is turned on, and the bus is connected to the ROM side. Next, in step ST2, reading of the program from the EPROM 12 is started, and when downloading of the program is completed in step ST3, normal operation is started based on the program downloaded in step ST4.

【0038】すなわち、リセット投入時プロセッサ11
のDONE信号が「H」となり、双方向バッファ16の
Gate信号がアサートされる。双方向バッファ16の
DIR信号は制御回路15により制御され、EPROM
12からプロセッサ11方向に信号が通過する状態にな
っている。したがって、立ち上げ時は、EPROM12
側にバスは接続され、プロセッサ11はEPROM12
の内容を読み込み、ダウンロードする。
That is, the processor 11 at the time of inputting the reset
Signal becomes "H", and the Gate signal of the bidirectional buffer 16 is asserted. The DIR signal of the bidirectional buffer 16 is controlled by the control circuit 15, and the EPROM
A signal passes from 12 to the processor 11. Therefore, at startup, the EPROM 12
The bus is connected to the
Read the contents of and download.

【0039】プロセッサ11は、ダウンロードが完了す
るとDONE信号をネゲートし、EPROM12をバス
から切り離し、通常のオペレーションを開始する。
When the download is completed, the processor 11 negates the DONE signal, disconnects the EPROM 12 from the bus, and starts normal operation.

【0040】ステップST5で上位CPU14からプロ
グラム変更要求を制御回路15が受信すると、ステップ
ST6で制御回路15は上位CPU14側からプロセッ
サ11へ信号が通過するようにバスを切り換える。具体
的には、制御回路15は、上位CPU14からのプログ
ラム内容変更要求に従って、双方向バッファ16にDI
R信号を出力して双方向バッファ16のバスをEPRO
M12側からプロセッサ11方向に切り換える制御を行
うとともに、バッファ17,18に制御信号を出力して
バッファ17をオンし、上位CPU14からプロセッサ
11方向にバスを切り換える制御を行う。
When the control circuit 15 receives the program change request from the upper CPU 14 in step ST5, the control circuit 15 switches the bus so that the signal passes from the upper CPU 14 side to the processor 11 in step ST6. Specifically, the control circuit 15 stores the DI in the bidirectional buffer 16 according to the program content change request from the upper CPU 14.
R signal is output and the bus of the bidirectional buffer 16 is EPRO
Control is performed to switch from the M12 side to the processor 11 direction, and a control signal is output to the buffers 17 and 18 to turn on the buffer 17 and control to switch the bus from the upper CPU 14 to the processor 11 direction.

【0041】次いで、ステップST7で上位CPU14
からプロセッサ11に接続されたRAM19にダウンロ
ードを行い、ステップST8でダウンロードが完了する
と、ステップST9でRAM19に格納されたプログラ
ムをEEPROM13にコピーしてステップST4に戻
り通常のオペレーションを開始する。ここで、上位CP
U14からプロセッサ11に接続されたRAM19への
ダウンロードについては既に述べている。
Next, in step ST7, the upper CPU 14
Is downloaded to the RAM 19 connected to the processor 11, and when the download is completed in step ST8, the program stored in the RAM 19 is copied to the EEPROM 13 in step ST9 and the process returns to step ST4 to start normal operation. Where the top CP
Downloading from U14 to the RAM 19 connected to the processor 11 has already been described.

【0042】プロセッサ11は、上位CPU14からダ
ウンロードされたプログラムを外部RAM19若しくは
内部RAMに保持し、ダウンロードプログラム受信終了
後このRAM19からEEPROM13にコピーするこ
とで、プログラム内容の変更を行い、EEPROM13
に更新された新しいプログラムでの通常オペレーション
状態に移行する。
The processor 11 retains the program downloaded from the upper CPU 14 in the external RAM 19 or the internal RAM, and after receiving the downloaded program, copies the program from the RAM 19 to the EEPROM 13 to change the program content, and the EEPROM 13
Transition to normal operation state with the new program updated to.

【0043】以上説明したように、本実施形態に係るダ
ウンロード回路は、プログラムを書き換え可能なEPR
OM12及びEEPROM13と、このEPROM12
及びEEPROM13にバスを介して接続され、EPR
OM12又はEEPROM13に格納されたプログラム
を処理するプロセッサ11(プロセッサ#0)と、外部
から更新プログラムを供給する上位CPU14と、プロ
グラム書き換え時、上位CPU14の出力線をEPRO
M12のバスに接続して、上位CPU14からのプログ
ラムをプロセッサ11にダウンロードし、ダウンロード
終了後、ダウンロードされたプログラムをEEPROM
13に転送するように制御する制御手段20を備えた構
成としているので、運用中などにプログラム変更が発生
しても電源断やプログラムROMの交換等を行うことな
く、プログラム内容の変更を外部からダウンロードする
ことができる。
As described above, the download circuit according to the present embodiment has a program rewritable EPR.
OM12 and EEPROM13, and this EPROM12
And EEPROM 13 via a bus, and EPR
The processor 11 (processor # 0) that processes the program stored in the OM 12 or the EEPROM 13, the upper CPU 14 that supplies the update program from the outside, and the output line of the upper CPU 14 when the program is rewritten is EPRO.
It connects to the bus of M12, downloads the program from the upper CPU 14 to the processor 11, and after downloading is completed, the downloaded program is stored in the EEPROM.
Since the control means 20 for controlling the transfer to the device 13 is provided, even if the program is changed during operation, the contents of the program can be changed externally without shutting down the power supply or replacing the program ROM. It can be downloaded.

【0044】図3は本発明の第2の実施形態に係るダウ
ンロード回路の構成を示す回路図であり、プロセッサが
マルチ接続された場合のダウンロード回路に適用した例
である。実際上はこの第2の実施形態のように、プロセ
ッサがマルチ接続された装置において特に有効となる。
なお、本実施形態に係るダウンロード回路の説明にあた
り図1に示すダウンロード回路と同一構成部分には同一
符号を付して重複部分の説明を省略する。
FIG. 3 is a circuit diagram showing the configuration of the download circuit according to the second embodiment of the present invention, which is an example applied to the download circuit when the processors are multi-connected. In practice, it is particularly effective in a device in which processors are multi-connected as in the second embodiment.
In the description of the download circuit according to the present embodiment, the same components as those of the download circuit shown in FIG. 1 will be assigned the same reference numerals and overlapping description will be omitted.

【0045】図3において、11,21,22はマルチ
接続されたプロセッサ、12はEPROM、13はEE
PROM、14は上位CPU、15は制御回路、16は
双方向バッファ、17,18,23,24はバッファ、
19,25,26はRAM、27,28,29はAND
ゲート、30,31はORゲートである。
In FIG. 3, 11, 12, and 22 are multi-connected processors, 12 is an EPROM, and 13 is an EE.
PROM, 14 is a high-order CPU, 15 is a control circuit, 16 is a bidirectional buffer, 17, 18, 23 and 24 are buffers,
19, 25 and 26 are RAM, 27, 28 and 29 are AND
Gates 30 and 31 are OR gates.

【0046】上記プロセッサ11,21,22、EPR
OM12、EEPROM13、制御回路15、双方向バ
ッファ16、バッファ17,18,23,24、RAM
19,25,26、ANDゲート27,28,29、O
Rゲート30,31は、例えば1枚のボード上に搭載さ
れる。
Processors 11, 21, 22 and EPR
OM 12, EEPROM 13, control circuit 15, bidirectional buffer 16, buffers 17, 18, 23, 24, RAM
19, 25, 26, AND gates 27, 28, 29, O
The R gates 30 and 31 are mounted on, for example, one board.

【0047】上記制御回路15、双方向バッファ16及
びバッファ17,18,23,24は、全体としてバス
を切り換えて外部からのプログラム内容の変更をプロセ
ッサ11,21,22にダウンロードするように制御す
る制御手段40を構成する。
The control circuit 15, the bidirectional buffer 16 and the buffers 17, 18, 23 and 24 are controlled so as to switch the buses as a whole and download changes in the program content from the outside to the processors 11, 21 and 22. The control means 40 is configured.

【0048】上記プロセッサ11,21,22は、EP
ROM12又はEEPROM13に格納されたプログラ
ムに従って通常オペレーション処理、あるいはダウンロ
ード処理を行うもので、データ入力端子D、システムリ
セット入力端子RST、スタート信号入力端子STAR
T、DONE信号出力端子DONE、各種メモリ制御用
の書き込みイネーブル信号出力端子WE、出力イネーブ
ル信号出力端子OEを備えている。なお、説明の便宜
上、プロセッサ11,21,22は、それぞれプロセッ
サ#0,#1,#Nと表す。
The processors 11, 21 and 22 are EP
The normal operation process or the download process is performed according to the program stored in the ROM 12 or the EEPROM 13. The data input terminal D, the system reset input terminal RST, the start signal input terminal STAR.
T, DONE signal output terminal DONE, write enable signal output terminal WE for controlling various memories, and output enable signal output terminal OE. Note that, for convenience of explanation, the processors 11, 21, and 22 are represented as processors # 0, # 1, and #N, respectively.

【0049】データ入力端子Dには、EPROM12、
EEPROM13、又は上位CPU14からのプログラ
ムやデータが入力され、また、出力端子DONEはAN
Dゲート27,28,29を介して双方向バッファ1
6、バッファ17,18に接続される。また、ANDゲ
ート27,28,29の他方の入力端子には、正論理の
システムリセット信号を反転した信号が入力され、AN
Dゲート27,28,29はDONE信号とリセット信
号の反転信号とのAND論理をとり双方向バッファ1
6,バッファ23,24にそれぞれ出力する。
The data input terminal D has an EPROM 12,
Program or data is input from the EEPROM 13 or the host CPU 14, and the output terminal DONE is AN.
Bidirectional buffer 1 via D gates 27, 28, 29
6, connected to buffers 17 and 18. A signal obtained by inverting a positive logic system reset signal is input to the other input terminals of the AND gates 27, 28, 29, and
The D gates 27, 28 and 29 take the AND logic of the DONE signal and the inverted signal of the reset signal, and the bidirectional buffer 1
6, output to buffers 23 and 24, respectively.

【0050】前述したように、DONE信号は双方向バ
ッファ16,バッファ23,24のGate信号をプロ
セッサ#0,#1,#Nでアサートするための信号であ
り、プロセッサ#0,#1,#Nは、リセット後「H」
を出力し、ダウンロード終了後「L」を出力する。本実
施例では、マルチ接続されたプロセッサ#0,#1,#
Nが確実に双方向バッファ16,バッファ23,24を
アサートできるように、リセットが終了してシステムリ
セット信号が「L」になってからプロセッサ#0,#
1,#NからのDONE信号が双方向バッファ16,バ
ッファ23,24が出力される。
As described above, the DONE signal is a signal for asserting the Gate signals of the bidirectional buffer 16, the buffers 23 and 24 in the processors # 0, # 1 and #N, and the processors # 0, # 1 and #. N is “H” after reset
Is output, and “L” is output after the download is completed. In this embodiment, multi-connected processors # 0, # 1, #
To ensure that N can assert the bidirectional buffer 16 and the buffers 23 and 24, the processor # 0, # is activated after the reset is completed and the system reset signal becomes “L”.
The DONE signals from 1 and #N are output to the bidirectional buffer 16 and the buffers 23 and 24.

【0051】この場合、DONE信号を次段プロセッサ
のリセット信号に入力し、例えばプロセッサ#0のダウ
ンロード終了まで、次段のプロセッサ#1に対し、リセ
ットを保持する。
In this case, the DONE signal is input to the reset signal of the processor of the next stage, and the reset is held for the processor # 1 of the next stage until, for example, the download of the processor # 0 is completed.

【0052】このように、前段のプロセッサがダウンロ
ードを終了すると、次段のプロセッサがダウンロードを
開始するように接続されている。
As described above, when the processor in the previous stage finishes the download, the processor in the next stage starts the download.

【0053】さらに、最終段のプロセッサ#NのDON
E信号は、スタート信号として接続される全プロセッサ
に分配し、全プロセッサのダウンロードが終了したこと
を通知する。
Further, DON of the processor #N at the final stage
The E signal is distributed to all the processors connected as a start signal to notify that the download of all the processors is completed.

【0054】また、書き込みイネーブル信号出力端子W
E、出力イネーブル信号出力端子OEからは、データの
書き込み/読み出しを制御するWE信号、OE信号がR
AM19又は、ORゲート30,31を介してEPRO
M12又はEEPROM13に出力される。
Further, the write enable signal output terminal W
E, WE signal and OE signal for controlling writing / reading of data are output from the output enable signal output terminal OE to R
AM19 or EPRO via OR gates 30 and 31
It is output to M12 or EEPROM 13.

【0055】上記EPROM12は、プロセッサ#0,
#1,#Nで使用するプログラムやデータを格納する書
き換え可能なROMであり、ブート用プログラムとオペ
レーション用アプリケーションプログラムがあらかじめ
書き込まれている。プログラム変更がない場合には、E
PROM12に格納されたオペレーション用アプリケー
ションプログラム及びデータは常時プロセッサ#0,#
1,#Nに出力され、プロセッサ#0,#1,#Nはこ
のEPROM12のプログラムを実行する。
The EPROM 12 includes processor # 0,
It is a rewritable ROM that stores programs and data used in # 1 and #N, and has a boot program and an operation application program written in advance. If there is no program change, E
The operation application programs and data stored in the PROM 12 are constantly processed by the processors # 0, #.
1 and #N, and the processors # 0, # 1 and #N execute the program of the EPROM 12.

【0056】上記EEPROM13は、プログラム変更
後、EPROM12に替わってプログラムやデータをプ
ロセッサ#0,#1,#Nに供給する電気的に書き換え
可能なROMである。変更プログラム格納用として用い
る。具体的には、後述する図4に示す処理に従って、E
PROM12の内容、及び上位CPU14からのダウン
ロードプログラムが、プロセッサ#0,#1,#N及び
RAM19から書き込まれる。したがって、プログラム
変更後には、EEPROM13に格納されたプログラム
及びデータがプロセッサ#0,#1,#Nに出力され、
プロセッサ#0,#1,#NはこのEEPROM13の
プログラムを実行する。
The EEPROM 13 is an electrically rewritable ROM that supplies programs and data to the processors # 0, # 1, #N in place of the EPROM 12 after the program is changed. Used for storing change program. Specifically, according to the processing shown in FIG.
The contents of the PROM 12 and the download program from the upper CPU 14 are written from the processors # 0, # 1, #N and the RAM 19. Therefore, after the program change, the program and data stored in the EEPROM 13 are output to the processors # 0, # 1, #N,
The processors # 0, # 1 and #N execute the program of the EEPROM 13.

【0057】上記上位CPU14は、ダウンロード回路
全体を制御する装置であり、プログラム内容変更時には
制御回路15にプログラム内容変更要求を出力して制御
回路15を制御し、ダウンロードプログラムをプロセッ
サ#0,#1,#Nにダウンロードする。
The upper CPU 14 is a device for controlling the entire download circuit, outputs a program content change request to the control circuit 15 to change the program content, controls the control circuit 15, and downloads the download program to the processors # 0, # 1. , #N to download.

【0058】上記制御回路15は、上位CPU14から
のプログラム内容変更要求に従って双方向バッファ16
及びバッファ17,18を制御する。すなわち、制御回
路15は、上位CPU14からのプログラム内容変更要
求に従って、双方向バッファ16にDIR信号を出力し
て双方向バッファ16のバスをEPROM12側からプ
ロセッサ#0,#1,#N方向に、又はその逆方向に切
り換える制御を行うとともに、バッファ17,18に制
御信号を出力してバッファ17,18のうち何れか一方
をオンし、EPROM12側からプロセッサ#0,#
1,#N方向に、又は上位CPU14からプロセッサ#
0,#1,#N方向にバスを切り換える制御を行う。
The control circuit 15 has a bidirectional buffer 16 in accordance with a program content change request from the host CPU 14.
And the buffers 17 and 18 are controlled. That is, the control circuit 15 outputs a DIR signal to the bidirectional buffer 16 in accordance with a program content change request from the upper CPU 14 to direct the bus of the bidirectional buffer 16 from the EPROM 12 side to the processors # 0, # 1, and #N. Alternatively, control is performed to switch to the opposite direction, and a control signal is output to the buffers 17 and 18 to turn on one of the buffers 17 and 18, and the processor # 0, # from the EPROM 12 side.
1, #N direction or from the upper CPU 14 to processor #
Control is performed to switch the bus in the 0, # 1, and #N directions.

【0059】上記双方向バッファ16は、バスを切り換
えるゲート回路であり、プロセッサ11からのDONE
信号をGate端子に、また制御回路15からのDIR
信号DIR端子に受けてバスの接続/遮断を行う。例え
ば、プロセッサ#0,#1,#NからのDONE信号
「H」をGate信号として受けるとアサートし、制御
回路15からのDIR信号によりバスをEPROM12
側からプロセッサ11方向に通過するようにバスを切り
換える。
The bidirectional buffer 16 is a gate circuit for switching the bus, and the DONE from the processor 11 is used.
Signal to Gate terminal and DIR from control circuit 15
The signal is received by the DIR terminal to connect / disconnect the bus. For example, when the DONE signal “H” from the processors # 0, # 1, and #N is received as a Gate signal, it is asserted, and the DIR signal from the control circuit 15 asserts the bus to the EPROM 12
The bus is switched so as to pass from the side toward the processor 11.

【0060】上記バッファ23,24は、バスを切り換
えるゲート回路であり、プロセッサ#1,#NからのD
ONE信号をGate端子に受けてバスの接続/遮断を
行う。本実施形態では、プロセッサ#0以外はEEPR
OM13への転送(書き込み)は行わないこととしてい
るので、双方向バッファではなく、片方向バッファとす
る。バッファ23,24は、プロセッサ#1,#Nから
のDONE信号「H」をGate信号として受けるとア
サートする。
The buffers 23 and 24 are gate circuits for switching buses, and D from the processors # 1 and #N.
The gate terminal receives the ONE signal to connect / disconnect the bus. In the present embodiment, the EEPR except the processor # 0 is used.
Since the transfer (writing) to the OM 13 is not performed, the bidirectional buffer is used instead of the bidirectional buffer. The buffers 23 and 24 assert when receiving the DONE signal “H” from the processors # 1 and #N as the Gate signal.

【0061】上記RAM19,25,26は、ダウンロ
ードされたプログラムを一時的に格納するメモリであ
り、プロセッサ#0,#1,#NからのWE信号、OE
信号により書き込み/読み出しが制御される。なお、プ
ロセッサ#0,#1,#Nの内部RAMの容量がダウン
ロードされたプログラムを一旦格納できる容量であれ
ば、この外部RAM19,25,26は不要である。
The RAMs 19, 25 and 26 are memories for temporarily storing the downloaded programs, and the WE signals from the processors # 0, # 1 and #N, OE.
Writing / reading is controlled by a signal. The external RAMs 19, 25, and 26 are unnecessary if the internal RAMs of the processors # 0, # 1, and #N have a capacity capable of temporarily storing the downloaded program.

【0062】このように、マルチ接続されたプロセッサ
#0,#1,#Nは、上位CPU14側と、EPROM
12及びEEPROM13のROM側の2つのバスに接
続された構成となっている。
As described above, the multi-connected processors # 0, # 1 and #N are connected to the upper CPU 14 side and the EPROM.
12 and EEPROM 13 are connected to two buses on the ROM side.

【0063】次に、上述のように構成されたダウンロー
ド回路の動作を説明する。
Next, the operation of the download circuit configured as described above will be described.

【0064】リセット投入時には、プロセッサ#0は双
方向バッファ16のGate端子にDONE信号「H」
を出力して双方向バッファ16をアサートする。ここ
で、プロセッサ#0は、システムリセット後、DONE
信号「H」を出力し、ダウンロード終了後DONE信号
「L」を出力する。双方向バッファ16は、プロセッサ
#0からのDONE信号をGate端子にGate信号
として受け、信号が「H」の間アサートしてEPROM
12からプロセッサ方向に信号が通過する状態にする。
At the time of resetting, the processor # 0 supplies the DONE signal "H" to the Gate terminal of the bidirectional buffer 16.
Is output and the bidirectional buffer 16 is asserted. Here, processor # 0 is set to DONE after system reset.
The signal "H" is output, and after the download is completed, the DONE signal "L" is output. The bidirectional buffer 16 receives the DONE signal from the processor # 0 as a Gate signal at the Gate terminal and asserts it while the signal is "H" to make the EPROM.
The signal passes from 12 to the processor.

【0065】このとき、プロセッサ#0は次段(すなわ
ち、プロセッサ#1)のリセット信号を自プロセッサの
ダウンロードが完了するまで保持しておく。
At this time, the processor # 0 holds the reset signal of the next stage (that is, the processor # 1) until the download of its own processor is completed.

【0066】プロセッサ#1は、プロセッサ#0のダウ
ンロードが完了するとダウンロードを開始する。
The processor # 1 starts the download when the download of the processor # 0 is completed.

【0067】このようにして、プロセッサ#Nまで1段
づつダウンロードを行っていく。
In this way, the download is performed step by step up to the processor #N.

【0068】最終段のプロセッサ#Nは、ダウンロード
が完了するとすべてのプロセッサのダウンロードが完了
したことを全プロセッサに通知する。これを受信したプ
ロセッサは、通常オペレーションに移行する。
When the download is completed, the processor #N at the final stage notifies all the processors that the download of all the processors is completed. The processor receiving this shifts to the normal operation.

【0069】以下、図4の処理フローを参照しながらダ
ウンロード回路の動作について詳細に説明する。
The operation of the download circuit will be described in detail below with reference to the processing flow of FIG.

【0070】図4はマルチ接続されたプロセッサ#0〜
#Nを有するダウンロード回路の動作を示すフローチャ
ートである。
FIG. 4 shows multi-connected processors # 0 to # 0.
It is a flowchart which shows operation | movement of the download circuit which has #N.

【0071】まず、ステップST11でプロセッサ#0
のシステムリセットをオンし、ROM側にバスを接続す
る。次いで、ステップST12でプロセッサ#0がEP
ROM12からプログラムを読み込みを開始するととも
に、プロセッサ#1〜#Nをリセットし、ステップST
13でプログラムのダウンロードを完了する。
First, in step ST11, processor # 0
Turn on the system reset and connect the bus to the ROM side. Then, in step ST12, the processor # 0 makes an EP.
Starting to read the program from the ROM 12 and resetting the processors # 1 to #N, step ST
At 13, the program download is completed.

【0072】すなわち、リセット投入時プロセッサ#0
のDONE信号が「H」となり、双方向バッファ16の
Gate信号がアサートされる。双方向バッファ16の
DIR信号は制御回路15により制御され、EPROM
12からプロセッサ#0方向に信号が通過する状態にな
っている。したがって、立ち上げ時は、EPROM12
側にバスは接続され、プロセッサ#0はEPROM12
の内容を読み込み、ダウンロードする。
That is, processor # 0 at reset input
Signal becomes "H", and the Gate signal of the bidirectional buffer 16 is asserted. The DIR signal of the bidirectional buffer 16 is controlled by the control circuit 15, and the EPROM
The signal is passing from 12 toward processor # 0. Therefore, at startup, the EPROM 12
Side is connected to the bus, processor # 0 is EPROM12
Read the contents of and download.

【0073】このとき、プロセッサ#0は次段(すなわ
ち、プロセッサ#1)のリセット信号を自プロセッサの
ダウンロードが完了するまで保持しておく。
At this time, the processor # 0 holds the reset signal of the next stage (that is, the processor # 1) until the download of its own processor is completed.

【0074】次いで、ステップST14で次段のプロセ
ッサ#x(ここでは、プロセッサ#1)(但し、1≦x
≦N)がEPROM12からプログラムを読み込み、ス
テップST15でxがNになったか(x=Nか)否かを
判別し、x=NでないときはステップST16でxをイ
ンクリメント(x=x+1)してステップST14に戻
る。
Next, at step ST14, the processor #x at the next stage (here, processor # 1) (where 1≤x
≦ N) reads the program from the EPROM 12, determines whether x has become N (x = N) in step ST15, and if x = N, increments x (x = x + 1) in step ST16. It returns to step ST14.

【0075】このようにして、上記ステップST14〜
ステップST16でプロセッサ#1〜#Nについてダウ
ンロードが行われる。例えば、プロセッサ#1は、プロ
セッサ#0のダウンロードが完了するとダウンロードを
開始し、以下順にプロセッサ#Nまで1段づつダウンロ
ードを行っていく。
In this way, steps ST14-
In step ST16, the download is performed for the processors # 1 to #N. For example, the processor # 1 starts the download when the download of the processor # 0 is completed, and sequentially downloads to the processor #N step by step.

【0076】全プロセッサのダウンロードが完了すると
(ステップST17)、ステップST18でダウンロー
ドしたプログラムに基づいて通常のオペレーションを開
始する。
When the download of all the processors is completed (step ST17), normal operation is started based on the program downloaded in step ST18.

【0077】すなわち、最終段のプロセッサ#Nは、ダ
ウンロードが完了すると、DONE信号は、スタート信
号として接続される全プロセッサに分配し、全プロセッ
サのダウンロードが終了したことを全プロセッサに通知
する。これを受信したプロセッサ#1〜#Nは、通常オ
ペレーションに移行する。
That is, when the download is completed, the processor #N at the final stage distributes the DONE signal to all the processors connected as a start signal, and notifies all the processors that the download of all the processors is completed. Receiving this, the processors # 1 to #N shift to normal operation.

【0078】ステップST19で上位CPU14からプ
ログラム変更要求を制御回路15が受信すると、ステッ
プST20で制御回路15は上位CPU14側からプロ
セッサ#0へ信号が通過するようにバスを切り換える。
具体的には、制御回路15は、上位CPU14からのプ
ログラム内容変更要求に従って、双方向バッファ16に
DIR信号を出力して双方向バッファ16のバスをEP
ROM12側からプロセッサ#0方向に切り換える制御
を行うとともに、バッファ17,18に制御信号を出力
してバッファ17をオンし、上位CPU14からプロセ
ッサ#0方向にバスを切り換える制御を行う。
When the control circuit 15 receives the program change request from the upper CPU 14 in step ST19, the control circuit 15 switches the bus so that the signal passes from the upper CPU 14 side to the processor # 0 in step ST20.
Specifically, the control circuit 15 outputs a DIR signal to the bidirectional buffer 16 in response to a program content change request from the upper CPU 14 and sets the bus of the bidirectional buffer 16 to EP.
The control for switching from the ROM 12 side to the processor # 0 direction is performed, and a control signal is output to the buffers 17 and 18 to turn on the buffer 17 and control for switching the bus from the upper CPU 14 to the processor # 0 direction.

【0079】次いで、ステップST21で上位CPU1
4からプロセッサ#0に接続されたRAM19にダウン
ロードを行い、ステップST22でダウンロードが完了
すると、ステップST9でRAM19に格納されたプロ
グラムをEEPROM13にコピーする。
Then, in step ST21, the upper CPU 1
4 is downloaded to the RAM 19 connected to the processor # 0, and when the download is completed in step ST22, the program stored in the RAM 19 is copied to the EEPROM 13 in step ST9.

【0080】プロセッサ#0は、上位CPU14からダ
ウンロードされたプログラムを外部RAM19若しくは
内部RAMに保持し、ダウンロードプログラム受信終了
後このRAM19からEEPROM13にコピーするこ
とで、プログラム内容の変更を行う。
The processor # 0 changes the program content by holding the program downloaded from the upper CPU 14 in the external RAM 19 or the internal RAM and copying it from the RAM 19 to the EEPROM 13 after receiving the download program.

【0081】次いで、ステップST24でプロセッサ#
0はプロセッサ#1〜#Nにリセット投入する。すなわ
ち、プロセッサ#0は自プロセッサのダウンロードが完
了すると、DONE信号をアサートすることにより、プ
ロセッサ#1をリブートさせる。
Then, in step ST24, the processor #
0 is reset and input to the processors # 1 to #N. That is, the processor # 0 reboots the processor # 1 by asserting the DONE signal when the download of its own processor is completed.

【0082】上記ステップST24でプロセッサ#1〜
#Nにリセット投入すると、ステップST25で次段の
プロセッサ#x(ここでは、プロセッサ#1)が、最新
プログラムがコピーされたEEPROM13からプログ
ラムを読み込み、ステップST26でxがNになったか
(x=Nか)否かを判別し、x=Nでないときはステッ
プST27でxをインクリメント(x=x+1)してス
テップST25に戻る。ステップST26でxがNにな
ると、ステップST28に進み、全プロセッサのダウン
ロードが完了すると、ステップST18に戻ってダウン
ロードしたプログラムに基づいて通常のオペレーション
を開始する。
In step ST24, the processors # 1 to # 1
When reset and input to #N, the processor #x at the next stage (here, the processor # 1) reads the program from the EEPROM 13 to which the latest program is copied in step ST25, and x becomes N in step ST26 (x = Whether N) or not, and when x = N is not satisfied, x is incremented (x = x + 1) in step ST27 and the process returns to step ST25. When x becomes N in step ST26, the process proceeds to step ST28, and when the download of all the processors is completed, the process returns to step ST18 and the normal operation is started based on the downloaded program.

【0083】このように、上記ステップST25〜ステ
ップST27でプロセッサ#Nまで1段づつリブートし
ていき、全プロセッサがリブートを終了すると、通常オ
ペレーションに移行する。
In this way, in steps ST25 to ST27, the processor #N is rebooted step by step, and when all the processors finish the reboot, the normal operation is started.

【0084】以上説明したように、第2の実施形態に係
るダウンロード回路は、プログラムを書き換え可能なE
PROM12及びEEPROM13と、このEPROM
12及びEEPROM13にバスを介して接続され、E
PROM12又はEEPROM13に格納されたプログ
ラムを処理するマルチ接続されたプロセッサ#0,#
1,#Nと、外部から更新プログラムを供給する上位C
PU14と、プログラム書き換え時、上位CPU14の
出力線をEPROM12のバスに接続して、上位CPU
14からのプログラムをプロセッサ11にダウンロード
し、ダウンロード終了後、プロセッサ#0にダウンロー
ドされたプログラムをEEPROM13に転送し、さら
にEEPROM13に転送されたプログラムを他のプロ
セッサ#1,#Nに順時ダウンロードするように制御す
る制御手段40を備えた構成としているので、各プロセ
ッサ#0〜#Nに対し、ダウンロード制御を行うことに
より、EPROM12及びEEPROM13の共有化を
図ることができ、さらに運用中のプログラム変更を可能
にするという効果を得ることができる。
As described above, the download circuit according to the second embodiment has a program rewritable E
PROM 12 and EEPROM 13, and this EPROM
12 and EEPROM 13 through a bus,
Multi-connected processors # 0, # for processing programs stored in the PROM 12 or the EEPROM 13
1, #N and upper C that supplies update program from outside
When the program is rewritten, the PU 14 and the output line of the upper CPU 14 are connected to the bus of the EPROM 12 so that the upper CPU
The program from 14 is downloaded to the processor 11, and after the download is completed, the program downloaded to the processor # 0 is transferred to the EEPROM 13, and the program transferred to the EEPROM 13 is downloaded to the other processors # 1 and #N in sequence. Since the control means 40 for controlling the above is provided, the EPROM 12 and the EEPROM 13 can be shared by performing the download control for each of the processors # 0 to #N, and further the program change during operation can be changed. It is possible to obtain the effect of enabling.

【0085】したがって、プロセッサ#0〜#Nに対し
共通化したEPROM12及びEEPROM13を用い
れば済むので、プロセッサが増えてもコストが増大する
ことはない。また、運用中などにプログラム変更が発生
した場合でも、上記ダウンロード制御を行うことによ
り、電源断やプログラムROM等の交換が不要となると
いう優れた効果がある。
Therefore, it is sufficient to use the EPROM 12 and the EEPROM 13 common to the processors # 0 to #N, so that the cost does not increase even if the number of processors is increased. Further, even when a program is changed during operation, the download control described above has an excellent effect that it is not necessary to turn off the power supply or replace the program ROM or the like.

【0086】第2の実施形態に係るダウンロード回路で
は、プロセッサ毎にダウンロードしていくことからマル
チ接続されたプロセッサの数が増えると、ブート時間が
長くなってしまうことが考えられる。そこで、プロセッ
サの数が増えても一度にダウンロードが可能なダウンロ
ード回路を以下の第3の実施形態で示す。
In the download circuit according to the second embodiment, since the download is performed for each processor, it is possible that the boot time becomes longer as the number of processors connected in multiple increases. Therefore, a download circuit that can be downloaded at a time even if the number of processors increases will be shown in a third embodiment below.

【0087】図5は本発明の第3の実施形態に係るダウ
ンロード回路の構成を示す回路図であり、プロセッサが
マルチ接続された場合のダウンロード回路に適用した例
である。なお、本実施形態に係るダウンロード回路の説
明にあたり図3に示すダウンロード回路と同一構成部分
には同一符号を付して重複部分の説明を省略する。
FIG. 5 is a circuit diagram showing a configuration of a download circuit according to the third embodiment of the present invention, which is an example applied to the download circuit when the processors are multi-connected. In the description of the download circuit according to the present embodiment, the same components as those of the download circuit shown in FIG. 3 will be assigned the same reference numerals and overlapping description will be omitted.

【0088】図5において、11,21,22はマルチ
接続されたプロセッサ、12はEPROM、13はEE
PROM、14は上位CPU、15は制御回路、16は
双方向バッファ、17,18,23はバッファ、19,
25,26はRAM、41は調停回路(監視手段)、4
2,43はANDゲート、44,45,46はORゲー
トである。
In FIG. 5, 11, 12, and 22 are multi-connected processors, 12 is an EPROM, and 13 is an EE.
PROM, 14 is a high-order CPU, 15 is a control circuit, 16 is a bidirectional buffer, 17, 18, 23 are buffers, 19,
25 and 26 are RAMs, 41 is an arbitration circuit (monitoring means), 4
Reference numerals 2 and 43 are AND gates, and 44, 45 and 46 are OR gates.

【0089】上記プロセッサ11,21,22は、デー
タ入力端子D、システムリセット入力端子RST、スタ
ート信号入力端子STARTN、ロード監視端子AC
K、DONE信号出力端子DONE、各種メモリ制御用
の書き込みイネーブル信号出力端子WE、出力イネーブ
ル信号出力端子OEを備えている。
The processors 11, 21, and 22 have data input terminals D, system reset input terminals RST, start signal input terminals STARTN, and load monitoring terminals AC.
K, DONE signal output terminal DONE, write enable signal output terminal WE for controlling various memories, and output enable signal output terminal OE.

【0090】データ入力端子Dには、EPROM12、
EEPROM13、又は上位CPU14からのプログラ
ムやデータが入力され、また、プロセッサ11の出力端
子DONEはANDゲート42を介して双方向バッファ
16に接続される。また、プロセッサ21の出力端子D
ONEはORゲート44を介してプロセッサ11,2
1,22のスタート信号入力端子STARTNに接続さ
れ、プロセッサ22の出力端子DONEはANDゲート
43を介してバッファ23に接続されるとともに、OR
ゲート44の他方の入力端子に接続される。また、AN
Dゲート42,43の他方の入力端子には、正論理のシ
ステムリセット信号を反転した信号が入力され、AND
ゲート42,43はDONE信号とリセット信号の反転
信号とのAND論理をとり双方向バッファ16,バッフ
ァ23にそれぞれ出力する。
The data input terminal D has an EPROM 12,
A program or data is input from the EEPROM 13 or the host CPU 14, and the output terminal DONE of the processor 11 is connected to the bidirectional buffer 16 via the AND gate 42. Further, the output terminal D of the processor 21
The ONE is connected to the processors 11 and 2 via the OR gate 44.
1, 22 are connected to the start signal input terminals STARTN, the output terminal DONE of the processor 22 is connected to the buffer 23 via the AND gate 43, and OR
It is connected to the other input terminal of the gate 44. Also, AN
A signal obtained by inverting a positive logic system reset signal is input to the other input terminals of the D gates 42 and 43, and AND
The gates 42 and 43 take the AND logic of the DONE signal and the inversion signal of the reset signal and output them to the bidirectional buffer 16 and the buffer 23, respectively.

【0091】また、バッファ23の出力側は、各プロセ
ッサ#1〜#Nデータ入力端子Dに接続される。
The output side of the buffer 23 is connected to the data input terminals D of the processors # 1 to #N.

【0092】また、プロセッサ21,22のEPROM
12への出力イネーブル信号出力端子EPROMOE1
〜N、EEPROM13への出力イネーブル信号出力端
子EEPROMOE1〜N、及びロード監視端子ACK
1〜Nは、調停回路41に入力される。
EPROMs of the processors 21 and 22
Output enable signal output terminal EPROMOE1 to 12
To N, output enable signal output terminals to EEPROM 13, EEPROMOE1 to N, and load monitoring terminal ACK
1 to N are input to the arbitration circuit 41.

【0093】また、調停回路41の出力イネーブル信号
出力端子EPROMOE0は、ORゲート45を介して
EPROM12のOE端子に接続され、出力イネーブル
信号出力端子EEPROMOE0は、ORゲート46を
介してEPROM12のOE端子に接続される。
The output enable signal output terminal EPROMOE0 of the arbitration circuit 41 is connected to the OE terminal of the EPROM 12 via the OR gate 45, and the output enable signal output terminal EEPROMROME0 is connected to the OE terminal of the EPROM 12 via the OR gate 46. Connected.

【0094】また、プロセッサ11のEPROM12へ
の出力イネーブル信号出力端子EPROMOE0は、O
Rゲート45を介してEPROM12のOE端子に接続
され、EEPROM13への出力イネーブル信号出力端
子EEPROMOE0は、ORゲート46を介してEP
ROM12のOE端子に接続される。
The output enable signal output terminal EPROMOE0 to the EPROM 12 of the processor 11 is O
The OE terminal of the EPROM 12 is connected via the R gate 45, and the output enable signal output terminal EEPROMOE0 to the EEPROM 13 is connected to the EP terminal via the OR gate 46.
It is connected to the OE terminal of the ROM 12.

【0095】上記調停回路41は、プロセッサ21,2
2からのロード監視端子ACK1〜Nの各端子からのA
CK信号入力を基に、ROM(EPROM12、EEP
ROM13)に対するアドレス生成、ダウンロード時に
全てのプロセッサ21,22が同じタイミングで正常に
ロードできているかを監視する回路である。
The arbitration circuit 41 includes processors 21, 2
A from each terminal of the load monitoring terminals ACK1 to N
Based on CK signal input, ROM (EPROM12, EEP
This is a circuit for monitoring whether or not all the processors 21 and 22 are normally loaded at the same timing during address generation and download for the ROM 13).

【0096】前述したように、DONE信号は双方向バ
ッファ16,バッファ23のGate信号をプロセッサ
#0,#1,#Nでアサートするための信号であり、プ
ロセッサ#0,#1,#Nは、リセット後「H」を出力
し、ダウンロード終了後「L」を出力する。本実施例で
は、プロセッサ#0のDONE信号をプロセッサ#1,
#Nのリセット信号RSTに出力する。これにより、プ
ロセッサ#0のDONE信号をネゲートするとプロセッ
サ#1,#Nが一斉にダウンロードを開始する。
As described above, the DONE signal is a signal for asserting the Gate signal of the bidirectional buffer 16 and the buffer 23 in the processors # 0, # 1 and #N, and the processors # 0, # 1 and #N are , "H" is output after reset, and "L" is output after completion of download. In this embodiment, the DONE signal of the processor # 0 is set to the processor # 1,
The reset signal RST of #N is output. As a result, when the DONE signal of the processor # 0 is negated, the processors # 1 and #N start downloading all at once.

【0097】このように、プロセッサ#0がダウンロー
ドを終了すると、プロセッサ#1,#Nが一度にダウン
ロードできるように構成されている。
As described above, when the processor # 0 finishes downloading, the processors # 1 and #N can download at once.

【0098】さらに、プロセッサ#1,#Nが正常にダ
ウンロードが完了したとき「0」を検出し、これをST
ARTN信号として全プロセッサ通知する機能を備えて
いる。
Furthermore, when the processors # 1 and #N have normally completed the download, "0" is detected, and this is set to ST.
It has a function of notifying all processors as an ARTN signal.

【0099】以下、図6の処理フローを参照しながらダ
ウンロード回路の動作について詳細に説明する。図6の
処理フローの説明にあたり、図4の処理フローのステッ
プと同一処理ステップには同一番号を付している。
The operation of the download circuit will be described in detail below with reference to the processing flow of FIG. In describing the processing flow of FIG. 6, the same processing steps as those of the processing flow of FIG. 4 are denoted by the same reference numerals.

【0100】まず、ステップST11でプロセッサ#0
のシステムリセットをオンし、ROM側にバスを接続す
る。次いで、ステップST12でプロセッサ#0がEP
ROM12からプログラムを読み込みを開始するととも
に、プロセッサ#1〜#Nをリセットし、ステップST
13でプログラムのダウンロードを完了する。
First, at step ST11, processor # 0
Turn on the system reset and connect the bus to the ROM side. Then, in step ST12, the processor # 0 makes an EP.
Starting to read the program from the ROM 12 and resetting the processors # 1 to #N, step ST
At 13, the program download is completed.

【0101】すなわち、リセット投入時プロセッサ#0
のDONE信号が「H」となり、双方向バッファ16の
Gate信号がアサートされる。双方向バッファ16の
DIR信号は制御回路15により制御され、EPROM
12からプロセッサ#0方向に信号が通過する状態にな
っている。したがって、立ち上げ時は、EPROM12
側にバスは接続され、プロセッサ#0はEPROM12
の内容を読み込み、ダウンロードする。
That is, processor # 0 at reset input
Signal becomes "H", and the Gate signal of the bidirectional buffer 16 is asserted. The DIR signal of the bidirectional buffer 16 is controlled by the control circuit 15, and the EPROM
The signal is passing from 12 toward processor # 0. Therefore, at startup, the EPROM 12
Side is connected to the bus, processor # 0 is EPROM12
Read the contents of and download.

【0102】プロセッサ#0のDONE信号がネゲート
されると、ステップST31でプロセッサ#1,#Nは
一斉にダウンロードを開始する。
When the DONE signal of the processor # 0 is negated, the processors # 1 and #N start downloading all at once in step ST31.

【0103】この時、調停回路15は、全てのプロセッ
サの読みこぼしがないようプロセッサ#1,#Nから出
力される全てのACK信号ACK1〜Nを監視して、正
常にダウンロードできるように制御する。
At this time, the arbitration circuit 15 monitors all the ACK signals ACK1 to ACK output from the processors # 1 and #N so that all the processors do not miss the reading, and controls them so that they can be downloaded normally. .

【0104】全プロセッサのダウンロードが完了すると
(ステップST17)、ステップST32でプロセッサ
#1,#NのDONE信号をネゲートして正常動作に移
行し、ステップST18でダウンロードしたプログラム
に基づいて通常のオペレーションを開始する。
When the download of all processors is completed (step ST17), the DONE signals of the processors # 1 and #N are negated in step ST32 to shift to normal operation, and normal operation is performed based on the program downloaded in step ST18. Start.

【0105】このように、第3の実施形態に係るダウン
ロード回路は、ダウンロード状態を監視する調停回路4
1を備えているので、全てのプロセッサが正常にダウン
ロードしていることを監視することにより、EEPRO
M13に転送されたプログラムを他の全てのプロセッサ
#1,#Nに一斉にダウンロードすることができ、ダウ
ンロード時間の大幅な短縮を図ることができる。
As described above, the download circuit according to the third embodiment has the arbitration circuit 4 for monitoring the download state.
Since it has 1, the EEPRO is monitored by monitoring that all the processors are downloading normally.
The program transferred to M13 can be simultaneously downloaded to all the other processors # 1 and #N, and the download time can be greatly shortened.

【0106】なお、上記各実施形態では、マルチ接続さ
れたプロセッサに対するダウンロード回路に適用した例
であるが、接続されるプロセッサの種類、接続形態はど
のようなものであってもよい。例えば、1枚のボード上
にいくつかのプロセッサが搭載されていてもよく、同じ
プログラムで動作するものであればボードが分離してい
ても構わない。さらに、プロセッサの一部又は全部が、
例えばDSPで構成されていてもよい。
In each of the above embodiments, the download circuit is applied to the multi-connected processors, but the type and connection form of the connected processors may be any. For example, several processors may be mounted on one board, and the boards may be separated as long as they operate under the same program. In addition, some or all of the processor
For example, it may be configured by a DSP.

【0107】また、上記各実施形態では、変更プログラ
ム格納用としてEEPROMを用いているが、勿論これ
には限定されずフラッシュメモリ等を用いることも可能
である。また、外部からプログラムを供給する供給手段
として上位CPUを用いているが、プログラムを供給で
きるものであればCPUには限らない。
Further, in each of the above-mentioned embodiments, the EEPROM is used for storing the change program, but of course the invention is not limited to this, and a flash memory or the like can be used. Further, although the host CPU is used as the supply means for supplying the program from the outside, it is not limited to the CPU as long as the program can be supplied.

【0108】さらに、上記ダウンロード回路を構成す
る、メモリやバッファ、ゲート回路等の数、種類接続状
態などは前述した上述の実施形態に限られないことは言
うまでもない。
Furthermore, it goes without saying that the number of memories, buffers, gate circuits, etc. constituting the download circuit, the type connection state, etc. are not limited to those in the above-described embodiment.

【0109】[0109]

【発明の効果】本発明に係るダウンロード回路では、プ
ログラムを書き換え可能なメモリと、該メモリにバスを
介して接続され、該メモリに格納されたプログラムを処
理するプロセッサと、外部からプログラムを供給する供
給手段と、プログラム書き換え時、供給手段の出力線を
メモリのバスに接続して、該供給手段のプログラムをプ
ロセッサにダウンロードし、ダウンロード終了後、ダウ
ンロードされたプログラムを該メモリに転送するように
制御する制御手段とを備えた構成としているので、運用
中などにプログラム変更が発生しても電源断やプログラ
ムROMの交換等を行うことなく、プログラム内容の変
更を外部からダウンロードすることができる。
In the download circuit according to the present invention, a program rewritable memory, a processor connected to the memory via a bus for processing the program stored in the memory, and a program supplied from the outside Control so that the supply means and the output line of the supply means are connected to the bus of the memory when the program is rewritten, the program of the supply means is downloaded to the processor, and the downloaded program is transferred to the memory after the download is completed. Therefore, even if a program change occurs during operation, the change in the program content can be downloaded from the outside without powering off or replacing the program ROM.

【0110】また、本発明に係るダウンロード回路は、
メモリに複数のプロセッサが接続されており、制御手段
は、プログラム書き換え時、供給手段の出力線をメモリ
のバスに接続して、供給手段のプログラムを第1のプロ
セッサにダウンロードし、ダウンロード終了後、第1の
プロセッサにダウンロードされたプログラムを該メモリ
に転送し、さらに該メモリに転送されたプログラムを他
のプロセッサにダウンロードするように制御するように
構成しているので、各プロセッサに対し、個別のプログ
ラムROMを用意する必要をなくし、共通のプログラム
ROMから各々のプログラムにダウンロードを可能にす
るとともに、プログラム内容の変更を外部からダウンロ
ードすることにより、各プロセッサへのダウンロードが
可能になる。
Further, the download circuit according to the present invention is
A plurality of processors are connected to the memory, and the control means connects the output line of the supply means to the bus of the memory when the program is rewritten, downloads the program of the supply means to the first processor, and after the download is completed, Since the program downloaded to the first processor is transferred to the memory and the program transferred to the memory is controlled to be downloaded to another processor, it is possible to control each processor individually. By eliminating the need to prepare a program ROM, each program can be downloaded from a common program ROM, and changes to the program contents can be downloaded from the outside to enable downloading to each processor.

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

【図1】本発明を適用した第1の実施形態に係るダウン
ロード回路の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a download circuit according to a first embodiment to which the present invention is applied.

【図2】上記ダウンロード回路のダウンロード動作を説
明するためのフローチャートである。
FIG. 2 is a flowchart for explaining a download operation of the download circuit.

【図3】本発明を適用した第2の実施形態に係るダウン
ロード回路の構成を示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a download circuit according to a second embodiment to which the present invention is applied.

【図4】上記ダウンロード回路のダウンロード動作を説
明するためのフローチャートである。
FIG. 4 is a flowchart for explaining a download operation of the download circuit.

【図5】本発明を適用した第3の実施形態に係るダウン
ロード回路の構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a download circuit according to a third embodiment of the present invention.

【図6】上記ダウンロード回路のダウンロード動作を説
明するためのフローチャートである。
FIG. 6 is a flowchart for explaining a download operation of the download circuit.

【図7】従来のプロセッサとメモリの関係を説明するた
めの図である。
FIG. 7 is a diagram for explaining a relationship between a conventional processor and a memory.

【図8】従来のプロセッサとメモリの関係を説明するた
めの図である。
FIG. 8 is a diagram for explaining a relationship between a conventional processor and a memory.

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

11,21,22 プロセッサ、12 EPROM、1
3 EEPROM、14 上位CPU(供給手段)、1
5 制御回路、16 双方向バッファ、17,18,2
3,24 バッファ、19,25,26 RAM、2
0,40 制御手段、41 調停回路(監視手段)
11,12,22 processor, 12 EPROM, 1
3 EEPROM, 14 upper CPU (supply means), 1
5 control circuits, 16 bidirectional buffers, 17, 18, 2
3,24 buffer, 19,25,26 RAM, 2
0,40 control means, 41 arbitration circuit (monitoring means)

───────────────────────────────────────────────────── フロントページの続き (72)発明者 麻生 二郎 東京都港区虎ノ門1丁目7番12号 沖電気 工業株式会社内 ─────────────────────────────────────────────────── --Continued front page (72) Inventor Jiro Aso 1-7-12 Toranomon, Minato-ku, Tokyo Oki Electric Industry Co., Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プログラムを書き換え可能なメモリと、 該メモリにバスを介して接続され、該メモリに格納され
たプログラムを処理するプロセッサと、 外部からプログラムを供給する供給手段と、 プログラム書き換え時、前記供給手段の出力線を前記メ
モリのバスに接続して、該供給手段のプログラムを前記
プロセッサにダウンロードし、ダウンロード終了後、ダ
ウンロードされたプログラムを該メモリに転送するよう
に制御する制御手段とを備えたことを特徴とするダウン
ロード回路。
1. A program rewritable memory, a processor connected to the memory via a bus to process the program stored in the memory, a supply means for supplying the program from the outside, and a program rewriting time. The output line of the supply means is connected to the bus of the memory, the program of the supply means is downloaded to the processor, and the control means for controlling the transfer of the downloaded program to the memory after the download is completed. Download circuit characterized by having.
【請求項2】 上記請求項1に記載のダウンロード回路
において、 前記メモリに複数のプロセッサが接続されており、 前記制御手段は、プログラム書き換え時、前記供給手段
の出力線を前記メモリのバスに接続して、前記供給手段
のプログラムを第1のプロセッサにダウンロードし、ダ
ウンロード終了後、第1のプロセッサにダウンロードさ
れたプログラムを該メモリに転送し、さらに該メモリに
転送されたプログラムを他のプロセッサにダウンロード
するように制御することを特徴とするダウンロード回
路。
2. The download circuit according to claim 1, wherein a plurality of processors are connected to the memory, and the control unit connects an output line of the supply unit to a bus of the memory when rewriting a program. Then, the program of the supply means is downloaded to the first processor, after the download is completed, the program downloaded to the first processor is transferred to the memory, and the program transferred to the memory is transferred to another processor. A download circuit characterized by controlling to download.
【請求項3】 上記請求項1に記載のダウンロード回路
において、 ダウンロード状態を監視する監視手段を備え、 前記メモリに複数のプロセッサが接続されており、 前記制御手段は、プログラム書き換え時、前記供給手段
の出力線を前記メモリのバスに接続して、前記供給手段
のプログラムを第1のプロセッサにダウンロードし、ダ
ウンロード終了後、第1のプロセッサにダウンロードさ
れたプログラムを該メモリに転送し、さらに該メモリに
転送されたプログラムを他のプロセッサに一斉にダウン
ロードするように制御し、 前記監視手段は、ダウンロード時全てのプロセッサが正
常にダウンロードしていることを監視することを特徴と
するダウンロード回路。
3. The download circuit according to claim 1, further comprising a monitoring unit for monitoring a download state, wherein the plurality of processors are connected to the memory, and the control unit controls the supply unit when rewriting a program. Is connected to the bus of the memory to download the program of the supply means to the first processor, and after the download is completed, the program downloaded to the first processor is transferred to the memory, and further the memory The download circuit is characterized in that the programs transferred to the CPU are controlled to be downloaded to other processors all at once, and the monitoring means monitors that all the processors are normally downloading at the time of downloading.
【請求項4】 前記供給手段は、前記制御手段に接続さ
れたマイクロコンピュータであることを特徴とする請求
項1記載のダウンロード回路。
4. The download circuit according to claim 1, wherein the supply means is a microcomputer connected to the control means.
JP5447096A 1996-03-12 1996-03-12 Download circuit Withdrawn JPH09244902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5447096A JPH09244902A (en) 1996-03-12 1996-03-12 Download circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5447096A JPH09244902A (en) 1996-03-12 1996-03-12 Download circuit

Publications (1)

Publication Number Publication Date
JPH09244902A true JPH09244902A (en) 1997-09-19

Family

ID=12971571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5447096A Withdrawn JPH09244902A (en) 1996-03-12 1996-03-12 Download circuit

Country Status (1)

Country Link
JP (1) JPH09244902A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013522803A (en) * 2010-03-22 2013-06-13 クアルコム,インコーポレイテッド Direct distributed loading of executable software images from a primary processor to one or more secondary processors in a multiprocessor system
US9058191B2 (en) 2010-03-22 2015-06-16 Qualcomm Incorporated Direct transfer of executable software image to memory allocated by target processor based on transferred image header

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013522803A (en) * 2010-03-22 2013-06-13 クアルコム,インコーポレイテッド Direct distributed loading of executable software images from a primary processor to one or more secondary processors in a multiprocessor system
KR101412173B1 (en) * 2010-03-22 2014-06-25 퀄컴 인코포레이티드 Direct scatter loading of executable software image from a primary processor to one or more secondary processor in a multi―processor system
US8838949B2 (en) 2010-03-22 2014-09-16 Qualcomm Incorporated Direct scatter loading of executable software image from a primary processor to one or more secondary processor in a multi-processor system
US9058191B2 (en) 2010-03-22 2015-06-16 Qualcomm Incorporated Direct transfer of executable software image to memory allocated by target processor based on transferred image header
CN105718419B (en) * 2010-03-22 2019-04-16 高通股份有限公司 Executable software image is directly dispersed in a multi-processor system to be loaded into one or more minor processors from Main Processor Unit

Similar Documents

Publication Publication Date Title
US6154838A (en) Flash ROM sharing between processor and microcontroller during booting and handling warm-booting events
US5125081A (en) Inter-configuration changing controller based upon the connection and configuration information among plurality of clusters and the global storage
JPH02267634A (en) Interrupt system
JPH11242592A (en) Data updating device and method for fixed flash rom
TW403880B (en) Relocatable code storage in an integrated circuit with an embedded microcontroller
JP2001350738A (en) Microcomputer with built-in flash memory
CN114661368A (en) Chip and starting method thereof
US6473843B2 (en) Alternate access mechanism for saving and restoring state of write-only register
JP2000194551A (en) Flash memory rewriting circuit
JPH09244902A (en) Download circuit
JP3514651B2 (en) Reboot control device
US6418540B1 (en) State transfer with throw-away thread
JP7468112B2 (en) INTERFACE CIRCUIT AND METHOD FOR CONTROLLING INTERFACE CIRCUIT - Patent application
KR100465610B1 (en) Microcomputer with embedded flash memory having on-chip programming capability and method of programming data into the embedded flash memory
JPH11338687A (en) Program rewriting system
JP2853593B2 (en) Download device
JP2000029673A (en) Program control system
JPH03268007A (en) Sequence controller
JPH0240760A (en) Information processor
JP2005266948A (en) System board mounted with core i/o card
JPH01205339A (en) Microcomputer system
JPH04175927A (en) Patching system for program
JPH0764937A (en) Microcomputer system and microcomputer used therefor
JPS60230238A (en) Microprogram control device
JPH1139278A (en) Processor and memory access method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030603